putenv: Support for MSVC.
[gnulib.git] / ChangeLog
1 2011-09-17  Bruno Haible  <bruno@clisp.org>
2
3         putenv: Support for MSVC.
4         * modules/putenv (Depends-on): Add environ.
5         * lib/putenv.c (environ): Disable declaration.
6         * lib/unistd.in.h: Update comment.
7
8 2011-09-17  Bruno Haible  <bruno@clisp.org>
9
10         math: Avoid macro redefinition warnings on MSVC.
11         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
12         Undefine before redefining.
13
14 2011-09-17  Bruno Haible  <bruno@clisp.org>
15
16         doc: Mention functions which are declared as macros.
17         * doc/posix-functions/*[fl].texi: Mention that some functions are
18         defined as macros with arguments only.
19
20 2011-09-17  Bruno Haible  <bruno@clisp.org>
21
22         Add dependencies to new dirent related modules.
23         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
24         * modules/fts (Depends-on): Likewise.
25         * modules/glob (Depends-on): Likewise.
26         * modules/savedir (Depends-on): Likewise.
27         * modules/scandir (Depends-on): Likewise.
28         * modules/dirent-safer (Depends-on): Add opendir, closedir.
29         * modules/fdopendir (Depends-on): Add opendir.
30
31 2011-09-17  Bruno Haible  <bruno@clisp.org>
32
33         inet_pton: Support for MSVC on Windows Vista or newer.
34         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
35         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
36         HAVE_DECL_INET_PTON is defined.
37         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
38         On platforms with <winsock2.h>, test whether inet_pton is declared in
39         <ws2tcpip.h>. If so, arrange to replace it.
40         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
41         REPLACE_INET_PTON.
42         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
43         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
44         (Depends-on, configure.ac): Update condition.
45         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
46
47 2011-09-17  Bruno Haible  <bruno@clisp.org>
48
49         inet_ntop: Support for MSVC on Windows Vista or newer.
50         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
51         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
52         HAVE_DECL_INET_NTOP is defined.
53         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
54         On platforms with <winsock2.h>, test whether inet_ntop is declared in
55         <ws2tcpip.h>. If so, arrange to replace it.
56         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
57         REPLACE_INET_NTOP.
58         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
59         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
60         (Depends-on, configure.ac): Update condition.
61         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
62
63 2011-09-16  Eric Blake  <eblake@redhat.com>
64
65         test-fsync: yet another enhancement
66         * tests/test-fsync.c (main): Also test behavior on read-only text
67         file.
68
69 2011-09-16  Bruno Haible  <bruno@clisp.org>
70
71         Enhance fsync, fdatasync tests.
72         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
73         * tests/test-fdatasync.c (main): Likewise.
74
75 2011-09-16  Bruno Haible  <bruno@clisp.org>
76
77         Support for MSVC compiler: Ensure mode_t gets defined.
78         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
79         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
80         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
81         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
82         * tests/test-fcntl-h.c: Check that mode_t is defined.
83         * tests/test-sys_stat.c: Likewise.
84         * tests/test-sys_types.c: Likewise.
85         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
86         * doc/posix-headers/sys_stat.texi: Likewise.
87         * doc/posix-headers/sys_types.texi: Likewise.
88
89 2011-09-16  Bruno Haible  <bruno@clisp.org>
90
91         sys_stat: Support for MSVC.
92         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
93         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
94         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
95         MSVC.
96
97 2011-09-16  Bruno Haible  <bruno@clisp.org>
98
99         Support for MSVC compiler: Ensure off_t gets defined.
100         * lib/unistd.in.h: Include <sys/types.h>.
101         * tests/test-fcntl-h.c: Check that off_t is defined.
102         * tests/test-sys_stat.c: Likewise.
103         * tests/test-sys_types.c: Likewise.
104
105 2011-09-16  Eric Blake  <eblake@redhat.com>
106
107         fdatasync: port to Solaris
108         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
109         * modules/fdatasync (Link): Document it.
110         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
111
112         fdatasync: port to MacOS X 10.7
113         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
114         declared.
115         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
116         * modules/unistd (Makefile.am): Substitute it.
117         * lib/unistd.in.h (fdatasync): Declare on MacOS.
118         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
119
120         fdatasync: minor improvements
121         * modules/fdatasync (Depends-on): Add condition for fsync.
122         * lib/fdatasync.c (fdatasync): Add comment.
123         * tests/test-unistd-c++.cc: Test fdatasync.
124
125         unistd: update refs to newer POSIX
126         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
127         Suggested by Bruno Haible.
128
129         fdatasync: new module
130         * modules/fsync (Description): Document difference to fdatasync.
131         * modules/fdatasync: New module.
132         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
133         * lib/fdatasync.c (fdatasync): Likewise.
134         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
135         defaults.
136         * modules/unistd (Makefile.am): Set witnesses.
137         * lib/unistd.in.h (fdatasync): Declare.
138         * MODULES.html.sh: Document it.
139         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
140         * modules/fdatasync-tests: New test.
141         * tests/test-fdatasync.c: Likewise.
142
143 2011-09-16  Eric Blake  <eblake@redhat.com>
144
145         test-fsync: enhance tests
146         * modules/fsync-tests (Depends-on): Add errno, for mingw.
147         * tests/test-fsync.c (main): Enhance test.
148
149 2011-09-15  Bruno Haible  <bruno@clisp.org>
150
151         Support for MSVC compiler: Ensure ssize_t gets defined.
152         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
153         * doc/posix-headers/stdio.texi: Likewise.
154         * modules/stdio (Depends-on): Add ssize_t.
155         * modules/sys_socket (Depends-on): Likewise.
156         * modules/sys_types (Depends-on): Likewise.
157         * modules/sys_uio (Depends-on): Likewise.
158         * modules/unistd (Depends-on): Likewise.
159         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
160         * tests/test-sys_types.c: Check that ssize_t is defined.
161
162 2011-09-14  Bruno Haible  <bruno@clisp.org>
163
164         Avoid using #, the m4 comment starter character, near brackets.
165         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
166         delimiter character in sed expressions.
167         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
168         Suggested by Eric Blake.
169
170         Properly quote AC_CHECK_DECLS' 4th argument.
171         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
172         argument.
173         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
174         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
175         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
176         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
177         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
178         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
179         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
180         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
181         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
182         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
183         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
184         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
185         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
186         * m4/isinf.m4 (gl_ISINF): Likewise.
187         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
188         * m4/readutmp.m4 (gl_READUTMP): Likewise.
189         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
190         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
191         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
192         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
193         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
194         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
195         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
196         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
197         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
198         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
199         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
200         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
201         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
202         Reported by Eric Blake.
203
204         Properly quote AC_CHECK_DECL's 4th argument.
205         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
206         argument.
207         * m4/argp.m4 (gl_ARGP): Likewise.
208         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
209         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
210         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
211         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
212         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
213         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
214         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
215         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
216         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
217         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
218         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
219         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
220         Reported by Eric Blake.
221
222 2011-09-14  Eric Blake  <eblake@redhat.com>
223
224         opendir: avoid compile warning
225         * lib/opendir.c (includes): Always include errno.h.
226         Reported by Tatsuro MATSUOKA.
227
228 2011-09-14  Jim Meyering  <meyering@redhat.com>
229
230         maint.mk: sc_tight_scope: propagate failure from sub-make
231         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
232         Reported by Martin von Gagern.
233
234 2011-09-13  Bruno Haible  <bruno@clisp.org>
235
236         tempname: Support for MSVC.
237         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
238         MSVC.
239         * modules/tempname (Depends-on): Add fcntl-h.
240
241 2011-09-13  Bruno Haible  <bruno@clisp.org>
242
243         sys_time: Support for MSVC.
244         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
245         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
246         include <winsock2.h>.
247         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
248         function declarations that collide with POSIX.
249         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
250         (Makefile.am): Substitute HAVE_WINSOCK2_H.
251
252 2011-09-13  Bruno Haible  <bruno@clisp.org>
253
254         stat: Support for MSVC.
255         * lib/stat.c: Include pathmax.h.
256         * modules/stat (Depends-on): Add pathmax.
257
258         pathmax: Support for native Windows.
259         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
260
261 2011-09-12  Bruno Haible  <bruno@clisp.org>
262
263         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
264         * lib/dirent.in.h (struct dirent): New type.
265         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
266         DT_WHT): New macros.
267         (DIR): New type.
268         (opendir, closedir): Declare only if the module 'opendir' is enabled.
269         (readdir, rewinddir): New declarations.
270         * lib/dirent-private.h: New file.
271         * lib/opendir.c: New file.
272         * lib/readdir.c: New file.
273         * lib/rewinddir.c: New file.
274         * lib/closedir.c: New file.
275         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
276         * m4/opendir.m4: New file.
277         * m4/readdir.m4: New file.
278         * m4/rewinddir.m4: New file.
279         * m4/closedir.m4: New file.
280         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
281         REPLACE_CLOSEDIR here.
282         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
283         readdir, rewinddir are declared.
284         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
285         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
286         HAVE_REWINDDIR, HAVE_CLOSEDIR.
287         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
288         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
289         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
290         * modules/opendir: New file.
291         * modules/readdir: New file.
292         * modules/rewinddir: New file.
293         * modules/closedir: New file.
294         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
295         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
296         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
297         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
298         * NEWS: Mention the 'fchdir' change.
299
300 2011-09-11  Bruno Haible  <bruno@clisp.org>
301
302         asm-underscore.m4: Support for MSVC.
303         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
304         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
305
306 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
307
308         Doc about crypt functions.
309         * doc/posix-functions/crypt.texi: Expand range of glibc versions
310         needing for _GNU_SOURCE to get crypt.
311         * doc/posix-functions/encrypt.texi: Likewise.
312         * doc/posix-functions/setkey.texi: Likewise.
313
314 2011-09-11  Bruno Haible  <bruno@clisp.org>
315
316         doc: Update regarding MSVC 9.
317         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
318         tested".
319         * doc/posix-functions/*.texi: Update with info about MSVC 9.
320         * doc/posix-headers/*.texi: Likewise.
321         * doc/pastposix-functions/*.texi: Likewise.
322         * doc/glibc-functions/*.texi: Likewise.
323         * doc/glibc-headers/*.texi: Likewise.
324
325 2011-09-11  Bruno Haible  <bruno@clisp.org>
326
327         unistd et al.: Don't assume <unistd.h> exists.
328         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
329         does not exist.
330         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
331         exist. But include <stdlib.h>.
332         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
333         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
334         symlink() does not exist.
335         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
336         include <io.h> instead.
337         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
338         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
339         include <direct.h> instead.
340         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
341         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
342         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
343         <io.h> instead.
344         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
345         correctly if the system does not have hard links.
346         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
347         <direct.h> instead.
348         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
349         it when looking for function declarations.
350         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
351         <direct.h> and <io.h> instead.
352         * doc/posix-headers/unistd.texi: More details about MSVC problem.
353
354 2011-09-11  Bruno Haible  <bruno@clisp.org>
355
356         strcase: Support for MSVC.
357         * modules/strcase (Status, Notice): Remove obsoletion mark.
358         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
359         * doc/posix-functions/strncasecmp.texi: Likewise.
360
361         strings: Don't assume <strings.h> exists.
362         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
363         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
364         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
365         * doc/posix-headers/strings.texi: Mention the MSVC problem.
366
367 2011-09-11  Bruno Haible  <bruno@clisp.org>
368
369         dirent: Don't assume <dirent.h> exists.
370         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
371         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
372         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
373         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
374
375 2011-09-11  Bruno Haible  <bruno@clisp.org>
376
377         Fix wint_t on MSVC.
378         * lib/wchar.in.h (wint_t): On MSVC, override it.
379         * lib/wctype.in.h (wint_t): Likewise.
380         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
381         MSVC.
382         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
383         * doc/posix-headers/wctype.texi: Likewise.
384
385 2011-09-11  Bruno Haible  <bruno@clisp.org>
386
387         sys_types: Fix typo.
388         * lib/sys_types.in.h: Fix typo in comment.
389         Reported by Paul Eggert.
390
391         Support for MSVC compiler: Ensure size_t gets defined.
392         * modules/strings (Depends-on): Add 'sys_types'.
393         * modules/sys_uio (Depends-on): Likewise.
394         * lib/sys_uio.in.h: Update comment.
395
396         C++ tests for module 'sys_types'.
397         * modules/sys_types-c++-tests: New file.
398         * tests/test-sys_types-c++.cc: New file.
399
400         Tests for module 'sys_types'.
401         * modules/sys_types-tests: New file.
402         * tests/test-sys_types.c: New file.
403
404         New module 'sys_types'.
405         * lib/sys_types.in.h: New file.
406         * m4/sys_types_h.m4: New file.
407         * modules/sys_types: New file.
408         * doc/posix-headers/sys_types.texi: Mention the new module and the
409         size_t problem on MSVC 9.
410
411 2011-09-11  Bruno Haible  <bruno@clisp.org>
412
413         Support for MSVC compiler: Avoid division by a literal 0.
414         * lib/math.in.h (NAN): Define through a function call also on MSVC.
415         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
416         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
417         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
418         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
419         * tests/infinity.h: New file.
420         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
421         on MSVC.
422         * tests/test-ceilf1.c: Include infinity.h.
423         (main): Use Infinityf.
424         * tests/test-ceil1.c: Include infinity.h.
425         (main): Use Infinityd.
426         * tests/test-ceill.c: Include infinity.h.
427         (main): Use Infinityl.
428         * tests/test-dprintf-posix.c: Include infinity.h.
429         (test_function): Use Infinityd.
430         * tests/test-floorf1.c: Include infinity.h.
431         (main): Use Infinityf.
432         * tests/test-floor1.c: Include infinity.h.
433         (main): Use Infinityd.
434         * tests/test-floorl.c: Include infinity.h.
435         (main): Use Infinityl.
436         * tests/test-fprintf-posix.c: Include infinity.h.
437         (test_function): Use Infinityd.
438         * tests/test-frexp.c: Include infinity.h.
439         (main): Use Infinityd.
440         * tests/test-frexpl.c: Include infinity.h.
441         (main): Use Infinityl.
442         * tests/test-isfinite.c: Include infinity.h.
443         (test_isfinitef): Use Infinityf.
444         (test_isfinited): Use Infinityd.
445         (test_isfinitel): Use Infinityl.
446         * tests/test-isinf.c: Include infinity.h.
447         (test_isinff): Use Infinityf.
448         (test_isinfd): Use Infinityd.
449         (test_isinfl): Use Infinityl.
450         * tests/test-isnan.c: Include infinity.h.
451         (test_float): Use Infinityf.
452         (test_double): Use Infinityd.
453         (test_long_double): Use Infinityl.
454         * tests/test-isnanf.h: Include infinity.h.
455         (main): Use Infinityf.
456         * tests/test-isnand.h: Include infinity.h.
457         (main): Use Infinityd.
458         * tests/test-isnanl.h: Include infinity.h.
459         (main): Use Infinityl.
460         * tests/test-ldexpl.c: Include infinity.h.
461         (main): Use Infinityl.
462         * tests/test-printf-posix.h: Include infinity.h.
463         (test_function): Use Infinityd.
464         * tests/test-roundf1.c: Include infinity.h.
465         (main): Use Infinityf.
466         * tests/test-round1.c: Include infinity.h.
467         (main): Use Infinityd.
468         * tests/test-roundl.c: Include infinity.h.
469         (main): Use Infinityl.
470         * tests/test-signbit.c: Include infinity.h.
471         (test_signbitf): Use Infinityf.
472         (test_signbitd): Use Infinityd.
473         (test_signbitl): Use Infinityl.
474         * tests/test-snprintf-posix.h: Include infinity.h.
475         (test_function): Use Infinityd, Infinityl.
476         * tests/test-sprintf-posix.h: Include infinity.h.
477         (test_function): Use Infinityd, Infinityl.
478         * tests/test-truncf1.c: Include infinity.h.
479         (main): Use Infinityf.
480         * tests/test-trunc1.c: Include infinity.h.
481         (main): Use Infinityd.
482         * tests/test-truncl.c: Include infinity.h.
483         (main): Use Infinityl.
484         * tests/test-vasnprintf-posix.c: Include infinity.h.
485         (test_function): Use Infinityd, Infinityl.
486         * tests/test-vasprintf-posix.c: Include infinity.h.
487         (test_function): Use Infinityd, Infinityl.
488         * modules/ceilf-tests (Files): Add tests/infinity.h.
489         * modules/ceil-tests (Files): Likewise.
490         * modules/ceill-tests (Files): Likewise.
491         * modules/dprintf-posix-tests (Files): Likewise.
492         * modules/floorf-tests (Files): Likewise.
493         * modules/floor-tests (Files): Likewise.
494         * modules/floorl-tests (Files): Likewise.
495         * modules/fprintf-posix-tests (Files): Likewise.
496         * modules/frexp-tests (Files): Likewise.
497         * modules/frexp-nolibm-tests (Files): Likewise.
498         * modules/frexpl-tests (Files): Likewise.
499         * modules/frexpl-nolibm-tests (Files): Likewise.
500         * modules/isfinite-tests (Files): Likewise.
501         * modules/isinf-tests (Files): Likewise.
502         * modules/isnan-tests (Files): Likewise.
503         * modules/isnanf-tests (Files): Likewise.
504         * modules/isnanf-nolibm-tests (Files): Likewise.
505         * modules/isnand-tests (Files): Likewise.
506         * modules/isnand-nolibm-tests (Files): Likewise.
507         * modules/isnanl-tests (Files): Likewise.
508         * modules/isnanl-nolibm-tests (Files): Likewise.
509         * modules/ldexpl-tests (Files): Likewise.
510         * modules/printf-posix-tests (Files): Likewise.
511         * modules/roundf-tests (Files): Likewise.
512         * modules/round-tests (Files): Likewise.
513         * modules/roundl-tests (Files): Likewise.
514         * modules/signbit-tests (Files): Likewise.
515         * modules/snprintf-posix-tests (Files): Likewise.
516         * modules/sprintf-posix-tests (Files): Likewise.
517         * modules/truncf-tests (Files): Likewise.
518         * modules/trunc-tests (Files): Likewise.
519         * modules/truncl-tests (Files): Likewise.
520         * modules/vasnprintf-posix-tests (Files): Likewise.
521         * modules/vasprintf-posix-tests (Files): Likewise.
522         * modules/vdprintf-posix-tests (Files): Likewise.
523         * modules/vfprintf-posix-tests (Files): Likewise.
524         * modules/vprintf-posix-tests (Files): Likewise.
525         * modules/vsnprintf-posix-tests (Files): Likewise.
526         * modules/vsprintf-posix-tests (Files): Likewise.
527         * modules/xprintf-posix-tests (Files): Likewise.
528
529 2011-09-11  Bruno Haible  <bruno@clisp.org>
530
531         Ensure pid_t gets defined.
532         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
533         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
534         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
535         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
536         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
537         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
538         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
539         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
540         * tests/test-fcntl-h.c: Check that pid_t is defined.
541         * tests/test-sched.c: Likewise.
542         * tests/test-termios.c: Likewise.
543         * tests/test-time.c: Likewise.
544         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
545         * doc/posix-headers/signal.texi: Likewise.
546         * doc/posix-headers/sys_types.texi: Likewise.
547         * doc/posix-headers/time.texi: Likewise.
548
549 2011-09-11  Bruno Haible  <bruno@clisp.org>
550
551         acl: Fix compilation on Solaris 10 (older version).
552         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
553         of ACE_EVERYONE.
554         * lib/set-mode-acl.c (qset_acl): Likewise.
555         Reported by Christian Jullien <eligis@orange.fr>.
556
557 2011-09-10  Bruno Haible  <bruno@clisp.org>
558
559         iconv, unsetenv: Add support for MSVC compiler.
560         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
561         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
562
563 2011-09-10  Bruno Haible  <bruno@clisp.org>
564
565         *printf: Add support for MSVC compiler.
566         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
567         handles the exception caused by the %n directive. When cross-compiling,
568         guess no on native Windows.
569         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
570         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
571         emulate it through vsnprintf.
572         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
573         * doc/posix-functions/dprintf.texi: Update documentation regarding
574         MSVC 9.
575         * doc/posix-functions/fprintf.texi: Likewise.
576         * doc/posix-functions/printf.texi: Likewise.
577         * doc/posix-functions/snprintf.texi: Likewise.
578         * doc/posix-functions/sprintf.texi: Likewise.
579         * doc/posix-functions/swprintf.texi: Likewise.
580         * doc/posix-functions/vdprintf.texi: Likewise.
581         * doc/posix-functions/vfprintf.texi: Likewise.
582         * doc/posix-functions/vprintf.texi: Likewise.
583         * doc/posix-functions/vsnprintf.texi: Likewise.
584         * doc/posix-functions/vsprintf.texi: Likewise.
585         * doc/glibc-functions/asprintf.texi: Likewise.
586         * doc/glibc-functions/obstack_printf.texi: Likewise.
587         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
588         * doc/glibc-functions/vasprintf.texi: Likewise.
589
590 2011-09-10  Bruno Haible  <bruno@clisp.org>
591
592         nocrash: Add support for native Windows.
593         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
594
595 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
596             Bruno Haible  <bruno@clisp.org>
597
598         absolute-header, include-next: Add support for MSVC compiler.
599         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
600         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
601         directory separator in #line directives.
602         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
603         recognize also backslash as directory separator in #line directives.
604
605 2011-09-08  Jim Meyering  <meyering@redhat.com>
606
607         maint.mk: mark the post-release commit log with "maint: " prefix
608         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
609         one-line commit-log summary.
610
611 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
612             Bruno Haible  <bruno@clisp.org>
613
614         Doc about crypt functions.
615         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
616         systems.
617         * doc/posix-functions/encrypt.texi: Likewise.
618         * doc/posix-functions/setkey.texi: Likewise.
619
620 2011-09-08  Simon Josefsson  <simon@josefsson.org>
621
622         * lib/gc.h: Fix copyright header.
623
624 2011-09-07  Bruno Haible  <bruno@clisp.org>
625
626         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
627         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
628         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
629
630 2011-09-07  Bruno Haible  <bruno@clisp.org>
631
632         openat: Work around compilation error with OSF/1 5.1 DTK cc.
633         * lib/fopen.c: Use different syntax for include of <stdio.h>.
634         * lib/freopen.c: Likewise.
635         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
636         * lib/lstat.c: Likewise.
637         * lib/stat.c: Likewise.
638         * lib/open.c: Use different syntax for include of <fcntl.h>.
639         * lib/openat.c: Include fcntl.h again, explicitly.
640
641 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
642
643         parse-datetime: document the newly accepted format
644         * doc/parse-datetime.texi (Combined date and time of day items):
645         New section.
646
647 2011-09-06  Bruno Haible  <bruno@clisp.org>
648
649         acl: Fix a test failure on newer Solaris 10 with ZFS.
650         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
651         ENOSYS as no ACL.
652         Reported by Jim Meyering.
653
654 2011-09-06  Bruno Haible  <bruno@clisp.org>
655
656         acl: Update for AIX >= 5.3 with NFS.
657         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
658         ENOSYS as no ACL.
659
660         acl: Fix a test failure on AIX >= 5.3 with NFS.
661         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
662         as no ACL.
663
664 2011-09-06  Bruno Haible  <bruno@clisp.org>
665
666         acl: Fix a test failure on IRIX 6.5 with NFS.
667         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
668         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
669         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
670         * lib/copy-acl.c (qcopy_acl): Likewise.
671
672 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
673
674         openat: port to AIX 7.1 with large files
675         AIX 7.1 does a "#define openat open64at" if large files are in use,
676         so we can't simply #undef openat.  Use the orig_openat trick (similar
677         to orig_open in lib/open.c) to work around the problem.  Problem
678         reported by Kevin Brott for GNU tar, in the thread containing
679         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
680         * lib/openat.c (__need_system_fcntl_h): Define first.
681         Include <fcntl.h> and <sys/types.h> before undefining.
682         (orig_openat) [HAVE_OPENAT]: New inline function.
683         (openat) [HAVE_OPENAT]: Do not undef.
684         (rpl_openat): Use orig_openat, not openat.
685
686 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
687             Bruno Haible  <bruno@clisp.org>
688
689         acl: Avoid errors on NonStop Kernel.
690         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
691         ENOTSUP errors.
692
693 2011-09-05  Bruno Haible  <bruno@clisp.org>
694
695         acl: Clean up Solaris code.
696         * lib/acl-internal.h: Remove no-op #if.
697         * lib/file-has-acl.c: Likewise.
698         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
699         * lib/copy-acl.c (qcopy_acl): Likewise.
700
701 2011-09-05  Bruno Haible  <bruno@clisp.org>
702
703         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
704         binaries built on the original Solaris 10.
705         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
706         trivial.
707
708 2011-09-05  Bruno Haible  <bruno@clisp.org>
709
710         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
711         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
712         10.
713         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
714         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
715         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
716         instead of acl_get, facl_get, acl_set, facl_set.
717
718 2011-09-05  Bruno Haible  <bruno@clisp.org>
719
720         copy-file: Try unit tests on more file systems.
721         * tests/test-copy-file-1.sh: New file.
722         * tests/test-copy-file-2.sh: New file.
723         * modules/copy-file-tests (Files): Add them.
724         (Makefile.am): Add them to TESTS.
725
726         acl: Try unit tests on more file systems.
727         * tests/test-file-has-acl-1.sh: New file.
728         * tests/test-file-has-acl-2.sh: New file.
729         * tests/test-set-mode-acl-1.sh: New file.
730         * tests/test-set-mode-acl-2.sh: New file.
731         * tests/test-copy-acl-1.sh: New file.
732         * tests/test-copy-acl-2.sh: New file.
733         * modules/acl-tests (Files): Add them.
734         (Makefile.am): Add them to TESTS.
735
736 2011-09-04  Bruno Haible  <bruno@clisp.org>
737
738         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
739         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
740         10.
741         (OLD_ALLOW, OLD_DENY): New macros.
742         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
743         ACE_ACCESS_ALLOWED_ACE_TYPE.
744         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
745         ACE_ACCESS_DENIED_ACE_TYPE.
746         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
747         (NEW_ACE_EXECUTE): Fix value.
748         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
749         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
750         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
751         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
752         NEW_ACE_SYNCHRONIZE): New macros.
753         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
754         instead of acl_fromtext, acl_set, facl_set.
755         Fixes a coreutils/tests/cp/perm failure.
756
757 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
758
759         openat: test for fstatat (..., 0) bug
760         Further testing with tar suggests that fstatat (..., 0)
761         does not work in general, on AIX 7.1; see
762         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
763         So, give up entirely on AIX 7.1's fstatat, and fall back on our
764         replacement fstatat (which is what older AIX releases were using
765         anyway).
766         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
767         use is now changed to orig_fstatat.  This was probably the right
768         thing to do anyway.
769         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
770         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
771         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
772         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
773         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
774         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
775         if the bug is found.
776
777         openat: test for fstatat (AT_FDCWD, ..., 0) bug
778         This tests for another fstatat bug on AIX 7.1:
779         fstatat (AT_FDCWD, ..., 0) does not work.  See
780         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
781         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
782         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
783         (rpl_fstatat): Adjust so that it works around either (or both)
784         bugs if present.
785         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
786
787 2011-09-03  Karl Berry  <karl@gnu.org>
788
789         * doc/regex.texi (Character Class Operators): Avoid literal ":"
790         in index entries.
791
792 2011-09-02  Bruno Haible  <bruno@clisp.org>
793
794         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
795         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
796         values of AR, ARFLAGS, RANLIB.
797         Reported by John W. Eaton <jwe@gnu.org> for Octave.
798
799 2011-09-02  Bruno Haible  <bruno@clisp.org>
800
801         Find 'ar' program that fits with --host argument.
802         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
803
804 2011-09-02  Bruno Haible  <bruno@clisp.org>
805
806         tests: init.sh: Support any non-GNU diff.
807         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
808         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
809         Solaris 8.
810
811 2011-09-02  Bruno Haible  <bruno@clisp.org>
812
813         tests: init.sh: work also with any non-GNU diff that supports -u
814         * tests/init.sh: Relax check for diff -u support.
815         Rather than checking for GNU diff via --version, simply check
816         for support for -u itself.  Useful at least on OpenBSD 4.9,
817         AIX 7.1, IRIX 6.5, and Solaris 10.
818
819 2011-09-01  Bruno Haible  <bruno@clisp.org>
820
821         strtoimax, strtoumax: Document problem on HP-UX 11.
822         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
823         * doc/posix-functions/strtoumax.texi: Likewise.
824
825 2011-09-01  Bruno Haible  <bruno@clisp.org>
826
827         strtoumax: Avoid link error on OSF/1 with DTK cc.
828         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
829         defined as a function.
830         * modules/strtoumax (Depends-on, configure.ac): Test only whether
831         strtoumax is defined, not whether it is declared.
832
833 2011-09-01  Bruno Haible  <bruno@clisp.org>
834
835         strtoimax: Avoid link error on OSF/1 with DTK cc.
836         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
837         defined as a function.
838         * modules/strtoimax (Depends-on, configure.ac): Test only whether
839         strtoimax is defined, not whether it is declared.
840
841 2011-09-01  Bruno Haible  <bruno@clisp.org>
842
843         imaxdiv: Avoid link error on OSF/1 with DTK cc.
844         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
845         as a function.
846         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
847         whether it is declared.
848
849 2011-09-01  Bruno Haible  <bruno@clisp.org>
850
851         imaxabs: Avoid link error on OSF/1 with DTK cc.
852         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
853         as a function.
854         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
855         whether it is declared.
856
857 2011-09-01  Bruno Haible  <bruno@clisp.org>
858
859         Tests for module 'strtoumax'.
860         * modules/strtoumax-tests: New file.
861         * tests/test-strtoumax.c: New file.
862
863         Tests for module 'strtoimax'.
864         * modules/strtoimax-tests: New file.
865         * tests/test-strtoimax.c: New file.
866
867         Tests for module 'imaxdiv'.
868         * modules/imaxdiv-tests: New file.
869         * tests/test-imaxdiv.c: New file.
870
871         Tests for module 'imaxabs'.
872         * modules/imaxabs-tests: New file.
873         * tests/test-imaxabs.c: New file.
874
875 2011-09-01  Bruno Haible  <bruno@clisp.org>
876
877         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
878         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
879         pthread_create.
880
881 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
882
883         openat: work around AIX 7.1 fstatat issue
884         This should fix the problem that was not properly fixed
885         in the previous change, dated 2011-08-30.
886         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
887         __need_system_stat_h defined.
888         (orig_fstatat) [HAVE_FSTATAT]: New function.
889         (rpl_fstatat): Go back to the old way of doing things,
890         except call orig_fstatat instead of fstatat.
891         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
892         Remove unnecessary check whether fstatat fills in st_size etc.
893
894 2011-09-01  Bruno Haible  <bruno@clisp.org>
895
896         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
897         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
898         just include the system's header.
899
900 2011-08-31  Jim Meyering  <meyering@redhat.com>
901
902         tests: avoid spurious assertion failure in test-float.c on ppc64
903         * tests/test-float.c (test_long_double): Comment out an assertion,
904         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
905         with gcc-4.4.4.
906
907         maint: indent with spaces, not TABs
908         I need to get in the habit of running gnulib's "make check".
909         Both of these would have been caught.
910         * m4/largefile.m4: Indent with spaces, not TABs.
911         * lib/parse-datetime.y (iso_8601_time): Likewise.
912         Spotted by Pádraig Brady.
913
914         test-parse-datetime.c: accommodate a relatively strict gcc warning
915         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
916         to avoid a warning from gcc's -Werror=missing-declarations.
917         Insert a few spaces-before-funcall-parenthesis.
918
919 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
920
921         parse-datetime: accept ISO 8601 date and time rep with "T" separator
922         The parser now accepts ISO 8601 date-time strings with "T" as the
923         separator.  It has long parsed dates like "2004-02-29 16:21:42"
924         with a space between the date and time strings.  Now it also parses
925         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
926         variants like "2004-02-29T16:21:42.333-07:00"
927         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
928         of day representation using the 'T' separator character.
929         * doc/parse-datetime.texi (General date syntax): replace use of
930         deprecated --iso-8601 option with --rfc-3339 in example of date
931         command output formats that can be parsed.
932         * tests/test-parse-datetime.c (tm_diff): New function, taken from
933         lib/parse-datetime.y.
934         (gmt_offset): New function.
935         (main): Add additional test cases to validate ISO8601 extended
936         date and time of day parsing.
937
938 2011-08-31  Bruno Haible  <bruno@clisp.org>
939
940         freopen: Documentation.
941         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
942         name.
943         Reported by Claudio Bley <claudio.bley@gmail.com>.
944
945 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
946
947         freopen: Don't crash if the filename argument is NULL.
948         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
949         NULL.
950
951 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
952
953         openat: work around AIX 7.1 fstatat bug
954         Problem reported by Kevin Brott for GNU tar, in the thread containing
955         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
956         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
957         FSTATAT_ST_SIZE_ETC_BROKEN.
958         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
959         rpl_fstatat.
960         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
961         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
962         AC_CHECK_FUNCS_ONCE for fstatat.
963         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
964         fchmodat, mkdirat, openat and unlinkat.
965
966 2011-08-30  Bruno Haible  <bruno@clisp.org>
967
968         Avoid endless recursions if config.h includes some header files.
969         * lib/fopen.c (__need_FILE): Define already before including config.h.
970         * lib/freopen.c (__need_FILE): Likewise.
971         * lib/open.c (__need_system_fcntl_h): Likewise.
972         * lib/stat.c (__need_system_sys_stat_h): Likewise.
973         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
974         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
975
976 2011-08-25  Karl Berry  <karl@gnu.org>
977
978         * config/srclist.txt (ylwrap): new try.
979         * build-aux/ylwrap: new file.
980
981 2011-08-23  Bruno Haible  <bruno@clisp.org>
982
983         tmpdir: Use a good default directory on native Windows.
984         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
985         (P_tmpdir): Default to _P_tmpdir on native Windows.
986         (path_search): On native Windows, try the value returned by GetTempPath
987         before trying P_tmpdir.
988         * modules/tmpdir (Depends-on): Add pathmax.
989         Suggested by John Darrington <john@darrington.wattle.id.au>.
990
991 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
992
993         doc: fix typo in README-release
994         * top/README-release: Capitalize first word of a sentence.
995
996 2011-08-19  Jim Meyering  <meyering@redhat.com>
997
998         fts: do not exhaust memory when processing million-entry directories
999         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
1000         directory would require about 256*N bytes of memory.  Thus, it was
1001         easy to construct a directory too large to be processed by any of
1002         those tools.  With this change, fts' maximum memory utilization is
1003         now limited to around 30MB.
1004         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
1005         (fts_read): When we've processed the final entry (i.e., when
1006         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
1007         using the parent entry to read any remaining entries.  Dispatch
1008         depending on what fts_build returns:
1009         - NULL+stop, aka failure: stop
1010         - NULL otherwise: move up in the dir hierarchy
1011         - non-NULL: handle this new entry
1012         (fts_build): Declare and use new local, continue_readdir.
1013         Prepare to be called from fts_read, when the entries
1014         from a partially-read directory have just been exhausted.
1015         In that case, we'll skip the opendir and instead use the parent's
1016         fts_dirp and derive dir_fd from that.
1017         Finally, in the readdir loop, if we read max_entries entries,
1018         exit the loop ensuring *not* to call closedir.  This is required
1019         so that fts_dirp can be reused on a subsequent call.
1020         Prompted by Ben England's report of memory exhaustion in find
1021         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
1022
1023         maint: fts: move decl of `dp' down into while loop; split a long line
1024         * lib/fts.c (fts_build): No semantic change.
1025
1026         fts: add/use new struct member, fts_dirp
1027         We are about to use this to manage any directory with
1028         too many entries to read all of them into memory at once.
1029         To do that, we'll need to save the DIR* pointer in each
1030         affected FTSENT struct.
1031         * lib/fts_.h: Include <dirent.h>.
1032         (struct FTSENT) [fts_dirp]: New member.
1033         * lib/fts.c (closedir_and_clear): Define.
1034         Use it in place of closedir so that we are sure to
1035         clear the new fts_dirp member when done with it.
1036         (fts_alloc): Initialize the new member.
1037         (fts_lfree): Free, if needed.
1038
1039         maint: fts: give __opendir2 a new parameter and rename
1040         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
1041         than surreptitiously using sole caller's "dir_fd".
1042         (fts_opendir): Rename from __opendir2.
1043
1044         maint: fts.c: remove __opendir2's now-unused parameter, oflag
1045         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
1046
1047         maint: fts.c: correct off-by-one indentation
1048         * lib/fts.c (fts_build): Correct indentation, change style
1049         of a couple of block comments, and bracing style.
1050
1051         maint: fts.c: move __opendir2 #define "up" out of function body
1052         * lib/fts.c (__opendir2): Move "up".  No semantic change.
1053
1054         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
1055         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
1056         out for a long time and besides was useful only on BSD systems.
1057
1058 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
1059
1060         regex: port to Stratus OpenVOS
1061         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
1062         define to empty, rather than attempting nonportable optimizations.
1063         Problem reported by Paul Green in:
1064         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
1065         and fix suggested by Eric Blake in:
1066         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
1067
1068 2011-08-17  Eric Blake  <eblake@redhat.com>
1069
1070         getcwd: fix test failures on mingw
1071         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
1072         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
1073         test if long directory cannot be created, and allow mingw errno.
1074
1075         getcwd-lgpl: fix m4 to match relaxed test for BSD
1076         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
1077         (gl_FUNC_GETCWD_SIGNATURE): New macro.
1078         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
1079         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
1080         signature problem.
1081
1082         getcwd: fix compilation on mingw64
1083         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
1084         getcwd.
1085         Reported by Marc-André Lureau.
1086
1087         pipe2: silence compiler warning
1088         * lib/pipe2.c (pipe2): Hide label if it is not used.
1089
1090 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
1091
1092         relocatable-prog: fix link error
1093         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
1094         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
1095         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
1096         into modules/relocatable-lib without noticing that
1097         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
1098         also needs to build relocatable.c.
1099
1100 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
1101
1102         getaddrinfo: fix sh typo in gai_strerrorA decl checking
1103         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
1104         shell code: it contained a 'break' that was not in a loop.
1105         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
1106         via a shell-language loop; this may have been true in old Autoconf
1107         versions, but it's not true in Autoconf 2.68.  I found this bug
1108         when testing coreutils git on Solaris 8, whose shell complains
1109         about the syntax error.
1110
1111 2011-08-12  Simon Josefsson  <simon@josefsson.org>
1112
1113         * lib/base64.c: Fix comment to reference RFC 4648.
1114         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
1115         <gvtulder@gmail.com>.
1116
1117 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
1118
1119         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
1120
1121         po/Makefile.in.in: fix make -q problem
1122         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
1123         rule, since there's no file named 'check-macro-version' and its
1124         use as a file breaks make -q.
1125         (all): Don't depend on check-macro-version.
1126         (CHECK_MACRO_VERSION): New macro.
1127         (stamp-po): Use it.
1128
1129         configmake: fix make -q problem
1130         * modules/configmake (configmake.h): Update configmake.h's time stamp
1131         even if the file does not change.  Otherwise, 'make -q' fails.
1132         Problem reported by Simon Josefsson in
1133         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
1134
1135 2011-08-11  Jim Meyering  <meyering@redhat.com>
1136
1137         git-version-gen: correct the advice in a comment
1138         * build-aux/git-version-gen: Correct comment.
1139         Don't recommend to list .tarball-version in .gitignore.
1140
1141 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
1142
1143         base64: fix off-by-one buffer size bug
1144         Problem and (trivial) fix reported by Gijs van Tulder in
1145         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
1146         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
1147         * tests/test-base64.c (main): Catch the bug.
1148
1149 2011-08-10  Eric Blake  <eblake@redhat.com>
1150
1151         closein: correct comments
1152         * lib/closein.c (close_stdin): Improve comments.
1153
1154 2011-08-09  Bruno Haible  <bruno@clisp.org>
1155
1156         More tests for 'fseeko'.
1157         * tests/test-fseeko3.c: New file, from Eric Blake.
1158         * tests/test-fseeko3.sh: New file.
1159         * modules/fseeko-tests (Files): Add them.
1160         (TESTS): Add test-fseeko3.sh.
1161         (check_PROGRAMS): Add test-fseeko3.
1162
1163 2011-08-09  Eric Blake  <eblake@redhat.com>
1164
1165         fseeko: remove unneeded hack
1166         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
1167
1168         fseeko: fix bug on glibc
1169         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
1170         Reported by John W. Eaton.
1171
1172 2011-08-08  Bruno Haible  <bruno@clisp.org>
1173
1174         unictype/base: Fix interoperability with preinstalled libunistring.
1175         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
1176         Reported by Simon Josefsson.
1177
1178 2011-08-08  Bruno Haible  <bruno@clisp.org>
1179
1180         iswblank: Detect declaration correctly.
1181         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
1182         AC_CHECK_DECLS invocation.
1183
1184 2011-08-08  Bruno Haible  <bruno@clisp.org>
1185
1186         tcgetsid: Detect declaration correctly.
1187         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
1188         AC_CHECK_DECLS invocation.
1189         Reported by Simon Josefsson.
1190
1191 2011-08-08  Eric Blake  <eblake@redhat.com>
1192
1193         largefile: fix typo that regressed large file support
1194         * modules/largefile (configure.ac-early): Fix section name.
1195
1196 2011-08-06  Karl Berry  <karl@gnu.org>
1197
1198         * MODULES.html.sh (func_all_files): _Noreturn is no longer
1199         a separate module.
1200
1201 2011-08-05  Simon Josefsson  <simon@josefsson.org>
1202
1203         openat: Fix warnings and commens when building unlinkat.c on Hurd.
1204         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
1205         get prototype for free.
1206
1207 2011-08-04  Bruno Haible  <bruno@clisp.org>
1208
1209         Tests for module 'pathmax'.
1210         * modules/pathmax-tests: New file.
1211         * tests/test-pathmax.c: New file.
1212
1213         canonicalize-lgpl: Support larger filenames on the Hurd.
1214         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
1215         Reported by Paul Eggert.
1216
1217         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
1218         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
1219         * lib/chdir-long.h: Include pathmax.h.
1220         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
1221         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
1222         (PATH_MAX): Remove code that is done by pathmax.h.
1223         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
1224         * lib/tmpfile.c: Add a comment.
1225         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
1226         * modules/chdir-long (Depends-on): Add pathmax.
1227         * modules/getcwd (Depends-on): Add pathmax.
1228         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
1229         is not defined.
1230         * doc/posix-headers/limits.texi: Mention the pathmax module.
1231         * NEWS: Mention the change.
1232
1233 2011-08-02  Bruno Haible  <bruno@clisp.org>
1234
1235         pthread_sigmask: Actually use results of gl_THREADLIB.
1236         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
1237         gl_THREADLIB, not gl_[]THREADLIB.
1238         Reported by Eric Blake.
1239
1240 2011-08-02  Jim Meyering  <meyering@redhat.com>
1241
1242         maint.mk: relax the default _gl_TS_function_match regexp
1243         * top/maint.mk (_gl_TS_function_match): Don't require at least one
1244         space between function name and "(" in an "extern" declaration.
1245         That would fail to match a decl with no space there: extern void foo();
1246
1247 2011-07-31  Iain Nicol  <iain@thenicols.net>
1248
1249         git-version-gen: document that EXTRA_DIST must include .version
1250         * build-aux/git-version-gen: In the how-to-use comment, document
1251         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
1252         will fail when run from an unpacked distribution tarball.
1253
1254 2011-08-01  Bruno Haible  <bruno@clisp.org>
1255
1256         wctype-h: Fix last change.
1257         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
1258         REPLACE_TOWLOWER to 0.
1259         Reported by Sam Steingold <sds@gnu.org>.
1260
1261 2011-07-31  Bruno Haible  <bruno@clisp.org>
1262
1263         frexpl: Update autoconf test.
1264         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
1265         according to changes of 2011-06-20.
1266
1267 2011-07-31  Bruno Haible  <bruno@clisp.org>
1268
1269         sys_utsname: Add support for Minix.
1270         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
1271         <sys/utsname.h>.
1272         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
1273         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
1274
1275 2011-07-31  Bruno Haible  <bruno@clisp.org>
1276
1277         strings: Add support for Minix.
1278         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
1279         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
1280         * doc/posix-headers/strings.texi: Document the Minix problem.
1281
1282 2011-07-31  Bruno Haible  <bruno@clisp.org>
1283
1284         wctype-h: Add support for Minix.
1285         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
1286         REPLACE_TOWLOWER.
1287         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
1288         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
1289         REPLACE_ISWCNTRL.
1290
1291 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
1292
1293         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
1294         This is a performance improvement for 64-bit hosts: it causes the
1295         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
1296
1297 2011-07-31  Bruno Haible  <bruno@clisp.org>
1298
1299         stdioext: Add support for Minix.
1300         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
1301         * lib/fpurge.c (fpurge): Likewise.
1302         * lib/freadahead.c (freadahead): Likewise.
1303         * lib/freadable.c (freadable): Likewise.
1304         * lib/freading.c (freading): Likewise.
1305         * lib/freadptr.c (freadptr): Likewise.
1306         * lib/freadseek.c (freadptrinc): Likewise.
1307         * lib/fseeko.c (rpl_fseeko): Likewise.
1308         * lib/fseterr.c (fseterr): Likewise.
1309         * lib/fwritable.c (fwritable): Likewise.
1310         * lib/fwriting.c (fwriting): Likewise.
1311         * lib/fflush.c (clear_ungetc_buffer): Update comment.
1312         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
1313
1314 2011-07-31  Bruno Haible  <bruno@clisp.org>
1315
1316         errno: Port to Minix.
1317         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
1318         ECONNABORTED are defined.
1319         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
1320         GNULIB_defined_ECONNABORTED): New macros.
1321         * lib/strerror-override.h (strerror_override): Test also
1322         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
1323         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
1324         ECONNABORTED.
1325         * doc/posix-headers/errno.texi: Mention the Minix problem.
1326
1327 2011-07-31  Bruno Haible  <bruno@clisp.org>
1328
1329         Work around declaration collisions on Minix.
1330         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
1331         defined, set REPLACE_MBSINIT.
1332         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
1333         defined, set REPLACE_MBRTOWC.
1334         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
1335         set REPLACE_MBRLEN.
1336         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
1337         defined, set REPLACE_MBSRTOWCS.
1338         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
1339         defined, set REPLACE_WCRTOMB.
1340         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
1341         defined, set REPLACE_WCSRTOMBS.
1342
1343 2011-07-31  Bruno Haible  <bruno@clisp.org>
1344
1345         Add support for Minix with ACK compiler.
1346         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
1347         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
1348         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
1349
1350 2011-07-31  Bruno Haible  <bruno@clisp.org>
1351
1352         Documentation about Minix.
1353         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
1354         * doc/glibc-headers/*.texi: Likewise.
1355         * doc/posix-functions/*.texi: Likewise.
1356         * doc/glibc-functions/*.texi: Likewise.
1357
1358 2011-07-31  Bruno Haible  <bruno@clisp.org>
1359
1360         snippet/warn-on-use: Fix indentation.
1361         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
1362
1363 2011-07-25  Jim Meyering  <meyering@redhat.com>
1364
1365         tests: test-update-copyright.sh: remove unnecessary "rm" commands
1366         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
1367         commands.
1368
1369 2011-07-27  Jim Meyering  <meyering@redhat.com>
1370
1371         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
1372         * top/maint.mk (gl_extract_significant_defines_): Now that
1373         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
1374         gnulib/lib/signal.in.h, and now that we recommend to
1375         define-if-undefined those two symbols in application code,
1376         we must filter them out of the "significant" list.
1377         This avoids a "make syntax-check" failure in coreutils.
1378
1379 2011-07-26  Eric Blake  <eblake@redhat.com>
1380
1381         warnings: add comments about previous patch
1382         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
1383         * m4/include_next.m4: Likewise.
1384         * m4/warn-on-use.m4: Likewise.
1385         * m4/warnings.m4: Likewise, and simplify use.
1386         Suggested by Stefano Lattarini.
1387
1388         include-next, warnings: support older autoconf
1389         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
1390         AS_VAR_PUSHDEF in a way that works with older autoconf.
1391         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
1392         Reported by Daniel P. Berrange.
1393
1394 2011-07-25  Bruno Haible  <bruno@clisp.org>
1395
1396         fseek, ftell: Fix doc.
1397         * doc/posix-functions/fseek.texi: Reword statement about
1398         AC_SYS_LARGEFILE.
1399         * doc/posix-functions/ftell.texi: Likewise.
1400
1401 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
1402             Bruno Haible  <bruno@clisp.org>
1403
1404         Add dependencies to the 'largefile' module.
1405         * modules/fopen (Depends-on): Add 'largefile'.
1406         * modules/freopen (Depends-on): Likewise.
1407         * modules/fseeko (Depends-on): Likewise.
1408         * modules/ftello (Depends-on): Likewise.
1409         * modules/glob (Depends-on): Likewise.
1410         * modules/lseek (Depends-on): Likewise.
1411         * modules/lstat (Depends-on): Likewise.
1412         * modules/mkostemp (Depends-on): Likewise.
1413         * modules/mkostemps (Depends-on): Likewise.
1414         * modules/mkstemp (Depends-on): Likewise.
1415         * modules/mkstemps (Depends-on): Likewise.
1416         * modules/open (Depends-on): Likewise.
1417         * modules/openat (Depends-on): Likewise.
1418         * modules/pread (Depends-on): Likewise.
1419         * modules/pwrite (Depends-on): Likewise.
1420         * modules/scandir (Depends-on): Likewise.
1421         * modules/stat (Depends-on): Likewise.
1422         * modules/tmpfile (Depends-on): Likewise.
1423         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
1424         since the containing module now depends on the largefile module.
1425         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
1426         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
1427         off_t is fixed by gnulib.
1428         * doc/posix-functions/freopen.texi: Likewise.
1429         * doc/posix-functions/fseeko.texi: Likewise.
1430         * doc/posix-functions/fstatat.texi: Likewise.
1431         * doc/posix-functions/ftello.texi: Likewise.
1432         * doc/posix-functions/glob.texi: Likewise.
1433         * doc/posix-functions/lseek.texi: Likewise.
1434         * doc/posix-functions/lstat.texi: Likewise.
1435         * doc/posix-functions/mkstemp.texi: Likewise.
1436         * doc/posix-functions/open.texi: Likewise.
1437         * doc/posix-functions/openat.texi: Likewise.
1438         * doc/posix-functions/pread.texi: Likewise.
1439         * doc/posix-functions/pwrite.texi: Likewise.
1440         * doc/posix-functions/scandir.texi: Likewise.
1441         * doc/posix-functions/stat.texi: Likewise.
1442         * doc/posix-functions/tmpfile.texi: Likewise.
1443         * doc/glibc-functions/mkostemp.texi: Likewise.
1444         * doc/glibc-functions/mkostemps.texi: Likewise.
1445         * doc/glibc-functions/mkstemps.texi: Likewise.
1446
1447 2011-07-25  Bruno Haible  <bruno@clisp.org>
1448
1449         fcntl: Move AC_LIBOBJ invocation to module description.
1450         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
1451         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
1452
1453         fcntl: Remove call-in from fchdir.m4.
1454         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
1455         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
1456
1457         dup3: Remove potential call-in from fchdir.m4.
1458         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
1459         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
1460
1461         dup2: Move AC_LIBOBJ invocation to module description.
1462         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
1463         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
1464         Don't invoke AC_LIBOBJ.
1465         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
1466
1467         dup2: Remove call-in from fchdir.m4.
1468         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
1469         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
1470
1471         fclose: Move AC_LIBOBJ invocation to module description.
1472         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
1473         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
1474         to 1.
1475         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
1476
1477         fclose: Remove call-in from close.m4.
1478         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
1479         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
1480
1481         close: Move AC_LIBOBJ invocation to module description.
1482         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
1483         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
1484         1.
1485         * modules/close (configure.ac): Invoke AC_LIBOBJ.
1486
1487         close: Remove call-in from fchdir.m4.
1488         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
1489         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
1490
1491         open: Move AC_LIBOBJ invocation to module description.
1492         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
1493         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
1494         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
1495
1496         open: Remove call-in from fchdir.m4.
1497         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
1498         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
1499
1500         fchdir: Start to remove gl_REPLACE_* idiom.
1501         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
1502         (gl_FUNC_FCHDIR): Invoke it.
1503
1504 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
1505
1506         * lib/ftell.c (ftell): Comment out cast.
1507
1508         close: use gl_REPLACE_FCLOSE only if defined
1509         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
1510         is defined.  The close module doesn't depend on the fclose module
1511         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
1512         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
1513         I reproduced the problem with "./gnulib-tool --test close sys_socket".
1514
1515 2011-07-24  Jim Meyering  <meyering@redhat.com>
1516
1517         test-select.h: avoid warning when using gcc's -Wmissing-declarations
1518         * tests/test-select.h (test_function): Declare as "static".
1519
1520 2011-07-24  Bruno Haible  <bruno@clisp.org>
1521
1522         doc: Mention the effects of AC_SYS_LARGEFILE.
1523         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
1524         on this function.
1525         * doc/posix-functions/aio_error.texi: Likewise.
1526         * doc/posix-functions/aio_fsync.texi: Likewise.
1527         * doc/posix-functions/aio_read.texi: Likewise.
1528         * doc/posix-functions/aio_return.texi: Likewise.
1529         * doc/posix-functions/aio_suspend.texi: Likewise.
1530         * doc/posix-functions/aio_write.texi: Likewise.
1531         * doc/posix-functions/fgetpos.texi: Likewise.
1532         * doc/posix-functions/fopen.texi: Likewise.
1533         * doc/posix-functions/freopen.texi: Likewise.
1534         * doc/posix-functions/fsetpos.texi: Likewise.
1535         * doc/posix-functions/fstatvfs.texi: Likewise.
1536         * doc/posix-functions/ftruncate.texi: Likewise.
1537         * doc/posix-functions/ftw.texi: Likewise.
1538         * doc/posix-functions/getrlimit.texi: Likewise.
1539         * doc/posix-functions/glob.texi: Likewise.
1540         * doc/posix-functions/lio_listio.texi: Likewise.
1541         * doc/posix-functions/lockf.texi: Likewise.
1542         * doc/posix-functions/mkstemp.texi: Likewise.
1543         * doc/posix-functions/mmap.texi: Likewise.
1544         * doc/posix-functions/nftw.texi: Likewise.
1545         * doc/posix-functions/openat.texi: Likewise.
1546         * doc/posix-functions/opendir.texi: Likewise.
1547         * doc/posix-functions/posix_fadvise.texi: Likewise.
1548         * doc/posix-functions/posix_fallocate.texi: Likewise.
1549         * doc/posix-functions/pread.texi: Likewise.
1550         * doc/posix-functions/pwrite.texi: Likewise.
1551         * doc/posix-functions/readdir.texi: Likewise.
1552         * doc/posix-functions/readdir_r.texi: Likewise.
1553         * doc/posix-functions/rewinddir.texi: Likewise.
1554         * doc/posix-functions/scandir.texi: Likewise.
1555         * doc/posix-functions/seekdir.texi: Likewise.
1556         * doc/posix-functions/setrlimit.texi: Likewise.
1557         * doc/posix-functions/statvfs.texi: Likewise.
1558         * doc/posix-functions/telldir.texi: Likewise.
1559         * doc/posix-functions/tmpfile.texi: Likewise.
1560         * doc/posix-functions/truncate.texi: Likewise.
1561         * doc/glibc-functions/fallocate.texi: Likewise.
1562         * doc/glibc-functions/fstatfs.texi: Likewise.
1563         * doc/glibc-functions/fts_children.texi: Likewise.
1564         * doc/glibc-functions/fts_read.texi: Likewise.
1565         * doc/glibc-functions/getdirentries.texi: Likewise.
1566         * doc/glibc-functions/mkostemp.texi: Likewise.
1567         * doc/glibc-functions/mkostemps.texi: Likewise.
1568         * doc/glibc-functions/mkstemps.texi: Likewise.
1569         * doc/glibc-functions/preadv.texi: Likewise.
1570         * doc/glibc-functions/pwritev.texi: Likewise.
1571         * doc/glibc-functions/sendfile.texi: Likewise.
1572         * doc/glibc-functions/statfs.texi: Likewise.
1573
1574 2011-07-24  Bruno Haible  <bruno@clisp.org>
1575
1576         doc: Fix typo.
1577         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
1578
1579 2011-07-24  Bruno Haible  <bruno@clisp.org>
1580
1581         doc: Mention fsusage.
1582         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
1583
1584 2011-07-24  Bruno Haible  <bruno@clisp.org>
1585
1586         doc: Mention new glibc headers and functions.
1587         * doc/glibc-headers/gshadow.texi: New file.
1588         * doc/glibc-functions/endsgent.texi: New file.
1589         * doc/glibc-functions/fgetsgent.texi: New file.
1590         * doc/glibc-functions/fgetsgent_r.texi: New file.
1591         * doc/glibc-functions/getsgent.texi: New file.
1592         * doc/glibc-functions/getsgent_r.texi: New file.
1593         * doc/glibc-functions/getsgnam.texi: New file.
1594         * doc/glibc-functions/getsgnam_r.texi: New file.
1595         * doc/glibc-functions/putsgent.texi: New file.
1596         * doc/glibc-functions/setsgent.texi: New file.
1597         * doc/glibc-functions/sgetsgent.texi: New file.
1598         * doc/glibc-functions/sgetsgent_r.texi: New file.
1599         * doc/glibc-functions/malloc_info.texi: New file.
1600         * doc/glibc-functions/preadv.texi: New file.
1601         * doc/glibc-functions/pwritev.texi: New file.
1602         * doc/glibc-functions/register_printf_modifier.texi: New file.
1603         * doc/glibc-functions/register_printf_specifier.texi: New file.
1604         * doc/glibc-functions/register_printf_type.texi: New file.
1605         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
1606         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
1607         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
1608         * doc/glibc-functions/pthread_getname_np.texi: New file.
1609         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
1610         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
1611         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
1612         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
1613         * doc/glibc-functions/pthread_setname_np.texi: New file.
1614         * doc/glibc-functions/pthread_sigqueue.texi: New file.
1615         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
1616         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
1617         * doc/glibc-functions/qsort_r.texi: New file.
1618         * doc/glibc-functions/quick_exit.texi: New file.
1619         * doc/glibc-functions/syncfs.texi: New file.
1620         * doc/gnulib.texi: Include them.
1621         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
1622         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
1623         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
1624         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
1625         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
1626         * doc/glibc-functions/execvpe.texi: Likewise.
1627
1628 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
1629
1630         ftell: don't include <unistd.h>
1631         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
1632         guaranteed to define off_t, and the ftell module depends on the
1633         stdio module.
1634
1635         ftell: do not assume wraparound signed arithmetic
1636         * lib/ftell.c: Include <limits.h>.
1637         (ftell): Don't assume wraparound signed arithmetic.
1638
1639 2011-07-24  Bruno Haible  <bruno@clisp.org>
1640
1641         close: No longer depend on module 'fclose'.
1642         * modules/close (Depends-on): Remove fclose.
1643         * NEWS: Mention the change.
1644         Suggested by Sam Steingold <sds@gnu.org>.
1645
1646 2011-07-24  Bruno Haible  <bruno@clisp.org>
1647
1648         fsusage: Enable large volume support on AIX >= 5.2.
1649         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
1650         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
1651         instead of STAT_STATVFS.
1652         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
1653
1654         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
1655         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
1656         f_blocks field only on MacOS X.
1657
1658         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
1659         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
1660         * modules/fsusage (Depends-on): Add largefile.
1661
1662 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
1663
1664         * README: Modernize discussion of signed integers.
1665         Assuming overflow wraparound is no longer safe.
1666         Mention ones' complement and signed magnitude.
1667
1668 2011-07-22  Bruno Haible  <bruno@clisp.org>
1669
1670         select tests, pselect tests: Refactor.
1671         * tests/test-select.h: New file, extracted from tests/test-select.c.
1672         (select_fn): New type.
1673         (test, do_select, do_select_nowait, do_select_wait, test_tty,
1674         test_connect_first, test_accept_first, test_pair, test_socket_pair,
1675         test_pipe): Add my_select argument.
1676         (test_function): Renamed from main. Add my_select argument.
1677         * tests/test-select.c: Move most code to tests/test-select.h. Include
1678         test-select.h.
1679         * modules/select-tests (Files): Add tests/test-select.h.
1680         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
1681         (my_select, main): New functions.
1682         * modules/pselect-tests (Files): Add tests/test-select.h,
1683         tests/macros.h, tests/signature.h.
1684         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
1685         (configure.ac): Check for <sys/wait.h>.
1686
1687 2011-07-22  Bruno Haible  <bruno@clisp.org>
1688
1689         sys_select tests: Check the signature of FD_*.
1690         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
1691         signature tests from here...
1692         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
1693         here.
1694         * modules/sys_select-tests (Files): Add tests/signature.h.
1695
1696 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
1697
1698         largefile: new module, replacing large-inode
1699         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
1700         * MODULES.html.sh: Add largefile, remove large-inode.
1701         * modules/largefile, m4/largefile.m4: New files.
1702         * modules/large-inode, m4/large-inode.m4: Remove.
1703
1704         fsusage: port to MacOS X 10.7 with 4 TiB file systems
1705         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
1706         implementations that use only 32 bits to count blocks.
1707         On typical hosts with 1024-byte blocks, this fails with file
1708         systems as small as 4 TiB.  Problem reported by Herb Wartens
1709         <http://debbugs.gnu.org/9140> and this should also fix a similar
1710         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
1711
1712         large-inode: New module
1713         * MODULES.html.sh: Add it.
1714         * modules/large-inode, m4/large-inode.m4: New files.
1715
1716         extensions: Enable extensions on MacOS X 10.5 and later.
1717         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
1718
1719 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
1720
1721         file-has-acl: use acl_extended_file_nofollow if available
1722         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
1723         (acl_extended_file): New macro.
1724         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
1725         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
1726
1727 2011-07-21  Bruno Haible  <bruno@clisp.org>
1728
1729         Declare system functions in a way that works with C++.
1730         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
1731         declare fdopendir as extern "C".
1732         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
1733         declare frexpl as extern "C".
1734         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
1735         declare gai_strerror as extern "C".
1736         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
1737         programs, declare gai_strerror as extern "C".
1738         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
1739         declare getlogin_r as extern "C".
1740         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
1741         as extern "C".
1742         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
1743         declare ldexpl as extern "C".
1744         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
1745         as extern "C".
1746         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
1747         program, declare getmntinfo as extern "C".
1748         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
1749         stpncpy as extern "C".
1750         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
1751         program, declare __xpg_strerror_r as extern "C".
1752         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
1753         strndup as extern "C".
1754         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
1755         declare memset and bzero as extern "C".
1756         Reported by Sam Steingold <sds@gnu.org>.
1757
1758 2011-07-12  Jim Meyering  <meyering@redhat.com>
1759
1760         maint.mk: prohibit inclusion of "verify.h" without use
1761         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
1762
1763 2011-07-19  Pádraig Brady  <P@draigBrady.com>
1764
1765         timer-time: A new module to check for timer_settime()
1766         * m4/timer_time.m4: Check for the posix function.
1767         * modules/timer-time: Add the new module.
1768         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
1769         Mention it.
1770
1771 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
1772             Bruno Haible  <bruno@clisp.org>
1773
1774         pthread_sigmask: assume POSIX threads if --avoid=threadlib
1775         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
1776         not defined, assume POSIX threads and look for pthread_sigmask in
1777         $LIBS, without changing $CPPFLAGS.
1778
1779 2011-07-19  Bruno Haible  <bruno@clisp.org>
1780
1781         strstr: Update cross-compilation guess.
1782         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
1783         CPUs, guess no, in view of glibc
1784         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
1785         Suggested by Eric Blake. Reported by Reuben Thomas.
1786
1787 2011-07-19  Pádraig Brady  <P@draigBrady.com>
1788
1789         getopt-gnu: suppress core dumps from detection code
1790         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
1791         to suppress core dumps that may well occur on glibc systems.
1792         * modules/getopt-gnu: Depend on nocrash.
1793
1794 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
1795
1796         pthread_sigmask: ensure usleep is declared
1797         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
1798         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
1799
1800 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
1801
1802         doc: Document NonStop portability issues.
1803         * doc/posix-functions/sigaction.texi (sigaction):
1804         * doc/posix-headers/signal.texi (signal.h):
1805         Document NonStop.  See Joachim Schmitz in
1806         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
1807
1808 2011-07-15  Bruno Haible  <bruno@clisp.org>
1809
1810         ffsl, ffsll: Avoid unportable behaviour.
1811         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
1812
1813 2011-07-15  Bruno Haible  <bruno@clisp.org>
1814
1815         ffs: More tests.
1816         * tests/test-ffs.c (NBITS): New macro.
1817         (main): Add more tests.
1818         * tests/test-ffsl.c (NBITS): New macro.
1819         (main): Add more tests.
1820         * tests/test-ffsll.c (NBITS): New macro.
1821         (main): Add more tests.
1822
1823 2011-07-15  Eric Blake  <eblake@redhat.com>
1824
1825         ffsl, ffsll: new modules
1826         * modules/ffsl: New file.
1827         * modules/ffsll: Likewise.
1828         * m4/ffsl.m4: Likewise.
1829         * m4/ffsll.m4: Likewise.
1830         * lib/ffsl.c: Likewise.
1831         * lib/ffsl.h: Likewise.
1832         * lib/ffsll.c: Likewise.
1833         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
1834         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
1835         * modules/string (Makefile.am): Substitute witnesses.
1836         * lib/strings.in.h (ffsl, ffsll): Declare.
1837         * modules/ffsl-tests: New test file.
1838         * modules/ffsll-tests: Likewise.
1839         * tests/test-ffsl.c: Likewise.
1840         * tests/test-ffsll.c: Likewise.
1841         * MODULES.html.sh (Integer arithmetic functions): Mention it.
1842         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
1843         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
1844
1845         ffs: fix m4 prerequisite
1846         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
1847
1848         ffs: avoid undefined behavior
1849         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
1850         * tests/test-ffs.c (naive, main): Avoid signed shifts.
1851         Reported by Bruno Haible.
1852
1853 2011-07-12  Bruno Haible  <bruno@clisp.org>
1854
1855         pthread_sigmask: Rely on module 'threadlib'.
1856         * modules/pthread_sigmask (Depends-on): Add threadlib.
1857         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
1858         is defined.
1859
1860 2011-07-12  Bruno Haible  <bruno@clisp.org>
1861
1862         regex: Depend on module 'strcase'.
1863         * modules/regex (Depends-on): Add strcase, for strcasecmp().
1864
1865 2011-07-12  Jim Meyering  <meyering@redhat.com>
1866
1867         warn-on-use: fix typo in file name
1868         * modules/snippet/warn-on-use (Files): Correct file name:
1869         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
1870
1871 2011-07-12  Bruno Haible  <bruno@clisp.org>
1872
1873         strings: Document module.
1874         * doc/posix-headers/strings.texi: Mention module 'strings'.
1875
1876 2011-07-12  Bruno Haible  <bruno@clisp.org>
1877
1878         Rename module '_Noreturn' to 'snippet/_Noreturn'.
1879         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
1880         (Files, Makefile.am): Update.
1881         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
1882         * modules/stdlib (Depends-on): Update.
1883
1884 2011-07-12  Bruno Haible  <bruno@clisp.org>
1885
1886         * NEWS: Mention the changes.
1887
1888         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
1889         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
1890         (Files, Makefile.am): Update.
1891         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
1892         * modules/arpa_inet (Depends-on): Update.
1893         * modules/ctype (Depends-on): Update.
1894         * modules/dirent (Depends-on): Update.
1895         * modules/fcntl-h (Depends-on): Update.
1896         * modules/glob (Depends-on): Update.
1897         * modules/iconv-h (Depends-on): Update.
1898         * modules/inttypes-incomplete (Depends-on): Update.
1899         * modules/langinfo (Depends-on): Update.
1900         * modules/locale (Depends-on): Update.
1901         * modules/math (Depends-on): Update.
1902         * modules/netdb (Depends-on): Update.
1903         * modules/poll-h (Depends-on): Update.
1904         * modules/pty (Depends-on): Update.
1905         * modules/search (Depends-on): Update.
1906         * modules/signal (Depends-on): Update.
1907         * modules/spawn (Depends-on): Update.
1908         * modules/stdio (Depends-on): Update.
1909         * modules/stdlib (Depends-on): Update.
1910         * modules/string (Depends-on): Update.
1911         * modules/strings (Depends-on): Update.
1912         * modules/sys_file (Depends-on): Update.
1913         * modules/sys_ioctl (Depends-on): Update.
1914         * modules/sys_select (Depends-on): Update.
1915         * modules/sys_socket (Depends-on): Update.
1916         * modules/sys_stat (Depends-on): Update.
1917         * modules/sys_time (Depends-on): Update.
1918         * modules/sys_times (Depends-on): Update.
1919         * modules/sys_utsname (Depends-on): Update.
1920         * modules/sys_wait (Depends-on): Update.
1921         * modules/termios (Depends-on): Update.
1922         * modules/time (Depends-on): Update.
1923         * modules/unistd (Depends-on): Update.
1924         * modules/wchar (Depends-on): Update.
1925         * modules/wctype-h (Depends-on): Update.
1926         * MODULES.html.sh (Support for building libraries and executables):
1927         Update.
1928
1929         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
1930         * modules/snippet/unused-parameter: Renamed from
1931         modules/unused-parameter.
1932         (Files, Makefile.am): Update.
1933         * build-aux/snippet/unused-parameter.h: Renamed from
1934         build-aux/unused-parameter.h.
1935         * modules/selinux-h (Depends-on): Update.
1936         * modules/unistr/base (Depends-on): Update.
1937         * MODULES.html.sh (Core language properties): Update.
1938
1939         Rename module 'link-warning' to 'snippet/link-warning'.
1940         * modules/snippet/link-warning: Renamed from modules/link-warning.
1941         (Files, Makefile.am): Update.
1942         * build-aux/snippet/link-warning.h: Renamed from
1943         build-aux/link-warning.h.
1944         * MODULES.html.sh (Support for building libraries and executables):
1945         Update.
1946
1947         Rename module 'c++defs' to 'snippet/c++defs'.
1948         * modules/snippet/c++defs: Renamed from modules/c++defs.
1949         (Files, Makefile.am): Update.
1950         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
1951         * modules/arpa_inet (Depends-on): Update.
1952         * modules/ctype (Depends-on): Update.
1953         * modules/dirent (Depends-on): Update.
1954         * modules/fcntl-h (Depends-on): Update.
1955         * modules/glob (Depends-on): Update.
1956         * modules/iconv-h (Depends-on): Update.
1957         * modules/langinfo (Depends-on): Update.
1958         * modules/locale (Depends-on): Update.
1959         * modules/math (Depends-on): Update.
1960         * modules/netdb (Depends-on): Update.
1961         * modules/poll-h (Depends-on): Update.
1962         * modules/pty (Depends-on): Update.
1963         * modules/search (Depends-on): Update.
1964         * modules/signal (Depends-on): Update.
1965         * modules/spawn (Depends-on): Update.
1966         * modules/stdio (Depends-on): Update.
1967         * modules/stdlib (Depends-on): Update.
1968         * modules/string (Depends-on): Update.
1969         * modules/strings (Depends-on): Update.
1970         * modules/sys_ioctl (Depends-on): Update.
1971         * modules/sys_select (Depends-on): Update.
1972         * modules/sys_socket (Depends-on): Update.
1973         * modules/sys_stat (Depends-on): Update.
1974         * modules/sys_time (Depends-on): Update.
1975         * modules/sys_wait (Depends-on): Update.
1976         * modules/termios (Depends-on): Update.
1977         * modules/time (Depends-on): Update.
1978         * modules/unistd (Depends-on): Update.
1979         * modules/wchar (Depends-on): Update.
1980         * modules/wctype-h (Depends-on): Update.
1981
1982         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
1983         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
1984         (Files, Makefile.am): Update.
1985         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
1986         * modules/argv-iter (Depends-on): Update.
1987         * modules/arpa_inet (Depends-on): Update.
1988         * modules/dirent (Depends-on): Update.
1989         * modules/fcntl-h (Depends-on): Update.
1990         * modules/fnmatch (Depends-on): Update.
1991         * modules/getopt-posix (Depends-on): Update.
1992         * modules/glob (Depends-on): Update.
1993         * modules/iconv-h (Depends-on): Update.
1994         * modules/inttypes-incomplete (Depends-on): Update.
1995         * modules/locale (Depends-on): Update.
1996         * modules/math (Depends-on): Update.
1997         * modules/netdb (Depends-on): Update.
1998         * modules/search (Depends-on): Update.
1999         * modules/signal (Depends-on): Update.
2000         * modules/spawn (Depends-on): Update.
2001         * modules/stdio (Depends-on): Update.
2002         * modules/stdlib (Depends-on): Update.
2003         * modules/string (Depends-on): Update.
2004         * modules/strings (Depends-on): Update.
2005         * modules/sys_socket (Depends-on): Update.
2006         * modules/sys_stat (Depends-on): Update.
2007         * modules/sys_time (Depends-on): Update.
2008         * modules/sys_times (Depends-on): Update.
2009         * modules/sys_utsname (Depends-on): Update.
2010         * modules/time (Depends-on): Update.
2011         * modules/unistd (Depends-on): Update.
2012         * modules/wchar (Depends-on): Update.
2013         * MODULES.html.sh (Support for building libraries and executables):
2014         Update.
2015
2016 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
2017
2018         Improvements on _Noreturn and related modules.
2019
2020         modules/_Exit-tests: test _Noreturn too
2021         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
2022         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
2023         (main): Use them.
2024
2025         stdnoreturn, stdnoreturn-tests: remove modules
2026         They're not needed here and a bit premature for use elsewhere.  See
2027         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
2028         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
2029         * tests/test-stdnoreturn.c: Remove files.
2030         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
2031         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
2032         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
2033         and using noreturn.
2034         * modules/openat, modules/sigpipe-die, modules/xalloc:
2035         * modules/xmemdup0, modules/xstrtol:
2036         Remove dependency on stdnoreturn.
2037
2038         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
2039         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
2040         Reparenthesize to avoid GCC warning.
2041         Support Microsoft's syntax.
2042         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
2043
2044         _Noreturn-tests: remove module
2045         * modules/_Noreturn-tests: Remove.
2046         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
2047         * tests/test-_Noreturn.c: Remove.
2048         * tests/test-stdnoreturn.c: Merge from the old
2049         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
2050
2051 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
2052
2053         _Noreturn, stdnoreturn, and related modules.
2054
2055         * top/maint.mk: Adjust to new noreturn support.
2056         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
2057         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
2058
2059         xalloc: use stdnoreturn.h
2060         * lib/xalloc.h: Include <stdnoreturn.h>.
2061         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
2062         * modules/xalloc (Depends-on): Add stdnoreturn.
2063
2064         xstrtol: use stdnoreturn.h
2065         * lib/xstrtol.h: Include <stdnoreturn.h>.
2066         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
2067         * modules/xstrtol (Depends-on): Add stdnoreturn.
2068
2069         xmemdup0: use stdnoreturn.h
2070         * lib/xmemdup0.h: Include <stdnoreturn.h>.
2071         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
2072         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
2073
2074         sigpipe-die: use stdnoreturn.h
2075         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
2076         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
2077         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
2078
2079         openat: use stdnoreturn.h
2080         * lib/openat.h: Include <stdnoreturn.h>.
2081         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
2082         * modules/openat (Depends-on): Add stdnoreturn.
2083
2084         * lib/openat-die.c (openat_save_fail): Modernize comment.
2085
2086         * lib/xalloc-die.c (xalloc_die): Modernize comment.
2087
2088         * lib/glthread/thread.h: Modernize comment.
2089
2090         obstack: use _Noreturn
2091         * lib/obstack.c (__attribute__): Remove macro.
2092         (print_and_abort): Use _Noreturn.
2093
2094         c-stack: use _Noreturn
2095         * lib/c-stack.c (die, overflow_handler, segv_handler):
2096         Use _Noreturn rather than __attribute__((noreturn)).
2097
2098         argmatch-tests, exclude_tests: use _Noreturn
2099         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
2100         Remove.
2101         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
2102
2103         stdlib: use _Noreturn
2104         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
2105         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
2106         * modules/stdlib (Depends-on): Add _Noreturn.
2107         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
2108
2109         stdnoreturn-tests: new module
2110         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
2111
2112         stdnoreturn: new module
2113         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
2114         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
2115
2116         _Noreturn-tests: new module
2117         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
2118
2119         _Noreturn: new module
2120         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
2121         New section, mentioning it.
2122         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
2123
2124         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
2125
2126 2011-07-11  Eric Blake  <eblake@redhat.com>
2127
2128         ffs: new module
2129         * modules/ffs: New file.
2130         * m4/ffs.m4: Likewise.
2131         * lib/ffs.c: Likewise.
2132         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
2133         * modules/strings (Makefile.am): Substitute witness.
2134         (Depends-on): Add c++defs.
2135         * lib/strings.in.h (ffs): Declare.
2136         * modules/ffs-tests: New test file.
2137         * tests/test-ffs.c: Test new module.
2138         * MODULES.html.sh (Integer arithmetic functions): Mention it.
2139         * doc/posix-functions/ffs.texi (ffs): Likewise.
2140
2141         regex: avoid compiler warning
2142         * lib/regex.c (includes): Include <strings.h>, for use of
2143         strcasecmp in regcomp.c.
2144         Reported by Joachim Schmitz.
2145
2146 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
2147
2148         stdint: respect system's intmax_t if INTMAX_MAX
2149         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
2150         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
2151         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
2152         long but int64_t is long long, and where we will clash with the
2153         system intmax_t if we override it.  See
2154         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
2155         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
2156         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
2157         similarly for UINTMAX_C.
2158
2159 2011-07-08  Bruno Haible  <bruno@clisp.org>
2160
2161         pthread_sigmask tests: Avoid a compiler warning.
2162         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
2163         non-zero.
2164
2165         sigprocmask tests: A better way to avoid a compiler warning.
2166         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
2167         (main): Complain if system() returns non-zero.
2168         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
2169
2170 2011-07-08  Bruno Haible  <bruno@clisp.org>
2171
2172         pthread_sigmask: Work around IRIX bug.
2173         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
2174         bug.
2175         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
2176         there may be unblocked pending signals.
2177         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
2178
2179 2011-07-08  Bruno Haible  <bruno@clisp.org>
2180
2181         pthread_sigmask: Work around Cygwin bug.
2182         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
2183         bug.
2184         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
2185         the system's pthread_sigmask function.
2186         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
2187
2188 2011-07-08  Bruno Haible  <bruno@clisp.org>
2189
2190         pthread_sigmask: Work around bug in single-threaded implementation.
2191         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
2192         FreeBSD, HP-UX, Solaris bug.
2193         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
2194         * lib/pthread_sigmask.c: Include <stddef.h>.
2195         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
2196         the system's pthread_sigmask function.
2197         * modules/pthread_sigmask (configure.ac): Invoke
2198         gl_PREREQ_PTHREAD_SIGMASK.
2199         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
2200         HP-UX, Solaris.
2201
2202 2011-07-08  Eric Blake  <eblake@redhat.com>
2203
2204         test-sigprocmask: avoid compiler warning
2205         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
2206         * tests/test-sigprocmask.c (main): Use it to silence warning.
2207         Reported by Jim Meyering.
2208
2209         test-snprintf: avoid compiler warning
2210         * tests/test-snprintf.c (main): Avoid shadowed declaration.
2211         * tests/test-vsnprintf.c (main): Likewise.
2212         Reported by Jim Meyering.
2213
2214 2011-07-08  Bruno Haible  <bruno@clisp.org>
2215
2216         Tests for module 'pthread_sigmask'.
2217         * modules/pthread_sigmask-tests: New file.
2218         * tests/test-pthread_sigmask1.c: New file, based on
2219         tests/test-sigprocmask.c.
2220         * tests/test-pthread_sigmask2.c: New file.
2221
2222 2011-07-08  Jim Meyering  <meyering@redhat.com>
2223
2224         test-getopt.h: avoid warning about an unused variable
2225         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
2226
2227 2011-07-07  Jim Meyering  <meyering@redhat.com>
2228
2229         maint: reduce list of files exempt from sc_prohibit_leading_TABs
2230         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
2231         now that it no longer contains leading TABs.
2232         Remove unused "url=FIXME" statement.
2233
2234 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
2235
2236         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
2237         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
2238         When gl_THREADLIB is not in use, assume that the POSIX sematics
2239         are desired.  This is better for Emacs, which uses POSIX semantics
2240         on GNUish and/or POSIXish platforms, and does not use threads at
2241         all otherwise.
2242
2243         pthread_sigmask: fix typo when testing for libraries
2244         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
2245         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
2246
2247 2011-07-08  Eric Blake  <eblake@redhat.com>
2248
2249         fts: introduce FTS_NOATIME
2250         * lib/fts_.h (FTS_NOATIME): New bit flag.
2251         (FTS_OPTIONMASK): Adjust.
2252         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
2253         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
2254
2255 2011-07-08  Bruno Haible  <bruno@clisp.org>
2256
2257         Tests for module 'thread'.
2258         * modules/thread-tests: New file.
2259         * tests/test-thread_self.c: New file.
2260         * tests/test-thread_create.cc: New file.
2261
2262 2011-07-08  Bruno Haible  <bruno@clisp.org>
2263
2264         thread: Avoid gcc warnings when using gl_thread_self().
2265         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
2266         'void *'.
2267         (gl_thread_self_pointer): Update.
2268
2269 2011-07-07  Bruno Haible  <bruno@clisp.org>
2270
2271         signal-c++-tests: Check declaration of pthread_sigmask.
2272         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
2273         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
2274         $(LIB_PTHREAD_SIGMASK).
2275
2276 2011-07-07  Bruno Haible  <bruno@clisp.org>
2277
2278         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
2279         * lib/signal.in.h (pthread_sigmask): Override if
2280         REPLACE_PTHREAD_SIGMASK is 1.
2281         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
2282         REPLACE_PTHREAD_SIGMASK.
2283         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
2284         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
2285         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
2286         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
2287         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
2288
2289 2011-07-07  Bruno Haible  <bruno@clisp.org>
2290
2291         pthread_sigmask: Ensure declaration in <signal.h>.
2292         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
2293         include <pthread.h>.
2294         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
2295         problem.
2296
2297 2011-07-07  Bruno Haible  <bruno@clisp.org>
2298
2299         pthread_sigmask: Document the module.
2300         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
2301
2302 2011-07-07  Bruno Haible  <bruno@clisp.org>
2303
2304         pthread_sigmask: Follow gnulib conventions.
2305         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
2306         gl_PTHREAD_SIGMASK.
2307         * modules/pthread_sigmask (configure.ac): Update.
2308
2309 2011-07-07  Bruno Haible  <bruno@clisp.org>
2310
2311         pthread_sigmask: Make declaration C++ safe.
2312         * lib/signal.in.h: In two special conditions, just do an #include_next.
2313         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
2314         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
2315         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
2316         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
2317         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
2318         not REPLACE_PTHREAD_MASK.
2319         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
2320         not REPLACE_PTHREAD_MASK.
2321         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
2322
2323 2011-07-07  Bruno Haible  <bruno@clisp.org>
2324
2325         pthread_sigmask: Fix return value.
2326         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
2327         * lib/pthread_sigmask.c: New file.
2328         * modules/pthread_sigmask (Files): Add it.
2329         (configure.ac): Invoke AC_LIBOBJ.
2330
2331 2011-07-07  Eric Blake  <eblake@redhat.com>
2332
2333         getopt: more portable argv creation
2334         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
2335         const, use char arrays rather than strings.
2336         Suggested by Paul Eggert.
2337
2338 2011-07-07  Bruno Haible  <bruno@clisp.org>
2339
2340         Tests for module 'sigprocmask'.
2341         * modules/sigprocmask-tests: New file.
2342         * tests/test-sigprocmask.c: New file.
2343
2344 2011-07-07  Bruno Haible  <bruno@clisp.org>
2345
2346         float tests: Tweak.
2347         * tests/test-float.c (main): Tweak skip message.
2348
2349 2011-07-07  Eric Blake  <eblake@redhat.com>
2350
2351         getopt: avoid compiler warning during configure
2352         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
2353         assigning string literals to non-const pointer.
2354
2355         getopt-gnu: avoid crash in glibc getopt
2356         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
2357         * tests/test-getopt.h (test_getopt): Enhance test.
2358         * tests/test-getopt_long.h (test_getopt_long): Likewise.
2359         * doc/posix-functions/getopt.texi (getopt): Document it.
2360         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
2361         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
2362         Likewise.
2363
2364 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
2365
2366         getopt: handle W; without long options in getopt [BZ #12922]
2367         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
2368         but no long options are defined, just return 'W'.
2369
2370 2011-07-07  Bruno Haible  <bruno@clisp.org>
2371
2372         Avoid literal tabs.
2373         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
2374         variable containing a tab instead of a literal tab.
2375         Reported by Jim Meyering.
2376
2377 2011-07-07  Bruno Haible  <bruno@clisp.org>
2378
2379         Comments.
2380         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
2381
2382 2011-07-06  Bruno Haible  <bruno@clisp.org>
2383
2384         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
2385         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
2386         <winsock2.h>.
2387         (rpl_fd_isset, FD_ISSET): New definitions, copied from
2388         lib/sys_socket.in.h.
2389         (close, gethostname): Hide declarations from <winsock2.h>.
2390         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
2391         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
2392         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
2393         (select): Don't override if gnulib's <sys/select.h> was already
2394         included.
2395         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
2396         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
2397         setsockopt, shutdown, select): Tweak indentation.
2398
2399 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2400
2401         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
2402         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
2403         in an application that does not use the sys_select module.
2404
2405 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
2406
2407         poll: do not return 0 on timeout=-1
2408         * lib/poll.c: Loop with yield if no events occured
2409
2410 2011-07-06  Eric Blake  <eblake@redhat.com>
2411
2412         pthread_sigmask: always replace when not using pthread
2413         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
2414         replacement when using some threading other than pthread.  Fix
2415         logic bug.
2416
2417 2011-07-06  Bruno Haible  <bruno@clisp.org>
2418
2419         Comments.
2420         * m4/printf.m4: Update comments about mingw.
2421
2422 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2423
2424         sys_select: define sigset_t more portably
2425         * lib/sys_select.in.h: Always include <sys/types.h>, since
2426         we now need sigset_t and mingw defines it there.
2427         Include <signal.h> before split inclusion guard, to avoid
2428         mishaps on Solaris, whose <signal.h> eventually includes us.
2429         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
2430         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
2431         which come from ...
2432         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
2433         gl_CHECK_TYPE_SIGSET_T.
2434         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
2435         does the real work.
2436         * modules/sys_select (Depends-on): Add 'signal'.
2437
2438         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
2439         Suggested by Bruno Haible.
2440
2441         pselect: Use pthread_sigmask, not sigprocmask.
2442         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
2443         multithreaded apps better than sigprocmask does.
2444         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
2445         sigprocmask directly.
2446
2447 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
2448
2449         * lib/pselect.c (pselect): Use plain name, without "rpl_".
2450         Don't #undef,  since we don't need any underlying pselect.
2451         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
2452         (Depends-on): Add select.
2453         (Link): Add $(LIBSOCKET).
2454         These changes suggested by Bruno Haible.
2455
2456         pselect: document better
2457         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
2458         * doc/posix-functions/pselect.texi (pselect): Document new module.
2459
2460         pthread_sigmask: new module
2461         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
2462         * doc/posix-functions/pthread_sigmask.texi: Document new module.
2463         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
2464         This is done only as a macro; I don't know how well that'll
2465         work for C++.  Move <sys/types.h> include before the include_next,
2466         to avoid mishap on Solaris.
2467         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
2468         * modules/signal (Makefile.am): Substitute the check's results.
2469         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
2470
2471         test-pselect: new module
2472         * modules/pselect-tests, tests/test-pselect.c: New files.
2473         * tests/test-select.c, tests/test-sys_select-c++.cc:
2474         If TEST_PSELECT is defined, test pselect instead of testing select.
2475
2476         * tests/test-sys_select.c (sigset_t): Test for it, too.
2477         Suggested by Bruno Haible.
2478
2479 2011-07-05  Eric Blake  <eblake@redhat.com>
2480
2481         snprintf: guarantee %1$d, for libintl
2482         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
2483         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
2484         * doc/posix-functions/snprintf.texi (snprintf): Update.
2485         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
2486         * tests/test-snprintf.c (main): Enhance test.
2487         * tests/test-vsnprintf.c (main): Likewise.
2488
2489 2011-07-05  Jim Meyering  <meyering@redhat.com>
2490
2491         maint: exempt stdio-read.c and stdio-write.c from the cppi check
2492         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
2493         per Bruno's request, to accommodate this idiom (no space after "#")
2494         even when the function is inside an #if block:
2495         char *
2496         gets (char *s)
2497         #undef gets
2498         {
2499           ...
2500         }
2501
2502 2011-07-04  Jim Meyering  <meyering@redhat.com>
2503
2504         maint: indent with spaces, not TABs, and add a rule to check this
2505         * tests/test-userspec.c: Indent with spaces, not TABs.
2506         * tests/test-argp.c: Likewise.
2507         * tests/test-c-stack2.sh: Likewise.
2508         * tests/test-parse-duration.sh: Likewise
2509         * m4/strtod.m4: Likewise.
2510         * m4/alloca.m4: Likewise.
2511         * m4/pselect.m4: Likewise.
2512         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
2513
2514 2011-07-03  Jim Meyering  <meyering@redhat.com>
2515
2516         maint.mk: correct omissions in prohibit_argmatch_without_use check
2517         This rule would mistakenly report that argmatch.h is included without
2518         use even when both the argmatch and invalid_arg macro were used.
2519         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
2520         of argmatch and invalid_arg.
2521
2522 2011-07-03  Bruno Haible  <bruno@clisp.org>
2523
2524         Comments about EINTR.
2525         * lib/safe-read.h: Explain the purpose of this module.
2526         * lib/safe-write.h: Likewise.
2527         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
2528         module.
2529         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
2530         module.
2531         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2532
2533 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
2534
2535         xnanosleep: Rewrite to use new dtotimespec module.
2536         It has the conversion code that used to be in xnanosleep.
2537         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
2538         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
2539         (TIME_T_MAX): Remove.
2540         (xnanosleep): Rewrite in terms of dtotimespec.
2541         * modules/xnanosleep (Depends-on): Add dtotimespec.
2542         Remove intprops, stdbool.
2543
2544         timespec-add, timespec-sub: new modules
2545         * lib/timespec.h (timespec_add, timespec_sub): New decls.
2546         * lib/timespec-add.c, lib/timespec-sub.c:
2547         * modules/timespec-add, modules/timespec-sub: New files.
2548
2549         dtotimespec: new module
2550         * lib/timespec.h (dtotimespec): New decl.
2551         * lib/dtotimespec.c, modules/dtotimespec: New files.
2552
2553         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
2554
2555         pselect: new module
2556         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
2557         (pselect): New decls.
2558         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
2559         since the standard pselect decl uses 'restrict'.
2560         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
2561         HAVE_PSELECT, REPLACE_PSELECT.
2562         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
2563         HAVE_PSELECT, REPLACE_PSELECT.
2564         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
2565
2566         sys_select: don't depend on sys_socket
2567         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
2568         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
2569         This fix works on GNU and GNU-like platforms, but has not been tested
2570         on native Windows.
2571         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
2572         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
2573         gl_HEADER_SYS_SOCKET.
2574         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
2575         gl_PREREQ_SYS_H_WINSOCK2.
2576
2577 2011-06-29  Eric Blake  <eblake@redhat.com>
2578
2579         pipe2: fix C89 compile problem
2580         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
2581         Reported by Bruno Haible.
2582
2583         pipe, pipe2: don't corrupt fd on error
2584         * lib/pipe.c (pipe): Leave fd unchanged on error.
2585         * lib/pipe2.c (pipe2): Likewise.
2586         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
2587         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
2588
2589 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
2590
2591         mmap-anon: do not use regular expressions inadvertently
2592         * m4/mmap-anon.m4: Remove trailing period from strings sought
2593         in the output.
2594
2595 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
2596
2597         nanosleep: fix integer overflow problem
2598         * lib/nanosleep.c (my_usleep): Don't assume signed integer
2599         arithmetic wraps around on overflow.
2600
2601         nanosleep: simplify carrying
2602         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
2603         first call to the underyling nanosleep, not for the last one.
2604         This doesn't fix any bugs, but it simplifies the computation of
2605         the remaining delay.  Found while auditing integer overflow issues.
2606
2607         dup2: remove test for existence of fcntl
2608         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
2609         "#if HAVE_FCNTL", in the configure-time test program.
2610         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
2611         and therefore speeds up "configure" a bit.  Found while
2612         adding the dup2 module to Emacs.
2613
2614 2011-06-24  Eric Blake  <eblake@redhat.com>
2615
2616         maint.mk: enhance useless header checks
2617         * top/maint.mk (_sc_header_without_use): Check both include
2618         styles.
2619         (sc_prohibit_assert_without_use)
2620         (sc_prohibit_close_stream_without_use)
2621         (sc_prohibit_getopt_without_use)
2622         (sc_prohibit_quotearg_without_use)
2623         (sc_prohibit_quote_without_use)
2624         (sc_prohibit_long_options_without_use)
2625         (sc_prohibit_inttostr_without_use)
2626         (sc_prohibit_ignore_value_without_use)
2627         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
2628         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
2629         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
2630         (sc_prohibit_hash_pjw_without_use)
2631         (sc_prohibit_safe_read_without_use)
2632         (sc_prohibit_argmatch_without_use)
2633         (sc_prohibit_canonicalize_without_use)
2634         (sc_prohibit_root_dev_ino_without_use)
2635         (sc_prohibit_openat_without_use)
2636         (sc_prohibit_c_ctype_without_use)
2637         (sc_prohibit_signal_without_use)
2638         (sc_prohibit_stdio--_without_use)
2639         (sc_prohibit_stdio-safer_without_use)
2640         (sc_prohibit_strings_without_use)
2641         (sc_prohibit_intprops_without_use)
2642         (sc_prohibit_stddef_without_use)
2643         (sc_prohibit_xfreopen_without_use): Update clients.
2644
2645 2011-06-24  Jim Meyering  <meyering@redhat.com>
2646
2647         syntax-check: keep one maint.mk rule in sync with its header
2648         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
2649         of the bug Eric has just fixed, with today's commit 25e4c2ec.
2650         I prefer to avoid temporary files here, so use <(...), but that
2651         is not supported by /bin/sh, so...
2652         (SHELL): Define to /bin/bash.
2653
2654 2011-06-24  Eric Blake  <eblake@redhat.com>
2655
2656         maint.mk: update sc_prohibit_intprops_without_use
2657         * top/maint.mk (_intprops_names): Match recent changes.
2658
2659 2011-06-24  Bruno Haible  <bruno@clisp.org>
2660
2661         strerror-override: No-op tweak.
2662         * lib/strerror-override.h (strerror_override): Reorder conditions,
2663         for consistency with lib/strerror-override.c.
2664
2665 2011-06-23  Eric Blake  <eblake@redhat.com>
2666
2667         maint.mk: test further PATH_MAX issues
2668         * top/maint.mk (sc_prohibit_path_max_array): Rename...
2669         (sc_prohibit_path_max_allocation): ...and also test alloca.
2670         Suggested by Jim Meyering.
2671
2672 2011-06-22  Eric Blake  <eblake@redhat.com>
2673
2674         maint.mk: add syntax-check to avoid char[PATH_MAX]
2675         * top/maint.mk (sc_prohibit_path_max_array): New rule.
2676
2677         stat: be robust to PATH_MAX definition
2678         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
2679         * modules/stat (Depends-on): Add verify.
2680
2681         link: work around IRIX bug
2682         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
2683         * lib/link.c (rpl_link): Work around it.
2684         * tests/test-link.h (test_link): Enhance test.
2685         * doc/posix-functions/link.texi (link): Document the bug.
2686
2687         getopt: silence clang warning
2688         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
2689         dereference.
2690         Reported by Gustavo Martin Domato.
2691
2692 2011-06-22  Jim Meyering  <meyering@redhat.com>
2693
2694         bootstrap: do not insert a blank line into each .gitignore file
2695         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
2696
2697 2011-06-21  Eric Blake  <eblake@redhat.com>
2698
2699         perror: test for output mismatch
2700         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
2701         perror on IRIX.
2702
2703         strerror_r: fix OpenBSD behavior on out-of-range
2704         * lib/strerror_r.c (strerror_r): Always use maximal string.
2705         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
2706
2707         strerror_r: fix OpenBSD behavior on 0
2708         * lib/strerror-override.c (strerror_override): Also override 0
2709         when needed.
2710         * lib/strerror-override.h (strerror_override): Likewise.
2711         * lib/strerror.c (strerror): Simplify, now that 0 override is done
2712         earlier.
2713         * lib/strerror_r.c (strerror_r): Likewise.
2714         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
2715         behavior...
2716         (gl_FUNC_STRERROR_0): ...into new macro.
2717         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
2718         is overridden.
2719         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
2720         * modules/strerror-override (Files): Add strerror.m4.
2721         (configure.ac): Also provide override for 0 when needed.
2722         * doc/posix-functions/strerror.texi (strerror): Document this.
2723         * doc/posix-functions/perror.texi (perror): Likewise.
2724
2725         perror: adjust array size
2726         * modules/perror (Depends-on): Add strerror-override.
2727         * lib/perror.c (perror): Use it to avoid magic number.
2728
2729         strerror-override: reduce size
2730         * lib/strerror-override.c (strerror_override): Use fewer lines.
2731
2732 2011-06-20  Bruno Haible  <bruno@clisp.org>
2733
2734         pathmax: Ensure correct value for PATH_MAX on HP-UX.
2735         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
2736
2737 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
2738
2739         alloca: port to compilers that can optimize like GCC 4.6.0
2740         * lib/alloca.c (find_stack_direction): New signature, taken from
2741         Autoconf git.  This works with GCC 4.6.0.  This code should never
2742         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
2743         be used with other compilers that optimize as well as GCC 4.6.0 does.
2744         (alloca): Adjust to new signature.
2745         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
2746         New macro, which patches Autoconf in a similar way.
2747
2748         c-stack: stop worrying about stack direction
2749         * lib/c-stack.c (find_stack_direction): Remove.
2750         (segv_handler): Don't worry about stack direction growth, as it's
2751         too much of a pain to configure this correctly, given how compilers
2752         are optimizing-away our stack-growth detection code.  Instead, assume
2753         that any access to just before or just after the stack is OK.
2754         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
2755         Don't require AC_FUNC_ALLOCA; no longer needed.
2756
2757 2011-06-20  Eric Blake  <eblake@redhat.com>
2758
2759         test-stat: don't allocate PATH_MAX bytes
2760         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
2761         PATH_MAX-sized buffer.
2762         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
2763         * modules/stat-tests (Depends-on): Likewise.
2764         * tests/test-fstatat.c (includes): Drop pathmax.h.
2765         * tests/test-stat.c (includes): Likewise.
2766         Reported by Bruno Haible.
2767
2768 2011-06-20  Bruno Haible  <bruno@clisp.org>
2769
2770         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
2771         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
2772         * lib/float.c: New file.
2773         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
2774         REPLACE_FLOAT_LDBL.
2775         * modules/float (Files): Add lib/float.c.
2776         (configure.ac): Invoke AC_LIBOBJ.
2777         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
2778
2779 2011-06-20  Bruno Haible  <bruno@clisp.org>
2780
2781         Tests for module 'float'.
2782         * modules/float-tests: New file.
2783         * tests/test-float.c: New file.
2784
2785 2011-06-19  Bruno Haible  <bruno@clisp.org>
2786
2787         isinf: Coding style.
2788         * lib/isinf.c: Use GNU coding style.
2789
2790 2011-06-19  Bruno Haible  <bruno@clisp.org>
2791
2792         linkat test: Avoid test failure on AIX 7.1.
2793         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
2794         * tests/test-link.h (test_link): Likewise.
2795
2796 2011-06-19  Bruno Haible  <bruno@clisp.org>
2797
2798         pread test: Avoid test failure on OpenBSD 4.9.
2799         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
2800
2801 2011-06-19  Bruno Haible  <bruno@clisp.org>
2802
2803         sprintf-posix: Fix test failure on AIX 7.1.
2804         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
2805         * doc/posix-functions/dprintf.texi: Mention limited precision problem
2806         on AIX.
2807         * doc/posix-functions/fprintf.texi: Likewise.
2808         * doc/posix-functions/printf.texi: Likewise.
2809         * doc/posix-functions/snprintf.texi: Likewise.
2810         * doc/posix-functions/sprintf.texi: Likewise.
2811         * doc/posix-functions/vdprintf.texi: Likewise.
2812         * doc/posix-functions/vfprintf.texi: Likewise.
2813         * doc/posix-functions/vprintf.texi: Likewise.
2814         * doc/posix-functions/vsnprintf.texi: Likewise.
2815         * doc/posix-functions/vsprintf.texi: Likewise.
2816
2817 2011-06-19  Bruno Haible  <bruno@clisp.org>
2818
2819         roundl-ieee: Fix test failure on AIX 7.1.
2820         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
2821         * doc/posix-functions/roundl.texi: Mention problem with negative
2822         arguments.
2823
2824 2011-06-19  Bruno Haible  <bruno@clisp.org>
2825
2826         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
2827         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
2828         * doc/posix-functions/round.texi: Mention problem with negative
2829         arguments.
2830         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
2831
2832 2011-06-19  Bruno Haible  <bruno@clisp.org>
2833
2834         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
2835         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
2836         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
2837         * doc/posix-functions/roundf.texi: Mention problem with negative
2838         arguments.
2839         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
2840
2841 2011-06-19  Bruno Haible  <bruno@clisp.org>
2842
2843         ceilf-ieee: Work around bug on MacOS X 10.5.
2844         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
2845
2846         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
2847         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
2848         IEEE compliant, avoid compiler optimizations.
2849         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
2850         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
2851         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
2852         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
2853         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
2854         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
2855         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
2856         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
2857         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
2858         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
2859
2860 2011-06-19  Bruno Haible  <bruno@clisp.org>
2861
2862         ceilf-ieee: Work around bug on AIX 7.1.
2863         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
2864         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
2865
2866 2011-06-19  Bruno Haible  <bruno@clisp.org>
2867
2868         ceil-ieee: Work around bug on AIX 7.1.
2869         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
2870         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
2871
2872 2011-06-18  Bruno Haible  <bruno@clisp.org>
2873
2874         fsync test: Avoid test failure on MacOS X and AIX.
2875         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
2876         EINVAL.
2877
2878 2011-06-18  Bruno Haible  <bruno@clisp.org>
2879
2880         openat, fdopendir tests: Fix link errors.
2881         * modules/openat-tests (Depends-on): Add progname.
2882         * modules/fdopendir-tests (Depends-on): Likewise.
2883         * tests/test-fchownat.c: Include progname.h.
2884         (main): Call set_program_name.
2885         * tests/test-fstatat.c: Include progname.h.
2886         (main): Call set_program_name.
2887         * tests/test-mkdirat.c: Include progname.h.
2888         (main): Call set_program_name.
2889         * tests/test-openat.c: Include progname.h.
2890         (main): Call set_program_name.
2891         * tests/test-unlinkat.c: Include progname.h.
2892         (main): Call set_program_name.
2893         * tests/test-fdopendir.c: Include progname.h.
2894         (main): Call set_program_name.
2895
2896 2011-06-18  Bruno Haible  <bruno@clisp.org>
2897
2898         Doc update.
2899         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
2900         HP-UX.
2901         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
2902
2903 2011-06-18  Bruno Haible  <bruno@clisp.org>
2904
2905         getcwd tests: Avoid compilation error on HP-UX 11.31.
2906         * modules/getcwd-tests (Depends-on): Add pathmax.
2907         * tests/test-getcwd.c: Include pathmax.h.
2908
2909 2011-06-18  Bruno Haible  <bruno@clisp.org>
2910
2911         isfinite, isinf: Fix link error on AIX 6 and 7.
2912         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
2913         needed, also test the macro with a 'float' argument.
2914         * m4/isinf.m4 (gl_ISINF): Likewise.
2915
2916 2011-06-18  Bruno Haible  <bruno@clisp.org>
2917
2918         getloadavg: Don't clobber LIBS. Regression from previous commit.
2919         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
2920         AC_CHECK_LIB from here...
2921         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
2922         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
2923         gl_func_getloadavg_done.
2924         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2925
2926 2011-06-18  Bruno Haible  <bruno@clisp.org>
2927
2928         clean-temp: Improve documentation.
2929         * lib/clean-temp.h: Explain better how to use this module.
2930         Reported by John Darrington <john@darrington.wattle.id.au>.
2931
2932 2011-06-17  Bruno Haible  <bruno@clisp.org>
2933
2934         pread, pwrite: Avoid cc warning on AIX.
2935         * lib/unistd.in.h (pread): Undefine before defining as a macro.
2936         (pwrite): Likewise.
2937
2938 2011-06-17  Bruno Haible  <bruno@clisp.org>
2939
2940         spawn-pipe tests: Fix link error.
2941         * tests/test-spawn-pipe-child.c: Undefine fprintf.
2942         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2943
2944 2011-06-17  Bruno Haible  <bruno@clisp.org>
2945
2946         Tests: Remove unnecessary dependency.
2947         * modules/canonicalize-tests (Depends-on): Remove progname.
2948         * modules/chown-tests (Depends-on): Likewise.
2949         * modules/dirname-tests (Depends-on): Likewise.
2950         * modules/fdopendir-tests (Depends-on): Likewise.
2951         * modules/fdutimensat-tests (Depends-on): Likewise.
2952         * modules/hash-tests (Depends-on): Likewise.
2953         * modules/lchown-tests (Depends-on): Likewise.
2954         * modules/linkat-tests (Depends-on): Likewise.
2955         * modules/renameat-tests (Depends-on): Likewise.
2956         * modules/spawn-pipe-tests (Depends-on): Likewise.
2957         * modules/utimensat-tests (Depends-on): Likewise.
2958
2959 2011-06-17  Bruno Haible  <bruno@clisp.org>
2960
2961         spawn-pipe tests: Fix link error.
2962         * tests/test-spawn-pipe-child.c: Undefine fflush.
2963
2964 2011-06-17  Bruno Haible  <bruno@clisp.org>
2965
2966         Fix tests link errors.
2967         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
2968         * modules/chown-tests (Makefile.am): Don't link test-chown with
2969         LIBINTL.
2970         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
2971         LIBINTL.
2972         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
2973         LIBINTL.
2974         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
2975         LIBINTL.
2976
2977 2011-06-16  Bruno Haible  <bruno@clisp.org>
2978
2979         crypto/gc-sha1: Fix recent regression.
2980         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
2981         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
2982
2983         crypto/gc-md5: Fix recent regression.
2984         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
2985
2986         crypto/gc-md4: Fix recent regression.
2987         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
2988         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
2989
2990         crypto/gc-arctwo: Fix recent regression.
2991         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
2992         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
2993
2994         crypto/gc-rijndael: Fix recent regression.
2995         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
2996         (configure.ac): Invoke AC_LIBOBJ here.
2997         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
2998         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2999
3000         crypto/gc-hmac-sha1: Fix recent regression.
3001         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
3002         (configure.ac): Invoke AC_LIBOBJ here.
3003         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
3004         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3005
3006         crypto/gc-hmac-md5: Fix recent regression.
3007         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
3008         (configure.ac): Invoke AC_LIBOBJ here.
3009         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
3010         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3011
3012         crypto/gc-des: Fix recent regression.
3013         * modules/crypto/gc-des (Files): Remove m4/des.m4.
3014         (configure.ac): Invoke AC_LIBOBJ here.
3015         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
3016         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3017
3018         crypto/gc-arcfour: Fix recent regression.
3019         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
3020         (configure.ac): Invoke AC_LIBOBJ here.
3021         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
3022         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3023
3024 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
3025
3026         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
3027         After the 2011-05-21 change, this macro requires
3028         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
3029         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
3030
3031 2011-06-16  Bruno Haible  <bruno@clisp.org>
3032
3033         fprintftime: Move AC_LIBOBJ invocations to module description.
3034         * m4/fprintftime.m4: Remove file.
3035         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
3036         (configure.ac): Remove gl_FPRINTFTIME call.
3037         (Makefile.am): Augment lib_SOURCES.
3038         Reported by Jim Meyering.
3039
3040 2011-06-16  Bruno Haible  <bruno@clisp.org>
3041
3042         tmpfile-safer: Finish 2011-05-23 commit.
3043         * m4/stdio-safer.m4: Really remove file.
3044         Reported by Jim Meyering.
3045
3046 2011-06-16  Bruno Haible  <bruno@clisp.org>
3047
3048         syntax-check: Fix typo.
3049         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
3050         printf-posix.m4.
3051         Reported by Jim Meyering.
3052
3053 2011-06-13  Jim Meyering  <meyering@redhat.com>
3054
3055         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
3056         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
3057
3058 2011-05-23  Bruno Haible  <bruno@clisp.org>
3059
3060         yesno: Move AC_LIBOBJ invocations to module description.
3061         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
3062         * modules/yesno (Makefile.am): Augment lib_SOURCES.
3063
3064 2011-05-23  Bruno Haible  <bruno@clisp.org>
3065
3066         xstrtol: Move AC_LIBOBJ invocations to module description.
3067         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
3068         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
3069
3070 2011-05-23  Bruno Haible  <bruno@clisp.org>
3071
3072         xstrtold: Move AC_LIBOBJ invocations to module description.
3073         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
3074         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
3075
3076 2011-05-23  Bruno Haible  <bruno@clisp.org>
3077
3078         xstrtod: Move AC_LIBOBJ invocations to module description.
3079         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
3080         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
3081
3082 2011-05-23  Bruno Haible  <bruno@clisp.org>
3083
3084         xnanosleep: Move AC_LIBOBJ invocations to module description.
3085         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
3086         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
3087
3088 2011-05-23  Bruno Haible  <bruno@clisp.org>
3089
3090         xgetcwd: Move AC_LIBOBJ invocations to module description.
3091         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
3092         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
3093
3094 2011-05-23  Bruno Haible  <bruno@clisp.org>
3095
3096         xalloc: Move AC_LIBOBJ invocations to module description.
3097         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
3098         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
3099
3100 2011-05-23  Bruno Haible  <bruno@clisp.org>
3101
3102         write-any-file: Move AC_LIBOBJ invocations to module description.
3103         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
3104         invocation.
3105         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
3106
3107 2011-05-23  Bruno Haible  <bruno@clisp.org>
3108
3109         utimens: Move AC_LIBOBJ invocations to module description.
3110         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
3111         * modules/utimens (Makefile.am): Augment lib_SOURCES.
3112
3113 2011-05-23  Bruno Haible  <bruno@clisp.org>
3114
3115         utimecmp: Move AC_LIBOBJ invocations to module description.
3116         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
3117         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
3118
3119 2011-05-23  Bruno Haible  <bruno@clisp.org>
3120
3121         userspec: Move AC_LIBOBJ invocations to module description.
3122         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
3123         * modules/userspec (Makefile.am): Augment lib_SOURCES.
3124
3125 2011-05-23  Bruno Haible  <bruno@clisp.org>
3126
3127         unlinkdir: Move AC_LIBOBJ invocations to module description.
3128         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
3129         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
3130
3131 2011-05-23  Bruno Haible  <bruno@clisp.org>
3132
3133         unistd-safer: Move AC_LIBOBJ invocations to module description.
3134         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
3135         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
3136
3137 2011-05-23  Bruno Haible  <bruno@clisp.org>
3138
3139         tempname: Move AC_LIBOBJ invocations to module description.
3140         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
3141         * modules/tempname (Makefile.am): Augment lib_SOURCES.
3142
3143 2011-05-23  Bruno Haible  <bruno@clisp.org>
3144
3145         strftime: Move AC_LIBOBJ invocations to module description.
3146         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
3147         * modules/strftime (Makefile.am): Augment lib_SOURCES.
3148
3149 2011-05-23  Bruno Haible  <bruno@clisp.org>
3150
3151         stdlib-safer: Move AC_LIBOBJ invocations to module description.
3152         * m4/stdlib-safer.m4: Remove file.
3153         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
3154         (configure.ac): Remove gl_STDLIB_SAFER call.
3155         (Makefile.am): Augment lib_SOURCES.
3156
3157 2011-05-23  Bruno Haible  <bruno@clisp.org>
3158
3159         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
3160         * m4/stdio-safer.m4: Remove file.
3161         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
3162         (configure.ac): Remove gl_TMPFILE_SAFER call.
3163         (Makefile.am): Augment lib_SOURCES.
3164
3165 2011-05-23  Bruno Haible  <bruno@clisp.org>
3166
3167         popen-safer: Move AC_LIBOBJ invocations to module description.
3168         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
3169         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
3170         (configure.ac): Remove gl_POPEN_SAFER call.
3171         (Makefile.am): Augment lib_SOURCES.
3172
3173 2011-05-23  Bruno Haible  <bruno@clisp.org>
3174
3175         freopen-safer: Move AC_LIBOBJ invocations to module description.
3176         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
3177         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
3178         (configure.ac): Remove gl_FREOPEN_SAFER call.
3179         (Makefile.am): Augment lib_SOURCES.
3180
3181 2011-05-23  Bruno Haible  <bruno@clisp.org>
3182
3183         fopen-safer: Move AC_LIBOBJ invocations to module description.
3184         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
3185         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
3186         (configure.ac): Remove gl_FOPEN_SAFER call.
3187         (Makefile.am): Augment lib_SOURCES.
3188
3189 2011-05-23  Bruno Haible  <bruno@clisp.org>
3190
3191         crypto/sha512: Move AC_LIBOBJ invocations to module description.
3192         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
3193         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
3194
3195 2011-05-23  Bruno Haible  <bruno@clisp.org>
3196
3197         crypto/sha256: Move AC_LIBOBJ invocations to module description.
3198         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
3199         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
3200
3201 2011-05-23  Bruno Haible  <bruno@clisp.org>
3202
3203         crypto/sha1: Move AC_LIBOBJ invocations to module description.
3204         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
3205         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
3206
3207 2011-05-23  Bruno Haible  <bruno@clisp.org>
3208
3209         settime: Move AC_LIBOBJ invocations to module description.
3210         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
3211         * modules/settime (Makefile.am): Augment lib_SOURCES.
3212
3213 2011-05-23  Bruno Haible  <bruno@clisp.org>
3214
3215         savedir: Move AC_LIBOBJ invocations to module description.
3216         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
3217         * modules/savedir (Makefile.am): Augment lib_SOURCES.
3218
3219 2011-05-23  Bruno Haible  <bruno@clisp.org>
3220
3221         save-cwd: Move AC_LIBOBJ invocations to module description.
3222         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
3223         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
3224
3225 2011-05-23  Bruno Haible  <bruno@clisp.org>
3226
3227         same: Move AC_LIBOBJ invocations to module description.
3228         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
3229         * modules/same (Makefile.am): Augment lib_SOURCES.
3230
3231 2011-05-23  Bruno Haible  <bruno@clisp.org>
3232
3233         safe-write: Move AC_LIBOBJ invocations to module description.
3234         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
3235         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
3236         instead of gl_SAFE_WRITE.
3237         (Makefile.am): Augment lib_SOURCES.
3238
3239 2011-05-23  Bruno Haible  <bruno@clisp.org>
3240
3241         safe-read: Move AC_LIBOBJ invocations to module description.
3242         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
3243         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
3244         of gl_SAFE_READ.
3245         (Makefile.am): Augment lib_SOURCES.
3246
3247 2011-05-23  Bruno Haible  <bruno@clisp.org>
3248
3249         safe-alloc: Move AC_LIBOBJ invocations to module description.
3250         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
3251         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
3252
3253 2011-05-23  Bruno Haible  <bruno@clisp.org>
3254
3255         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
3256         * m4/rijndael.m4: Remove file.
3257         * modules/crypto/rijndael (Files): Remove it.
3258         (configure.ac): Remove gl_RIJNDAEL call.
3259         (Makefile.am): Augment lib_SOURCES.
3260
3261 2011-05-23  Bruno Haible  <bruno@clisp.org>
3262
3263         readtokens: Move AC_LIBOBJ invocations to module description.
3264         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
3265         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
3266
3267 2011-05-23  Bruno Haible  <bruno@clisp.org>
3268
3269         read-file: Move AC_LIBOBJ invocations to module description.
3270         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
3271         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
3272         of gl_FUNC_READ_FILE.
3273         (Makefile.am): Augment lib_SOURCES.
3274
3275 2011-05-23  Bruno Haible  <bruno@clisp.org>
3276
3277         quotearg: Move AC_LIBOBJ invocations to module description.
3278         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
3279         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
3280
3281 2011-05-23  Bruno Haible  <bruno@clisp.org>
3282
3283         quote: Move AC_LIBOBJ invocations to module description.
3284         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
3285         * modules/quote (Makefile.am): Augment lib_SOURCES.
3286
3287 2011-05-23  Bruno Haible  <bruno@clisp.org>
3288
3289         posixver: Move AC_LIBOBJ invocations to module description.
3290         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
3291         * modules/posixver (Makefile.am): Augment lib_SOURCES.
3292
3293 2011-05-23  Bruno Haible  <bruno@clisp.org>
3294
3295         posixtm: Move AC_LIBOBJ invocations to module description.
3296         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
3297         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
3298
3299 2011-05-23  Bruno Haible  <bruno@clisp.org>
3300
3301         physmem: Move AC_LIBOBJ invocations to module description.
3302         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
3303         * modules/physmem (Makefile.am): Augment lib_SOURCES.
3304
3305 2011-05-23  Bruno Haible  <bruno@clisp.org>
3306
3307         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
3308         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
3309         invocation.
3310         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
3311
3312 2011-05-23  Bruno Haible  <bruno@clisp.org>
3313
3314         mpsort: Move AC_LIBOBJ invocations to module description.
3315         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
3316         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
3317
3318 2011-05-23  Bruno Haible  <bruno@clisp.org>
3319
3320         modechange: Move AC_LIBOBJ invocations to module description.
3321         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
3322         * modules/modechange (Makefile.am): Augment lib_SOURCES.
3323
3324 2011-05-23  Bruno Haible  <bruno@clisp.org>
3325
3326         mkdir-p: Move AC_LIBOBJ invocations to module description.
3327         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
3328         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
3329
3330 2011-05-23  Bruno Haible  <bruno@clisp.org>
3331
3332         mkancesdirs: Move AC_LIBOBJ invocations to module description.
3333         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
3334         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
3335
3336 2011-05-23  Bruno Haible  <bruno@clisp.org>
3337
3338         mgetgroups: Move AC_LIBOBJ invocations to module description.
3339         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
3340         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
3341
3342 2011-05-23  Bruno Haible  <bruno@clisp.org>
3343
3344         memxor: Move AC_LIBOBJ invocations to module description.
3345         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
3346         * modules/memxor (Makefile.am): Augment lib_SOURCES.
3347
3348 2011-05-23  Bruno Haible  <bruno@clisp.org>
3349
3350         memcoll: Move AC_LIBOBJ invocations to module description.
3351         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
3352         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
3353
3354 2011-05-23  Bruno Haible  <bruno@clisp.org>
3355
3356         memcasecmp: Move AC_LIBOBJ invocations to module description.
3357         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
3358         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
3359
3360 2011-05-23  Bruno Haible  <bruno@clisp.org>
3361
3362         crypto/md5: Move AC_LIBOBJ invocations to module description.
3363         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
3364         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
3365
3366 2011-05-23  Bruno Haible  <bruno@clisp.org>
3367
3368         crypto/md4: Move AC_LIBOBJ invocations to module description.
3369         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
3370         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
3371
3372 2011-05-23  Bruno Haible  <bruno@clisp.org>
3373
3374         crypto/md2: Move AC_LIBOBJ invocations to module description.
3375         * m4/md2.m4: Remove file.
3376         * modules/crypto/md2 (Files): Remove it.
3377         (configure.ac): Remove gl_MD2 call.
3378         (Makefile.am): Augment lib_SOURCES.
3379
3380 2011-05-23  Bruno Haible  <bruno@clisp.org>
3381
3382         long-options: Move AC_LIBOBJ invocations to module description.
3383         * m4/long-options.m4: Remove file.
3384         * modules/long-options (Files): Remove it.
3385         (configure.ac): Remove gl_LONG_OPTIONS call.
3386         (Makefile.am): Augment lib_SOURCES.
3387
3388 2011-05-23  Bruno Haible  <bruno@clisp.org>
3389
3390         i-ring: Move AC_LIBOBJ invocations to module description.
3391         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
3392         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
3393
3394 2011-05-23  Bruno Haible  <bruno@clisp.org>
3395
3396         idcache: Move AC_LIBOBJ invocations to module description.
3397         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
3398         * modules/idcache (Makefile.am): Augment lib_SOURCES.
3399
3400 2011-05-23  Bruno Haible  <bruno@clisp.org>
3401
3402         human: Move AC_LIBOBJ invocations to module description.
3403         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
3404         * modules/human (Makefile.am): Augment lib_SOURCES.
3405
3406 2011-05-23  Bruno Haible  <bruno@clisp.org>
3407
3408         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
3409         * m4/hmac-sha1.m4: Remove file.
3410         * modules/crypto/hmac-sha1 (Files): Remove it.
3411         (configure.ac): Remove gl_HMAC_SHA1 call.
3412         (Makefile.am): Augment lib_SOURCES.
3413
3414 2011-05-23  Bruno Haible  <bruno@clisp.org>
3415
3416         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
3417         * m4/hmac-md5.m4: Remove file.
3418         * modules/crypto/hmac-md5 (Files): Remove it.
3419         (configure.ac): Remove gl_HMAC_MD5 call.
3420         (Makefile.am): Augment lib_SOURCES.
3421
3422 2011-05-23  Bruno Haible  <bruno@clisp.org>
3423
3424         hash: Move AC_LIBOBJ invocations to module description.
3425         * m4/hash.m4: Remove file.
3426         * modules/hash (Files): Remove it.
3427         (configure.ac): Remove gl_HASH call.
3428         (Makefile.am): Augment lib_SOURCES.
3429
3430 2011-05-23  Bruno Haible  <bruno@clisp.org>
3431
3432         hard-locale: Move AC_LIBOBJ invocations to module description.
3433         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
3434         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
3435
3436 2011-05-23  Bruno Haible  <bruno@clisp.org>
3437
3438         getugroups: Move AC_LIBOBJ invocations to module description.
3439         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
3440         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
3441
3442 2011-05-23  Bruno Haible  <bruno@clisp.org>
3443
3444         gettime: Move AC_LIBOBJ invocations to module description.
3445         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
3446         * modules/gettime (Makefile.am): Augment lib_SOURCES.
3447
3448 2011-05-23  Bruno Haible  <bruno@clisp.org>
3449
3450         getndelim2: Move AC_LIBOBJ invocations to module description.
3451         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
3452         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
3453
3454 2011-05-23  Bruno Haible  <bruno@clisp.org>
3455
3456         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
3457         * m4/gc-pbkdf2-sha1.m4: Remove file.
3458         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
3459         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
3460         (Makefile.am): Augment lib_SOURCES.
3461
3462 2011-05-23  Bruno Haible  <bruno@clisp.org>
3463
3464         fts: Move AC_LIBOBJ invocations to module description.
3465         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
3466         * modules/fts (configure.ac): ... to here.
3467
3468 2011-05-23  Bruno Haible  <bruno@clisp.org>
3469
3470         file-type: Move AC_LIBOBJ invocations to module description.
3471         * m4/file-type.m4: Remove file.
3472         * modules/file-type (Files): Remove it.
3473         (configure.ac): Remove gl_FILE_TYPE call.
3474         (Makefile.am): Augment lib_SOURCES.
3475
3476 2011-05-23  Bruno Haible  <bruno@clisp.org>
3477
3478         filenamecat*: Respect rules for use of AC_LIBOBJ.
3479         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
3480         Remove AC_LIBOBJ invocation.
3481         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
3482         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
3483
3484 2011-05-23  Bruno Haible  <bruno@clisp.org>
3485
3486         filemode: Move AC_LIBOBJ invocations to module description.
3487         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
3488         * modules/filemode (Makefile.am): Augment lib_SOURCES.
3489
3490 2011-05-23  Bruno Haible  <bruno@clisp.org>
3491
3492         openat-safer: Move AC_LIBOBJ invocations to module description.
3493         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
3494         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
3495
3496 2011-05-23  Bruno Haible  <bruno@clisp.org>
3497
3498         fcntl-safer: Move AC_LIBOBJ invocations to module description.
3499         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
3500         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
3501
3502 2011-05-23  Bruno Haible  <bruno@clisp.org>
3503
3504         exclude: Move AC_LIBOBJ invocations to module description.
3505         * m4/exclude.m4: Remove file.
3506         * modules/exclude (Files): Remove it.
3507         (configure.ac): Remove gl_EXCLUDE call.
3508         (Makefile.am): Augment lib_SOURCES.
3509
3510 2011-05-23  Bruno Haible  <bruno@clisp.org>
3511
3512         dirname*: Respect rules for use of AC_LIBOBJ.
3513         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
3514         invocations.
3515         * modules/dirname (Makefile.am): Augment lib_SOURCES.
3516         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
3517
3518 2011-05-23  Bruno Haible  <bruno@clisp.org>
3519
3520         dirent-safer: Move AC_LIBOBJ invocations to module description.
3521         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
3522         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
3523
3524 2011-05-23  Bruno Haible  <bruno@clisp.org>
3525
3526         crypto/des: Move AC_LIBOBJ invocations to module description.
3527         * m4/des.m4: Remove file.
3528         * modules/crypto/des (Files): Remove it.
3529         (configure.ac): Remove gl_DES call.
3530         (Makefile.am): Augment lib_SOURCES.
3531
3532 2011-05-23  Bruno Haible  <bruno@clisp.org>
3533
3534         cycle-check: Move AC_LIBOBJ invocations to module description.
3535         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
3536         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
3537
3538 2011-05-23  Bruno Haible  <bruno@clisp.org>
3539
3540         c-strtold: Move AC_LIBOBJ invocations to module description.
3541         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
3542         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
3543
3544 2011-05-23  Bruno Haible  <bruno@clisp.org>
3545
3546         c-strtod: Move AC_LIBOBJ invocations to module description.
3547         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
3548         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
3549
3550 2011-05-23  Bruno Haible  <bruno@clisp.org>
3551
3552         crc: Move AC_LIBOBJ invocations to module description.
3553         * m4/crc.m4: Remove file.
3554         * modules/crc (Files): Remove it.
3555         (configure.ac): Remove gl_CRC call.
3556         (Makefile.am): Augment lib_SOURCES.
3557
3558 2011-05-23  Bruno Haible  <bruno@clisp.org>
3559
3560         close-stream: Move AC_LIBOBJ invocations to module description.
3561         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
3562         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
3563
3564 2011-05-23  Bruno Haible  <bruno@clisp.org>
3565
3566         closeout: Move AC_LIBOBJ invocations to module description.
3567         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
3568         * modules/closeout (Makefile.am): Augment lib_SOURCES.
3569
3570 2011-05-23  Bruno Haible  <bruno@clisp.org>
3571
3572         closein: Move AC_LIBOBJ invocations to module description.
3573         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
3574         * modules/closein (Makefile.am): Augment lib_SOURCES.
3575
3576 2011-05-23  Bruno Haible  <bruno@clisp.org>
3577
3578         cloexec: Move AC_LIBOBJ invocations to module description.
3579         * m4/cloexec.m4: Remove file.
3580         * modules/cloexec (Files): Remove it.
3581         (configure.ac): Remove gl_CLOEXEC call.
3582         (Makefile.am): Augment lib_SOURCES.
3583
3584 2011-05-23  Bruno Haible  <bruno@clisp.org>
3585
3586         check-version: Move AC_LIBOBJ invocations to module description.
3587         * m4/check-version.m4: Remove file.
3588         * modules/check-version (Files): Remove it.
3589         (configure.ac): Remove gl_CHECK_VERSION call.
3590         (Makefile.am): Augment lib_SOURCES.
3591
3592 2011-05-23  Bruno Haible  <bruno@clisp.org>
3593
3594         chdir-safer: Move AC_LIBOBJ invocations to module description.
3595         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
3596         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
3597
3598 2011-05-23  Bruno Haible  <bruno@clisp.org>
3599
3600         canonicalize: Move AC_LIBOBJ invocations to module description.
3601         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
3602         AC_LIBOBJ invocation.
3603         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
3604
3605 2011-05-23  Bruno Haible  <bruno@clisp.org>
3606
3607         canon-host: Move AC_LIBOBJ invocations to module description.
3608         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
3609         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
3610         instead of gl_CANON_HOST.
3611         (Makefile.am): Augment lib_SOURCES.
3612
3613 2011-05-23  Bruno Haible  <bruno@clisp.org>
3614
3615         backupfile: Move AC_LIBOBJ invocations to module description.
3616         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
3617         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
3618
3619 2011-05-23  Bruno Haible  <bruno@clisp.org>
3620
3621         argmatch: Move AC_LIBOBJ invocations to module description.
3622         * m4/argmatch.m4: Remove file.
3623         * modules/argmatch (Files): Remove it.
3624         (configure.ac): Remove gl_ARGMATCH call.
3625         (Makefile.am): Augment lib_SOURCES.
3626
3627 2011-05-23  Bruno Haible  <bruno@clisp.org>
3628
3629         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
3630         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
3631         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
3632
3633 2011-05-23  Bruno Haible  <bruno@clisp.org>
3634
3635         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
3636         * m4/arcfour.m4: Remove file.
3637         * modules/crypto/arcfour (Files): Remove it.
3638         (configure.ac): Remove gl_ARCFOUR call.
3639         (Makefile.am): Augment lib_SOURCES.
3640
3641 2011-05-22  Bruno Haible  <bruno@clisp.org>
3642
3643         write: Move AC_LIBOBJ invocations to module description.
3644         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
3645         * modules/write (configure.ac): ... to here.
3646
3647 2011-05-22  Bruno Haible  <bruno@clisp.org>
3648
3649         wmemset: Move AC_LIBOBJ invocations to module description.
3650         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
3651         here...
3652         * modules/wmemset (configure.ac): ... to here.
3653
3654 2011-05-22  Bruno Haible  <bruno@clisp.org>
3655
3656         wmemmove: Move AC_LIBOBJ invocations to module description.
3657         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
3658         here...
3659         * modules/wmemmove (configure.ac): ... to here.
3660
3661 2011-05-22  Bruno Haible  <bruno@clisp.org>
3662
3663         wmemcpy: Move AC_LIBOBJ invocations to module description.
3664         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
3665         here...
3666         * modules/wmemcpy (configure.ac): ... to here.
3667
3668 2011-05-22  Bruno Haible  <bruno@clisp.org>
3669
3670         wmemcmp: Move AC_LIBOBJ invocations to module description.
3671         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
3672         here...
3673         * modules/wmemcmp (configure.ac): ... to here.
3674
3675 2011-05-22  Bruno Haible  <bruno@clisp.org>
3676
3677         wmemchr: Move AC_LIBOBJ invocations to module description.
3678         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
3679         here...
3680         * modules/wmemchr (configure.ac): ... to here.
3681
3682 2011-05-22  Bruno Haible  <bruno@clisp.org>
3683
3684         wcswidth: Move AC_LIBOBJ invocations to module description.
3685         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
3686         here...
3687         * modules/wcswidth (configure.ac): ... to here.
3688
3689 2011-05-22  Bruno Haible  <bruno@clisp.org>
3690
3691         wcwidth: Respect rules for use of AC_LIBOBJ.
3692         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
3693         invocation from here...
3694         * modules/wcwidth (configure.ac): ... to here.
3695         (Depends-on): Update conditions.
3696
3697 2011-05-22  Bruno Haible  <bruno@clisp.org>
3698
3699         wctype: Move AC_LIBOBJ invocations to module description.
3700         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
3701         invocation from here...
3702         * modules/wctype (configure.ac): ... to here.
3703         (Depends-on): Update conditions.
3704
3705 2011-05-22  Bruno Haible  <bruno@clisp.org>
3706
3707         wctrans: Move AC_LIBOBJ invocations to module description.
3708         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
3709         invocation from here...
3710         * modules/wctrans (configure.ac): ... to here.
3711
3712 2011-05-22  Bruno Haible  <bruno@clisp.org>
3713
3714         wctomb: Move AC_LIBOBJ invocations to module description.
3715         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
3716         invocations from here...
3717         * modules/wctomb (configure.ac): ... to here.
3718
3719 2011-05-22  Bruno Haible  <bruno@clisp.org>
3720
3721         wctob: Move AC_LIBOBJ invocations to module description.
3722         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
3723         gl_PREREQ_WCTOB invocations from here...
3724         * modules/wctob (configure.ac): ... to here.
3725         (Depends-on): Update conditions.
3726
3727 2011-05-22  Bruno Haible  <bruno@clisp.org>
3728
3729         wcsxfrm: Move AC_LIBOBJ invocations to module description.
3730         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
3731         here...
3732         * modules/wcsxfrm (configure.ac): ... to here.
3733
3734 2011-05-22  Bruno Haible  <bruno@clisp.org>
3735
3736         wcstok: Move AC_LIBOBJ invocations to module description.
3737         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
3738         * modules/wcstok (configure.ac): ... to here.
3739
3740 2011-05-22  Bruno Haible  <bruno@clisp.org>
3741
3742         wcsstr: Move AC_LIBOBJ invocations to module description.
3743         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
3744         * modules/wcsstr (configure.ac): ... to here.
3745
3746 2011-05-22  Bruno Haible  <bruno@clisp.org>
3747
3748         wcsspn: Move AC_LIBOBJ invocations to module description.
3749         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
3750         * modules/wcsspn (configure.ac): ... to here.
3751
3752 2011-05-22  Bruno Haible  <bruno@clisp.org>
3753
3754         wcsrtombs: Move AC_LIBOBJ invocations to module description.
3755         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
3756         gl_PREREQ_WCSRTOMBS invocations from here...
3757         * modules/wcsrtombs (configure.ac): ... to here.
3758
3759 2011-05-22  Bruno Haible  <bruno@clisp.org>
3760
3761         wcsrchr: Move AC_LIBOBJ invocations to module description.
3762         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
3763         here...
3764         * modules/wcsrchr (configure.ac): ... to here.
3765
3766 2011-05-22  Bruno Haible  <bruno@clisp.org>
3767
3768         wcspbrk: Move AC_LIBOBJ invocations to module description.
3769         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
3770         here...
3771         * modules/wcspbrk (configure.ac): ... to here.
3772
3773 2011-05-22  Bruno Haible  <bruno@clisp.org>
3774
3775         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
3776         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
3777         gl_PREREQ_WCSNRTOMBS invocations from here...
3778         * modules/wcsnrtombs (configure.ac): ... to here.
3779
3780 2011-05-22  Bruno Haible  <bruno@clisp.org>
3781
3782         wcsnlen: Move AC_LIBOBJ invocations to module description.
3783         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
3784         here...
3785         * modules/wcsnlen (configure.ac): ... to here.
3786
3787 2011-05-22  Bruno Haible  <bruno@clisp.org>
3788
3789         wcsncpy: Move AC_LIBOBJ invocations to module description.
3790         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
3791         here...
3792         * modules/wcsncpy (configure.ac): ... to here.
3793
3794 2011-05-22  Bruno Haible  <bruno@clisp.org>
3795
3796         wcsncmp: Move AC_LIBOBJ invocations to module description.
3797         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
3798         here...
3799         * modules/wcsncmp (configure.ac): ... to here.
3800
3801 2011-05-22  Bruno Haible  <bruno@clisp.org>
3802
3803         wcsncat: Move AC_LIBOBJ invocations to module description.
3804         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
3805         here...
3806         * modules/wcsncat (configure.ac): ... to here.
3807
3808 2011-05-22  Bruno Haible  <bruno@clisp.org>
3809
3810         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
3811         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
3812         from here...
3813         * modules/wcsncasecmp (configure.ac): ... to here.
3814
3815 2011-05-22  Bruno Haible  <bruno@clisp.org>
3816
3817         wcslen: Move AC_LIBOBJ invocations to module description.
3818         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
3819         * modules/wcslen (configure.ac): ... to here.
3820
3821 2011-05-22  Bruno Haible  <bruno@clisp.org>
3822
3823         wcsdup: Move AC_LIBOBJ invocations to module description.
3824         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
3825         * modules/wcsdup (configure.ac): ... to here.
3826
3827 2011-05-22  Bruno Haible  <bruno@clisp.org>
3828
3829         wcscspn: Move AC_LIBOBJ invocations to module description.
3830         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
3831         here...
3832         * modules/wcscspn (configure.ac): ... to here.
3833
3834 2011-05-22  Bruno Haible  <bruno@clisp.org>
3835
3836         wcscpy: Move AC_LIBOBJ invocations to module description.
3837         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
3838         * modules/wcscpy (configure.ac): ... to here.
3839
3840 2011-05-22  Bruno Haible  <bruno@clisp.org>
3841
3842         wcscoll: Move AC_LIBOBJ invocations to module description.
3843         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
3844         here...
3845         * modules/wcscoll (configure.ac): ... to here.
3846
3847 2011-05-22  Bruno Haible  <bruno@clisp.org>
3848
3849         wcscmp: Move AC_LIBOBJ invocations to module description.
3850         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
3851         * modules/wcscmp (configure.ac): ... to here.
3852
3853 2011-05-22  Bruno Haible  <bruno@clisp.org>
3854
3855         wcschr: Move AC_LIBOBJ invocations to module description.
3856         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
3857         * modules/wcschr (configure.ac): ... to here.
3858
3859 2011-05-22  Bruno Haible  <bruno@clisp.org>
3860
3861         wcscat: Move AC_LIBOBJ invocations to module description.
3862         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
3863         * modules/wcscat (configure.ac): ... to here.
3864
3865 2011-05-22  Bruno Haible  <bruno@clisp.org>
3866
3867         wcscasecmp: Move AC_LIBOBJ invocations to module description.
3868         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
3869         here...
3870         * modules/wcscasecmp (configure.ac): ... to here.
3871
3872 2011-05-22  Bruno Haible  <bruno@clisp.org>
3873
3874         wcrtomb: Move AC_LIBOBJ invocations to module description.
3875         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
3876         invocations from here...
3877         * modules/wcrtomb (configure.ac): ... to here.
3878
3879 2011-05-22  Bruno Haible  <bruno@clisp.org>
3880
3881         wcpncpy: Move AC_LIBOBJ invocations to module description.
3882         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
3883         here...
3884         * modules/wcpncpy (configure.ac): ... to here.
3885
3886 2011-05-22  Bruno Haible  <bruno@clisp.org>
3887
3888         wcpcpy: Move AC_LIBOBJ invocations to module description.
3889         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
3890         * modules/wcpcpy (configure.ac): ... to here.
3891
3892 2011-05-22  Bruno Haible  <bruno@clisp.org>
3893
3894         waitpid: Move AC_LIBOBJ invocations to module description.
3895         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
3896         invocation from here...
3897         * modules/waitpid (configure.ac): ... to here.
3898
3899 2011-05-22  Bruno Haible  <bruno@clisp.org>
3900
3901         utimensat: Move AC_LIBOBJ invocations to module description.
3902         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
3903         here...
3904         * modules/utimensat (configure.ac): ... to here.
3905
3906 2011-05-22  Bruno Haible  <bruno@clisp.org>
3907
3908         usleep: Move AC_LIBOBJ invocations to module description.
3909         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
3910         here...
3911         * modules/usleep (configure.ac): ... to here.
3912
3913 2011-05-22  Bruno Haible  <bruno@clisp.org>
3914
3915         unlockpt: Move AC_LIBOBJ invocations to module description.
3916         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
3917         gl_PREREQ_UNLOCKPT invocations from here...
3918         * modules/unlockpt (configure.ac): ... to here.
3919
3920 2011-05-22  Bruno Haible  <bruno@clisp.org>
3921
3922         unlink: Respect rules for use of AC_LIBOBJ.
3923         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
3924         * modules/unlink (configure.ac): ... to here.
3925
3926 2011-05-22  Bruno Haible  <bruno@clisp.org>
3927
3928         uname: Move AC_LIBOBJ invocations to module description.
3929         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
3930         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
3931         here...
3932         * modules/uname (configure.ac): ... to here.
3933
3934 2011-05-22  Bruno Haible  <bruno@clisp.org>
3935
3936         ttyname_r: Move AC_LIBOBJ invocations to module description.
3937         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
3938         gl_PREREQ_TTYNAME_R invocations from here...
3939         * modules/ttyname_r (configure.ac): ... to here.
3940
3941 2011-05-22  Bruno Haible  <bruno@clisp.org>
3942
3943         tsearch: Move AC_LIBOBJ invocations to module description.
3944         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
3945         invocations from here...
3946         * modules/tsearch (configure.ac): ... to here.
3947
3948 2011-05-22  Bruno Haible  <bruno@clisp.org>
3949
3950         towctrans: Move AC_LIBOBJ invocations to module description.
3951         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
3952         AC_LIBOBJ invocation from here...
3953         * modules/towctrans (configure.ac): ... to here.
3954
3955 2011-05-22  Bruno Haible  <bruno@clisp.org>
3956
3957         tmpfile: Move AC_LIBOBJ invocations to module description.
3958         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
3959         invocations from here...
3960         * modules/tmpfile (configure.ac): ... to here.
3961
3962 2011-05-22  Bruno Haible  <bruno@clisp.org>
3963
3964         times: Move AC_LIBOBJ invocations to module description.
3965         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
3966         * modules/times (configure.ac): ... to here.
3967
3968 2011-05-22  Bruno Haible  <bruno@clisp.org>
3969
3970         time_r: Move AC_LIBOBJ invocations to module description.
3971         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
3972         invocations from here...
3973         * modules/time_r (configure.ac): ... to here.
3974
3975 2011-05-22  Bruno Haible  <bruno@clisp.org>
3976
3977         timegm: Move AC_LIBOBJ invocations to module description.
3978         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
3979         invocations from here...
3980         * modules/timegm (configure.ac): ... to here.
3981
3982 2011-05-22  Bruno Haible  <bruno@clisp.org>
3983
3984         tcgetsid: Move AC_LIBOBJ invocations to module description.
3985         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
3986         and gl_PREREQ_TCGETSID invocations from here...
3987         * modules/tcgetsid (configure.ac): ... to here.
3988         (Depends-on): Update conditions.
3989
3990 2011-05-22  Bruno Haible  <bruno@clisp.org>
3991
3992         symlinkat: Move AC_LIBOBJ invocations to module description.
3993         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
3994         here...
3995         * modules/symlinkat (configure.ac): ... to here.
3996
3997 2011-05-22  Bruno Haible  <bruno@clisp.org>
3998
3999         symlink: Move AC_LIBOBJ invocations to module description.
4000         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
4001         here...
4002         * modules/symlink (configure.ac): ... to here.
4003
4004 2011-05-22  Bruno Haible  <bruno@clisp.org>
4005
4006         strverscmp: Move AC_LIBOBJ invocations to module description.
4007         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
4008         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
4009         from here...
4010         * modules/strverscmp (configure.ac): ... to here.
4011
4012 2011-05-22  Bruno Haible  <bruno@clisp.org>
4013
4014         strtok_r: Move AC_LIBOBJ invocations to module description.
4015         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
4016         and gl_PREREQ_STRTOK_R invocations from here...
4017         * modules/strtok_r (configure.ac): ... to here.
4018         (Depends-on): Update conditions.
4019
4020 2011-05-22  Bruno Haible  <bruno@clisp.org>
4021
4022         strtoumax: Move AC_LIBOBJ invocations to module description.
4023         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
4024         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
4025         from here...
4026         * modules/strtoumax (configure.ac): ... to here.
4027
4028 2011-05-22  Bruno Haible  <bruno@clisp.org>
4029
4030         strtoimax: Move AC_LIBOBJ invocations to module description.
4031         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
4032         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
4033         from here...
4034         * modules/strtoimax (configure.ac): ... to here.
4035
4036 2011-05-22  Bruno Haible  <bruno@clisp.org>
4037
4038         strtoull: Move AC_LIBOBJ invocations to module description.
4039         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
4040         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
4041         from here...
4042         * modules/strtoull (configure.ac): ... to here.
4043
4044 2011-05-22  Bruno Haible  <bruno@clisp.org>
4045
4046         strtoll: Move AC_LIBOBJ invocations to module description.
4047         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
4048         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
4049         here...
4050         * modules/strtoll (configure.ac): ... to here.
4051
4052 2011-05-22  Bruno Haible  <bruno@clisp.org>
4053
4054         strtoul: Move AC_LIBOBJ invocations to module description.
4055         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
4056         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
4057         * modules/strtoul (configure.ac): ... to here.
4058
4059 2011-05-22  Bruno Haible  <bruno@clisp.org>
4060
4061         strtol: Move AC_LIBOBJ invocations to module description.
4062         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
4063         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
4064         * modules/strtol (configure.ac): ... to here.
4065
4066 2011-05-22  Bruno Haible  <bruno@clisp.org>
4067
4068         strtod: Move AC_LIBOBJ invocations to module description.
4069         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
4070         invocations from here...
4071         * modules/strtod (configure.ac): ... to here.
4072
4073 2011-05-22  Bruno Haible  <bruno@clisp.org>
4074
4075         strstr*: Move AC_LIBOBJ invocations to module description.
4076         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
4077         invocations from here...
4078         * modules/strstr-simple (configure.ac): ... to here.
4079         * modules/strstr (configure.ac): ... and here.
4080
4081 2011-05-22  Bruno Haible  <bruno@clisp.org>
4082
4083         strsignal: Move AC_LIBOBJ invocations to module description.
4084         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
4085         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
4086         * modules/strsignal (configure.ac): ... to here.
4087         (Depends-on): Update conditions.
4088
4089 2011-05-22  Bruno Haible  <bruno@clisp.org>
4090
4091         strsep: Move AC_LIBOBJ invocations to module description.
4092         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
4093         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
4094         here...
4095         * modules/strsep (configure.ac): ... to here.
4096
4097 2011-05-22  Bruno Haible  <bruno@clisp.org>
4098
4099         strptime: Move AC_LIBOBJ invocations to module description.
4100         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
4101         gl_PREREQ_STRPTIME invocations from here...
4102         * modules/strptime (configure.ac): ... to here.
4103
4104 2011-05-22  Bruno Haible  <bruno@clisp.org>
4105
4106         strpbrk: Move AC_LIBOBJ invocations to module description.
4107         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
4108         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
4109         here...
4110         * modules/strpbrk (configure.ac): ... to here.
4111
4112 2011-05-22  Bruno Haible  <bruno@clisp.org>
4113
4114         strnlen: Move AC_LIBOBJ invocations to module description.
4115         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
4116         invocations from here...
4117         * modules/strnlen (configure.ac): ... to here.
4118
4119 2011-05-22  Bruno Haible  <bruno@clisp.org>
4120
4121         strndup: Move AC_LIBOBJ invocations to module description.
4122         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
4123         invocations from here...
4124         * modules/strndup (configure.ac): ... to here.
4125         (Depends-on): Update conditions.
4126
4127 2011-05-22  Bruno Haible  <bruno@clisp.org>
4128
4129         strncat: Move AC_LIBOBJ invocations to module description.
4130         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
4131         invocations from here...
4132         * modules/strncat (configure.ac): ... to here.
4133
4134 2011-05-22  Bruno Haible  <bruno@clisp.org>
4135
4136         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
4137         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
4138         invocations from here...
4139         * modules/strdup (configure.ac): ... to here.
4140         * modules/strdup-posix (configure.ac): ... and here.
4141
4142 2011-05-22  Bruno Haible  <bruno@clisp.org>
4143
4144         strcspn: Move AC_LIBOBJ invocations to module description.
4145         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
4146         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
4147         here...
4148         * modules/strcspn (configure.ac): ... to here.
4149
4150 2011-05-22  Bruno Haible  <bruno@clisp.org>
4151
4152         strchrnul: Move AC_LIBOBJ invocations to module description.
4153         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
4154         gl_PREREQ_STRCHRNUL invocations from here...
4155         * modules/strchrnul (configure.ac): ... to here.
4156
4157 2011-05-22  Bruno Haible  <bruno@clisp.org>
4158
4159         strcasestr*: Move AC_LIBOBJ invocations to module description.
4160         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
4161         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
4162         * modules/strcasestr-simple (configure.ac): ... to here.
4163         * modules/strcasestr (configure.ac): ... and here.
4164
4165 2011-05-22  Bruno Haible  <bruno@clisp.org>
4166
4167         strcase: Move AC_LIBOBJ invocations to module description.
4168         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
4169         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
4170         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
4171         gl_PREREQ_STRNCASECMP invocations from here...
4172         * modules/strcase (configure.ac): ... to here.
4173
4174 2011-05-22  Bruno Haible  <bruno@clisp.org>
4175
4176         stpncpy: Move AC_LIBOBJ invocations to module description.
4177         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
4178         here...
4179         * modules/stpncpy (configure.ac): ... to here.
4180
4181 2011-05-22  Bruno Haible  <bruno@clisp.org>
4182
4183         stpcpy: Move AC_LIBOBJ invocations to module description.
4184         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
4185         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
4186         here...
4187         * modules/stpcpy (configure.ac): ... to here.
4188
4189 2011-05-21  Bruno Haible  <bruno@clisp.org>
4190
4191         stat: Move AC_LIBOBJ invocations to module description.
4192         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
4193         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
4194         here...
4195         * modules/stat (configure.ac): ... to here.
4196
4197 2011-05-21  Bruno Haible  <bruno@clisp.org>
4198
4199         sleep: Move AC_LIBOBJ invocations to module description.
4200         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
4201         * modules/sleep (configure.ac): ... to here.
4202
4203 2011-05-21  Bruno Haible  <bruno@clisp.org>
4204
4205         signbit: Move AC_LIBOBJ invocations to module description.
4206         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
4207         * modules/signbit (configure.ac): ... to here.
4208
4209 2011-05-21  Bruno Haible  <bruno@clisp.org>
4210
4211         sigprocmask: Move AC_LIBOBJ invocations to module description.
4212         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
4213         gl_PREREQ_SIGPROMASK invocations from here...
4214         * modules/sigprocmask (configure.ac): ... to here.
4215
4216 2011-05-21  Bruno Haible  <bruno@clisp.org>
4217
4218         sigaction: Move AC_LIBOBJ invocations to module description.
4219         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
4220         gl_PREREQ_SIGACTION invocations from here...
4221         * modules/sigaction (configure.ac): ... to here.
4222
4223 2011-05-21  Bruno Haible  <bruno@clisp.org>
4224
4225         sig2str: Move AC_LIBOBJ invocations to module description.
4226         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
4227         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
4228         here...
4229         * modules/sig2str (configure.ac): ... to here.
4230
4231 2011-05-21  Bruno Haible  <bruno@clisp.org>
4232
4233         setlocale: Move AC_LIBOBJ invocations to module description.
4234         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
4235         gl_PREREQ_SETLOCALE invocations from here...
4236         * modules/setlocale (configure.ac): ... to here.
4237
4238 2011-05-21  Bruno Haible  <bruno@clisp.org>
4239
4240         unsetenv: Move AC_LIBOBJ invocations to module description.
4241         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
4242         and gl_PREREQ_UNSETENV invocations from here...
4243         * modules/unsetenv (configure.ac): ... to here.
4244         (Depends-on): Update.
4245
4246 2011-05-21  Bruno Haible  <bruno@clisp.org>
4247
4248         setenv: Move AC_LIBOBJ invocations to module description.
4249         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
4250         here...
4251         * modules/setenv (configure.ac): ... to here.
4252
4253 2011-05-21  Bruno Haible  <bruno@clisp.org>
4254
4255         selinux-h: Move AC_LIBOBJ invocations to module description.
4256         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
4257         AC_LIBOBJ invocation from here...
4258         * modules/selinux-h (configure.ac): ... to here.
4259
4260 2011-05-21  Bruno Haible  <bruno@clisp.org>
4261
4262         select: Respect rules for use of AC_LIBOBJ.
4263         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
4264         here...
4265         * modules/select (configure.ac): ... to here.
4266
4267 2011-05-21  Bruno Haible  <bruno@clisp.org>
4268
4269         scandir: Move AC_LIBOBJ invocations to module description.
4270         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
4271         invocations from here...
4272         * modules/scandir (configure.ac): ... to here.
4273
4274 2011-05-21  Bruno Haible  <bruno@clisp.org>
4275
4276         rpmatch: Move AC_LIBOBJ invocations to module description.
4277         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
4278         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
4279         here...
4280         * modules/rpmatch (configure.ac): ... to here.
4281
4282 2011-05-21  Bruno Haible  <bruno@clisp.org>
4283
4284         rmdir: Respect rules for use of AC_LIBOBJ.
4285         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
4286         * modules/rmdir (configure.ac): ... to here.
4287
4288 2011-05-21  Bruno Haible  <bruno@clisp.org>
4289
4290         renameat: Move AC_LIBOBJ invocations to module description.
4291         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
4292         here...
4293         * modules/renameat (configure.ac): ... to here.
4294
4295 2011-05-21  Bruno Haible  <bruno@clisp.org>
4296
4297         rename: Respect rules for use of AC_LIBOBJ.
4298         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
4299         here...
4300         * modules/rename (configure.ac): ... to here.
4301
4302 2011-05-21  Bruno Haible  <bruno@clisp.org>
4303
4304         remove: Move AC_LIBOBJ invocations to module description.
4305         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
4306         here...
4307         * modules/remove (configure.ac): ... to here.
4308
4309 2011-05-21  Bruno Haible  <bruno@clisp.org>
4310
4311         relocatable-lib: Move AC_LIBOBJ invocations to module description.
4312         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
4313         macro.
4314         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
4315         * modules/relocatable-lib (configure.ac): ... to here.
4316         * modules/relocatable-prog-wrapper (configure.ac): Invoke
4317         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
4318
4319 2011-05-21  Bruno Haible  <bruno@clisp.org>
4320
4321         relocatable-prog: Move AC_LIBOBJ invocations to module description.
4322         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
4323         here...
4324         * modules/relocatable-prog (configure.ac): ... to here.
4325
4326 2011-05-21  Bruno Haible  <bruno@clisp.org>
4327
4328         regex: Move AC_LIBOBJ invocations to module description.
4329         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
4330         invocations from here...
4331         * modules/regex (configure.ac): ... to here.
4332
4333 2011-05-21  Bruno Haible  <bruno@clisp.org>
4334
4335         realloc-*: Move AC_LIBOBJ invocations to module description.
4336         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
4337         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
4338         AC_LIBOBJ invocations from here...
4339         * modules/realloc-gnu (configure.ac): ... to here.
4340         * modules/realloc-posix (configure.ac): ... and here.
4341
4342 2011-05-21  Bruno Haible  <bruno@clisp.org>
4343
4344         readutmp: Move AC_LIBOBJ invocations to module description.
4345         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
4346         * modules/readutmp (configure.ac): ... to here.
4347
4348 2011-05-21  Bruno Haible  <bruno@clisp.org>
4349
4350         readlinkat: Move AC_LIBOBJ invocations to module description.
4351         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
4352         here...
4353         * modules/readlinkat (configure.ac): ... to here.
4354
4355 2011-05-21  Bruno Haible  <bruno@clisp.org>
4356
4357         readlink: Move AC_LIBOBJ invocations to module description.
4358         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
4359         gl_PREREQ_READLINK invocations from here...
4360         * modules/readlink (configure.ac): ... to here.
4361
4362 2011-05-21  Bruno Haible  <bruno@clisp.org>
4363
4364         readline: Move AC_LIBOBJ invocations to module description.
4365         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
4366         gl_PREREQ_READLINE invocations from here...
4367         * modules/readline (configure.ac): ... to here.
4368
4369 2011-05-21  Bruno Haible  <bruno@clisp.org>
4370
4371         read: Move AC_LIBOBJ invocations to module description.
4372         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
4373         * modules/read (configure.ac): ... to here.
4374
4375 2011-05-21  Bruno Haible  <bruno@clisp.org>
4376
4377         rawmemchr: Move AC_LIBOBJ invocations to module description.
4378         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
4379         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
4380         from here...
4381         * modules/rawmemchr (configure.ac): ... to here.
4382
4383 2011-05-21  Bruno Haible  <bruno@clisp.org>
4384
4385         random_r: Move AC_LIBOBJ invocations to module description.
4386         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
4387         gl_PREREQ_RANDOM_R invocations from here...
4388         * modules/random_r (configure.ac): ... to here.
4389
4390 2011-05-21  Bruno Haible  <bruno@clisp.org>
4391
4392         pwrite: Move AC_LIBOBJ invocations to module description.
4393         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
4394         * modules/pwrite (configure.ac): ... to here.
4395
4396 2011-05-21  Bruno Haible  <bruno@clisp.org>
4397
4398         putenv: Move AC_LIBOBJ invocations to module description.
4399         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
4400         * modules/putenv (configure.ac): ... to here.
4401
4402 2011-05-21  Bruno Haible  <bruno@clisp.org>
4403
4404         login_tty: Move AC_LIBOBJ invocations to module description.
4405         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
4406         * modules/login_tty (configure.ac): ... to here.
4407
4408 2011-05-21  Bruno Haible  <bruno@clisp.org>
4409
4410         openpty: Move AC_LIBOBJ invocations to module description.
4411         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
4412         * modules/openpty (configure.ac): ... to here.
4413
4414 2011-05-21  Bruno Haible  <bruno@clisp.org>
4415
4416         forkpty: Move AC_LIBOBJ invocations to module description.
4417         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
4418         * modules/forkpty (configure.ac): ... to here.
4419
4420 2011-05-21  Bruno Haible  <bruno@clisp.org>
4421
4422         ptsname: Move AC_LIBOBJ invocations to module description.
4423         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
4424         invocations from here...
4425         * modules/ptsname (configure.ac): ... to here.
4426
4427 2011-05-21  Bruno Haible  <bruno@clisp.org>
4428
4429         pread: Move AC_LIBOBJ invocations to module description.
4430         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
4431         * modules/pread (configure.ac): ... to here.
4432
4433 2011-05-21  Bruno Haible  <bruno@clisp.org>
4434
4435         posix_spawn*: Move AC_LIBOBJ invocations to module description.
4436         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
4437         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
4438         * modules/posix_spawn (configure.ac): ... to here.
4439         * modules/posix_spawnp (configure.ac): ... and here.
4440
4441 2011-05-21  Bruno Haible  <bruno@clisp.org>
4442
4443         popen: Move AC_LIBOBJ invocations to module description.
4444         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
4445         invocations from here...
4446         * modules/popen (configure.ac): ... to here.
4447
4448 2011-05-21  Bruno Haible  <bruno@clisp.org>
4449
4450         poll: Move AC_LIBOBJ invocations to module description.
4451         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
4452         invocations from here...
4453         * modules/poll (configure.ac): ... to here.
4454
4455 2011-05-21  Bruno Haible  <bruno@clisp.org>
4456
4457         pipe-posix: Move AC_LIBOBJ invocations to module description.
4458         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
4459         * modules/pipe-posix (configure.ac): ... to here.
4460
4461 2011-05-21  Bruno Haible  <bruno@clisp.org>
4462
4463         openat: Respect rules for use of AC_LIBOBJ.
4464         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
4465         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
4466         * modules/openat (configure.ac): ... to here.
4467
4468 2011-05-21  Bruno Haible  <bruno@clisp.org>
4469
4470         obstack-printf*: Move AC_LIBOBJ invocations to module description.
4471         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
4472         invocation from here...
4473         * modules/obstack-printf (configure.ac): ... to here.
4474         * modules/obstack-printf-posix (configure.ac): ... and here.
4475
4476 2011-05-21  Bruno Haible  <bruno@clisp.org>
4477
4478         nl_langinfo: Move AC_LIBOBJ invocations to module description.
4479         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
4480         from here...
4481         * modules/nl_langinfo (configure.ac): ... to here.
4482
4483 2011-05-21  Bruno Haible  <bruno@clisp.org>
4484
4485         nanosleep: Move AC_LIBOBJ invocations to module description.
4486         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
4487         gl_PREREQ_NANOSLEEP invocations from here...
4488         * modules/nanosleep (configure.ac): ... to here.
4489
4490 2011-05-21  Bruno Haible  <bruno@clisp.org>
4491
4492         mountlist: Move AC_LIBOBJ invocations to module description.
4493         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
4494         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
4495         * modules/mountlist (configure.ac): ... to here.
4496
4497 2011-05-21  Bruno Haible  <bruno@clisp.org>
4498
4499         mktime: Respect rules for use of AC_LIBOBJ.
4500         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
4501         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
4502         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
4503         (gl_FUNC_MKTIME_INTERNAL): ... and here...
4504         * modules/mktime (configure.ac): ... to here.
4505         * modules/mktime-internal (configure.ac): ... and here.
4506         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
4507
4508 2011-05-21  Bruno Haible  <bruno@clisp.org>
4509
4510         mkstemps: Move AC_LIBOBJ invocations to module description.
4511         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
4512         here...
4513         * modules/mkstemps (configure.ac): ... to here.
4514
4515 2011-05-21  Bruno Haible  <bruno@clisp.org>
4516
4517         mkstemp: Move AC_LIBOBJ invocations to module description.
4518         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
4519         gl_PREREQ_MKSTEMP invocations from here...
4520         * modules/mkstemp (configure.ac): ... to here.
4521
4522 2011-05-21  Bruno Haible  <bruno@clisp.org>
4523
4524         mkostemps: Move AC_LIBOBJ invocations to module description.
4525         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
4526         here...
4527         * modules/mkostemps (configure.ac): ... to here.
4528
4529 2011-05-21  Bruno Haible  <bruno@clisp.org>
4530
4531         mkostemp: Move AC_LIBOBJ invocations to module description.
4532         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
4533         gl_PREREQ_MKOSTEMP invocations from here...
4534         * modules/mkostemp (configure.ac): ... to here.
4535
4536 2011-05-21  Bruno Haible  <bruno@clisp.org>
4537
4538         mknod: Move AC_LIBOBJ invocations to module description.
4539         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
4540         * modules/mknod (configure.ac): ... to here.
4541
4542 2011-05-21  Bruno Haible  <bruno@clisp.org>
4543
4544         mkfifoat: Move AC_LIBOBJ invocations to module description.
4545         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
4546         here...
4547         * modules/mkfifoat (configure.ac): ... to here.
4548
4549 2011-05-21  Bruno Haible  <bruno@clisp.org>
4550
4551         mkfifo: Respect rules for use of AC_LIBOBJ.
4552         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
4553         here...
4554         * modules/mkfifo (configure.ac): ... to here.
4555
4556 2011-05-21  Bruno Haible  <bruno@clisp.org>
4557
4558         mkdtemp: Move AC_LIBOBJ invocations to module description.
4559         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
4560         invocations from here...
4561         * modules/mkdtemp (configure.ac): ... to here.
4562
4563 2011-05-21  Bruno Haible  <bruno@clisp.org>
4564
4565         mkdir: Move AC_LIBOBJ invocations to module description.
4566         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
4567         * modules/mkdir (configure.ac): ... to here.
4568
4569 2011-05-21  Bruno Haible  <bruno@clisp.org>
4570
4571         memset: Move AC_LIBOBJ invocations to module description.
4572         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
4573         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
4574         here...
4575         * modules/memset (configure.ac): ... to here.
4576
4577 2011-05-21  Bruno Haible  <bruno@clisp.org>
4578
4579         memrchr: Move AC_LIBOBJ invocations to module description.
4580         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
4581         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
4582         here...
4583         * modules/memrchr (configure.ac): ... to here.
4584
4585 2011-05-21  Bruno Haible  <bruno@clisp.org>
4586
4587         mempcpy: Move AC_LIBOBJ invocations to module description.
4588         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
4589         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
4590         here...
4591         * modules/mempcpy (configure.ac): ... to here.
4592
4593 2011-05-21  Bruno Haible  <bruno@clisp.org>
4594
4595         memmove: Move AC_LIBOBJ invocations to module description.
4596         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
4597         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
4598         here...
4599         * modules/memmove (configure.ac): ... to here.
4600
4601 2011-05-21  Bruno Haible  <bruno@clisp.org>
4602
4603         memmem*: Move AC_LIBOBJ invocations to module description.
4604         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
4605         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
4606         here...
4607         (gl_FUNC_MEMMEM): ... and here...
4608         * modules/memmem-simple (configure.ac): ... to here.
4609         * modules/memmem (configure.ac): ... and here.
4610
4611 2011-05-21  Bruno Haible  <bruno@clisp.org>
4612
4613         memcpy: Move AC_LIBOBJ invocations to module description.
4614         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
4615         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
4616         here...
4617         * modules/memcpy (configure.ac): ... to here.
4618
4619 2011-05-21  Bruno Haible  <bruno@clisp.org>
4620
4621         memcmp: Simplify autoconf macro.
4622         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
4623         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
4624         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
4625
4626 2011-05-21  Bruno Haible  <bruno@clisp.org>
4627
4628         memcmp: Move AC_LIBOBJ invocations to module description.
4629         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
4630         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
4631         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
4632         * modules/memcmp (configure.ac): ... to here.
4633         (Depends-on): Update conditions.
4634
4635 2011-05-21  Bruno Haible  <bruno@clisp.org>
4636
4637         memchr: Respect rules for use of AC_LIBOBJ.
4638         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
4639         invocations from here...
4640         * modules/memchr (configure.ac): ... to here.
4641
4642 2011-05-21  Bruno Haible  <bruno@clisp.org>
4643
4644         mbtowc: Move AC_LIBOBJ invocations to module description.
4645         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
4646         invocations from here...
4647         * modules/mbtowc (configure.ac): ... to here.
4648
4649 2011-05-21  Bruno Haible  <bruno@clisp.org>
4650
4651         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
4652         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
4653         gl_PREREQ_MBSRTOWCS invocations from here...
4654         * modules/mbsrtowcs (configure.ac): ... to here.
4655
4656 2011-05-21  Bruno Haible  <bruno@clisp.org>
4657
4658         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
4659         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
4660         gl_PREREQ_MBSNRTOWCS invocations from here...
4661         * modules/mbsnrtowcs (configure.ac): ... to here.
4662
4663 2011-05-21  Bruno Haible  <bruno@clisp.org>
4664
4665         mbsinit: Move AC_LIBOBJ invocations to module description.
4666         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
4667         invocations from here...
4668         * modules/mbsinit (configure.ac): ... to here.
4669
4670 2011-05-21  Bruno Haible  <bruno@clisp.org>
4671
4672         mbrlen: Move AC_LIBOBJ invocations to module description.
4673         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
4674         invocations from here...
4675         * modules/mbrlen (configure.ac): ... to here.
4676
4677 2011-05-21  Bruno Haible  <bruno@clisp.org>
4678
4679         mbrtowc: Respect rules for use of AC_LIBOBJ.
4680         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
4681         invocations from here...
4682         * modules/mbrtowc (configure.ac): ... to here.
4683
4684 2011-05-21  Bruno Haible  <bruno@clisp.org>
4685
4686         malloc-*: Move AC_LIBOBJ invocations to module description.
4687         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
4688         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
4689         AC_LIBOBJ invocations from here...
4690         * modules/malloc-gnu (configure.ac): ... to here.
4691         * modules/malloc-posix (configure.ac): ... and here.
4692
4693 2011-05-21  Bruno Haible  <bruno@clisp.org>
4694
4695         lstat, openat: Respect rules for use of AC_LIBOBJ.
4696         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
4697         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
4698         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
4699         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
4700         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
4701         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
4702         here.
4703         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
4704
4705 2011-05-21  Bruno Haible  <bruno@clisp.org>
4706
4707         lseek: Move AC_LIBOBJ invocations to module description.
4708         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
4709         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
4710         * modules/lseek (configure.ac): ... to here.
4711
4712 2011-05-21  Bruno Haible  <bruno@clisp.org>
4713
4714         linkat: Move AC_LIBOBJ invocations to module description.
4715         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
4716         here...
4717         * modules/linkat (configure.ac): ... to here.
4718
4719 2011-05-21  Bruno Haible  <bruno@clisp.org>
4720
4721         link: Respect rules for use of AC_LIBOBJ.
4722         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
4723         * modules/link (configure.ac): ... to here.
4724
4725 2011-05-21  Bruno Haible  <bruno@clisp.org>
4726
4727         lchown: Move AC_LIBOBJ invocations to module description.
4728         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
4729         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
4730         * modules/lchown (configure.ac): ... to here.
4731
4732 2011-05-21  Bruno Haible  <bruno@clisp.org>
4733
4734         iswctype: Move AC_LIBOBJ invocations to module description.
4735         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
4736         here...
4737         * modules/iswctype (configure.ac): ... to here.
4738
4739 2011-05-21  Bruno Haible  <bruno@clisp.org>
4740
4741         iswblank: Move AC_LIBOBJ invocations to module description.
4742         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
4743         here...
4744         * modules/iswblank (configure.ac): ... to here.
4745
4746 2011-05-21  Bruno Haible  <bruno@clisp.org>
4747
4748         atanl: Move AC_LIBOBJ invocations to module description.
4749         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
4750         * modules/atanl (configure.ac): ... to here.
4751
4752 2011-05-21  Bruno Haible  <bruno@clisp.org>
4753
4754         acosl: Move AC_LIBOBJ invocations to module description.
4755         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
4756         * modules/acosl (configure.ac): ... to here.
4757
4758 2011-05-21  Bruno Haible  <bruno@clisp.org>
4759
4760         asinl: Respect rules for use of AC_LIBOBJ.
4761         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
4762         * modules/asinl (configure.ac): ... to here.
4763
4764 2011-05-21  Bruno Haible  <bruno@clisp.org>
4765
4766         tanl: Move AC_LIBOBJ invocations to module description.
4767         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
4768         * modules/tanl (configure.ac): ... to here.
4769
4770 2011-05-21  Bruno Haible  <bruno@clisp.org>
4771
4772         cosl: Move AC_LIBOBJ invocations to module description.
4773         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
4774         * modules/cosl (configure.ac): ... to here.
4775
4776 2011-05-21  Bruno Haible  <bruno@clisp.org>
4777
4778         sinl: Move AC_LIBOBJ invocations to module description.
4779         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
4780         * modules/sinl (configure.ac): ... to here.
4781
4782 2011-05-21  Bruno Haible  <bruno@clisp.org>
4783
4784         logl: Move AC_LIBOBJ invocations to module description.
4785         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
4786         * modules/logl (configure.ac): ... to here.
4787
4788 2011-05-21  Bruno Haible  <bruno@clisp.org>
4789
4790         expl: Move AC_LIBOBJ invocations to module description.
4791         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
4792         * modules/expl (configure.ac): ... to here.
4793
4794 2011-05-21  Bruno Haible  <bruno@clisp.org>
4795
4796         roundl: Move AC_LIBOBJ invocations to module description.
4797         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
4798         * modules/roundl (configure.ac): ... to here.
4799
4800 2011-05-21  Bruno Haible  <bruno@clisp.org>
4801
4802         round: Move AC_LIBOBJ invocations to module description.
4803         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
4804         * modules/round (configure.ac): ... to here.
4805
4806 2011-05-21  Bruno Haible  <bruno@clisp.org>
4807
4808         roundf: Move AC_LIBOBJ invocations to module description.
4809         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
4810         * modules/roundf (configure.ac): ... to here.
4811
4812 2011-05-21  Bruno Haible  <bruno@clisp.org>
4813
4814         truncl: Move AC_LIBOBJ invocations to module description.
4815         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
4816         * modules/truncl (configure.ac): ... to here.
4817
4818 2011-05-21  Bruno Haible  <bruno@clisp.org>
4819
4820         trunc: Move AC_LIBOBJ invocations to module description.
4821         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
4822         * modules/trunc (configure.ac): ... to here.
4823
4824 2011-05-21  Bruno Haible  <bruno@clisp.org>
4825
4826         truncf: Move AC_LIBOBJ invocations to module description.
4827         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
4828         * modules/truncf (configure.ac): ... to here.
4829
4830 2011-05-21  Bruno Haible  <bruno@clisp.org>
4831
4832         ceill: Move AC_LIBOBJ invocations to module description.
4833         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
4834         * modules/ceill (configure.ac): ... to here.
4835
4836 2011-05-21  Bruno Haible  <bruno@clisp.org>
4837
4838         ceil: Move AC_LIBOBJ invocations to module description.
4839         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
4840         * modules/ceil (configure.ac): ... to here.
4841
4842 2011-05-21  Bruno Haible  <bruno@clisp.org>
4843
4844         ceilf: Move AC_LIBOBJ invocations to module description.
4845         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
4846         * modules/ceilf (configure.ac): ... to here.
4847
4848 2011-05-21  Bruno Haible  <bruno@clisp.org>
4849
4850         floorl: Respect rules for use of AC_LIBOBJ.
4851         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
4852         * modules/floorl (configure.ac): ... to here.
4853
4854 2011-05-21  Bruno Haible  <bruno@clisp.org>
4855
4856         floor: Respect rules for use of AC_LIBOBJ.
4857         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
4858         * modules/floor (configure.ac): ... to here.
4859
4860 2011-05-21  Bruno Haible  <bruno@clisp.org>
4861
4862         floorf: Move AC_LIBOBJ invocations to module description.
4863         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
4864         * modules/floorf (configure.ac): ... to here.
4865
4866 2011-05-20  Bruno Haible  <bruno@clisp.org>
4867
4868         sqrtl: Respect rules for use of AC_LIBOBJ.
4869         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
4870         * modules/sqrtl (configure.ac): ... to here.
4871
4872 2011-05-20  Bruno Haible  <bruno@clisp.org>
4873
4874         ldexpl: Respect rules for use of AC_LIBOBJ.
4875         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
4876         * modules/ldexpl (configure.ac): ... to here.
4877
4878 2011-05-20  Bruno Haible  <bruno@clisp.org>
4879
4880         frexpl*: Respect rules for use of AC_LIBOBJ.
4881         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
4882         invocation from here...
4883         * modules/frexpl (configure.ac): ... to here.
4884         * modules/frexpl-nolibm (configure.ac): ... and here.
4885
4886 2011-05-20  Bruno Haible  <bruno@clisp.org>
4887
4888         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
4889         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
4890         invocation from here...
4891         * modules/frexp (configure.ac): ... to here.
4892         * modules/frexp-nolibm (configure.ac): ... and here.
4893
4894 2011-05-20  Bruno Haible  <bruno@clisp.org>
4895
4896         isnan: Respect rules for use of AC_LIBOBJ.
4897         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
4898         invocations here.
4899         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
4900         REPLACE_ISNAN.
4901         * modules/isnand (configure.ac): Likewise.
4902         * modules/isnanl (configure.ac): Likewise.
4903
4904 2011-05-20  Bruno Haible  <bruno@clisp.org>
4905
4906         isnanl*: Respect rules for use of AC_LIBOBJ.
4907         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
4908         invocation from here...
4909         * modules/isnanl (configure.ac): ... to here.
4910         * modules/isnanl-nolibm (configure.ac): ... and here.
4911
4912 2011-05-20  Bruno Haible  <bruno@clisp.org>
4913
4914         isnand*: Move AC_LIBOBJ invocations to module description.
4915         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
4916         invocation from here...
4917         * modules/isnand (configure.ac): ... to here.
4918         * modules/isnand-nolibm (configure.ac): ... and here.
4919
4920 2011-05-20  Bruno Haible  <bruno@clisp.org>
4921
4922         isnanf*: Move AC_LIBOBJ invocations to module description.
4923         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
4924         invocation from here...
4925         * modules/isnanf (configure.ac): ... to here.
4926         * modules/isnanf-nolibm (configure.ac): ... and here.
4927
4928 2011-05-20  Bruno Haible  <bruno@clisp.org>
4929
4930         isnan*: Separate the AC_LIBOBJ invocations.
4931         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
4932         AC_LIBOBJ invocation.
4933         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
4934         here.
4935         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
4936         AC_LIBOBJ invocation.
4937         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
4938         here.
4939         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
4940         AC_LIBOBJ invocation.
4941         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
4942         here.
4943         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
4944
4945 2011-05-08  Bruno Haible  <bruno@clisp.org>
4946
4947         isinf: Move AC_LIBOBJ invocations to module description.
4948         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
4949         * modules/isinf (configure.ac): ... to here.
4950
4951 2011-05-08  Bruno Haible  <bruno@clisp.org>
4952
4953         isfinite: Move AC_LIBOBJ invocations to module description.
4954         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
4955         * modules/isfinite (configure.ac): ... to here.
4956
4957 2011-05-08  Bruno Haible  <bruno@clisp.org>
4958
4959         isblank: Move AC_LIBOBJ invocations to module description.
4960         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
4961         here...
4962         * modules/isblank (configure.ac): ... to here.
4963
4964 2011-05-08  Bruno Haible  <bruno@clisp.org>
4965
4966         isapipe: Move AC_LIBOBJ invocations to module description.
4967         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
4968         gl_PREREQ_ISAPIPE invocations from here...
4969         * modules/isapipe (configure.ac): ... to here.
4970         (Depends-on): Update condition.
4971
4972 2011-05-08  Bruno Haible  <bruno@clisp.org>
4973
4974         ioctl: Move AC_LIBOBJ invocations to module description.
4975         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
4976         invocations from here...
4977         * modules/ioctl (configure.ac): ... to here.
4978         (Depends-on): Update condition.
4979
4980 2011-05-08  Bruno Haible  <bruno@clisp.org>
4981
4982         imaxdiv: Move AC_LIBOBJ invocations to module description.
4983         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
4984         invocations from here...
4985         * modules/imaxdiv (configure.ac): ... to here.
4986
4987 2011-05-08  Bruno Haible  <bruno@clisp.org>
4988
4989         imaxabs: Move AC_LIBOBJ invocations to module description.
4990         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
4991         invocations from here...
4992         * modules/imaxabs (configure.ac): ... to here.
4993
4994 2011-05-08  Bruno Haible  <bruno@clisp.org>
4995
4996         getaddrinfo: Move AC_LIBOBJ invocations to module description.
4997         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
4998         AC_LIBOBJ invocations from here...
4999         * modules/getaddrinfo (configure.ac): ... to here.
5000         (Depends-on): Add conditions.
5001
5002 2011-05-08  Bruno Haible  <bruno@clisp.org>
5003
5004         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
5005         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
5006         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
5007         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
5008         (gl_PREREQ_INET_PTON): ... from here.
5009         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
5010         gl_PREREQ_INET_PTON here.
5011         (Depends-on): Update condition.
5012
5013 2011-05-08  Bruno Haible  <bruno@clisp.org>
5014
5015         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
5016         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
5017         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
5018         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
5019         (gl_PREREQ_INET_NTOP): ... from here.
5020         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
5021         gl_PREREQ_INET_NTOP here.
5022         (Depends-on): Update condition.
5023
5024 2011-05-08  Bruno Haible  <bruno@clisp.org>
5025
5026         iconv_open: Move AC_LIBOBJ invocations to module description.
5027         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
5028         AC_LIBOBJ invocations from here...
5029         * modules/iconv_open (configure.ac): ... to here.
5030
5031 2011-05-08  Bruno Haible  <bruno@clisp.org>
5032
5033         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
5034         If module 'iconv_open' is among the main modules and module
5035         'iconv_open-utf' is among the tests dependencies, then
5036         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
5037         return the special iconv_t values. Therefore iconv() and iconv_close()
5038         must support these special iconv_t values, already in lib, not only in
5039         tests.
5040         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
5041         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
5042         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
5043         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
5044         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
5045         (Depends-on): Add the dependencies of iconv_open-utf.
5046         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
5047         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
5048         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
5049
5050 2011-05-08  Bruno Haible  <bruno@clisp.org>
5051
5052         group-member: Move AC_LIBOBJ invocations to module description.
5053         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
5054         gl_PREREQ_GROUP_MEMBER invocations from here...
5055         * modules/group-member (configure.ac): ... to here.
5056
5057 2011-05-08  Bruno Haible  <bruno@clisp.org>
5058
5059         grantpt: Move AC_LIBOBJ invocations to module description.
5060         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
5061         invocations from here...
5062         * modules/grantpt (configure.ac): ... to here.
5063
5064 2011-05-08  Bruno Haible  <bruno@clisp.org>
5065
5066         glob: Move AC_LIBOBJ invocations to module description.
5067         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
5068         from here...
5069         * modules/glob (configure.ac): ... to here.
5070
5071 2011-05-08  Bruno Haible  <bruno@clisp.org>
5072
5073         getusershell: Move AC_LIBOBJ invocations to module description.
5074         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
5075         Move AC_LIBOBJ invocation from here...
5076         * modules/getusershell (configure.ac): ... to here.
5077         (Depends-on): Update condition.
5078
5079 2011-05-08  Bruno Haible  <bruno@clisp.org>
5080
5081         gettimeofday: Move AC_LIBOBJ invocations to module description.
5082         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
5083         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
5084         gl_PREREQ_GETTIMEOFDAY invocations from here...
5085         * modules/gettimeofday (configure.ac): ... to here.
5086
5087 2011-05-08  Bruno Haible  <bruno@clisp.org>
5088
5089         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
5090         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
5091         just gl_FUNC_TZSET.
5092         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
5093         (gl_FUNC_TZSET_CLOBBER): Remove actions.
5094         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
5095         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
5096
5097 2011-05-08  Bruno Haible  <bruno@clisp.org>
5098
5099         getsubopt: Move AC_LIBOBJ invocations to module description.
5100         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
5101         gl_PREREQ_GETSUBOPT invocations from here...
5102         * modules/getsubopt (configure.ac): ... to here.
5103
5104 2011-05-08  Bruno Haible  <bruno@clisp.org>
5105
5106         getpass-gnu: Move AC_LIBOBJ invocations to module description.
5107         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
5108         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
5109         * modules/getpass-gnu (configure.ac): ... to here.
5110
5111 2011-05-08  Bruno Haible  <bruno@clisp.org>
5112
5113         getpass: Move AC_LIBOBJ invocations to module description.
5114         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
5115         gl_PREREQ_GETPASS invocations from here...
5116         * modules/getpass (configure.ac): ... to here.
5117
5118 2011-05-08  Bruno Haible  <bruno@clisp.org>
5119
5120         getpagesize: Move AC_LIBOBJ invocations to module description.
5121         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
5122         from here...
5123         * modules/getpagesize (configure.ac): ... to here.
5124
5125 2011-05-08  Bruno Haible  <bruno@clisp.org>
5126
5127         getopt: Move AC_LIBOBJ invocations to module description.
5128         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
5129         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
5130         invocations from here...
5131         * modules/getopt-gnu (configure.ac): ... to here.
5132         * modules/getopt-posix (configure.ac): ... and here.
5133         (Depends-on): Update condition.
5134
5135 2011-05-08  Bruno Haible  <bruno@clisp.org>
5136
5137         getopt, argp: Respect rules for use of AC_LIBOBJ.
5138         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
5139         (gl_REPLACE_GETOPT_ALWAYS): New macro.
5140         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
5141         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
5142
5143 2011-05-08  Bruno Haible  <bruno@clisp.org>
5144
5145         getlogin_r: Move AC_LIBOBJ invocations to module description.
5146         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
5147         gl_PREREQ_GETLOGIN_R invocations from here...
5148         * modules/getlogin_r (configure.ac): ... to here.
5149
5150 2011-05-08  Bruno Haible  <bruno@clisp.org>
5151
5152         getlogin: Move AC_LIBOBJ invocations to module description.
5153         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
5154         here...
5155         * modules/getlogin (configure.ac): ... to here.
5156
5157 2011-05-08  Bruno Haible  <bruno@clisp.org>
5158
5159         getloadavg: Move AC_LIBOBJ invocations to module description.
5160         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
5161         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
5162         * modules/getloadavg (configure.ac): ... to here.
5163
5164 2011-05-08  Bruno Haible  <bruno@clisp.org>
5165
5166         gethrxtime: Move AC_LIBOBJ invocations to module description.
5167         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
5168         LIB_GETHRXTIME from here...
5169         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
5170         invocations from here...
5171         * modules/gethrxtime (configure.ac): ... to here.
5172
5173 2011-05-08  Bruno Haible  <bruno@clisp.org>
5174
5175         gethostname: Move AC_LIBOBJ invocations to module description.
5176         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
5177         gl_PREREQ_GETHOSTNAME invocations from here...
5178         * modules/gethostname (configure.ac): ... to here.
5179
5180 2011-05-08  Bruno Haible  <bruno@clisp.org>
5181
5182         getgroups: Move AC_LIBOBJ invocations to module description.
5183         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
5184         here...
5185         * modules/getgroups (configure.ac): ... to here.
5186
5187 2011-05-08  Bruno Haible  <bruno@clisp.org>
5188
5189         getdtablesize: Move AC_LIBOBJ invocations to module description.
5190         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
5191         invocation from here...
5192         * modules/getdtablesize (configure.ac): ... to here.
5193
5194 2011-05-08  Bruno Haible  <bruno@clisp.org>
5195
5196         getdomainname: Move AC_LIBOBJ invocations to module description.
5197         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
5198         gl_PREREQ_GETDOMAINNAME invocations from here...
5199         * modules/getdomainname (configure.ac): ... to here.
5200
5201 2011-05-08  Bruno Haible  <bruno@clisp.org>
5202
5203         getline: Move AC_LIBOBJ invocations to module description.
5204         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
5205         invocations from here...
5206         * modules/getline (configure.ac): ... to here.
5207
5208 2011-05-08  Bruno Haible  <bruno@clisp.org>
5209
5210         getline: Simplify.
5211         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
5212         It's already handled through the module dependency.
5213
5214 2011-05-08  Bruno Haible  <bruno@clisp.org>
5215
5216         getdelim: Move AC_LIBOBJ invocations to module description.
5217         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
5218         and gl_PREREQ_GETDELIM invocations from here...
5219         * modules/getdelim (configure.ac): ... to here.
5220         (Depends-on): Fix condition.
5221
5222 2011-05-08  Bruno Haible  <bruno@clisp.org>
5223
5224         getcwd: Move AC_LIBOBJ invocations to module description.
5225         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
5226         invocations from here...
5227         * modules/getcwd (configure.ac): ... to here.
5228
5229 2011-05-08  Bruno Haible  <bruno@clisp.org>
5230
5231         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
5232         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
5233         here...
5234         * modules/getcwd-lgpl (configure.ac): ... to here.
5235
5236 2011-05-07  Bruno Haible  <bruno@clisp.org>
5237
5238         crypto/gc: Move AC_LIBOBJ invocations to module description.
5239         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
5240         * modules/crypto/gc (configure.ac): ... to here.
5241
5242 2011-05-07  Bruno Haible  <bruno@clisp.org>
5243
5244         fwriting: Move AC_LIBOBJ invocations to module description.
5245         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
5246         here...
5247         * modules/fwriting (configure.ac): ... to here.
5248
5249 2011-05-07  Bruno Haible  <bruno@clisp.org>
5250
5251         fwritable: Move AC_LIBOBJ invocations to module description.
5252         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
5253         here...
5254         * modules/fwritable (configure.ac): ... to here.
5255
5256 2011-05-07  Bruno Haible  <bruno@clisp.org>
5257
5258         futimens: Move AC_LIBOBJ invocations to module description.
5259         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
5260         here...
5261         * modules/futimens (configure.ac): ... to here.
5262
5263 2011-05-07  Bruno Haible  <bruno@clisp.org>
5264
5265         ftruncate: Move AC_LIBOBJ invocations to module description.
5266         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
5267         gl_PREREQ_FTRUNCATE invocations from here...
5268         * modules/ftruncate (configure.ac): ... to here.
5269
5270 2011-05-07  Bruno Haible  <bruno@clisp.org>
5271
5272         fsync: Move AC_LIBOBJ invocations to module description.
5273         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
5274         invocations from here...
5275         * modules/fsync (configure.ac): ... to here.
5276
5277 2011-05-07  Bruno Haible  <bruno@clisp.org>
5278
5279         fsusage: Move AC_LIBOBJ invocations to module description.
5280         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
5281         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
5282         * modules/fsusage (configure.ac): ... to here.
5283
5284 2011-05-07  Bruno Haible  <bruno@clisp.org>
5285
5286         freopen: Move AC_LIBOBJ invocations to module description.
5287         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
5288         invocations from here...
5289         * modules/freopen (configure.ac): ... to here.
5290
5291 2011-05-07  Bruno Haible  <bruno@clisp.org>
5292
5293         free: Move AC_LIBOBJ invocations to module description.
5294         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
5295         invocations from here...
5296         * modules/free (configure.ac): ... to here.
5297
5298 2011-05-07  Bruno Haible  <bruno@clisp.org>
5299
5300         freadable: Move AC_LIBOBJ invocations to module description.
5301         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
5302         here...
5303         * modules/freadable (configure.ac): ... to here.
5304
5305 2011-05-07  Bruno Haible  <bruno@clisp.org>
5306
5307         fpurge: Move AC_LIBOBJ invocations to module description.
5308         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
5309         invocations from here...
5310         * modules/fpurge (configure.ac): ... to here.
5311
5312 2011-05-07  Bruno Haible  <bruno@clisp.org>
5313
5314         fpending: Move AC_LIBOBJ invocations to module description.
5315         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
5316         gl_FUNC_FPENDING.
5317         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
5318         invocations from here...
5319         * modules/fpending (configure.ac): ... to here.
5320
5321 2011-05-07  Bruno Haible  <bruno@clisp.org>
5322
5323         fopen: Move AC_LIBOBJ invocations to module description.
5324         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
5325         invocations from here...
5326         * modules/fopen (configure.ac): ... to here.
5327
5328 2011-05-07  Bruno Haible  <bruno@clisp.org>
5329
5330         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
5331         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
5332         gl_FUNC_FNMATCH_POSIX.
5333         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
5334         invocations from here...
5335         * modules/fnmatch (configure.ac): ... to here.
5336         * modules/fnmatch-gnu (configure.ac): ... and here.
5337
5338 2011-05-07  Bruno Haible  <bruno@clisp.org>
5339
5340         flock: Move AC_LIBOBJ invocations to module description.
5341         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
5342         invocations from here...
5343         * modules/flock (configure.ac): ... to here.
5344
5345 2011-05-07  Bruno Haible  <bruno@clisp.org>
5346
5347         fileblocks: Move AC_LIBOBJ invocations to module description.
5348         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
5349         gl_PREREQ_FILEBLOCKS invocations from here...
5350         * modules/fileblocks (configure.ac): ... to here.
5351
5352 2011-05-06  Bruno Haible  <bruno@clisp.org>
5353
5354         fflush: Move AC_LIBOBJ invocations to module description.
5355         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
5356         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
5357         invocations from here...
5358         * modules/fflush (configure.ac): ... to here.
5359
5360 2011-05-06  Bruno Haible  <bruno@clisp.org>
5361
5362         fdopendir: Move AC_LIBOBJ invocations to module description.
5363         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
5364         here...
5365         * modules/fdopendir (configure.ac): ... to here.
5366         (Depends-on): Improve conditions.
5367
5368 2011-05-06  Bruno Haible  <bruno@clisp.org>
5369
5370         _Exit: Move AC_LIBOBJ invocations to module description.
5371         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
5372         invocations from here...
5373         * modules/_Exit (configure.ac): ... to here.
5374
5375 2011-05-21  Bruno Haible  <bruno@clisp.org>
5376
5377         euidaccess: Respect rules for use of AC_LIBOBJ.
5378         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
5379         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
5380         from here...
5381         * modules/euidaccess (configure.ac): ... to here.
5382
5383 2011-05-06  Bruno Haible  <bruno@clisp.org>
5384
5385         error: Move AC_LIBOBJ invocations to module description.
5386         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
5387         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
5388         invocations from here...
5389         * modules/error (configure.ac): ... to here.
5390
5391 2011-05-06  Bruno Haible  <bruno@clisp.org>
5392
5393         duplocale: Move AC_LIBOBJ invocations to module description.
5394         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
5395         gl_PREREQ_DUPLOCALE invocations from here...
5396         * modules/duplocale (configure.ac): ... to here.
5397
5398 2011-05-05  Bruno Haible  <bruno@clisp.org>
5399
5400         dirfd: Move AC_LIBOBJ invocations to module description.
5401         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
5402         gl_FUNC_DIRFD.
5403         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
5404         here...
5405         * modules/dirfd (configure.ac): ... to here.
5406         (Depends-on): Fix condition.
5407
5408 2011-05-05  Bruno Haible  <bruno@clisp.org>
5409
5410         chown: Respect rules for use of AC_LIBOBJ.
5411         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
5412         * modules/chown (configure.ac): ... to here.
5413
5414 2011-05-05  Bruno Haible  <bruno@clisp.org>
5415
5416         chdir-long: Move AC_LIBOBJ invocations to module description.
5417         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
5418         gl_PREREQ_CHDIR_LONG invocations from here...
5419         * modules/chdir-long (configure.ac): ... to here.
5420
5421 2011-05-05  Bruno Haible  <bruno@clisp.org>
5422
5423         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
5424         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
5425         from here...
5426         * modules/canonicalize-lgpl (configure.ac): ... to here.
5427
5428 2011-05-05  Bruno Haible  <bruno@clisp.org>
5429
5430         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
5431         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
5432         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
5433         REPLACE_CALLOC.
5434         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
5435         * modules/calloc-gnu (configure.ac): Likewise.
5436
5437 2011-05-05  Bruno Haible  <bruno@clisp.org>
5438
5439         btowc: Move AC_LIBOBJ invocations to module description.
5440         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
5441         invocations from here...
5442         * modules/btowc (configure.ac): ... to here.
5443
5444 2011-05-21  Bruno Haible  <bruno@clisp.org>
5445
5446         atexit: Move AC_LIBOBJ invocations to module description.
5447         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
5448         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
5449         here...
5450         * modules/atexit (configure.ac): ... to here.
5451
5452 2011-05-05  Bruno Haible  <bruno@clisp.org>
5453
5454         atoll: Move AC_LIBOBJ invocations to module description.
5455         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
5456         invocations from here...
5457         * modules/atoll (configure.ac): ... to here.
5458
5459 2011-05-05  Bruno Haible  <bruno@clisp.org>
5460
5461         argz: Move AC_LIBOBJ invocations to module description.
5462         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
5463         * modules/argz (configure.ac): ... to here.
5464
5465 2011-05-05  Bruno Haible  <bruno@clisp.org>
5466
5467         alphasort: Move AC_LIBOBJ invocations to module description.
5468         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
5469         gl_PREREQ_ALPHASORT invocations from here...
5470         * modules/alphasort (configure.ac): ... to here.
5471
5472 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
5473
5474         verify: new macro verify_expr; verify_true deprecated
5475         * NEWS: Mention this.
5476         * doc/verify.texi (Compile-time Assertions): Document this.
5477         * lib/verify.h (verify_true): Deprecate.
5478         (verify_expr): New macro.
5479         * tests/test-verify.c (function): Test verify_expr.
5480
5481 2011-06-14  Jim Meyering  <meyering@redhat.com>
5482
5483         init.sh: give more portable redirection-related advice in a comment
5484         * tests/init.sh (stderr_fileno_): Update the advice in comments.
5485         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
5486         for lots of discussion.  Stefano Lattarini suggested the solution
5487         of putting "9>&2" after the command.  Reported by Bruno Haible.
5488
5489 2011-06-13  Bruno Haible  <bruno@clisp.org>
5490
5491         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
5492         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
5493         'none'.
5494
5495 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
5496
5497         ftoastr: use strtof only if HAVE_STRTOF
5498         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
5499         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
5500         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
5501         * modules/ftoastr (configure.ac): Check for strtof.
5502
5503 2011-06-13  Bruno Haible  <bruno@clisp.org>
5504
5505         gnulib-tool: Addendum to 2011-06-08 commit.
5506         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
5507         and --witness-c-macro have been given, augment AM_CPPFLAGS.
5508
5509 2011-06-13  Bruno Haible  <bruno@clisp.org>
5510
5511         fseeko: Provide a non-inline replacement of fseek().
5512         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
5513         * modules/fseeko (Depends-on): Add fseek.
5514         * modules/fseek (License): Change to LGPLv2+.
5515
5516 2011-06-13  Bruno Haible  <bruno@clisp.org>
5517
5518         ftello: Provide a non-inline replacement of ftell().
5519         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
5520         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
5521         not have ftello() (such as on mingw).
5522         * modules/ftello (Depends-on): Add ftell.
5523         * modules/ftell (License): Change to LGPLv2+.
5524
5525 2011-05-07  Bruno Haible  <bruno@clisp.org>
5526
5527         ftell: Move AC_LIBOBJ invocations to module description.
5528         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
5529         * modules/ftell (configure.ac): ... to here.
5530
5531 2011-05-07  Bruno Haible  <bruno@clisp.org>
5532
5533         ftello: Respect rules for use of AC_LIBOBJ.
5534         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
5535         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
5536         here...
5537         * modules/ftello (configure.ac): ... to here.
5538
5539 2011-05-07  Bruno Haible  <bruno@clisp.org>
5540
5541         fseeko: Simplify.
5542         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
5543         (gl_FUNC_FSEEKO): Inline it here.
5544
5545 2011-05-07  Bruno Haible  <bruno@clisp.org>
5546
5547         fseek: Move AC_LIBOBJ invocations to module description.
5548         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
5549         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
5550         * modules/fseek (configure.ac): ... to here.
5551
5552 2011-05-07  Bruno Haible  <bruno@clisp.org>
5553
5554         fseek: Respect rules for use of AC_LIBOBJ.
5555         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
5556         here...
5557         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
5558
5559 2011-05-07  Bruno Haible  <bruno@clisp.org>
5560
5561         fseeko: Respect rules for use of AC_LIBOBJ.
5562         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
5563         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
5564         here...
5565         * modules/fseeko (configure.ac): ... to here.
5566
5567 2011-06-13  Bruno Haible  <bruno@clisp.org>
5568
5569         gnulib-tool: Allow comments in the 'Depends-on' section.
5570         * doc/gnulib.texi (Module description): Mention comment syntax in the
5571         Depends-on section.
5572         * gnulib-tool (func_get_dependencies): Filter out comment lines.
5573
5574 2011-06-13  Bruno Haible  <bruno@clisp.org>
5575
5576         file-set.h: guard __attibute__ use, now that it's not always defined
5577         * lib/file-set.h (record_file): Use __attribute__ only with compiler
5578         versions that support it.  This fixes a coreutils build failure with
5579         the vendor cc on HP-UX 11.31.
5580
5581 2011-06-12  Bruno Haible  <bruno@clisp.org>
5582
5583         acl: Add support for HP-UX >= 11.11 JFS ACLs.
5584         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
5585         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
5586         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
5587         (acl, aclsort): New declarations.
5588         (aclv_nontrivial): New declaration.
5589         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
5590         (file_has_acl): Read also the second kind of HP-UX ACLs.
5591         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
5592         kind of HP-UX ACLs if the first kind fails.
5593         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
5594         second kind of HP-UX ACLs.
5595         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
5596         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
5597         agree.
5598         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
5599         hpuxjfs.
5600         Handle hpuxjfs.
5601         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
5602         hpuxjfs.
5603         Handle hpuxjfs.
5604         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
5605         (func_test_same_acls): Use both lsacl and getacl.
5606         Handle hpuxjfs.
5607         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
5608         (func_test_same_acls): Use both lsacl and getacl.
5609         Handle hpuxjfs.
5610
5611 2011-06-12  Bruno Haible  <bruno@clisp.org>
5612
5613         acl: Complete the 2010-08-10 fix.
5614         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
5615         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
5616         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
5617         explicitly.
5618         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
5619         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
5620
5621 2011-06-12  Bruno Haible  <bruno@clisp.org>
5622
5623         spawn-pipe tests: Comments.
5624         * tests/test-spawn-pipe-child.c (main): Update comment.
5625         Reported by James Youngman <jay@gnu.org>.
5626
5627 2011-06-11  James Youngman  <jay@gnu.org>
5628
5629         New module 'stat-size'.
5630         * modules/stat-size: New module.  Provides macros for accessing
5631         file size information in instances of struct stat.  Depends on the
5632         fileblocks module because it calls st_blocks.
5633         * lib/stat-size.h: New file, adapted from coreutils' system.h.
5634         * doc/gnulib.texi: Include stat-size.texi.
5635         * doc/stat-size.texi: Documentation for this module.
5636         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
5637         * m4/fileblocks.m4: Mention that stat-size depends on the call to
5638         AC_STRUCT_ST_BLOCKS.
5639
5640 2011-06-09  Bruno Haible  <bruno@clisp.org>
5641
5642         thread: Support pthreads-win32.
5643         * lib/glthread/thread.h (gl_thread_self): Define differently on
5644         pthreads-win32.
5645         (gl_null_thread): New declaration.
5646         (gl_thread_self_pointer): New macro.
5647         * lib/glthread/thread.c (gl_null_thread): New constant.
5648         * tests/test-lock.c: Use gl_thread_self_pointer instead of
5649         gl_thread_self.
5650         * tests/test-tls.c: Likewise.
5651         Suggested by Paul Eggert. Reported by Eric Blake.
5652
5653 2011-06-09  Bruno Haible  <bruno@clisp.org>
5654
5655         thread: Fix confusion between NULL and 0.
5656         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
5657         Reported by Paul Eggert.
5658
5659 2011-06-09  Bruno Haible  <bruno@clisp.org>
5660
5661         spawn-pipe tests: Avoid test failure on HP-UX 11.
5662         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
5663         is closed.
5664
5665 2011-06-09  Bruno Haible  <bruno@clisp.org>
5666
5667         acl tests: Fix compilation error on HP-UX 11.
5668         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
5669
5670 2011-06-09  Bruno Haible  <bruno@clisp.org>
5671
5672         rmdir: Avoid test failure on HP-UX 10.20.
5673         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
5674         EEXIST.
5675
5676 2011-06-08  Eric Blake  <eblake@redhat.com>
5677
5678         perror: fix test on mingw
5679         * modules/perror-tests (Depends-on): Add dup2.
5680
5681         strerror_r-posix: fix on MacOS
5682         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
5683         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
5684         logic bug.
5685         * lib/strerror_r.c (strerror_r): Fix the bug.
5686         * lib/strerror.c (strerror): Likewise.
5687         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
5688         problem.
5689         * doc/posix-functions/strerror.texi (strerror): Likewise.
5690         * doc/posix-functions/perror.texi (perror): Likewise.
5691         * tests/test-strerror.c (main): Enhance test.
5692         * tests/test-strerror_r.c (main): Likewise.
5693
5694 2011-06-08  Bruno Haible  <bruno@clisp.org>
5695
5696         gnulib-tool: Better isolation between different gnulib-tool invocations.
5697         * gnulib-tool: New option --witness-c-macro.
5698         (witness_c_macro): New variable.
5699         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
5700         AM_CPPFLAGS define it as a C macro.
5701         (func_emit_tests_Makefile_am): Likewise.
5702         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
5703         read it from there.
5704         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
5705         m4_define, not AC_DEFUN.
5706         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
5707         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
5708         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
5709         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
5710         s|...|...|, to substitute the values of the GNULIB_* module indicator
5711         variables.
5712         * modules/dirent (Makefile.am): Likewise.
5713         * modules/fcntl-h (Makefile.am): Likewise.
5714         * modules/iconv-h (Makefile.am): Likewise.
5715         * modules/langinfo (Makefile.am): Likewise.
5716         * modules/locale (Makefile.am): Likewise.
5717         * modules/math (Makefile.am): Likewise.
5718         * modules/netdb (Makefile.am): Likewise.
5719         * modules/poll-h (Makefile.am): Likewise.
5720         * modules/pty (Makefile.am): Likewise.
5721         * modules/search (Makefile.am): Likewise.
5722         * modules/signal (Makefile.am): Likewise.
5723         * modules/spawn (Makefile.am): Likewise.
5724         * modules/stdio (Makefile.am): Likewise.
5725         * modules/stdlib (Makefile.am): Likewise.
5726         * modules/string (Makefile.am): Likewise.
5727         * modules/sys_ioctl (Makefile.am): Likewise.
5728         * modules/sys_select (Makefile.am): Likewise.
5729         * modules/sys_socket (Makefile.am): Likewise.
5730         * modules/sys_stat (Makefile.am): Likewise.
5731         * modules/sys_times (Makefile.am): Likewise.
5732         * modules/sys_utsname (Makefile.am): Likewise.
5733         * modules/sys_wait (Makefile.am): Likewise.
5734         * modules/termios (Makefile.am): Likewise.
5735         * modules/time (Makefile.am): Likewise.
5736         * modules/unistd (Makefile.am): Likewise.
5737         * modules/wchar (Makefile.am): Likewise.
5738
5739 2011-06-08  Eric Blake  <eblake@redhat.com>
5740
5741         strerror: simplify replacement
5742         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
5743         * modules/strerror (configure.ac): No prereqs needed here...
5744         * modules/strerror-override (configure.ac): ...but this needs it.
5745         (Files): Add file for needed prereq macro.
5746
5747 2011-06-08  Bruno Haible  <bruno@clisp.org>
5748
5749         strerror_r-posix: Tweaks.
5750         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
5751         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
5752         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
5753         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
5754         (gl_FUNC_STRERROR_R): ... to here.
5755         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
5756
5757 2011-06-07  Eric Blake  <eblake@redhat.com>
5758
5759         perror: document fixed bugs
5760         * doc/posix-functions/perror.texi (perror): Document recent
5761         patches.
5762
5763 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
5764
5765         stat-time: get_stat_birthtime failure is better-defined
5766         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
5767         return a timestamp whose tv_sec and tv_nsec values are both -1.
5768         Previously, the spec said only that the tv_nsec value was negative.
5769         This upward-compatible change simplifies GNU tar a bit.
5770
5771 2011-06-07  Eric Blake  <eblake@redhat.com>
5772
5773         strerror_r-posix: work around cygwin 1.7.9
5774         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
5775         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
5776         bug without replacing strerror_r.
5777         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
5778         strerror_r is buggy, but without requiring strerror_r compilation.
5779         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
5780
5781         test-perror: relax test to ignore cygwin bug
5782         * tests/test-perror2.c (main): Relax test on requiring detection
5783         of stream errors, and use unbuffered stream.
5784         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
5785         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
5786         * doc/posix-functions/fputc.texi (fputc): Likewise.
5787         * doc/posix-functions/fputs.texi (fputs): Likewise.
5788         * doc/posix-functions/fputws.texi (fputws): Likewise.
5789         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
5790         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
5791         * doc/posix-functions/getopt.texi (getopt): Likewise.
5792         * doc/posix-functions/perror.texi (perror): Likewise.
5793         * doc/posix-functions/printf.texi (printf): Likewise.
5794         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
5795         * doc/posix-functions/psignal.texi (psignal): Likewise.
5796         * doc/posix-functions/putc.texi (putc): Likewise.
5797         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
5798         Likewise.
5799         * doc/posix-functions/putchar.texi (putchar): Likewise.
5800         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
5801         Likewise.
5802         * doc/posix-functions/puts.texi (puts): Likewise.
5803         * doc/posix-functions/putwc.texi (putwc): Likewise.
5804         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
5805         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
5806         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
5807         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
5808         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
5809         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
5810         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
5811         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
5812
5813 2011-05-22  Bruno Haible  <bruno@clisp.org>
5814
5815         strerror: Move AC_LIBOBJ invocations to module description.
5816         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
5817         gl_PREREQ_STRERROR invocations from here...
5818         * modules/strerror (configure.ac): ... to here.
5819
5820 2011-05-21  Bruno Haible  <bruno@clisp.org>
5821
5822         perror: Use common idiom.
5823         * modules/perror (configure.ac): Reorder statements.
5824
5825 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
5826
5827         tests: fix usage message in 'mktempd_'
5828         * tests/init.sh (mktempd_): In the usage message, use literal
5829         'mktempd_', not '$ME' (which is even undefined), as the name of
5830         the subroutine.
5831
5832 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
5833
5834         tests init: new function 'fatal_', for hard errors
5835         Before this patch, the only way offered by tests/init.sh to
5836         properly signal a hard error was the `framework_failure_'
5837         function.  But the error message issued by that function,
5838         as its name would suggest, refers to a set-up failure in the
5839         testsuite, while hard errors can obviously also be due to
5840         other reasons.  The best way to fix this inconsistency is to
5841         introduce a new function with a more general error message.
5842         * tests/init.sh (fatal_): New function.
5843
5844 2011-06-06  Eric Blake  <eblake@redhat.com>
5845
5846         canonicalize-lgpl: use common idiom
5847         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
5848         over newer POSIX -Rf.
5849         Reported by Bruno Haible.
5850
5851         canonicalize-lgpl: work around AIX realpath bug
5852         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
5853         * doc/posix-functions/realpath.texi (realpath): Document it.
5854         Reported by Bruno Haible.
5855
5856         strerror: work around FreeBSD bug
5857         * lib/strerror.c (strerror): Special case 0.
5858         Reported by Bruno Haible.
5859
5860         strerror-override: avoid bloating errno module
5861         * modules/errno (Files, configure.ac): Move replacement strings...
5862         * modules/strerror-override: ...to new module.
5863         * modules/strerror (Depends-on): Add strerror-override.
5864         * modules/strerror_r-posix (Depends-on): Likewise.
5865         * MODULES.html.sh: Document new module.
5866         Reported by Bruno Haible.
5867
5868 2011-06-06  Bruno Haible  <bruno@clisp.org>
5869
5870         spawn-pipe tests: Rename program.
5871         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
5872         * tests/test-spawn-pipe-child.c: Update comment.
5873         * tests/test-spawn-pipe.sh: Update.
5874         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
5875
5876         spawn-pipe tests: Link the child program only against libc.
5877         * tests/test-spawn-pipe-child.c: New file, extracted from
5878         tests/test-spawn-pipe.c.
5879         (main): Expect only one argument.
5880         (is_open): New function, copied from tests/test-pipe.c.
5881         * tests/test-spawn-pipe.c: Don't include <errno.h>.
5882         (child_main): Remove function.
5883         (test_pipe): Pass only one argument to the child program.
5884         (main): Remove child process code. Expect the child program's name as
5885         first argument.
5886         * tests/test-spawn-pipe.sh: Pass the child program's name as first
5887         argument.
5888         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
5889         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
5890         test-spawn-pipe-child against no libraries.
5891
5892 2011-06-06  Bruno Haible  <bruno@clisp.org>
5893
5894         careadlinkat: Avoid mismatch between ssize_t and int.
5895         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
5896         * lib/careadlinkat.c (careadlinkatcwd): Define always.
5897
5898 2011-06-06  Jim Meyering  <meyering@redhat.com>
5899
5900         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
5901         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
5902         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
5903
5904 2011-06-05  Bruno Haible  <bruno@clisp.org>
5905
5906         ansi-c++-opt: Interoperability with libtool.
5907         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
5908         set the variable to "no", not to ":".
5909         * NEWS: Mention the change.
5910
5911 2011-06-05  Bruno Haible  <bruno@clisp.org>
5912
5913         acl: Fix test failure on AIX 7.
5914         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
5915         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
5916
5917 2011-06-05  Bruno Haible  <bruno@clisp.org>
5918
5919         pipe-filter-ii: Fix test failure on AIX and IRIX.
5920         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
5921         with EAGAIN, retry with a smaller buffer size.
5922
5923 2011-06-05  Bruno Haible  <bruno@clisp.org>
5924
5925         localename: Fix link dependencies.
5926         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
5927         * modules/localename-tests (Makefile.am): Link test-localename with
5928         $(LIBTHREAD).
5929
5930 2011-06-05  Bruno Haible  <bruno@clisp.org>
5931
5932         error: Avoid gcc warning.
5933         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
5934
5935 2011-06-05  Bruno Haible  <bruno@clisp.org>
5936
5937         unsetenv: Avoid gcc warning.
5938         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
5939
5940 2011-06-05  Bruno Haible  <bruno@clisp.org>
5941
5942         setenv: Avoid gcc warning.
5943         * lib/setenv.c (setenv): Provide declaration if system lacks it.
5944
5945 2011-06-05  Bruno Haible  <bruno@clisp.org>
5946
5947         sys_select: Ensure memset is declared also on AIX 7.
5948         * lib/sys_select.in.h: Include <string.h> also on AIX.
5949         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
5950         self-contained also on AIX 7.1.
5951
5952 2011-06-04  Jim Meyering  <meyering@redhat.com>
5953
5954         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
5955         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
5956         function name, "error".
5957         (_gl_translatable_diag_func_re): New configurable variable.
5958
5959 2011-06-04  Bruno Haible  <bruno@clisp.org>
5960
5961         getopt: Avoid gcc warning.
5962         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
5963
5964 2011-06-04  Bruno Haible  <bruno@clisp.org>
5965
5966         strerror_r: Fix comments.
5967         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
5968         commit.
5969
5970 2011-06-04  Bruno Haible  <bruno@clisp.org>
5971
5972         perror: Fix compilation error.
5973         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
5974         Undefine fprintf, not sprintf.
5975         * modules/perror (Depends-on): Remove intprops, verify.
5976
5977 2011-06-04  Bruno Haible  <bruno@clisp.org>
5978
5979         setlocale: Enable replacement on Cygwin 1.5.
5980         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
5981         Cygwin 1.5.x.
5982         * doc/posix-functions/setlocale.texi: Mention that the problem with the
5983         LC_CTYPE category also exists on Cygwin 1.5.x.
5984
5985 2011-06-04  Bruno Haible  <bruno@clisp.org>
5986
5987         strerror-override: Don't disable symbol renamings.
5988         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
5989         * lib/strerror-override.c: Include config.h.
5990         (strerror_override): Don't undefine.
5991
5992 2011-06-03  Bruno Haible  <bruno@clisp.org>
5993
5994         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
5995         * lib/localename.h: Update copyright header.
5996         * lib/localename.c: Likewise.
5997         * lib/relocatable.h: Likewise.
5998         * lib/relocatable.c: Likewise.
5999
6000 2011-06-02  Bruno Haible  <bruno@clisp.org>
6001
6002         doc: Fix a module name.
6003         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
6004
6005 2011-06-02  Bruno Haible  <bruno@clisp.org>
6006
6007         pipe2: Remove dependency on 'nonblocking' module.
6008         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
6009         O_NONBLOCK is defined by gnulib.
6010         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
6011         is zero.
6012         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
6013         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
6014         defined by gnulib.
6015         (get_nonblocking_flag): New function.
6016         (main): Test O_NONBLOCK flag only if it is nonzero.
6017         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
6018
6019 2011-06-03  Jim Meyering  <meyering@redhat.com>
6020
6021         maint: three new prohibit-header-without-use rules
6022         Prohibit use of cloexec.h, posixver.h, same.h without use.
6023         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
6024         (sc_prohibit_posixver_without_use): Likewise.
6025         (sc_prohibit_same_without_use): Likewise.
6026
6027 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
6028
6029         allocator: 'die' routine is now given requested size
6030         * lib/allocator.h (struct allocator.die): New size arg.
6031         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
6032         If the actual problem is an ssize_t limitation, not a size_t or
6033         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
6034
6035 2011-06-01  Eric Blake  <eblake@redhat.com>
6036
6037         strerror: drop strerror_r dependency
6038         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
6039         * lib/strerror-override.c (strerror_override): ...to new file.
6040         * lib/strerror-override.h: Add prototype.
6041         * lib/strerror-impl.h: Delete.
6042         * lib/strerror.c (strerror): New implementation.
6043         * modules/errno (Files): Add new files.
6044         (configure.ac): Compile new file as appropriate.
6045         * modules/strerror (Files): Drop unused file.
6046         (Depends-on): Drop strerror_r-posix.
6047         * MODULES.html.sh: Document strerror_r-posix.
6048         Requested by Sam Steingold.
6049
6050         perror: call strerror_r directly
6051         * modules/perror (Files): Drop strerror-impl.h.
6052         * lib/perror.c (perror): Use our own stack buffer, rather than
6053         calling a wrapper that uses static storage.
6054         * doc/posix-functions/perror.texi (perror): Document a limitation
6055         of our replacement.
6056
6057         strerror_r: fix includes for FreeBSD
6058         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
6059         since we use abort on some platforms.
6060         Reported by Matthias Bolte.
6061
6062 2011-05-31  Bruno Haible  <bruno@clisp.org>
6063
6064         Fix link errors in tests: openat-die uses gettext-h.
6065         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
6066         against $(LIBINTL).
6067         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
6068         against $(LIBINTL).
6069         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
6070         $(LIBINTL).
6071         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
6072         against $(LIBINTL).
6073         * modules/linkat-tests (Makefile.am): Link test-linkat against
6074         $(LIBINTL).
6075         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
6076         $(LIBINTL).
6077         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
6078         against $(LIBINTL).
6079         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
6080         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
6081         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
6082         $(LIBINTL).
6083         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
6084         $(LIBINTL).
6085         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
6086         $(LIBINTL).
6087         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6088
6089 2011-05-31  Bruno Haible  <bruno@clisp.org>
6090
6091         Fix link errors in tests: wait-process uses gettext-h.
6092         * modules/nonblocking-pipe-tests (Makefile.am): Set
6093         test_nonblocking_pipe_main_LDADD.
6094         * modules/nonblocking-socket-tests (Makefile.am): Link
6095         test-nonblocking-socket-main against $(LIBINTL).
6096         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6097
6098 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
6099
6100         assert-h: work around 'verify' incompatibility
6101         * lib/verify.h: Use @...@ directives, not ifdef.
6102         * modules/assert-h (assert.h): Implement the directives.
6103         (assert.h): Substitute the symbol-prefix more consistently.
6104
6105 2011-05-29  Jim Meyering  <meyering@redhat.com>
6106
6107         trim: remove three superfluous assignments
6108         * lib/trim.c (trim2): Remove three superfluous assignments
6109         and correct brace positioning.
6110
6111 2011-05-29  Bruno Haible  <bruno@clisp.org>
6112
6113         wctype-h: Avoid namespace pollution on Solaris 2.6.
6114         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
6115         identifiers.
6116         * doc/posix-headers/wctype.texi: Mention the problem.
6117         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6118
6119 2011-05-28  Jim Meyering  <meyering@redhat.com>
6120
6121         parse-datetime.y: accommodate -Wstrict-overflow
6122         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
6123         placate -Wstrict-overflow.
6124
6125         trim: avoid a warning from -O2 -Wstrict-overflow
6126         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
6127
6128 2011-05-29  Bruno Haible  <bruno@clisp.org>
6129
6130         gnulib-tool: Fix bug in yesterday's commit.
6131         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
6132         twice.
6133
6134 2011-05-29  Bruno Haible  <bruno@clisp.org>
6135
6136         Allow multiple gnulib generated include files to be combined.
6137         * gnulib-tool (func_compute_include_guard_prefix): New function.
6138         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
6139         ${gl_include_guard_prefix} references.
6140         (func_import, func_create_testdir): Invoke
6141         func_compute_include_guard_prefix.
6142         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
6143         * lib/ctype.in.h: Likewise.
6144         * lib/dirent.in.h: Likewise.
6145         * lib/errno.in.h: Likewise.
6146         * lib/fcntl.in.h: Likewise.
6147         * lib/float.in.h: Likewise.
6148         * lib/getopt.in.h: Likewise.
6149         * lib/iconv.in.h: Likewise.
6150         * lib/langinfo.in.h: Likewise.
6151         * lib/locale.in.h: Likewise.
6152         * lib/math.in.h: Likewise.
6153         * lib/netdb.in.h: Likewise.
6154         * lib/netinet_in.in.h: Likewise.
6155         * lib/poll.in.h: Likewise.
6156         * lib/pthread.in.h: Likewise.
6157         * lib/pty.in.h: Likewise.
6158         * lib/sched.in.h: Likewise.
6159         * lib/se-selinux.in.h: Likewise.
6160         * lib/search.in.h: Likewise.
6161         * lib/signal.in.h: Likewise.
6162         * lib/spawn.in.h: Likewise.
6163         * lib/stdarg.in.h: Likewise.
6164         * lib/stddef.in.h: Likewise.
6165         * lib/stdint.in.h: Likewise.
6166         * lib/stdio.in.h: Likewise.
6167         * lib/stdlib.in.h: Likewise.
6168         * lib/string.in.h: Likewise.
6169         * lib/strings.in.h: Likewise.
6170         * lib/sys_file.in.h: Likewise.
6171         * lib/sys_ioctl.in.h: Likewise.
6172         * lib/sys_select.in.h: Likewise.
6173         * lib/sys_socket.in.h: Likewise.
6174         * lib/sys_stat.in.h: Likewise.
6175         * lib/sys_time.in.h: Likewise.
6176         * lib/sys_times.in.h: Likewise.
6177         * lib/sys_uio.in.h: Likewise.
6178         * lib/sys_utsname.in.h: Likewise.
6179         * lib/sys_wait.in.h: Likewise.
6180         * lib/sysexits.in.h: Likewise.
6181         * lib/termios.in.h: Likewise.
6182         * lib/time.in.h: Likewise.
6183         * lib/unistd.in.h: Likewise.
6184         * lib/wchar.in.h: Likewise.
6185         * lib/wctype.in.h: Likewise.
6186         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
6187         * modules/ctype (Makefile.am): Likewise.
6188         * modules/dirent (Makefile.am): Likewise.
6189         * modules/errno (Makefile.am): Likewise.
6190         * modules/fcntl-h (Makefile.am): Likewise.
6191         * modules/float (Makefile.am): Likewise.
6192         * modules/getopt-posix (Makefile.am): Likewise.
6193         * modules/iconv-h (Makefile.am): Likewise.
6194         * modules/langinfo (Makefile.am): Likewise.
6195         * modules/locale (Makefile.am): Likewise.
6196         * modules/math (Makefile.am): Likewise.
6197         * modules/netdb (Makefile.am): Likewise.
6198         * modules/netinet_in (Makefile.am): Likewise.
6199         * modules/poll-h (Makefile.am): Likewise.
6200         * modules/pthread (Makefile.am): Likewise.
6201         * modules/pty (Makefile.am): Likewise.
6202         * modules/sched (Makefile.am): Likewise.
6203         * modules/search (Makefile.am): Likewise.
6204         * modules/selinux-h (Makefile.am): Likewise.
6205         * modules/signal (Makefile.am): Likewise.
6206         * modules/spawn (Makefile.am): Likewise.
6207         * modules/stdarg (Makefile.am): Likewise.
6208         * modules/stddef (Makefile.am): Likewise.
6209         * modules/stdint (Makefile.am): Likewise.
6210         * modules/stdio (Makefile.am): Likewise.
6211         * modules/stdlib (Makefile.am): Likewise.
6212         * modules/string (Makefile.am): Likewise.
6213         * modules/strings (Makefile.am): Likewise.
6214         * modules/sys_file (Makefile.am): Likewise.
6215         * modules/sys_ioctl (Makefile.am): Likewise.
6216         * modules/sys_select (Makefile.am): Likewise.
6217         * modules/sys_socket (Makefile.am): Likewise.
6218         * modules/sys_stat (Makefile.am): Likewise.
6219         * modules/sys_time (Makefile.am): Likewise.
6220         * modules/sys_times (Makefile.am): Likewise.
6221         * modules/sys_uio (Makefile.am): Likewise.
6222         * modules/sys_utsname (Makefile.am): Likewise.
6223         * modules/sys_wait (Makefile.am): Likewise.
6224         * modules/sysexits (Makefile.am): Likewise.
6225         * modules/termios (Makefile.am): Likewise.
6226         * modules/time (Makefile.am): Likewise.
6227         * modules/unistd (Makefile.am): Likewise.
6228         * modules/wchar (Makefile.am): Likewise.
6229         * modules/wctype-h (Makefile.am): Likewise.
6230         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
6231
6232 2011-05-29  Bruno Haible  <bruno@clisp.org>
6233
6234         assert-h: Allow multiple gnulib generated replacements to coexist.
6235         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
6236
6237 2011-05-29  Bruno Haible  <bruno@clisp.org>
6238
6239         argp: Allow coexistence with strerror_r-posix module.
6240         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
6241         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
6242         by gnulib's <string.h> replacement), assume it has the POSIX signature,
6243         not the glibc signature.
6244
6245 2011-05-28  Bruno Haible  <bruno@clisp.org>
6246
6247         gnulib-tool: Alternative structure of testdirs, similar to --import.
6248         * gnulib-tool: New option --single-configure.
6249         (func_usage): Document it.
6250         (single_configure): New variable.
6251         (func_modules_transitive_closure_separately,
6252         func_modules_transitive_closure_separately,
6253         func_determine_use_libtests, func_modules_add_dummy_separately,
6254         func_modules_to_filelist_separately): New functions, extracted from
6255         func_import.
6256         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
6257         (func_import): Use the new functions.
6258         (func_create_testdir): Set final_modules. Handle $single_configure =
6259         true case.
6260
6261 2011-05-28  Bruno Haible  <bruno@clisp.org>
6262
6263         getloadavg: Remove an unreliable safety check.
6264         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
6265         getloadavg.c is in place.
6266         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
6267         Reported by Sam Steingold <sds@gnu.org>.
6268
6269 2011-05-28  Bruno Haible  <bruno@clisp.org>
6270
6271         doc: Cleanup yet another file produced by texinfo.tex.
6272         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
6273
6274 2011-05-28  Bruno Haible  <bruno@clisp.org>
6275
6276         Finish the conditional dependencies mechanism.
6277         * gnulib-tool: New option --no-conditional-dependencies.
6278         (func_usage): Document it. Don't mark --conditional-dependencies as
6279         experimental.
6280         (cond_dependencies): The possible values can now be true, false, empty.
6281         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
6282         (func_import): Store setting in gnulib-cache.m4 and read it from there.
6283         * doc/gnulib-tool.texi (Conditional dependencies): New section.
6284
6285 2011-05-28  Bruno Haible  <bruno@clisp.org>
6286
6287         doc: Use a recent texinfo.tex.
6288         * doc/Makefile (tex_opts): New variable.
6289         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
6290
6291 2011-05-28  Jim Meyering  <meyering@redhat.com>
6292
6293         intprops.h: adjust comment to match code change
6294         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
6295         only once, it *may* have side effects.  Also fix an unrelated typo.
6296         (_GL_INT_SIGNED): Likewise.
6297
6298 2011-05-26  Simon Josefsson  <simon@josefsson.org>
6299
6300         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
6301
6302 2011-05-26  Bruno Haible  <bruno@clisp.org>
6303
6304         mbsrchr: Avoid collision with system function on Interix.
6305         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
6306         Reported by Markus Duft <mduft@gentoo.org>.
6307
6308 2011-05-15  James Youngman  <jay@gnu.org>
6309
6310         getopt: for ambiguous options, enumerate the possibilities.
6311         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
6312         the ambiguous options when an ambiguous prefix is given. This was
6313         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
6314         glibc change was
6315         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
6316
6317 2011-05-25  Eric Blake  <eblake@redhat.com>
6318
6319         getcwd: work around mingw bug
6320         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
6321         * doc/posix-functions/getcwd.texi (getcwd): Document it.
6322         Reported by Matthias Bolte.
6323
6324 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
6325
6326         test-intprops: disable -Wtype-limits diagnostics
6327         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
6328         diagnostics.  Otherwise, the integer overflow macros generate many
6329         diagnostics.  Reported by Jim Meyering in
6330         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
6331
6332         intprops: shorten, to pacify gcc -Woverlength-strings
6333         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
6334         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
6335         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
6336         likely to run afoul of C compiler limits for string constant lengths.
6337         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
6338
6339 2011-05-24  Eric Blake  <eblake@redhat.com>
6340
6341         docs: document recently fixed glibc printf bug
6342         * doc/posix-functions/fprintf.texi (fprintf): Document it.
6343         * doc/posix-functions/printf.texi (printf): Likewise.
6344         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
6345         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
6346
6347         closein-tests: convert to init.sh
6348         * modules/closein-tests (Files): Add init.sh
6349         * tests/test-closein.sh Use it.
6350
6351         yesno-tests: convert to init.sh
6352         * modules/yesno-tests (Files): Add init.sh.
6353         * tests/test-yesno.sh: Use it.
6354
6355         atexit-tests: ensure reliable exit status
6356         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
6357         Reported by Bruno Haible.
6358
6359 2011-05-24  Bruno Haible  <bruno@clisp.org>
6360
6361         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
6362         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
6363         gl_PREREQ_STRERROR_R invocations from here...
6364         * modules/strerror_r-posix (configure.ac): ... to here.
6365
6366 2011-05-24  Eric Blake  <eblake@redhat.com>
6367
6368         strerror_r: fix missing header
6369         * lib/strerror_r.c: Avoid compiler warning about snprintf.
6370
6371         strerror_r: fix AIX test failures
6372         * lib/strerror_r.c (strerror_r): Convert silent truncation to
6373         ERANGE failure.
6374
6375         strerror_r: fix Solaris test failures
6376         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
6377         failures.
6378         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
6379
6380         strerror_r: enforce POSIX recommendations
6381         * lib/strerror_r.c (safe_copy): New helper method.
6382         (strerror_r): Guarantee a non-empty string.
6383         * tests/test-strerror_r.c (main): Enhance tests to incorporate
6384         recent POSIX rulings and to match our strerror guarantees.
6385         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
6386
6387 2011-05-24  Jim Meyering  <meyering@redhat.com>
6388
6389         test-perror2.c: avoid warning about unused variable
6390         * tests/test-perror2.c (main): Remove declaration of unused "fp".
6391
6392 2011-05-24  Eric Blake  <eblake@redhat.com>
6393
6394         perror: avoid spurious test failure on HP-UX
6395         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
6396
6397         tests: fix logic bug in init.sh
6398         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
6399         shell.
6400
6401 2011-05-24  Jim Meyering  <meyering@redhat.com>
6402
6403         utimensat: do not reference an out-of-scope buffer
6404         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
6405         declared in an inner scope, yet "times" would be dereferenced outside
6406         the scope in which "ts" was valid.
6407         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
6408         of ts[2] "out/up", so that the use of aliased "times" (via
6409         "times = ts;") does not end up referencing an out-of-scope "ts"
6410
6411         opendir-safer.c: don't clobber errno; don't close negative FD
6412         * lib/opendir-safer.c (opendir_safer):
6413         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
6414         file descriptor, and more importantly, don't clobber the
6415         offending errno value with EINVAL.  Before, upon failure
6416         of dup_safer, we would pass the negative file descriptor to
6417         fdopendir, which would clobber errno.
6418
6419 2011-05-23  Bruno Haible  <bruno@clisp.org>
6420
6421         idcache: Fix module description.
6422         * modules/idcache (Include): Set to "idcache.h".
6423
6424 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
6425
6426         gnulib-tool: fix portability problem with MacOS sed
6427         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
6428         before the "}".  Problem reported by Leo in
6429         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
6430         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
6431         sed_extract_condition1, sed_extract_condition2.
6432
6433 2011-05-23  Bruno Haible  <bruno@clisp.org>
6434
6435         hash: Simplify autoconf macro.
6436         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
6437
6438 2011-05-23  Bruno Haible  <bruno@clisp.org>
6439
6440         getugroups: Fix module description.
6441         * modules/getugroups (Include): Set to "getugroups.h".
6442
6443 2011-05-23  Bruno Haible  <bruno@clisp.org>
6444
6445         linkat: Simplify autoconf macro.
6446         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
6447
6448 2011-05-23  Bruno Haible  <bruno@clisp.org>
6449             Eric Blake  <eblake@redhat.com>
6450
6451         linkat, renameat: Update dependencies.
6452         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
6453         * modules/linkat (Depends-on): Likewise. Remove also readlink,
6454         symlinkat.
6455
6456 2011-05-23  Jim Meyering  <meyering@redhat.com>
6457
6458         maint.mk: more tight_scope improvements
6459         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
6460         (_gl_TS_headers): Define only in if-0'd block.
6461         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
6462         sometimes we must *not* use it.  Adjust uses accordingly.
6463         (sc_tight_scope): Use much simpler grep-based test to determine
6464         whether we skip this rule.
6465
6466         maint.mk: generalize/improve the tight-scope rule
6467         * top/maint.mk: Emit a warning when the test is skipped.
6468         (_gl_TS_dir): Add $(srcdir)/ prefix.
6469         (_gl_TS_function_match): Simplify, rather than trying
6470         to enumerate common types.  Otherwise, it would fail to match an
6471         "extern unsigned char const *" declaration in idutils.
6472         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
6473         a way to support use of that type of macro.
6474         (_gl_TS_var_match): Simplify regexp.
6475         (_gl_TS_obj_files): New configurable variable.
6476         (_gl_TS_headers): Likewise.
6477
6478 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
6479
6480         verify: fix bug when gnulib <assert.h> is also included
6481         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
6482         is defined, not if _GL_STATIC_ASSERT_H is not defined.
6483         Perhaps there's a better way, but this fixes the immediate problem.
6484         Problem reported by Bruno Haible in
6485         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
6486
6487 2011-05-22  Bruno Haible  <bruno@clisp.org>
6488
6489         xgetcwd: Simplify autoconf macro.
6490         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
6491
6492 2011-05-22  Bruno Haible  <bruno@clisp.org>
6493
6494         New module 'mktime-internal'.
6495         * modules/mktime-internal: New file.
6496         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
6497         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
6498         mktime_internal as a C macro if libc has __mktime_internal.
6499         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
6500         conditions.
6501         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
6502
6503 2011-05-22  Bruno Haible  <bruno@clisp.org>
6504
6505         timegm: Correct mktime replacement statements.
6506         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
6507         defining mktime as a C macro. This completes a 2009-07-28 commit.
6508
6509 2011-05-22  Bruno Haible  <bruno@clisp.org>
6510
6511         timegm: Simplify autoconf macro.
6512         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
6513
6514 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
6515
6516         clock-time: change to LGPLv2+.
6517         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
6518         BSD-like but we have no mark for that; this is good enough for now.
6519
6520 2011-05-21  Bruno Haible  <bruno@clisp.org>
6521
6522         strerror_r: Fix comments.
6523         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
6524
6525 2011-05-21  Bruno Haible  <bruno@clisp.org>
6526
6527         relocatable-prog-wrapper: Fix possible link error.
6528         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
6529         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
6530         (gl_FUNC_SETENV): ... to here.
6531         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
6532         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
6533
6534 2011-05-21  Bruno Haible  <bruno@clisp.org>
6535
6536         relocatable-prog-wrapper: Assume strerror() exists.
6537         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
6538         m4/strerror.m4.
6539         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
6540         * lib/relocwrapper.c: Remove mention of strerror module.
6541         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
6542         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
6543         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
6544         C macro.
6545
6546 2011-05-21  Bruno Haible  <bruno@clisp.org>
6547
6548         select: Simplify replacement idiom.
6549         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
6550         Win32 platforms.
6551         * lib/sys_select.in.h (select): Simplify accordingly.
6552         * modules/select (Depends-on): Likewise.
6553
6554 2011-05-21  Bruno Haible  <bruno@clisp.org>
6555
6556         mkdir-p: Simplify autoconf macro.
6557         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
6558         gl_FUNC_LCHOWN.
6559
6560 2011-05-21  Eric Blake  <eblake@redhat.com>
6561
6562         strerror_r: avoid clobbering strerror on cygwin
6563         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
6564         fall back instead to sys_errlist.
6565         * modules/strerror (configure.ac): Add witness.
6566         * tests/test-strerror_r.c (main): Enhance test.
6567         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
6568         * tests/test-perror2.c (main): Free memory before exit.
6569
6570 2011-05-21  Bruno Haible  <bruno@clisp.org>
6571
6572         mkdtemp: Use gnulib naming conventions.
6573         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
6574         * modules/mkdtemp (configure.ac): Update.
6575
6576 2011-05-20  Eric Blake  <eblake@redhat.com>
6577
6578         strerror_r: avoid corrupting errno on Solaris
6579         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
6580         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
6581
6582         strerror_r: avoid compiler warning
6583         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
6584
6585         strerror_r: simplify AIX code
6586         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
6587
6588         test-perror: avoid spurious failure on FreeBSD
6589         * modules/perror-tests (Depends-on): Add strerror, now that
6590         strerror_r no longer pulls it in.
6591
6592 2011-05-20  Bruno Haible  <bruno@clisp.org>
6593
6594         strerror_r-posix: Remove unused dependencies.
6595         * modules/strerror_r-posix (Depends-on): Remove strerror.
6596         Reported by Eric Blake.
6597
6598 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
6599
6600         intprops: remove assumption about A|B representation
6601         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
6602         is a valid integer if both A and B are.  Although this is true for
6603         all known practical hosts, the C standard doesn't guarantee it,
6604         and the code need not assume it.  Also, this change may work around
6605         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
6606         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
6607
6608 2011-05-20  Eric Blake  <eblake@redhat.com>
6609
6610         perror: work around FreeBSD bug
6611         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
6612         is broken.  Move AC_LIBOBJ...
6613         * modules/perror (configure.ac): Here.
6614         * doc/posix-functions/perror.texi (perror): Document this.
6615         * tests/test-perror2.c (main): Enhance test.
6616
6617         test-perror: check for strerror interactions
6618         * tests/macros.h (STREQ): Add macro.
6619         * modules/perror-tests (Files): Add second test.
6620         * tests/test-perror2.c (main): New file.
6621         * doc/posix-functions/perror.texi (perror): Document glibc bug.
6622
6623         test-perror: rewrite to use init script
6624         * modules/perror-tests (Files): Add init.sh.
6625         * tests/test-perror.sh: Use temporary directory.
6626
6627 2011-05-20  Jim Meyering  <meyering@redhat.com>
6628
6629         maint: replace misused "a" with "an"
6630         * doc/intprops.texi: "a integer"
6631         * doc/regex.texi: "a explanation"
6632         * lib/alignof.h: "a object"
6633         * lib/argmatch.h: "a explanation"
6634         * lib/argp-help.c: "a option" and "a OPTION_DOC"
6635         * lib/stdint.in.h: "a integer"
6636         * lib/userspec.c: "a owner"
6637         * doc/gnulib.texi: Fix "a idea", and reword.
6638
6639 2011-05-19  Jim Meyering  <meyering@redhat.com>
6640
6641         maint: correct misuse of "a" and "an"
6642         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
6643         * lib/argp-help.c: "an docum...": s/an/a/
6644         * lib/argp-parse.c: "An vector": s/An/A/
6645         * lib/execute.c: "an native": s/an/a/
6646         * lib/spawn-pipe.c: Likewise.
6647         * lib/gc.h: "an Gc_rc": s/an/a/
6648         * lib/unigbrk.in.h: "an grapheme": s/an/a/
6649         * lib/fts.c: "an stat.st_dev": s/an/a/
6650
6651 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
6652
6653         intprops-tests: work around HP-UX 11.23 cc bug with constants
6654         * tests/test-intprops.c (VERIFY): New macro.
6655         (main): Use it, instead of verify, to work around the compiler bug; see
6656         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
6657
6658         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
6659         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
6660         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
6661         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
6662         (_GL_REMAINDER_OVERFLOW): Use it.
6663
6664         intprops-tests: revert unsigned part of previous change
6665         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
6666         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
6667         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
6668         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
6669
6670 2011-05-19  Bruno Haible  <bruno@clisp.org>
6671
6672         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
6673         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
6674         strerror_r() returned without filling the buffer.
6675         Reported by Eric Blake.
6676
6677 2011-05-19  Eric Blake  <eblake@redhat.com>
6678
6679         strerror_r: guarantee unchanged errno
6680         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
6681         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
6682         failure.
6683         * tests/test-strerror_r.c (main): Enhance test.
6684
6685 2011-05-19  Bruno Haible  <bruno@clisp.org>
6686
6687         strerror_r: Reorder #if blocks.
6688         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
6689         for consistency with the previous commit.
6690
6691 2011-05-19  Bruno Haible  <bruno@clisp.org>
6692
6693         perror: Avoid clobbering the strerror buffer when possible.
6694         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
6695         * lib/strerror.c: Include it.
6696         * modules/strerror (Files): Add lib/strerror-impl.h.
6697         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
6698         (my_strerror): New function, defined through lib/strerror-impl.h.
6699         (perror): Use it instead of strerror.
6700         * modules/perror (Files): Add lib/strerror-impl.h.
6701         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
6702
6703 2011-05-19  Eric Blake  <eblake@redhat.com>
6704
6705         strerror_r: fix on newer cygwin
6706         * lib/strerror_r.c (strerror_r): Cygwin now has
6707         __xpg_strerror_r, use it.
6708
6709 2011-05-19  Bruno Haible  <bruno@clisp.org>
6710
6711         strerror_r: Avoid clobbering the strerror buffer when possible.
6712         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
6713         (sys_nerr, sys_errlist): New declarations.
6714         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
6715         HP-UX, native Win32, IRIX, and 32-bit Solaris.
6716         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
6717
6718 2011-05-19  Bruno Haible  <bruno@clisp.org>
6719
6720         strerror_r: Fix test failure on mingw.
6721         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
6722         EXTEND_STRERROR_R.
6723         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
6724         macros from errno.in.h instead.
6725
6726 2011-05-19  Eric Blake  <eblake@redhat.com>
6727
6728         strerror: relax test for Solaris
6729         * tests/test-strerror.c (main): Permit Solaris behavior.
6730         * tests/test-strerror_r.c (main): Likewise.
6731
6732         strerror: enforce POSIX ruling on strerror(0)
6733         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
6734         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
6735         * lib/strerror_r.c (rpl_strerror_r): Work around it.
6736         * doc/posix-functions/strerror.texi (strerror): Document it.
6737         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
6738         * tests/test-strerror.c (main): Strengthen test.
6739         * tests/test-strerror_r.c (main): Likewise.
6740
6741 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
6742
6743         intprop-tests: port to older and more-pedantic compilers
6744         * modules/intprops-tests (Files): Add tests/macros.h.
6745         * tests/test-intprops.c: Include macros.h.
6746         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
6747         it's no longer documented to expand to an integer constant expression.
6748         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
6749         argument is floating point, as it's no longer documented to expand
6750         to an integer constant expression in that case.
6751         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
6752         compiler bugs reported by Bruno Haible.  See
6753         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
6754         (U0, U1): New constants, to work around the same bugs.  Also,
6755         in tests, use e.g., "(unsigned int) 39" rather than "39u".
6756
6757         intprops: work around C compiler bugs
6758         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
6759         bug in Sun C 5.11 2010/08/13 and other compilers; see
6760         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
6761
6762         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
6763         * doc/intprops.texi (Integer Type Determination): Fix
6764         documentation for TYPE_IS_INTEGER: it returns an constant
6765         expression, not an integer constant expression.  Fix doc for
6766         TYPE_SIGNED: it returns an integer constant expression only if its
6767         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
6768         hardly worth documented that way....)
6769
6770 2011-05-18  Bruno Haible  <bruno@clisp.org>
6771
6772         strerror_r: Avoid clobbering the strerror buffer when possible.
6773         * lib/strerror_r.c (strerror_r): Merge the three implementations.
6774         Handle gnulib defined errno values here. When strerror() returns NULL
6775         or an empty string, return EINVAL.
6776         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
6777         gnulib defined errno values here.
6778         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
6779
6780 2011-05-18  Eric Blake  <eblake@redhat.com>
6781
6782         fnmatch: avoid compiler warning
6783         * lib/fnmatch_loop.c (FCT): Use correct type.
6784         Reported by Matthias Bolte.
6785
6786 2011-05-13  Jim Meyering  <meyering@redhat.com>
6787
6788         maint.mk: three new prohibit_<HDR>_without_use rules
6789         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
6790         (sc_prohibit_stdio-safer_without_use): Likewise.
6791         (sc_prohibit_xfreopen_without_use): Likewise.
6792
6793 2011-05-17  Jim Meyering  <meyering@redhat.com>
6794
6795         announce-gen: fail if the NEWS delta is empty
6796         If there's nothing noteworthy in NEWS, then either you forgot
6797         or you shouldn't be releasing.
6798         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
6799
6800 2011-05-17  Pádraig Brady <P@draigBrady.com>
6801
6802         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
6803         reserved symbols starting with double underscore from the check.
6804
6805 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
6806
6807         intprops: add doc
6808         * doc/intprops.texi: New file, documenting intprops.
6809         * doc/gnulib.texi (Particular Modules): Include it.
6810
6811         verify: add doc to gnulib manual and fix example
6812         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
6813         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
6814         (Compile-time Assertions): Fix example so it can't overflow.
6815
6816 2011-05-17  Jim Meyering  <meyering@redhat.com>
6817
6818         warnings.m4: don't usurp save_CPPFLAGS variable name
6819         * m4/warnings.m4: Prefix local temporary variable name with gl_.
6820
6821         doc: fix typo
6822         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
6823
6824 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
6825             Bruno Haible  <bruno@clisp.org>
6826
6827         doc: Tweak recent change.
6828         * README (Portability guidelines): Tweak new text.
6829         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
6830         Interix 6.1.
6831
6832 2011-05-16  Eric Blake  <eblake@redhat.com>
6833
6834         inttypes: avoid autoconf warning
6835         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
6836         * m4/stdint.m4 (gl_STDINT_H): Likewise.
6837
6838 2011-05-16  Sam Steingold <sds@gnu.org>
6839         and Eric Blake  <eblake@redhat.com>
6840
6841         vc-list-files: accept multiple directory operands
6842         * build-aux/vc-list-files: Iterate over all remaining operands.
6843
6844 2011-05-16  Bruno Haible  <bruno@clisp.org>
6845
6846         Fix confusion regarding deprecated modules.
6847         * modules/calloc (Status, Notice): Mark module as deprecated, not
6848         obsolete.
6849         * modules/fnmatch-posix (Status, Notice): Likewise.
6850         * modules/getdate (Status, Notice): Likewise.
6851         * modules/getopt (Status, Notice): Likewise.
6852         * modules/malloc (Status, Notice): Likewise.
6853         * modules/pipe (Status, Notice): Likewise.
6854         * modules/realloc (Status, Notice): Likewise.
6855         * modules/rename-dest-slash (Status, Notice): Likewise.
6856         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
6857         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
6858         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
6859         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
6860         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
6861
6862 2011-05-16  Bruno Haible  <bruno@clisp.org>
6863
6864         doc: List the target platforms.
6865         * doc/gnulib-intro.texi (Target Platforms): New section.
6866         * doc/gnulib.texi (Introduction): Update menu.
6867         * README (Portability guidelines): Refer to the new section. Update
6868         statement about oldest supported environment. Remove rationale why
6869         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
6870         unportable C89 function.
6871         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
6872         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
6873
6874 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
6875
6876         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
6877
6878 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
6879
6880         intprops-tests: new module
6881         * modules/intprops-tests, tests/test-intprops.c: New files.
6882
6883         intprops: add safe, portable integer overflow checking
6884         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
6885         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
6886         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
6887         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
6888         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
6889         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
6890         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
6891         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
6892         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
6893         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
6894         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
6895
6896 2011-05-12  James Youngman  <jay@gnu.org>
6897
6898         Add a test for glibc's Bugzilla bug #12378.
6899         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
6900         doesn't allow the literal matching of a lone "[" (which is
6901         required by POSIX).
6902         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
6903
6904 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
6905
6906         Sync glibc change fixing Bugzilla bug #12378.
6907         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
6908         beginning and fall back to matching as normal character if the
6909         string ends before the matching ']' is found.  This is what POSIX
6910         requires.
6911
6912 2011-05-13  Eric Blake  <eblake@redhat.com>
6913
6914         getcwd-lgpl: relax test for FreeBSD
6915         * doc/posix-functions/getcwd.texi (getcwd): Document portability
6916         issue.
6917         * tests/test-getcwd-lgpl.c (main): Relax test.
6918         Reported by Matthias Bolte.
6919
6920 2011-05-11  Eric Blake  <eblake@redhat.com>
6921
6922         test-fflush: silence compiler warning
6923         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
6924
6925 2011-05-11  Bruno Haible  <bruno@clisp.org>
6926
6927         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
6928         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
6929         * modules/canonicalize (Depends-on): Add 'nocrash'.
6930         * modules/canonicalize-lgpl (Depends-on): Likewise.
6931         * doc/posix-functions/realpath.texi: Update platforms list.
6932         Reported by Ryan Schmidt <ryandesign@macports.org>.
6933
6934 2011-05-11  Bruno Haible  <bruno@clisp.org>
6935
6936         group-member: Declare function in <unistd.h>.
6937         * lib/unistd.in.h (group_member): New declaration.
6938         * lib/group-member.h: Remove file.
6939         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
6940         * tests/test-unistd-c++.cc: Check signature of group_member.
6941         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
6942         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
6943         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
6944         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
6945         HAVE_GROUP_MEMBER.
6946         * modules/group-member (Files): Remove lib/group-member.h.
6947         (Depends-on): Add unistd. Specify conditions.
6948         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
6949         (Include): Change to <unistd.h>.
6950         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
6951         HAVE_GROUP_MEMBER.
6952         * NEWS: Mention the change.
6953         * lib/euidaccess.c: Don't include group-member.h.
6954
6955 2011-05-11  Bruno Haible  <bruno@clisp.org>
6956
6957         group-member: Document module.
6958         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
6959         module.
6960
6961 2011-05-11  Bruno Haible  <bruno@clisp.org>
6962
6963         fclose: Fix mistake earlier today.
6964         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
6965
6966 2011-05-11  Eric Blake  <eblake@redhat.com>
6967
6968         fclose: preserve fflush errors
6969         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
6970         Reported by Jim Meyering.
6971
6972         bootstrap: support a prereq of 'rpcgen -' on RHEL5
6973         * build-aux/bootstrap (check_versions): When no specific version
6974         is required, merely check that the app produces an exit status
6975         that indicates its existence.
6976
6977         maint.mk: drop redundant check
6978         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
6979         the same but better.
6980
6981 2011-05-11  Bruno Haible  <bruno@clisp.org>
6982
6983         fclose: Fix possible link error.
6984         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
6985         unregister_shadow_fd. Improve comments.
6986         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
6987         Eric Blake.
6988
6989 2011-05-11  Jim Meyering  <meyering@redhat.com>
6990
6991         maint.mk: improve "can not" detection and generalize rule name
6992         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
6993         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
6994         Use the same technique as in sc_prohibit_doubled_word, so that
6995         we recognize "can not" also when the words are separated by a newline.
6996         Suggested by Eric Blake.
6997         (perl_filename_lineno_text_): Define.  Factored out of...
6998         (prohibit_doubled_word_): ...here.  Use the new definition.
6999         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
7000         (prohibit_undesirable_word_seq_RE_): New overridable variable.
7001         (ignore_undesirable_word_sequence_RE_): New overridable variable.
7002
7003 2011-05-10  Eric Blake  <eblake@redhat.com>
7004
7005         fclose: avoid double close race when possible
7006         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
7007         all but WINDOWS_SOCKETS.
7008
7009 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
7010
7011         openat: correct new comment
7012         * lib/openat-proc.c (openat_proc_name): Correct the comment.
7013
7014 2011-05-10  Jim Meyering  <meyering@redhat.com>
7015
7016         openat: add comments
7017         * lib/openat-proc.c (openat_proc_name): Add comments,
7018         mostly from Eric Blake.
7019
7020 2011-05-09  Eric Blake  <eblake@redhat.com>
7021
7022         openat: reduce syscalls in first probe of /proc
7023         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
7024         be a directory.  Simplify the probe for .. bugs.
7025         * modules/openat (Depends-on): Drop same-inode.
7026         Reported by Bastien ROUCARIES.
7027
7028 2011-05-09  Jim Meyering  <meyering@redhat.com>
7029
7030         maint.mk: change semantics/name of tight_scope variables
7031         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
7032         Rename variables to align with semantics that make them more useful.
7033
7034         maint.mk: tweak new rule's name not to impinge
7035         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
7036         (sc_tight_scope): Use new rule name rather than $@-0.
7037
7038         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
7039         * top/maint.mk (sc_tight_scope): New rule.
7040         (sc_tight_scope-0): New rule, ifdef'd out.
7041         (_gl_TS_dir): Default.
7042         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
7043         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
7044
7045 2011-05-09  Simon Josefsson  <simon@josefsson.org>
7046
7047         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
7048         Haible <bruno@clisp.org>.
7049
7050 2011-05-08  Bruno Haible  <bruno@clisp.org>
7051
7052         Comments.
7053         * m4/isnanf.m4: Add comment.
7054         * m4/isnanl.m4: Likewise.
7055
7056 2011-05-08  Bruno Haible  <bruno@clisp.org>
7057
7058         glob: Remove obsolete macro.
7059         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
7060
7061 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
7062
7063         intprops: Sun C 5.11 supports __typeof__
7064         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
7065         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
7066         which is new.
7067         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
7068
7069         intprops: switch to usual gnulib indenting and naming
7070         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
7071         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
7072
7073         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
7074
7075 2011-05-08  Jim Meyering  <meyering@redhat.com>
7076
7077         maint.mk: suppress "Entering/Leaving directory" diag in announcement
7078         * top/maint.mk (release-prep): Use make's --no-print-directory
7079         option when generating the announcement.  This eliminates the
7080         pesky "make[2]: Entering/Leaving directory" diagnostics in the
7081         generated announcement template.
7082
7083 2011-05-08  Bruno Haible  <bruno@clisp.org>
7084
7085         tzset: Fix gettimeofday wrapper on Solaris 2.6.
7086         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
7087         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
7088
7089 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
7090
7091         ignore-value, verify: Omit include files from lib_SOURCES.
7092         * modules/ignore-value, modules/verify (Makefile.am):
7093         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
7094         that leads Automake to duplicate use of am__objects_... variables
7095         in Makefile.in.  See
7096         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
7097
7098 2011-05-07  Bruno Haible  <bruno@clisp.org>
7099
7100         fclose: Simplify autoconf macro.
7101         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
7102         defined.
7103
7104 2011-05-07  Bruno Haible  <bruno@clisp.org>
7105
7106         canonicalize-lgpl: Fix autoconf macro ordering bug.
7107         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
7108         gl_STDLIB_H_DEFAULTS.
7109
7110 2011-05-06  Eric Blake  <eblake@redhat.com>
7111
7112         maintainer-makefile: make sc_po_check easier to tune
7113         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
7114         to probe for strings, such as an alternate location for gnulib.
7115
7116         fclose: guarantee behavior on seekable stdin
7117         * modules/fclose (Depends-on): Add fflush.
7118         * doc/posix-functions/fclose.texi (fclose): Document this.
7119         * tests/test-fclose.c (main): Make test for this unconditional.
7120
7121 2011-05-06  Bruno Haible  <bruno@clisp.org>
7122
7123         fflush, fpurge: Relicense under LGPLv2+.
7124         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
7125         * modules/fpurge (License): Likewise.
7126         With permission from Eric Blake and Jim Meyering.
7127         Suggested by Eric Blake.
7128
7129 2011-05-06  Karl Berry  <karl@gnu.org>
7130
7131         * MODULES.html.sh (func_all_modules): remove exit.
7132
7133 2011-05-06  Jim Meyering  <meyering@redhat.com>
7134
7135         maint.mk: use info-gnu@ as the default only for a stable release
7136         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
7137         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
7138         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
7139         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
7140
7141 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
7142
7143         assert-h: new module, which supports C1X-style static_assert
7144         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
7145         * lib/verify.h: Revamp so that this can be copied into assert.h,
7146         while retaining the ability to use it standalone as before.
7147         Rename private identifiers so as not to encroach on the
7148         standard C namespace, since this is now used by assert.h.
7149         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
7150         the old verify_true.
7151         (_GL_VERIFY_TRUE): New macro, with much of the contents of
7152         the old verify_true.  Use _GL_VERIFY_TYPE.
7153         (_GL_VERIFY): New macro, with much of the contents of the old verify.
7154         (static_assert): New macro, if _GL_STATIC_ASSERT_H
7155         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
7156         defined when this file is copied into the replacement assert.h.
7157         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
7158         and _Static_assert is not built in.
7159         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
7160         defined, and use the new macros mentioned above.
7161         * doc/posix-headers/assert.texi: Document this.
7162
7163 2011-05-05  Bruno Haible  <bruno@clisp.org>
7164
7165         fclose, fflush: Respect rules for use of AC_LIBOBJ.
7166         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
7167         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
7168         gl_REPLACE_FCLOSE here.
7169         * modules/fflush (Depends-on): Remove fclose.
7170         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
7171         combination with module 'fclose'.
7172
7173 2011-05-05  Bruno Haible  <bruno@clisp.org>
7174
7175         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
7176         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
7177         gl_FUNC_FFLUSH.
7178         (gl_FUNC_FFLUSH): Use it.
7179         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
7180         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
7181         gl_REPLACE_FSEEKO here.
7182
7183 2011-05-05  Bruno Haible  <bruno@clisp.org>
7184
7185         tzset: Relicense under LGPL.
7186         * modules/tzset (License): Change to LGPL.
7187         No agreement needed; it's a no-op.
7188
7189         strtoimax, strtoumax: Relicense under LGPL.
7190         * modules/strtoimax (License): Change to LGPL.
7191         * modules/strtoumax (License): Likewise.
7192         With permission from Jim Meyering, Paul Eggert:
7193         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
7194         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
7195
7196         getgroups: Relicense under LGPL.
7197         * modules/getgroups (License): Change to LGPL.
7198         With permission from Jim Meyering, Paul Eggert, Eric Blake:
7199         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
7200         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
7201         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
7202
7203         nanosleep: Relicense under LGPL.
7204         * modules/nanosleep (License): Change to LGPL.
7205         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
7206         Haible:
7207         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
7208         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
7209         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
7210         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
7211
7212         futimens: Relicense under LGPL.
7213         * modules/futimens (License): Change to LGPL.
7214         With permission from Eric Blake:
7215         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
7216
7217         fflush: Relicense under LGPL.
7218         * modules/fflush (License): Change to LGPL.
7219         With permission from Eric Blake, Bruno Haible, Jim Meyering:
7220         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
7221         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
7222         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
7223
7224         tmpfile: Relicense under LGPL.
7225         * modules/tmpfile (License): Change to LGPL.
7226         With permission from Ben Pfaff:
7227         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
7228
7229         isfinite: Relicense under LGPL.
7230         * modules/isfinite (License): Change to LGPL.
7231         With permission from Ben Pfaff, Bruno Haible:
7232         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
7233         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
7234
7235         acosl..tanl: Relicense under LGPL.
7236         * modules/acosl (License): Change to LGPL.
7237         * modules/asinl (License): Likewise.
7238         * modules/atanl (License): Likewise.
7239         * modules/cosl (License): Likewise.
7240         * modules/expl (License): Likewise.
7241         * modules/logl (License): Likewise.
7242         * modules/sinl (License): Likewise.
7243         * modules/sqrtl (License): Likewise.
7244         * modules/tanl (License): Likewise.
7245         Source code originally from glibc and Paolo Bonzini. Agreements:
7246         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
7247         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
7248
7249 2011-05-05  Bruno Haible  <bruno@clisp.org>
7250
7251         signal: Define sighandler_t.
7252         * lib/signal.in.h (sighandler_t): New type.
7253         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
7254         whether sighandler_t is defined.
7255         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
7256         * modules/signal (Depends-on): Add extensions.
7257         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
7258         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
7259         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
7260
7261 2011-05-05  Eric Blake  <eblake@redhat.com>
7262
7263         maint: remove useless REPLACE_*_H macros
7264         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
7265         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
7266         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
7267         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
7268         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
7269         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
7270         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
7271         * m4/btowc.m4: Update callers.
7272         * m4/dirfd.m4: Likewise.
7273         * m4/duplocale.m4: Likewise.
7274         * m4/fchdir.m4: Likewise.
7275         * m4/fdopendir.m4: Likewise.
7276         * m4/inet_ntop.m4: Likewise.
7277         * m4/inet_pton.m4: Likewise.
7278         * m4/ioctl.m4: Likewise.
7279         * m4/mbrlen.m4: Likewise.
7280         * m4/mbrtowc.m4: Likewise.
7281         * m4/mbsinit.m4: Likewise.
7282         * m4/mbsnrtowcs.m4: Likewise.
7283         * m4/mbsrtowcs.m4: Likewise.
7284         * m4/poll.m4: Likewise.
7285         * m4/setlocale.m4: Likewise.
7286         * m4/wcrtomb.m4: Likewise.
7287         * m4/wcsnrtombs.m4: Likewise.
7288         * m4/wcsrtombs.m4: Likewise.
7289         * m4/wctob.m4: Likewise.
7290         * m4/wcwidth.m4: Likewise.
7291         * modules/posix_spawn: Likewise.
7292         * modules/posix_spawn_file_actions_addclose: Likewise.
7293         * modules/posix_spawn_file_actions_adddup2: Likewise.
7294         * modules/posix_spawn_file_actions_addopen: Likewise.
7295         * modules/posix_spawn_file_actions_destroy: Likewise.
7296         * modules/posix_spawn_file_actions_init: Likewise.
7297         * modules/posix_spawnattr_destroy: Likewise.
7298         * modules/posix_spawnattr_getflags: Likewise.
7299         * modules/posix_spawnattr_getpgroup: Likewise.
7300         * modules/posix_spawnattr_getschedparam: Likewise.
7301         * modules/posix_spawnattr_getschedpolicy: Likewise.
7302         * modules/posix_spawnattr_getsigdefault: Likewise.
7303         * modules/posix_spawnattr_getsigmask: Likewise.
7304         * modules/posix_spawnattr_init: Likewise.
7305         * modules/posix_spawnattr_setflags: Likewise.
7306         * modules/posix_spawnattr_setpgroup: Likewise.
7307         * modules/posix_spawnattr_setschedparam: Likewise.
7308         * modules/posix_spawnattr_setschedpolicy: Likewise.
7309         * modules/posix_spawnattr_setsigdefault: Likewise.
7310         * modules/posix_spawnattr_setsigmask: Likewise.
7311         * modules/posix_spawnp: Likewise.
7312
7313 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
7314
7315         Add option to do-release-commit-and-tag to specify branch.
7316         * build-aux/do-release-commit-and-tag: Add --branch.
7317
7318 2011-05-03  Bruno Haible  <bruno@clisp.org>
7319
7320         Avoid unnecessary compilation units, through conditional dependencies.
7321         * modules/accept (Depends-on): Add conditions to the dependencies.
7322         * modules/acosl (Depends-on): Likewise.
7323         * modules/argz (Depends-on): Likewise.
7324         * modules/asinl (Depends-on): Likewise.
7325         * modules/atanl (Depends-on): Likewise.
7326         * modules/atoll (Depends-on): Likewise.
7327         * modules/bind (Depends-on): Likewise.
7328         * modules/btowc (Depends-on): Likewise.
7329         * modules/canonicalize-lgpl (Depends-on): Likewise.
7330         * modules/ceil (Depends-on): Likewise.
7331         * modules/ceilf (Depends-on): Likewise.
7332         * modules/ceill (Depends-on): Likewise.
7333         * modules/chdir-long (Depends-on): Likewise.
7334         * modules/chown (Depends-on): Likewise.
7335         * modules/close (Depends-on): Likewise.
7336         * modules/connect (Depends-on): Likewise.
7337         * modules/cosl (Depends-on): Likewise.
7338         * modules/dirfd (Depends-on): Likewise.
7339         * modules/dprintf (Depends-on): Likewise.
7340         * modules/dprintf-posix (Depends-on): Likewise.
7341         * modules/error (Depends-on): Likewise.
7342         * modules/euidaccess (Depends-on): Likewise.
7343         * modules/expl (Depends-on): Likewise.
7344         * modules/faccessat (Depends-on): Likewise.
7345         * modules/fchdir (Depends-on): Likewise.
7346         * modules/fclose (Depends-on): Likewise.
7347         * modules/fcntl (Depends-on): Likewise.
7348         * modules/fdopendir (Depends-on): Likewise.
7349         * modules/fflush (Depends-on): Likewise.
7350         * modules/floor (Depends-on): Likewise.
7351         * modules/floorf (Depends-on): Likewise.
7352         * modules/floorl (Depends-on): Likewise.
7353         * modules/fnmatch (Depends-on): Likewise.
7354         * modules/fopen (Depends-on): Likewise.
7355         * modules/fprintf-posix (Depends-on): Likewise.
7356         * modules/frexp (Depends-on): Likewise.
7357         * modules/frexp-nolibm (Depends-on): Likewise.
7358         * modules/frexpl (Depends-on): Likewise.
7359         * modules/frexpl-nolibm (Depends-on): Likewise.
7360         * modules/fseek (Depends-on): Likewise.
7361         * modules/fsusage (Depends-on): Likewise.
7362         * modules/ftell (Depends-on): Likewise.
7363         * modules/ftello (Depends-on): Likewise.
7364         * modules/futimens (Depends-on): Likewise.
7365         * modules/getcwd (Depends-on): Likewise.
7366         * modules/getcwd-lgpl (Depends-on): Likewise.
7367         * modules/getdelim (Depends-on): Likewise.
7368         * modules/getdomainname (Depends-on): Likewise.
7369         * modules/getgroups (Depends-on): Likewise.
7370         * modules/gethostname (Depends-on): Likewise.
7371         * modules/getline (Depends-on): Likewise.
7372         * modules/getlogin_r (Depends-on): Likewise.
7373         * modules/getopt-posix (Depends-on): Likewise.
7374         * modules/getpeername (Depends-on): Likewise.
7375         * modules/getsockname (Depends-on): Likewise.
7376         * modules/getsockopt (Depends-on): Likewise.
7377         * modules/getsubopt (Depends-on): Likewise.
7378         * modules/getusershell (Depends-on): Likewise.
7379         * modules/glob (Depends-on): Likewise.
7380         * modules/grantpt (Depends-on): Likewise.
7381         * modules/iconv_open (Depends-on): Likewise.
7382         * modules/iconv_open-utf (Depends-on): Likewise.
7383         * modules/inet_ntop (Depends-on): Likewise.
7384         * modules/inet_pton (Depends-on): Likewise.
7385         * modules/ioctl (Depends-on): Likewise.
7386         * modules/isapipe (Depends-on): Likewise.
7387         * modules/isfinite (Depends-on): Likewise.
7388         * modules/isinf (Depends-on): Likewise.
7389         * modules/lchown (Depends-on): Likewise.
7390         * modules/ldexpl (Depends-on): Likewise.
7391         * modules/link (Depends-on): Likewise.
7392         * modules/linkat (Depends-on): Likewise.
7393         * modules/listen (Depends-on): Likewise.
7394         * modules/logl (Depends-on): Likewise.
7395         * modules/lstat (Depends-on): Likewise.
7396         * modules/mbrlen (Depends-on): Likewise.
7397         * modules/mbrtowc (Depends-on): Likewise.
7398         * modules/mbsinit (Depends-on): Likewise.
7399         * modules/mbsnrtowcs (Depends-on): Likewise.
7400         * modules/mbsrtowcs (Depends-on): Likewise.
7401         * modules/mbtowc (Depends-on): Likewise.
7402         * modules/memcmp (Depends-on): Likewise.
7403         * modules/mkdir (Depends-on): Likewise.
7404         * modules/mkdtemp (Depends-on): Likewise.
7405         * modules/mkfifo (Depends-on): Likewise.
7406         * modules/mkfifoat (Depends-on): Likewise.
7407         * modules/mknod (Depends-on): Likewise.
7408         * modules/mkostemp (Depends-on): Likewise.
7409         * modules/mkostemps (Depends-on): Likewise.
7410         * modules/mkstemp (Depends-on): Likewise.
7411         * modules/mkstemps (Depends-on): Likewise.
7412         * modules/mktime (Depends-on): Likewise.
7413         * modules/nanosleep (Depends-on): Likewise.
7414         * modules/open (Depends-on): Likewise.
7415         * modules/openat (Depends-on): Likewise.
7416         * modules/perror (Depends-on): Likewise.
7417         * modules/poll (Depends-on): Likewise.
7418         * modules/popen (Depends-on): Likewise.
7419         * modules/posix_spawn (Depends-on): Likewise.
7420         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
7421         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
7422         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
7423         * modules/posix_spawnp (Depends-on): Likewise.
7424         * modules/pread (Depends-on): Likewise.
7425         * modules/printf-posix (Depends-on): Likewise.
7426         * modules/ptsname (Depends-on): Likewise.
7427         * modules/putenv (Depends-on): Likewise.
7428         * modules/pwrite (Depends-on): Likewise.
7429         * modules/readline (Depends-on): Likewise.
7430         * modules/readlink (Depends-on): Likewise.
7431         * modules/readlinkat (Depends-on): Likewise.
7432         * modules/recv (Depends-on): Likewise.
7433         * modules/recvfrom (Depends-on): Likewise.
7434         * modules/regex (Depends-on): Likewise.
7435         * modules/remove (Depends-on): Likewise.
7436         * modules/rename (Depends-on): Likewise.
7437         * modules/renameat (Depends-on): Likewise.
7438         * modules/rmdir (Depends-on): Likewise.
7439         * modules/round (Depends-on): Likewise.
7440         * modules/roundf (Depends-on): Likewise.
7441         * modules/roundl (Depends-on): Likewise.
7442         * modules/rpmatch (Depends-on): Likewise.
7443         * modules/select (Depends-on): Likewise.
7444         * modules/send (Depends-on): Likewise.
7445         * modules/sendto (Depends-on): Likewise.
7446         * modules/setenv (Depends-on): Likewise.
7447         * modules/setlocale (Depends-on): Likewise.
7448         * modules/setsockopt (Depends-on): Likewise.
7449         * modules/shutdown (Depends-on): Likewise.
7450         * modules/sigaction (Depends-on): Likewise.
7451         * modules/signbit (Depends-on): Likewise.
7452         * modules/sigprocmask (Depends-on): Likewise.
7453         * modules/sinl (Depends-on): Likewise.
7454         * modules/sleep (Depends-on): Likewise.
7455         * modules/snprintf (Depends-on): Likewise.
7456         * modules/snprintf-posix (Depends-on): Likewise.
7457         * modules/socket (Depends-on): Likewise.
7458         * modules/sprintf-posix (Depends-on): Likewise.
7459         * modules/sqrtl (Depends-on): Likewise.
7460         * modules/stat (Depends-on): Likewise.
7461         * modules/strchrnul (Depends-on): Likewise.
7462         * modules/strdup-posix (Depends-on): Likewise.
7463         * modules/strerror (Depends-on): Likewise.
7464         * modules/strerror_r-posix (Depends-on): Likewise.
7465         * modules/strndup (Depends-on): Likewise.
7466         * modules/strnlen (Depends-on): Likewise.
7467         * modules/strptime (Depends-on): Likewise.
7468         * modules/strsep (Depends-on): Likewise.
7469         * modules/strsignal (Depends-on): Likewise.
7470         * modules/strstr-simple (Depends-on): Likewise.
7471         * modules/strtod (Depends-on): Likewise.
7472         * modules/strtoimax (Depends-on): Likewise.
7473         * modules/strtok_r (Depends-on): Likewise.
7474         * modules/strtoumax (Depends-on): Likewise.
7475         * modules/symlink (Depends-on): Likewise.
7476         * modules/symlinkat (Depends-on): Likewise.
7477         * modules/tanl (Depends-on): Likewise.
7478         * modules/tcgetsid (Depends-on): Likewise.
7479         * modules/tmpfile (Depends-on): Likewise.
7480         * modules/trunc (Depends-on): Likewise.
7481         * modules/truncf (Depends-on): Likewise.
7482         * modules/truncl (Depends-on): Likewise.
7483         * modules/uname (Depends-on): Likewise.
7484         * modules/unlink (Depends-on): Likewise.
7485         * modules/unlockpt (Depends-on): Likewise.
7486         * modules/unsetenv (Depends-on): Likewise.
7487         * modules/usleep (Depends-on): Likewise.
7488         * modules/utimensat (Depends-on): Likewise.
7489         * modules/vasprintf (Depends-on): Likewise.
7490         * modules/vdprintf (Depends-on): Likewise.
7491         * modules/vdprintf-posix (Depends-on): Likewise.
7492         * modules/vfprintf-posix (Depends-on): Likewise.
7493         * modules/vprintf-posix (Depends-on): Likewise.
7494         * modules/vsnprintf (Depends-on): Likewise.
7495         * modules/vsnprintf-posix (Depends-on): Likewise.
7496         * modules/vsprintf-posix (Depends-on): Likewise.
7497         * modules/wcrtomb (Depends-on): Likewise.
7498         * modules/wcscasecmp (Depends-on): Likewise.
7499         * modules/wcscspn (Depends-on): Likewise.
7500         * modules/wcsdup (Depends-on): Likewise.
7501         * modules/wcsncasecmp (Depends-on): Likewise.
7502         * modules/wcsnrtombs (Depends-on): Likewise.
7503         * modules/wcspbrk (Depends-on): Likewise.
7504         * modules/wcsrtombs (Depends-on): Likewise.
7505         * modules/wcsspn (Depends-on): Likewise.
7506         * modules/wcsstr (Depends-on): Likewise.
7507         * modules/wcstok (Depends-on): Likewise.
7508         * modules/wcswidth (Depends-on): Likewise.
7509         * modules/wctob (Depends-on): Likewise.
7510         * modules/wctomb (Depends-on): Likewise.
7511         * modules/wctype (Depends-on): Likewise.
7512         * modules/wcwidth (Depends-on): Likewise.
7513         * modules/write (Depends-on): Likewise.
7514
7515 2011-05-03  Bruno Haible  <bruno@clisp.org>
7516
7517         Support for conditional dependencies.
7518         * doc/gnulib.texi (Module description): Document the syntax of
7519         conditional dependencies.
7520         * gnulib-tool: New option --conditional-dependencies.
7521         (func_usage): Document it.
7522         (cond_dependencies): New variable.
7523         (func_get_automake_snippet_conditional,
7524         func_get_automake_snippet_unconditional): New functions, extracted from
7525         func_get_automake_snippet.
7526         (func_get_automake_snippet): Use them.
7527         (sed_first_32_chars): New variable.
7528         (func_module_shellfunc_name): New function.
7529         (func_module_shellvar_name): New function.
7530         (func_module_conditional_name): New function.
7531         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
7532         func_cond_module_condition): New functions.
7533         (func_modules_transitive_closure): Add support for conditional
7534         dependencies.
7535         (func_emit_lib_Makefile_am): For a conditional module, enclose the
7536         conditional automake snippet in an automake conditional.
7537         (func_emit_autoconf_snippets): Emit shell functions that contain the
7538         code for conditional modules.
7539         (func_import, func_create_testdir): Update specification.
7540
7541 2011-05-03  Eric Blake  <eblake@redhat.com>
7542
7543         test-getaddrinfo: report error information
7544         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
7545
7546 2011-05-03  Jim Meyering  <meyering@redhat.com>
7547
7548         bootstrap: avoid build failure when $GZIP is set
7549         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
7550         program name.  If defined at all, it is supposed to list gzip options.
7551         Reported by Alan Curry in http://debbugs.gnu.org/8609
7552
7553 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
7554
7555         readme-release: new module with release instructions
7556         * modules/readme-release: New module.
7557         * top/README-release: New file, from coreutils, grep, diffutils.
7558         * MODULES.html.sh (Support for maintaining and releasing): Add it.
7559
7560 2011-05-02  Eric Blake  <eblake@redhat.com>
7561
7562         fflush: also replace fclose when fixing fflush
7563         * modules/fflush (Depends-on): Add fclose.
7564         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
7565         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
7566         memstreams with no backing fd.
7567         * doc/posix-functions/fclose.texi (fclose): Document the use of
7568         fflush module to fix the bug.
7569         * tests/test-fclose.c (main): Relax test when fclose is used in
7570         isolation.
7571
7572         fclose: add some tests
7573         * modules/fclose-tests: New test module.
7574         * tests/test-fclose.c: New file.
7575         * doc/posix-functions/fclose.texi (fclose): Document the bug.
7576
7577         fclose: reduced dependencies
7578         * modules/fclose (Depends-on): Switch from fflush/fseeko to
7579         simpler lseek.
7580         * lib/fclose.c (rpl_fclose): Likewise.
7581         Reported by Simon Josefsson.
7582
7583         exit: drop remaining clients
7584         * modules/argmatch (Depends-on): Replace exit with stdlib.
7585         * modules/copy-file (Depends-on): Likewise.
7586         * modules/execute (Depends-on): Likewise.
7587         * modules/exitfail (Depends-on): Likewise.
7588         * modules/obstack (Depends-on): Likewise.
7589         * modules/pagealign_alloc (Depends-on): Likewise.
7590         * modules/pipe-filter-gi (Depends-on): Likewise.
7591         * modules/pipe-filter-ii (Depends-on): Likewise.
7592         * modules/savewd (Depends-on): Likewise.
7593         * modules/spawn-pipe (Depends-on): Likewise.
7594         * modules/wait-process (Depends-on): Likewise.
7595         * modules/xsetenv (Depends-on): Likewise.
7596         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
7597         * modules/git-merge-changelog (Depends-on): Likewise.
7598         * modules/long-options (Depends-on): Likewise.
7599         * modules/pt_chown (Depends-on): Likewise.
7600         * modules/sysexits (Depends-on): Likewise.
7601
7602         freading: relax license from LGPLv3+ to LGPLv2+
7603         * modules/freading (License): Relax LGPL version.
7604
7605 2011-05-02  Bruno Haible  <bruno@clisp.org>
7606
7607         fchdir: Remove unused dependencies.
7608         * modules/fchdir (Depends-on): Remove include_next.
7609
7610 2011-05-02  Bruno Haible  <bruno@clisp.org>
7611
7612         gnulib-tool: Refactor.
7613         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
7614         from func_emit_autoconf_snippets.
7615         (func_emit_autoconf_snippets): Use it.
7616
7617 2011-05-02  Simon Josefsson  <simon@josefsson.org>
7618
7619         * NEWS: Document removal of 'exit'.
7620         * modules/exit: Remove file.
7621
7622 2011-05-01  Bruno Haible  <bruno@clisp.org>
7623
7624         Update DEPENDENCIES.
7625         * DEPENDENCIES (gettext): Recommend the newest release.
7626         Reported by Simon Josefsson.
7627
7628 2011-05-01  Bruno Haible  <bruno@clisp.org>
7629
7630         gnulib-tool: Reduce code duplication.
7631         * gnulib-tool (func_emit_autoconf_snippets): New function.
7632         (func_import, func_create_testdir): Use it.
7633
7634 2011-04-30  Eric Blake  <eblake@redhat.com>
7635
7636         fclose: don't fail on non-seekable input stream
7637         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
7638         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
7639         since fflush is allowed to fail in that case.
7640
7641 2011-04-30  Bruno Haible  <bruno@clisp.org>
7642
7643         dup3: cleanup
7644         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
7645
7646 2011-04-30  Bruno Haible  <bruno@clisp.org>
7647
7648         netdb: Make it work in C++ mode.
7649         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
7650         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
7651         module.
7652         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
7653         gl_MODULE_INDICATOR_FOR_TESTS.
7654         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
7655         * modules/netdb-c++-tests: New file.
7656         * tests/test-netdb-c++.cc: New file.
7657
7658 2011-04-30  Bruno Haible  <bruno@clisp.org>
7659
7660         New modules 'vfscanf', 'vscanf'.
7661         * modules/vfscanf: New file.
7662         * modules/vscanf: New file.
7663         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
7664         here.
7665         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
7666         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
7667
7668 2011-04-30  Bruno Haible  <bruno@clisp.org>
7669
7670         passfd: Add comments.
7671         * lib/passfd.c: Add comments about platforms.
7672
7673 2011-04-30  Bruno Haible  <bruno@clisp.org>
7674
7675         sys_uio: Make <sys/uio.h> self-contained.
7676         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
7677         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
7678
7679 2011-04-30  Bruno Haible  <bruno@clisp.org>
7680
7681         sys_socket: Ensure 'struct iovec' definition.
7682         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
7683         <sys/socket.h>.
7684         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
7685
7686 2011-04-30  Bruno Haible  <bruno@clisp.org>
7687
7688         sys_uio: Protect definition of 'struct iovec'.
7689         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
7690         it as a C struct.
7691
7692 2011-04-30  Bruno Haible  <bruno@clisp.org>
7693
7694         manywarnings: fix indentation
7695         * m4/manywarnings.m4: Indent by 2 spaces consistently.
7696
7697 2011-04-30  Pádraig Brady <P@draigBrady.com>
7698
7699         manywarnings: add -Wno-missing-field-initializers if needed.
7700         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
7701         option if it's needed to allow initialization with { 0, }
7702
7703 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
7704
7705         announce-gen: cosmetic improvement
7706         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
7707
7708 2011-04-29  Jim Meyering  <meyering@redhat.com>
7709
7710         vc-list-files: indent with spaces, not TABs
7711         * build-aux/vc-list-files: Convert leading TABs to spaces,
7712         to match the style of most other files in gnulib.
7713
7714         announce-gen: indent with spaces, not TABs
7715         * build-aux/announce-gen: Convert all TABs to spaces, to match
7716         the style of most other files in gnulib.
7717
7718 2011-04-29  Eric Blake  <eblake@redhat.com>
7719
7720         quotearg: avoid uninitialized variable use
7721         * lib/quotearg.c (quoting_options_from_style): Initialize
7722         remaining fields, and ensure that custom styles are only used via
7723         quoting_options rather than quoting_style.
7724
7725 2011-04-29  Jim Meyering  <meyering@redhat.com>
7726
7727         maint.mk: remove unused VC-tag variable
7728         * top/maint.mk (VC-tag): Remove unused variable.
7729
7730 2011-04-29  Bruno Haible  <bruno@clisp.org>
7731
7732         netdb: fix gai_strerror replacements
7733         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
7734         * modules/netdb: Substitute it.
7735
7736 2011-04-29  Jim Meyering  <meyering@redhat.com>
7737
7738         test-getcwd.c: avoid new set-but-not-used warning
7739         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
7740         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
7741         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
7742         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
7743
7744         test-hash.c: avoid a new shadowing warning
7745         * tests/test-hash.c (main): Don't shadow "dup".
7746
7747 2011-04-28  Eric Blake  <eblake@redhat.com>
7748
7749         getaddrinfo: fix gai_strerror signature
7750         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
7751         and work around mingw with UNICODE defined.
7752         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
7753         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
7754         * modules/netdb (Makefile.am): Substitute it.
7755         * lib/netdb.in.h (gai_strerror): Declare replacement.
7756         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
7757         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
7758         the fix.
7759
7760         getsockopt: avoid compiler warning
7761         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
7762         Reported by Matthias Bolte.
7763
7764         tests: drop unused link dependency
7765         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
7766         * modules/dirent-safer-tests (Makefile.am): Likewise.
7767         * modules/fdopendir-tests (Makefile.am): Likewise.
7768         * modules/mkfifoat-tests (Makefile.am): Likewise.
7769         * modules/openat-safer-tests (Makefile.am): Likewise.
7770         * modules/openat-tests (Makefile.am): Likewise.
7771         * modules/readlinkat-tests (Makefile.am): Likewise.
7772         * modules/symlinkat-tests (Makefile.am): Likewise.
7773         * modules/linkat-tests (Makefile.am): Likewise.
7774         (Depends-on): Switch to filenamecat-lgpl.
7775         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
7776         LIBINTL.
7777         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
7778         * tests/test-linkat.c (main): Don't require xalloc.
7779
7780         hash, mgetgroups: drop xalloc dependency
7781         * lib/hash.c (includes): Adjust includes.
7782         * lib/mgetgroups.c (includes): Likewise.
7783         (xgetgroups): Move...
7784         * lib/xgetgroups.c: ...to new file.
7785         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
7786         * modules/xgetgroups: New file, split from...
7787         * modules/mgetgroups: ...here.
7788         (Depends-on): Add xalloc-oversized.
7789         * modules/hash (Depends-on): Likewise.
7790         * modules/hash-tests (Depends-on): Drop xalloc.
7791         (test_hash_LDADD): Drop unused library.
7792         * tests/test-hash.c (main): Break xalloc dependency.
7793         (includes): Drop unused include.
7794
7795         xalloc-oversized: new module
7796         * modules/xalloc-oversized: New module.
7797         * modules/xalloc (Depends-on): Add it.
7798         * lib/xalloc.h (xalloc_oversized): Move...
7799         * lib/xalloc-oversized.h: ...into new file.
7800
7801         utimecmp: drop dependency on xmalloc
7802         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
7803         due to memory pressure.
7804         * modules/utimecmp (Depends-on): Drop xalloc.
7805
7806 2011-04-27  Eric Blake  <eblake@redhat.com>
7807
7808         getcwd: fix mingw bugs
7809         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
7810         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
7811         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
7812
7813 2011-04-27  Bruno Haible  <bruno@clisp.org>
7814
7815         mkstemps: Ensure declaration on MacOS X 10.5.
7816         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
7817         * doc/glibc-functions/mkstemps.texi: Document header file problem on
7818         MacOS X.
7819
7820 2011-04-27  Bruno Haible  <bruno@clisp.org>
7821
7822         mkstemp: More documentation.
7823         * doc/posix-functions/mkstemp.texi: Document header file problem on
7824         MacOS X.
7825
7826 2011-04-27  Bruno Haible  <bruno@clisp.org>
7827
7828         mkstemp: Tweak configure message when cross-compiling.
7829         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
7830         result as a guess.
7831
7832 2011-04-27  Bruno Haible  <bruno@clisp.org>
7833
7834         clean-temp: Clarify what it does.
7835         * lib/clean-temp.h: Add more comments.
7836         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
7837         module.
7838         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
7839         * doc/glibc-functions/mkstemps.texi: Likewise.
7840         * doc/glibc-functions/mkostemps.texi: Likewise.
7841
7842 2011-04-27  Eric Blake  <eblake@redhat.com>
7843
7844         fchdir: avoid extra chdir and fix test
7845         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
7846         getcwd-lgpl.
7847         * lib/fchdir.c (get_name): Any absolute name will do; it does not
7848         have to be canonical.
7849         (canonicalize_file_name): Drop unused macro.
7850         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
7851
7852         filenamecat-lgpl: fix licence
7853         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
7854         when it was first created.
7855
7856         linkat, renameat: add missing dependency
7857         * modules/linkat (Depends-on): Require getcwd-lgpl.
7858         * modules/renameat (Depends-on): Likewise.
7859
7860         tests: reduce dependencies
7861         * tests/test-linkat.c (main): Use lighter-weight getcwd.
7862         * tests/test-renameat.c (main): Likewise.
7863         * modules/linkat-tests (Depends-on): Relax dependency.
7864         * modules/renameat-tests (Depends-on): Likewise.
7865         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
7866         dependency explicit.
7867
7868         save-cwd: reduce default dependency
7869         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
7870         * lib/save-cwd.c: Update comments.
7871         * NEWS: Document the semantic change.
7872
7873         getcwd: enhance tests
7874         * tests/test-getcwd-lgpl.c: New file, taken from...
7875         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
7876         repeat long path stress tests from m4 probe.
7877         * modules/getcwd-lgpl-tests: New module.
7878         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
7879         * m4/getcwd-abort-bug.m4: Update comment.
7880         * m4/getcwd-path-max.m4: Likewise.
7881
7882         getcwd-lgpl: new module
7883         * modules/getcwd-lgpl: New module.
7884         * lib/getcwd-lgpl.c: New file.
7885         * doc/posix-functions/getcwd.texi (getcwd): Document it.
7886         * MODULES.html.sh (lacking POSIX:2008): Likewise.
7887         * modules/getcwd (configure.ac): Set C witness.
7888         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
7889
7890         getcwd: tweak comments
7891         * m4/getcwd-abort-bug.m4: Fix comments.
7892         * m4/getcwd-path-max.m4: Likewise.
7893         * m4/getcwd.m4: Likewise.
7894
7895 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
7896         and Eric Blake  <eblake@redhat.com>
7897
7898         mkstemp: replace if system version uses wrong permissions
7899         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
7900         read/write mode bits set in file created by mkstemp.
7901         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
7902
7903 2011-04-27  Eric Blake  <eblake@redhat.com>
7904
7905         passfd: avoid compiler warning
7906         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
7907         Reported by Laine Stump.
7908
7909 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
7910
7911         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
7912         required by the NetBSD (and perhaps other 4.4BSD derived) join.
7913
7914 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
7915         and Eric Blake  <eblake@redhat.com>
7916
7917         mkstemp: mention clean-temp module
7918         * lib/mkstemp.c: Add comment.
7919         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
7920
7921 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
7922
7923         inttypes: also provide default values for 32-bit tests
7924         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
7925         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
7926
7927 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
7928
7929         strtoumax: remove dependency on strtoimax
7930         This is like the strtoull change of yesterday.
7931         * modules/strtoumax (Files): Add lib/strtoimax.c.
7932         (Depends-on): Remove strtoimax and add verify.
7933
7934         inttypes-incomplete: new module
7935         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
7936         all but the PRI* and SCN* parts of gl_INTTYPES_H.
7937         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
7938         of gl_INTTYPES_H.
7939         (gl_INTTYPES_H): Rewrite in terms of these new macros.
7940         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
7941         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
7942         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
7943         * modules/strtoumax, modules/xstrtol (Depends-on):
7944         Depend on inttypes-incomplete, not inttypes.
7945         * modules/inttypes-incomplete: New module, containing the contents
7946         of the old modules/inttypes module, except that the Files: section
7947         omits m4/inttypes-pri.m4, and the configure.ac section invokes
7948         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
7949         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
7950         (Depends-on): Depend only on inttypes-incomplete.
7951         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
7952
7953         inttypes: omit now-redundant strtoimax and strtoumax work
7954         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
7955         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
7956
7957         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
7958         This supports apps that need pointers to strtoimax and strtoumax,
7959         and ports to HP-UX 11.00 64.bit, which has macros that expand to
7960         nonexistent functions.  See
7961         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
7962         et seq.
7963         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
7964         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
7965         a macro.
7966         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
7967
7968 2011-04-25  Simon Josefsson  <simon@josefsson.org>
7969
7970         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
7971
7972 2011-04-25  Bruno Haible  <bruno@clisp.org>
7973
7974         strtol, strtoul: Mark modules as obsolete.
7975         * modules/strtol (Status, Notice): New sections.
7976         * modules/strtoul (Status, Notice): New sections.
7977
7978 2011-04-25  Bruno Haible  <bruno@clisp.org>
7979
7980         strtod: Remove check for strtod, unless supporting old platforms.
7981         * modules/strtod-obsolete: New file.
7982         * m4/strtod-obsolete.m4: New file.
7983         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
7984         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
7985         * modules/strtod (Depends-on): Add strtod-obsolete.
7986         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
7987
7988 2011-04-25  Bruno Haible  <bruno@clisp.org>
7989
7990         strcase: Make module obsolete.
7991         * modules/strcase (Status, Notice): New sections.
7992
7993 2011-04-25  Bruno Haible  <bruno@clisp.org>
7994
7995         dup2: Remove check for dup2, unless supporting old obsolete platforms.
7996         * modules/dup2-obsolete: New file.
7997         * m4/dup2-obsolete.m4: New file.
7998         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
7999         gl_FUNC_DUP2_OBSOLETE is not also defined.
8000         * modules/dup2 (Depends-on): Add dup2-obsolete.
8001         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
8002
8003 2011-04-25  Bruno Haible  <bruno@clisp.org>
8004
8005         strnlen: Avoid memchr related link error on old obsolete platforms.
8006         * modules/memchr-obsolete: New file.
8007         * m4/memchr-obsolete.m4: New file.
8008         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
8009         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
8010         * modules/memchr (Depends-on): Add memchr-obsolete.
8011         * modules/strnlen (Depends-on): Likewise.
8012         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
8013
8014 2011-04-25  Jim Meyering  <meyering@redhat.com>
8015
8016         maint.mk: makefile_at_at_check extend and clean up
8017         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
8018         in addition to */Makefile.am.
8019         Exempt legitimate uses of @VAR@ notation, e.g.,
8020         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
8021         Remove obsolete coreutils-specific comment.
8022         Prompted by discussion here:
8023         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
8024
8025 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
8026
8027         strtoul: remove dependency on strtol
8028         This is so that 'configure' need not check for strtol merely because
8029         the application needs strtoul.
8030         * modules/strtoul (Files): Add lib/strtol.c.
8031         (Depends-on): Remove strtol.
8032
8033         strtoull: remove dependency on strtoul
8034         This is like the strtoll change.
8035         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
8036         (Depends-on): Remove strtoul.
8037
8038         strtoll: remove dependency on strtol
8039         This is so that 'configure' need not check for strtol merely because
8040         the application needs strtoll.
8041         * modules/strtoll (Files): Add lib/strtol.c.
8042         (Depends-on): Remove strtol.
8043
8044 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8045
8046         inttypes: Move some configure check to module 'imaxdiv'.
8047         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
8048         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
8049         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
8050
8051 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8052
8053         inttypes: Move some configure check to module 'imaxabs'.
8054         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
8055         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
8056         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
8057
8058 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8059
8060         inttypes: Remove configure tests that are not needed since 2009-12-31.
8061         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
8062         gl_cv_header_working_inttypes_h.
8063
8064 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8065
8066         * modules/strnlen (Depends-on): Remove memchr.
8067         The strnlen implementation doesn't need the memchr module's fixes; see
8068         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
8069
8070         strtol: remove dependency on wchar
8071         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
8072         * modules/strtol (Depends-on): Remove wchar.
8073
8074 2011-04-21  Eric Blake  <eblake@redhat.com>
8075
8076         passfd: fix test regression on Linux
8077         * modules/passfd-tests (configure.ac): Correct socketpair check.
8078
8079         passfd: speed up configure and drop unused code
8080         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
8081         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
8082         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
8083         Instead of probing at configure for unix_scm_rights_bsd44_way,
8084         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
8085         check to a struct member probe.
8086         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
8087         (sendfd, recvfd): Update preprocessor checks.
8088         * modules/passfd (Files): Reflect rename, and drop unused file.
8089         (Depends-on): Drop unused dependency.
8090
8091         passfd: allow compilation on mingw
8092         * modules/sys_socket (Depends-on): Add sys_uio.
8093         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
8094         iovec and a minimal struct msghdr.
8095         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
8096         * tests/test-sys_socket.c (main): Enhance test.
8097         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
8098         guaranteed to provide what we need.
8099         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
8100         * modules/passfd-tests (Depends-on): Add sys_wait.
8101         * tests/test-passfd.c (main): Skip test on mingw, for now.
8102         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
8103         partial 'struct msghdr' implementation.
8104
8105         sys_uio: new module
8106         * modules/sys_uio: New module.
8107         * modules/sys_uio-tests: Likewise.
8108         * lib/sys_uio.in.h: New file.
8109         * m4/sys_uio_h.m4: Likewise.
8110         * tests/test-sys_uio.c: Likewise.
8111         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
8112         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
8113
8114 2011-04-20  Jim Meyering  <meyering@redhat.com>
8115
8116         useless-if-before-free: avoid false-positive
8117         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
8118         disjunct so that it too requires a terminating ";".  Without that,
8119         this script would identify as useless one statement from gcc that
8120         was not:
8121           if (aligned_ptr)
8122             free (((void **) aligned_ptr) [-1]);
8123
8124 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
8125
8126         doc: update users.txt.
8127         * users.txt: Add barcode.
8128
8129 2011-04-19  Bruno Haible  <bruno@clisp.org>
8130
8131         ioctl: Remove link dependency on native Windows.
8132         * lib/fd-hook.h: Renamed from lib/close-hook.h.
8133         (gl_close_fn, gl_ioctl_fn): New types.
8134         (struct fd_hook): Renamed from struct close_hook. Change type of
8135         private_close_fn field. Add private_ioctl_fn field.
8136         (close_hook_fn): Add parameter for primary close method.
8137         (execute_close_hooks, execute_all_close_hooks): Likewise.
8138         (ioctl_hook_fn): New type.
8139         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
8140         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
8141         argument.
8142         (unregister_fd_hook): Renamed from unregister_close_hook.
8143         * lib/fd-hook.c: Renamed from lib/close-hook.c.
8144         Don't include <unistd.h>.
8145         (close): Remove undef.
8146         (anchor): Update.
8147         (execute_close_hooks): Add argument for primary close method.
8148         (execute_all_close_hooks): Likewise.
8149         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
8150         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
8151         argument. Allow each argument to be NULL.
8152         (unregister_fd_hook): Renamed from unregister_close_hook.
8153         * lib/close.c (rpl_close): Pass 'close' function pointer to
8154         execute_all_close_hooks.
8155         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
8156         (primary_ioctl): New function.
8157         (ioctl): Don't call ioctlsocket here. Instead, call
8158         execute_all_ioctl_hooks.
8159         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
8160         close method.
8161         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
8162         (fd_sockets_hook): Renamed from close_sockets_hook.
8163         (gl_sockets_startup, gl_sockets_cleanup): Update.
8164         * modules/fd-hook: Renamed from modules/close-hook. Update.
8165         * modules/close (Depends-on): Add fd-hook, remove close-hook.
8166         * modules/sockets (Depends-on): Likewise.
8167         * modules/ioctl (Depends-on): Add fd-hook.
8168         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
8169         GNULIB_SOCKET.
8170
8171 2011-04-19  Bruno Haible  <bruno@clisp.org>
8172
8173         Move the support of O_NONBLOCK in open() to the 'open' module.
8174         * modules/nonblocking (Depends-on): Remove 'open'.
8175         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
8176         gl_cv_have_open_O_NONBLOCK.
8177         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
8178         O_NONBLOCK support.
8179         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
8180
8181 2011-04-17  Bruno Haible  <bruno@clisp.org>
8182
8183         pipe2: Simplify code.
8184         * lib/pipe2.c (pipe2): Reduce code duplication.
8185
8186 2011-04-17  Bruno Haible  <bruno@clisp.org>
8187
8188         nonblocking: Add comment.
8189         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
8190
8191 2011-04-17  Bruno Haible  <bruno@clisp.org>
8192
8193         nonblocking: Add tests for sockets.
8194         * tests/test-nonblocking-socket.sh: New file.
8195         * tests/test-nonblocking-socket-main.c: New file.
8196         * tests/test-nonblocking-socket-child.c: New file.
8197         * tests/test-nonblocking-socket.h: New file.
8198         * tests/socket-server.h: New file.
8199         * tests/socket-client.h: New file.
8200         * modules/nonblocking-socket-tests: New file.
8201         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
8202
8203 2011-04-17  Bruno Haible  <bruno@clisp.org>
8204
8205         nonblocking: Add tests for pipes.
8206         * tests/test-nonblocking-pipe.sh: New file.
8207         * tests/test-nonblocking-pipe-main.c: New file.
8208         * tests/test-nonblocking-pipe-child.c: New file.
8209         * tests/test-nonblocking-pipe.h: New file.
8210         * tests/test-nonblocking-writer.h: New file.
8211         * tests/test-nonblocking-reader.h: New file.
8212         * tests/test-nonblocking-misc.h: New file.
8213         * modules/nonblocking-pipe-tests: New file.
8214         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
8215
8216 2011-04-16  Bruno Haible  <bruno@clisp.org>
8217
8218         gettext: Clarify the needed programmer actions.
8219         * modules/gettext (Notice): New field.
8220         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
8221
8222 2011-04-16  Bruno Haible  <bruno@clisp.org>
8223
8224         strchrnul: Tweak last commit.
8225         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
8226         bug.
8227         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
8228         as in _GL_FUNCDECL_SYS.
8229         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
8230         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
8231
8232 2011-04-15  Eric Blake  <eblake@redhat.com>
8233
8234         strchrnul: work around cygwin bug
8235         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
8236         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
8237         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
8238         * modules/string (Makefile.am): Substitute it.
8239         * lib/string.in.h (strchrnul): Use it.
8240
8241 2011-04-15  Bruno Haible  <bruno@clisp.org>
8242
8243         Don't require lib/stdio-write.c when only module 'stdio' is used.
8244         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
8245         invocation.
8246         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
8247
8248 2011-04-14  Bruno Haible  <bruno@clisp.org>
8249
8250         Support non-blocking pipe I/O in read() on native Windows.
8251         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
8252         (read): New declaration.
8253         * lib/read.c: New file.
8254         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
8255         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
8256         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
8257         vscanf): New declarations.
8258         * lib/stdio-read.c: New file.
8259         * m4/read.m4: New file.
8260         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
8261         REPLACE_READ.
8262         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
8263         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
8264         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
8265         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
8266         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
8267         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
8268         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
8269         * modules/read: New file.
8270         * modules/nonblocking (Files): Add lib/stdio-read.c.
8271         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
8272         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
8273         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
8274         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
8275         * modules/pread (Depends-on): Add read.
8276         * modules/safe-read (Depends-on): Likewise.
8277         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
8278         gets, scanf, vfscanf, vscanf): Verify signatures.
8279         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
8280         problem with non-blocking pipes.
8281         * doc/posix-functions/fgetc.texi: Likewise.
8282         * doc/posix-functions/fgets.texi: Likewise.
8283         * doc/posix-functions/fread.texi: Likewise.
8284         * doc/posix-functions/fscanf.texi: Likewise.
8285         * doc/posix-functions/getc.texi: Likewise.
8286         * doc/posix-functions/getchar.texi: Likewise.
8287         * doc/posix-functions/gets.texi: Likewise.
8288         * doc/posix-functions/scanf.texi: Likewise.
8289         * doc/posix-functions/vfscanf.texi: Likewise.
8290         * doc/posix-functions/vscanf.texi: Likewise.
8291
8292 2011-04-14  Bruno Haible  <bruno@clisp.org>
8293
8294         Support non-blocking pipe I/O in write() on native Windows.
8295         * lib/write.c (rpl_write): Split a write request that failed merely
8296         because the byte count was larger than the pipe buffer's size.
8297         * doc/posix-functions/write.texi: Mention the problem with large byte
8298         counts.
8299
8300 2011-04-14  Bruno Haible  <bruno@clisp.org>
8301
8302         wchar: Ensure that wchar_t gets defined on uClibc.
8303         * lib/wchar.in.h: On uClibc, include <stddef.h>.
8304         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
8305
8306 2011-04-13  Bruno Haible  <bruno@clisp.org>
8307
8308         safe-write, full-read: Avoid unnecessary compilation units.
8309         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
8310         (Depends-on): Remove safe-read. Add ssize_t.
8311         * modules/full-read (Files): Add lib/full-write.c.
8312         (Depends-on): Add full-write.
8313
8314 2011-04-13  Bruno Haible  <bruno@clisp.org>
8315
8316         Support non-blocking pipe I/O and SIGPIPE in pwrite().
8317         * modules/pwrite (Depends-on): Add 'write'.
8318
8319 2011-04-13  Bruno Haible  <bruno@clisp.org>
8320
8321         Support non-blocking pipe I/O in write() on native Windows.
8322         * lib/unistd.in.h (write): Enable replacement also if
8323         GNULIB_UNISTD_H_NONBLOCKING is 1.
8324         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
8325         (rpl_write): When failing to write on a non-blocking pipe, change
8326         errno from ENOSPC to EAGAIN.
8327         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
8328         putchar, puts, vfprintf, vprintf): Enable replacement also if
8329         GNULIB_STDIO_H_NONBLOCKING is 1.
8330         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
8331         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
8332         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
8333         CALL_WITH_SIGPIPE_EMULATION.
8334         (CALL_WITH_SIGPIPE_EMULATION): Use them.
8335         * m4/nonblocking.m4: New file.
8336         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
8337         for non-blocking I/O support.
8338         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8339         GNULIB_UNISTD_H_NONBLOCKING.
8340         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
8341         required for non-blocking I/O support.
8342         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
8343         * modules/nonblocking (Files): Add m4/nonblocking.m4,
8344         lib/stdio-write.c, m4/asm-underscore.m4.
8345         (Depends-on): Add stdio, unistd.
8346         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
8347         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
8348         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
8349         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
8350         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
8351         problem with non-blocking pipes.
8352         * doc/posix-functions/fputc.texi: Likewise.
8353         * doc/posix-functions/fputs.texi: Likewise.
8354         * doc/posix-functions/fwrite.texi: Likewise.
8355         * doc/posix-functions/printf.texi: Likewise.
8356         * doc/posix-functions/putc.texi: Likewise.
8357         * doc/posix-functions/putchar.texi: Likewise.
8358         * doc/posix-functions/puts.texi: Likewise.
8359         * doc/posix-functions/vfprintf.texi: Likewise.
8360         * doc/posix-functions/vprintf.texi: Likewise.
8361         * doc/posix-functions/write.texi: Likewise.
8362
8363 2011-04-10  Jim Meyering  <meyering@redhat.com>
8364
8365         maint.mk: prohibit doubled words
8366         Detect them also when they're separated by a newline.
8367         There are 3 ways to customize it:
8368           - disable the test on a per file basis, as usual with rules using
8369             $(VC_LIST_EXCEPT)
8370           - replace the default doubled-word-selecting regexp (affects all files)
8371           - ignore a particular file-vs-doubled-word match
8372         I nearly used that last one to ignore the "is is" match in
8373         coreutils' NEWS file, since the text was "ls -is is ..."
8374         To do that, I would have added this line to cfg.mk:
8375           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
8376         but it would have ignored any "is is" match in NEWS.
8377         Low probability, but still...
8378         Instead, I changed the text, slightly:
8379           -  ls -is is now consistent with ls -lis in ignoring values returned
8380           +  "ls -is" is now consistent with ls -lis in ignoring values returned
8381         * top/maint.mk (prohibit_double_word_RE_): Provide default.
8382         (prohibit_doubled_word_): Define.
8383         (sc_prohibit_doubled_word): New rule.
8384         (sc_prohibit_the_the): Remove.  Subsumed by the above.
8385
8386 2011-04-10  Jim Meyering  <meyering@redhat.com>
8387
8388         maint: fix doubled-word typo in comment
8389         * m4/gethostname.m4: s/is is/it is/
8390         * m4/getdomainname.m4: Likewise.
8391
8392 2011-04-10  Jim Meyering  <meyering@redhat.com>
8393
8394         maint: remove doubled word: s/it it/it/
8395         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
8396
8397 2011-04-10  Jim Meyering  <meyering@redhat.com>
8398
8399         maint.mk: remove useless semicolon and backslash
8400         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
8401         semicolon and backslash.
8402
8403 2011-04-10  Bruno Haible  <bruno@clisp.org>
8404
8405         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
8406         * modules/stdint-tests (Depends-on): Add wchar.
8407
8408 2011-04-10  Jim Meyering  <meyering@redhat.com>
8409
8410         maint: remove doubled words in comments, e.g., s/a a/a/
8411         * lib/strptime.c (day_of_the_week): s/the the/the/
8412         * tests/test-chown.h (test_chown): s/a a/a/
8413
8414         test-chown.h: correct a cast
8415         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
8416         when the destination is a stat.st_gid.
8417
8418 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
8419
8420         getaddrinfo: Fix test for sa_len member.
8421         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
8422         include <sys/types.h> before <sys/socket.h>.
8423
8424 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
8425
8426         maint: change "can not" to "cannot"
8427         * doc/posix-functions/iconv.texi (iconv): This one crossed line
8428         boundaries.
8429
8430 2011-04-09  Jim Meyering  <meyering@redhat.com>
8431
8432         maint: change "a a" to "a"
8433         * tests/test-lchown.h (test_lchown): s/a a/a/
8434
8435         maint.mk: prohibit \<the the\>
8436         * top/maint.mk (sc_prohibit_the_the): New rule.
8437
8438         maint: fix "the the" in comment
8439         * lib/count-one-bits.h: s/the the/the/
8440
8441         maint: change "can not" to "cannot"
8442         But do not change the occurrences in maintain.texi or in
8443         build-aux/po/Makefile.in.in, which I presume comes from gettext.
8444         * doc/gnulib-tool.texi: s/can not/cannot/
8445         * doc/posix-functions/accept.texi (accept): Likewise.
8446         * doc/posix-functions/socket.texi (socket): Likewise.
8447         * lib/mbrtowc.c: Likewise.
8448
8449         maint.mk: prohibit use of "can not"
8450         * top/maint.mk (sc_prohibit_can_not): New rule.
8451         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
8452
8453 2011-04-09  Bruno Haible  <bruno@clisp.org>
8454
8455         careadlinkat: Guard against misuse of careadlinkatcwd.
8456         * lib/careadlinkat.c: Include <stdlib.h>.
8457         (careadlinkatcwd): Check that the fd argument is as expected.
8458
8459 2011-04-09  Bruno Haible  <bruno@clisp.org>
8460
8461         careadlinkat: Use common coding style.
8462         * lib/careadlinkat.c: Move gnulib includes after system includes.
8463
8464 2011-04-09  Bruno Haible  <bruno@clisp.org>
8465
8466         careadlinkat: Clarify specification.
8467         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
8468         (careadlinkatcwd): Add comment.
8469         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
8470
8471 2011-04-09  Bruno Haible  <bruno@clisp.org>
8472
8473         areadlinkat: Avoid link error on many platforms.
8474         * modules/areadlinkat (Depends-on): Add areadlink.
8475
8476 2011-04-09  Bruno Haible  <bruno@clisp.org>
8477
8478         allocator, careadlinkat: Fix double-inclusion guard.
8479         * lib/allocator.h: Fix double-inclusion guard.
8480         * lib/careadlinkat.h: Likewise.
8481
8482 2011-04-09  Bruno Haible  <bruno@clisp.org>
8483
8484         relocatable-prog-wrapper: Update after module 'areadlink' changed.
8485         * lib/relocwrapper.c: Update dependencies hierarchy.
8486         * build-aux/install-reloc: Update list of files to be compiled.
8487         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
8488         lib/allocator.[hc].
8489
8490 2011-04-08  Eric Blake  <eblake@redhat.com>
8491
8492         strftime: silence gnulib-tool warning
8493         * modules/strftime-tests (Depends-on): Drop automatic dependency.
8494
8495 2011-04-08  Bruno Haible  <bruno@clisp.org>
8496
8497         verify: Fix syntax error with GCC 4.6 in C++ mode.
8498         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
8499         (HAVE_STATIC_ASSERT): New macro.
8500         (verify_true, verify): Use 'static_assert' if it is supported and
8501         '_Static_assert' is not supported.
8502
8503 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
8504
8505         allocator: New module.
8506         * modules/allocator, lib/allocator.c: New files.
8507         * lib/allocator.h (stdlib_allocator): New decl.
8508         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
8509         Remove.  Do not include <stdlib.h>.
8510         (careadlinkat): Use stdlib_allocator instead of rolling our own.
8511         * modules/careadlinkat (Files): Remove lib/allocator.h.
8512         (Depends-on): Add allocator.
8513
8514         stdlib: let modules use system malloc, realloc
8515         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
8516         if !_GL_USE_STDLIB_ALLOC.
8517         (malloc, realloc): Limit this change to a smaller scope.
8518
8519         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
8520         (malloc, realloc): Don't #undef; no longer needed.
8521         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8522         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8523         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
8524         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8525         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8526         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8527         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8528         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
8529
8530         careadlinkat: rename members to avoid problem
8531         * lib/allocator.h (struct allocator): Rename members from
8532         malloc/realloc to allocate/reallocate, to avoid problems if malloc
8533         and realloc are #define'd.  Reported by Eric Blake in
8534         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
8535         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
8536
8537 2011-04-08  Eric Blake  <eblake@redhat.com>
8538
8539         nonblocking: reduce dependency
8540         * tests/test-nonblocking.c: Only test sockets when in use.
8541         * modules/nonblocking-tests (Depends-on): Drop socket.
8542         (Makefile.am): Link even if sockets are not present.
8543         * modules/pipe2-tests (Makefile.am): Likewise.
8544         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
8545
8546         pipe2: fix O_NONBLOCK support on mingw
8547         * modules/pipe2 (Depends-on): Add nonblocking.
8548         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
8549         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
8550         * tests/test-nonblocking.c (main): Likewise.
8551         * modules/pipe2-tests (Makefile.am): Avoid link failure.
8552
8553         fcntl-h: fix O_ACCMODE on cygwin
8554         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
8555         * lib/fcntl.in.h (O_ACCMODE): Fix it.
8556
8557         pipe-filter: drop O_NONBLOCK workarounds
8558         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
8559         * modules/pipe-filter-ii (Depends-on): Likewise.
8560         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
8561
8562         nonblocking: provide O_NONBLOCK for mingw
8563         * modules/nonblocking (Depends-on): Add open.
8564         (configure.ac): Set new witness macro.
8565         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
8566         * modules/fcntl-h (Makefile.am): Substitute it.
8567         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
8568         nonblocking module is in use.
8569         * lib/nonblocking.c: Adjust portability test.
8570         * lib/open.c (open): Don't let native open see gnulib flag.
8571         * tests/test-fcntl-h.c (main): Enhance test.
8572         * tests/test-open.h (test_open): Likewise.
8573         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
8574
8575         careadlinkat: fix compilation error on mingw
8576         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
8577         within struct allocator.
8578
8579 2011-04-06  Eric Blake  <eblake@redhat.com>
8580
8581         binary-io: relicense under LGPLv2+
8582         * modules/binary-io (License): Relax to LGPLv2+.
8583         Requested for libvirt, and required by pipe2.
8584
8585 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
8586
8587         verify: use _Static_assert if available
8588         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
8589         (verify_true, verify): Use it if available.  This generates better
8590         diagnostics with GCC 4.6.0 and later.
8591
8592 2011-04-05  Bruno Haible  <bruno@clisp.org>
8593
8594         Remove leftover generated .h files after config.status changed.
8595
8596         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
8597         GL_GENERATE_ALLOCA_H.
8598         * modules/alloca-opt (Makefile.am): Remove alloca.h if
8599         GL_GENERATE_ALLOCA_H evaluates to false.
8600
8601         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
8602         GL_GENERATE_ARGZ_H.
8603         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
8604         evaluates to false.
8605
8606         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
8607         GL_GENERATE_BYTESWAP_H.
8608         * modules/byteswap (Makefile.am): Remove byteswap.h if
8609         GL_GENERATE_BYTESWAP_H evaluates to false.
8610
8611         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
8612         GL_GENERATE_ERRNO_H.
8613         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
8614         evaluates to false.
8615
8616         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
8617         GL_GENERATE_FLOAT_H.
8618         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
8619         evaluates to false.
8620
8621         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
8622         GL_GENERATE_FNMATCH_H.
8623         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
8624         GL_GENERATE_FNMATCH_H evaluates to false.
8625
8626         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
8627         GL_GENERATE_GLOB_H.
8628         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
8629         evaluates to false.
8630
8631         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
8632         automake conditional GL_GENERATE_ICONV_H.
8633         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
8634         evaluates to false.
8635
8636         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
8637         GL_GENERATE_NETINET_IN_H.
8638         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
8639         GL_GENERATE_NETINET_IN_H evaluates to false.
8640
8641         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
8642         conditional GL_GENERATE_PTHREAD_H.
8643         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
8644         * modules/pthread (Makefile.am): Remove pthread.h if
8645         GL_GENERATE_PTHREAD_H evaluates to false.
8646
8647         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
8648         GL_GENERATE_SCHED_H.
8649         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
8650         evaluates to false.
8651
8652         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
8653         conditional GL_GENERATE_SELINUX_CONTEXT_H.
8654         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
8655         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
8656
8657         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
8658         GL_GENERATE_STDARG_H.
8659         * modules/stdarg (Makefile.am): Remove stdarg.h if
8660         GL_GENERATE_STDARG_H evaluates to false.
8661
8662         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
8663         GL_GENERATE_STDBOOL_H.
8664         * modules/stdbool (Makefile.am): Remove stdbool.h if
8665         GL_GENERATE_STDBOOL_H evaluates to false.
8666
8667         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
8668         conditional GL_GENERATE_STDDEF_H.
8669         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
8670         * modules/stddef (Makefile.am): Remove stddef.h if
8671         GL_GENERATE_STDDEF_H evaluates to false.
8672
8673         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
8674         GL_GENERATE_STDINT_H.
8675         * modules/stdint (Makefile.am): Remove stdint.h if
8676         GL_GENERATE_STDINT_H evaluates to false.
8677
8678         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
8679         GL_GENERATE_SYSEXITS_H.
8680         * modules/sysexits (Makefile.am): Remove sysexits.h if
8681         GL_GENERATE_SYSEXITS_H evaluates to false.
8682
8683         Reported by Karl Berry and Ralf Wildenhues.
8684
8685 2011-04-05  Bruno Haible  <bruno@clisp.org>
8686
8687         Ensure to rebuild generated .h files when config.status has changed.
8688         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
8689         config.status.
8690         * modules/ctype (Makefile.am): Likewise.
8691         * modules/dirent (Makefile.am): Likewise.
8692         * modules/errno (Makefile.am): Likewise.
8693         * modules/fcntl-h (Makefile.am): Likewise.
8694         * modules/float (Makefile.am): Likewise.
8695         * modules/getopt-posix (Makefile.am): Likewise.
8696         * modules/glob (Makefile.am): Likewise.
8697         * modules/iconv-h (Makefile.am): Likewise.
8698         * modules/inttypes (Makefile.am): Likewise.
8699         * modules/langinfo (Makefile.am): Likewise.
8700         * modules/locale (Makefile.am): Likewise.
8701         * modules/math (Makefile.am): Likewise.
8702         * modules/netdb (Makefile.am): Likewise.
8703         * modules/netinet_in (Makefile.am): Likewise.
8704         * modules/poll-h (Makefile.am): Likewise.
8705         * modules/pthread (Makefile.am): Likewise.
8706         * modules/pty (Makefile.am): Likewise.
8707         * modules/sched (Makefile.am): Likewise.
8708         * modules/search (Makefile.am): Likewise.
8709         * modules/selinux-h (Makefile.am): Likewise.
8710         * modules/signal (Makefile.am): Likewise.
8711         * modules/spawn (Makefile.am): Likewise.
8712         * modules/stdarg (Makefile.am): Likewise.
8713         * modules/stdbool (Makefile.am): Likewise.
8714         * modules/stddef (Makefile.am): Likewise.
8715         * modules/stdint (Makefile.am): Likewise.
8716         * modules/stdio (Makefile.am): Likewise.
8717         * modules/stdlib (Makefile.am): Likewise.
8718         * modules/string (Makefile.am): Likewise.
8719         * modules/strings (Makefile.am): Likewise.
8720         * modules/sys_file (Makefile.am): Likewise.
8721         * modules/sys_ioctl (Makefile.am): Likewise.
8722         * modules/sys_select (Makefile.am): Likewise.
8723         * modules/sys_socket (Makefile.am): Likewise.
8724         * modules/sys_stat (Makefile.am): Likewise.
8725         * modules/sys_time (Makefile.am): Likewise.
8726         * modules/sys_times (Makefile.am): Likewise.
8727         * modules/sys_utsname (Makefile.am): Likewise.
8728         * modules/sys_wait (Makefile.am): Likewise.
8729         * modules/sysexits (Makefile.am): Likewise.
8730         * modules/termios (Makefile.am): Likewise.
8731         * modules/time (Makefile.am): Likewise.
8732         * modules/unistd (Makefile.am): Likewise.
8733         * modules/wchar (Makefile.am): Likewise.
8734         * modules/wctype-h (Makefile.am): Likewise.
8735         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
8736
8737 2011-04-05  Bruno Haible  <bruno@clisp.org>
8738
8739         pipe2: Relicense under LGPLv2+.
8740         * modules/pipe2 (License): Change to LGPLv2+.
8741         Requested by Eric Blake, for libvirt.
8742
8743 2011-04-05  Bruce Korb  <bkorb@gnu.org>
8744
8745         bootstrap: compute gnulib_extra_files after updating build_aux
8746         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
8747         change build_aux or also supply gnulib_extra_files.  Handle correctly.
8748
8749 2011-04-05  Eric Blake  <eblake@redhat.com>
8750
8751         bootstrap: preserve git whitelist item sorting
8752         * build-aux/bootstrap (sort_patterns): New function.
8753         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
8754
8755 2011-04-05  Simon Josefsson  <simon@josefsson.org>
8756
8757         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
8758         sc_space_tab check.
8759
8760 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
8761
8762         areadlink, areadlinkat: rewrite in terms of careadlinkat
8763         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
8764         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
8765         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
8766         (malloc, realloc): Remove #undefs.
8767         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
8768         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
8769         readlink, ssize_t, stdint, unistd.
8770         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
8771         areadlink, stdint.
8772
8773         careadlinkat: new module
8774         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
8775         * modules/careadlinkat: New files, written by me with
8776         a review and feedback from Ben Pfaff in
8777         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
8778
8779 2011-04-01  Bruno Haible  <bruno@clisp.org>
8780
8781         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
8782         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
8783         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
8784         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
8785         Reported by Bruce Korb <bruce.korb@gmail.com>.
8786
8787 2011-04-01  Bruno Haible  <bruno@clisp.org>
8788
8789         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
8790         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
8791         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
8792         * modules/wcpcpy (Depends-on): Add extensions.
8793         * modules/wcpncpy (Depends-on): Likewise.
8794         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
8795         systems.
8796         * doc/posix-functions/wcpncpy.texi: Likewise.
8797         * doc/posix-functions/wcwidth.texi: Likewise.
8798
8799 2011-03-31  Eric Blake  <eblake@redhat.com>
8800
8801         nonblocking: fix mingw test failures
8802         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
8803         non-blocking flag on regular file.
8804         (get_nonblocking_flag): Set errno on invalid fd.
8805         * tests/test-nonblocking.c (main): Avoid test failure on
8806         directories if fchdir is not active.
8807         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
8808
8809 2011-03-31  Bruno Haible  <bruno@clisp.org>
8810
8811         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
8812         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
8813         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
8814         Reported by Simon Josefsson <simon@josefsson.org>.
8815
8816 2011-03-31  Bruno Haible  <bruno@clisp.org>
8817         and Eric Blake  <eblake@redhat.com>
8818
8819         nonblocking: new module
8820         * modules/nonblocking: New module.
8821         * modules/nonblocking-tests: Likewise.
8822         * lib/nonblocking.h: New file.
8823         * lib/nonblocking.c: Likewise.
8824         * tests/test-nonblocking.c: New test.
8825         * lib/ioctl.c (ioctl) [mingw]: Update comment.
8826
8827 2011-03-30  Bruno Haible  <bruno@clisp.org>
8828
8829         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
8830         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
8831         instead of 'printf' format for GCC >= 4.4.
8832         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
8833         (fprintf, printf, vfprintf, vprintf): Declare with
8834         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
8835         the system's vfprintf() function.
8836         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
8837
8838 2011-03-30  Eric Blake  <eblake@redhat.com>
8839
8840         passfd: fix scoping bug
8841         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
8842         before sendmsg/recvmsg.
8843
8844         passfd: standardize coding conventions
8845         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
8846         can be learned at compile time.
8847         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
8848         ifdefs.
8849         (sendfd, recvfd): Follow gnulib code conventions.
8850
8851         passfd: fix incorrect sendmsg arguments
8852         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
8853         incorrect msg_controllen value.
8854         * modules/passfd-tests (Depends-on): Check for alarm.
8855         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
8856         Reported by Bastien ROUCARIES.
8857
8858 2011-03-30  Bruno Haible  <bruno@clisp.org>
8859
8860         c-strcasestr: Relicense under LGPLv2+.
8861         * modules/c-strcasestr (License): Change to LGPLv2+.
8862         Requested by Eric Blake, for libvirt.
8863
8864 2011-03-30  Simon Josefsson  <simon@josefsson.org>
8865
8866         * users.txt: Add libidn2.  Fix libtasn1 link.
8867
8868 2011-03-30  Jim Meyering  <meyering@redhat.com>
8869
8870         tests: readlink* ("",... fails with EINVAL on newer kernels
8871         readlink and readlinkat have typically failed with ENOENT for
8872         the invalid, empty file name,  "".  However, with the advent
8873         of linux-2.6.39, they fail with EINVAL.
8874         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
8875         when operating on the empty file name.
8876         * tests/test-readlink.h (test_readlink): Likewise.
8877
8878 2011-03-29  Bruno Haible  <bruno@clisp.org>
8879
8880         Relicense some modules under LGPLv2+, for libidn2.
8881         * modules/array-mergesort (License): Change to LGPLv2+.
8882         * modules/c-strcaseeq (License): Likewise.
8883         * modules/striconveh (License): Likewise.
8884         * modules/striconveha (License): Likewise.
8885         * modules/uniconv/base (License): Likewise.
8886         * modules/uniconv/u8-conv-from-enc (License): Likewise.
8887         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
8888         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
8889         * modules/unictype/base (License): Likewise.
8890         * modules/unictype/bidiclass-of (License): Likewise.
8891         * modules/unictype/category-M (License): Likewise.
8892         * modules/unictype/category-none (License): Likewise.
8893         * modules/unictype/category-of (License): Likewise.
8894         * modules/unictype/category-test (License): Likewise.
8895         * modules/unictype/category-test-withtable (License): Likewise.
8896         * modules/unictype/combining-class (License): Likewise.
8897         * modules/unictype/joiningtype-of (License): Likewise.
8898         * modules/unictype/scripts (License): Likewise.
8899         * modules/uninorm/base (License): Likewise.
8900         * modules/uninorm/canonical-decomposition (License): Likewise.
8901         * modules/uninorm/composition (License): Likewise.
8902         * modules/uninorm/decompose-internal (License): Likewise.
8903         * modules/uninorm/decomposition-table (License): Likewise.
8904         * modules/uninorm/nfc (License): Likewise.
8905         * modules/uninorm/nfd (License): Likewise.
8906         * modules/uninorm/u32-normalize (License): Likewise.
8907         * modules/unistr/base (License): Likewise.
8908         * modules/unistr/u32-cpy (License): Likewise.
8909         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
8910         * modules/unistr/u32-to-u8 (License): Likewise.
8911         * modules/unistr/u32-uctomb (License): Likewise.
8912         * modules/unistr/u8-check (License): Likewise.
8913         * modules/unistr/u8-mblen (License): Likewise.
8914         * modules/unistr/u8-mbtouc (License): Likewise.
8915         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
8916         * modules/unistr/u8-mbtoucr (License): Likewise.
8917         * modules/unistr/u8-prev (License): Likewise.
8918         * modules/unistr/u8-strlen (License): Likewise.
8919         * modules/unistr/u8-to-u32 (License): Likewise.
8920         * modules/unistr/u8-uctomb (License): Likewise.
8921         * modules/unitypes (License): Likewise.
8922         Requested by Simon Josefsson.
8923
8924 2011-03-29  Simon Josefsson  <simon@josefsson.org>
8925
8926         lib-symbol-visibility: Add a notice.
8927         * modules/lib-symbol-visibility (Notice): New field.
8928
8929 2011-03-29  Bruno Haible  <bruno@clisp.org>
8930
8931         getaddrinfo: Doc fix.
8932         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
8933         section "fixed in Gnulib".
8934
8935 2011-03-28  Simon Josefsson  <simon@josefsson.org>
8936
8937         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
8938         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
8939
8940 2011-03-26  Bruno Haible  <bruno@clisp.org>
8941
8942         unictype/property-byname: Reduce the number of load-time relocations.
8943         * lib/unictype/pr_byname.c: Include <stdlib.h>.
8944         (UC_PROPERTY_INDEX_*): New enumeration values.
8945         (uc_property_byname): Convert an index from the lookup table to an
8946         uc_property_t.
8947         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
8948         values.
8949
8950 2011-03-26  Bruno Haible  <bruno@clisp.org>
8951
8952         unictype/property-byname: Allow omitted word separators and aliases.
8953         * lib/unictype/pr_byname.gperf: Add property names without word
8954         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
8955         for 'space'.
8956
8957 2011-03-26  Bruno Haible  <bruno@clisp.org>
8958
8959         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
8960         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
8961         also hyphens to space.
8962         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
8963         without spaces.
8964         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
8965
8966 2011-03-26  Bruno Haible  <bruno@clisp.org>
8967
8968         unictype/joiningtype-byname: Recognize long names as well.
8969         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
8970         a long name.
8971         * lib/unictype/joiningtype_byname.c: Include <string.h>,
8972         unictype/joiningtype_byname.h.
8973         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
8974         * lib/unictype/joiningtype_byname.gperf: New file.
8975         * modules/unictype/joiningtype-byname (Files): Add
8976         lib/unictype/joiningtype_byname.gperf.
8977         (Depends-on): Add gperf.
8978         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
8979         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
8980         long names.
8981
8982         Tests for module 'unictype/joiningtype-longname'.
8983         * modules/unictype/joiningtype-longname-tests: New file.
8984         * tests/unictype/test-joiningtype_longname.c: New file.
8985
8986         New module 'unictype/joiningtype-longname'.
8987         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
8988         * lib/unictype/joiningtype_longname.c: New file.
8989         * modules/unictype/joiningtype-longname: New file.
8990         * modules/unictype/joiningtype-all (Depends-on): Add
8991         unictype/joiningtype-longname.
8992
8993 2011-03-26  Bruno Haible  <bruno@clisp.org>
8994
8995         unictype/bidiclass-byname: Recognize long names as well.
8996         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
8997         name.
8998         * lib/unictype/bidi_byname.c: Include <string.h>,
8999         unictype/bidi_byname.h.
9000         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
9001         * lib/unictype/bidi_byname.gperf: New file.
9002         * modules/unictype/bidiclass-byname (Files): Add
9003         lib/unictype/bidi_byname.gperf.
9004         (Depends-on): Add gperf.
9005         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
9006         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
9007         long names.
9008
9009         Tests for module 'unictype/bidiclass-longname'.
9010         * modules/unictype/bidiclass-longname-tests: New file.
9011         * tests/unictype/test-bidi_longname.c: New file.
9012
9013         New module 'unictype/bidiclass-longname'.
9014         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
9015         * lib/unictype/bidi_longname.c: New file.
9016         * modules/unictype/bidiclass-longname: New file.
9017         * modules/unictype/bidiclass-all (Depends-on): Add
9018         unictype/bidiclass-longname.
9019
9020 2011-03-26  Bruno Haible  <bruno@clisp.org>
9021
9022         unictype/bidi*: Rename modules.
9023         * modules/unictype/bidiclass-all: Renamed from
9024         modules/unictype/bidicategory-all.
9025         * modules/unictype/bidiclass-name: Renamed from
9026         modules/unictype/bidiclass-name.
9027         (Description): Update.
9028         * modules/unictype/bidiclass-name-tests: Renamed from
9029         modules/unictype/bidicategory-name-tests.
9030         * modules/unictype/bidiclass-byname: Renamed from
9031         modules/unictype/bidicategory-byname.
9032         (Description): Update.
9033         * modules/unictype/bidiclass-byname-tests: Renamed from
9034         modules/unictype/bidicategory-byname-tests.
9035         * modules/unictype/bidiclass-of: Renamed from
9036         modules/unictype/bidicategory-of.
9037         (Description): Update.
9038         * modules/unictype/bidiclass-of-tests: Renamed from
9039         modules/unictype/bidicategory-of-tests.
9040         * modules/unictype/bidiclass-test: Renamed from
9041         modules/unictype/bidicategory-test.
9042         (Description): Update.
9043         * modules/unictype/bidiclass-test-tests: Renamed from
9044         modules/unictype/bidicategory-test-tests.
9045         * modules/unictype/bidicategory-all: New file, a simple redirection.
9046         * modules/unictype/bidicategory-name: Likewise.
9047         * modules/unictype/bidicategory-byname: Likewise.
9048         * modules/unictype/bidicategory-of: Likewise.
9049         * modules/unictype/bidicategory-test: Likewise.
9050         * modules/unictype/property-bidi-* (Dependencies): Update.
9051         * lib/unictype/bidi_*.c: Update comment.
9052
9053 2011-03-26  Bruno Haible  <bruno@clisp.org>
9054
9055         unictype/bidi*: Rename functions, part 2.
9056         * modules/unictype/bidicategory-name (configure.ac): Update required
9057         libunistring version.
9058         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
9059
9060 2011-03-25  Bruno Haible  <bruno@clisp.org>
9061
9062         New module 'unictype/combining-class-all'.
9063         * modules/unictype/combining-class-all: New file.
9064
9065         Tests for module 'unictype/combining-class-byname'.
9066         * modules/unictype/combining-class-byname-tests: New file.
9067         * tests/unictype/test-combiningclass_byname.c: New file.
9068
9069         New module 'unictype/combining-class-byname'.
9070         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
9071         * lib/unictype/combiningclass_byname.c: New file.
9072         * lib/unictype/combiningclass_byname.gperf: New file.
9073         * modules/unictype/combining-class-byname: New file.
9074
9075         Tests for module 'unictype/combining-class-longname'.
9076         * modules/unictype/combining-class-longname-tests: New file.
9077         * tests/unictype/test-combiningclass_longname.c: New file.
9078
9079         New module 'unictype/combining-class-longname'.
9080         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
9081         * lib/unictype/combiningclass_longname.c: New file.
9082         * modules/unictype/combining-class-longname: New file.
9083
9084         Tests for module 'unictype/combining-class-name'.
9085         * modules/unictype/combining-class-name-tests: New file.
9086         * tests/unictype/test-combiningclass_name.c: New file.
9087
9088         New module 'unictype/combining-class-name'.
9089         * lib/unictype.in.h (uc_combining_class_name): New declaration.
9090         * lib/unictype/combiningclass_name.c: New file.
9091         * modules/unictype/combining-class-name: New file.
9092
9093 2011-03-25  Bruno Haible  <bruno@clisp.org>
9094
9095         unictype/combining-class: Rename source files.
9096         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
9097         of unictype/combining.h.
9098         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
9099         Update.
9100         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
9101         * modules/unictype/combining-class (Description): Fix.
9102         (Files, Makefile.am): Update.
9103         * tests/unictype/test-combiningclass.c: Renamed from
9104         tests/unictype/test-combining.c.
9105         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
9106
9107 2011-03-25  Bruno Haible  <bruno@clisp.org>
9108
9109         unictype: Update list of canonical combining classes.
9110         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
9111
9112 2011-03-25  Bruno Haible  <bruno@clisp.org>
9113
9114         unictype/category-byname: Recognize long names as well.
9115         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
9116         a long name.
9117         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
9118         unictype/categ_byname.h.
9119         (UC_CATEGORY_INDEX_*): New enumeration values.
9120         (uc_general_category_byname): Use uc_general_category_lookup and
9121         convert from index to value.
9122         * lib/unictype/categ_byname.gperf: New file.
9123         * modules/unictype/category-byname (Files): Add
9124         lib/unictype/categ_byname.gperf.
9125         (Depends-on): Add gperf.
9126         (Makefile.am): Add rule for generating unictype/categ_byname.h.
9127         * tests/unictype/test-categ_byname.c (main): Test the recognition of
9128         long names.
9129
9130         Tests for module 'unictype/category-longname'.
9131         * modules/unictype/category-longname-tests: New file.
9132         * tests/unictype/test-categ_longname.c: New file.
9133
9134         New module 'unictype/category-longname'.
9135         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
9136         * lib/unictype/categ_longname.c: New file.
9137         * modules/unictype/category-longname: New file.
9138         * modules/unictype/category-all (Depends-on): Add it.
9139
9140 2011-03-25  Bruno Haible  <bruno@clisp.org>
9141
9142         Tests for module 'unictype/category-LC'.
9143         * modules/unictype/category-LC-tests: New file.
9144         * tests/unictype/test-categ_LC.c: New file, automatically generated.
9145
9146         New module 'unictype/category-LC'.
9147         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
9148         (UC_CATEGORY_LC): New declaration.
9149         (UC_CASED_LETTER): New macro.
9150         * lib/gen-uni-tables.c (is_category_LC): New function.
9151         (output_categories): Also handle category LC.
9152         (UC_CATEGORY_MASK_LC): New enumeration value.
9153         (general_category_byname): Also handle category LC.
9154         * lib/unictype/categ_LC.c: New file.
9155         * lib/unictype/categ_LC.h: New file, automatically generated.
9156         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
9157         category LC.
9158         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
9159         * modules/unictype/category-LC: New file.
9160         * modules/unictype/category-byname (Depends-on): Add
9161         unictype/category-LC.
9162         * modules/unictype/category-all (Depends-on): Likewise.
9163
9164 2011-03-25  Eric Blake  <eblake@redhat.com>
9165
9166         xmalloc: revert yesterday's regression
9167         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
9168         realloc's underlying behavior (allowing allocation of zero-size
9169         objects, especially if malloc-gnu is also in use).
9170
9171 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
9172
9173         maint.mk: add missing version to VC-tag
9174         * top/maint.mk: git tag was missing actual tag name; add it.
9175
9176         valgrind: do leak checking, and exit with code 1 on error (not 0)
9177         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
9178         to VALGRIND.
9179
9180 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
9181
9182         posix-modules: say what it does.
9183         * posix-modules: Add a line to the --help output saying what it does.
9184
9185 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
9186
9187         xmalloc: Do not leak if underlying realloc is C99 compatible.
9188         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
9189         This avoids a leak on C99-based systems.  See
9190         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
9191
9192 2011-03-24  Eric Blake  <eblake@redhat.com>
9193
9194         realloc: document portability problem
9195         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
9196         passing 0 size to realloc.
9197
9198 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
9199
9200         doc: update users.txt
9201         * users.txt: Add cvsps, tmpwatch
9202
9203 2011-03-23  Matt Rice  <ratmice@gmail.com>
9204
9205         doc: update users.txt
9206         * users.txt: Add gdb.
9207
9208 2011-03-23  Jim Meyering  <meyering@redhat.com>
9209
9210         doc: update users.txt
9211         Looking through matches up to the following URL (there are still
9212         several more pages), I found several projects that use gnulib:
9213         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
9214         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
9215         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
9216
9217 2011-03-22  Bruno Haible  <bruno@clisp.org>
9218
9219         unictype/bidi*: Rename functions.
9220         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
9221         uc_bidi_class, uc_is_bidi_class): New declarations.
9222         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
9223         uc_bidi_category_byname.
9224         (uc_bidi_category_byname): New function.
9225         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
9226         u_bidi_category_name.
9227         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
9228         (uc_bidi_category_name): New function.
9229         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
9230         uc_bidi_category.
9231         (uc_bidi_category): New function.
9232         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
9233         uc_is_bidi_category. Invoke uc_bidi_class.
9234         (uc_is_bidi_category): New function.
9235         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
9236         instead of uc_bidi_category_byname.
9237         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
9238         instead of uc_bidi_category_name.
9239         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
9240         uc_bidi_category.
9241         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
9242         instead of uc_is_bidi_category.
9243
9244 2011-03-21  Bruno Haible  <bruno@clisp.org>
9245
9246         New module 'unictype/joininggroup-all'.
9247         * modules/unictype/joininggroup-all: New file.
9248
9249         Tests for module 'unictype/joininggroup-of'.
9250         * modules/unictype/joininggroup-of-tests: New file.
9251         * tests/unictype/test-joininggroup_of.c: New file.
9252         * tests/unictype/test-joininggroup_of.h: New file, automatically
9253         generated by gen-uni-tables.
9254
9255         New module 'unictype/joininggroup-of'.
9256         * modules/unictype/joininggroup-of: New file.
9257         * lib/unictype/joininggroup_of.c: New file.
9258         * lib/unictype/joininggroup_of.h: New file, automatically generated by
9259         gen-uni-tables.
9260
9261         Tests for module 'unictype/joininggroup-byname'.
9262         * modules/unictype/joininggroup-byname-tests: New file.
9263         * tests/unictype/test-joininggroup_byname.c: New file.
9264
9265         New module 'unictype/joininggroup-byname'.
9266         * modules/unictype/joininggroup-byname: New file.
9267         * lib/unictype/joininggroup_byname.c: New file.
9268         * lib/unictype/joininggroup_byname.gperf: New file.
9269
9270         Tests for module 'unictype/joininggroup-name'.
9271         * modules/unictype/joininggroup-name-tests: New file.
9272         * tests/unictype/test-joininggroup_name.c: New file.
9273
9274         New module 'unictype/joininggroup-name'.
9275         * modules/unictype/joininggroup-name: New file.
9276         * lib/unictype/joininggroup_name.c: New file.
9277         * lib/unictype/joininggroup_name.h: New file.
9278
9279         New module 'unictype/joiningtype-all'.
9280         * modules/unictype/joiningtype-all: New file.
9281
9282         Tests for module 'unictype/joiningtype-of'.
9283         * modules/unictype/joiningtype-of-tests: New file.
9284         * tests/unictype/test-joiningtype_of.c: New file.
9285         * tests/unictype/test-joiningtype_of.h: New file, automatically
9286         generated by gen-uni-tables.
9287
9288         New module 'unictype/joiningtype-of'.
9289         * modules/unictype/joiningtype-of: New file.
9290         * lib/unictype/joiningtype_of.c: New file.
9291         * lib/unictype/joiningtype_of.h: New file, automatically generated by
9292         gen-uni-tables.
9293
9294         Tests for module 'unictype/joiningtype-byname'.
9295         * modules/unictype/joiningtype-byname-tests: New file.
9296         * tests/unictype/test-joiningtype_byname.c: New file.
9297
9298         New module 'unictype/joiningtype-byname'.
9299         * modules/unictype/joiningtype-byname: New file.
9300         * lib/unictype/joiningtype_byname.c: New file.
9301
9302         Tests for module 'unictype/joiningtype-name'.
9303         * modules/unictype/joiningtype-name-tests: New file.
9304         * tests/unictype/test-joiningtype_name.c: New file.
9305
9306         New module 'unictype/joiningtype-name'.
9307         * modules/unictype/joiningtype-name: New file.
9308         * lib/unictype/joiningtype_name.c: New file.
9309
9310         unictype: Add support for Arabic shaping properties.
9311         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
9312         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
9313         declarations.
9314         (UC_JOINING_GROUP_*): New enumeration values.
9315         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
9316         declarations.
9317         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
9318         (unicode_joining_type): New variable.
9319         (UC_JOINING_GROUP_*): New enumeration values.
9320         (unicode_joining_group): New variable.
9321         (fill_arabicshaping, joining_type_as_c_identifier,
9322         output_joining_type_test, output_joining_type,
9323         joining_group_as_c_identifier, output_joining_group_test,
9324         output_joining_group): New functions.
9325         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
9326         fill_arabicshaping and output_joining_type_test, output_joining_type,
9327         output_joining_group_test, output_joining_group.
9328         Reported by Simon Josefsson.
9329
9330 2011-03-21  Jim Meyering  <meyering@redhat.com>
9331
9332         strftime: fix a bug in yesterday's change
9333         * lib/strftime.c (add): Accommodate width's initial value of -1.
9334         Otherwise, nstrftime would copy uninitialized data into
9335         the result buffer.
9336
9337 2011-03-21  Jim Meyering  <meyering@redhat.com>
9338
9339         tests: add strftime-tests module
9340         * tests/test-strftime.c: New file.
9341         * modules/strftime-tests: New module.
9342
9343 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
9344
9345         strftime: don't assume a byte count fits in 'int'
9346         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
9347         found this problem by static analysis, using gcc -Wstrict-overflow
9348         (GCC 4.5.2, x86-64).  This reported an optimization that depended
9349         on an integer overflow having undefined behavior, but it turns out
9350         that the argument is a size, which might not fit in 'int' anyway,
9351
9352 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
9353
9354         stdio: don't require ignore_value around fwrite
9355
9356         This patch works around libc bug 11959
9357         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
9358         Without this patch, applications must often write
9359         ignore_value (fwrite (...)) even though the ignore_value is
9360         not helpful here.  It's common to write many objects, using
9361         fwrite/printf/etc., and then use ferror to detect output error.
9362
9363         I considered making this patch optional, but decided against it,
9364         because libc is obviously being inconsistent here: there is no
9365         reason libc should insist that user code must inspect fwrite
9366         return's value without also insisting that it inspect printf's,
9367         putchar's, etc.  If user code wants to have a strict style where
9368         all these functions' values are checked (so that ferror need not
9369         be checked), we could add support for that style in a new gnulib
9370         module, but in the meantime it's better to be consistent and to
9371         support common usage.
9372
9373         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
9374         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
9375         that we are compiling in checking mode, and if not C++, and
9376         if not already wrapping fwrite for some other reason.
9377         (fwrite): #define to rpl_fwrite if the latter is defined.
9378
9379 2011-03-20  Bruno Haible  <bruno@clisp.org>
9380
9381         verror: Fix compilation error introduced on 2011-02-13.
9382         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
9383         instead of __attribute__.
9384         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9385
9386 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
9387             Bruno Haible  <bruno@clisp.org>
9388
9389         socklen: do not depend on sys_socket
9390         While trying to modify Emacs to use gnulib's socklen module,
9391         I discovered a circular dependency: socklen depends on sys_socket
9392         and vice versa.  Emacs can use socklen, but it does not need
9393         sys_socket because it has its own substitute for sys/socket.h.
9394         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
9395         gl_TYPE_SOCKLEN_T.
9396         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
9397         gl_PREREQ_SYS_H_SOCKET.
9398         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
9399         gl_PREREQ_SYS_H_SOCKET.
9400         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
9401         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
9402         * modules/socklen (Depends-on): Do not depend on sys_socket.
9403         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
9404
9405 2011-03-20  Jim Meyering  <meyering@redhat.com>
9406
9407         maint.mk: sort file names *after* new transformation
9408         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
9409         prefix would have led to an unwarranted failure in GNU parted.
9410         Sort after that transformation.
9411
9412 2011-03-19  Jim Meyering  <meyering@redhat.com>
9413
9414         maint.mk: fix po-file syntax-check rule
9415         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
9416         Patch by Bruno Haible.
9417
9418 2011-03-19  Bruno Haible  <bruno@clisp.org>
9419
9420         socklen: Update comment.
9421         * m4/socklen.m4: Update comment about platforms.
9422
9423 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
9424             Bruno Haible  <bruno@clisp.org>
9425
9426         inet_ntop, inet_pton: Simplify.
9427         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
9428         documented to provide socklen_t and we already depend on sys_socket.
9429         * modules/inet_pton (Depends-on): Likewise.
9430         * lib/arpa_inet.in.h: Adjust comment.
9431
9432 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
9433             Bruno Haible  <bruno@clisp.org>
9434
9435         netdb: Simplify.
9436         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
9437         documented to provide socklen_t and we already depend on sys_socket.
9438         * lib/netdb.in.h: Adjust comment.
9439
9440 2011-03-19  Bruno Haible  <bruno@clisp.org>
9441
9442         sys_socket, netdb: Document problem with socklen_t.
9443         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
9444         platforms.
9445         * doc/posix-headers/netdb.texi: Likewise.
9446
9447 2011-03-18  Eric Blake  <eblake@redhat.com>
9448
9449         maint.mk: let po check work in VPATH build
9450         * top/maint.mk (po_file): Allow cfg.mk override.
9451         (sc_po_check): Allow VPATH use.
9452         Reported by Jiri Denemark.
9453
9454 2011-03-16  Jim Meyering  <meyering@redhat.com>
9455
9456         maint.mk: allow fine-grained syntax-check exclusion via Make variables
9457         Before, you would have had to create one .x-sc_ file per rule in order
9458         to exempt offending files.  Now, you may instead use a Make variable --
9459         usually defined in cfg.mk -- whose name identifies the affected rule.
9460         * top/maint.mk (_sc_excl): Define.
9461         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
9462         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
9463
9464 2011-03-13  Bruno Haible  <bruno@clisp.org>
9465
9466         ignore-value tests: Avoid warnings.
9467         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
9468         empty for gcc < 3.4.
9469
9470 2011-03-13  Bruno Haible  <bruno@clisp.org>
9471
9472         passfd: Fix link error on Solaris.
9473         * modules/passfd (Description): Correct.
9474         (Depends-on): Add socketlib.
9475         (Link): New section.
9476         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
9477
9478 2011-03-13  Bruno Haible  <bruno@clisp.org>
9479
9480         passfd: Fix link error on AIX 5.2.
9481         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
9482
9483 2011-03-13  Bruno Haible  <bruno@clisp.org>
9484
9485         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
9486         * lib/sys_socket.in.h: Include <stddef.h>.
9487         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
9488         CMSG_FIRSTHDR. Remove unused variable.
9489
9490 2011-03-13  Bruno Haible  <bruno@clisp.org>
9491
9492         passfd: Fix compilation error on OpenBSD.
9493         * lib/passfd.c: Include <sys/uio.h>.
9494
9495 2011-03-13  Bruno Haible  <bruno@clisp.org>
9496
9497         passfd test: Fix warnings.
9498         * tests/test-passfd.c: Include <sys/wait.h>.
9499         (main): Fix typo.
9500
9501 2011-03-13  Bruno Haible  <bruno@clisp.org>
9502
9503         passfd module, part 4, tweaks.
9504         * tests/test-passfd.c: Reorder includes.
9505         (main): Fix perror and printf calls.
9506
9507 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
9508
9509         passfd module, part 4.
9510         * modules/passfd-tests: New file.
9511         * tests/test-passfd.c: New file.
9512
9513 2011-03-13  Jim Meyering  <meyering@redhat.com>
9514
9515         Makefile: rely on GNU make; derive syntax-check rule names
9516         Rather than requiring that each sc_ rule be listed as a dependent
9517         of "check", use features of GNU make to derive the list.
9518         * Makefile (syntax-check-rules): Define.
9519         (check): Depend on the new variable, not the hard-coded list.
9520
9521 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
9522             Bruno Haible  <bruno@clisp.org>
9523
9524         passfd module, part 3.
9525         * lib/passfd.h (recvfd): Add a flags argument.
9526         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
9527         (recvfd): Add a flags argument.
9528         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
9529         exists.
9530         * modules/passfd (Depends-on): Add cloexec.
9531         Suggested by Eric Blake.
9532
9533 2011-03-13  Bruno Haible  <bruno@clisp.org>
9534
9535         passfd module, part 2, tweaks.
9536         * modules/passfd (Files): Reorder.
9537         (Depends-on): Remove errno.
9538         (Include): Remove <sys/socket.h>, <sys/un.h>.
9539         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
9540         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
9541         specification header. Include <sys/socket.h> always. Don't include
9542         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
9543         (sendfd): Clarify that it sets errno when it fails.
9544         (recvfd): Fix specification.
9545
9546 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
9547
9548         passfd module, part 2.
9549         * modules/passfd: New file.
9550         * lib/passfd.h: New file.
9551         * lib/passfd.c: New file.
9552
9553 2011-03-12  Bruno Haible  <bruno@clisp.org>
9554
9555         wcswidth, mbswidth: Avoid integer overflow.
9556         * lib/wcswidth.c: Include <limits.h>.
9557         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
9558         * lib/mbswidth.c: Include <limits.h>.
9559         (mbsnwidth): Avoid 'int' overflow.
9560         Reported by Jim Meyering.
9561
9562 2011-03-12  Bruno Haible  <bruno@clisp.org>
9563
9564         futimens, utimensat: Avoid endless recursion on Solaris 10.
9565         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
9566         Solaris.
9567         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
9568         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
9569
9570 2011-03-11  Jim Meyering  <meyering@redhat.com>
9571
9572         maint.mk: relax a regexp to accommodate other formatting styles
9573         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
9574         between "ngettext" and the following "(".
9575
9576 2011-03-11  Pádraig Brady <P@draigBrady.com>
9577
9578         maint.mk: suppress a false positive warning
9579         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
9580         diagnostics are marked with ngettext.
9581
9582 2011-03-10  Eric Blake  <eblake@redhat.com>
9583
9584         wchar: add explicit dependencies, for Tru64
9585         * modules/mbmemcasecoll (Depends-on): Add wchar.
9586         * modules/mbtowc (Depends-on): Likewise.
9587         * modules/vasnprintf (Depends-on): Likewise.
9588         * modules/unistdio/u-printf-args (Depends-on): Likewise.
9589         * modules/wctomb (Depends-on): Likewise.
9590         Reported by Peter O'Gorman.
9591
9592 2011-03-08  Bruno Haible  <bruno@clisp.org>
9593
9594         passfd module, part 1, tweaks.
9595         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
9596         Improve indentation. Improve AC_MSG_CHECKING messages.
9597         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
9598         gl_SOCKET_FAMILIES.
9599
9600 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
9601
9602         passfd module, part 1.
9603         * m4/afunix.m4: New file.
9604         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
9605         sockets.
9606
9607 2011-03-08  Bruno Haible  <bruno@clisp.org>
9608
9609         regex-quote: New API.
9610         * lib/regex-quote.h: Include <stdbool.h>.
9611         (struct regex_quote_spec): New type.
9612         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
9613         New declarations.
9614         (regex_quote_length, regex_quote_copy, regex_quote): Take a
9615         'const struct regex_quote_spec *' argument.
9616         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
9617         (pcre_special): New constant.
9618         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
9619         New functions.
9620         (regex_quote_length, regex_quote_copy, regex_quote): Take a
9621         'const struct regex_quote_spec *' argument.
9622         * modules/regex-quote (Depends-on): Add stdbool.
9623         * tests/test-regex-quote.c (check): Update for new API. Add test for
9624         anchored results.
9625         * NEWS: Mention the API change.
9626         Reported by Reuben Thomas and Eric Blake.
9627
9628 2011-03-06  Bruno Haible  <bruno@clisp.org>
9629
9630         regex-quote: Fix creation of POSIX extended regular expressions.
9631         * lib/regex-quote.c (ere_special): Add grouping and alternation
9632         operators.
9633
9634 2011-03-05  Bruno Haible  <bruno@clisp.org>
9635
9636         doc: Improve doc regarding autopoint vs. gnulib.
9637         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
9638         disable autopoint while running autoreconf.
9639         Suggested by Ralf Wildenhues.
9640
9641 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9642
9643         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
9644         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
9645
9646 2011-03-03  Bruce Korb  <bkorb@gnu.org>
9647
9648         parse-duration: remove xalloc.h dependency
9649         * lib/parse-duration.c (parse_period): handle NULL return from
9650         strdup instead of calling xstrdup().
9651         * modules/parse-duration: remove "xalloc" dependency
9652
9653 2011-03-03  Matthew Booth  <mbooth@redhat.com>
9654
9655         bootstrap: honor m4_base when running aclocal
9656         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
9657
9658 2011-03-02  Jim Meyering  <meyering@redhat.com>
9659
9660         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
9661         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
9662         on request from Matt Booth.
9663
9664 2011-03-01  Eric Blake  <eblake@redhat.com>
9665
9666         test-link: work on Hurd
9667         * tests/test-link.h (test_link): Hurd rejects linking directories
9668         with EISDIR instead of the POSIX-mandated EPERM.
9669
9670 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
9671
9672         stdio: simplify by moving files to printf-posix, sigpipe
9673         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
9674         since this symbol is needed only if printf is replaced.
9675         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
9676         Require gl_ASM_SYMBOL_PREFIX.
9677         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
9678         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
9679         (Depends-on): Add 'raise'.
9680         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
9681         * modules/stdio (Files): Remove lib/stdio-write.c,
9682         m4/asm-underscore.m4.
9683         (Depends-on): Remove 'raise'.
9684
9685         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
9686         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
9687         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
9688         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
9689
9690 2011-02-28  Bruno Haible  <bruno@clisp.org>
9691
9692         localcharset: Assume ANSI C behaviour of free().
9693         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
9694         calling free().
9695         Suggested by Simon Josefsson <simon@josefsson.org>.
9696
9697 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
9698             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
9699             Bruno Haible  <bruno@clisp.org>  (tiny change)
9700
9701         On Cygwin, use /proc file system instead of win32 API.
9702         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
9703         Win32 file names.
9704         (DllMain): Simplify by removing Cygwin specific code.
9705         (find_shared_library_fullname): Use Linux specific implementation also
9706         for Cygwin.
9707         (get_shared_library_fullname): Update accordingly.
9708         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
9709         Win32 file names.
9710         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
9711         Cygwin specific code.
9712
9713 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
9714             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
9715
9716         Fix OpenMP flag detection for various Fortran compilers.
9717         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
9718         OpenMP-conditional compilation construct, to force compile
9719         failure with missing OpenMP flag.
9720         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
9721
9722 2011-02-25  Eric Blake  <eblake@redhat.com>
9723
9724         strstr: expand test coverage
9725         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
9726         compilation.
9727         * tests/test-memmem.c (main): Duplicate tests.
9728         * tests/test-strcasestr.c (main): Likewise.
9729         * tests/test-c-strcasestr.c (main): Likewise.
9730
9731 2011-02-25  Jim Meyering  <meyering@redhat.com>
9732
9733         maint.mk: detect missing-NL-at-EOF, too
9734         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
9735         it also detects when a file lacks a newline at EOF.
9736         (require_exactly_one_NL_at_EOF_): Renamed from
9737         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
9738         since people may well have .x-sc_... file names tied to the
9739         existing name.  Suggested by Eric Blake.
9740
9741 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
9742
9743         dirname: move m4/dos.m4 functionality into lib/dosname.h
9744
9745         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
9746         extracts symbols from it, puts them into config.h; but it's much
9747         easier to use the symbols directly.  filename.h already does this,
9748         but it disagrees with dos.m4 in some respects.  This patch
9749         introduces a different include file dosname.h that packages up
9750         dos.m4, and then later we can work on merging filename.h and
9751         dosname.h.  Applications that need only the easy-to-configure
9752         symbols should consider including dosname.h rather than dirname.h.
9753         * NEWS: Mention incompatible changes.
9754         * m4/dos.m4: Remove.
9755         * lib/dosname.h, modules/dosname: New files.
9756         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
9757         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
9758         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
9759         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
9760         Include dosname.h, not dirname.h.
9761         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
9762         Include dosname.h, for definitions of symbols like ISSLASH
9763         that used to be in config.h.
9764         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
9765         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
9766         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
9767         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
9768         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
9769         * modules/rmdir (Files): Likewise.
9770         * modules/stat (Files): Likewise.
9771         * modules/unlink (Files): Likewise.
9772         * modules/dirname-lgpl (Depends-on): Add dosname.
9773         * modules/lstat (Depends-on): Likewise.
9774         * modules/openat (Depends-on): Likewise.
9775         * modules/rmdir (Depends-on): Likewise.
9776         * modules/savewd (Depends-on): Likewise.
9777         * modules/stat (Depends-on): Likewise.
9778         * modules/unlink (Depends-on): Likewise.
9779         * modules/openat (Depends-on): Remove dirname-lgpl.
9780         * modules/savewd (Depends-on): Likewise.
9781         * tests/test-dirname.c: Do not use removed symbols like
9782         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
9783         the remaining symbols, e.g., ISSLASH ('\\').
9784
9785 2011-02-25  Eric Blake  <eblake@redhat.com>
9786
9787         strstr: revert patches that introduced bug and pessimization
9788         * lib/str-two-way.h: Add another reference.
9789         (two_way_short_needle, two_way_long_needle): Revert changes from
9790         2011-02-24; they pessimize search speed.
9791         (critical_factorization): Partially revert changes from
9792         2010-06-22; they violate the requirement that the left half of the
9793         needle be smaller than the period of the needle.
9794
9795 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
9796
9797         filenamecat: remove unnecessary dependency on dirname-lgpl
9798         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
9799         is no direct dependency, just an indirect one via filenamecat-lgpl.
9800
9801         remove: remove unnecessary use of m4/dos.m4
9802         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
9803         * modules/remove (FILES): Remove m4/dos.m4.
9804
9805         * lib/openat-proc.c: Don't include dirname.h; not needed.
9806
9807         backupfile: remove unnecessary use of m4/dos.m4
9808         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
9809         of its symbols are used by the backupfile code.  backupfile.c does
9810         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
9811         for the rare case of programs that want all their backup file
9812         names to live within 8+3 limits, and dos.m4 doesn't address that.
9813         * modules/backupfile (Files): Remove m4/dos.m4.
9814
9815 2011-02-24  Jim Meyering  <meyering@redhat.com>
9816
9817         strstr: fix a bug whereby strstr would mistakenly return NULL
9818         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
9819         in period calculation.
9820         (two_way_long_needle): Likewise.
9821         The original problem was reported by Mike Stump in
9822         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
9823         Ralf Wildenhues provided the short needle and haystack.
9824         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
9825         Add a more involved test to trigger the bug in two_way_long_needle.
9826
9827 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
9828
9829         gnulib-tool: remove use of bold display in help screen
9830         * gnulib-tool (func_usage): Do not use bold display anymore in the
9831         help screen.  That was just meant to be a temporary emphasis for a
9832         backward-incompatible change.
9833
9834 2011-02-23  Bruno Haible  <bruno@clisp.org>
9835
9836         Fix misindentation of preprocessor directives.
9837         * lib/argp-namefrob.h: Reindent preprocessor directives.
9838         * lib/getopt_int.h (struct _getopt_data): Likewise.
9839         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
9840         * lib/vasnprintf.c (decode_long_double): Likewise.
9841         * tests/test-argmatch.c: Insert blank lines, for clarity.
9842         * tests/test-exclude.c: Likewise.
9843
9844 2011-02-22  Bruno Haible  <bruno@clisp.org>
9845
9846         ioctl: Fix for MacOS X in 64-bit mode.
9847         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
9848         value.
9849         Suggested by Eric Blake.
9850         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
9851
9852 2011-02-22  Jim Meyering  <meyering@redhat.com>
9853
9854         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
9855         * Makefile (sc_cpp_indent_check): Don't limit the check to files
9856         in lib/.
9857
9858 2011-02-22  Eric Blake  <eblake@redhat.com>
9859
9860         maint: avoid any CDPATH issue
9861         * Makefile (sc_cpp_indent_check): Anchor cd argument.
9862
9863         maint: adjust cpp indentation for my modules, as well
9864         * Makefile (sc_cpp_indent_check): Add my name.
9865         * lib/fbufmode.c: Filter through cppi.
9866         * lib/fpurge.c: Likewise.
9867         * lib/freadable.c: Likewise.
9868         * lib/freading.c: Likewise.
9869         * lib/fwritable.c: Likewise.
9870         * lib/fwriting.c: Likewise.
9871         * lib/sigaction.c: Likewise.
9872
9873 2011-02-22  Jim Meyering  <meyering@redhat.com>
9874
9875         maint: adjust cpp indentation to reflect nesting depth
9876         I.e., in a block of code that begins with an unnested "#if",
9877         put one space between the "#" in column 1 and following token.
9878         For example,
9879         -#include <sys/vfs.h>
9880         +# include <sys/vfs.h>
9881         Do this only in .c files that are part of a module I maintain.
9882         * lib/linkat.c: Filter through cppi.
9883         * lib/nanosleep.c: Likewise.
9884         * lib/openat.c: Likewise.
9885         * lib/openat-die.c: Likewise.
9886         * lib/dup3.c: Likewise.
9887         * lib/fchownat.c: Likewise.
9888         * lib/flock.c: Likewise.
9889         * lib/fsync.c: Likewise.
9890         * lib/fts.c: Likewise.
9891         * lib/getpass.c: Likewise.
9892         * lib/gettimeofday.c: Likewise.
9893         * lib/userspec.c: Likewise.
9894         * Makefile (sc_cpp_indent_check): New rule, to check this.
9895
9896 2011-02-22  Bruno Haible  <bruno@clisp.org>
9897
9898         New module 'wctomb'.
9899         * lib/stdlib.in.h (wctomb): New declaration.
9900         * lib/wctomb.c: New file.
9901         * lib/wctomb-impl.h: New file.
9902         * m4/wctomb.m4: New file.
9903         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
9904         REPLACE_WCTOMB.
9905         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
9906         REPLACE_WCTOMB.
9907         * modules/wctomb: New file.
9908         * tests/test-stdlib-c++.cc: Test signature of wctomb.
9909         * doc/posix-functions/wctomb.texi: Mention the new module.
9910         * modules/wctob (Depends-on): Add wctomb.
9911
9912 2011-02-22  Bruno Haible  <bruno@clisp.org>
9913
9914         New module 'mbtowc'.
9915         * lib/stdlib.in.h (mbtowc): New declaration.
9916         * lib/mbtowc.c: New file.
9917         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
9918         * m4/mbtowc.m4: New file.
9919         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
9920         REPLACE_MBTOWC.
9921         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
9922         REPLACE_MBTOWC.
9923         * modules/mbtowc: New file.
9924         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
9925         * doc/posix-functions/mbtowc.texi: Mention the new module.
9926         * modules/btowc (Depends-on): Add mbtowc.
9927
9928 2011-02-22  Bruno Haible  <bruno@clisp.org>
9929
9930         wcrtomb: Add more tests for native Windows platforms.
9931         * tests/test-wcrtomb-w32-1.sh: New file.
9932         * tests/test-wcrtomb-w32-2.sh: New file.
9933         * tests/test-wcrtomb-w32-3.sh: New file.
9934         * tests/test-wcrtomb-w32-4.sh: New file.
9935         * tests/test-wcrtomb-w32-5.sh: New file.
9936         * tests/test-wcrtomb-w32.c: New file.
9937         * modules/wcrtomb-tests (Files): Add them.
9938         (Makefile.am): Arrange to run these tests.
9939         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
9940         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
9941
9942 2011-02-20  Bruno Haible  <bruno@clisp.org>
9943
9944         wcrtomb: Enhance test.
9945         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
9946
9947 2011-02-20  Bruno Haible  <bruno@clisp.org>
9948
9949         mbrtowc: Tiny optimization.
9950         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
9951
9952 2011-02-20  Jim Meyering  <meyering@redhat.com>
9953
9954         test-exclude.c: remove unmatched #endif
9955         * tests/test-exclude.c: Remove stray #endif, left over from
9956         the change of a week ago.
9957
9958 2011-02-19  Jim Meyering  <meyering@redhat.com>
9959
9960         git-version-gen: skip "-dirty" check when appropriate
9961         * build-aux/git-version-gen: Don't run any git commands when the
9962         version string comes from .tarball-version.  Prior to this, we
9963         would run git update-index --refresh even from a just-unpacked
9964         tarball directory, and that could affect a .git/ directory in a
9965         parent of the build directory.  Reported by Mike Frysinger.
9966
9967 2011-02-19  Bruno Haible  <bruno@clisp.org>
9968
9969         unictype/property-byname: Reduce the size of the 'data' segment.
9970         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
9971
9972 2011-02-19  Bruno Haible  <bruno@clisp.org>
9973
9974         unictype/scripts: Reduce the size of the 'data' segment.
9975         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
9976         '%pic'.
9977         * lib/unictype/scripts_byname.gperf: Regenerated.
9978
9979 2011-02-19  Bruno Haible  <bruno@clisp.org>
9980
9981         stdint: Update documentation.
9982         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
9983
9984 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
9985
9986         stdint: omit redundant check for wchar.h
9987         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
9988         always tests whether wchar.h exists, so remove the now-redundant test.
9989
9990 2011-02-18  Bruno Haible  <bruno@clisp.org>
9991
9992         stdint: Cut dependency to module 'wchar'.
9993         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
9994         include the necessary prerequisites.
9995         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
9996         * modules/stdint (Depends-on): Remove wchar.
9997         (Makefile.am): Substitute HAVE_WCHAR_H.
9998         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
9999
10000 2011-02-18  Eric Blake  <eblake@redhat.com>
10001
10002         longlong: skip, rather than fail, on cross-compilation
10003         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
10004         when cross-compiling; regression from 2011-02-16.
10005
10006 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
10007
10008         * NEWS: Mention 2011-02-08 change to stdlib.
10009
10010 2011-02-17  Bruno Haible  <bruno@clisp.org>
10011
10012         getloadavg: Add comments about platforms.
10013         * m4/getloadavg.m4: Add comment.
10014         * lib/getloadavg.c: Likewise.
10015
10016 2011-02-17  Bruno Haible  <bruno@clisp.org>
10017
10018         getloadavg: Fix link error on Solaris 2.6.
10019         * modules/getloadavg (Link): New section.
10020         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
10021         linking test-getloadavg.
10022         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
10023         getloadavg.
10024
10025 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
10026
10027         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
10028         It was 'int', but this doesn't match the IRIX 6.5 manual.
10029         Suggested by Bruno Haible in
10030         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
10031
10032 2011-02-17  Bruno Haible  <bruno@clisp.org>
10033
10034         havelib: Fix comments.
10035         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
10036         change.
10037
10038 2011-02-17  Bruno Haible  <bruno@clisp.org>
10039
10040         havelib: Update config.rpath.
10041         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
10042
10043 2011-02-17  Bruno Haible  <bruno@clisp.org>
10044
10045         getloadavg test: Add some plausibility checks.
10046         * tests/test-getloadavg.c (check_avg): Print a warning when the value
10047         is improbable.
10048
10049 2011-02-16  Eric Blake  <eblake@redhat.com>
10050
10051         maintainer-makefile: make syntax-check a no-op from tarballs
10052         * top/maint.mk (no-vc-detected): New rule.
10053         (local-checks-available): Use it to avoid hanging if someone tries
10054         'make syntax-check' from a tarball.  Also append to any non-syntax
10055         checks already defined in cfg.mk.
10056
10057 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
10058
10059         longlong: tune, particularly for common case of c99
10060
10061         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
10062         or running anything if c99, or if unsigned long long int does not
10063         work.  In either case, we know the answer without further tests.
10064         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
10065         it at most once, and use its results for both long long int and
10066         unsigned long long int.  This is more likely to be efficient in
10067         the common case where the program wants to check for both long
10068         long int and unsigned long long int.
10069         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
10070         since the answer is already known.
10071
10072 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
10073
10074         getloadavg: set errno
10075         * lib/getloadavg.c: Set errno when returning -1.  If no other
10076         error number looks appropriate, set it to ENOSYS if the getloadavg
10077         looks like it can't possibly ever work, ENOTSUP otherwise.
10078         Suggested by Bruno Haible in
10079         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
10080
10081         getloadavg: trim unused parts and speed up 'configure'
10082         * NEWS: Document this.
10083         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
10084         always compiled if getloadavg is absent.
10085         Move test code to ...
10086         * tests/test-getloadavg.c: New file, containing previous
10087         contents of test from lib/getloadavg.c.  It also contains
10088         suggestions by Bruno Haible in
10089         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
10090         * modules/getloadavg-tests: New file.
10091         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
10092         Do tests in the same order as they're needed for getloadavg.c.
10093         Omit setgid-related tests that generate symbols KMEM_GROUP,
10094         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
10095         Do only the tests that are needed to see whether the system has
10096         getloadavg, moving the other tests into ...
10097         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
10098         NLIST_NAME_UNION; nobody should be using it.  Do not define
10099         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
10100         relevant, as the user of this module shouldn't care how getloadavg
10101         is implemented.
10102
10103         getloadavg: omit unused var
10104         * lib/getloadavg.c (getloadavg): Omit unused local variable.
10105
10106 2011-02-15  Jim Meyering  <meyering@redhat.com>
10107
10108         doc: update users.txt
10109         * users.txt: Update iwhd's URL.
10110
10111 2011-02-13  Bruno Haible  <bruno@clisp.org>
10112
10113         Consistent macro naming for macros that use GCC __attribute__.
10114         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
10115         _ATTRIBUTE_NONNULL_.
10116         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
10117         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
10118         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
10119         ATTRIBUTE_DEPRECATED.
10120         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
10121         ATTRIBUTE_NORETURN.
10122         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
10123         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
10124         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
10125         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
10126         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
10127         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
10128         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
10129         ATTRIBUTE_SENTINEL.
10130         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
10131         ATTRIBUTE_RETURN_CHECK.
10132         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
10133         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
10134         ATTRIBUTE_NORETURN.
10135         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
10136         Reported by Paul Eggert.
10137
10138 2011-02-13  Bruno Haible  <bruno@clisp.org>
10139
10140         Don't interfere with a program's definition of __attribute__.
10141         * lib/argp.h (__attribute__): Remove definition.
10142         (_GL_ATTRIBUTE_FORMAT): New macro.
10143         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
10144         * lib/argp-fmtstream.h (__attribute__): Remove definition.
10145         (_GL_ATTRIBUTE_FORMAT): New macro.
10146         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
10147         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
10148         GCC 3 or newer.
10149         * lib/error.h (__attribute__): Remove definition.
10150         (_GL_ATTRIBUTE_FORMAT): New macro.
10151         (error, error_at_line): Use it.
10152         * lib/hash.h (__attribute__): Remove definition.
10153         (ATTRIBUTE_WUR): Update definition. Define always.
10154         * lib/openat.h (__attribute__): Remove definition.
10155         (ATTRIBUTE_NORETURN): Update definition. Define always.
10156         * lib/sigpipe-die.h (__attribute__): Remove definition.
10157         (ATTRIBUTE_NORETURN): Update definition. Define always.
10158         * lib/vasnprintf.h (__attribute__): Remove definition.
10159         (_GL_ATTRIBUTE_FORMAT): New macro.
10160         (asnprintf, vasnprintf): Use it.
10161         * lib/xalloc.h (__attribute__): Remove definition.
10162         (ATTRIBUTE_NORETURN): Update definition. Define always.
10163         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
10164         * lib/xmemdup0.h (__attribute__): Remove definition.
10165         (ATTRIBUTE_NORETURN): Update definition. Define always.
10166         * lib/xprintf.h (__attribute__): Remove definition.
10167         (_GL_ATTRIBUTE_FORMAT): New macro.
10168         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
10169         * lib/xstrtol.h (__attribute__): Remove definition.
10170         (ATTRIBUTE_NORETURN): Update definition. Define always.
10171         * lib/xvasprintf.h (__attribute__): Remove definition.
10172         (_GL_ATTRIBUTE_FORMAT): New macro.
10173         (xasprintf, xvasprintf): Use it.
10174         * tests/test-argmatch.c (__attribute__): Remove definition.
10175         (ATTRIBUTE_NORETURN): Update definition. Define always.
10176         * tests/test-exclude.c (__attribute__): Remove definition.
10177         (ATTRIBUTE_NORETURN): Update definition. Define always.
10178         Reported by Paul Eggert.
10179
10180 2011-02-13  Bruno Haible  <bruno@clisp.org>
10181
10182         mbrtowc: Add more tests for native Windows platforms.
10183         * tests/test-mbrtowc-w32-1.sh: New file.
10184         * tests/test-mbrtowc-w32-2.sh: New file.
10185         * tests/test-mbrtowc-w32-3.sh: New file.
10186         * tests/test-mbrtowc-w32-4.sh: New file.
10187         * tests/test-mbrtowc-w32-5.sh: New file.
10188         * tests/test-mbrtowc-w32.c: New file.
10189         * modules/mbrtowc-tests (Files): Add them.
10190         (Makefile.am): Arrange to run these tests.
10191         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
10192         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
10193
10194 2011-02-13  Bruno Haible  <bruno@clisp.org>
10195
10196         mbrtowc: Work around native Windows bug.
10197         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
10198         guess when no suitable locale for testing was found.
10199         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
10200
10201 2011-02-13  Bruno Haible  <bruno@clisp.org>
10202
10203         mbsinit: Work around mingw bug.
10204         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
10205         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
10206         Windows.
10207         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
10208
10209 2011-02-13  Bruno Haible  <bruno@clisp.org>
10210
10211         mbsinit: Don't crash for a NULL argument.
10212         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
10213         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
10214
10215 2011-02-13  Bruno Haible  <bruno@clisp.org>
10216
10217         Don't interfere with a program's definition of __attribute__.
10218         * lib/stdio.in.h (__attribute__): Remove definition.
10219         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
10220         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
10221         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
10222         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
10223         * lib/string.in.h (__attribute__): Remove definition.
10224         Reported by Paul Eggert.
10225
10226 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
10227
10228         stdlib: don't get in the way of non-GCC __attribute__
10229         See thread starting at
10230         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
10231         Revert previous stdlib change, installing the following instead:
10232         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
10233         to get in the way of a non-GCC compiler that supports __attribute__.
10234         (_GL_ATTRIBUTE_RETURN): New macro.
10235         (_Exit): Use it instead of __attribute__.
10236
10237 2011-02-12  Bruno Haible  <bruno@clisp.org>
10238
10239         quotearg test: Avoid test failure on mingw.
10240         * tests/test-quotearg.sh: Convert the locale identifier from native
10241         Windows syntax to Unix syntax.
10242
10243 2011-02-12  Bruno Haible  <bruno@clisp.org>
10244
10245         setlocale: Prefer gnulib's override over libintl's override.
10246         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
10247         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
10248         GNULIB_defined_setlocale is set.
10249
10250 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
10251
10252         stdlib: support non-GCC __attribute__
10253
10254         Fix a serious and tricky problem encountered when attempting to
10255         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
10256         5.5, but it crashed due to memory corruption on Solaris 10 with
10257         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
10258         bits that are otherwise zero.  This tagging is optional inside
10259         Emacs but is preferred and is used when __attribute__ ((__aligned
10260         (8))) works, as it does with both recent-enough GCC and with Sun C
10261         5.11.  However, Sun C 5.11 is not GCC and does not #define
10262         __GNUC__ and __GNUC_MINOR__.
10263
10264         When I added the getloadavg module to Emacs, it brought in
10265         stdlib.in.h, which contained this fragment:
10266
10267            #ifndef __attribute__
10268            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
10269            #  define __attribute__(Spec)   /* empty */
10270            # endif
10271            #endif
10272
10273         When files that include <stdlib.h> were compiled with Sun C 5.11,
10274         the above code disabled __attribute__ ((__aligned (8))), which
10275         caused variables to not be properly aligned, which eventually led
10276         to the pointer corruption mentioned above.  (This was a bit hard
10277         to diagnose, unfortunately.)
10278
10279         Several "#define __attribute__(X) /* empty */" code snippets need
10280         to be eradicated from Gnulib to work with non-GCC compilers that
10281         support __attribute__.  The Autoconf way to do this is to test for
10282         each kind of attribute that we want support for, and selectively
10283         enable that in source code.
10284
10285         Fix this problem just for stdlib.h, by adding a test for the
10286         __noreturn__ attribute, and change stdlib.in.h to use that test
10287         when needed.  This technique can be easily generalized to the
10288         other *.in.h files and attributes, and a similar technique can be
10289         used for *.h and *.c files.  This patch is enough to solve the
10290         problem for Emacs + getloadavg, and I thought I'd publish it for
10291         feedback before undertaking further, similar fixes in other
10292         modules.
10293
10294         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
10295         because it's not needed for stdlib.h.  It merely substitutes the
10296         value directly into stdlib.h.  We may well need to #define it, or
10297         similar symbols, for other modules, but it's nice to also have an
10298         option to not #define it for applications like Emacs that do not
10299         need it.
10300
10301         * lib/stdlib.in.h (__attribute__): Do not #define.
10302         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
10303         be defined only if the _Exit module is also used.
10304         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
10305         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
10306         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
10307         platforms.
10308         * modules/_Exit (Files): Add m4/attribute.m4.
10309         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
10310         * m4/attribute.m4: New file.
10311
10312 2011-02-12  Bruno Haible  <bruno@clisp.org>
10313
10314         wcsrtombs: Work around bug on native Windows.
10315         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
10316         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
10317         instead of len.
10318         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
10319
10320 2011-02-12  Bruno Haible  <bruno@clisp.org>
10321
10322         mbsrtowcs: Work around bug on native Windows.
10323         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
10324         against mingw bug.
10325         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
10326
10327 2011-02-12  Bruno Haible  <bruno@clisp.org>
10328
10329         Avoid setlocale bugs in tests.
10330         * modules/btowc (Dependencies): Add setlocale.
10331         * modules/c-strcase (Dependencies): Likewise.
10332         * modules/mbmemcasecmp (Dependencies): Likewise.
10333         * modules/mbmemcasecoll (Dependencies): Likewise.
10334         * modules/mbrtowc (Dependencies): Likewise.
10335         * modules/mbscasecmp (Dependencies): Likewise.
10336         * modules/mbscasestr (Dependencies): Likewise.
10337         * modules/mbschr (Dependencies): Likewise.
10338         * modules/mbscspn (Dependencies): Likewise.
10339         * modules/mbsinit (Dependencies): Likewise.
10340         * modules/mbsncasecmp (Dependencies): Likewise.
10341         * modules/mbsnrtowcs (Dependencies): Likewise.
10342         * modules/mbspbrk (Dependencies): Likewise.
10343         * modules/mbspcasecmp (Dependencies): Likewise.
10344         * modules/mbsrchr (Dependencies): Likewise.
10345         * modules/mbsrtowcs (Dependencies): Likewise.
10346         * modules/mbsspn (Dependencies): Likewise.
10347         * modules/mbsstr (Dependencies): Likewise.
10348         * modules/nl_langinfo (Dependencies): Likewise.
10349         * modules/quotearg (Dependencies): Likewise.
10350         * modules/unicase/locale-language (Dependencies): Likewise.
10351         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
10352         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
10353         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
10354         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
10355         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
10356         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
10357         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
10358         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
10359         * modules/vasnprintf-posix (Dependencies): Likewise.
10360         * modules/wcrtomb (Dependencies): Likewise.
10361         * modules/wcsnrtombs (Dependencies): Likewise.
10362         * modules/wcsrtombs (Dependencies): Likewise.
10363
10364 2011-02-12  Bruno Haible  <bruno@clisp.org>
10365
10366         setlocale: Workaround native Windows bug.
10367         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
10368         succeeds but sets LC_CTYPE to "C", report a failure.
10369         * tests/test-setlocale2.sh: New file.
10370         * tests/test-setlocale2.c: New file.
10371         * modules/setlocale-tests (Files): Add the new files.
10372         (Makefile.am): Enable test-setlocale2.sh test.
10373         * doc/posix-functions/setlocale.texi: Mention workaround.
10374
10375 2011-02-11  Bruno Haible  <bruno@clisp.org>
10376
10377         Tests for module 'setlocale'.
10378         * modules/setlocale-tests: New file.
10379         * tests/test-setlocale1.sh: New file.
10380         * tests/test-setlocale1.c: New file.
10381
10382         New module 'setlocale'.
10383         * lib/locale.in.h (setlocale): New declaration.
10384         * lib/setlocale.c: New file, based on
10385         gettext/gettext-runtime/intl/setlocale.c.
10386         * m4/setlocale.m4: New file.
10387         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
10388         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
10389         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
10390         REPLACE_SETLOCALE.
10391         * modules/setlocale: New file.
10392         * tests/test-locale-c++.cc: Test the declaration of setlocale.
10393         * doc/posix-functions/setlocale.texi: Mention the new module.
10394
10395 2011-02-11  Bruno Haible  <bruno@clisp.org>
10396
10397         Prepare for locale dependent tests on mingw.
10398         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
10399         because it has the wrong locale encoding.
10400         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
10401         French_France.1252 instead of "fr".
10402         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
10403         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
10404         because it has the wrong locale encoding.
10405         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
10406         native Windows, try Turkish_Turkey.65001.
10407         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
10408         Chinese_China.54936.
10409
10410         Prepare for locale dependent tests on mingw.
10411         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
10412         differently.
10413         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
10414         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
10415         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
10416         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
10417
10418 2011-02-11  Eric Blake  <eblake@redhat.com>
10419
10420         strptime: avoid compiler warnings
10421         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
10422         compiler warnings about dead code.
10423         Reported by Daniel P. Berrange.
10424
10425 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
10426
10427         doc: update users.txt
10428         * users.txt: Add rcs.
10429
10430 2011-02-10  John W. Eaton  <jwe@gnu.org>
10431
10432         doc: update users.txt
10433         * users.txt: Add octave.
10434
10435 2011-02-10  Jim Meyering  <meyering@redhat.com>
10436
10437         doc: update users.txt
10438         * users.txt: Add iwhd.
10439
10440 2011-02-09  Bruno Haible  <bruno@clisp.org>
10441
10442         gnulib-tool: Make copyright notice adjustment more robust.
10443         * gnulib-tool (func_import): In sed_transform_main_lib_file,
10444         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
10445         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
10446         License".
10447         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
10448
10449 2011-02-06  Bruno Haible  <bruno@clisp.org>
10450
10451         New module 'towctrans'.
10452         * modules/towctrans: New file.
10453         * lib/wctype.in.h (towctrans): New declaration.
10454         * lib/towctrans.c: New file.
10455         * lib/towctrans-impl.h: New file.
10456         * m4/towctrans.m4: New file.
10457         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
10458         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
10459         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
10460         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
10461         * doc/posix-functions/towctrans.texi: Mention the new module.
10462
10463 2011-02-06  Bruno Haible  <bruno@clisp.org>
10464
10465         New module 'wctrans'.
10466         * modules/wctrans: New file.
10467         * lib/wctype.in.h (wctrans): New declaration.
10468         * lib/wctrans.c: New file.
10469         * lib/wctrans-impl.h: New file.
10470         * m4/wctrans.m4: New file.
10471         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
10472         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
10473         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
10474         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
10475         * doc/posix-functions/wctrans.texi: Mention the new module.
10476
10477 2011-02-06  Bruno Haible  <bruno@clisp.org>
10478
10479         New module 'iswctype'.
10480         * modules/iswctype: New file.
10481         * lib/wctype.in.h (iswctype): New declaration.
10482         * lib/iswctype.c: New file.
10483         * lib/iswctype-impl.h: New file.
10484         * m4/iswctype.m4: New file.
10485         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
10486         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
10487         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
10488         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
10489         * doc/posix-functions/iswctype.texi: Mention the new module and the
10490         HP-UX 11.00 problem.
10491
10492 2011-02-06  Bruno Haible  <bruno@clisp.org>
10493
10494         New module 'wctype'.
10495         * modules/wctype: Change to represent the wctype() substitute.
10496         * lib/wctype.in.h (wctype): New declaration.
10497         * lib/wctype.c: New file.
10498         * lib/wctype-impl.h: New file.
10499         * m4/wctype.m4: New file.
10500         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
10501         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
10502         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
10503         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
10504         * doc/posix-functions/wctype.texi: Mention the new module and the
10505         HP-UX 11.00 problem.
10506
10507 2011-02-06  Bruno Haible  <bruno@clisp.org>
10508
10509         wctype-h: Ensure wctype_t and wctrans_t are defined.
10510         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
10511         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
10512         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
10513         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
10514         HAVE_WCTRANS_T.
10515         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
10516
10517 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
10518
10519         flock: fix license typo
10520
10521         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
10522         omitted.
10523
10524 2011-02-08  Bruno Haible  <bruno@clisp.org>
10525
10526         Split large sed scripts, for HP-UX sed.
10527         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
10528         to avoid HP-UX limit of 99 commands, in the near future.
10529         * modules/stdlib (Makefile.am): Likewise.
10530         * modules/unistd (Makefile.am): Likewise.
10531         * modules/wchar (Makefile.am): Likewise.
10532         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
10533         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
10534         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
10535
10536 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
10537             Bruno Haible  <bruno@clisp.org>
10538
10539         stdlib: improve random_r modularization
10540         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
10541         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
10542         you also need the random_r module to get this material right.
10543         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
10544         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
10545         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
10546
10547 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
10548
10549         stdlib: don't depend on stdint
10550         * lib/stdlib.in.h: Don't include <stdint.h> merely because
10551         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
10552         be independent of whether stdint.h is needed.
10553         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
10554         here, instead of ...
10555         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
10556         struct random_data should be using the random_r module, not just
10557         the stdlib module (which wouldn't make sense: what package needs
10558         just struct random_data without also needing random_r?).
10559         * modules/stdlib (Depends-on): Remove stdint.
10560
10561         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
10562         See the thread rooted at
10563         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
10564         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
10565         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
10566         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
10567         __VMS)); previously it was always included (via fcntl--.h).
10568         (getloadavg): Do not use c_strtod.  Instead, approximate it by
10569         hand; this is good enough for load averages.  Also, do not use
10570         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
10571         flags directly if available and don't bother otherwise.  (Packages
10572         that need the extra reliability should use the modules that define
10573         these flags on older platforms that lack them.)
10574         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
10575         fcntl-safer.
10576
10577 2011-02-08  Jim Meyering  <meyering@redhat.com>
10578
10579         di-set.h, ino-map.h: add multiple-inclusion guard
10580         Technically, the guard is required only for ino-map.h, due to its
10581         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
10582         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
10583         * lib/ino-map.h: Likewise.
10584
10585 2011-02-06  Bruno Haible  <bruno@clisp.org>
10586
10587         iswblank: Ensure declaration on glibc systems.
10588         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
10589         * modules/iswblank (Dependencies): Add 'extensions'.
10590         * doc/posix-functions/iswblank.texi: Document the glibc problem.
10591
10592 2011-02-06  Bruno Haible  <bruno@clisp.org>
10593
10594         New module 'iswblank'.
10595         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
10596         * modules/iswblank: New file.
10597         * modules/wctype-h (Files): Remove lib/iswblank.c.
10598         (Makefile.am): Substitute GNULIB_ISWBLANK.
10599         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
10600         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
10601         (gl_WCTYPE_H_DEFAULTS): New macro.
10602         (gl_WCTYPE_H): Require it. Remove iswblank related code.
10603         * modules/iswblank-tests: New file.
10604         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
10605         * tests/test-wctype-h.c (main): Remove iswblank tests.
10606         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
10607         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
10608         of 'wctype-h'.
10609         * NEWS: Mention the change.
10610         * modules/mbchar (Depends-on): Add iswblank.
10611
10612 2011-02-08  Bruno Haible  <bruno@clisp.org>
10613
10614         di-set tests: Refactor.
10615         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
10616         unnecessary includes.
10617         (ASSERT): Remove macro.
10618         (main): Make C90 compliant by avoiding variable declaration after
10619         statement.
10620         * modules/di-set-tests (Files): Add tests/macros.h.
10621
10622 2011-02-08  Bruno Haible  <bruno@clisp.org>
10623
10624         ino-map tests: Refactor.
10625         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
10626         unnecessary includes.
10627         (ASSERT): Remove macro.
10628         (main): Make C90 compliant by avoiding variable declaration after
10629         statement.
10630         * modules/ino-map-tests (Files): Add tests/macros.h.
10631
10632 2011-02-08  Jim Meyering  <meyering@redhat.com>
10633
10634         di-set: add "const" to a cast
10635         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
10636         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
10637
10638 2011-02-06  Bruno Haible  <bruno@clisp.org>
10639
10640         Rename module 'wctype' to 'wctype-h'.
10641         * modules/wctype-h: Renamed from modules/wctype.
10642         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
10643         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
10644         (Files, Depends-on, Makefile.am): Update.
10645         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
10646         (Files, Makefile.am): Update.
10647         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
10648         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
10649         * doc/posix-headers/wctype.texi: Update.
10650         * doc/posix-functions/iswalnum.texi: Update.
10651         * doc/posix-functions/iswalpha.texi: Update.
10652         * doc/posix-functions/iswblank.texi: Update.
10653         * doc/posix-functions/iswcntrl.texi: Update.
10654         * doc/posix-functions/iswdigit.texi: Update.
10655         * doc/posix-functions/iswgraph.texi: Update.
10656         * doc/posix-functions/iswlower.texi: Update.
10657         * doc/posix-functions/iswprint.texi: Update.
10658         * doc/posix-functions/iswpunct.texi: Update.
10659         * doc/posix-functions/iswspace.texi: Update.
10660         * doc/posix-functions/iswupper.texi: Update.
10661         * doc/posix-functions/iswxdigit.texi: Update.
10662         * doc/posix-functions/towlower.texi: Update.
10663         * doc/posix-functions/towupper.texi: Update.
10664         * NEWS: Mention the change.
10665         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
10666         * modules/mbchar (Dependencies): Likewise.
10667         * modules/mbswidth (Dependencies): Likewise.
10668         * modules/quotearg (Dependencies): Likewise.
10669         * modules/regex (Dependencies): Likewise.
10670         * modules/wcscasecmp (Dependencies): Likewise.
10671         * modules/wcsncasecmp (Dependencies): Likewise.
10672         * modules/wcwidth (Dependencies): Likewise.
10673
10674 2011-02-06  Bruno Haible  <bruno@clisp.org>
10675
10676         New module 'wcswidth'.
10677         * modules/wcswidth: New file.
10678         * lib/wchar.in.h (wcswidth): New declaration.
10679         * lib/wcswidth.c: New file.
10680         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
10681         * m4/wcswidth.m4: New file.
10682         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
10683         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
10684         REPLACE_WCSWIDTH.
10685         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
10686         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
10687         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
10688         * doc/posix-functions/wcswidth.texi: Mention the new module.
10689
10690 2011-02-06  Bruno Haible  <bruno@clisp.org>
10691
10692         New module 'wcstok'.
10693         * modules/wcstok: New file.
10694         * lib/wchar.in.h (wcstok): New declaration.
10695         * lib/wcstok.c: New file.
10696         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
10697         * m4/wcstok.m4: New file.
10698         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
10699         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
10700         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
10701         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
10702         * doc/posix-functions/wcstok.texi: Mention the new module.
10703
10704 2011-02-06  Bruno Haible  <bruno@clisp.org>
10705
10706         New module 'wcsstr'.
10707         * modules/wcsstr: New file.
10708         * lib/wchar.in.h (wcsstr): New declaration.
10709         * lib/wcsstr.c: New file.
10710         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
10711         * m4/wcsstr.m4: New file.
10712         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
10713         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
10714         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
10715         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
10716         * doc/posix-functions/wcsstr.texi: Mention the new module.
10717
10718 2011-02-06  Bruno Haible  <bruno@clisp.org>
10719
10720         New module 'wcspbrk'.
10721         * modules/wcspbrk: New file.
10722         * lib/wchar.in.h (wcspbrk): New declaration.
10723         * lib/wcspbrk.c: New file.
10724         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
10725         * m4/wcspbrk.m4: New file.
10726         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
10727         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
10728         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
10729         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
10730         * doc/posix-functions/wcspbrk.texi: Mention the new module.
10731
10732 2011-02-06  Bruno Haible  <bruno@clisp.org>
10733
10734         New module 'wcsspn'.
10735         * modules/wcsspn: New file.
10736         * lib/wchar.in.h (wcsspn): New declaration.
10737         * lib/wcsspn.c: New file.
10738         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
10739         * m4/wcsspn.m4: New file.
10740         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
10741         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
10742         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
10743         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
10744         * doc/posix-functions/wcsspn.texi: Mention the new module.
10745
10746 2011-02-06  Bruno Haible  <bruno@clisp.org>
10747
10748         New module 'wcscspn'.
10749         * modules/wcscspn: New file.
10750         * lib/wchar.in.h (wcscspn): New declaration.
10751         * lib/wcscspn.c: New file.
10752         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
10753         * m4/wcscspn.m4: New file.
10754         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
10755         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
10756         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
10757         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
10758         * doc/posix-functions/wcscspn.texi: Mention the new module.
10759
10760 2011-02-06  Bruno Haible  <bruno@clisp.org>
10761
10762         New module 'wcsrchr'.
10763         * modules/wcsrchr: New file.
10764         * lib/wchar.in.h (wcsrchr): New declaration.
10765         * lib/wcsrchr.c: New file.
10766         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
10767         * m4/wcsrchr.m4: New file.
10768         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
10769         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
10770         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
10771         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
10772         * doc/posix-functions/wcsrchr.texi: Mention the new module.
10773
10774 2011-02-06  Bruno Haible  <bruno@clisp.org>
10775
10776         New module 'wcschr'.
10777         * modules/wcschr: New file.
10778         * lib/wchar.in.h (wcschr): New declaration.
10779         * lib/wcschr.c: New file.
10780         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
10781         * m4/wcschr.m4: New file.
10782         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
10783         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
10784         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
10785         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
10786         * doc/posix-functions/wcschr.texi: Mention the new module.
10787
10788 2011-02-06  Bruno Haible  <bruno@clisp.org>
10789
10790         New module 'wcsdup'.
10791         * modules/wcsdup: New file.
10792         * lib/wchar.in.h (wcsdup): New declaration.
10793         * lib/wcsdup.c: New file.
10794         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
10795         * m4/wcsdup.m4: New file.
10796         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
10797         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
10798         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
10799         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
10800         * doc/posix-functions/wcsdup.texi: Mention the new module.
10801
10802 2011-02-06  Bruno Haible  <bruno@clisp.org>
10803
10804         New module 'wcsxfrm'.
10805         * modules/wcsxfrm: New file.
10806         * lib/wchar.in.h (wcsxfrm): New declaration.
10807         * lib/wcsxfrm.c: New file.
10808         * lib/wcsxfrm-impl.h: New file.
10809         * m4/wcsxfrm.m4: New file.
10810         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
10811         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
10812         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
10813         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
10814         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
10815
10816 2011-02-06  Bruno Haible  <bruno@clisp.org>
10817
10818         New module 'wcscoll'.
10819         * modules/wcscoll: New file.
10820         * lib/wchar.in.h (wcscoll): New declaration.
10821         * lib/wcscoll.c: New file.
10822         * lib/wcscoll-impl.h: New file.
10823         * m4/wcscoll.m4: New file.
10824         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
10825         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
10826         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
10827         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
10828         * doc/posix-functions/wcscoll.texi: Mention the new module.
10829
10830 2011-02-06  Bruno Haible  <bruno@clisp.org>
10831
10832         New module 'wcsncasecmp'.
10833         * modules/wcsncasecmp: New file.
10834         * lib/wchar.in.h (wcsncasecmp): New declaration.
10835         * lib/wcsncasecmp.c: New file.
10836         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
10837         * m4/wcsncasecmp.m4: New file.
10838         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
10839         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
10840         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
10841         HAVE_WCSNCASECMP.
10842         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
10843         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
10844
10845 2011-02-06  Bruno Haible  <bruno@clisp.org>
10846
10847         New module 'wcscasecmp'.
10848         * modules/wcscasecmp: New file.
10849         * lib/wchar.in.h (wcscasecmp): New declaration.
10850         * lib/wcscasecmp.c: New file.
10851         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
10852         * m4/wcscasecmp.m4: New file.
10853         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
10854         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
10855         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
10856         HAVE_WCSCASECMP.
10857         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
10858         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
10859
10860 2011-02-05  Bruno Haible  <bruno@clisp.org>
10861
10862         New module 'wcsncmp'.
10863         * modules/wcsncmp: New file.
10864         * lib/wchar.in.h (wcsncmp): New declaration.
10865         * lib/wcsncmp.c: New file.
10866         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
10867         * m4/wcsncmp.m4: New file.
10868         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
10869         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
10870         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
10871         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
10872         * doc/posix-functions/wcsncmp.texi: Mention the new module.
10873
10874 2011-02-05  Bruno Haible  <bruno@clisp.org>
10875
10876         New module 'wcscmp'.
10877         * modules/wcscmp: New file.
10878         * lib/wchar.in.h (wcscmp): New declaration.
10879         * lib/wcscmp.c: New file.
10880         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
10881         * m4/wcscmp.m4: New file.
10882         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
10883         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
10884         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
10885         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
10886         * doc/posix-functions/wcscmp.texi: Mention the new module.
10887
10888 2011-02-05  Bruno Haible  <bruno@clisp.org>
10889
10890         New module 'wcsncat'.
10891         * modules/wcsncat: New file.
10892         * lib/wchar.in.h (wcsncat): New declaration.
10893         * lib/wcsncat.c: New file.
10894         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
10895         * m4/wcsncat.m4: New file.
10896         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
10897         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
10898         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
10899         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
10900         * doc/posix-functions/wcsncat.texi: Mention the new module.
10901
10902 2011-02-05  Bruno Haible  <bruno@clisp.org>
10903
10904         New module 'wcscat'.
10905         * modules/wcscat: New file.
10906         * lib/wchar.in.h (wcscat): New declaration.
10907         * lib/wcscat.c: New file.
10908         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
10909         * m4/wcscat.m4: New file.
10910         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
10911         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
10912         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
10913         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
10914         * doc/posix-functions/wcscat.texi: Mention the new module.
10915
10916 2011-02-05  Bruno Haible  <bruno@clisp.org>
10917
10918         New module 'wcpncpy'.
10919         * modules/wcpncpy: New file.
10920         * lib/wchar.in.h (wcpncpy): New declaration.
10921         * lib/wcpncpy.c: New file.
10922         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
10923         * m4/wcpncpy.m4: New file.
10924         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
10925         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
10926         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
10927         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
10928         * doc/posix-functions/wcpncpy.texi: Mention the new module.
10929
10930 2011-02-05  Bruno Haible  <bruno@clisp.org>
10931
10932         New module 'wcsncpy'.
10933         * modules/wcsncpy: New file.
10934         * lib/wchar.in.h (wcsncpy): New declaration.
10935         * lib/wcsncpy.c: New file.
10936         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
10937         * m4/wcsncpy.m4: New file.
10938         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
10939         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
10940         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
10941         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
10942         * doc/posix-functions/wcsncpy.texi: Mention the new module.
10943
10944 2011-02-05  Bruno Haible  <bruno@clisp.org>
10945
10946         New module 'wcpcpy'.
10947         * modules/wcpcpy: New file.
10948         * lib/wchar.in.h (wcpcpy): New declaration.
10949         * lib/wcpcpy.c: New file.
10950         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
10951         * m4/wcpcpy.m4: New file.
10952         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
10953         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
10954         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
10955         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
10956         * doc/posix-functions/wcpcpy.texi: Mention the new module.
10957
10958 2011-02-05  Bruno Haible  <bruno@clisp.org>
10959
10960         New module 'wcscpy'.
10961         * modules/wcscpy: New file.
10962         * lib/wchar.in.h (wcscpy): New declaration.
10963         * lib/wcscpy.c: New file.
10964         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
10965         * m4/wcscpy.m4: New file.
10966         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
10967         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
10968         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
10969         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
10970         * doc/posix-functions/wcscpy.texi: Mention the new module.
10971
10972 2011-02-05  Bruno Haible  <bruno@clisp.org>
10973
10974         New module 'wcsnlen'.
10975         * modules/wcsnlen: New file.
10976         * lib/wchar.in.h (wcsnlen): New declaration.
10977         * lib/wcsnlen.c: New file.
10978         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
10979         * m4/wcsnlen.m4: New file.
10980         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
10981         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
10982         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
10983         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
10984         * doc/posix-functions/wcsnlen.texi: Mention the new module.
10985
10986 2011-02-05  Bruno Haible  <bruno@clisp.org>
10987
10988         New module 'wcslen'.
10989         * modules/wcslen: New file.
10990         * lib/wchar.in.h (wcslen): New declaration.
10991         * lib/wcslen.c: New file.
10992         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
10993         * m4/wcslen.m4: New file.
10994         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
10995         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
10996         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
10997         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
10998         * doc/posix-functions/wcslen.texi: Mention the new module.
10999
11000 2011-02-05  Bruno Haible  <bruno@clisp.org>
11001
11002         New module 'wmemset'.
11003         * modules/wmemset: New file.
11004         * lib/wchar.in.h (wmemset): New declaration.
11005         * lib/wmemset.c: New file.
11006         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
11007         * m4/wmemset.m4: New file.
11008         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
11009         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
11010         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
11011         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
11012         * doc/posix-functions/wmemset.texi: Mention the new module.
11013
11014 2011-02-05  Bruno Haible  <bruno@clisp.org>
11015
11016         New module 'wmemmove'.
11017         * modules/wmemmove: New file.
11018         * lib/wchar.in.h (wmemmove): New declaration.
11019         * lib/wmemmove.c: New file.
11020         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
11021         * m4/wmemmove.m4: New file.
11022         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
11023         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
11024         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
11025         HAVE_WMEMMOVE.
11026         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
11027         * doc/posix-functions/wmemmove.texi: Mention the new module.
11028
11029 2011-02-05  Bruno Haible  <bruno@clisp.org>
11030
11031         New module 'wmemcpy'.
11032         * modules/wmemcpy: New file.
11033         * lib/wchar.in.h (wmemcpy): New declaration.
11034         * lib/wmemcpy.c: New file.
11035         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
11036         * m4/wmemcpy.m4: New file.
11037         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
11038         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
11039         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
11040         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
11041         * doc/posix-functions/wmemcpy.texi: Mention the new module.
11042
11043 2011-02-05  Bruno Haible  <bruno@clisp.org>
11044
11045         New module 'wmemcmp'.
11046         * modules/wmemcmp: New file.
11047         * lib/wchar.in.h (wmemcmp): New declaration.
11048         * lib/wmemcmp.c: New file.
11049         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
11050         * m4/wmemcmp.m4: New file.
11051         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
11052         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
11053         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
11054         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
11055         * doc/posix-functions/wmemcmp.texi: Mention the new module.
11056
11057 2011-02-07  Jim Meyering  <meyering@redhat.com>
11058
11059         di-set, ino-map: new modules, from coreutils
11060         * lib/di-set.c: New file.
11061         * lib/di-set.h: Likewise.
11062         * lib/ino-map.c: Likewise.
11063         * lib/ino-map.h: Likewise.
11064         * modules/di-set: Likewise.
11065         * modules/di-set-tests: Likewise.
11066         * modules/ino-map: Likewise.
11067         * modules/ino-map-tests: Likewise.
11068         * tests/test-di-set.c: Likewise.
11069         * tests/test-ino-map.c: Likewise.
11070
11071 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
11072
11073         getloadavg: merge minor changes from Emacs
11074
11075         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
11076         (getloadavg): Use memset, not bzero.
11077
11078         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
11079         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
11080         clash (bug#86).
11081
11082 2010-11-14  Bruno Haible  <bruno@clisp.org>
11083
11084         Allow multiple gnulib generated replacements to coexist.
11085         * lib/getopt.in.h (struct option): Avoid identical redefinition.
11086         * lib/inttypes.in.h (imaxdiv_t): Likewise.
11087         * lib/langinfo.in.h (nl_item): Likewise.
11088         * lib/math.in.h (_NaN, NAN): Likewise.
11089         * lib/netdb.in.h (struct addrinfo): Likewise.
11090         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
11091         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
11092         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
11093         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
11094         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
11095         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
11096         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
11097         pthread_mutexattr_init, pthread_mutexattr_settype,
11098         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
11099         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
11100         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
11101         pthread_spin_trylock, pthread_spin_unlock): Likewise.
11102         * lib/sched.in.h (struct sched_param): Likewise.
11103         * lib/se-selinux.in.h (security_class_t, security_context_t,
11104         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
11105         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
11106         lsetfilecon, fsetfilecon, security_check_context,
11107         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
11108         Likewise.
11109         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
11110         Likewise.
11111         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
11112         _gl_function_taking_int_returning_void_t, union sigval,
11113         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
11114         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
11115         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
11116         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
11117         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
11118         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
11119         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
11120         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
11121         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
11122         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
11123         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
11124         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
11125         socklen_t, rpl_fd_isset): Likewise.
11126         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
11127         * lib/sys_time.in.h (struct timeval): Likewise.
11128         * lib/sys_times.in.h (struct tms): Likewise.
11129         * lib/sys_utsname.in.h (struct utsname):
11130         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
11131         * lib/unistd.in.h (getpagesize): Likewise.
11132         * lib/wchar.in.h (mbstate_t): Likewise.
11133         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
11134         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
11135         towlower, towupper): Likewise.
11136         Reported by Sam Steingold <sds@gnu.org>.
11137
11138 2011-02-05  Eric Blake  <eblake@redhat.com>
11139
11140         unsetenv: work around Haiku issues
11141         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
11142         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
11143
11144 2010-12-30  Bruce Korb  <bkorb@gnu.org>
11145
11146         libposix: avoid calling error() within libposix
11147         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
11148         is defined.
11149
11150 2011-02-05  Eric Blake  <eblake@redhat.com>
11151
11152         strerror_r-posix: port to cygwin
11153         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
11154         implementation.
11155         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
11156         * tests/test-strerror_r.c (main): Fix test.
11157         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
11158         issue.
11159
11160 2011-02-05  Bruno Haible  <bruno@clisp.org>
11161
11162         New module 'wmemchr'.
11163         * modules/wmemchr: New file.
11164         * lib/wchar.in.h (wmemchr): New declaration.
11165         * lib/wmemchr.c: New file.
11166         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
11167         * m4/wmemchr.m4: New file.
11168         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
11169         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
11170         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
11171         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
11172         * doc/posix-functions/wmemchr.texi: Mention the new module.
11173
11174 2011-02-04  Eric Blake  <eblake@redhat.com>
11175
11176         fdopendir: detect FreeBSD bug
11177         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
11178         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
11179
11180 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
11181
11182         stdbool: do not define HAVE_STDBOOL_H
11183         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
11184         AC_HEADER_STDBOOL.  All uses changed.  Do not define
11185         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
11186         imported from the latest Autoconf git.  It was motivated by Emacs,
11187         which uses gnulib but does not need HAVE_STDBOOL_H.
11188
11189 2011-02-04  Bruno Haible  <bruno@clisp.org>
11190
11191         wcsnrtombs: Prepare for new module wwcsnrtombs.
11192         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
11193         * lib/wcsnrtombs.c: Include it.
11194         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
11195
11196         wcsrtombs: Prepare for new module wwcsrtombs.
11197         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
11198         * lib/wcsrtombs.c: Include it.
11199         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
11200
11201         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
11202         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
11203         * lib/mbsnrtowcs.c: Include it.
11204         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
11205
11206         mbsrtowcs: Prepare for new module mbsrtowwcs.
11207         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
11208         * lib/mbsrtowcs.c: Include it.
11209         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
11210
11211 2011-02-04  Bruno Haible  <bruno@clisp.org>
11212
11213         vasnprintf: Reduce use of malloc for small format strings.
11214         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
11215         (arguments): Add room for the first 7 arguments.
11216         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
11217         (char_directives, u8_directives, u16_directives, u32_directives): Add
11218         room for the first 7 directives.
11219         * lib/printf-parse.c: Include <string.h>.
11220         (PRINTF_PARSE): Change memory handling code so that it uses the first
11221         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
11222         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
11223         Reported by Pádraig Brady <P@draigbrady.com>.
11224
11225 2011-01-31  Eric Blake  <eblake@redhat.com>
11226
11227         dup2: work around Haiku bug
11228         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
11229         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
11230         * doc/posix-functions/dup2.texi (dup2): Document the bug.
11231         * tests/test-dup2.c (main): Enhance test.
11232
11233 2011-01-31  Simon Josefsson  <simon@josefsson.org>
11234
11235         doc: off_t is not available in eglibc 2.11.2 stdio.h.
11236         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
11237         declared by eglibc 2.11.2.
11238         * lib/stdio.in.h: Likewise.
11239
11240 2011-01-31  Eric Blake  <eblake@redhat.com>
11241
11242         ignore-value: add missing test dependency
11243         * tests/test-ignore-value.c: Revert previous change; stdio.h
11244         provides off_t.
11245         * modules/ignore-value-tests (Depends-on): Add missing dependency.
11246
11247 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
11248
11249         mktime: clarify long_int width checking
11250         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
11251         the top level, to make it clearer that the assumption about
11252         long_int width is being checked.  See
11253         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
11254
11255 2011-01-30  Simon Josefsson  <simon@josefsson.org>
11256
11257         ignore-value: Fix self-test.
11258         * tests/test-ignore-value.c: Include sys/types.h for off_t.
11259
11260 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
11261
11262         TYPE_MAXIMUM: avoid theoretically undefined behavior
11263         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
11264         negative number, which the C Standard says has undefined behavior.
11265         In practice this is not a problem, but might as well do it by the book.
11266         Reported by Rich Felker and Eric Blake; see
11267         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
11268         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
11269         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
11270         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
11271         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
11272         * m4/stdint.m4 (gl_STDINT_H): Likewise.
11273         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
11274
11275         mktime: #undef mktime before #defining it
11276         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
11277
11278         mktime: systematically normalize tm_isdst comparisons
11279         * lib/mktime.c (isdst_differ): New function.
11280         (__mktime_internal): Use it systematically for all isdst comparisons.
11281         This completes the fix for libc BZ #6723, and removes the need for
11282         normalizing tm_isdst.  See
11283         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
11284         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
11285
11286         mktime: fix some integer overflow issues and sidestep the rest
11287
11288         This was prompted by a bug report by Benjamin Lindner for MinGW
11289         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
11290         His bug is due to signed integer overflow (0 - INT_MIN), and I
11291         I scanned through mktime.c looking for other integer overflow
11292         problems, fixing all the bugs I found.
11293
11294         Although the C Standard says the resulting code is still not safe
11295         in the presence of integer overflow, in practice it should be good
11296         enough for all real-world two's-complement implementations, except
11297         for debugging environments that deliberately trap on integer
11298         overflow (e.g., gcc -ftrapv).
11299
11300         * lib/mktime.c (WRAPV): New macro.
11301         (SHR): Also check that long_int and time_t shift right in the
11302         usual way, before using the fast-but-unportable method.
11303         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
11304         used.  The code already assumed two's complement, so there's
11305         no need to test for alternatives.  All uses removed.
11306         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
11307         the C standard.  Problem reported by Rich Felker in
11308         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
11309         (twos_complement_arithmetic): Also check long_int and time_t.
11310         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
11311         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
11312         (__mktime_internal): Avoid integer overflow with unary subtraction
11313         in two instances where -1 - X is an adequate replacement for -X,
11314         since the calculations are approximate.
11315
11316 2011-01-29  Eric Blake  <eblake@redhat.com>
11317
11318         mktime: avoid infinite loop
11319         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
11320         type; behavior is still undefined but portable to all known targets.
11321         Reported by Rich Felker.
11322
11323 2011-01-29  Simon Josefsson  <simon@josefsson.org>
11324
11325         rename, unlink, same-inode: Relicense.
11326         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
11327         * modules/unlink (License): Likewise.
11328         * modules/same-inode (License): Likewise.
11329
11330 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
11331
11332         mktime: avoid problems on NetBSD 5 / i386
11333         * lib/mktime.c (long_int): New type.  This works around a problem
11334         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
11335         but time_t is 64 bits, and where I expect the existing code is
11336         wrong in some cases.
11337         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
11338         (ydhms_diff): Bring back the compile-time check for wide-enough
11339         year and yday.
11340
11341         mktime: fix misspelling in comment
11342         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
11343         This merges all recent glibc changes of importance.
11344
11345 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11346
11347         move-if-change: cope with concurrent mv of identical file.
11348         * build-aux/move-if-change (CMPPROG): Accept environment
11349         variable as an override for `cmp'.
11350         (usage): Document CMPPROG.
11351         Adjust comparison to drop stdout.  Cope with failure of mv if
11352         the target file exists and is identical to the source, for
11353         parallel builds.
11354         Report from H.J. Lu against binutils in PR binutils/12283.
11355
11356 2011-01-28  Bruce Korb  <bkorb@gnu.org>
11357
11358         * users.txt: Mention sharutils.
11359
11360 2011-01-28  Simon Josefsson  <simon@josefsson.org>
11361
11362         * users.txt: Mention OATH Toolkit.
11363
11364 2011-01-27  Bruno Haible  <bruno@clisp.org>
11365
11366         Prepare for supporting FreeBSD 10.
11367         * build-aux/config.libpath: Remove handling of freebsd1*.
11368
11369 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
11370
11371         Prepare for supporting FreeBSD 10.
11372         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
11373         match FreeBSD 10.0.
11374
11375 2011-01-27  Bruno Haible  <bruno@clisp.org>
11376
11377         vma-iter, get-rusage-as: Add OpenBSD support.
11378         * modules/vma-iter (configure.ac): Test for mquery.
11379         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
11380         * lib/vma-iter.c: Include <sys/mman.h>.
11381         (vma_iterate): Add an implementation based on mquery().
11382         * lib/resource-ext.h (get_rusage_as): Update comments.
11383         * lib/get-rusage-as.c: Likewise.
11384         * lib/get-rusage-data.c: Likewise.
11385
11386 2011-01-26  Karl Berry  <karl@gnu.org>
11387
11388         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
11389         variables to make it easier to override the makeinfo program used.
11390
11391 2011-01-26  Eric Blake  <eblake@redhat.com>
11392
11393         fcntl: work around Haiku F_DUPFD bugs
11394         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
11395         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
11396         cloexec bit on duplication.
11397         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
11398
11399 2011-01-26  Bruno Haible  <bruno@clisp.org>
11400
11401         Enable memory leak tests on AIX.
11402         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
11403         * tests/test-fprintf-posix3.c (main): Likewise.
11404
11405 2011-01-26  Bruno Haible  <bruno@clisp.org>
11406
11407         Tests for module 'get-rusage-data'.
11408         * modules/get-rusage-data-tests: New file.
11409         * tests/test-get-rusage-data.c: New file.
11410
11411         New module 'get-rusage-data'.
11412         * lib/resource-ext.h (get_rusage_data): New declaration.
11413         * lib/get-rusage-data.c: New file.
11414         * modules/get-rusage-data: New file.
11415
11416 2011-01-25  Bruno Haible  <bruno@clisp.org>
11417
11418         get-rusage-as: Allow for easier testing.
11419         * lib/resource-ext.h (get_rusage_as): Add comment.
11420         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
11421         (main): New function for interactive testing.
11422
11423 2011-01-25  Bruno Haible  <bruno@clisp.org>
11424
11425         vma-iter: Treat Haiku like BeOS.
11426         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
11427         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
11428
11429 2011-01-25  Eric Blake  <eblake@redhat.com>
11430
11431         c-stack: fix regression on cygwin when libsigsegv is present
11432         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
11433
11434 2011-01-24  Bruno Haible  <bruno@clisp.org>
11435
11436         vma-iter: Avoid empty intervals.
11437         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
11438         on an empty interval.
11439
11440 2011-01-24  Jim Meyering  <meyering@redhat.com>
11441
11442         u64: remove unnecessary #include
11443         * lib/u64.h: Don't include <stddef.h>.  It was not used.
11444
11445 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
11446
11447         Allow the user to avoid the HAVE_RAW_DECL_* macros.
11448         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
11449
11450 2011-01-23  Bruno Haible  <bruno@clisp.org>
11451
11452         New module 'vma-iter'.
11453         * lib/vma-iter.h: New file.
11454         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
11455         * modules/vma-iter: New file.
11456         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
11457         for get_rusage_as_via_iterator.
11458         (vma_iterate_callback): New function.
11459         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
11460         * modules/get-rusage-as (Depends-on): Add vma-iter.
11461
11462 2011-01-23  Bruno Haible  <bruno@clisp.org>
11463
11464         uninorm: Tweak includes.
11465         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
11466         Reported by Jim Meyering.
11467
11468 2011-01-23  Bruno Haible  <bruno@clisp.org>
11469
11470         get-rusage-as: Improve on NetBSD.
11471         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
11472         /proc, like on FreeBSD.
11473
11474 2011-01-23  Jim Meyering  <meyering@redhat.com>
11475
11476         xreadlink.h: remove unnecessary #include
11477         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
11478
11479         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
11480         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
11481
11482 2011-01-23  Bruno Haible  <bruno@clisp.org>
11483
11484         get-rusage-as: Fix bug.
11485         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
11486         original limit when aborting the first loop.
11487
11488 2011-01-23  Bruno Haible  <bruno@clisp.org>
11489
11490         wctype: Ensure valid C syntax.
11491         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
11492         unconditionally, instead of gl_NEXT_HEADERS conditionally.
11493
11494 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
11495
11496         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
11497         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
11498         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
11499         as they are needed only for configure's test case.
11500         This removes two unnecessary symbols from config.h.
11501
11502         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
11503         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
11504         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
11505         AC_CHECK_HEADERS_ONCE on a header that we also invoke
11506         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
11507         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
11508         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
11509         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
11510         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
11511         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
11512         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
11513         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
11514         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
11515         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
11516         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
11517         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
11518         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
11519         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
11520
11521 2011-01-21  Eric Blake  <eblake@redhat.com>
11522
11523         maintainer-makefile: work with older git for submodule check
11524         * top/maint.mk (public-submodule-commit): Rewrite to avoid
11525         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
11526         Reported by Matthias Bolte.
11527
11528         bootstrap: minor portability fixes
11529         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
11530         (usage): Omit leading capital and trailing . on help phrases, per
11531         GNU Coding Standards.
11532         (check_versions, top level): Prefix messages with script name.
11533
11534 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
11535
11536         bootstrap: support --no-git option
11537         * build-aux/bootstrap: Add --no-git option, to be used when
11538         --gnulib-srcdir points to the exact desired checkout.
11539
11540 2011-01-21  Eric Blake  <eblake@redhat.com>
11541
11542         strerror_r-posix: work with glibc 2.13
11543         * lib/strerror_r.c (strerror_r): Fix return type.
11544
11545 2011-01-21  Pádraig Brady  <P@draigBrady.com>
11546             Bruno Haible  <bruno@clisp.org>
11547
11548         uN_strstr: New unit tests.
11549         * modules/unistr/u8-strstr-tests: New file.
11550         * modules/unistr/u16-strstr-tests: New file.
11551         * modules/unistr/u32-strstr-tests: New file.
11552         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
11553         * tests/unistr/test-u8-strstr.c: New file.
11554         * tests/unistr/test-u16-strstr.c: New file.
11555         * tests/unistr/test-u32-strstr.c: New file.
11556
11557 2011-01-21  Pádraig Brady  <P@draigBrady.com>
11558             Bruno Haible  <bruno@clisp.org>
11559
11560         Make uN_strstr functions O(n) worst-case.
11561         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
11562         16-bit and 32-bit unit cases, use the unibyte algorithm from
11563         lib/mbsstr.c.
11564         * lib/unistr/u8-strstr.c: Include <string.h>.
11565         (UNIT_IS_UINT8_T): New macro.
11566         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
11567         (U_STRLEN, U_STRNLEN): New macros.
11568         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
11569         (U_STRLEN, U_STRNLEN): New macros.
11570         * modules/unistr/u8-strstr (Depends-on): Add strstr.
11571         (configure.ac): Update required libunistring version.
11572         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
11573         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
11574         malloca.
11575         (configure.ac): Update required libunistring version.
11576         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
11577         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
11578         malloca.
11579         (configure.ac): Update required libunistring version.
11580
11581 2011-01-21  Pádraig Brady  <P@draigBrady.com>
11582             Bruno Haible  <bruno@clisp.org>
11583
11584         Prepare for faster uN_strstr functions.
11585         * lib/str-kmp.h: Support definable UNITs.
11586         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
11587         needle_len argument.
11588         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
11589         * lib/mbscasestr.c (mbscasestr): Likewise.
11590
11591 2011-01-21  Pádraig Brady <P@draigBrady.com>
11592
11593         malloca-tests: make faster by unsetting MALLOC_PERTURB_
11594         * tests/test-malloca.c (main): Unset the environment variable
11595         to greatly speed up the test.
11596         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
11597         * modules/malloca-tests: Depend on unsetenv.
11598
11599 2011-01-21  Pádraig Brady <P@draigBrady.com>
11600
11601         ignore-value: remove stdint dependency
11602         * lib/ignore-value.h: Remove <stdint.h>
11603         * modules/ignore-value: Remove stdint dependency.
11604
11605 2011-01-21  Jim Meyering  <meyering@redhat.com>
11606
11607         maint.mk: adjust variable name to be consistent with other gl_ vars
11608         * top/maint.mk (gl_public_submodule_commit): Rename the variable
11609         to be lower case.
11610
11611 2011-01-20  Jim Meyering  <meyering@redhat.com>
11612
11613         maint.mk: make "check" depend on public-submodule-commit by default
11614         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
11615
11616 2011-01-20  Bruno Haible  <bruno@clisp.org>
11617
11618         mbfile, mbiter: Complete change from 2008-12-21.
11619         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
11620         * m4/mbiter.m4 (gl_MBITER): Likewise.
11621
11622 2011-01-20  Jim Meyering  <meyering@redhat.com>
11623
11624         init.sh: insert space between each function name and "()"
11625         * tests/init.sh: Make it a little easier to see that a function's
11626         name is "warn_", and not "warn" when looking at the first part of
11627         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
11628
11629 2011-01-20  Jim Meyering  <meyering@redhat.com>
11630
11631         mountlist: clean up code formatting
11632         * lib/mountlist.c (read_file_system_list): Split a long line,
11633         correct bracing style, use NULL in place of "(struct statfs *)0",
11634         don't parenthesize return value, add spaces around "=" and after
11635         ";-in-for-stmt".
11636
11637 2011-01-14  Markus Duft <mduft@gentoo.org>
11638
11639         mountlist: add support for Interix
11640         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
11641         Apply statvfs to all entries of /dev/fs.
11642         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
11643         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
11644
11645 2011-01-20  Jim Meyering  <meyering@redhat.com>
11646
11647         maint.mk: improve the public-submodule-commit rule
11648         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
11649         to suppress printing of its commands... unless V=1.
11650         Add git submodule's --quiet option to suppress printing of e.g.,
11651         "Entering gnulib" output.
11652         "cd" into $(srcdir) before running git submodule.
11653
11654 2011-01-20  Bruno Haible  <bruno@clisp.org>
11655
11656         include_next: Fix bug introduced on 2011-01-18.
11657         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
11658         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
11659         ac_cv_header_... variable if the second argument is not 'check'.
11660         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
11661         gl_NEXT_HEADERS_INTERNAL.
11662
11663 2011-01-20  Bruno Haible  <bruno@clisp.org>
11664
11665         Allow the user to avoid the GNULIB_TEST_* macros.
11666         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
11667         Suggested by Paul Eggert.
11668
11669 2011-01-14  Jim Meyering  <meyering@redhat.com>
11670
11671         bootstrap: avoid failure when there is no .gitmodules file
11672         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
11673         has been assigned to, even when its value is the empty string.
11674         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
11675         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
11676         Reported by John W. Eaton <jwe@gnu.org>.
11677
11678 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
11679
11680         assume <ctype.h>, ..., <time.h> exist
11681         For years gnulib has been assuming the existence of the headers
11682         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
11683         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
11684         them, since they don't appear to be needed.
11685         * README (Portability guidelines): Document this.
11686         * lib/flock.c: Assume <fcntl.h> exists.
11687         * lib/regex_internal.h: Assume <locale.h> exists.
11688         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
11689         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
11690         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
11691         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
11692         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
11693         * m4/regex.m4 (gl_REGEX): Likewise.
11694         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
11695         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
11696         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
11697         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
11698         * tests/test-argp.c: Likewise.
11699         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
11700
11701         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
11702         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
11703         AA_APPLE_UNIVERSAL_BUILD.  See
11704         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
11705         * NEWS: Document this.
11706
11707 2011-01-19  Eric Blake  <eblake@redhat.com>
11708
11709         c-stack: assume stack overflow if SA_SIGINFO unsupported
11710         * lib/c-stack.c (SIGACTION_WORKS): Rename...
11711         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
11712         sigaction will work.
11713         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
11714         behavior match Linux.
11715         * tests/test-c-stack.c (main): Prefer NULL for pointers.
11716
11717         stdbool-tests: accomodate Haiku
11718         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
11719
11720         binary-io: fix O_TEXT on Haiku
11721         * modules/binary-io (Depends-on): Add fcntl-h.
11722         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
11723         than blindly undefining O_TEXT.
11724         Reported by Scott McCreary.
11725
11726 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
11727
11728         include_next: do not check for standard headers like stddef.h
11729
11730         I found this problem when modifying Emacs to use gnulib.
11731         I noticed that it added HAVE_STDDEF_H to config.h, even though
11732         gnulib always assumes <stddef.h> exists as per README and this
11733         symbol is unnecessary.
11734         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
11735         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
11736         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
11737         faster for headers like stddef.h that are known to exist.
11738         (gl_CHECK_NEXT_HEADERS): Use it.
11739         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
11740         rather than gl_CHECK_NEXT_HEADERS.
11741         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
11742         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
11743
11744 2011-01-18  Eric Blake  <eblake@redhat.com>
11745
11746         ansi-c++-opt: skip C++ dependency style if C++ is unused
11747         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
11748         tests when we know C++ compilation is not desired.
11749         Reported by Scott McCreary.
11750
11751 2011-01-18  Bruno Haible  <bruno@clisp.org>
11752
11753         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
11754         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
11755         (main): Perform test also when getrlimit and setrlimit don't exist or
11756         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
11757         limiting the address space size using setrlimit, compare the address
11758         space size before and after the the test.
11759         * tests/test-dprintf-posix2.c: Likewise.
11760         * tests/test-fprintf-posix3.sh: Update skip messages.
11761         * tests/test-dprintf-posix2.sh: Likewise.
11762         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
11763         * modules/dprintf-posix-tests (Depends-on): Likewise.
11764         Reported by Bruce Korb <bkorb@gnu.org> and
11765         Gary V. Vaughan <gary@gnu.org>.
11766
11767 2011-01-18  Bruno Haible  <bruno@clisp.org>
11768
11769         get-rusage-as: Improvement for Cygwin.
11770         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
11771         areas that are merely reserved.
11772
11773 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
11774
11775         strftime: remove dependencies on multibyte modules
11776
11777         strftime depended on mbrlen, mbsinit, and wchar, but these modules
11778         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
11779         only if __osf__ is defined, and I suspect OSF doesn't need these
11780         other modules.  If my guess is wrong, we'll need to come up with a
11781         variant of strftime that doesn't need the multibyte modules.
11782
11783         I discovered this problem when attempting modify Emacs to use the
11784         strftime module.  With the previous gnulib, this caused Emacs to
11785         need 31 new files, ranging from lib/config.charset to
11786         m4/wint_t.m4.  This was overkill and I expect would be offputting
11787         to the Emacs maintainers.  After this change, only 6 new files are
11788         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
11789         stdbool.m4, and tm_gmtoff.m4.
11790
11791         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
11792         Suggested by Bruno Haible in
11793         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
11794         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
11795         and do not check for wchar.h.
11796         * modules/strftime (Files): Remove m4/mbstate_t.m4.
11797         (Depends-on): Remove mbrlen, mbsinit, wchar.
11798
11799 2011-01-18  Bruno Haible  <bruno@clisp.org>
11800
11801         Tests for module 'get-rusage-as'.
11802         * modules/get-rusage-as-tests: New file.
11803         * tests/test-get-rusage-as.c: New file.
11804
11805         New module 'get-rusage-as'.
11806         * modules/get-rusage-as: New file.
11807         * lib/resource-ext.h: New file.
11808         * lib/get-rusage-as.c: New file.
11809
11810 2011-01-17  Eric Blake  <eblake@redhat.com>
11811
11812         sigaction: relax license from LGPLv3+ to LGPLv2+
11813         * modules/sigaction (License): Relax to LGPLv2+.
11814
11815 2011-01-14  Bruno Haible  <bruno@clisp.org>
11816
11817         filemode: Make function declarations usable in C++ mode.
11818         * lib/filemode.h: Enclose function declarations in extern "C" block.
11819         Reported by John W. Eaton <jwe@gnu.org>.
11820
11821 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
11822
11823         save-cwd: no longer include "xgetcwd.h"
11824         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
11825         This avoids a compilation failure in projects that use save-cwd
11826         without also using the xgetcwd module.
11827
11828 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
11829
11830         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
11831         This is so that a program like Emacs, which needs only dtoastr,
11832         does not have to bother with distributing and compiling ftoastr
11833         and ldtoastr.
11834         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
11835         * modules/dtoastr, modules/ldtoastr: New files.
11836         * modules/ftoastr: Now works just for 'float'.
11837         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
11838         (Makefile.am): Remove ftoastr.h (not needed and no effect),
11839         dtoastr.c, ldtoastr.c.
11840
11841 2011-01-11  Jim Meyering  <meyering@redhat.com>
11842
11843         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
11844         There is no need to work around the lack of the fchdir function,
11845         since gnulib can now provide a replacement when required.
11846         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
11847         * modules/save-cwd (Depends-on): Add fchdir.
11848
11849 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
11850
11851         openat, save-cwd: avoid xmalloc
11852
11853         This removes a direct (but undocumented) dependency of openat on
11854         xalloc, along with an indirect dependency via save-cwd.  It also
11855         removes a dependency of save-cwd on xgetcwd, and thereby
11856         indirectly on xalloc.  This change causes the openat substitute
11857         to fall back on save_cwd when memory is tight, and for save_cwd to
11858         fail instead of dying when memory is tight, but that's good enough.
11859         Problem and initial idea for fix reported by Bastien Roucaries in
11860         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
11861
11862         * lib/openat-proc.c: Include stdlib.h (for malloc), not
11863         xalloc.h (for xmalloc).
11864         (openat_proc_name): Use malloc, not xmalloc.
11865         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
11866         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
11867
11868         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
11869         This avoids heap allocation for file names whose lengths are in
11870         the range 512..1023, with the upper bound increasing to at most
11871         4031 depending on the platform's PATH_MAX.  (We do not want
11872         pathmax.h here as it might supply a non-constant PATH_MAX.)
11873         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
11874         Perhaps they should be moved to malloca.h?
11875         (OPENAT_BUFFER_SIZE): Use them.
11876
11877 2011-01-10  Bruno Haible  <bruno@clisp.org>
11878
11879         doc: Update users.txt.
11880         * users.txt: Add recutils.
11881
11882 2011-01-09  Karl Berry  <karl@gnu.org>
11883
11884         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
11885
11886         * doc/configmake.texi: New file.
11887         * doc/gnulib.texi: Include it.
11888         * modules/configmake: Move documentation from here.
11889
11890 2011-01-09  Bruno Haible  <bruno@clisp.org>
11891
11892         Update to Unicode 6.0.0.
11893         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
11894         (get_lbp): Update for Unicode 6.0.0.
11895         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
11896         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
11897         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
11898         U+11001, U+11038..U+11046. Remove U+06DE.
11899         (uc_width): Fix bounds of planes.
11900         * tests/uniwidth/test-uc_width2.sh: Same updates as in
11901         lib/uniwidth/width.c.
11902         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
11903         trailing whitespace removed.
11904         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
11905         without comments, but with the original copyright notice.
11906         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
11907         * lib/unicase/ignorable.h: Likewise.
11908         * lib/unicase/tocasefold.h: Likewise.
11909         * lib/unicase/tolower.h: Likewise.
11910         * lib/unicase/totitle.h: Likewise.
11911         * lib/unicase/toupper.h: Likewise.
11912         * lib/unictype/bidi_of.h: Likewise.
11913         * lib/unictype/blocks.h: Likewise.
11914         * lib/unictype/categ_C.h: Likewise.
11915         * lib/unictype/categ_Cn.h: Likewise.
11916         * lib/unictype/categ_L.h: Likewise.
11917         * lib/unictype/categ_Ll.h: Likewise.
11918         * lib/unictype/categ_Lm.h: Likewise.
11919         * lib/unictype/categ_Lo.h: Likewise.
11920         * lib/unictype/categ_Lu.h: Likewise.
11921         * lib/unictype/categ_M.h: Likewise.
11922         * lib/unictype/categ_Mc.h: Likewise.
11923         * lib/unictype/categ_Me.h: Likewise.
11924         * lib/unictype/categ_Mn.h: Likewise.
11925         * lib/unictype/categ_N.h: Likewise.
11926         * lib/unictype/categ_Nd.h: Likewise.
11927         * lib/unictype/categ_No.h: Likewise.
11928         * lib/unictype/categ_P.h: Likewise.
11929         * lib/unictype/categ_Po.h: Likewise.
11930         * lib/unictype/categ_S.h: Likewise.
11931         * lib/unictype/categ_Sc.h: Likewise.
11932         * lib/unictype/categ_Sk.h: Likewise.
11933         * lib/unictype/categ_Sm.h: Likewise.
11934         * lib/unictype/categ_So.h: Likewise.
11935         * lib/unictype/categ_of.h: Likewise.
11936         * lib/unictype/combining.h: Likewise.
11937         * lib/unictype/ctype_alnum.h: Likewise.
11938         * lib/unictype/ctype_alpha.h: Likewise.
11939         * lib/unictype/ctype_graph.h: Likewise.
11940         * lib/unictype/ctype_lower.h: Likewise.
11941         * lib/unictype/ctype_print.h: Likewise.
11942         * lib/unictype/ctype_punct.h: Likewise.
11943         * lib/unictype/ctype_upper.h: Likewise.
11944         * lib/unictype/decdigit.h: Likewise.
11945         * lib/unictype/digit.h: Likewise.
11946         * lib/unictype/numeric.h: Likewise.
11947         * lib/unictype/pr_alphabetic.h: Likewise.
11948         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
11949         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
11950         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
11951         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
11952         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
11953         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
11954         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
11955         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
11956         * lib/unictype/pr_case_ignorable.h: Likewise.
11957         * lib/unictype/pr_cased.h: Likewise.
11958         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
11959         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
11960         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
11961         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
11962         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
11963         * lib/unictype/pr_combining.h: Likewise.
11964         * lib/unictype/pr_composite.h: Likewise.
11965         * lib/unictype/pr_currency_symbol.h: Likewise.
11966         * lib/unictype/pr_decimal_digit.h: Likewise.
11967         * lib/unictype/pr_deprecated.h: Likewise.
11968         * lib/unictype/pr_format_control.h: Likewise.
11969         * lib/unictype/pr_grapheme_base.h: Likewise.
11970         * lib/unictype/pr_grapheme_extend.h: Likewise.
11971         * lib/unictype/pr_grapheme_link.h: Likewise.
11972         * lib/unictype/pr_id_continue.h: Likewise.
11973         * lib/unictype/pr_id_start.h: Likewise.
11974         * lib/unictype/pr_ideographic.h: Likewise.
11975         * lib/unictype/pr_lowercase.h: Likewise.
11976         * lib/unictype/pr_math.h: Likewise.
11977         * lib/unictype/pr_numeric.h: Likewise.
11978         * lib/unictype/pr_other_alphabetic.h: Likewise.
11979         * lib/unictype/pr_other_id_continue.h: Likewise.
11980         * lib/unictype/pr_other_math.h: Likewise.
11981         * lib/unictype/pr_punctuation.h: Likewise.
11982         * lib/unictype/pr_sentence_terminal.h: Likewise.
11983         * lib/unictype/pr_terminal_punctuation.h: Likewise.
11984         * lib/unictype/pr_unassigned_code_value.h: Likewise.
11985         * lib/unictype/pr_unified_ideograph.h: Likewise.
11986         * lib/unictype/pr_uppercase.h: Likewise.
11987         * lib/unictype/pr_xid_continue.h: Likewise.
11988         * lib/unictype/pr_xid_start.h: Likewise.
11989         * lib/unictype/scripts.h: Likewise.
11990         * lib/unictype/scripts_byname.gperf: Likewise.
11991         * lib/unictype/sy_java_ident.h: Likewise.
11992         * lib/unigbrk/gbrkprop.h: Likewise.
11993         * lib/unilbrk/lbrkprop1.h: Likewise.
11994         * lib/unilbrk/lbrkprop2.h: Likewise.
11995         * lib/uninorm/decomposition-table2.h: Likewise.
11996         * lib/uniwbrk/wbrkprop.h: Likewise.
11997         * tests/unicase/test-cased.c: Likewise.
11998         * tests/unicase/test-ignorable.c: Likewise.
11999         * tests/unicase/test-uc_tolower.c: Likewise.
12000         * tests/unicase/test-uc_totitle.c: Likewise.
12001         * tests/unicase/test-uc_toupper.c: Likewise.
12002         * tests/unictype/test-categ_C.c: Likewise.
12003         * tests/unictype/test-categ_Cn.c: Likewise.
12004         * tests/unictype/test-categ_L.c: Likewise.
12005         * tests/unictype/test-categ_Ll.c: Likewise.
12006         * tests/unictype/test-categ_Lm.c: Likewise.
12007         * tests/unictype/test-categ_Lo.c: Likewise.
12008         * tests/unictype/test-categ_Lu.c: Likewise.
12009         * tests/unictype/test-categ_M.c: Likewise.
12010         * tests/unictype/test-categ_Mc.c: Likewise.
12011         * tests/unictype/test-categ_Me.c: Likewise.
12012         * tests/unictype/test-categ_Mn.c: Likewise.
12013         * tests/unictype/test-categ_N.c: Likewise.
12014         * tests/unictype/test-categ_Nd.c: Likewise.
12015         * tests/unictype/test-categ_No.c: Likewise.
12016         * tests/unictype/test-categ_P.c: Likewise.
12017         * tests/unictype/test-categ_Po.c: Likewise.
12018         * tests/unictype/test-categ_S.c: Likewise.
12019         * tests/unictype/test-categ_Sc.c: Likewise.
12020         * tests/unictype/test-categ_Sk.c: Likewise.
12021         * tests/unictype/test-categ_Sm.c: Likewise.
12022         * tests/unictype/test-categ_So.c: Likewise.
12023         * tests/unictype/test-ctype_alnum.c: Likewise.
12024         * tests/unictype/test-ctype_alpha.c: Likewise.
12025         * tests/unictype/test-ctype_graph.c: Likewise.
12026         * tests/unictype/test-ctype_lower.c: Likewise.
12027         * tests/unictype/test-ctype_print.c: Likewise.
12028         * tests/unictype/test-ctype_punct.c: Likewise.
12029         * tests/unictype/test-ctype_upper.c: Likewise.
12030         * tests/unictype/test-decdigit.h: Likewise.
12031         * tests/unictype/test-digit.h: Likewise.
12032         * tests/unictype/test-numeric.h: Likewise.
12033         * tests/unictype/test-pr_alphabetic.c: Likewise.
12034         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
12035         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
12036         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
12037         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
12038         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
12039         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
12040         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
12041         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
12042         * tests/unictype/test-pr_case_ignorable.c: Likewise.
12043         * tests/unictype/test-pr_cased.c: Likewise.
12044         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
12045         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
12046         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
12047         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
12048         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
12049         * tests/unictype/test-pr_combining.c: Likewise.
12050         * tests/unictype/test-pr_composite.c: Likewise.
12051         * tests/unictype/test-pr_currency_symbol.c: Likewise.
12052         * tests/unictype/test-pr_decimal_digit.c: Likewise.
12053         * tests/unictype/test-pr_deprecated.c: Likewise.
12054         * tests/unictype/test-pr_format_control.c: Likewise.
12055         * tests/unictype/test-pr_grapheme_base.c: Likewise.
12056         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
12057         * tests/unictype/test-pr_grapheme_link.c: Likewise.
12058         * tests/unictype/test-pr_id_continue.c: Likewise.
12059         * tests/unictype/test-pr_id_start.c: Likewise.
12060         * tests/unictype/test-pr_ideographic.c: Likewise.
12061         * tests/unictype/test-pr_lowercase.c: Likewise.
12062         * tests/unictype/test-pr_math.c: Likewise.
12063         * tests/unictype/test-pr_numeric.c: Likewise.
12064         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
12065         * tests/unictype/test-pr_other_id_continue.c: Likewise.
12066         * tests/unictype/test-pr_other_math.c: Likewise.
12067         * tests/unictype/test-pr_punctuation.c: Likewise.
12068         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
12069         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
12070         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
12071         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
12072         * tests/unictype/test-pr_uppercase.c: Likewise.
12073         * tests/unictype/test-pr_xid_continue.c: Likewise.
12074         * tests/unictype/test-pr_xid_start.c: Likewise.
12075         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
12076         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
12077         changes.
12078         * lib/unictype/categ_Cc.h: Likewise.
12079         * lib/unictype/categ_Cf.h: Likewise.
12080         * lib/unictype/categ_Co.h: Likewise.
12081         * lib/unictype/categ_Cs.h: Likewise.
12082         * lib/unictype/categ_Lt.h: Likewise.
12083         * lib/unictype/categ_Nl.h: Likewise.
12084         * lib/unictype/categ_Pc.h: Likewise.
12085         * lib/unictype/categ_Pd.h: Likewise.
12086         * lib/unictype/categ_Pe.h: Likewise.
12087         * lib/unictype/categ_Pf.h: Likewise.
12088         * lib/unictype/categ_Pi.h: Likewise.
12089         * lib/unictype/categ_Ps.h: Likewise.
12090         * lib/unictype/categ_Z.h: Likewise.
12091         * lib/unictype/categ_Zl.h: Likewise.
12092         * lib/unictype/categ_Zp.h: Likewise.
12093         * lib/unictype/categ_Zs.h: Likewise.
12094         * lib/unictype/ctype_blank.h: Likewise.
12095         * lib/unictype/ctype_cntrl.h: Likewise.
12096         * lib/unictype/ctype_digit.h: Likewise.
12097         * lib/unictype/ctype_space.h: Likewise.
12098         * lib/unictype/ctype_xdigit.h: Likewise.
12099         * lib/unictype/mirror.h: Likewise.
12100         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
12101         * lib/unictype/pr_bidi_block_separator.h: Likewise.
12102         * lib/unictype/pr_bidi_common_separator.h: Likewise.
12103         * lib/unictype/pr_bidi_control.h: Likewise.
12104         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
12105         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
12106         * lib/unictype/pr_bidi_european_digit.h: Likewise.
12107         * lib/unictype/pr_bidi_pdf.h: Likewise.
12108         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
12109         * lib/unictype/pr_bidi_whitespace.h: Likewise.
12110         * lib/unictype/pr_dash.h: Likewise.
12111         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
12112         * lib/unictype/pr_diacritic.h: Likewise.
12113         * lib/unictype/pr_extender.h: Likewise.
12114         * lib/unictype/pr_hex_digit.h: Likewise.
12115         * lib/unictype/pr_hyphen.h: Likewise.
12116         * lib/unictype/pr_ids_binary_operator.h: Likewise.
12117         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
12118         * lib/unictype/pr_ignorable_control.h: Likewise.
12119         * lib/unictype/pr_iso_control.h: Likewise.
12120         * lib/unictype/pr_join_control.h: Likewise.
12121         * lib/unictype/pr_left_of_pair.h: Likewise.
12122         * lib/unictype/pr_line_separator.h: Likewise.
12123         * lib/unictype/pr_logical_order_exception.h: Likewise.
12124         * lib/unictype/pr_non_break.h: Likewise.
12125         * lib/unictype/pr_not_a_character.h: Likewise.
12126         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
12127         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
12128         * lib/unictype/pr_other_id_start.h: Likewise.
12129         * lib/unictype/pr_other_lowercase.h: Likewise.
12130         * lib/unictype/pr_other_uppercase.h: Likewise.
12131         * lib/unictype/pr_paired_punctuation.h: Likewise.
12132         * lib/unictype/pr_paragraph_separator.h: Likewise.
12133         * lib/unictype/pr_pattern_syntax.h: Likewise.
12134         * lib/unictype/pr_pattern_white_space.h: Likewise.
12135         * lib/unictype/pr_private_use.h: Likewise.
12136         * lib/unictype/pr_quotation_mark.h: Likewise.
12137         * lib/unictype/pr_radical.h: Likewise.
12138         * lib/unictype/pr_soft_dotted.h: Likewise.
12139         * lib/unictype/pr_space.h: Likewise.
12140         * lib/unictype/pr_titlecase.h: Likewise.
12141         * lib/unictype/pr_variation_selector.h: Likewise.
12142         * lib/unictype/pr_white_space.h: Likewise.
12143         * lib/unictype/pr_zero_width.h: Likewise.
12144         * lib/unictype/sy_c_ident.h: Likewise.
12145         * lib/unictype/sy_c_whitespace.h: Likewise.
12146         * lib/unictype/sy_java_whitespace.h: Likewise.
12147         * lib/uninorm/composition-table.gperf: Likewise.
12148         * lib/uninorm/decomposition-table1.h: Likewise.
12149         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
12150         LB8.
12151         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
12152         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
12153         * modules/unictype/*: Bump version number of expected libunistring
12154         version.
12155
12156 2011-01-09  Bruno Haible  <bruno@clisp.org>
12157
12158         Update to Unicode 5.2.0.
12159         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
12160         trailing whitespace removed.
12161
12162 2011-01-09  Bruno Haible  <bruno@clisp.org>
12163
12164         New Unicode character properties, from Unicode 5.2.0.
12165         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
12166         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
12167         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
12168         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
12169         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
12170         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
12171         uc_is_property_cased, uc_is_property_case_ignorable,
12172         uc_is_property_changes_when_lowercased,
12173         uc_is_property_changes_when_uppercased,
12174         uc_is_property_changes_when_titlecased,
12175         uc_is_property_changes_when_casefolded,
12176         uc_is_property_changes_when_casemapped): New declarations.
12177         * lib/unictype/pr_byname.gperf: Add the new properties.
12178         * modules/unictype/property-byname (Depends-on): Depend on the new
12179         properties modules.
12180         * modules/unictype/property-all (Depends-on): Likewise.
12181         * MODULES.html.sh (Unicode string functions): Add
12182         unictype/property-case-ignorable, unictype/property-cased,
12183         unictype/property-changes-when-casefolded,
12184         unictype/property-changes-when-casemapped,
12185         unictype/property-changes-when-lowercased,
12186         unictype/property-changes-when-titlecased,
12187         unictype/property-changes-when-uppercased.
12188
12189         New module 'unictype/property-changes-when-casemapped'.
12190         * modules/unictype/property-changes-when-casemapped: New file.
12191         * lib/unictype/pr_changes_when_casemapped.c: New file.
12192         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
12193         generated by gen-uni-tables.
12194         * modules/unictype/property-changes-when-casemapped-tests: New file.
12195         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
12196         automatically generated by gen-uni-tables.
12197
12198         New module 'unictype/property-changes-when-casefolded'.
12199         * modules/unictype/property-changes-when-casefolded: New file.
12200         * lib/unictype/pr_changes_when_casefolded.c: New file.
12201         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
12202         generated by gen-uni-tables.
12203         * modules/unictype/property-changes-when-casefolded-tests: New file.
12204         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
12205         automatically generated by gen-uni-tables.
12206
12207         New module 'unictype/property-changes-when-titlecased'.
12208         * modules/unictype/property-changes-when-titlecased: New file.
12209         * lib/unictype/pr_changes_when_titlecased.c: New file.
12210         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
12211         generated by gen-uni-tables.
12212         * modules/unictype/property-changes-when-titlecased-tests: New file.
12213         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
12214         automatically generated by gen-uni-tables.
12215
12216         New module 'unictype/property-changes-when-uppercased'.
12217         * modules/unictype/property-changes-when-uppercased: New file.
12218         * lib/unictype/pr_changes_when_uppercased.c: New file.
12219         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
12220         generated by gen-uni-tables.
12221         * modules/unictype/property-changes-when-uppercased-tests: New file.
12222         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
12223         automatically generated by gen-uni-tables.
12224
12225         New module 'unictype/property-changes-when-lowercased'.
12226         * modules/unictype/property-changes-when-lowercased: New file.
12227         * lib/unictype/pr_changes_when_lowercased.c: New file.
12228         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
12229         generated by gen-uni-tables.
12230         * modules/unictype/property-changes-when-lowercased-tests: New file.
12231         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
12232         automatically generated by gen-uni-tables.
12233
12234         New module 'unictype/property-case-ignorable'.
12235         * modules/unictype/property-case-ignorable: New file.
12236         * lib/unictype/pr_case_ignorable.c: New file.
12237         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
12238         by gen-uni-tables.
12239         * modules/unictype/property-case-ignorable-tests: New file.
12240         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
12241         generated by gen-uni-tables.
12242
12243         New module 'unictype/property-cased'.
12244         * modules/unictype/property-cased: New file.
12245         * lib/unictype/pr_cased.c: New file.
12246         * lib/unictype/pr_cased.h: New file, automatically generated by
12247         gen-uni-tables.
12248         * modules/unictype/property-cased-tests: New file.
12249         * tests/unictype/test-pr_cased.c: New file, automatically generated by
12250         gen-uni-tables.
12251
12252 2011-01-09  Bruno Haible  <bruno@clisp.org>
12253
12254         Update to Unicode 5.2.0.
12255         * lib/gen-uni-tables.c (output_predicate, output_category,
12256         output_combclass, output_bidi_category, output_decimal_digit_test,
12257         output_decimal_digit, output_digit_test, output_digit,
12258         output_numeric_test, output_numeric, output_mirror, output_scripts,
12259         output_scripts_byname, output_blocks, output_ident_category): Fix
12260         comment header.
12261         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
12262         get_wbp.
12263         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
12264         items.
12265         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
12266         Changes_When_Lowercased, Changes_When_Uppercased,
12267         Changes_When_Titlecased, Changes_When_Casefolded,
12268         Changes_When_Casemapped.
12269         (is_property_alphabetic, is_property_default_ignorable_code_point):
12270         Update for Unicode 5.2.0.
12271         (is_property_cased, is_property_case_ignorable,
12272         is_property_changes_when_lowercased,
12273         is_property_changes_when_uppercased,
12274         is_property_changes_when_titlecased,
12275         is_property_changes_when_casefolded,
12276         is_property_changes_when_casemapped): New functions.
12277         (output_properties): Output also the properties cased, case_ignorable,
12278         changes_when_lowercased, changes_when_uppercased,
12279         changes_when_titlecased, changes_when_casefolded,
12280         changes_when_casemapped.
12281         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
12282         Unicode TR#11 revision 17 -> 19.
12283         (LBP_CP): New enumeration value.
12284         (LBP_*): Adjust values accordingly.
12285         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
12286         TR#14 revision 22 -> 24.
12287         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
12288         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
12289         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
12290         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
12291         is_WBP_MIDLETTER.
12292         (output_composition_tables): Allow for 24 bits instead of 16 bits in
12293         the code1 and code2 of each composition rule.
12294         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
12295         * lib/unicase/ignorable.h: Likewise.
12296         * lib/unicase/tocasefold.h: Likewise.
12297         * lib/unicase/tolower.h: Likewise.
12298         * lib/unicase/totitle.h: Likewise.
12299         * lib/unicase/toupper.h: Likewise.
12300         * lib/unictype/bidi_of.h: Likewise.
12301         * lib/unictype/blocks.h: Likewise.
12302         * lib/unictype/categ_C.h: Likewise.
12303         * lib/unictype/categ_Cf.h: Likewise.
12304         * lib/unictype/categ_Cn.h: Likewise.
12305         * lib/unictype/categ_L.h: Likewise.
12306         * lib/unictype/categ_Ll.h: Likewise.
12307         * lib/unictype/categ_Lm.h: Likewise.
12308         * lib/unictype/categ_Lo.h: Likewise.
12309         * lib/unictype/categ_Lu.h: Likewise.
12310         * lib/unictype/categ_M.h: Likewise.
12311         * lib/unictype/categ_Mc.h: Likewise.
12312         * lib/unictype/categ_Mn.h: Likewise.
12313         * lib/unictype/categ_N.h: Likewise.
12314         * lib/unictype/categ_Nd.h: Likewise.
12315         * lib/unictype/categ_Nl.h: Likewise.
12316         * lib/unictype/categ_No.h: Likewise.
12317         * lib/unictype/categ_P.h: Likewise.
12318         * lib/unictype/categ_Pd.h: Likewise.
12319         * lib/unictype/categ_Po.h: Likewise.
12320         * lib/unictype/categ_S.h: Likewise.
12321         * lib/unictype/categ_Sc.h: Likewise.
12322         * lib/unictype/categ_So.h: Likewise.
12323         * lib/unictype/categ_of.h: Likewise.
12324         * lib/unictype/combining.h: Likewise.
12325         * lib/unictype/ctype_alnum.h: Likewise.
12326         * lib/unictype/ctype_alpha.h: Likewise.
12327         * lib/unictype/ctype_graph.h: Likewise.
12328         * lib/unictype/ctype_lower.h: Likewise.
12329         * lib/unictype/ctype_print.h: Likewise.
12330         * lib/unictype/ctype_punct.h: Likewise.
12331         * lib/unictype/ctype_upper.h: Likewise.
12332         * lib/unictype/decdigit.h: Likewise.
12333         * lib/unictype/digit.h: Likewise.
12334         * lib/unictype/numeric.h: Likewise.
12335         * lib/unictype/pr_alphabetic.h: Likewise.
12336         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
12337         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
12338         * lib/unictype/pr_bidi_european_digit.h: Likewise.
12339         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
12340         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
12341         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
12342         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
12343         * lib/unictype/pr_combining.h: Likewise.
12344         * lib/unictype/pr_composite.h: Likewise.
12345         * lib/unictype/pr_currency_symbol.h: Likewise.
12346         * lib/unictype/pr_dash.h: Likewise.
12347         * lib/unictype/pr_decimal_digit.h: Likewise.
12348         * lib/unictype/pr_deprecated.h: Likewise.
12349         * lib/unictype/pr_diacritic.h: Likewise.
12350         * lib/unictype/pr_extender.h: Likewise.
12351         * lib/unictype/pr_grapheme_base.h: Likewise.
12352         * lib/unictype/pr_grapheme_extend.h: Likewise.
12353         * lib/unictype/pr_grapheme_link.h: Likewise.
12354         * lib/unictype/pr_id_continue.h: Likewise.
12355         * lib/unictype/pr_id_start.h: Likewise.
12356         * lib/unictype/pr_ideographic.h: Likewise.
12357         * lib/unictype/pr_ignorable_control.h: Likewise.
12358         * lib/unictype/pr_logical_order_exception.h: Likewise.
12359         * lib/unictype/pr_lowercase.h: Likewise.
12360         * lib/unictype/pr_numeric.h: Likewise.
12361         * lib/unictype/pr_other_alphabetic.h: Likewise.
12362         * lib/unictype/pr_punctuation.h: Likewise.
12363         * lib/unictype/pr_sentence_terminal.h: Likewise.
12364         * lib/unictype/pr_terminal_punctuation.h: Likewise.
12365         * lib/unictype/pr_unassigned_code_value.h: Likewise.
12366         * lib/unictype/pr_unified_ideograph.h: Likewise.
12367         * lib/unictype/pr_uppercase.h: Likewise.
12368         * lib/unictype/pr_xid_continue.h: Likewise.
12369         * lib/unictype/pr_xid_start.h: Likewise.
12370         * lib/unictype/pr_zero_width.h: Likewise.
12371         * lib/unictype/scripts.h: Likewise.
12372         * lib/unictype/scripts_byname.gperf: Likewise.
12373         * lib/unictype/sy_java_ident.h: Likewise.
12374         * lib/unigbrk/gbrkprop.h: Likewise.
12375         * lib/unilbrk/lbrkprop1.h: Likewise.
12376         * lib/unilbrk/lbrkprop2.h: Likewise.
12377         * lib/unilbrk/lbrktables.h: Likewise.
12378         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
12379         LBP_CP. Implement rule LB30.
12380         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
12381         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
12382         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
12383         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
12384         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
12385         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
12386         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
12387         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
12388         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
12389         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
12390         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
12391         bits instead of 16 bits in the code1 and code2 of each composition
12392         rule.
12393         (uc_composition): Update for Unicode 5.2.0.
12394         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
12395         * lib/uninorm/decomposition-table2.h: Likewise.
12396         * lib/uniwbrk/wbrkprop.h: Likewise.
12397         * tests/unicase/test-cased.c: Likewise.
12398         * tests/unicase/test-ignorable.c: Likewise.
12399         * tests/unicase/test-uc_tolower.c: Likewise.
12400         * tests/unicase/test-uc_totitle.c: Likewise.
12401         * tests/unicase/test-uc_toupper.c: Likewise.
12402         * tests/unictype/test-categ_C.c: Likewise.
12403         * tests/unictype/test-categ_Cf.c: Likewise.
12404         * tests/unictype/test-categ_Cn.c: Likewise.
12405         * tests/unictype/test-categ_L.c: Likewise.
12406         * tests/unictype/test-categ_Ll.c: Likewise.
12407         * tests/unictype/test-categ_Lm.c: Likewise.
12408         * tests/unictype/test-categ_Lo.c: Likewise.
12409         * tests/unictype/test-categ_Lu.c: Likewise.
12410         * tests/unictype/test-categ_M.c: Likewise.
12411         * tests/unictype/test-categ_Mc.c: Likewise.
12412         * tests/unictype/test-categ_Mn.c: Likewise.
12413         * tests/unictype/test-categ_N.c: Likewise.
12414         * tests/unictype/test-categ_Nd.c: Likewise.
12415         * tests/unictype/test-categ_Nl.c: Likewise.
12416         * tests/unictype/test-categ_No.c: Likewise.
12417         * tests/unictype/test-categ_P.c: Likewise.
12418         * tests/unictype/test-categ_Pd.c: Likewise.
12419         * tests/unictype/test-categ_Po.c: Likewise.
12420         * tests/unictype/test-categ_S.c: Likewise.
12421         * tests/unictype/test-categ_Sc.c: Likewise.
12422         * tests/unictype/test-categ_So.c: Likewise.
12423         * tests/unictype/test-ctype_alnum.c: Likewise.
12424         * tests/unictype/test-ctype_alpha.c: Likewise.
12425         * tests/unictype/test-ctype_graph.c: Likewise.
12426         * tests/unictype/test-ctype_lower.c: Likewise.
12427         * tests/unictype/test-ctype_print.c: Likewise.
12428         * tests/unictype/test-ctype_punct.c: Likewise.
12429         * tests/unictype/test-ctype_upper.c: Likewise.
12430         * tests/unictype/test-decdigit.h: Likewise.
12431         * tests/unictype/test-digit.h: Likewise.
12432         * tests/unictype/test-numeric.h: Likewise.
12433         * tests/unictype/test-pr_alphabetic.c: Likewise.
12434         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
12435         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
12436         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
12437         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
12438         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
12439         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
12440         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
12441         * tests/unictype/test-pr_combining.c: Likewise.
12442         * tests/unictype/test-pr_composite.c: Likewise.
12443         * tests/unictype/test-pr_currency_symbol.c: Likewise.
12444         * tests/unictype/test-pr_dash.c: Likewise.
12445         * tests/unictype/test-pr_decimal_digit.c: Likewise.
12446         * tests/unictype/test-pr_deprecated.c: Likewise.
12447         * tests/unictype/test-pr_diacritic.c: Likewise.
12448         * tests/unictype/test-pr_extender.c: Likewise.
12449         * tests/unictype/test-pr_grapheme_base.c: Likewise.
12450         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
12451         * tests/unictype/test-pr_grapheme_link.c: Likewise.
12452         * tests/unictype/test-pr_id_continue.c: Likewise.
12453         * tests/unictype/test-pr_id_start.c: Likewise.
12454         * tests/unictype/test-pr_ideographic.c: Likewise.
12455         * tests/unictype/test-pr_ignorable_control.c: Likewise.
12456         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
12457         * tests/unictype/test-pr_lowercase.c: Likewise.
12458         * tests/unictype/test-pr_numeric.c: Likewise.
12459         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
12460         * tests/unictype/test-pr_punctuation.c: Likewise.
12461         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
12462         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
12463         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
12464         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
12465         * tests/unictype/test-pr_uppercase.c: Likewise.
12466         * tests/unictype/test-pr_xid_continue.c: Likewise.
12467         * tests/unictype/test-pr_xid_start.c: Likewise.
12468         * tests/unictype/test-pr_zero_width.c: Likewise.
12469         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
12470         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
12471         changed behaviour: line breaking is now disallowed between a letter
12472         or '=' and '('.
12473         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
12474         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
12475         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
12476         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
12477         * tests/uniwidth/test-uc_width2.sh: Same updates as in
12478         lib/uniwidth/width.c.
12479         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
12480         without comments, but with the original copyright notice.
12481         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
12482         changes.
12483         * lib/unictype/categ_Cc.h: Likewise.
12484         * lib/unictype/categ_Co.h: Likewise.
12485         * lib/unictype/categ_Cs.h: Likewise.
12486         * lib/unictype/categ_Lt.h: Likewise.
12487         * lib/unictype/categ_Me.h: Likewise.
12488         * lib/unictype/categ_Pc.h: Likewise.
12489         * lib/unictype/categ_Pe.h: Likewise.
12490         * lib/unictype/categ_Pf.h: Likewise.
12491         * lib/unictype/categ_Pi.h: Likewise.
12492         * lib/unictype/categ_Ps.h: Likewise.
12493         * lib/unictype/categ_Sk.h: Likewise.
12494         * lib/unictype/categ_Sm.h: Likewise.
12495         * lib/unictype/categ_Z.h: Likewise.
12496         * lib/unictype/categ_Zl.h: Likewise.
12497         * lib/unictype/categ_Zp.h: Likewise.
12498         * lib/unictype/categ_Zs.h: Likewise.
12499         * lib/unictype/ctype_blank.h: Likewise.
12500         * lib/unictype/ctype_cntrl.h: Likewise.
12501         * lib/unictype/ctype_digit.h: Likewise.
12502         * lib/unictype/ctype_space.h: Likewise.
12503         * lib/unictype/ctype_xdigit.h: Likewise.
12504         * lib/unictype/mirror.h: Likewise.
12505         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
12506         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
12507         * lib/unictype/pr_bidi_block_separator.h: Likewise.
12508         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
12509         * lib/unictype/pr_bidi_common_separator.h: Likewise.
12510         * lib/unictype/pr_bidi_control.h: Likewise.
12511         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
12512         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
12513         * lib/unictype/pr_bidi_pdf.h: Likewise.
12514         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
12515         * lib/unictype/pr_bidi_whitespace.h: Likewise.
12516         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
12517         * lib/unictype/pr_format_control.h: Likewise.
12518         * lib/unictype/pr_hex_digit.h: Likewise.
12519         * lib/unictype/pr_hyphen.h: Likewise.
12520         * lib/unictype/pr_ids_binary_operator.h: Likewise.
12521         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
12522         * lib/unictype/pr_iso_control.h: Likewise.
12523         * lib/unictype/pr_join_control.h: Likewise.
12524         * lib/unictype/pr_left_of_pair.h: Likewise.
12525         * lib/unictype/pr_line_separator.h: Likewise.
12526         * lib/unictype/pr_math.h: Likewise.
12527         * lib/unictype/pr_non_break.h: Likewise.
12528         * lib/unictype/pr_not_a_character.h: Likewise.
12529         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
12530         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
12531         * lib/unictype/pr_other_id_continue.h: Likewise.
12532         * lib/unictype/pr_other_id_start.h: Likewise.
12533         * lib/unictype/pr_other_lowercase.h: Likewise.
12534         * lib/unictype/pr_other_math.h: Likewise.
12535         * lib/unictype/pr_other_uppercase.h: Likewise.
12536         * lib/unictype/pr_paired_punctuation.h: Likewise.
12537         * lib/unictype/pr_paragraph_separator.h: Likewise.
12538         * lib/unictype/pr_pattern_syntax.h: Likewise.
12539         * lib/unictype/pr_pattern_white_space.h: Likewise.
12540         * lib/unictype/pr_private_use.h: Likewise.
12541         * lib/unictype/pr_quotation_mark.h: Likewise.
12542         * lib/unictype/pr_radical.h: Likewise.
12543         * lib/unictype/pr_soft_dotted.h: Likewise.
12544         * lib/unictype/pr_space.h: Likewise.
12545         * lib/unictype/pr_titlecase.h: Likewise.
12546         * lib/unictype/pr_variation_selector.h: Likewise.
12547         * lib/unictype/pr_white_space.h: Likewise.
12548         * lib/unictype/sy_c_ident.h: Likewise.
12549         * lib/unictype/sy_c_whitespace.h: Likewise.
12550         * lib/unictype/sy_java_whitespace.h: Likewise.
12551         * modules/uni*/*: Bump version number of expected libunistring version.
12552         Reported by Simon Josefsson.
12553
12554 2011-01-09  Karl Heuer  <kwzh@gnu.org>
12555
12556         useless-if-before-free: fix typo in --help and make the internal,
12557         automatic version date update process work once again.
12558         --help output contained a NUL character instead of the
12559         backslash-zero that was intended.  Also, the "must lie within
12560         the first 8 lines" line is on line 9, and hence not getting
12561         automatically updated.
12562         * build-aux/useless-if-before-free: Fix the former by adding a
12563         backslash, and the latter by condensing the three lines of what-it-does
12564         to a single line, leaving one line of slack for the future.
12565
12566 2011-01-09  Bruno Haible  <bruno@clisp.org>
12567
12568         uniwidth/width: Fix width of U+1D173..U+1D17A.
12569         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
12570         symbolic_width, output_width_property_test): New functions.
12571         (main): Invoke output_nonspacing_property, output_width_property_test.
12572         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
12573         U+1D173..U+1D17A.
12574         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
12575         1.
12576         * modules/uniwidth/*: Bump version number of expected libunistring
12577         version.
12578         * modules/unilbrk/*: Likewise.
12579
12580 2011-01-08  Bruno Haible  <bruno@clisp.org>
12581
12582         uninorm tests: Preserve copyright of Unicode data file.
12583         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
12584         Mention modifications.
12585
12586 2011-01-08  Bruno Haible  <bruno@clisp.org>
12587
12588         gen-uni-tables: Prepare for Unicode 5.2.0.
12589         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
12590         (debug_output_lbp, output_lbp): Update.
12591
12592 2011-01-08  Bruno Haible  <bruno@clisp.org>
12593
12594         unilbrk: Clarify gen-uni-tables.c code.
12595         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
12596         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
12597         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
12598
12599 2011-01-07  Bruno Haible  <bruno@clisp.org>
12600
12601         strtod: Restore errno when successfully parsing Infinity or NaN.
12602         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
12603         restore the original errno.
12604
12605 2011-01-07  Bruno Haible  <bruno@clisp.org>
12606
12607         remove test: Avoid failure on HP-UX 11.
12608         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
12609
12610 2011-01-07  Bruno Haible  <bruno@clisp.org>
12611
12612         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
12613         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
12614         error code.
12615
12616 2011-01-07  Pádraig Brady <P@draigBrady.com>
12617
12618         ignore-value: fixup comments, and add Eric Blake
12619         as an author since he rewrote the macros.
12620         * lib/ignore-value.h (ignore_value):  State that
12621         we now support aggregates.  Also specify exactly
12622         when the GCC warn_unused_result feature was added.
12623
12624 2011-01-06  Eric Blake  <eblake@redhat.com>
12625
12626         ignore-value: support aggregate types
12627         * lib/ignore-value.h (ignore_value): Provide separate gcc
12628         definition.
12629         * modules/ignore-value-tests: New test module.
12630         * tests/test-ignore-value.c: New test.
12631
12632         maint.mk: improve sc_prohibit_strcmp regex
12633         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
12634         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
12635         definition of STRNEQ.
12636
12637         signal: work around Haiku issue with SIGBUS
12638         * lib/siglist.h: Add comment.
12639         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
12640         strsignal's favoring of SIGSEGV.
12641         * tests/test-signal.c (main): Avoid test failure.
12642         * doc/posix-headers/signal.texi (signal.h): Document the issue.
12643         Reported by Scott McCreary.
12644
12645         maint.mk: add pre-release check to ensure submodule commits are public
12646         * top/maint.mk (public-submodule-commit): New rule.
12647         (submodule-checks): New variable.
12648         (alpha beta stable): Depend on the variable.
12649
12650 2011-01-05  Pádraig Brady <P@draigBrady.com>
12651         and Jim Meyering  <meyering@redhat.com>
12652
12653         ignore-value: make ignore_value more generic; deprecate ignore_ptr
12654         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
12655         (ATTRIBUTE_DEPRECATED): Define.
12656         (_ignore_case): New function.
12657         (ignore_value): New macro, to replace the old function.
12658         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
12659         * modules/ignore-value (Depends-on): Add stdint.
12660
12661 2011-01-04  Eric Blake  <eblake@redhat.com>
12662
12663         doc: regenerate INSTALL
12664         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
12665         @firstparagraphindent support, now that autoconf dropped it.
12666         (INSTALL_PRELUDE): Reinstate old macro.
12667         * doc/install.texi: Resync from autoconf.
12668         * doc/INSTALL: Reflect recent autoconf update.
12669         * doc/INSTALL.ISO: Likewise.
12670         * doc/INSTALL.UTF-8: Likewise.
12671         Reported by Karl Berry.
12672
12673 2011-01-04  Bruce Korb  <address@hidden>
12674
12675         git-version-gen: avoid a sub-shell
12676         * build-aux/git-version-gen: Redirect stderr in `...` via
12677         "exec 2>...", rather than via an added sub-shell.
12678
12679 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
12680
12681         git-version-gen: use (...) rather than sh -c '...'
12682         * build-aux/git-version-gen: Rather than hard-coding a shell's name
12683         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
12684
12685 2011-01-03  Jim Meyering  <meyering@redhat.com>
12686
12687         git-version-gen: convert leading TABs to spaces
12688         * build-aux/git-version-gen: Expand leading TABs.
12689
12690         git-version-gen: handle failed "git rev-list"
12691         * build-aux/git-version-gen: Rather than leaking a "fatal" error
12692         from git and proceeding as if it had succeeded but printed no SHA1
12693         checksums, suppress the diagnostic and handle the failure.
12694         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
12695
12696         git-version-gen: include command name in one more diagnostic
12697         * build-aux/git-version-gen: When the required .tarball-version file
12698         was missing or unreadable, you might see the diagnostic from "cat",
12699         but no trace of the name of the invoking script.  Now, you still see
12700         the diagnostic from cat, but also get one from "git-version-gen: ".
12701         Inspired by a patch from Bruce Korb.
12702
12703         update-copyright: adjust test to match changed code
12704         * tests/test-update-copyright.sh: Change test's expected output
12705         to match new actual output.
12706
12707 2011-01-02  Bruno Haible  <bruno@clisp.org>
12708
12709         getlogin_r: Avoid test failure on HP-UX 11.
12710         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
12711         ERANGE when the second argument is zero.
12712         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
12713         portability problem.
12714
12715 2011-01-02  Bruce Korb  <bkorb@gnu.org>
12716
12717         * build-aux/update-copyright: doc Simon's changes
12718
12719 2011-01-02  Simon Josefsson  <simon@josefsson.org>
12720
12721         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
12722         environment variable.
12723
12724 2011-01-02  Bruno Haible  <bruno@clisp.org>
12725
12726         unigbrk: Avoid gcc warnings.
12727         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
12728         unused variable.
12729         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
12730         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
12731         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
12732         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
12733         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
12734         Change type of first argument to 'const char *'.
12735         (main): Remove unused variable.
12736         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
12737         type of first argument to 'const char *'.
12738         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
12739         Likewise.
12740         (main): Change type of variable 's'.
12741         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
12742         to 'int'.
12743
12744 2011-01-02  Bruno Haible  <bruno@clisp.org>
12745
12746         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
12747         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
12748         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
12749         bug.
12750         * lib/pwrite.c: Undo 2010-12-31 patch.
12751         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
12752
12753 2011-01-02  Bruno Haible  <bruno@clisp.org>
12754
12755         pread: Fix test whether it works.
12756         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
12757
12758 2011-01-02  Bruno Haible  <bruno@clisp.org>
12759
12760         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
12761         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
12762         ends in "6". Don't require a specific month name. Try also the locale
12763         names found on HP-UX 11 and Solaris 7.
12764
12765 2011-01-02  Bruno Haible  <bruno@clisp.org>
12766
12767         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
12768         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
12769         C linkage.
12770         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
12771
12772 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
12773
12774         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
12775         for consistency, since the "cluster" term is not used elsewhere.
12776         * lib/unigbrk.in.h: Update name.
12777         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
12778         * lib/unigbrk/u16-grapheme-next.c: Update name.
12779         * lib/unigbrk/u16-grapheme-prev.c: Update name.
12780         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
12781         * lib/unigbrk/u32-grapheme-next.c: Update name.
12782         * lib/unigbrk/u32-grapheme-prev.c: Update name.
12783         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
12784         * lib/unigbrk/u8-grapheme-next.c: Update name.
12785         * lib/unigbrk/u8-grapheme-prev.c: Update name.
12786         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
12787         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
12788         Suggested by Bruno Haible.
12789
12790 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
12791
12792         Remove module 'u8-grapheme-len' as too redundant with
12793         'u8-grapheme-next'.
12794         * modules/unigbrk/u8-grapheme-len: Delete file.
12795         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
12796         * lib/unigbrk.in.h: Remove prototype for deleted function.
12797         * lib/unigbrk/u8-grapheme-len.c: Delete file.
12798         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
12799
12800         Remove module 'u16-grapheme-len' as too redundant with
12801         'u16-grapheme-next'.
12802         * modules/unigbrk/u16-grapheme-len: Delete file.
12803         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
12804         * lib/unigbrk.in.h: Remove prototype for deleted function.
12805         * lib/unigbrk/u16-grapheme-len.c: Delete file.
12806         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
12807
12808         Remove module 'u32-grapheme-len' as too redundant with
12809         'u32-grapheme-next'.
12810         * modules/unigbrk/u32-grapheme-len: Delete file.
12811         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
12812         * lib/unigbrk.in.h: Remove prototype for deleted function.
12813         * lib/unigbrk/u32-grapheme-len.c: Delete file.
12814         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
12815
12816         Suggested by Bruno Haible.
12817
12818 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
12819
12820         * unigbrk.in.h: Fix typo: "ben" => "been".
12821         Reported by Bruno Haible.
12822
12823 2011-01-01  Jim Meyering  <meyering@redhat.com>
12824
12825         maint: update almost all copyright ranges to include 2011
12826         Run the new "make update-copyright" rule.
12827
12828 2011-01-01  Jim Meyering  <meyering@redhat.com>
12829
12830         maint: update-copyright: exempt doc/INSTALL*
12831         * Makefile (update-copyright): Also exclude doc/INSTALL*,
12832         since they are generated.  Suggested by Bruno Haible.
12833
12834 2011-01-01  Jim Meyering  <meyering@redhat.com>
12835
12836         maint: refine the update-copyright rule
12837         * Makefile (update-copyright): Also exclude any file that includes
12838         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
12839         code that merely generates the comment.
12840
12841 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
12842
12843         New module 'u8-grapheme-len'.
12844         * modules/unigbrk/u8-grapheme-len: New file.
12845         * modules/unigbrk/u8-grapheme-len-tests: New file.
12846         * lib/unigbrk.in.h: Add prototype for new function.
12847         * lib/unigbrk/u8-grapheme-len.c: New file.
12848         * tests/unigbrk/test-u8-grapheme-len.c: New file.
12849
12850         New module 'u16-grapheme-len'.
12851         * modules/unigbrk/u16-grapheme-len: New file.
12852         * modules/unigbrk/u16-grapheme-len-tests: New file.
12853         * lib/unigbrk.in.h: Add prototype for new function.
12854         * lib/unigbrk/u16-grapheme-len.c: New file.
12855         * tests/unigbrk/test-u16-grapheme-len.c: New file.
12856
12857         New module 'u32-grapheme-len'.
12858         * modules/unigbrk/u32-grapheme-len: New file.
12859         * modules/unigbrk/u32-grapheme-len-tests: New file.
12860         * lib/unigbrk.in.h: Add prototype for new function.
12861         * lib/unigbrk/u32-grapheme-len.c: New file.
12862         * tests/unigbrk/test-u32-grapheme-len.c: New file.
12863
12864         New module 'u8-grapheme-next'.
12865         * modules/unigbrk/u8-grapheme-next: New file.
12866         * modules/unigbrk/u8-grapheme-next-tests: New file.
12867         * lib/unigbrk.in.h: Add prototype for new function.
12868         * lib/unigbrk/u8-grapheme-next.c: New file.
12869         * tests/unigbrk/test-u8-grapheme-next.c: New file.
12870
12871         New module 'u16-grapheme-next'.
12872         * modules/unigbrk/u16-grapheme-next: New file.
12873         * modules/unigbrk/u16-grapheme-next-tests: New file.
12874         * lib/unigbrk.in.h: Add prototype for new function.
12875         * lib/unigbrk/u16-grapheme-next.c: New file.
12876         * tests/unigbrk/test-u16-grapheme-next.c: New file.
12877
12878         New module 'u32-grapheme-next'.
12879         * modules/unigbrk/u32-grapheme-next: New file.
12880         * modules/unigbrk/u32-grapheme-next-tests: New file.
12881         * lib/unigbrk.in.h: Add prototype for new function.
12882         * lib/unigbrk/u32-grapheme-next.c: New file.
12883         * tests/unigbrk/test-u32-grapheme-next.c: New file.
12884
12885         New module 'u8-grapheme-prev'.
12886         * modules/unigbrk/u8-grapheme-prev: New file.
12887         * modules/unigbrk/u8-grapheme-prev-tests: New file.
12888         * lib/unigbrk.in.h: Add prototype for new function.
12889         * lib/unigbrk/u8-grapheme-prev.c: New file.
12890         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
12891
12892         New module 'u16-grapheme-prev'.
12893         * modules/unigbrk/u16-grapheme-prev: New file.
12894         * modules/unigbrk/u16-grapheme-prev-tests: New file.
12895         * lib/unigbrk.in.h: Add prototype for new function.
12896         * lib/unigbrk/u16-grapheme-prev.c: New file.
12897         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
12898
12899         New module 'u32-grapheme-prev'.
12900         * modules/unigbrk/u32-grapheme-prev: New file.
12901         * modules/unigbrk/u32-grapheme-prev-tests: New file.
12902         * lib/unigbrk.in.h: Add prototype for new function.
12903         * lib/unigbrk/u32-grapheme-prev.c: New file.
12904         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
12905
12906         New module 'u8-grapheme-breaks'.
12907         * modules/unigbrk/u8-grapheme-breaks: New file.
12908         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
12909         * lib/unigbrk.in.h: Add prototype for new function.
12910         * lib/unigbrk/u8-grapheme-breaks.c: New file.
12911         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
12912
12913         New module 'u16-grapheme-breaks'.
12914         * modules/unigbrk/u16-grapheme-breaks: New file.
12915         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
12916         * lib/unigbrk.in.h: Add prototype for new function.
12917         * lib/unigbrk/u16-grapheme-breaks.c: New file.
12918         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
12919
12920         New module 'u32-grapheme-breaks'.
12921         * modules/unigbrk/u32-grapheme-breaks: New file.
12922         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
12923         * lib/unigbrk.in.h: Add prototype for new function.
12924         * lib/unigbrk/u32-grapheme-breaks.c: New file.
12925         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
12926
12927         New module 'ulc-grapheme-breaks'.
12928         * modules/unigbrk/ulc-grapheme-breaks: New file.
12929         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
12930         * m4/locale-ar.m4: New file.
12931         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
12932         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
12933         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
12934
12935 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
12936
12937         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
12938         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
12939         modified how this file was generated before I initially submitted
12940         the module, but failed to regenerate it.  This meant that several
12941         of the level2 entries were wrong.
12942         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
12943         Remove the division-by-2 that is folded into the table now that
12944         gbrkprop.h has been regenerated properly.  Now -1 entries are
12945         handled correctly.
12946
12947         New module 'unigbrk/uc-gbrk-prop-tests'.
12948         * modules/unigbrk/uc-gbrk-prop-tests: New file.
12949         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
12950         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
12951         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
12952
12953 2011-01-01  Bruno Haible  <bruno@clisp.org>
12954
12955         Avoid use of hexadecimal escapes.
12956         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
12957         instead of hexadecimal escapes.
12958
12959 2011-01-01  Jim Meyering  <meyering@redhat.com>
12960
12961         maint: new rule to update copyright year ranges
12962         * Makefile (update-copyright): New rule.
12963
12964         maint: indent with TABs in Makefile
12965         * Makefile: Expand leading sequences of spaces to TABs
12966
12967         version-etc: update the copyright year it reports
12968         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
12969
12970 2010-12-31  Bruno Haible  <bruno@clisp.org>
12971
12972         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
12973         * lib/isfinite.c (zerof, zerod, zerol): New variables.
12974         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
12975         zero.
12976
12977 2010-12-31  Bruno Haible  <bruno@clisp.org>
12978
12979         pwrite: Work around HP-UX 11.11 bug.
12980         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
12981         works and set REPLACE_PWRITE if not.
12982         * lib/pwrite.c (pwrite): Add an implementation that uses the system
12983         function.
12984         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
12985
12986 2010-12-31  Bruno Haible  <bruno@clisp.org>
12987
12988         pread: Work around HP-UX 11 bugs.
12989         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
12990         and set REPLACE_PREAD if not.
12991         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
12992
12993 2010-12-31  Eric Blake  <eblake@redhat.com>
12994
12995         nl_langinfo: fix YESEXPR on Irix 6.5
12996         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
12997         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
12998         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
12999         it.
13000
13001 2010-12-31  Bruno Haible  <bruno@clisp.org>
13002
13003         iconv: Document HP-UX 11 bug.
13004         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
13005
13006 2010-12-31  Bruno Haible  <bruno@clisp.org>
13007
13008         ldexpl: Fix link error on HP-UX 11.
13009         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
13010         LDEXPL_LIBM, using $ISNANL_LIBM.
13011
13012 2010-12-31  Eric Blake  <eblake@redhat.com>
13013
13014         ftello: avoid compilation failure with SunStudio c89
13015         * lib/ftello.c (ftello): Use lseek, not llseek.
13016
13017         tests: avoid failing coreutils tests on cygwin
13018         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
13019         (create_exe_shims_): Return 0 when skipping.
13020
13021 2010-12-31  Bruno Haible  <bruno@clisp.org>
13022
13023         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
13024         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
13025
13026 2010-12-31  Bruno Haible  <bruno@clisp.org>
13027
13028         waitpid: Fix link error in C++ mode.
13029         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
13030
13031 2010-12-31  Bruno Haible  <bruno@clisp.org>
13032
13033         isnan: Use GCC built-ins when possible.
13034         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
13035         __builtin_isnan.
13036         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
13037         (isnan): Define using GCC built-ins for GCC >= 4.0.
13038
13039 2010-12-31  Bruno Haible  <bruno@clisp.org>
13040
13041         isnand: Fix mistake.
13042         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
13043         __builtin_isnand.
13044
13045 2010-12-31  Bruno Haible  <bruno@clisp.org>
13046
13047         open: Avoid C++ error on HP-UX 11.
13048         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
13049
13050 2010-12-31  Bruno Haible  <bruno@clisp.org>
13051
13052         time_r: Add missing declarations on HP-UX 11.
13053         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
13054         instead of HAVE_LOCALTIME_R.
13055         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
13056         HAVE_LOCALTIME_R always.
13057         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
13058         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
13059         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
13060         HAVE_LOCALTIME_R.
13061         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
13062         * doc/posix-functions/localtime_r.texi: Likewise.
13063
13064 2010-12-29  Eric Blake  <eblake@redhat.com>
13065
13066         mountlist: tweak previous commit
13067         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
13068         Reported by Paul Eggert.
13069
13070         mountlist: fix local drive detection on cygwin
13071         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
13072         that works for cygwin.
13073
13074 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
13075
13076         ftoastr, snprintf: ftoastr + snprintf module
13077         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
13078         since the snprintf module now should be good enough here.
13079         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
13080         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
13081         and gl_MODULE_INDICATOR([snprintf]), but the former enables
13082         GNULIB_SNPRINTF only for the test directory, and the latter
13083         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
13084         seems to suffice by itself.
13085
13086 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
13087
13088         alloca: one step towards thread-safety
13089         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
13090         need for a static variable.  All callers changed.  This does not
13091         make the alloca replacement thread-safe, but it's one step.
13092
13093         tests: minor indenting change
13094         * tests/init.sh: Sync from coreutils housekeeping patch
13095         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
13096         to keep lines within 80 columns.
13097
13098 2010-12-28  Jim Meyering  <meyering@redhat.com>
13099
13100         regex: don't infloop on persistent failing calloc
13101         * lib/regexec.c (build_trtable): Return failure indication upon
13102         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
13103         In glibc, this was fixed for version 2.13:
13104         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
13105
13106 2010-12-28  Bruno Haible  <bruno@clisp.org>
13107             Paul Eggert <eggert@cs.ucla.edu>
13108
13109         linkat: Make implementation robust against system behaviour variations.
13110         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
13111         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
13112         way, and to -2 if it needs a generic runtime test.
13113         * lib/linkat.c (solaris_optimized_link_immediate,
13114         solaris_optimized_link_follow): New functions.
13115         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
13116         (check_same_link): Use it.
13117
13118 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
13119
13120         New module 'unigbrk/base'.
13121         * modules/unigbrk/base: New file.
13122         * lib/unigbrk.in.h: New file.
13123
13124         New module 'unigbrk/uc-gbrk-prop'.
13125         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
13126         * modules/unigbrk/uc-gbrk-prop: New file.
13127         * lib/unigbrk/gbrkprop.h: New file.
13128         * lib/unigbrk/uc-gbrk-prop.c: New file.
13129
13130         New module 'unigbrk/uc-is-grapheme-break'.
13131         * modules/unigbrk/uc-is-grapheme-break: New file.
13132         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
13133         * lib/unigbrk/uc-is-grapheme-break.c: New file.
13134         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
13135         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
13136         * tests/unigbrk/GraphemeBreakTest.txt: New file.
13137
13138         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
13139
13140 2010-12-27  Bruno Haible  <bruno@clisp.org>
13141
13142         linkat test: Avoid failure on Solaris 11 2010-11.
13143         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
13144
13145 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
13146
13147         utimens: work around glibc rounding bug on more platforms
13148         * lib/utimens.c (fdutimens): Work around rounding bug even if
13149         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
13150         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
13151
13152 2010-12-27  Bruno Haible  <bruno@clisp.org>
13153
13154         select tests: Improve comments.
13155         * tests/test-select.c (do_select): Add comments.
13156
13157 2010-12-27  Bruno Haible  <bruno@clisp.org>
13158
13159         select tests: Safer way of handling timeout.
13160         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
13161         at every invocation.
13162
13163 2010-12-27  Bruno Haible  <bruno@clisp.org>
13164
13165         select tests: Use 'bool' where appropriate.
13166         * tests/test-select.c (connect_to_socket): Change argument type to
13167         'bool'.
13168
13169 2010-12-27  Bruno Haible  <bruno@clisp.org>
13170
13171         select tests: Use existing modules.
13172         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
13173         (configure.ac): Don't test for unistd.h.
13174         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
13175         declared in <unistd.h>.
13176
13177 2010-12-27  Bruno Haible  <bruno@clisp.org>
13178
13179         mbrtowc: Work around a Solaris 7 bug.
13180         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
13181         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
13182         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
13183         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
13184         MBRTOWC_NULL_ARG1_BUG.
13185         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
13186         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
13187         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
13188         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
13189
13190 2010-12-27  Jim Meyering  <meyering@redhat.com>
13191
13192         read-file.c: tweak syntax
13193         * lib/read-file.c (fread_file): Remove space after "*" in function
13194         definitions.
13195
13196 2010-12-27  Bruno Haible  <bruno@clisp.org>
13197
13198         times test: Avoid gcc warnings on OSF/1.
13199         * tests/test-times.c (main): Cast printf arguments from clock_t to
13200         'long int'.
13201
13202 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
13203
13204         utimens: work around glibc rounding bug on older Linux kernels
13205         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
13206         on Linux with a glibc whose utimes might not work, then work
13207         around a longstanding glibc bug involving rounding rather than
13208         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
13209         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
13210
13211 2010-12-26  Bruno Haible  <bruno@clisp.org>
13212
13213         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
13214         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
13215         _GL_CXXALIAS_SYS.
13216         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13217
13218 2010-12-26  Bruno Haible  <bruno@clisp.org>
13219
13220         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
13221         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
13222         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
13223         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
13224         looking for the declaration.
13225         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
13226         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
13227         problem.
13228         * doc/posix-functions/inet_pton.texi: Likewise.
13229
13230 2010-12-26  Bruno Haible  <bruno@clisp.org>
13231
13232         arpa_inet: Use the common idioms with C++ support.
13233         * lib/arpa_inet.in.h: Include c++defs.h.
13234         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
13235         support.
13236         * modules/arpa_inet (Depends-on): Add c++defs.
13237         (Makefile.am): Substitute the contents of c++defs.h.
13238         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
13239         * modules/arpa_inet-c++-tests: New file.
13240         * tests/test-arpa_inet-c++.cc: New file.
13241
13242 2010-12-25  Bruno Haible  <bruno@clisp.org>
13243
13244         Fix more C++ link errors on Solaris 8.
13245         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
13246         $(LIB_EACCESS).
13247         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
13248         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
13249         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
13250         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
13251         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
13252
13253 2010-12-25  Bruno Haible  <bruno@clisp.org>
13254
13255         printf-posix: Fix link error when a non-GCC compiler is used.
13256         * lib/stdio.in.h (printf): When not using GCC, override printf
13257         correctly.
13258         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13259
13260 2010-12-25  Bruno Haible  <bruno@clisp.org>
13261
13262         strerror_r-posix: Update doc.
13263         * doc/posix-functions/strerror_r.texi: Update doc about the return
13264         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
13265
13266 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
13267
13268         utimens: simplify the logic of the previous change
13269         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
13270         This should not affect whether the test succeeds or fails.
13271
13272         utimens: configure better on hosts with NFS clock skew
13273         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
13274         uses the clock of the local host.  It might use the clock of the
13275         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
13276         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
13277
13278 2010-12-25  Bruno Haible  <bruno@clisp.org>
13279
13280         ptsname test: Avoid failure on Solaris.
13281         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
13282         open a pseudo-terminal; don't use BSD-style ptys.
13283         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
13284
13285 2010-12-25  Bruno Haible  <bruno@clisp.org>
13286
13287         ptsname: Avoid ERANGE failure on some systems.
13288         * lib/ptsname.c (buffer): Increase size.
13289
13290 2010-12-25  Bruno Haible  <bruno@clisp.org>
13291
13292         rename, renameat: Avoid test failures at NFS mounted locations.
13293         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
13294         so that subsequent mkdir calls succeed.
13295
13296 2010-12-25  Bruno Haible  <bruno@clisp.org>
13297
13298         iswblank: Fix C++ link error on Solaris 8.
13299         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
13300         _GL_FUNCDECL_SYS.
13301
13302 2010-12-25  Bruno Haible  <bruno@clisp.org>
13303
13304         unistd: Fix C++ link error on Solaris 8.
13305         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
13306
13307 2010-12-25  Bruno Haible  <bruno@clisp.org>
13308
13309         readlink doc: Mention an old glibc bug.
13310         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
13311
13312 2010-12-25  Bruno Haible  <bruno@clisp.org>
13313
13314         fcntl-h: Fix for use of C++ on glibc systems.
13315         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
13316         also on glibc systems in C++ mode.
13317         Reported by Gary V. Vaughan <gary@gnu.org>.
13318
13319 2010-12-25  Bruno Haible  <bruno@clisp.org>
13320
13321         roundl-ieee: Make it work on OSF/1 5.1 with cc.
13322         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
13323
13324 2010-12-25  Bruno Haible  <bruno@clisp.org>
13325
13326         truncl-ieee: Make it work on OSF/1 5.1 with cc.
13327         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
13328         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
13329         test whether truncl works according to ISO C 99 with IEC 60559.
13330         * m4/truncl-ieee.m4: New file.
13331         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
13332         m4/signbit.m4.
13333         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
13334
13335 2010-12-25  Bruno Haible  <bruno@clisp.org>
13336
13337         ceill-ieee: Make it work on OSF/1 5.1 with cc.
13338         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
13339         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
13340         test whether ceill works according to ISO C 99 with IEC 60559.
13341         * m4/ceill-ieee.m4: New file.
13342         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
13343         m4/signbit.m4.
13344         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
13345
13346 2010-12-25  Bruno Haible  <bruno@clisp.org>
13347
13348         Ensure all prerequisites of <wchar.h> are included.
13349         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
13350         before <wchar.h>.
13351         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
13352         gl_MBRLEN_NUL_RETVAL): Likewise.
13353         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
13354         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
13355         AC_FUNC_MBRTOWC): Likewise.
13356         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
13357         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
13358         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
13359         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
13360         Likewise.
13361         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
13362         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
13363         (gl_WCHAR_H): Improve comments.
13364         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
13365
13366 2010-12-25  Bruno Haible  <bruno@clisp.org>
13367
13368         strtok_r: Fix C syntax error in autoconf macro.
13369         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
13370         characters in test program.
13371
13372 2010-12-24  Bruno Haible  <bruno@clisp.org>
13373
13374         ceil, trunc, round: Fix gcc warnings.
13375         * lib/ceil.c (MIN): Undefine before redefining.
13376         * lib/trunc.c (MIN): Likewise.
13377         * lib/round.c (MIN): Likewise.
13378         Include <math.h> first.
13379
13380 2010-12-24  Bruno Haible  <bruno@clisp.org>
13381
13382         select tests: Avoid failures on OSF/1 5.1.
13383         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
13384         failure of closing the last socket; it may fail with ECONNRESET.
13385
13386 2010-12-24  Eric Blake  <eblake@redhat.com>
13387
13388         stdint: avoid HP-UX 10.20 preprocessor bug
13389         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
13390         than #if.
13391         * tests/test-floor2.c (main): Likewise.
13392         Reported by Peter O'Gorman.
13393
13394         pipe: make obsoletion transition easier
13395         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
13396         * modules/pipe (Files): Include revived file.
13397         (Include): Drop reference, to mirror getdate's behavior.
13398
13399 2010-12-24  Bruno Haible  <bruno@clisp.org>
13400
13401         sys_socket: Hide mismatch of declarations on NonStop Kernel.
13402         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
13403         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
13404         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13405
13406 2010-12-24  Bruno Haible  <bruno@clisp.org>
13407
13408         gethostname: Ensure declaration on NonStop Kernel.
13409         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
13410         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13411
13412 2010-12-24  Bruno Haible  <bruno@clisp.org>
13413
13414         sys_select: Ensure all necessary types on NonStop Kernel.
13415         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
13416         include <sys/time.h>.
13417         * doc/posix-headers/sys_select.texi: Mention that it's missing on
13418         NonStop Kernel.
13419         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13420
13421 2010-12-24  Bruno Haible  <bruno@clisp.org>
13422
13423         sys_select: Remove unneeded include.
13424         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
13425         have <sys/select.h>.
13426
13427 2010-12-24  Bruno Haible  <bruno@clisp.org>
13428
13429         gethostname: Provide a fallback for HOST_NAME_MAX.
13430         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
13431         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
13432         instead.
13433         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13434
13435 2010-12-24  Bruno Haible  <bruno@clisp.org>
13436
13437         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
13438         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
13439         (SA_RESTART): Likewise.
13440         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13441
13442 2010-12-24  Bruno Haible  <bruno@clisp.org>
13443
13444         signal: Define NSIG.
13445         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
13446         * tests/test-signal.c (nsig): New variable.
13447         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13448
13449 2010-12-24  Bruno Haible  <bruno@clisp.org>
13450
13451         rename, renameat: Avoid test failures on OSF/1 5.1.
13452         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
13453         alternative error codes.
13454         * tests/test-renameat.c (main): Likewise.
13455
13456 2010-12-24  Bruno Haible  <bruno@clisp.org>
13457
13458         *printf: Detect large precisions bug on Solaris 10/SPARC.
13459         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
13460         by Paul Eggert.
13461         * tests/test-snprintf-posix.h (test_function): Add this test code here
13462         too.
13463         * tests/test-sprintf-posix.h (test_function): Likewise.
13464         * tests/test-vasnprintf-posix.c (test_function): Likewise.
13465         * tests/test-vasprintf-posix.c (test_function): Likewise.
13466         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
13467         around by gnulib.
13468         * doc/posix-functions/printf.texi: Likewise.
13469         * doc/posix-functions/snprintf.texi: Likewise.
13470         * doc/posix-functions/sprintf.texi: Likewise.
13471         * doc/posix-functions/vfprintf.texi: Likewise.
13472         * doc/posix-functions/vprintf.texi: Likewise.
13473         * doc/posix-functions/vsnprintf.texi: Likewise.
13474         * doc/posix-functions/vsprintf.texi: Likewise.
13475         * doc/posix-functions/dprintf.texi: Undo last commit.
13476         * doc/posix-functions/vdprintf.texi: Likewise.
13477
13478 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
13479
13480         tests: port test-fdutimensat.c to Solaris 8
13481         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
13482         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
13483         On Solaris 8, it fails with errno == ENOSYS, because there is no
13484         futimens (so it can't use the fd), and there is no lutimens (so it
13485         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
13486
13487         vsnprintf: make more consistent with snprintf; doc fixes
13488
13489         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
13490         the byte count return problem was promoted from the snprintf-posix
13491         to the snprintf module.
13492         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
13493         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
13494         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
13495         * tests/test-snprintf.c (main): Check the byte count returned.
13496         * tests/test-vsnprintf.c (main): Likewise.
13497
13498 2010-12-23  Eric Blake  <eblake@redhat.com>
13499
13500         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
13501         * modules/sigpipe (License): Relax license.
13502
13503 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
13504
13505         doc: document Solaris printf bug with large float precisions
13506         * doc/posix-functions/dprintf.texi (dprintf):
13507         * doc/posix-functions/fprintf.texi (fprintf):
13508         * doc/posix-functions/printf.texi (printf):
13509         * doc/posix-functions/snprintf.texi (snprintf):
13510         * doc/posix-functions/sprintf.texi (sprintf):
13511         * doc/posix-functions/vdprintf.texi (vdprintf):
13512         * doc/posix-functions/vfprintf.texi (vfprintf):
13513         * doc/posix-functions/vprintf.texi (vprintf):
13514         * doc/posix-functions/vsnprintf.texi (vsnprintf):
13515         * doc/posix-functions/vsprintf.texi (vsprintf):
13516         Mention that these functions mishandle large floating point
13517         precisions on Solaris 10.  The same bug is also present in Solaris
13518         8, and I assume earlier.  This causes "cd gnulib-tests; make
13519         check" to fail on Solaris 8 (and I assume, later) when building
13520         the latest coreutils, in test-vasprintf-posix's call to
13521         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
13522         the wide flavors (e.g., wprintf) so this patch just updates the
13523         documentation for the narrow ones.
13524
13525         test-posixtm.c: add two tests
13526         * tests/test-posixtm.c: Add two tests, to highlight the
13527         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
13528         around this bug; this is merely to document it.
13529
13530 2010-12-22  Bruno Haible  <bruno@clisp.org>
13531
13532         getlogin_r: Work around portability problem on OSF/1.
13533         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
13534         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
13535         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
13536         test for a truncated result.
13537         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
13538         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
13539         * modules/getlogin_r (Depends-on): Add memchr.
13540         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
13541
13542 2010-12-22  Bruno Haible  <bruno@clisp.org>
13543
13544         ptsname: Avoid test failure on OSF/1 5.1.
13545         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
13546         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
13547         (same_slave): New function.
13548         (main): Use it to compare ptsname's result with the expected file name.
13549
13550 2010-12-22  Bruno Haible  <bruno@clisp.org>
13551
13552         Port extended stdio modules to HP NonStop Kernel.
13553         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
13554         macros.
13555         * lib/fbufmode.c: Update comments.
13556         * lib/fflush.c: Likewise.
13557         * lib/fpurge.c: Likewise.
13558         * lib/freadable.c: Likewise.
13559         * lib/freadahead.c: Likewise.
13560         * lib/freading.c: Likewise.
13561         * lib/freadptr.c: Likewise.
13562         * lib/freadseek.c: Likewise.
13563         * lib/fseeko.c: Likewise.
13564         * lib/fseterr.c: Likewise.
13565         * lib/fwritable.c: Likewise.
13566         * lib/fwriting.c: Likewise.
13567         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13568
13569 2010-12-22  Bruno Haible  <bruno@clisp.org>
13570
13571         ttyname_r: Work around bug on OSF/1 5.1.
13572         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
13573         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
13574         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
13575         present.
13576         * lib/ttyname_r.c (ttyname_r): Update comments.
13577
13578 2010-12-22  Bruno Haible  <bruno@clisp.org>
13579
13580         round: Implement result sign according to IEEE 754.
13581         * lib/round.c (MIN, MINUS_ZERO): New macros.
13582         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
13583         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
13584         * tests/test-round-ieee.c (main): Likewise.
13585         * tests/test-roundl-ieee.c (main): Likewise.
13586
13587         trunc: Implement result sign according to IEEE 754.
13588         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
13589         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
13590         * tests/test-trunc2.c: Include minus-zero.h.
13591         (MINUS_ZERO): New macro.
13592         (trunc_reference): Keep in sync with lib/trunc.c.
13593         * tests/test-truncf2.c: Include minus-zero.h.
13594         (MINUS_ZERO): New macro.
13595         (truncf_reference): Keep in sync with lib/trunc.c.
13596         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
13597         * tests/test-trunc-ieee.c (main): Likewise.
13598         * tests/test-truncl-ieee.c (main): Likewise.
13599
13600         ceil: Implement result sign according to IEEE 754.
13601         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
13602         (FUNC): Return -0.0 for -1 < x < 0.
13603         * tests/test-ceil2.c: Include minus-zero.h.
13604         (MINUS_ZERO): New macro.
13605         (ceil_reference): Keep in sync with lib/ceil.c.
13606         * tests/test-ceilf2.c: Include minus-zero.h.
13607         (MINUS_ZERO): New macro.
13608         (ceilf_reference): Keep in sync with lib/ceil.c.
13609         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
13610         * tests/test-ceil-ieee.c (main): Likewise.
13611         * tests/test-ceill-ieee.c (main): Likewise.
13612
13613         floor: Implement result sign according to IEEE 754.
13614         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
13615         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
13616         * tests/test-floorf2.c (floorf_reference): Likewise.
13617         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
13618         * tests/test-floor-ieee.c (main): Likewise.
13619         * tests/test-floorl-ieee.c (main): Likewise.
13620
13621 2010-12-22  Bruno Haible  <bruno@clisp.org>
13622
13623         getaddrinfo: Update doc.
13624         * doc/posix-functions/gai_strerror.texi: Return type is also different
13625         on AIX and HP-UX.
13626
13627 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
13628
13629         getaddrinfo, inet_ntop: Update doc for Solaris.
13630         * doc/posix-functions/gai_strerror.texi: Return type is also an
13631         issue on Solaris 9 and earlier.
13632         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
13633         on Solaris 10 and earlier.
13634
13635 2010-12-21  Bruno Haible  <bruno@clisp.org>
13636
13637         New module 'roundl-ieee'.
13638         * modules/roundl-ieee: New file.
13639         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
13640         test whether roundl works according to ISO C 99 with IEC 60559.
13641         * m4/roundl-ieee.m4: New file.
13642         * modules/roundl-ieee-tests: New file.
13643         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
13644         * tests/test-roundl.c (main): Remove signbit tests.
13645         * modules/roundl-tests (Depends-on): Remove signbit.
13646         * doc/posix-functions/roundl.texi: Mention the new module.
13647
13648 2010-12-21  Bruno Haible  <bruno@clisp.org>
13649
13650         New module 'truncl-ieee'.
13651         * modules/truncl-ieee: New file.
13652         * modules/truncl-ieee-tests: New file.
13653         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
13654         * tests/test-truncl.c (main): Remove signbit tests.
13655         * modules/truncl-tests (Depends-on): Remove signbit.
13656         * doc/posix-functions/truncl.texi: Mention the new module.
13657
13658 2010-12-21  Bruno Haible  <bruno@clisp.org>
13659
13660         New module 'ceill-ieee'.
13661         * modules/ceill-ieee: New file.
13662         * modules/ceill-ieee-tests: New file.
13663         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
13664         * tests/test-ceill.c (main): Remove signbit tests.
13665         * modules/ceill-tests (Depends-on): Remove signbit.
13666         * doc/posix-functions/ceill.texi: Mention the new module.
13667
13668 2010-12-21  Bruno Haible  <bruno@clisp.org>
13669
13670         New module 'floorl-ieee'.
13671         * modules/floorl-ieee: New file.
13672         * modules/floorl-ieee-tests: New file.
13673         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
13674         * tests/test-floorl.c (main): Remove signbit tests.
13675         * modules/floorl-tests (Depends-on): Remove signbit.
13676         * doc/posix-functions/floorl.texi: Mention the new module.
13677
13678 2010-12-21  Bruno Haible  <bruno@clisp.org>
13679
13680         New module 'round-ieee'.
13681         * modules/round-ieee: New file.
13682         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
13683         whether round works according to ISO C 99 with IEC 60559.
13684         * m4/round-ieee.m4: New file.
13685         * modules/round-ieee-tests: New file.
13686         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
13687         * tests/test-round1.c (main): Remove signbit tests.
13688         * modules/round-tests (Depends-on): Remove 'signbit'.
13689         * doc/posix-functions/round.texi: Mention the new module.
13690
13691 2010-12-21  Bruno Haible  <bruno@clisp.org>
13692
13693         New module 'trunc-ieee'.
13694         * modules/trunc-ieee: New file.
13695         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
13696         whether trunc works according to ISO C 99 with IEC 60559.
13697         * m4/trunc-ieee.m4: New file.
13698         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
13699         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
13700         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
13701         * modules/trunc-ieee-tests: New file.
13702         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
13703         * tests/test-trunc1.c (main): Remove signbit tests.
13704         * modules/trunc-tests (Depends-on): Remove 'signbit'.
13705         * doc/posix-functions/trunc.texi: Mention the new module.
13706
13707 2010-12-21  Bruno Haible  <bruno@clisp.org>
13708
13709         New module 'ceil-ieee'.
13710         * modules/ceil-ieee: New file.
13711         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
13712         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
13713         ISO C 99 with IEC 60559.
13714         * m4/ceil-ieee.m4: New file.
13715         * modules/ceil (Files): Add lib/ceil.c.
13716         (Depends-on): Add 'float'.
13717         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
13718         * lib/math.in.h (ceil): New declaration.
13719         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
13720         REPLACE_CEIL.
13721         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
13722         * modules/ceil-ieee-tests: New file.
13723         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
13724         * tests/test-math-c++.cc: Check the signature of 'ceil'.
13725         * doc/posix-functions/ceil.texi: Mention the new module.
13726
13727 2010-12-21  Bruno Haible  <bruno@clisp.org>
13728
13729         New module 'floor-ieee'.
13730         * modules/floor-ieee: New file.
13731         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
13732         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
13733         ISO C 99 with IEC 60559.
13734         * m4/floor-ieee.m4: New file.
13735         * modules/floor (Files): Add lib/floor.c.
13736         (Depends-on): Add 'float'.
13737         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
13738         * lib/math.in.h (floor): New declaration.
13739         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
13740         REPLACE_FLOOR.
13741         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
13742         * modules/floor-ieee-tests: New file.
13743         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
13744         * tests/test-math-c++.cc: Check the signature of 'floor'.
13745         * doc/posix-functions/floor.texi: Mention the new module.
13746
13747 2010-12-21  Bruno Haible  <bruno@clisp.org>
13748
13749         New module 'roundf-ieee'.
13750         * modules/roundf-ieee: New file.
13751         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
13752         test whether roundf works according to ISO C 99 with IEC 60559.
13753         * m4/roundf-ieee.m4: New file.
13754         * modules/roundf-ieee-tests: New file.
13755         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
13756         * tests/test-roundf1.c (main): Remove signbit tests.
13757         * modules/roundf-tests (Depends-on): Remove 'signbit'.
13758         * doc/posix-functions/roundf.texi: Mention the new module.
13759
13760 2010-12-21  Bruno Haible  <bruno@clisp.org>
13761
13762         New module 'truncf-ieee'.
13763         * modules/truncf-ieee: New file.
13764         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
13765         test whether truncf works according to ISO C 99 with IEC 60559.
13766         * m4/truncf-ieee.m4: New file.
13767         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
13768         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
13769         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
13770         * modules/truncf-ieee-tests: New file.
13771         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
13772         * tests/test-truncf1.c (main): Remove signbit tests.
13773         * modules/truncf-tests (Depends-on): Remove 'signbit'.
13774         * doc/posix-functions/truncf.texi: Mention the new module.
13775
13776 2010-12-21  Bruno Haible  <bruno@clisp.org>
13777
13778         New module 'ceilf-ieee'.
13779         * modules/ceilf-ieee: New file.
13780         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
13781         test whether ceilf works according to ISO C 99 with IEC 60559.
13782         * m4/ceilf-ieee.m4: New file.
13783         * modules/ceilf-ieee-tests: New file.
13784         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
13785         * tests/test-ceilf1.c (main): Remove signbit tests.
13786         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
13787         * doc/posix-functions/ceilf.texi: Mention the new module.
13788
13789 2010-12-21  Bruno Haible  <bruno@clisp.org>
13790
13791         New module 'floorf-ieee'.
13792         * modules/floorf-ieee: New file.
13793         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
13794         test whether floorf works according to ISO C 99 with IEC 60559.
13795         * m4/floorf-ieee.m4: New file.
13796         * modules/floorf-ieee-tests: New file.
13797         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
13798         * tests/test-floorf1.c (main): Remove signbit tests.
13799         * modules/floorf-tests (Depends-on): Remove 'signbit'.
13800         * doc/posix-functions/floorf.texi: Mention the new module.
13801
13802 2010-12-21  Bruno Haible  <bruno@clisp.org>
13803
13804         Support for minus zero in autoconf macros.
13805         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
13806         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
13807         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
13808         * tests/minus-zero.h: Update comments.
13809
13810 2010-12-21  Bruno Haible  <bruno@clisp.org>
13811
13812         Tests for module 'ceil'.
13813         * modules/ceil-tests: New file.
13814         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
13815         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
13816
13817 2010-12-21  Bruno Haible  <bruno@clisp.org>
13818
13819         Tests for module 'floor'.
13820         * modules/floor-tests: New file.
13821         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
13822         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
13823
13824 2010-12-21  Bruno Haible  <bruno@clisp.org>
13825
13826         math: Fix indentation.
13827         * lib/math.in.h (floorf): Fix indentation.
13828
13829 2010-12-21  Bruno Haible  <bruno@clisp.org>
13830
13831         Fix cross-compilation guesses on Solaris.
13832         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
13833         not match "solaris2.10".
13834         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
13835         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
13836         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
13837
13838 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
13839
13840         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
13841         This fixes a problem observed with the latest coreutils snapshot
13842         that caused a test to fail on Solaris 8.  src/csplit.c's call
13843         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
13844         earlier, instead of returning the number of bytes that would have
13845         been generated; this causes csplit to incorrectly report memory
13846         exhaustion.
13847         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
13848         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
13849         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
13850         comments to match.
13851         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
13852         Fix typo in matching older versions of Solaris: "solaris2.10"
13853         is matched by the shell pattern "solaris2.[0-9]*".  This matters
13854         only for guessing while cross-compiling.
13855         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
13856
13857 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
13858
13859         ftoastr: fix comment again
13860         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
13861         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
13862         Also, simplify example a bit by using flags = 0.
13863
13864 2010-12-20  Bruno Haible  <bruno@clisp.org>
13865
13866         round*, trunc*: Update documentation regarding glibc.
13867         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
13868         * doc/posix-functions/round.texi: Likewise.
13869         * doc/posix-functions/roundl.texi: Likewise.
13870         * doc/posix-functions/truncf.texi: Likewise.
13871         * doc/posix-functions/trunc.texi: Likewise.
13872         * doc/posix-functions/truncl.texi: Likewise.
13873
13874 2010-12-20  Bruno Haible  <bruno@clisp.org>
13875
13876         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
13877         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
13878         * doc/posix-functions/round.texi: Likewise.
13879         * doc/posix-functions/roundl.texi: Likewise.
13880
13881 2010-12-20  Bruno Haible  <bruno@clisp.org>
13882
13883         ttyname_r: Add missing declaration on HP-UX 11.
13884         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
13885         HAVE_TTYNAME_R.
13886         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
13887         declared. Set HAVE_TTYNAME_R always.
13888         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
13889         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
13890         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
13891         HAVE_TTYNAME_R.
13892         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
13893
13894 2010-12-20  Bruno Haible  <bruno@clisp.org>
13895
13896         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
13897         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
13898         * doc/posix-functions/getlogin_r.texi: Likewise.
13899         * tests/test-getlogin.c: Include <errno.h>.
13900         (main): Avoid test failure on HP-UX 11.11.
13901         * tests/test-getlogin_r.c (main): Likewise.
13902
13903 2010-12-20  Bruno Haible  <bruno@clisp.org>
13904
13905         getlogin_r: Add missing declaration on HP-UX 11.
13906         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
13907         declared also when it exists as a function.
13908         * doc/posix-functions/getlogin_r.texi: Document this workaround.
13909
13910 2010-12-20  Bruno Haible  <bruno@clisp.org>
13911
13912         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
13913         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
13914         through wcrtomb.
13915
13916 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
13917
13918         ftoastr: fix comment
13919         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
13920         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
13921
13922 2010-12-19  Bruno Haible  <bruno@clisp.org>
13923
13924         isnan: Ensure it is a macro.
13925         * lib/math.in.h (isnan): Define as a macro if not already a macro.
13926         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
13927         Solaris.
13928
13929 2010-12-19  Bruno Haible  <bruno@clisp.org>
13930
13931         ldexpl test: Fix link error on OSF/1 5.1.
13932         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
13933
13934 2010-12-19  Bruno Haible  <bruno@clisp.org>
13935
13936         wctype: Make it work in C++ mode on OSF/1 5.1.
13937         * lib/wctype.in.h (iswblank): Declare but not define here.
13938         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
13939         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
13940         * modules/wctype (Files): Add lib/iswblank.c.
13941
13942 2010-12-19  Bruno Haible  <bruno@clisp.org>
13943
13944         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
13945         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
13946         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
13947
13948 2010-12-19  Bruno Haible  <bruno@clisp.org>
13949
13950         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
13951         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
13952         _POSIX_PII_SOCKET.
13953         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
13954         * doc/posix-functions/recvfrom.texi: Likewise.
13955         * doc/posix-functions/send.texi: Likewise.
13956         * doc/posix-functions/sendto.texi: Likewise.
13957
13958 2010-12-19  Bruno Haible  <bruno@clisp.org>
13959
13960         tcgetsid: Add missing declaration on OSF/1 5.1.
13961         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
13962         HAVE_TCGETSID.
13963         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
13964         Don't set HAVE_TCGETSID.
13965         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
13966         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
13967         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
13968         HAVE_TCGETSID.
13969         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
13970
13971 2010-12-19  Bruno Haible  <bruno@clisp.org>
13972
13973         stdio: Fix problem with popen() declaration on OSF/1 5.1.
13974         * lib/stdio.in.h: During the include_next statement, let recursive
13975         includes of this file include only the system header file.
13976
13977 2010-12-19  Bruno Haible  <bruno@clisp.org>
13978
13979         iconv_open: Fix regression from 2010-12-04.
13980         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
13981         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
13982
13983 2010-12-19  Bruno Haible  <bruno@clisp.org>
13984
13985         stdbool test: Avoid a gcc warning.
13986         * tests/test-stdbool.c (main): Fail if e1 is false.
13987         Reported by Jim Meyering.
13988
13989 2010-12-19  Jim Meyering  <meyering@redhat.com>
13990
13991         setenv: restore to working order
13992         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
13993         mistakenly removed.
13994         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
13995         HAVE_SETENV.
13996         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
13997         HAVE_SETENV.
13998
13999 2010-12-19  Bruno Haible  <bruno@clisp.org>
14000
14001         Document some different function declarations on OSF/1 5.1.
14002         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
14003         * doc/posix-functions/inet_ntop.texi: Likewise.
14004         * doc/posix-functions/gethostname.texi: Likewise.
14005         * lib/unistd.in.h (gethostname): Update comment.
14006
14007 2010-12-19  Bruno Haible  <bruno@clisp.org>
14008
14009         doc: Mention vasprintf-posix module.
14010         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
14011         the 'vasprintf-posix' module.
14012         * doc/glibc-functions/vasprintf.texi: Likewise.
14013
14014 2010-12-19  Bruno Haible  <bruno@clisp.org>
14015
14016         unsetenv: Add missing declaration on OSF/1 5.1.
14017         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
14018         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
14019         Don't set HAVE_UNSETENV. In the test program, set _BSD.
14020         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
14021         not HAVE_UNSETENV.
14022         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
14023         HAVE_UNSETENV.
14024         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
14025
14026 2010-12-19  Bruno Haible  <bruno@clisp.org>
14027
14028         setenv: Add missing declaration on OSF/1 5.1.
14029         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
14030         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
14031         declared. Don't set HAVE_SETENV.
14032         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
14033         not HAVE_SETENV.
14034         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
14035         HAVE_SETENV.
14036         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
14037
14038 2010-12-19  Bruno Haible  <bruno@clisp.org>
14039
14040         nl_langinfo tests: Avoid gcc warning.
14041         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
14042
14043 2010-12-19  Bruno Haible  <bruno@clisp.org>
14044
14045         mknod: Avoid error in C++ mode on OSF/1 with GCC.
14046         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
14047         _GL_CXXALIAS_SYS.
14048
14049 2010-12-19  Bruno Haible  <bruno@clisp.org>
14050
14051         stdbool: Relax test.
14052         * tests/test-stdbool.c (e): Don't require that casts from a variable's
14053         address to 'bool' work in static initializer, for compilers other than
14054         GCC.
14055
14056 2010-12-19  Bruno Haible  <bruno@clisp.org>
14057
14058         ftello: Add missing declaration on OSF/1 5.1.
14059         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
14060         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
14061         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
14062         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
14063         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
14064
14065 2010-12-19  Bruno Haible  <bruno@clisp.org>
14066
14067         fseeko: Add missing declaration on OSF/1 5.1.
14068         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
14069         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
14070         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
14071         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
14072         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
14073
14074 2010-12-19  Bruno Haible  <bruno@clisp.org>
14075
14076         fchdir: Add missing declaration on OSF/1 5.1.
14077         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
14078         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
14079         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
14080         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
14081         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
14082
14083 2010-12-19  Bruno Haible  <bruno@clisp.org>
14084
14085         relocatable-prog-wrapper: Separate from relocatable-prog.
14086         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
14087         uninstall-relocwrapper rule here.
14088         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
14089         Reported by Ian Beckwith <ianb@erislabs.net>.
14090
14091 2010-12-19  Bruno Haible  <bruno@clisp.org>
14092
14093         unistr/u8-mbsnlen: Add missing dependency.
14094         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
14095         Reported by Ian Beckwith <ianb@erislabs.net>.
14096
14097 2010-12-19  Bruno Haible  <bruno@clisp.org>
14098
14099         iconv: Make it possible again to use this module without 'iconv-h'.
14100         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
14101         if it is not defined.
14102         Reported by Ian Beckwith <ianb@erislabs.net>.
14103
14104 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
14105
14106         acl: port to Solaris 8 when copying from tmpfs to ufs
14107         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
14108         error number.  Problem observed on Solaris 8 with latest
14109         coreutils, with "mv A B", where A is on a tmpfs file system and B
14110         is on a ufs file system.  This caused coreutils' mv/part-symlink
14111         test to fail.
14112
14113         tests: set fail=0 at start
14114         * tests/init.sh (setup_): Move fail=0 initialization here ...
14115         (mktempd_): ... from here, so that tests can rely on fail being
14116         set to 0 initially.  This fixes a problem in coreutils; see:
14117         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
14118
14119 2010-12-18  Bruno Haible  <bruno@clisp.org>
14120
14121         memmem-simple: Stylistic changes.
14122         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
14123         Fix preprocessor directive indentation.
14124
14125 2010-12-15  Pádraig Brady <P@draigBrady.com>
14126
14127         memmem, memmem-simple: reorganize and expand empty needle check
14128         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
14129         functional checks to memmem-simple so that one has a fully functional
14130         memmem by using just this module.
14131         Restrict the performance only check to the memmem module.
14132         Also expand the empty needle check to ensure the correct
14133         pointer is returned, not just a non NULL pointer.
14134         * doc/glibc-functions/memmem.texi: Rearrange the portability
14135         documentation to correlate with the rearranged checks.
14136         Clarify exactly how the memmem and memmem-simple modules
14137         relate to each other.
14138
14139 2010-12-15  Pádraig Brady <P@draigBrady.com>
14140             Bruno Haible  <bruno@clisp.org>
14141
14142         Improve cross-compilation guesses for uClibc.
14143         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
14144         that uClibc does not have the glibc bug.
14145         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
14146         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
14147
14148 2010-12-14  Eric Blake  <eblake@redhat.com>
14149
14150         configmake: provide fallbacks for oldest supported autotools
14151         * m4/configmake.m4: New file.
14152         * modules/configmake (Files): Ship it.
14153         (configure.ac): Use it to guarantee fallbacks.
14154
14155 2010-12-13  Pádraig Brady <P@draigBrady.com>
14156
14157         read-file: Improve handling of large files
14158         * lib/read-file.c (fread_file): Minimize realloc()s
14159         for regular files, and better manage sizes around SIZE_MAX.
14160
14161 2010-12-13  Eric Blake  <eblake@redhat.com>
14162
14163         cloexec, fcntl: relax license
14164         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
14165         consent from all contributors.
14166         * modules/fcntl (License): Likewise.
14167
14168 2010-12-10  Bruno Haible  <bruno@clisp.org>
14169
14170         Tests for module 'pipe-posix'.
14171         * modules/pipe-posix-tests: New file.
14172         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
14173
14174 2010-12-10  Bruno Haible  <bruno@clisp.org>
14175
14176         pipe-posix: Make it work in C++ mode.
14177         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
14178         (pipe): Use common idiom, not a macro definition.
14179         * lib/pipe.c: New file.
14180         * m4/pipe.m4: New file.
14181         * modules/pipe-posix (Description): Enhance.
14182         (Files): Add lib/pipe.c, m4/pipe.m4.
14183         (configure.ac): Invoke gl_FUNC_PIPE.
14184         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
14185         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
14186         * tests/test-unistd-c++.cc: Check the signature of pipe.
14187
14188 2010-12-10  Bruno Haible  <bruno@clisp.org>
14189
14190         Rename module 'pipe' to 'spawn-pipe'.
14191         * modules/spawn-pipe: New file, renamed from modules/pipe.
14192         (Files, configure.ac, Makefile.am): Update.
14193         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
14194         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
14195         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
14196         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
14197         "spawn-pipe.h" instead of "pipe.h".
14198         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
14199         to gl_SPAWN_PIPE.
14200         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
14201         (Files, Makefile.am): Update.
14202         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
14203         Update.
14204         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
14205         Include "spawn-pipe.h" instead of "pipe.h".
14206         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
14207         * lib/javacomp.c: Likewise.
14208         * lib/javaversion.c: Likewise.
14209         * lib/pipe-filter-gi.c: Likewise.
14210         * lib/pipe-filter-ii.c: Likewise.
14211         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
14212         * modules/javacomp (Depends-on): Likewise.
14213         * modules/javaversion (Depends-on): Likewise.
14214         * modules/pipe-filter-gi (Depends-on): Likewise.
14215         * modules/pipe-filter-ii (Depends-on): Likewise.
14216         * MODULES.html.sh (Executing programs): Update.
14217         * NEWS: Mention the change.
14218
14219 2010-12-10  Eric Blake  <eblake@redhat.com>
14220
14221         pipe-posix: new module
14222         * modules/pipe-posix: New file.
14223         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
14224         (gl_UNISTD_H): Check for declaration.
14225         * modules/unistd (Makefile.am): Substitute it.
14226         * lib/unistd.in.h (pipe): Provide it for mingw.
14227         * doc/posix-functions/pipe.texi (pipe): Update documentation.
14228         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
14229
14230 2010-12-07  Bruno Haible  <bruno@clisp.org>
14231
14232         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
14233         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
14234         u8_strcmp_gnu.
14235         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
14236
14237 2010-12-06  Bruno Haible  <bruno@clisp.org>
14238
14239         Update internal documentation.
14240         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
14241
14242 2010-12-04  Bruno Haible  <bruno@clisp.org>
14243
14244         Put more information about failed tests into the test return codes.
14245         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
14246         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
14247         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
14248         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
14249         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
14250         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
14251         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
14252         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
14253         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
14254         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
14255         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
14256         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
14257         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
14258         * m4/stdint.m4 (gl_STDINT_H): Likewise.
14259         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
14260         returns a bit mask.
14261         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
14262         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
14263         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
14264         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
14265         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
14266         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
14267         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
14268         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
14269         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
14270         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
14271         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
14272         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
14273         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
14274         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
14275         * m4/link.m4 (gl_FUNC_LINK): Likewise.
14276         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
14277         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
14278         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
14279         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
14280         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
14281         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
14282         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
14283         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
14284         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
14285         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
14286         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
14287         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
14288         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
14289         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
14290         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
14291         gl_PRINTF_PRECISION): Likewise.
14292         * m4/regex.m4 (gl_REGEX): Likewise.
14293         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
14294         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
14295         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
14296         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
14297         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
14298         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
14299         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
14300         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
14301         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
14302         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
14303         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
14304         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
14305         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
14306         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
14307         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
14308         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
14309         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
14310         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
14311         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
14312         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
14313         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
14314         enumerated value.
14315         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
14316
14317 2010-12-04  Bruno Haible  <bruno@clisp.org>
14318
14319         Update for Solaris 11 2010-11.
14320         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
14321         Express, released in November 2010.
14322
14323 2010-12-04  Bruno Haible  <bruno@clisp.org>
14324
14325         nproc: Relax license.
14326         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
14327         and Paul Eggert.
14328         Requested by Ludovic Courtès <ludo@gnu.org>.
14329
14330 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
14331
14332         utimecmp: fine-grained src to nearby coarse-grained dest
14333
14334         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
14335         and the source is on a file system with higher-resolution time
14336         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
14337         not work, and the time stamps are close together, the algorithm to
14338         determine the exact resolution from the read-back mtime was buggy:
14339         it had a "!=" where it should have had an "==".  This bug has been
14340         in the code ever since it was introduced to gnulib.
14341         Problem reported by Dan Jacobson in
14342         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
14343
14344 2010-11-30  Bruno Haible  <bruno@clisp.org>
14345
14346         strerror_r-posix: Fix autoconf test.
14347         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
14348
14349 2010-11-28  Bruno Haible  <bruno@clisp.org>
14350             Paul Eggert  <eggert@cs.ucla.edu>
14351
14352         Tests for module 'getdomainname'.
14353         * modules/getdomainname-tests: New file.
14354         * tests/test-getdomainname.c: New file, based on
14355         tests/test-gethostname.c.
14356
14357 2010-11-28  Bruno Haible  <bruno@clisp.org>
14358             Paul Eggert  <eggert@cs.ucla.edu>
14359
14360         getdomainname: Use the system function when possible.
14361         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
14362         (getdomainname): Replace if needed. Provide the declaration if it is
14363         missing. Don't use _GL_CXXALIAS_SYS_CAST.
14364         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
14365         (getdomainname): When the system has getdomainname, call the system
14366         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
14367         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
14368         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
14369         found in libnsl. Look for the declaration also in <netdb.h>. Replace
14370         the function if its second argument is of type 'int' or if it is found
14371         in libnsl.
14372         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
14373         <sys/systeminfo.h> and sysinfo().
14374         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
14375         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14376         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
14377         HAVE_GETDOMAINNAME.
14378         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
14379         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
14380         * doc/glibc-functions/getdomainname.texi: Document the problems with
14381         the getdomainname declaration.
14382
14383 2010-11-28  Bruno Haible  <bruno@clisp.org>
14384
14385         sys_socket: Ensure ss_family field on AIX.
14386         * lib/sys_socket.in.h (ss_family): New macro definition.
14387         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
14388         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
14389         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
14390         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
14391         * modules/sys_socket (Makefile.am): Substitute
14392         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
14393         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
14394
14395 2010-11-27  Bruno Haible  <bruno@clisp.org>
14396
14397         readline: Improve configure output.
14398         * m4/readline.m4 (gl_FUNC_READLINE): Make the
14399         "checking for readline..." result understandable.
14400
14401 2010-11-27  Bruno Haible  <bruno@clisp.org>
14402
14403         *printf-posix: Detect a bug on Solaris 10/x86.
14404         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
14405         for floating-point output.
14406         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
14407         directive.
14408         * tests/test-snprintf-posix.h (test_function): Likewise.
14409         * tests/test-sprintf-posix.h (test_function): Likewise.
14410         * tests/test-vasprintf-posix.c (test_function): Likewise.
14411         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
14412         * doc/posix-functions/printf.texi: Likewise.
14413         * doc/posix-functions/snprintf.texi: Likewise.
14414         * doc/posix-functions/sprintf.texi: Likewise.
14415         * doc/posix-functions/vfprintf.texi: Likewise.
14416         * doc/posix-functions/vprintf.texi: Likewise.
14417         * doc/posix-functions/vsnprintf.texi: Likewise.
14418         * doc/posix-functions/vsprintf.texi: Likewise.
14419         * doc/glibc-functions/obstack_printf.texi: Likewise.
14420         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
14421
14422 2010-11-27  Bruno Haible  <bruno@clisp.org>
14423
14424         Fix link error when module libunistring-optional is in use.
14425         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
14426         * modules/striconveha-tests (Makefile.am): Likewise.
14427
14428 2010-11-27  Bruno Haible  <bruno@clisp.org>
14429
14430         regex: Mention link dependencies.
14431         * modules/regex (Link): New section.
14432         * modules/rpmatch (Link): Likewise.
14433         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
14434
14435 2010-11-27  Bruno Haible  <bruno@clisp.org>
14436
14437         ftoastr: Fix compilation error on Solaris.
14438         * lib/ftoastr.c: Include <config.h>.
14439
14440 2010-11-27  Bruno Haible  <bruno@clisp.org>
14441
14442         getloadavg: Update documentation.
14443         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
14444
14445 2010-11-27  Bruno Haible  <bruno@clisp.org>
14446
14447         sys_socket: Fix test whether the functions are declared.
14448         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
14449         not <sys/select.h>.
14450
14451 2010-11-27  Bruno Haible  <bruno@clisp.org>
14452
14453         getpass: Make sure to get system declaration on some platforms.
14454         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
14455         gl_USE_SYSTEM_EXTENSIONS.
14456         * modules/getpass (Depends-on): Add extensions.
14457
14458 2010-11-26  Bruno Haible  <bruno@clisp.org>
14459
14460         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
14461         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
14462         'iconv' module is present.
14463         (ICONV_CONST): New macro.
14464         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
14465         ICONV_CONST.
14466         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
14467         set ICONV_CONST.
14468         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
14469         here.
14470         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
14471         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
14472         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
14473         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
14474         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
14475         present.
14476
14477 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
14478
14479         ftoastr: comment fix
14480         * lib/ftoastr.c: "little" -> "little or no" in comment
14481
14482 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
14483
14484         stdint: port to GCC 4.3 + OSX + Octave
14485         On this platform, stdint.h is buggy and defines int64_t to long
14486         long int.  The replacement defined it to long int, causing
14487         problems with C++ style name mangling.  Instead, trust the system
14488         definition if INT64_MAX is defined, and likewise for the unsigned
14489         variant.   Problem reported by Jarno Rajahalme in
14490         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
14491         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
14492         and don't mess with int64_t and INT64_MAX in this case.
14493         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
14494
14495 2010-11-24  Bruno Haible  <bruno@clisp.org>
14496
14497         doc: Corrections regarding MacOS X 10.4 and 10.5.
14498         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
14499         MacOS X.
14500         Reported by Simon Josefsson.
14501
14502 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
14503
14504         Uninstall ".bin" files installed by relocwrapper.
14505         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
14506         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
14507         unless it is already there.
14508
14509 2010-11-21  Bruno Haible  <bruno@clisp.org>
14510
14511         Update for NetBSD 5.0.
14512         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
14513         NetBSD; the test fails on NetBSD 5.0.
14514         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
14515         about NetBSD.
14516
14517 2010-11-21  Bruno Haible  <bruno@clisp.org>
14518
14519         Update for HP-UX 11.23 and HP-UX 11.31.
14520         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
14521         HP-UX.
14522
14523 2010-11-21  Bruno Haible  <bruno@clisp.org>
14524
14525         Update for MacOS X 10.5.
14526         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
14527         MacOS X; the test fails on MacOS X 10.5.8.
14528         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
14529         about MacOS X.
14530
14531 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
14532
14533         bootstrap: add bootstrap_sync option.
14534         See discussion at
14535         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
14536         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
14537         * build-aux/bootstrap: Accept --bootstrap-sync to update
14538         bootstrap if it is not identical to the local gnulib's
14539         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
14540         enable this by default.  Accept --no-bootstrap-sync to disable
14541         it.
14542
14543 2010-11-20  Bruno Haible  <bruno@clisp.org>
14544
14545         Ensure that <features.h> is included before __GLIBC__ is tested.
14546         * lib/printf-parse.h: Include <features.h>.
14547         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
14548         Reported by Mike Frysinger <vapier@gentoo.org>.
14549
14550         Ensure that <features.h> is included before __GLIBC__ is tested.
14551         * lib/wchar.in.h: Include <features.h>.
14552         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
14553         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
14554         Reported by Mike Frysinger <vapier@gentoo.org>.
14555
14556         Ensure that <features.h> is included before __GLIBC__ is tested.
14557         * lib/arpa_inet.in.h: Include <features.h>.
14558         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
14559         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
14560         Reported by Mike Frysinger <vapier@gentoo.org>.
14561
14562         Ensure that <features.h> is included before __GLIBC__ is tested.
14563         * build-aux/link-warning.h: Include <features.h>.
14564         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
14565         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
14566         Reported by Mike Frysinger <vapier@gentoo.org>.
14567
14568         Ensure that <features.h> is included before __GLIBC__ is tested.
14569         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
14570         Reported by Mike Frysinger <vapier@gentoo.org>.
14571
14572 2010-11-20  Bruno Haible  <bruno@clisp.org>
14573
14574         memmem: Fix autoconf test.
14575         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
14576
14577 2010-11-20  Bruno Haible  <bruno@clisp.org>
14578
14579         Port to uClibc.
14580         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
14581         * lib/fcntl.in.h: Likewise.
14582         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
14583         * lib/mbrtowc.c (mbrtowc): Likewise.
14584         * lib/relocatable.c (find_shared_library_fullname): Likewise.
14585         * lib/strerror_r.c: Likewise.
14586         * lib/unistr/u8-strnlen.c: Likewise.
14587         * lib/vasnprintf.c (decimal_point_char): Likewise.
14588         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
14589         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
14590         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
14591         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
14592         * tests/test-sigaction.c (handler, main): Likewise.
14593         * lib/freading.h: Treat uClibc like a non-glibc platform.
14594         * lib/freading.c: Likewise.
14595         * lib/gettext.h: Likewise.
14596         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
14597         Likewise.
14598         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
14599         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
14600         * lib/propername.c (proper_name_utf8): Likewise.
14601         * lib/spawn.in.h: Likewise.
14602         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
14603         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
14604         mem_cd_iconveh_internal): Likewise.
14605         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
14606         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
14607         strstr, strcasestr): Likewise.
14608         * lib/unicodeio.c (unicode_to_mb): Likewise.
14609         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
14610         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
14611         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
14612         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
14613         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
14614         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
14615         * lib/unistr/u8-stpncpy.c: Likewise.
14616         * lib/vasnprintf.c (VASNPRINTF): Likewise.
14617         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
14618         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
14619         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
14620         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
14621         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
14622         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
14623         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
14624         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
14625         Likewise.
14626         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
14627         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
14628         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
14629         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
14630         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
14631         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
14632         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
14633         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
14634         * tests/test-getopt.h (OPTIND_MIN): Likewise.
14635         * tests/test-striconveha.c (main): Likewise.
14636         * tests/test-vasnprintf-posix.c (test_function): Likewise.
14637         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
14638         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
14639         * doc/posix-functions/getline.texi: Likewise.
14640         Reported by Mike Frysinger <vapier@gentoo.org>.
14641
14642 2010-11-20  Bruno Haible  <bruno@clisp.org>
14643
14644         nproc: Fix condition.
14645         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
14646         HAVE_PTHREAD_AFFINITY_NP.
14647
14648 2010-11-20  Bruno Haible  <bruno@clisp.org>
14649
14650         Fix a comment.
14651         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
14652
14653 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
14654
14655         ftoastr: don't assume snprintf
14656         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
14657         Implement a subset of snprintf here, by using sprintf safely.
14658         * modules/ftoastr (Depends-on): Remove snprintf.
14659
14660 2010-11-19  Jim Meyering  <meyering@redhat.com>
14661
14662         test-rename.h: fix compilation failure
14663         * tests/test-rename.h (test_rename): Add omitted "}".
14664
14665 2010-11-17  Jim Meyering  <meyering@redhat.com>
14666
14667         maint.mk: add a URL discussing the no-@acronym policy
14668         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
14669
14670 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
14671
14672         ftoastr: depend on snprintf, improve comments
14673         * lib/ftoastr.c: Also mention Loitsch's draft.
14674         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
14675         needed in the current implementation, but it might simplify
14676         speeding up the code later.
14677         * modules/ftoastr: Depend on snprintf; this improves portability.
14678         Suggested by Bruno Haible in the same email.
14679
14680         ftoastr: port to hosts lacking strtof and strtold
14681         Problem reported by Bruno Haible in
14682         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
14683         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
14684         environment and strtold (and presumably strtof) are not available.
14685         * modules/ftoastr (Files): Add m4/c-strtod.m4.
14686         (configure.ac): Require gl_C99_STRTOLD.
14687
14688 2010-11-18  Bruno Haible  <bruno@clisp.org>
14689
14690         c-strtold: Avoid link error on AIX 7.
14691         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
14692         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
14693         (gl_C_STRTOLD): Test whether strtold_l exists.
14694         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
14695
14696 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
14697
14698         intprops: new macro INT_BITS_STRLEN_BOUND
14699         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
14700         ftoastr.h.  This exposes an internal of intprops.h that was formerly
14701         not exposed.  Also, it uses a slightly tighter bound than before;
14702         though this makes no practical difference, we might as well be as
14703         tight as we easily can.
14704
14705         ftoastr: new module, for lossless conversion of floats to short strings
14706         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
14707         * modules/ftoastr: New files.
14708
14709 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
14710
14711         bootstrap: port to Solaris sed
14712         * build-aux/bootstrap (get_version): Port to Solaris sed.
14713         See Ralf Wildenhues's note in
14714         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
14715
14716 2010-11-14  Jim Meyering  <meyering@redhat.com>
14717
14718         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
14719         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
14720         and move definition closer to sole use.
14721
14722 2010-11-13  Jim Meyering  <meyering@redhat.com>
14723
14724         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
14725         Now we require at least autoconf-2.59, which means the work-around
14726         is no longer needed.
14727         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
14728         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
14729         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
14730         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
14731         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
14732
14733 2010-11-13  Bruno Haible  <bruno@clisp.org>
14734
14735         rename, renameat: Avoid test failures at NFS mounted locations.
14736         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
14737         functions.
14738         (test_rename): Use assert_nonexistent.
14739         * tests/test-rename.c: Include <dirent.h>.
14740         * tests/test-renameat.c: Likewise.
14741         Reported by Gary V. Vaughan <gary@gnu.org>.
14742
14743         rename, renameat: Document Linux bug with NFS
14744         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
14745         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
14746         * doc/posix-functions/renameat.texi: Likewise.
14747         Suggested by Eric Blake.
14748
14749 2010-11-13  Bruno Haible  <bruno@clisp.org>
14750
14751         rename test: Add comments.
14752         * tests/test-rename.h (test_rename): Add structure and comments.
14753
14754 2010-11-13  Eric Blake  <eblake@redhat.com>
14755
14756         maintainer-makefile: cover a few more files
14757         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
14758         scripts generated within C files, for libvirt.
14759
14760 2010-11-13  Bruno Haible  <bruno@clisp.org>
14761
14762         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
14763         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
14764         character, return the number of bytes that belong together, not always
14765         1.
14766         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
14767         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
14768         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
14769         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
14770         number of bytes of an invalid character.
14771         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
14772         (main): Invoke it.
14773         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
14774         results.
14775         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
14776         malformed byte sequences.
14777         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
14778         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
14779         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
14780         Reported by Ben Pfaff and Paolo Bonzini.
14781
14782 2010-11-13  Bruno Haible  <bruno@clisp.org>
14783
14784         openat: Work around glibc bug with fchownat() and empty file names.
14785         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
14786         (gl_FUNC_FCHOWNAT): Invoke it.
14787         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
14788         * doc/posix-functions/fchownat.texi: Document the glibc bug.
14789         Reported by Gary V. Vaughan <gary@gnu.org>.
14790
14791 2010-11-13  Bruno Haible  <bruno@clisp.org>
14792
14793         openat: Ensure autoconf macro ordering.
14794         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
14795         gl_USE_SYSTEM_EXTENSIONS.
14796         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
14797
14798 2010-11-13  Bruno Haible  <bruno@clisp.org>
14799
14800         Update comments.
14801         * lib/unistr/u8-check.c: Update file name in comments.
14802         * lib/unistr/u8-mblen.c: Likewise.
14803         * lib/unistr/u8-prev.c: Likewise.
14804         * lib/unistr/u8-strmblen.c: Likewise.
14805         * lib/unistr/u8-strmbtouc.c: Likewise.
14806
14807 2010-11-13  Jim Meyering  <meyering@redhat.com>
14808
14809         tests: avoid test failure on Solaris 10 due to lack of PATH export
14810         * tests/test-update-copyright.sh: Don't forget to export PATH.
14811
14812         init.sh: ensure that IFS is defined, just in case...
14813         * tests/init.sh (setup_): Ensure that IFS is defined,
14814         so that saving and restoring it works as expected.  This
14815         appears to be useful at least for an old version of dash
14816         from a long time ago (RH 6).  See here for details:
14817         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
14818
14819         maint.mk: tighten "test a == b" check
14820         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
14821         test to files that contain something like #!/bin/sh.
14822         Without this, coreutils would get two false positives in
14823         the comments of C source files.
14824
14825 2010-11-12  Eric Blake  <eblake@redhat.com>
14826
14827         bootstrap: fix typo in previous attempt
14828         * build-aux/bootstrap (buildreq): Correct the grouping.
14829         Reported by Paul Eggert.
14830
14831         maintainer-makefile: prohibit test x == x
14832         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
14833         Based on a report by Matthias Bolte.
14834
14835         bootstrap: allow FreeBSD gzip
14836         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
14837         which has no '.' and goes to stderr.
14838         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
14839         Reported by Matthias Bolte.
14840
14841         maintainer-makefile: check for i18n setup
14842         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
14843         will likely work.
14844
14845 2010-11-12  Bruno Haible  <bruno@clisp.org>
14846
14847         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
14848         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
14849         * lib/nanosleep.c (nanosleep): Likewise.
14850
14851 2010-11-11  Bruno Haible  <bruno@clisp.org>
14852
14853         fcntl-h: Fix for use of C++ on glibc systems.
14854         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
14855         also on glibc systems in C++ mode.
14856         Reported by Gary V. Vaughan <gary@gnu.org>.
14857
14858 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
14859
14860         mknod: avoid false failure with dash
14861         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
14862
14863 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
14864
14865         unlink: Fix "is it should" typo in diagnostic.
14866         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
14867         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
14868
14869 2010-11-11  Bruno Haible  <bruno@clisp.org>
14870
14871         Tests for module 'strerror_r-posix'.
14872         * modules/strerror_r-posix-tests: New file.
14873         * tests/test-strerror_r.c: New file.
14874         * tests/test-string-c++.cc: Check the signature of strerror_r.
14875
14876         New module 'strerror_r-posix'.
14877         * lib/string.in.h (strerror_r): New declaration.
14878         * lib/strerror_r.c: New file.
14879         * m4/strerror_r.m4: New file.
14880         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
14881         of strerror_r.
14882         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
14883         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
14884         * modules/strerror_r-posix: New file.
14885         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
14886         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
14887         * doc/posix-functions/strerror_r.texi: Mention the new module and the
14888         portability problems.
14889
14890 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
14891
14892         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
14893         line is also considered for output. Quoted function name in shell
14894         command, so temporary files for functions like MyClass::operator()
14895         are removed correctly without errors.
14896
14897 2010-11-09  Bruno Haible  <bruno@clisp.org>
14898
14899         * doc/posix-functions/strerror.texi: List more failing platforms.
14900
14901         * doc/posix-functions/strerror.texi: Add a comment.
14902
14903 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
14904
14905         fdopendir: fix bug on MacOS X when low on file descriptors
14906
14907         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
14908         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
14909         All callers changed.
14910         (fdopendir): Invoke save_cwd at the top level, not after using
14911         multiple dup() calls to use up file descriptors.  Then retry
14912         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
14913         less than the maximum number of open file descriptors, because
14914         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
14915         on Mac OS X 10.6.4 for tar 1.24
14916         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
14917         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
14918         and for tar 1.25
14919         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
14920
14921 2010-11-07  Bruno Haible  <bruno@clisp.org>
14922
14923         vasnprintf: Support I flag on glibc systems.
14924         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
14925         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
14926         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
14927         snprintf function.
14928         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
14929         glibc systems.
14930         * tests/test-vasnprintf-posix3.c: New file.
14931         * modules/vasnprintf-posix-tests (Files): Add it.
14932         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
14933
14934 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
14935
14936         [html] Fix copy/paste bug: Use unique name for compiler warnings.
14937         * MODULES.html.sh: For compiler warnings, use name
14938         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
14939
14940 2010-11-05  Eric Blake  <eblake@redhat.com>
14941
14942         ceil, floor: avoid spurious failure with icc
14943         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
14944         [denormals-as-zero] when optimizing without -mieee-fp option.
14945         * tests/test-floorf2.c (floorf_reference): Likewise.
14946         * tests/test-ceilf1.c (dummy): New function.
14947         (main): Use it to outsmart icc's optimization.
14948         * tests/test-floorf1.c (dummy, main): Likewise.
14949
14950         tests: require working signbit
14951         * modules/ceilf-tests (Depends-on): Add signbit.
14952         * modules/ceill-tests (Depends-on): Likewise.
14953         * modules/floorf-tests (Depends-on): Likewise.
14954         * modules/floorl-tests (Depends-on): Likewise.
14955         * modules/round-tests (Depends-on): Likewise.
14956         * modules/roundf-tests (Depends-on): Likewise.
14957         * modules/roundl-tests (Depends-on): Likewise.
14958         * modules/trunc-tests (Depends-on): Likewise.
14959         * modules/truncf-tests (Depends-on): Likewise.
14960         * modules/truncl-tests (Depends-on): Likewise.
14961
14962         strtod: work around icc bug
14963         * lib/strtod.c (minus_zero): Define to working value.
14964         (strtod): Use it to avoid icc bug.
14965
14966         copysign: enhance tests
14967         * modules/copysign-tests (Files): Add minus-zero.h.
14968         * tests/test-copysign.c (main): Also test zeros.
14969
14970 2010-11-04  Eric Blake  <eblake@redhat.com>
14971
14972         ceil, floor, round, trunc: enhance tests of -0
14973         * tests/test-ceilf1.c (main): Ensure correct sign of result.
14974         * tests/test-ceill.c (main): Likewise.
14975         * tests/test-floorf1.c (main): Likewise.
14976         * tests/test-floorl.c (main): Likewise.
14977         * tests/test-round1.c (main): Likewise.
14978         * tests/test-roundf1.c (main): Likewise.
14979         * tests/test-roundl.c (main): Likewise.
14980         * tests/test-trunc1.c (main): Likewise.
14981         * tests/test-truncf1.c (main): Likewise.
14982         * tests/test-truncl.c (main): Likewise.
14983
14984 2010-11-04  Eric Blake  <eblake@redhat.com>
14985
14986         frexp, tests: work around ICC bug with -zero
14987         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
14988         works with more compilers.
14989         * tests/minus-zero.h: New file.
14990         * modules/ceilf-tests (Files): Include it.
14991         * modules/ceill-tests (Files): Likewise.
14992         * modules/floorf-tests (Files): Likewise.
14993         * modules/floorl-tests (Files): Likewise.
14994         * modules/frexp-nolibm-tests (Files): Likewise.
14995         * modules/frexp-tests (Files): Likewise.
14996         * modules/frexpl-nolibm-tests (Files): Likewise.
14997         * modules/frexpl-tests (Files): Likewise.
14998         * modules/isnan-tests (Files): Likewise.
14999         * modules/isnand-nolibm-tests (Files): Likewise.
15000         * modules/isnand-tests (Files): Likewise.
15001         * modules/isnanf-nolibm-tests (Files): Likewise.
15002         * modules/isnanf-tests (Files): Likewise.
15003         * modules/isnanl-nolibm-tests (Files): Likewise.
15004         * modules/isnanl-tests (Files): Likewise.
15005         * modules/round-tests (Files): Likewise.
15006         * modules/roundf-tests (Files): Likewise.
15007         * modules/roundl-tests (Files): Likewise.
15008         * modules/ldexpl-tests (Files): Likewise.
15009         * modules/signbit-tests (Files): Likewise.
15010         * modules/snprintf-posix-tests (Files): Likewise.
15011         * modules/sprintf-posix-tests (Files): Likewise.
15012         * modules/strtod-tests (Files): Likewise.
15013         * modules/trunc-tests (Files): Likewise.
15014         * modules/truncf-tests (Files): Likewise.
15015         * modules/truncl-tests (Files): Likewise.
15016         * modules/vsnprintf-posix-tests (Files): Likewise.
15017         * modules/vsprintf-posix-tests (Files): Likewise.
15018         * modules/vasnprintf-posix-tests (Files): Likewise.
15019         * modules/vasprintf-posix-tests (Files): Likewise.
15020         * tests/test-ceilf1.c (main): Use it.
15021         * tests/test-ceill.c (main): Likewise.
15022         * tests/test-floorf1.c (main): Likewise.
15023         * tests/test-floorl.c (main): Likewise.
15024         * tests/test-frexp.c (main): Likewise.
15025         * tests/test-frexpl.c (main): Likewise.
15026         * tests/test-isnan.c (main): Likewise.
15027         * tests/test-isnand.h (main): Likewise.
15028         * tests/test-isnanf.h (main): Likewise.
15029         * tests/test-isnanl.h (main): Likewise.
15030         * tests/test-ldexpl.c (main): Likewise.
15031         * tests/test-round.c (main): Likewise.
15032         * tests/test-roundf.c (main): Likewise.
15033         * tests/test-roundl.c (main): Likewise.
15034         * tests/test-signbit.c (test_signbitf, test_signbitd)
15035         (test_signbitl): Likewise.
15036         * tests/test-snprintf-posix.h (test_function): Likewise.
15037         * tests/test-sprintf-posix.h (test_function): Likewise.
15038         * tests/test-strtod.c (main): Likewise.
15039         * tests/test-trunc1.c (main): Likewise.
15040         * tests/test-truncf1.c (main): Likewise.
15041         * tests/test-truncl.c (main): Likewise.
15042
15043         isnanl: work around icc bug
15044         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
15045
15046 2010-11-03  Eric Blake  <eblake@redhat.com>
15047
15048         tests: fix compiler warnings
15049         * tests/test-getopt.h (test_getopt): Fix condition.
15050         * tests/test-getopt_long.h (test_getopt_long): Likewise.
15051         * tests/test-pipe2.c (main): Likewise.
15052         * tests/test-quotearg-simple.c (main): Avoid icc warning.
15053
15054         utimens: fix broken m4 test
15055         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
15056
15057 2010-10-28  Bruno Haible  <bruno@clisp.org>
15058
15059         posix_spawn*, getdtablesize: Relax license.
15060         * modules/posix_spawn (License): Change to LGPLv2+.
15061         * modules/posix_spawnp (License): Likewise.
15062         * modules/posix_spawn-internal (License): Likewise.
15063         * modules/posix_spawnattr_init (License): Likewise.
15064         * modules/posix_spawnattr_getflags (License): Likewise.
15065         * modules/posix_spawnattr_setflags (License): Likewise.
15066         * modules/posix_spawnattr_getpgroup (License): Likewise.
15067         * modules/posix_spawnattr_setpgroup (License): Likewise.
15068         * modules/posix_spawnattr_getschedparam (License): Likewise.
15069         * modules/posix_spawnattr_setschedparam (License): Likewise.
15070         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
15071         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
15072         * modules/posix_spawnattr_getsigdefault (License): Likewise.
15073         * modules/posix_spawnattr_setsigdefault (License): Likewise.
15074         * modules/posix_spawnattr_getsigmask (License): Likewise.
15075         * modules/posix_spawnattr_setsigmask (License): Likewise.
15076         * modules/posix_spawnattr_destroy (License): Likewise.
15077         * modules/posix_spawn_file_actions_init (License): Likewise.
15078         * modules/posix_spawn_file_actions_addclose (License): Likewise.
15079         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
15080         * modules/posix_spawn_file_actions_addopen (License): Likewise.
15081         * modules/posix_spawn_file_actions_destroy (License): Likewise.
15082         * modules/getdtablesize (License): Likewise.
15083         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
15084
15085 2010-10-26  Bruno Haible  <bruno@clisp.org>
15086
15087         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
15088         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
15089         Cygwin and mingw.
15090         Suggested by Eric Blake.
15091
15092 2010-10-26  Bruno Haible  <bruno@clisp.org>
15093
15094         stdio: Work around compilation error due to renameat() on Solaris 10.
15095         * lib/stdio.in.h: Include <unistd.h> on Solaris.
15096         * lib/renameat.c: Don't include <unistd.h> here.
15097         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
15098         Reported by Paul Eggert and Eric Blake.
15099
15100 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
15101
15102         renameat: port to Solaris 10, which declares renameat in unistd.h
15103
15104         * lib/renameat.c: Include unistd.h before stdio.h, because
15105         Solaris 10 declares renameat in unistd.h.  Problem encountered
15106         when building GNU tar 1.24 on Solaris 10.
15107
15108 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
15109
15110         fdopendir: fix C89 compilation
15111         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
15112         compilers.
15113
15114 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
15115
15116         inttostr: simplify by removing unnecessary redundancy
15117         * lib/anytostr.c: Don't include verify.h.
15118         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
15119         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
15120         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
15121         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
15122         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
15123         Likewise.
15124         * modules/inttostr (Depends-on): Remove 'verify'.
15125
15126 2010-10-23  Bruno Haible  <bruno@clisp.org>
15127
15128         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
15129         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
15130         Reported by Eric Blake.
15131
15132 2010-10-23  Bruno Haible  <bruno@clisp.org>
15133
15134         Tests: Fix LOCALE_JA on MirBSD 10.
15135         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
15136         to an UTF-8 locale.
15137         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
15138         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
15139         Reported by Eric Blake.
15140
15141 2010-10-21  Bruno Haible  <bruno@clisp.org>
15142
15143         nl_langinfo test: Avoid test failure on NetBSD 5.
15144         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
15145         Reported by Eric Blake.
15146
15147 2010-10-21  Eric Blake  <eblake@redhat.com>
15148
15149         c-stack: work around libsigsegv 2.8 bug
15150         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
15151         overflow on at least PowerPC64.
15152
15153 2010-10-17  Bruno Haible  <bruno@clisp.org>
15154
15155         userspec: Drop redundant file.
15156         * modules/userspec (Files): Remove lib/inttostr.h.
15157
15158 2010-10-17  Bruno Haible  <bruno@clisp.org>
15159
15160         nl_langinfo tests: Silence some warnings.
15161         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
15162         Reported by Jim Meyering.
15163
15164 2010-10-17  Bruno Haible  <bruno@clisp.org>
15165
15166         Make use of GCC's attribute __alloc_size__.
15167         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
15168         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
15169         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
15170         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
15171         __alloc_size__.
15172         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
15173         Suggested by Jim Meyering.
15174
15175 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
15176
15177         bootstrap: anchor .gitignore entries.
15178         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
15179         with...
15180         (insert_vc_ignore): ... this new function, which prepends `/' to
15181         all .gitignore entries before passing them to
15182         insert_sorted_if_absent.
15183
15184 2010-10-16  Bruno Haible  <bruno@clisp.org>
15185
15186         nextafter: Fix configure check.
15187         * modules/nextafter (configure.ac): Correct expected prototype.
15188
15189 2010-10-16  Bruno Haible  <bruno@clisp.org>
15190
15191         termios: Update documentation.
15192         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
15193
15194 2010-10-16  Bruno Haible  <bruno@clisp.org>
15195
15196         tests: Make them compile with TinyCC.
15197         * tests/test-strstr.c (main): Remove parentheses around array
15198         initializer.
15199
15200 2010-10-15  Eric Blake  <eblake@redhat.com>
15201
15202         ignore-value: make header idempotent
15203         * lib/ignore-value.h: Add double-inclusion guards.
15204         Reported by Stefan Berger.
15205
15206 2010-10-15  Jim Meyering  <meyering@redhat.com>
15207
15208         GNUmakefile: handle "stable" target, not "major"
15209         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
15210         lists in maint.mk and announce-gen.  Without this, "make stable"
15211         would fail to ensure that $(VERSION) is up to date.
15212
15213 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
15214
15215         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
15216         & co.
15217
15218 2010-10-14  Bruno Haible  <bruno@clisp.org>
15219
15220         vasnprintf: Don't set errno to 0.
15221         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
15222         block that sets it to 0.
15223         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
15224
15225 2010-10-14  Bruno Haible  <bruno@clisp.org>
15226
15227         socketlib: Fix.
15228         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
15229         gl_PREREQ_SYS_H_WINSOCK2.
15230         Reported by Ian Beckwith <ianb@erislabs.net>.
15231
15232 2010-10-13  Jim Meyering  <meyering@redhat.com>
15233
15234         test-select-stdin.c: avoid warn_unused_result warnings
15235         * tests/test-select-stdin.c: Include "macros.h".
15236         ASSERT that read and fflush succeed.
15237
15238 2010-10-13  Jim Meyering  <meyering@redhat.com>
15239
15240         git-version-gen: do require git-VC'd files in cwd
15241         * build-aux/git-version-gen: Reject a git version string
15242         if there are no commits associated with the current directory.
15243         This avoids an unlikely false-positive (unrelated dir whose parent
15244         repository also contains a tag matching v*), as pointed out
15245         by Giuseppe Scrivano in
15246         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
15247
15248 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
15249
15250         argv-iter: omit nonconforming declaration
15251         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
15252         enum arg_iter_err declaration, which doesn't conform to C99.
15253         Solaris 10 cc warns about this.
15254
15255 2010-10-13  Eric Blake  <eblake@redhat.com>
15256
15257         termios: fix compilation on mingw
15258         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
15259         (gl_TERMIOS_H): Adjust it on mingw.
15260         * modules/termios (Makefile.am): Substitute new key.
15261         * lib/termios.in.h (includes): Make include_next conditional.
15262         * doc/posix-headers/termios.texi (termios.h): Update
15263         documentation.
15264         Reported by Daniel P. Berrange.
15265
15266 2010-10-13  Jim Meyering  <meyering@redhat.com>
15267
15268         git-version-gen: don't require that .git/ be in the current dir
15269         * build-aux/git-version-gen: Adjust this script so that it works
15270         when run from any working directory beneath the top-level .git/-
15271         containing directory.  Inspired by a patch from Giuseppe Scrivano,
15272         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
15273
15274         test-select: avoid warn_unused_result warnings
15275         * tests/test-select.c: Include "macros.h".
15276         ASSERT that each call to read, write, and pipe succeeds.
15277         While not technically required, also check each "close".
15278         * modules/select-tests (Files): Add tests/macros.h.
15279
15280         test-symlinkat: remove declaration of unused local
15281         * tests/test-symlinkat.c (main): Remove unused local, "buf".
15282
15283         test-inttostr: avoid shadowing warnings
15284         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
15285         and use malloc rather than the stack for the same reason as
15286         mentioned in the comment justifying the other allocation.
15287
15288 2010-10-11  Bruno Haible  <bruno@clisp.org>
15289
15290         stdlib: Allow multiple gnulib generated replacements to coexist.
15291         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
15292         Reported by Sam Steingold <sds@gnu.org>.
15293
15294 2010-10-11  Jim Meyering  <meyering@redhat.com>
15295
15296         fix a documentation typo
15297         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
15298
15299 2010-10-11  Eric Blake  <eblake@redhat.com>
15300
15301         futimens: work around Solaris 11 bug
15302         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
15303         * tests/test-futimens.h (test_futimens): Enhance, rather than
15304         weaken test.
15305         * doc/posix-functions/futimens.texi (futimens): Document the bug.
15306
15307 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
15308
15309         Indentation.
15310         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
15311         higher-level operators more to the left.
15312
15313 2010-10-11  Jim Meyering  <meyering@redhat.com>
15314
15315         test-futimens: avoid unwarranted test failure on Solaris 5.11
15316         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
15317         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
15318         because it tries to dereference the NULL name argument.
15319
15320 2010-10-11  Bruno Haible  <bruno@clisp.org>
15321
15322         Indentation.
15323         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
15324         indentation.
15325
15326 2010-10-11  Jim Meyering  <meyering@redhat.com>
15327
15328         spawn.in.h: make indentation consistent with parentheses
15329         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
15330         Make indentation consistent with parentheses.
15331
15332 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
15333
15334         Fix mismatched parens in previous commit
15335         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
15336         parens.
15337
15338 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
15339
15340         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
15341
15342         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
15343         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
15344         * lib/malloca.c: Include "verify.h".
15345         (verify1): Remove, replacing with a verify call.
15346         * lib/relocwrapper.c (verify1): Likewise.
15347         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
15348         Likewise.
15349         * modules/malloca (Depends-on): Add 'verify'.
15350         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
15351         * modules/vasnprintf (Depends-on): Add 'verify'.
15352         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
15353         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
15354         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
15355         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
15356         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
15357         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
15358         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
15359
15360         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
15361
15362         Formerly the style was sometimes 2*X - 1, because the C standard
15363         was wrongly thought to disallow ?: in integral constant expressions.
15364         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
15365         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
15366         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
15367         * lib/stdint.in.h (_verify_intmax_size): Likewise.
15368         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
15369         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
15370         verify that time_t cannot be floating.
15371
15372 2010-10-08  Eric Blake  <eblake@redhat.com>
15373
15374         time: enforce recent POSIX ruling that time_t is integral
15375         * lib/time.in.h (__time_t_must_be_integral): Detect any
15376         problematic systems, allowing the rest of gnulib to assume POSIX.
15377
15378 2010-10-08  Jim Meyering  <meyering@redhat.com>
15379
15380         fdopendir: fix a bug on systems lacking openat and /proc support
15381         OpenBSD 4.7 is one such system.  The most noticeable effect was
15382         failure of any application making nontrivial use of fts: rm, du,
15383         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
15384           ./rm: traversal failed: `a': Bad file descriptor
15385         Debugging that, you see that even though FD 6 was closed just
15386         prior to the opendir call in fd_clone_opendir, its resulting
15387         dir->dd_fd was 8, rather than the expected value of 6:
15388
15389         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
15390         93                close (fd);
15391         (gdb) n
15392         94                dir = fd_clone_opendir (dupfd);
15393         (gdb) n
15394         95                saved_errno = errno;
15395         (gdb) p dir->dd_fd
15396         $11 = 8
15397
15398         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
15399         The problem is that on OpenBSD, fd_clone_opendir has to resort
15400         to using the old-style save/restore CWD mechanism, due to its
15401         lack of openat/proc support, and *that* would steal the FD (6)
15402         that opendir was supposed to use.
15403
15404         The fix is to squirrel away the desired FD so that save_cwd uses a
15405         different one, and then free the dest FD right before calling opendir.
15406         That guarantees opendir will use the required file descriptor.
15407
15408         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
15409
15410 2010-10-08  Bruno Haible  <bruno@clisp.org>
15411
15412         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
15413         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
15414
15415 2010-10-08  Bruno Haible  <bruno@clisp.org>
15416
15417         nanosleep: Make replacement POSIX compliant.
15418         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
15419         is out of range.
15420         Reported by Jim Meyering.
15421
15422 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
15423
15424         bootstrap: add hook for altering gnulib.mk, for Bison
15425         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
15426         the Bison bootstrapping process can rewrite file names and variables
15427         in this file before later parts of 'bootstrap' use the file.
15428         Bison wants to include lib/gnulib.mk from the top-level makefile,
15429         so it needs the file names in this file to be relative to the top
15430         level, not relative to lib; plus it needs variable names to be
15431         rewritten.
15432         (slurp): Use the new function.
15433
15434         bootstrap: reformat for readability
15435         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
15436
15437 2010-10-08  Eric Blake  <eblake@redhat.com>
15438
15439         docs: update cygwin progress
15440         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
15441         1.7.7.
15442         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
15443         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
15444         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
15445         * doc/posix-functions/carg.texi (carg): Likewise.
15446         * doc/posix-functions/cargf.texi (cargf): Likewise.
15447         * doc/posix-functions/casin.texi (casin): Likewise.
15448         * doc/posix-functions/casinf.texi (casinf): Likewise.
15449         * doc/posix-functions/casinh.texi (casinh): Likewise.
15450         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
15451         * doc/posix-functions/catan.texi (catan): Likewise.
15452         * doc/posix-functions/catanf.texi (catanf): Likewise.
15453         * doc/posix-functions/catanh.texi (catanh): Likewise.
15454         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
15455         * doc/posix-functions/ccos.texi (ccos): Likewise.
15456         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
15457         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
15458         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
15459         * doc/posix-functions/cexp.texi (cexp): Likewise.
15460         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
15461         * doc/posix-functions/cimag.texi (cimag): Likewise.
15462         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
15463         * doc/posix-functions/clog.texi (clog): Likewise.
15464         * doc/posix-functions/clogf.texi (clogf): Likewise.
15465         * doc/posix-functions/conj.texi (conj): Likewise.
15466         * doc/posix-functions/conjf.texi (conjf): Likewise.
15467         * doc/posix-functions/cpow.texi (cpow): Likewise.
15468         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
15469         * doc/posix-functions/cproj.texi (cproj): Likewise.
15470         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
15471         * doc/posix-functions/creal.texi (creal): Likewise.
15472         * doc/posix-functions/crealf.texi (crealf): Likewise.
15473         * doc/posix-functions/csin.texi (csin): Likewise.
15474         * doc/posix-functions/csinf.texi (csinf): Likewise.
15475         * doc/posix-functions/csinh.texi (csinh): Likewise.
15476         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
15477         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
15478         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
15479         * doc/posix-functions/ctan.texi (ctan): Likewise.
15480         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
15481         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
15482         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
15483         * doc/posix-headers/complex.texi (complex.h): Likewise.
15484
15485 2010-10-07  Jim Meyering  <meyering@redhat.com>
15486
15487         parse-datetime: avoid compilation failure on OpenBSD 4.7
15488         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
15489         This works around a compilation failure on OpenBSD 4.7:
15490         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
15491
15492 2010-10-07  Eric Blake  <eblake@redhat.com>
15493
15494         docs: update cygwin progress
15495         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
15496         1.7.6.
15497         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
15498         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
15499         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
15500         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
15501         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
15502         Likewise.
15503         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
15504         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
15505         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
15506         Likewise.
15507         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
15508         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
15509         Likewise.
15510         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
15511         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
15512         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
15513         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
15514         Likewise.
15515         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
15516         Likewise.
15517         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
15518
15519         docs: update parse-datetime history
15520         * doc/parse-datetime.texi (Authors of parse_datetime): Better
15521         documentation of this function's history and alternatives.
15522
15523         cygwin: use more robust version check
15524         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
15525         exclude an eventual cygwin 1.9.1.
15526         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
15527         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
15528         (gl_FUNC_STRCASESTR): Likewise.
15529         Reported by Bruno Haible.
15530
15531 2010-10-06  Bruno Haible  <bruno@clisp.org>
15532
15533         string, sys_select: Avoid #including large headers unless necessary.
15534         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
15535         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
15536         OSF/1, BeOS, Haiku.
15537         Reported by Jim Meyering.
15538
15539 2010-10-05  Eric Blake  <eblake@redhat.com>
15540
15541         memmem, strstr, strcasestr: fix bug with long periodic needle
15542         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
15543         periodic needle having false positive.
15544         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
15545         and cygwin 1.7.7.
15546         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
15547         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
15548         (gl_FUNC_STRCASESTR): Likewise.
15549         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
15550         * tests/test-memmem.c (main): Expose the bug.
15551         * tests/test-strcasestr.c (main): Likewise.
15552         * tests/test-strstr.c (main): Likewise.
15553         * tests/test-c-strcasestr.c (main): Likewise.
15554         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
15555         * doc/posix-functions/strstr.texi (strstr): Likewise.
15556         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
15557         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
15558
15559 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
15560
15561         parse-datetime: do some more renaming
15562         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
15563         parse_datetime, not get_date.  Mention the renaming.
15564         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
15565         in comments.
15566         * m4/bison.m4: Likewise.
15567
15568 2010-10-05  Eric Blake  <eblake@redhat.com>
15569
15570         parse-datetime: better name than get_date
15571         * NEWS: Reword the deprecation notice.
15572         * modules/get_date: Rename to modules/parse-datetime.
15573         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
15574         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
15575         * lib/get_date.y: Rename to lib/parse-datetime.y.
15576         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
15577         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
15578         * doc/getdate.texi: Provide fallback wrapper.
15579         * lib/getdate.h: Move guts, and wrap...
15580         * lib/parse-datetime.h: ...new file.
15581         * lib/parse-datetime.y (get_date): Rename...
15582         (parse_datetime): ...to this.
15583         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
15584         (gl_PARSE_DATETIME): ...to this.
15585         * doc/posix-functions/getdate.texi (get_date): Provide fallback
15586         documentation.
15587         * modules/getdate (Files): Provide fallback docs and header.
15588         (Notice, Depends-on): Update references.
15589         * tests/test-parse-datetime.c: Likewise.
15590         * DEPENDENCIES: Likewise.
15591         * MODULES.html.sh (Date and time <time.h>): Likewise.
15592         * doc/parse-datetime.texi (Date input formats)
15593         (Authors of parse_datetime): Likewise.
15594         * modules/parse-datetime (Files, configure.ac, Makefile.am)
15595         (Include): Likewise.
15596         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
15597         * gnulib-tool: Likewise.
15598         * m4/bison.m4 (gl_BISON): Likewise.
15599         Suggested by Bruno Haible.
15600
15601 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
15602
15603         more ports to Solaris tr, which needs [] around ranges
15604         * gnulib-tool: Solaris tr needs [] around ranges.
15605         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
15606         * tests/test-pipe-filter-gi1.c (main): Likewise.
15607         * tests/test-pipe-filter-ii1.c (main): Likewise.
15608
15609 2010-10-05  Eric Blake  <eblake@redhat.com>
15610
15611         bootstrap: fix Solaris regression
15612         * build-aux/bootstrap (check_versions): Solaris tr still needs []
15613         around ranges.
15614         Reported by Pádraig Brady.
15615
15616         bootstrap: work with pkg-config
15617         * build-aux/bootstrap (check_versions): Also transliterate - in
15618         prerequisite name.
15619         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
15620         prerequisites that were already found, to avoid confusion.
15621         Reported by Justin Clift.
15622
15623         faccessat: remove unused wrappers
15624         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
15625         presence of these wrappers dragged in -lgen on Solaris.
15626         Reported by Clemens Brogi; fix suggested by Paul Eggert.
15627
15628 2010-10-05  Jim Meyering  <meyering@redhat.com>
15629
15630         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
15631         * Makefile (sc_pragma_columns): New syntax-check rule.
15632
15633 2010-10-04  Bruno Haible  <bruno@clisp.org>
15634
15635         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
15636         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
15637         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
15638         Reported by Bruce Korb and Eric Blake.
15639
15640 2010-10-04  Bruno Haible  <bruno@clisp.org>
15641
15642         threadlib: Make option --with-libpth-prefix work.
15643         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
15644         use $LIBPTH, not just -lpth.
15645
15646 2010-10-04  Bruno Haible  <bruno@clisp.org>
15647
15648         Avoid line length limitation from HP NonStop system header files.
15649         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
15650         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
15651         * lib/ctype.in.h: Likewise.
15652         * lib/dirent.in.h: Likewise.
15653         * lib/errno.in.h: Likewise.
15654         * lib/fcntl.in.h: Likewise.
15655         * lib/float.in.h: Likewise.
15656         * lib/getopt.in.h: Likewise.
15657         * lib/iconv.in.h: Likewise.
15658         * lib/inttypes.in.h: Likewise.
15659         * lib/langinfo.in.h: Likewise.
15660         * lib/locale.in.h: Likewise.
15661         * lib/math.in.h: Likewise.
15662         * lib/netdb.in.h: Likewise.
15663         * lib/netinet_in.in.h: Likewise.
15664         * lib/poll.in.h: Likewise.
15665         * lib/pthread.in.h: Likewise.
15666         * lib/pty.in.h: Likewise.
15667         * lib/sched.in.h: Likewise.
15668         * lib/se-selinux.in.h: Likewise.
15669         * lib/search.in.h: Likewise.
15670         * lib/signal.in.h: Likewise.
15671         * lib/spawn.in.h: Likewise.
15672         * lib/stdarg.in.h: Likewise.
15673         * lib/stddef.in.h: Likewise.
15674         * lib/stdint.in.h: Likewise.
15675         * lib/stdio.in.h: Likewise.
15676         * lib/stdlib.in.h: Likewise.
15677         * lib/string.in.h: Likewise.
15678         * lib/strings.in.h: Likewise.
15679         * lib/sys_file.in.h: Likewise.
15680         * lib/sys_ioctl.in.h: Likewise.
15681         * lib/sys_select.in.h: Likewise.
15682         * lib/sys_socket.in.h: Likewise.
15683         * lib/sys_stat.in.h: Likewise.
15684         * lib/sys_time.in.h: Likewise.
15685         * lib/sys_times.in.h: Likewise.
15686         * lib/sys_utsname.in.h: Likewise.
15687         * lib/sys_wait.in.h: Likewise.
15688         * lib/sysexits.in.h: Likewise.
15689         * lib/termios.in.h: Likewise.
15690         * lib/time.in.h: Likewise.
15691         * lib/unistd.in.h: Likewise.
15692         * lib/wchar.in.h: Likewise.
15693         * lib/wctype.in.h: Likewise.
15694         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
15695         * modules/ctype (Makefile.am): Likewise.
15696         * modules/dirent (Makefile.am): Likewise.
15697         * modules/errno (Makefile.am): Likewise.
15698         * modules/fcntl-h (Makefile.am): Likewise.
15699         * modules/float (Makefile.am): Likewise.
15700         * modules/getopt-posix (Makefile.am): Likewise.
15701         * modules/iconv-h (Makefile.am): Likewise.
15702         * modules/inttypes (Makefile.am): Likewise.
15703         * modules/langinfo (Makefile.am): Likewise.
15704         * modules/locale (Makefile.am): Likewise.
15705         * modules/math (Makefile.am): Likewise.
15706         * modules/netdb (Makefile.am): Likewise.
15707         * modules/netinet_in (Makefile.am): Likewise.
15708         * modules/poll-h (Makefile.am): Likewise.
15709         * modules/pthread (Makefile.am): Likewise.
15710         * modules/pty (Makefile.am): Likewise.
15711         * modules/sched (Makefile.am): Likewise.
15712         * modules/search (Makefile.am): Likewise.
15713         * modules/selinux-h (Makefile.am): Likewise.
15714         * modules/signal (Makefile.am): Likewise.
15715         * modules/spawn (Makefile.am): Likewise.
15716         * modules/stdarg (Makefile.am): Likewise.
15717         * modules/stddef (Makefile.am): Likewise.
15718         * modules/stdint (Makefile.am): Likewise.
15719         * modules/stdio (Makefile.am): Likewise.
15720         * modules/stdlib (Makefile.am): Likewise.
15721         * modules/string (Makefile.am): Likewise.
15722         * modules/strings (Makefile.am): Likewise.
15723         * modules/sys_file (Makefile.am): Likewise.
15724         * modules/sys_ioctl (Makefile.am): Likewise.
15725         * modules/sys_select (Makefile.am): Likewise.
15726         * modules/sys_socket (Makefile.am): Likewise.
15727         * modules/sys_stat (Makefile.am): Likewise.
15728         * modules/sys_time (Makefile.am): Likewise.
15729         * modules/sys_times (Makefile.am): Likewise.
15730         * modules/sys_utsname (Makefile.am): Likewise.
15731         * modules/sys_wait (Makefile.am): Likewise.
15732         * modules/sysexits (Makefile.am): Likewise.
15733         * modules/termios (Makefile.am): Likewise.
15734         * modules/time (Makefile.am): Likewise.
15735         * modules/unistd (Makefile.am): Likewise.
15736         * modules/wchar (Makefile.am): Likewise.
15737         * modules/wctype (Makefile.am): Likewise.
15738
15739 2010-10-04  Bruno Haible  <bruno@clisp.org>
15740
15741         read-file tests: Avoid a test failure on NonStop Kernel.
15742         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
15743         a regular file.
15744         Reported by Joachim Schmitz <schmitz@hp.com>.
15745
15746 2010-10-03  Bruno Haible  <bruno@clisp.org>
15747
15748         gnulib-tool: Fixes for --create-testdir with --libtool.
15749         * gnulib-tool (func_get_automake_snippet): Don't augment
15750         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
15751         an executable.
15752         (func_create_testdir): Handle module 'alloca' like func_import.
15753         Reported by Bruce Korb <bruce.korb@gmail.com>.
15754
15755 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
15756
15757         Avoid some lines longer than 80 characters.
15758         * lib/stdint.in.h: Break long comment lines.
15759         * lib/math.in.h: Likewise.
15760         (_GL_NUM_UINT_WORDS): New macro, for readability.
15761         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
15762         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
15763         * lib/stdlib.in.h: Likewise.
15764         * lib/spawn.in.h: Likewise.
15765         * lib/sys_socket.in.h: Update an URL.
15766         * lib/sys_stat.in.h: Break long line.
15767
15768 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
15769
15770         Improve pmccabe2html.
15771         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
15772         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
15773         when the sources change. Remove the line in the HTML about "Used
15774         ranges" (which implied that there might be other unused ranges),
15775         rename "Resume" to "Summary" (easier to understand for more users).
15776         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
15777         styles, and some unnecessary blank lines.
15778
15779 2010-10-03  Bruno Haible  <bruno@clisp.org>
15780             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
15781
15782         acl: Add support for ACLs on NonStop Kernel.
15783         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
15784         Check whether the function aclsort() exists.
15785         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
15786         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
15787         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
15788         (acl_nontrivial [HAVE_ACLSORT]: New function.
15789         (file_has_acl): Implement for NonStop Kernel.
15790         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
15791         (qset_acl): Implement for NonStop Kernel.
15792         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
15793         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
15794         (main): Implement for NonStop Kernel.
15795         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
15796         Kernel. Handle this flavor.
15797         * tests/test-set-mode-acl.sh: Likewise.
15798         * tests/test-copy-acl.sh: Likewise.
15799         * tests/test-copy-file.sh: Likewise.
15800
15801 2010-10-03  Bruno Haible  <bruno@clisp.org>
15802
15803         Info about ACLs on NonStop Kernel.
15804         * doc/acl-resources.txt: Add info about NonStop Kernel.
15805         References by Joachim Schmitz <schmitz@hp.com>.
15806
15807 2010-10-02  Bruno Haible  <bruno@clisp.org>
15808
15809         Define missing EDQUOT on NonStop Kernel.
15810         * lib/errno.in.h (EDQUOT): Assign a value if missing.
15811         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
15812         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
15813         missing.
15814         * doc/posix-headers/errno.texi: Mention the NSK bug.
15815         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
15816         Reported by Joachim Schmitz <schmitz@hp.com>.
15817
15818 2010-10-02  Bruno Haible  <bruno@clisp.org>
15819
15820         Update doc for POSIX:2008.
15821         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
15822         Update URL of POSIX specification.
15823
15824 2010-10-02  Bruno Haible  <bruno@clisp.org>
15825
15826         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
15827         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
15828         from gnulib, not from Automake.
15829
15830 2010-10-02  Bruno Haible  <bruno@clisp.org>
15831
15832         New module 'system-posix'.
15833         * modules/system-posix: New file.
15834         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
15835         module is present.
15836         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
15837         GNULIB_SYSTEM_POSIX.
15838         * modules/stdlib (Depends-on): Remove sys_wait.
15839         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
15840         * doc/posix-functions/system.texi: Mention the new module.
15841         * doc/posix-headers/stdlib.texi: Likewise.
15842         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
15843         define test_sys_wait_macros to a no-op.
15844         Reported by Sam Steingold <sds@gnu.org>.
15845
15846 2010-09-30  Bruno Haible  <bruno@clisp.org>
15847
15848         More renaming from 'getdate' to 'get_date'.
15849         * doc/get_date.texi: Renamed from doc/getdate.texi.
15850         * modules/get_date (Files): Update.
15851         * MODULES.html.sh (Date and time <time.h>): Update.
15852         * DEPENDENCIES: Update.
15853         * gnulib-tool: Update comment.
15854         * m4/bison.m4 (gl_BISON): Likewise.
15855         * m4/get_date.m4 (gl_GET_DATE): Likewise.
15856
15857 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
15858
15859         bootstrap: support ACLOCAL_FLAGS during aclocal
15860         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
15861         can add additional -I dir for third-party .m4 files.
15862
15863 2010-09-30  Eric Blake  <eblake@redhat.com>
15864
15865         bootstrap: use glibtoolize on MacOS
15866         * build-aux/bootstrap (check_versions): Convert libtool into
15867         libtoolize.
15868         (tool search): Move libtool check earlier, and look for
15869         glibtoolize for MacOS.
15870         (gnulib_tool_options): Auto-add --libtool when appropriate.
15871         Reported by Justin Clift.
15872
15873         poll: fix typo that broke test on MacOS
15874         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
15875         Reported by Justin Clift.
15876
15877         getdate: rename to get_date
15878         Note: getdate.h is not renamed, to minimize client impact.
15879         * modules/getdate: Mark obsolete.  Move old contents...
15880         * modules/get_date: ...to new module name.
15881         * modules/getdate-tests: Move...
15882         * modules/get_date-tests: ...here.
15883         * m4/getdate.m4: Move...
15884         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
15885         * lib/getdate.y: Move...
15886         * lib/get_date.y: ...here.
15887         * tests/test-getdate.c: Move...
15888         * tests/test-get_date.c: ...here.
15889         * doc/posix-functions/getdate.texi (getdate): Update name.
15890         * NEWS: Mention the change.
15891
15892 2010-09-29  Bruno Haible  <bruno@clisp.org>
15893
15894         Separate the module 'waitpid' from the module 'sys_wait'.
15895         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
15896         present.
15897         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
15898         gl_MODULE_INDICATOR_FOR_TESTS.
15899         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
15900         * modules/sys_wait (Depends-on): Remove waitpid.
15901         (Makefile.am): Substitute GNULIB_WAITPID.
15902         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
15903         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
15904         signature only if the 'waitpid' module is present.
15905         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
15906         * NEWS: Mention the change.
15907         * modules/grantpt (Depends-on): Add waitpid.
15908         * modules/wait-process (Depends-on): Likewise.
15909
15910 2010-09-29  Bruno Haible  <bruno@clisp.org>
15911
15912         More tests for module 'sys_wait'.
15913         * modules/sys_wait-c++-tests: New file.
15914         * tests/test-sys_wait-c++.cc: New file.
15915         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
15916         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
15917
15918 2010-09-29  Bruno Haible  <bruno@clisp.org>
15919
15920         New module 'waitpid'.
15921         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
15922         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
15923         Don't include <process.h>.
15924         (waitpid): Declare only, using modern idiom.
15925         * m4/waitpid.m4: New file.
15926         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
15927         * modules/waitpid: New file.
15928         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
15929         (Makefile.am): Update.
15930         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
15931
15932 2010-09-28  Bruno Haible  <bruno@clisp.org>
15933
15934         poll: Assume ANSI C.
15935         * lib/poll.c (poll): Use an ANSI C declaration.
15936
15937 2010-09-28  Bruno Haible  <bruno@clisp.org>
15938
15939         poll-h: Create poll.h on all platforms.
15940         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
15941         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
15942         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
15943         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
15944         (gl_REPLACE_POLL_H): Don't set POLL_H.
15945         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
15946         * modules/poll-h (Depends-on): Add include_next.
15947         (Makefile.am): Create poll.h unconditionally. Substitute also
15948         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
15949
15950 2010-09-28  Bruno Haible  <bruno@clisp.org>
15951
15952         Tests for module 'poll-h'.
15953         * modules/poll-h-c++-tests: New file.
15954         * tests/test-poll-h-c++.cc: New file.
15955
15956         Tests for module 'poll-h'.
15957         * modules/poll-h-tests: New file.
15958         * tests/test-poll-h.c: New file.
15959
15960 2010-09-28  Bruno Haible  <bruno@clisp.org>
15961
15962         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
15963         * modules/poll-h (Depends-on): Add 'extensions'.
15964
15965 2010-09-28  Bruno Haible  <bruno@clisp.org>
15966
15967         New module 'poll-h'.
15968         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
15969         (poll): Use modern idiom.
15970         * modules/poll-h: New file.
15971         * modules/poll (Files): Remove lib/poll.in.h.
15972         (Depends-on): Add poll-h.
15973         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
15974         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
15975         * m4/poll_h.m4: New file.
15976         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
15977         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
15978         and invoke gl_REPLACE_POLL_H.
15979         * lib/poll.c: Use common idiom.
15980         * tests/test-poll.c: Likewise.
15981         * doc/posix-headers/poll.texi: Mention the poll-h module.
15982         Suggested by Eric Blake.
15983
15984 2010-09-26  Bruno Haible  <bruno@clisp.org>
15985
15986         sys_wait: Implement WSTOPSIG.
15987         * lib/sys_wait.in.h (WSTOPSIG): New macro.
15988         Reported by Simon Josefsson.
15989
15990 2010-09-26  Simon Josefsson  <simon@josefsson.org>
15991
15992         stdlib, sys_wait: Avoid compilation error on mingw.
15993         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
15994
15995 2010-09-26  Bruno Haible  <bruno@clisp.org>
15996
15997         stdlib tests: Avoid code duplication.
15998         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
15999         * modules/sys_wait-tests (Files): Likewise.
16000         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
16001         * tests/test-stdlib.c: Include test-sys_wait.h.
16002         (main): Invoke test_sys_wait_macros.
16003         * tests/test-sys_wait.c: Include test-sys_wait.h.
16004         (main): Invoke test_sys_wait_macros.
16005
16006 2010-09-25  Simon Josefsson  <simon@josefsson.org>
16007
16008         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
16009         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
16010         sure Windows sockets are working before calling getaddrinfo.
16011         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
16012         * doc/gnulib.texi (Windows sockets): Fix typo.
16013
16014 2010-09-25  Bruno Haible  <bruno@clisp.org>
16015
16016         Tests for module 'regex-quote'.
16017         * modules/regex-quote-tests: New file.
16018         * tests/test-regex-quote.c: New file.
16019
16020         New module 'regex-quote'.
16021         * lib/regex-quote.h: New file.
16022         * lib/regex-quote.c: New file.
16023         * modules/regex-quote: New file.
16024         Suggested by Reuben Thomas <rrt@sc3d.org>.
16025
16026 2010-09-24  Bruno Haible  <bruno@clisp.org>
16027
16028         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
16029         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
16030
16031 2010-09-23  Bruno Haible  <bruno@clisp.org>
16032
16033         setenv: Relax license.
16034         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
16035         Blake.
16036         Requested by Eric Blake.
16037
16038 2010-09-22  Bruno Haible  <bruno@clisp.org>
16039
16040         termios: Relax license.
16041         * modules/termios (License): Change to LGPLv2+.
16042         Requested by Eric Blake.
16043
16044 2010-09-22  Bruno Haible  <bruno@clisp.org>
16045
16046         threadlib: Allow the package to change the default to 'no'.
16047         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
16048         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
16049         Reported by Paul Eggert.
16050
16051 2010-09-22  Pádraig Brady  <P@draigbrady.com>
16052             Bruno Haible  <bruno@clisp.org>
16053
16054         Fix endless loop in mbmemcasecoll.
16055         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
16056         byte.
16057         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
16058
16059 2010-09-22  Bruno Haible  <bruno@clisp.org>
16060
16061         Tests for module 'memcoll'.
16062         * modules/memcoll-tests: New file.
16063         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
16064
16065         memcoll, xmemcoll: Clarify size vs. length.
16066         * modules/memcoll.c (memcoll0): Clarify specification.
16067         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
16068         passed to collate_error.
16069
16070 2010-09-22  Bruno Haible  <bruno@clisp.org>
16071
16072         Tests for module 'memcasecmp'.
16073         * modules/memcasecmp-tests: New file.
16074         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
16075
16076 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
16077
16078         * lib/pthread.in.h: Add split double-inclusion guard, and include
16079         system <pthread.h> if there is one.  Use @@-style as in other
16080         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
16081         pthread.h doesn't.
16082         (pthread_mutexattr_destroy, pthread_mutexattr_init):
16083         (pthread_mutexattr_settype, pthread_mutex_trylock):
16084         New static inline functions, if there's no system <pthread.h>.
16085         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
16086         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
16087         Approximate with mutexes if the system lacks spinlocks, as in
16088         MacOS.
16089         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
16090         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
16091         @@-style.  Check for spinlocks separately.
16092         (gl_PTHREAD_DEFAULTS): New macro.
16093         * modules/pthread: Redo to use a more typical style for in.h files.
16094
16095 2010-09-21  Eric Blake  <eblake@redhat.com>
16096
16097         net_if: enhance tests
16098         * tests/test-net_if.c (main): Move signature checks earlier.
16099         Print failures to stderr.
16100         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
16101         Document the bug that we do not yet fix.
16102
16103 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
16104
16105         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
16106         about gnulib, not GSS.
16107
16108 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
16109
16110         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
16111         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
16112         for Emacs.
16113         * build-aux/pmccabe2html: Make Makefile.am example code more
16114         cut-and-paste friendly.
16115
16116 2010-09-21  Simon Josefsson  <simon@josefsson.org>
16117
16118         * tests/test-net_if.c: New file.
16119         * modules/net_if-tests: New file.
16120
16121 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
16122
16123         pthread: add pthread_spin_destroy
16124         * lib/pthread.in.h (pthread_spin_destroy): New function.
16125
16126 2010-09-19  Bruno Haible  <bruno@clisp.org>
16127
16128         gnulib-tool: Fix --help output.
16129         * gnulib-tool (func_usage): Fix help message.
16130         Reported by Reuben Thomas <rrt@sc3d.org>.
16131
16132 2010-09-18  Jim Meyering  <meyering@redhat.com>
16133
16134         maint.mk: avoid unexpanded \n in two diagnostics
16135         * top/maint.mk (sc_prohibit_always_true_header_tests):
16136         Don't use a literal \n in a halt=... assignment.  It would not be
16137         expanded, and the two \n bytes would appear in the diagnostic output
16138         rather than the desired newline.  Use halt=$$(printf ... instead.
16139         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
16140
16141 2010-09-18  Bruno Haible  <bruno@clisp.org>
16142
16143         netinet_in: Doc tweak.
16144         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
16145         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16146
16147 2010-09-18  Jim Meyering  <meyering@redhat.com>
16148
16149         init.sh: correct an outdated comment
16150         * tests/init.sh (create_exe_shims_):  s/function/alias/
16151
16152         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
16153         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
16154         a file named "*.exe" is removed between the glob expansion and the
16155         processing of that oddly named file.
16156
16157 2010-09-17  Eric Blake  <eblake@redhat.com>
16158
16159         mirbsd: add some more support
16160         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
16161         in BSD family.
16162         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
16163         devices as OpenBSD.
16164         * m4/host-os.m4 (mirbsd): Add MirBSD.
16165
16166         tests: fix unportable assumption on sys/wait.h
16167         * tests/test-sys_wait.c (main): Relax test.
16168         * tests/test-stdlib.c (main): Likewise.
16169
16170         init.sh: accomodate directory with no .exes
16171         * tests/init.sh: Accomodate directory containing only scripts.
16172
16173         tests: avoid compiler warning
16174         * tests/test-stdlib.c (main): Use the variable.
16175
16176         fdutimens, fdutimensat: update signature, again
16177         * lib/utimens.h (gl_futimens): Delete, and move signature...
16178         (fdutimens): ...here.
16179         (fdutimensat): Rearrange signature.
16180         (lutimensat): Rename variable for clarity.
16181         * lib/fdutimensat.c (fdutimensat): Update signature.
16182         * lib/utimens.c (fdutimens): Likewise.
16183         (gl_futimens): Delete.
16184         (utimens, lutimens): Update callers.
16185         * lib/futimens.c (futimens): Likewise.
16186         * tests/test-fdutimensat.c: Likewise.
16187         * tests/test-utimens.c: Likewise.
16188         * tests/test-futimens.h: Update comment.
16189         * NEWS: Mention this.
16190         Suggested by Paul Eggert.
16191
16192 2010-09-17  Bruno Haible  <bruno@clisp.org>
16193
16194         Take over the maintenance of some older macros from Autoconf.
16195         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
16196         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
16197         GNU Autoconf.
16198         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
16199         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
16200
16201 2010-09-17  Eric Blake  <eblake@redhat.com>
16202
16203         fdutimensat: drop atflag validation
16204         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
16205         with valid fd, to close a race scenario where futimens is
16206         unsupported and FILE was replaced by a symlink.
16207         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
16208         accordingly.
16209         Suggested by Paul Eggert.
16210
16211 2010-09-16  Bruno Haible  <bruno@clisp.org>
16212
16213         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
16214         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
16215
16216 2010-09-16  Bruno Haible  <bruno@clisp.org>
16217
16218         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
16219         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
16220         login_tty exists.
16221         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16222
16223 2010-09-16  Bruno Haible  <bruno@clisp.org>
16224
16225         login_tty: Make the replacement code work on BSD systems.
16226         * lib/login_tty.c: Include <sys/ioctl.h>.
16227         (login_tty): Use ioctl TIOCSCTTY when available.
16228         * modules/login_tty (Depends-on): Add sys_ioctl.
16229         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16230
16231 2010-09-16  Bruno Haible  <bruno@clisp.org>
16232
16233         login_tty: Stricter unit test.
16234         * modules/login_tty-tests (Depends-on): Add tcgetsid.
16235         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
16236         and tcgetsid() after login_tty.
16237         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16238
16239 2010-09-16  Bruno Haible  <bruno@clisp.org>
16240
16241         New module 'tcgetsid'.
16242         * lib/tcgetsid.c: New file.
16243         * m4/tcgetsid.m4: New file.
16244         * modules/tcgetsid: New file.
16245         * modules/termios (Depends-on): Add c++defs, warn-on-use.
16246         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
16247         GNULIB_TCGETSID, HAVE_TCGETSID.
16248         * lib/termios.in.h: Include <sys/types.h>.
16249         (tcgetsid): New declaration.
16250         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
16251         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
16252         * doc/posix-functions/tcgetsid.texi: Mention the new module.
16253         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
16254
16255 2010-09-16  Bruno Haible  <bruno@clisp.org>
16256
16257         Tests for module 'termios'.
16258         * modules/termios-c++-tests: New file.
16259         * modules/termios-tests: New file.
16260         * tests/test-termios-c++.cc: New file.
16261         * tests/test-termios.c: New file.
16262
16263         New module 'termios'.
16264         * modules/termios: New file.
16265         * lib/termios.in.h: New file.
16266         * m4/termios_h.m4: New file.
16267         * doc/posix-headers/termios.texi: Mention the new module.
16268
16269 2010-09-16  Eric Blake  <eblake@redhat.com>
16270
16271         fdutimensat: add an atflag parameter
16272         * lib/fdutimensat.c (fdutimensat): Add new parameter.
16273         * lib/utimens.h (fdutimensat): Update prototype.
16274         * tests/test-fdutimensat.c: Adjust test to match.
16275         * NEWS: Document the change.
16276         Suggested by Paul Eggert.
16277
16278 2010-09-16  Bruno Haible  <bruno@clisp.org>
16279
16280         Fix typos in comments.
16281         * lib/striconveh.h: Fix typo in comment.
16282         * lib/login_tty.c (login_tty): Likewise.
16283
16284 2010-09-15  Bruno Haible  <bruno@clisp.org>
16285
16286         stdlib: clarify MirBSD WEXITSTATUS bug
16287         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
16288         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
16289
16290 2010-09-15  Eric Blake  <eblake@redhat.com>
16291
16292         stdlib: work around MirBSD WEXITSTATUS bug
16293         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
16294         * modules/stdlib (Depends-on): Add sys_wait.
16295         * tests/test-sys_wait.c (main): Enhance test.
16296         * tests/test-stdlib.c (main): Likewise.
16297         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
16298
16299         docs: mention MacOS issue with WEXITSTATUS(constant)
16300         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
16301         issue.
16302         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
16303
16304         strnlen: add tests
16305         * modules/strnlen-tests: New file.
16306         * tests/test-strnlen.c: Likewise.
16307
16308 2010-09-14  Bruno Haible  <bruno@clisp.org>
16309
16310         unistr/base: Avoid link errors when module 'libunistring' is also used.
16311         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
16312         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
16313         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
16314         Declare also when HAVE_LIBUNISTRING is set.
16315         Reported by Pádraig Brady <P@draigbrady.com>.
16316
16317 2010-09-14  Eric Blake  <eblake@redhat.com>
16318
16319         test-rawmemchr: make more robust
16320         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
16321         (Depends-on, configure.ac): Add needed prerequisites to use it.
16322         * modules/memchr-tests (Files, Depends-on, configure.ac):
16323         Likewise, to avoid implicit reliance on memchr module prereqs.
16324         * tests/test-memchr.c (main): Ensure proper masking.
16325         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
16326         reads.
16327
16328         memchr: detect glibc Alpha bug
16329         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
16330         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
16331         Alpha.
16332         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
16333         * tests/test-memchr.c (main): Enhance test.
16334         Reported by Nelson H. F. Beebe.
16335
16336 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
16337
16338         fts, getcwd, glob: audit for dirfd returning -1
16339         * lib/fts.c (opendir): Remove #define; no longer used.
16340         (opendirat): New arg PDIR_FD.  All callers changed.
16341         (fts_build, _opendir2): Use new opendirat to avoid the need for
16342         dirfd, or for checking whether dirfd returns a negative value.
16343         Don't use opendir; always use openat followed by fdopendir.
16344         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
16345         it.
16346         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
16347         returns -1 here.
16348         * modules/fts (Depends-on): Remove dirfd.
16349         * modules/getcwd (Depends-on): Likewise.
16350
16351 2010-09-13  Eric Blake  <eblake@redhat.com>
16352
16353         float: fix broken MirBSD header
16354         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
16355         * doc/posix-headers/float.texi (float.h): Document it.
16356
16357 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
16358
16359         fts: use O_NOFOLLOW to avoid race condition when opening a directory
16360         * lib/fts.c (opendirat): New arg extra_flags.
16361         (__opendir2): Use it to avoid following symlinks when opening
16362         a directory, if symlinks are not supposed to be followed.  See
16363         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
16364
16365         fdopendir: preserve argument fd before returning
16366         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
16367         (fdopendir_with_dup, fd_clone_opendir): New static functions.
16368         (fdopendir): Use them, arranging for FD to be open to the same
16369         directory that it was when it started.  (It might be temporarily
16370         closed while fdopendir is running, so this not thread- or
16371         signal-safe.)  Be careful to do the right thing even when file
16372         descriptors are scarce and dup fails with errno == EMFILE.  See
16373         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
16374
16375 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
16376
16377         regex: Pass the system regex if its only problem is 32-bit regoff_t.
16378         * NEWS: Document change.
16379         * m4/regex.m4: Disable test for regoff_t size.
16380
16381 2010-09-13  Jim Meyering  <meyering@redhat.com>
16382
16383         fts: don't operate on an invalid file descriptor after failed dup
16384         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
16385         negative file descriptor.
16386
16387 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
16388
16389         savedir: add streamsavedir, deprecate fdsavedir
16390         * NEWS: Mention deprecation of fdsavedir.
16391         * lib/savedir.c (streamsavedir): New extern function, whose name
16392         ends in "savedir" to be consistent with the others.  This differs
16393         from savedirstream in that it doesn't close its argument.  The
16394         next version of GNU tar will use this instead of fdsavedir, to
16395         avoid some race conditions and conserve file descriptors.
16396         (savedirstream): Reimplement as a wrapper around streamsavedir.
16397         (fdsavedir): Add a comment deprecating this function.  As far as
16398         I know, only GNU tar used it, and GNU tar doesn't need it any more.
16399         * lib/savedir.h (streamsavedir): New decl.
16400         (fdsavedir): Add a comment deprecating this.
16401
16402 2010-09-10  Bruno Haible  <bruno@clisp.org>
16403
16404         langinfo: Fix last commit.
16405         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
16406         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
16407         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16408
16409 2010-09-10  Bruno Haible  <bruno@clisp.org>
16410
16411         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
16412         * lib/progreloc.c (O_EXEC): Define fallback.
16413
16414 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
16415
16416         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
16417         * NEWS: Document recent changes to fcntl-h.
16418         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
16419         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
16420         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
16421         Similarly for O_SEARCH; this last was already true, but not documented.
16422         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
16423         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
16424         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
16425         Likewise.
16426         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
16427         is zero, not whether it is defined.
16428         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
16429         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
16430         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
16431
16432 2010-09-10  Bruno Haible  <bruno@clisp.org>
16433
16434         langinfo, nl_langinfo: Fix for IRIX 5.3.
16435         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
16436         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
16437         HAVE_LANGINFO_YESEXPR.
16438         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
16439         HAVE_LANGINFO_YESEXPR.
16440         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
16441         HAVE_LANGINFO_T_FMT_AMPM is 0.
16442         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
16443         HAVE_LANGINFO_YESEXPR is 0.
16444         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
16445         NOEXPR.
16446         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
16447         * doc/posix-functions/nl_langinfo.texi: Likewise.
16448         Reported by Eric Blake.
16449
16450 2010-09-10  Bruno Haible  <bruno@clisp.org>
16451
16452         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
16453         * doc/glibc-functions/login_tty.texi: Mention the include file problem
16454         on FreeBSD 8.0 and OpenBSD 4.6.
16455         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
16456         * m4/pty_h.m4 (gl_PTY_H): Likewise.
16457         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
16458         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
16459         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
16460         ac_includes_default.
16461         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16462
16463 2010-09-09  Eric Blake  <eblake@redhat.com>
16464
16465         strsignal: work around NetBSD bug
16466         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
16467         * lib/string.in.h (includes): Likewise.
16468         * doc/posix-functions/strsignal.texi (strsignal): Document the
16469         bug.
16470         Reported by Nelson H. F. Beebe.
16471
16472         gnulib-tool: work with NetBSD /bin/sh
16473         * gnulib-tool (func_cache_var, func_cache_lookup_module)
16474         (func_get_description, func_get_comment, func_get_status)
16475         (func_get_notice, func_get_applicability, func_get_filelist)
16476         (func_get_dependencies, func_get_autoconf_early_snippet)
16477         (func_get_autoconf_snippet, func_get_automake_snippet)
16478         (func_get_include_directive, func_get_link_directive)
16479         (func_get_license, func_get_maintainer, func_import): Avoid
16480         shell syntax errors from parsing syntax extensions.
16481
16482 2010-09-09  Bruno Haible  <bruno@clisp.org>
16483
16484         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
16485         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
16486         a reliable way to determine whether the 'alias' command works.
16487
16488 2010-09-08  Jim Meyering  <meyering@redhat.com>
16489
16490         init.sh: penalize a set-x-impaired shell; don't disqualify it
16491         * tests/init.sh: Too many shells corrupt application stderr when
16492         you set -x, so we can't afford to disqualify them, since at least
16493         on Irix-6.5, that would disqualify all bourne shells.
16494         Instead, use a two-pass approach.
16495         On the first pass, try to find a shell that meets the stricter
16496         condition that set -x does not corrupt stderr.
16497         If no shell meets the stricter condition, retest each candidate
16498         shell, but without that extra condition.  Finally, when
16499         VERBOSE=yes is requested and set -x might cause trouble, simply
16500         issue a warning and refrain from enabling debug output.
16501
16502 2010-09-08  Eric Blake  <eblake@redhat.com>
16503
16504         unsetenv: fix OpenBSD bug
16505         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
16506         * doc/posix-functions/unsetenv.texi (unsetenv): Update
16507         documentation.
16508         Reported by Jim Meyering.
16509
16510         strtod: work around IRIX 6.5 bug
16511         * lib/strtod.c (strtod): Reparse number on shorter string if
16512         exponent parse was invalid.
16513         * tests/test-strtod.c (main): Add check for "0x1p 2".
16514         Reported by Tom G. Christensen.
16515
16516         getopt: optimize previous patch
16517         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
16518         empty variable.  Speed up awk script.
16519         Reported by Paolo Bonzini.
16520
16521 2010-09-08  Jim Meyering  <meyering@redhat.com>
16522
16523         test.sh: disqualify shells for which set -x corrupts stderr
16524         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
16525         and OpenBSD 4.7.  They make it so with "set -x", environment settings
16526         appear in stderr output.  For example, this command:
16527             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
16528         prints "P=1" on those two systems:
16529
16530 2010-09-08  Bruno Haible  <bruno@clisp.org>
16531
16532         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
16533         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
16534         commands, because some shells ignore redirections when there is an
16535         error in the command lookup.
16536         Reported by Eric Blake.
16537
16538 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
16539
16540         * lib/regex.h: Fix a mention of `regex_compile' (should be
16541         `re_compile_pattern').
16542         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
16543         (re_set_registers): Correct name of parameter in comment.
16544
16545         * doc/regex.texi: Add documentation for missing syntax flags.
16546         Remove commented-out documentation of defunct syntax option
16547         RE_NO_EMPTY_ALTS.
16548         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
16549         Add documentation of re_set_registers.
16550         Document trick to re-use a pattern buffer by setting fastmap manually.
16551         Update documentation of struct re_pattern_buffer per public members.
16552         Uncomment documentation of equivalence class operators and
16553         collating symbol operators, since they are now implemented,
16554         Explain leftmost-longest matching in relation to alternatives.
16555         Tidy documentation of substring matching.
16556         Remove POSIX documentation, which is done better in
16557         glibc, and refer the reader there. Keep BSD API documentation, as
16558         that is not readily available elsewhere.
16559
16560 2010-09-07  Eric Blake  <eblake@redhat.com>
16561
16562         getopt: handle POSIXLY_CORRECT set but not exported
16563         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
16564         export state of POSIXLY_CORRECT, due to bash set -o posix.
16565         Reported by Dustin J. Mitchell.
16566
16567 2010-09-05  Bruno Haible  <bruno@clisp.org>
16568
16569         gnulib-tool: Highlight the changed options.
16570         * gnulib-tool (func_usage): Display the --import, --add-import,
16571         --remove-import explanations in bold font.
16572
16573 2010-09-06  Karl Berry  <karl@gnu.org>
16574
16575         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
16576
16577 2010-09-05  Bruno Haible  <bruno@clisp.org>
16578
16579         uniwidth/width: Update comment.
16580         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
16581         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
16582
16583 2010-09-05  Bruno Haible  <bruno@clisp.org>
16584
16585         isinf, isnan: Relax license.
16586         * modules/isinf (License): Change from GPL to LGPL, with consent from
16587         Ben Pfaff.
16588         * modules/isnan (License): Likewise.
16589         Requested by Ludovic Courtès.
16590
16591 2010-09-04  Bruno Haible  <bruno@clisp.org>
16592
16593         gnulib-tool: Help migration from --import to --add-import or --update.
16594         * gnulib-tool: Emit a verbose error message when --import is used
16595         without any module name.
16596
16597 2010-09-04  Bruno Haible  <bruno@clisp.org>
16598
16599         Update doc about gnulib-tool.
16600         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
16601         'gnulib-tool --update' in more detail.
16602         Reported by Eric Blake.
16603
16604 2010-09-04  Bruno Haible  <bruno@clisp.org>
16605
16606         gnulib-tool: Change --import. New options --add/remove-import.
16607         * gnulib-tool: New options --add-import, --remove-import.
16608         (func_usage): Document them.
16609         (have_associative): Define always.
16610         (func_import): In import mode, don't merge the specified settings with
16611         the cached settings. Implement remove-import mode.
16612         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
16613         Explain when to use them versus --import.
16614         (Simple update): Use --add-import instead of --import.
16615         * NEWS: Mention the change.
16616
16617 2010-09-04  Bruno Haible  <bruno@clisp.org>
16618
16619         * doc/gnulib-tool.texi (Initial import): Update paragraph about
16620         separate gnulib.mk.
16621
16622 2010-09-04  Bruno Haible  <bruno@clisp.org>
16623
16624         gnulib-tool: Don't talk about CVS any more.
16625         * gnulib-tool (func_usage, func_import): Write "version control"
16626         instead of CVS.
16627
16628 2010-09-04  Jim Meyering  <meyering@redhat.com>
16629
16630         maint.mk: avoid obscure sc_copyright_check failure in coreutils
16631         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
16632         false positives (whose names may be ill-chosen) when searching
16633         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
16634         would cause a false-positive.
16635
16636         avoid coreutils "make distcheck" failure
16637         Coreutils tests with an absolute build directory name that contains
16638         a space.  Not quoting this directory name caused a failure.
16639         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
16640         * tests/test-vc-list-files-cvs.sh: Likewise.
16641
16642 2010-09-04  Bruno Haible  <bruno@clisp.org>
16643
16644         gnulib-tool: Avoid error when run in a package without Makefile.am.
16645         * gnulib-tool: When collecting the m4dirs in a package that does not
16646         have a Makefile.am, eliminate those directories that contain no
16647         gnulib-cache.m4. Fix expression that counts these directories.
16648
16649 2010-09-04  Bruno Haible  <bruno@clisp.org>
16650
16651         update-copyright test: Improve output when perl is missing or too old.
16652         * tests/test-update-copyright.sh: Move test of Perl version down after
16653         the test whether Perl exists. Provide an explanation relating Perl's
16654         error message to Automake's SKIP: message.
16655
16656 2010-09-04  Bruno Haible  <bruno@clisp.org>
16657
16658         Don't augment PATH in TESTS_ENVIRONMENT.
16659         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
16660         set abs_aux_dir instead of augmenting PATH.
16661         * modules/vc-list-files-tests (Makefile.am): Likewise.
16662         * tests/test-update-copyright.sh: Augment PATH here.
16663         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
16664         path_prepend_.
16665         * tests/test-vc-list-files-git.sh: Likewise.
16666
16667 2010-09-04  Jim Meyering  <meyering@redhat.com>
16668
16669         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
16670         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
16671
16672 2010-09-04  Bruno Haible  <bruno@clisp.org>
16673
16674         strdup: Fix compilation error in C++ mode.
16675         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
16676         the macro.
16677
16678 2010-09-04  Bruno Haible  <bruno@clisp.org>
16679
16680         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
16681         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
16682         macro into a function.
16683         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
16684
16685 2010-09-04  Bruno Haible  <bruno@clisp.org>
16686
16687         Set PATH_SEPARATOR the same way autoconf does.
16688         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
16689         the value of PATH_SEPARATOR the same way autoconf-generated configure
16690         scripts do.
16691         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
16692         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
16693
16694 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
16695
16696         Set PATH_SEPARATOR the same way autoconf does.
16697         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
16698         the same way autoconf-generated configure scripts do.
16699         * posix-modules: Likewise.
16700
16701 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
16702
16703         hash: fix safe_hasher const typo
16704         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
16705         const; otherwise, there is a type error later.
16706
16707 2010-09-02  Jim Meyering  <meyering@redhat.com>
16708
16709         test-update-copyright.sh: require perl 5.8.0
16710         * tests/test-update-copyright.sh: Require 5.8.0,
16711         which Tom G. Christensen has confirmed is adequate,
16712         while 5.6.1 is not.
16713
16714 2010-09-02  Eric Blake  <eblake@redhat.com>
16715
16716         tests: init.sh improvements for re-exec'ing with zsh
16717         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
16718         -vx through shell re-exec.
16719         Reported by Tom G. Christensen.
16720
16721         wctype: fix typo in previous commit
16722         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
16723         Reported by Ludovic Courtès.
16724
16725 2010-09-02  Jim Meyering  <meyering@redhat.com>
16726
16727         test-update-copyright.sh: skip test if Perl is too old
16728         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
16729         Reported by Tom G. Christensen.
16730
16731 2010-09-02  Bruno Haible  <bruno@clisp.org>
16732
16733         wctype: Avoid compilation error on IRIX 6.5.30.
16734         * lib/wctype.in.h (iswblank): Declare with a replacement if
16735         REPLACE_ISWBLANK is set.
16736         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
16737         declared. Set REPLACE_ISWBLANK.
16738         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
16739         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
16740         * doc/posix-headers/wctype.texi: Likewise.
16741         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16742
16743 2010-09-01  Bruno Haible  <bruno@clisp.org>
16744
16745         New module 'socketlib'.
16746         * modules/socketlib: New file.
16747         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
16748         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
16749         * modules/sockets (Depends-on): Add socketlib.
16750         Suggested by Sam Steingold <sds@gnu.org>.
16751
16752 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
16753
16754         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
16755
16756         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
16757         when one needs search access to a directory but not read access.
16758         On systems where it is available, it works in some cases where
16759         O_RDONLY does not, namely on directories that are searchable but
16760         not readable, and which need only to be searchable.  If O_SEARCH
16761         is not available, fall back to the traditional method of using
16762         O_RDONLY.
16763
16764         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
16765         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
16766         when opening a directory that needs only to be searchable.
16767         * lib/chdir-safer.c (chdir_no_follow): Likewise.
16768         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
16769         * lib/openat-proc.c (openat_proc_name): Likewise.
16770         * lib/openat.c (openat_needs_fchdir): Likewise.
16771         * lib/save-cwd.c (save_cwd): Likewise.
16772         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
16773
16774 2010-08-28  Bruno Haible  <bruno@clisp.org>
16775
16776         New module 'host-cpu-c-abi'.
16777         * modules/host-cpu-c-abi: New file.
16778         * m4/host-cpu-c-abi.m4: New file, based on part of
16779         clisp/src/m4/general.m4.
16780         Requested by Sam Steingold <sds@gnu.org>.
16781
16782 2010-08-31  Eric Blake  <eblake@redhat.com>
16783         and Jim Meyering  <meyering@redhat.com>
16784
16785         hash: factor, and guard against misbehaving hasher function
16786         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
16787         of table->hasher's return value.  Also protect against a hash value
16788         so large that adding it to table->bucket results in a NULL pointer.
16789         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
16790         Use it in place of open-coded check-and-abort.
16791
16792 2010-08-30  Bruno Haible  <bruno@clisp.org>
16793
16794         hash: silence spurious clang warning
16795         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
16796         Reported by Eric Blake.
16797
16798 2010-08-30  Eric Blake  <eblake@redhat.com>
16799
16800         strstr, memmem, strcasestr: avoid leaked shell message
16801         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
16802         FreeBSD.
16803         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
16804         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
16805
16806         tests: silence clang warning
16807         * tests/test-malloca.c (do_allocation): Avoid dead store.
16808
16809 2010-08-29  Bruno Haible  <bruno@clisp.org>
16810
16811         gettext: Fix recent mistake.
16812         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
16813
16814 2010-08-29  Bruno Haible  <bruno@clisp.org>
16815
16816         selinux-h: Offer a --without-selinux option.
16817         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
16818         --without-selinux was specified, skip all tests and define
16819         HAVE_SELINUX_SELINUX_H to 0.
16820         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
16821         set LIB_SELINUX to empty.
16822         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
16823         gl_LIBSELINUX. If --without-selinux was specified, replace
16824         selinux/context.h.
16825         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
16826
16827 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16828             Bruno Haible  <bruno@clisp.org>
16829
16830         Make the module 'realloc-gnu' work again on AIX and OSF/1.
16831         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
16832         of HAVE_REALLOC.
16833         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
16834         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
16835         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
16836         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
16837
16838 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16839             Bruno Haible  <bruno@clisp.org>
16840
16841         Make the module 'calloc-gnu' work again on AIX and OSF/1.
16842         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
16843         HAVE_CALLOC.
16844         * lib/xmalloc.c: Update accordingly.
16845         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
16846         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
16847         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
16848
16849 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16850             Bruno Haible  <bruno@clisp.org>
16851
16852         Make the module 'malloc-gnu' work again on AIX and OSF/1.
16853         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
16854         HAVE_MALLOC.
16855         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
16856         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
16857         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
16858
16859 2010-08-29  Bruno Haible  <bruno@clisp.org>
16860
16861         Update modules list.
16862         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
16863         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
16864         (String handling <string.h>): Add astrxfrm.
16865         (File system functions): Add readlinkat.
16866
16867 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16868
16869         Tests for module 'realloc-gnu'.
16870         * modules/realloc-gnu-tests: New file.
16871         * tests/test-realloc-gnu.c: New file.
16872
16873         Tests for module 'calloc-gnu'.
16874         * modules/calloc-gnu-tests: New file.
16875         * tests/test-calloc-gnu.c: New file.
16876
16877         Tests for module 'malloc-gnu'.
16878         * modules/malloc-gnu-tests: New file.
16879         * tests/test-malloc-gnu.c: New file.
16880
16881 2010-08-28  Bruno Haible  <bruno@clisp.org>
16882
16883         Rename module 'realloc' -> 'realloc-gnu'.
16884         * modules/realloc-gnu: New file, copied from modules/realloc.
16885         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
16886         obsolete.
16887         * modules/mgetgroups (Depends-on): Update.
16888         * doc/posix-functions/realloc.texi: Update.
16889         * NEWS: Mention the change.
16890
16891         Rename module 'calloc' -> 'calloc-gnu'.
16892         * modules/calloc-gnu: New file, copied from modules/calloc.
16893         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
16894         obsolete.
16895         * doc/posix-functions/calloc.texi: Update.
16896         * NEWS: Mention the change.
16897
16898         Rename module 'malloc' -> 'malloc-gnu'.
16899         * modules/malloc-gnu: New file, copied from modules/malloc.
16900         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
16901         obsolete.
16902         * modules/argp (Depends-on): Update.
16903         * modules/regex (Depends-on): Update.
16904         * doc/posix-functions/malloc.texi: Update.
16905         * NEWS: Mention the change.
16906
16907 2010-08-28  Eric Blake  <eblake@redhat.com>
16908
16909         pread, pwrite: add missing dependency
16910         * modules/pread (Depends-on): Add extensions.
16911         * modules/pwrite (Depends-on): Likewise.
16912
16913 2010-08-28  Bruno Haible  <bruno@clisp.org>
16914
16915         unistr/u*-strchr: Fix tests dependencies.
16916         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
16917         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
16918         Reported by Ian Beckwith <ianb@erislabs.net>.
16919
16920 2010-08-28  Bruno Haible  <bruno@clisp.org>
16921
16922         read-file: Don't occupy too much unused memory.
16923         * lib/read-file.c (fread_file): Shrink the buffer at the end.
16924
16925 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
16926             Eric Blake  <eblake@redhat.com>
16927             Bruno Haible  <bruno@clisp.org>
16928
16929         read-file: Avoid memory reallocations with regular files.
16930         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
16931         (fread_file): With regular files, use the remaining length as the
16932         initial buffer size.  Check against overflow.
16933         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
16934         sys_stat.
16935
16936 2010-08-28  Bruno Haible  <bruno@clisp.org>
16937
16938         ftello: Relax license.
16939         * modules/ftello (License): Relax to LGPLv2+.
16940         Reported by Eric Blake.
16941
16942 2010-08-28  Bruno Haible  <bruno@clisp.org>
16943
16944         Avoid relocwrapper link errors due to gnulib replacement functions.
16945         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
16946         function.
16947         Reported by Ben Pfaff <blp@cs.stanford.edu>.
16948
16949 2010-08-28  Bruno Haible  <bruno@clisp.org>
16950
16951         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
16952         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
16953         defined.
16954         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
16955         Suggested by Eric Blake.
16956
16957 2010-08-28  Bruno Haible  <bruno@clisp.org>
16958
16959         sys_socket, netdb: Ensure socklen_t gets defined.
16960         * modules/sys_socket (Depends-on): Add socklen.
16961         * modules/netdb (Depends-on): Likewise.
16962         * modules/getaddrinfo (Depends-on): Remove socklen.
16963         * modules/getsockopt (Depends-on): Likewise.
16964         * modules/setsockopt (Depends-on): Likewise.
16965         * tests/test-sys_socket.c: Check that socklen_t is defined.
16966         * tests/test-netdb.c: Likewise.
16967         * m4/socklen.m4: Update comments.
16968         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16969
16970 2010-08-27  Eric Blake  <eblake@redhat.com>
16971
16972         login_tty: add missing dependency
16973         * modules/login_tty (Depends-on): Add pty.
16974
16975 2010-08-26  Eric Blake  <eblake@redhat.com>
16976
16977         lib-symbol-versions: fix m4 quoting
16978         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
16979         format for AC_LINK_IFELSE.
16980
16981         glob: fix compile test
16982         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
16983
16984         btowc: fix missing file
16985         * modules/btowc (Files): Also ship locale-fr.m4.
16986
16987         lseek: fix link test
16988         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
16989         AC_LINK_IFELSE.
16990
16991         include_next: silence autoconf 2.68 warning
16992         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
16993         AC_COMPILE_IFELSE as special.
16994         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
16995         autoconf < 2.68.
16996
16997         acl: fix compilation test
16998         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
16999         AC_COMPILE_IFELSE.
17000
17001 2010-08-26  Bruno Haible  <bruno@clisp.org>
17002
17003         Modernize AC_TRY_RUN invocations.
17004         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
17005         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
17006         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
17007         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
17008         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
17009         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
17010         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
17011         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
17012         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
17013         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
17014         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
17015         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
17016         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
17017         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
17018         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
17019         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
17020         gl_MBRLEN_NUL_RETVAL): Likewise.
17021         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
17022         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
17023         Likewise.
17024         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
17025         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
17026         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
17027         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
17028         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
17029         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
17030         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
17031         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
17032         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
17033         Likewise.
17034         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
17035         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
17036         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
17037         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
17038         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
17039         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
17040         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
17041         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
17042         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
17043         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
17044
17045 2010-08-26  Bruno Haible  <bruno@clisp.org>
17046
17047         Modernize AC_TRY_LINK invocations.
17048         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
17049         AC_TRY_LINK.
17050         * m4/argp.m4 (gl_ARGP): Likewise.
17051         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
17052         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
17053         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
17054         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
17055         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
17056         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
17057         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
17058         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
17059         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
17060         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
17061         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
17062         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
17063         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
17064         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
17065         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
17066         * m4/hostent.m4 (gl_HOSTENT): Likewise.
17067         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
17068         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
17069         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
17070         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
17071         Likewise.
17072         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
17073         Likewise.
17074         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
17075         Likewise.
17076         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
17077         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
17078         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
17079         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
17080         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
17081         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
17082         * m4/servent.m4 (gl_SERVENT): Likewise.
17083         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
17084         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
17085         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
17086         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
17087         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
17088         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
17089         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
17090         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
17091         * modules/tsearch-tests (configure.ac): Likewise.
17092
17093 2010-08-26  Bruno Haible  <bruno@clisp.org>
17094
17095         Modernize AC_TRY_COMPILE invocations.
17096         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
17097         AC_TRY_COMPILE.
17098         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
17099         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
17100         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
17101         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
17102         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
17103         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
17104         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
17105         * m4/lock.m4 (gl_LOCK): Likewise.
17106         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
17107         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
17108         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
17109         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
17110         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
17111         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
17112         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
17113         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
17114         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
17115         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
17116         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
17117         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
17118         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
17119         extraneous semicolon.
17120
17121 2010-08-26  Jim Meyering  <meyering@redhat.com>
17122
17123         stat-time: relax license LGPL
17124         * modules/stat-time (License): Change from GPL to LGPL,
17125         with consent from all contributors, for use in libguile.
17126         Requested by Ludovic Courtès.
17127
17128 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
17129
17130         poll: return immediately on POLLHUP.
17131         * lib/poll.c (poll): Always set timeout before wait_timeout is
17132         computed.
17133
17134 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17135
17136         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
17137         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
17138         rmdir ("dir/.//"), unlinkat.
17139
17140 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
17141
17142         stdbool: avoid spurious failure with modern xlc
17143         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
17144
17145 2010-08-24  Bruno Haible  <bruno@clisp.org>
17146
17147         getloadavg: simplify code
17148         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
17149         gl_have_func. Update comments.
17150
17151 2010-08-24  Eric Blake  <eblake@redhat.com>
17152
17153         getloadavg: don't define SVR4 on cygwin
17154         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
17155         only define SVR4 when -lkvm is required.
17156         Reported by Yaakov Selkowitz.
17157
17158 2010-08-24  Bruno Haible  <bruno@clisp.org>
17159
17160         priv-set: fix comment
17161         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
17162
17163 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
17164
17165         priv-set: fix comments
17166         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
17167         to match code, as suggested by David Bartley in:
17168         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
17169
17170 2010-08-23  Eric Blake  <eblake@redhat.com>
17171
17172         stdbool: avoid rejecting clang
17173         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
17174         * tests/test-stdbool.c: Enable more tests if using the system
17175         <stdbool.h> instead of the gnulib replacement.
17176         (main): Move xlc bug test to a runtime test for all compilers.
17177         Reported by Anders Kaseorg.
17178
17179         argz: fix shell quoting issue
17180         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
17181         Reported by Charles Wilson.
17182
17183 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
17184             Erik Faye-Lund <kusmabite@gmail.com>
17185
17186         poll, select: handle ERROR_BROKEN_PIPE.
17187         * lib/poll.c (win32_compute_revents): Return POLLHUP when
17188         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
17189         * lib/select.c (win32_compute_revents): Do not mark a pipe
17190         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
17191
17192 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
17193
17194         fts: allow compilation with C++
17195         * lib/fts_.h: Specify extern "C" linkage with C++.
17196
17197 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17198
17199         Fix gnulib-tool sed script de-commentation for AIX sed.
17200         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
17201         sed.
17202
17203 2010-08-17  Eric Blake  <eblake@redhat.com>
17204
17205         test-stddef: test for (some) offsetof bugs
17206         * tests/test-stddef.c: Enhance test to ensure correct type of
17207         offsetof.
17208         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
17209         that we are not fixing at this time.
17210
17211 2010-08-15  Bruno Haible  <bruno@clisp.org>
17212
17213         stpncpy: Allow stpncpy to be defined as a macro.
17214         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
17215         if it's already correctly declared.
17216         * lib/string.in.h (stpncpy): Undefine before redefining.
17217         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
17218
17219 2010-08-14  Bruno Haible  <bruno@clisp.org>
17220
17221         Rename module 'memxfrm' to 'amemxfrm'.
17222         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
17223         (amemxfrm): Renamed from memxfrm.
17224         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
17225         (amemxfrm): Renamed from memxfrm.
17226         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
17227         * NEWS: Mention the change.
17228         * MODULES.html.sh (String handling <string.h>): Update.
17229         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
17230         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
17231         * lib/unicase/u16-casexfrm.c: Likewise.
17232         * lib/unicase/u32-casexfrm.c: Likewise.
17233         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
17234         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
17235         * lib/uninorm/u16-normxfrm.c: Likewise.
17236         * lib/uninorm/u32-normxfrm.c: Likewise.
17237         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
17238         memxfrm.
17239         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
17240         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
17241         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
17242         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
17243         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
17244         Suggested by Paul Eggert.
17245
17246 2010-08-14  Bruno Haible  <bruno@clisp.org>
17247
17248         Tests for module 'astrxfrm'.
17249         * modules/astrxfrm-tests: New file.
17250         * tests/test-astrxfrm.c: New file.
17251
17252         New module 'astrxfrm'.
17253         * lib/astrxfrm.h: New file.
17254         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
17255         * modules/astrxfrm: New file.
17256
17257 2010-08-14  Reuben Thomas <rrt@sc3d.org>
17258
17259         regex: Tweak doc.
17260         * doc/regex.texi (Overview): Don't mention regex.c.
17261         (GNU Regular Expression Compiling): Likewise.
17262         (Match-end-of-line Operator): Mention 'not_eol'.
17263
17264 2010-08-14  Brian Gough  <bjg@gnu.org>
17265             Bruno Haible  <bruno@clisp.org>
17266
17267         git-merge-changelog: add doc relating to use with bzr and hg.
17268         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
17269
17270 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
17271
17272         pthread: fix pthread.h creation for srcdir != builddir
17273         * modules/pthread (Makefile.am): Fix the rule to work also in a
17274         non-srcdir build.
17275
17276 2010-08-13  Karl Berry  <karl@gnu.org>
17277
17278         * doc/regex.texi (Predefined Syntaxes): @smallexample.
17279         * doc/posix-*/*: force line break before @url of POSIX
17280         specifications.
17281         Suggested by Werner Lemberg.
17282
17283 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
17284
17285         strtod: fix const diagnostic
17286         * lib/strtod.c (strtod): Don't assign const char * to char *,
17287         as this elicits a warning from GCC when warnings are enabled.
17288
17289 2010-08-10  Pádraig Brady <P@draigbrady.com>
17290         and Eric Blake  <eblake@redhat.com>
17291
17292         copy-acl: ignore ENOTSUP on HP-UX
17293         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
17294         so that it is available for HP-UX.
17295         * lib/copy-acl.c (qcopy_acl): Use it.
17296         Reported by Patrick M. Callahan.
17297
17298 2010-08-10  Eric Blake  <eblake@redhat.com>
17299
17300         open, chown: relax license
17301         * modules/open (License): Change to LGPLv2+, with consent by all
17302         authors, for use in augeas.
17303         * modules/chown (License): Likewise.
17304         * modules/lchown (Likewise): Likewise.
17305         Requested by Adam Stokes.
17306
17307 2010-08-09  Karl Berry  <karl@gnu.org>
17308
17309         * build-aux/ar-lib: new file, import from Automake.
17310         * config/srclist.txt: autocheck for updates.
17311
17312 2010-08-09  Eric Blake  <eblake@redhat.com>
17313
17314         readlinkat: adjust client modules
17315         * modules/areadlinkat (Depends-on): Use readlinkat, not
17316         symlinkat.
17317         * modules/areadlinkat-with-size (Depends-on): Likewise.
17318
17319         mknod: be more vocal about danger of running tests as root
17320         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
17321         root, since that is just asking for problems.
17322         Suggested by Bruno Haible, based on a report by Rainer Tammer.
17323
17324         readlinkat: split into its own module
17325         * modules/symlinkat: Split readlinkat...
17326         * modules/readlinkat: ...into separate module.
17327         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
17328         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
17329         * lib/symlinkat.c (readlinkat): Move...
17330         * lib/readlinkat.c: ...into new file.
17331         * modules/symlinkat-tests: Split readlinkat test...
17332         * modules/readlinkat-tests: ...into separate module.
17333         * tests/test-symlinkat.c: Split...
17334         * tests/test-readlinkat.c: ...into new file.
17335         * NEWS: Document the split.
17336         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
17337         * lib/unistd.in.h (readlinkat): Likewise.
17338         Suggested by Bruno Haible.
17339
17340 2010-08-08  Bruno Haible  <bruno@clisp.org>
17341
17342         memxfrm: Speed up.
17343         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
17344         that usually only one call to strxfrm is necessary for each string
17345         part.
17346         Reported by Paul Eggert <eggert@cs.ucla.edu>.
17347
17348 2010-08-07  Karl Berry  <karl@gnu.org>
17349
17350         * doc/posix-headers/limits.texi,
17351         * doc/posix-functions/malloc.texi,
17352         * doc/posix-functions/strsignal.texi: missing @item.
17353         * doc/ld-version-script.texi: spurious leading i.
17354         * doc/regex.texi (Interval Operators): no commas inside @var.
17355
17356 2010-08-01  Bruno Haible  <bruno@clisp.org>
17357
17358         Integrate the regex documentation.
17359         * doc/gnulib.texi: Define 'cn' index.
17360         (Regular expressions): New a chapter that includes regex.texi and
17361         regexprops-generic.texi.
17362         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
17363         syntax.
17364
17365         Whitespace cleanup.
17366         * doc/regex.texi: Remove trailing spaces.
17367
17368         Add regex documentation.
17369         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
17370         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
17371         Written by Kathy A. Hargreaves and Karl Berry.
17372
17373 2010-08-01  Bruno Haible  <bruno@clisp.org>
17374
17375         link: Update documentation.
17376         * doc/posix-functions/link.texi: Update regarding Solaris.
17377
17378 2010-07-31  Bruno Haible  <bruno@clisp.org>
17379
17380         Update modules list.
17381         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
17382         (String handling <string.h>): Add memcmp2, memxfrm.
17383         (Container data structures): Add xlist, xsublist, xoset.
17384         (Core language properties): Add alignof, unused-parameter.
17385         (Process control, Numeric conversion functions <stdlib.h>): Renamed
17386         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
17387         (Unibyte characters <ctype.h>): New section.
17388         (String handling <string.h>): New section.
17389         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
17390         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
17391         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
17392         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
17393         tan, tanh, tanl, y0, y1, yn.
17394         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
17395         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
17396         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
17397         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
17398         unlockpt, vdprintf, vdprintf-posix.
17399         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
17400         (File system functions): Add concat-filename, sys_file, sys_ioctl,
17401         xconcat-filename.
17402         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
17403         getdtablesize, pipe2, pipe2-safer.
17404         (Security): New section.
17405         (Networking functions): Add accept4.
17406         (Signal handling): Add sigpipe.
17407         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
17408         mbmemcasecoll.
17409         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
17410         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
17411         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
17412         pipe-filter-ii.
17413         (Misc): Add argp-version-etc, login_tty, parse-duration.
17414
17415 2010-07-31  Bruno Haible  <bruno@clisp.org>
17416
17417         Improve doc in MODULES.html.
17418         * modules/linkat (Description): Add the word "function".
17419         * modules/mkfifo (Description): Likewise.
17420         * modules/mknod (Description): Likewise.
17421         * modules/remove (Description): Likewise.
17422         * modules/renameat (Description): Likewise.
17423         * modules/stat (Description): Likewise.
17424         * modules/symlink (Description): Likewise.
17425         * modules/unlink (Description): Likewise.
17426
17427 2010-07-31  Bruno Haible  <bruno@clisp.org>
17428
17429         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
17430         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
17431         option --enable/disable-c++ instead of --enable/disable-cxx.
17432         * NEWS: Mention the change.
17433
17434 2010-07-31  Bruno Haible  <bruno@clisp.org>
17435
17436         readlink, areadlink: Relax test a bit.
17437         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
17438         alternative to ENOTDIR.
17439         * tests/test-areadlink.h (test_areadlink): Likewise.
17440         Reported by Rainer Tammer.
17441
17442 2010-07-31  Bruno Haible  <bruno@clisp.org>
17443
17444         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
17445         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
17446         character, perform the search using U_STRCHR.
17447         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
17448         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
17449         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
17450         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
17451         Suggested by Paolo Bonzini.
17452
17453 2010-07-31  Bruno Haible  <bruno@clisp.org>
17454
17455         unistr/u*-strstr: Fix dependencies.
17456         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
17457         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
17458         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
17459
17460 2010-07-31  Bruno Haible  <bruno@clisp.org>
17461
17462         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
17463         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
17464         the beginning of the loop.
17465         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
17466         cases in 'switch' statement.
17467
17468         unistr/u8-strchr: Fix several bugs.
17469         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
17470         the string. When not found, return NULL, not a pointer near the end.
17471
17472         More tests for unistr/u8-strchr.
17473         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
17474         that the function does not read past the first occurrence of the byte
17475         being searched.
17476         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
17477         * tests/unistr/test-u16-strchr.c (main): New function.
17478         * tests/unistr/test-u32-strchr.c (main): New function.
17479
17480 2010-07-31  Bruno Haible  <bruno@clisp.org>
17481
17482         posix-modules: Ignore backup files of documentation files.
17483         * posix-modules: grep only through files named *.texi.
17484
17485 2010-07-31  Bruno Haible  <bruno@clisp.org>
17486
17487         symlinkat: Fix documentation.
17488         * doc/posix-functions/readlinkat.texi: Fix module name.
17489
17490 2010-07-31  Bruno Haible  <bruno@clisp.org>
17491
17492         fchownat: Replace also when chown has the trailing slash bug.
17493         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
17494         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
17495         introduced on 2010-04-10.
17496         Reported by Rainer Tammer.
17497
17498 2010-07-31  Bruno Haible  <bruno@clisp.org>
17499
17500         linkat: Work around AIX 7.1 bug.
17501         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
17502         whether linkat handles trailing slash correctly. If not, replace linkat
17503         and define LINKAT_TRAILING_SLASH_BUG.
17504         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
17505         check whether (fd1,file1) points to a directory if file1 or file2 ends
17506         in a slash. Code taken from lib/link.c.
17507         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
17508         Reported by Rainer Tammer.
17509
17510 2010-07-31  Bruno Haible  <bruno@clisp.org>
17511
17512         Correctly determine whether pow is available in libc on AIX 7 with xlc.
17513         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
17514         This disables an xlc optimization that was causing wrong test results.
17515         Reported by Rainer Tammer.
17516
17517 2010-07-31  Bruno Haible  <bruno@clisp.org>
17518
17519         iconv: Work around AIX 6.1..7.1 bug.
17520         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
17521         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
17522         cross-compiling, guess no on all versions of AIX.
17523         Reported by Rainer Tammer.
17524
17525 2010-07-31  Bruno Haible  <bruno@clisp.org>
17526
17527         readlink: Relax test a bit.
17528         * tests/test-readlink.h (test_readlink): Allow different errno value
17529         when readlink is called with a file name that ends in / and refers to
17530         a file.
17531         Suggested by Eric Blake.
17532         Reported by Rainer Tammer.
17533
17534 2010-07-31  Bruno Haible  <bruno@clisp.org>
17535
17536         copysign: Does not require -lm on glibc systems.
17537         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
17538         gl_COMMON_DOUBLE_MATHFUNC.
17539         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
17540
17541 2010-07-31  Bruno Haible  <bruno@clisp.org>
17542
17543         duplocale: Work around AIX 7.1 bug.
17544         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
17545         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
17546         * lib/duplocale.c (rpl_duplocale): Update comment.
17547         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
17548         Reported by Rainer Tammer.
17549
17550 2010-07-30  Bruno Haible  <bruno@clisp.org>
17551
17552         dirfd: Avoid link error on AIX 7.1.
17553         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
17554         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
17555         exist, set REPLACE_DIRFD.
17556         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
17557         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
17558         * doc/posix-functions/dirfd.texi: Update.
17559         Reported by Rainer Tammer.
17560
17561 2010-07-30  Eric Blake  <eblake@redhat.com>
17562
17563         strtod: next round of AIX fixes
17564         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
17565         exponent.
17566         * tests/test-strtod.c (main): Enhance tests.
17567         * doc/posix-functions/strtod.texi (strtod): Document next bug.
17568         Reported by Rainer Tammer.
17569
17570         futimens: fix configure check
17571         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
17572         Reported by Bruno Haible.
17573
17574 2010-07-30  Bruno Haible  <bruno@clisp.org>
17575
17576         getline: Update regarding AIX.
17577         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
17578         Reported by Rainer Tammer.
17579
17580 2010-07-30  Bruno Haible  <bruno@clisp.org>
17581
17582         wcwidth: Drop replacement on AIX 7.
17583         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
17584         AIX 7.
17585         Reported by Rainer Tammer.
17586
17587 2010-07-30  Bruno Haible  <bruno@clisp.org>
17588
17589         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
17590         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
17591         a 'char *'.
17592         Reported by Rainer Tammer.
17593
17594 2010-07-30  Bruno Haible  <bruno@clisp.org>
17595
17596         unlink: Update regarding AIX.
17597         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
17598         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
17599         Reported by Rainer Tammer.
17600
17601 2010-07-30  Bruno Haible  <bruno@clisp.org>
17602
17603         symlink: Update regarding AIX.
17604         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
17605         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
17606         Reported by Rainer Tammer.
17607
17608 2010-07-30  Bruno Haible  <bruno@clisp.org>
17609
17610         strndup: Update regarding AIX.
17611         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
17612         AIX 7.
17613         Reported by Rainer Tammer.
17614
17615 2010-07-30  Bruno Haible  <bruno@clisp.org>
17616
17617         stat: Update regarding AIX.
17618         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
17619         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
17620         Reported by Rainer Tammer.
17621
17622 2010-07-30  Bruno Haible  <bruno@clisp.org>
17623
17624         truncl: Fix autoconf test.
17625         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
17626         whether truncl works.
17627         Reported by Rainer Tammer.
17628
17629 2010-07-30  Bruno Haible  <bruno@clisp.org>
17630
17631         round: Update regarding AIX.
17632         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
17633         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
17634         Reported by Rainer Tammer.
17635
17636 2010-07-30  Bruno Haible  <bruno@clisp.org>
17637
17638         rename: Update regarding AIX.
17639         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
17640         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
17641         Reported by Rainer Tammer.
17642
17643 2010-07-30  Bruno Haible  <bruno@clisp.org>
17644
17645         printf.m4: Update regarding AIX.
17646         * m4/printf.m4: Update comments regarding AIX.
17647         Reported by Rainer Tammer.
17648
17649 2010-07-30  Bruno Haible  <bruno@clisp.org>
17650
17651         iconv: Update regarding AIX.
17652         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
17653         AIX 7.
17654         Reported by Rainer Tammer.
17655
17656 2010-07-30  Bruno Haible  <bruno@clisp.org>
17657
17658         getopt: Update regarding AIX.
17659         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
17660         no on AIX.
17661         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
17662         Reported by Rainer Tammer.
17663
17664 2010-07-30  Bruno Haible  <bruno@clisp.org>
17665
17666         ldexpl; Update regarding AIX.
17667         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
17668         on AIX 7.
17669         Reported by Rainer Tammer.
17670
17671 2010-07-30  Bruno Haible  <bruno@clisp.org>
17672
17673         frexpl: Update regarding AIX.
17674         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
17675         on AIX 7.
17676         Reported by Rainer Tammer.
17677
17678 2010-07-30  Bruno Haible  <bruno@clisp.org>
17679
17680         open, fopen: Update regarding AIX.
17681         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
17682         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
17683         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
17684         * doc/posix-functions/fopen.texi: Likewise.
17685         Reported by Rainer Tammer.
17686
17687 2010-07-30  Bruno Haible  <bruno@clisp.org>
17688
17689         chown: Update doc regarding AIX.
17690         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
17691         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
17692         Reported by Rainer Tammer.
17693
17694 2010-07-30  Eric Blake  <eblake@redhat.com>
17695
17696         strtod: fix bug in replacement function on AIX
17697         * lib/strtod.c (strtod): Special case broken "0x" parse in
17698         underlying strtod.
17699         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
17700         * doc/posix-functions/strtod.texi (strtod): Likewise.
17701         Reported by Rainer Tammer.
17702
17703 2010-07-30  Bruno Haible  <bruno@clisp.org>
17704
17705         mbrlen: Fix cross-compilation guess for AIX.
17706         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
17707         guess. Leftover from 2008-12-22.
17708
17709 2010-07-30  Bruno Haible  <bruno@clisp.org>
17710
17711         mbrtowc: Fix cross-compilation guess for AIX.
17712         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
17713         guess. Leftover from 2008-12-21.
17714
17715 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
17716
17717         init.sh: work around trap limitation of some shells
17718         * tests/init.sh (setup_): Move exit trap outside of shell function.
17719
17720 2010-07-29  Eric Blake  <eblake@redhat.com>
17721
17722         strtod: aid debugging
17723         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
17724         understanding why strtod is rejected.
17725
17726 2010-07-28  Bruno Haible  <bruno@clisp.org>
17727
17728         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
17729         * lib/unistr/u8-chr.c: Include <string.h>.
17730         * tests/unistr/test-u8-chr.c: Likewise.
17731         * tests/unistr/test-u16-chr.c: Likewise.
17732         * tests/unistr/test-u32-chr.c: Likewise.
17733         * tests/unistr/test-u8-strchr.c: Likewise.
17734         * tests/unistr/test-u16-strchr.c: Likewise.
17735         * tests/unistr/test-u32-strchr.c: Likewise.
17736         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
17737         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
17738         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
17739         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
17740
17741 2010-07-28  Bruno Haible  <bruno@clisp.org>
17742
17743         Use spaces for indentation, not tabs.
17744         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
17745
17746 2010-07-27  Bruno Haible  <bruno@clisp.org>
17747
17748         mbspcasecmp: Fix function specification.
17749         * lib/string.in.h (mbspcasecmp): Fix specification comment.
17750         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
17751         Reported by Eric Blake <eblake@redhat.com>.
17752
17753 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
17754
17755         timespec: use cast and not conditional, as truncation isn't possible
17756         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
17757         instead of a conditional.  Comment about the situation in more detail.
17758         This undoes most of the 2009-10-29 patch.
17759
17760 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
17761
17762         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
17763         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
17764         * lib/unistr/u8-strchr.c: Likewise.
17765         * modules/unistr/u8-chr: Depend on memchr.
17766
17767         unistr/u*-strchr: add tests
17768         * modules/unistr/u8-strchr-tests: New file.
17769         * modules/unistr/u16-strchr-tests: New file.
17770         * modules/unistr/u32-strchr-tests: New file.
17771         * tests/unistr/test-strchr.h: New file.
17772         * tests/unistr/test-u8-strchr.c: New file.
17773         * tests/unistr/test-u16-strchr.c: New file.
17774         * tests/unistr/test-u32-strchr.c: New file.
17775
17776         unistr/u*-chr: test multibyte sequences more
17777         * tests/unistr/test-chr.h: Do complete testing of the characters in the
17778         test vector.
17779         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
17780         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
17781         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
17782
17783         unistr/u*-chr: test multibyte sequences
17784         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
17785
17786         unistr/u*-chr: prepare for multibyte tests
17787         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
17788         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
17789         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
17790         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
17791         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
17792         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
17793
17794 2010-07-18  Bruno Haible  <bruno@clisp.org>
17795
17796         unistr/u8-strchr: Optimize non-ASCII argument case.
17797         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
17798         because the first byte often matches anyway.
17799         Reported by Pádraig Brady <P@draigbrady.com>.
17800
17801 2010-07-15  Karl Berry  <karl@gnu.org>
17802
17803         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
17804
17805 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
17806
17807         getcwd: on Solaris, work better if ancestors are inaccessible
17808         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
17809         buffer and size, try again with a large buffer.  This works better
17810         on Solaris, since its getcwd succeeds even if the path to the root
17811         is inaccessible, and this is helpful in common cases such as .zfs
17812         hidden directories.  Problem reported by J Chapman Flack in
17813         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
17814         Use system getcwd if it's declared, not merely if it's partly
17815         working; use the partly-working test only to avoid needless effort
17816         if the system getcwd fails.
17817         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
17818         comment that was already obsolete and is now even more obsolete.
17819         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
17820         now might call strdup.
17821
17822 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
17823
17824         pthread: Add enough so that coreutils/src/sort.c compiles.
17825         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
17826         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
17827         gnulib. Include <sched.h> and <time.h>, as per POSIX.
17828         Include <sys/types.h>, in case it defines pthread_t.
17829         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
17830         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
17831         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
17832         (pthread_rwlockattr_t, pthread_spinlock_t):
17833         New typedefs, if HAVE_PTHREAD_T is not defined.
17834         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
17835         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
17836         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
17837         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
17838         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
17839         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
17840         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
17841         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
17842         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
17843         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
17844         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
17845         New macros.
17846         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
17847         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
17848         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
17849         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
17850         (pthread_spin_unlock): New dummy functions.
17851         (pthread_create): Return EAGAIN; don't set errno.
17852         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
17853         require AC_C_INLINE.
17854         * modules/pthread (Depends-on): Add sched, time.
17855         (pthread.h): Use AM_V_GEN.
17856
17857 2010-07-13  Bruno Haible  <bruno@clisp.org>
17858
17859         striconveh: Don't malloc memory if the result buffer is sufficient.
17860         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
17861         buffer if its size is sufficient.
17862         Reported by Ludovic Courtès <ludo@gnu.org>.
17863
17864 2010-07-13  Bruno Haible  <bruno@clisp.org>
17865
17866         strtod: Add safety check.
17867         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
17868
17869 2010-07-12  Bruno Haible  <bruno@clisp.org>
17870
17871         Unify tests that set gl_cv_func_ldexpl_no_libm.
17872         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
17873         gl_FUNC_LDEXPL.
17874         (gl_FUNC_LDEXPL): Invoke it.
17875         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
17876
17877 2010-07-12  Bruno Haible  <bruno@clisp.org>
17878
17879         Unify tests that set gl_cv_func_ldexp_no_libm.
17880         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
17881         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
17882         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
17883         (configure.ac): Simply invoke gl_FUNC_LDEXP.
17884         * modules/strtod (Files): Add m4/ldexp.m4.
17885
17886 2010-07-12  Bruno Haible  <bruno@clisp.org>
17887
17888         Unify tests that set gl_cv_func_frexpl_no_libm.
17889         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
17890         gl_FUNC_FREXPL_NO_LIBM.
17891         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
17892         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
17893
17894 2010-07-12  Bruno Haible  <bruno@clisp.org>
17895
17896         Unify tests that set gl_cv_func_frexp_no_libm.
17897         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
17898         gl_FUNC_FREXP_NO_LIBM.
17899         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
17900         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
17901
17902 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
17903
17904         memcoll: clarify sizes versus lengths, document better, and tweak perf
17905         * lib/memcoll.c (strcoll_loop, memcoll0):
17906         Improve quality of descriptive comments.  Name variables
17907         consistently as to whether they are lengths (which do not include
17908         terminating null) versus sizes (which do).
17909         * lib/xmemcoll.c (xmemcoll0): Likewise.
17910         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
17911         returned when s1size == 0; this is easier to compile and saves
17912         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
17913
17914 2010-07-12  Bruno Haible  <bruno@clisp.org>
17915
17916         Tests for module '_Exit'.
17917         * modules/_Exit-tests: New file.
17918         * tests/test-_Exit.sh: New file.
17919         * tests/test-_Exit.c: New file.
17920
17921         New module '_Exit'.
17922         * lib/stdlib.in.h (__attribute__): New macro.
17923         (_Exit): New declaration.
17924         * lib/_Exit.c: New file.
17925         * m4/_Exit.m4: New file.
17926         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
17927         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
17928         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
17929         * modules/_Exit: New file.
17930         * tests/test-stdlib-c++.cc (_Exit): Check signature.
17931         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
17932
17933 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
17934
17935         strtod: make it more-accurate typically, and don't require libm
17936         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
17937         Include limits.h.  Don't include string.h.
17938         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
17939         (locale_isspace): New function, so that no casts are needed to
17940         check whether *s is a space.
17941         (ldexp): Provide an unused dummy if not available.
17942         (scale_radix_exp, parse_number, underlying_strtod): New functions.
17943         (strtod): Use them.  This implementation prefers to use the
17944         underlying strtod if available, falling back on our own code
17945         only to fix known bugs.  This is more likely to produce an
17946         accurate result.  Also, it avoids the use of libm functions.
17947         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
17948         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
17949         was absent, but it caused a test failure with coreutils.
17950         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
17951         with libm.
17952         * modules/strtod (Makefile.am, Link): libm is no longer needed.
17953         * modules/strtod-tests (Makefile.am): Likewise.
17954
17955 2010-07-11  Pádraig Brady  <P@draigBrady.com>
17956             Bruno Haible  <bruno@clisp.org>
17957
17958         unistr/u8-strchr: Optimize ASCII argument case.
17959         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
17960
17961 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
17962
17963         (x)memcoll: minor tweaks
17964         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
17965         is after the type that it qualifies.
17966         (memcoll0): Likewise.
17967         * lib/memcoll.h (memcoll0): Likewise.
17968         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
17969         * lib/xmemcoll.h (xmemcoll0): Likewise.
17970         * lib/memcoll.c (memcoll0): Correct the comment.  This function
17971         differs from memcoll in that the NUL byte is part of the argument.
17972         Omit the abort-checks, as performance is a real issue here.  Plus,
17973         the checks were wrong anyway (an off-by-one error).  Omit local
17974         variable 'diff', as it's a bit clearer that way.
17975         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
17976         no longer needed.
17977
17978 2010-07-08  Chen Guo <chenguo4@yahoo.com>
17979
17980         (x)memcoll: speedup when input is known to be NUL delimited
17981         * lib/memcoll.c: Include stdlib.
17982         (memcoll0): New function.
17983         (strcoll_loop): New function, refactored for use in both memcoll
17984         and memcoll0.
17985         * lib/memcoll.h (memcoll0): Add prototype.
17986         * lib/xmemcoll.c (xmemcoll0): New function.
17987         (collate_error): New function, refactored for use in both xmemcoll
17988         and xmemcoll0.
17989         * lib/xmemcoll.h (xmemcoll0): Add prototype.
17990         * m4/memcoll.m4: add inline invocation.
17991
17992 2010-07-06  Pádraig Brady  <P@draigBrady.com>
17993
17994         * build-aux/bootstrap: Remove any local translations
17995         from the translation project synchronization directory,
17996         so that local only translations are not distributed.
17997
17998 2010-07-04  Bruno Haible  <bruno@clisp.org>
17999
18000         fsusage: Clarify which code applies to which platforms.
18001         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
18002         platform.
18003         * lib/fsusage.c (get_fs_usage): Likewise.
18004
18005 2010-07-04  Bruno Haible  <bruno@clisp.org>
18006
18007         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
18008         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
18009         Reported by Martin Lambers <marlam@marlam.de>.
18010
18011 2010-07-04  Jim Meyering  <meyering@redhat.com>
18012
18013         hash: once again explicitly disallow insertion of NULL
18014         * lib/hash.c (hash_insert0): Reinstate just-removed test:
18015         inserting a NULL pointer cannot work with these functions.
18016         Add a comment with details.
18017         This reverts part of the 2010-07-01 commit, 5bef1a35
18018         "hash: extend module to deal with non-pointer keys".
18019
18020 2010-07-01  Bruno Haible  <bruno@clisp.org>
18021
18022         stdbool: Update doc.
18023         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
18024         Info from Christian Weisgerber <naddy@mips.inka.de>.
18025
18026 2010-07-01  Jim Meyering  <meyering@redhat.com>
18027
18028         hash: extend module to deal with non-pointer keys
18029         * lib/hash.c (hash_insert0): New interface, much like hash_insert
18030         but that allows insertion of non-pointer entries.
18031         Do not disallow an ENTRY value of NULL.
18032         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
18033         * lib/hash.h (hash_insert0): Declare.
18034
18035 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
18036
18037         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
18038         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
18039         not present (i.e. with autoconf 2.59 and when using gettextize, not
18040         gnulib), require AC_GNU_SOURCE instead.
18041
18042 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
18043
18044         idpriv-drop: Fix tests.
18045         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
18046         not to the test-idpriv-droptemp program.
18047
18048 2010-06-29  Bruno Haible  <bruno@clisp.org>
18049
18050         string: Fix syntax error with g++ 2.96.
18051         * lib/string.in.h (__pure__): Remove definition.
18052         (_GL_ATTRIBUTE_PURE): New macro.
18053         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
18054         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
18055         Reported by Christian Weisgerber <naddy@mips.inka.de>.
18056
18057 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
18058
18059         unitypes: Fix bug introduced on 2010-05-18.
18060         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
18061
18062 2010-06-22  Eric Blake  <eblake@redhat.com>
18063
18064         memmem: slight optimization
18065         * lib/str-two-way.h (critical_factorization): Update comments.
18066         Reduce work during factorization phase.
18067         Reported by Carlos Bueno <carlos@bueno.org>.
18068
18069 2010-06-21  Bruno Haible  <bruno@clisp.org>
18070
18071         Fix HAVE_CALLOC_POSIX misnomer.
18072         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
18073         !HAVE_CALLOC_POSIX.
18074         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
18075         HAVE_CALLOC_POSIX.
18076         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
18077         instead of HAVE_CALLOC_POSIX.
18078         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
18079         HAVE_CALLOC_POSIX.
18080
18081         Use modern idiom for calloc() replacement.
18082         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
18083         AC_FUNC_CALLOC.
18084         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
18085         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
18086         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
18087         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
18088         (gl_REPLACE_CALLOC): New macro.
18089
18090 2010-06-21  Bruno Haible  <bruno@clisp.org>
18091
18092         Fix HAVE_REALLOC_POSIX misnomer.
18093         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
18094         !HAVE_REALLOC_POSIX.
18095         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
18096         HAVE_REALLOC_POSIX.
18097         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
18098         instead of HAVE_REALLOC_POSIX.
18099         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
18100         HAVE_REALLOC_POSIX.
18101
18102         Use modern idiom for realloc() replacement.
18103         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
18104         AC_FUNC_REALLOC.
18105         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
18106         Autoconf's AC_FUNC_REALLOC.
18107         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
18108         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
18109         (gl_REPLACE_REALLOC): New macro.
18110         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
18111
18112 2010-06-21  Bruno Haible  <bruno@clisp.org>
18113
18114         Fix HAVE_MALLOC_POSIX misnomer.
18115         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
18116         !HAVE_MALLOC_POSIX.
18117         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
18118         HAVE_MALLOC_POSIX.
18119         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
18120         instead of HAVE_MALLOC_POSIX.
18121         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
18122         HAVE_MALLOC_POSIX.
18123
18124         Use modern idiom for malloc() replacement.
18125         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
18126         AC_FUNC_MALLOC.
18127         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
18128         Autoconf's AC_FUNC_MALLOC.
18129         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
18130         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
18131         (gl_REPLACE_MALLOC): New macro.
18132         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
18133
18134 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
18135
18136         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
18137         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
18138         This macro takes 3 arguments, not 4.
18139
18140 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
18141
18142         ipv6: fix detection under mingw
18143         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
18144         in6_addr.
18145
18146 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
18147
18148         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
18149         that strtod() works when cross-compiling to a glibc version known
18150         to work.
18151
18152 2010-06-15  Bruno Haible  <bruno@clisp.org>
18153
18154         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
18155
18156 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
18157
18158         select: Correct timeout.
18159         * lib/select.c (rpl_select): Compute wait_timeout correctly.
18160
18161 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
18162
18163         git-version-gen: init shell var to avoid env var influence
18164         * build-aux/git-version-gen (v): Init shell var to empty.
18165
18166 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
18167
18168         priv-set: Don't assume that priv.h exists merely because getppriv does.
18169         See Jan Andersen's bug report about AIX 5L in
18170         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
18171         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
18172         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
18173         * lib/priv-set.h: Likewise.
18174         * tests/test-priv-set.c: Likewise.
18175
18176 2010-06-13  Bruno Haible  <bruno@clisp.org>
18177
18178         relocatable: Make it easier to test whether to install wrappers.
18179         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
18180         RELOCATABLE_VIA_WRAPPER.
18181
18182 2010-06-13  Bruno Haible  <bruno@clisp.org>
18183
18184         gnulib-tool: Display specified modules and dependencies differently.
18185         * gnulib-tool (func_show_module_list): New function.
18186         (func_import, func_create_testdir): Invoke it.
18187         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
18188
18189 2010-06-13  Bruno Haible  <bruno@clisp.org>
18190
18191         gnulib-tool: Align code of func_import and func_create_testdir.
18192         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
18193         specified_modules.
18194
18195 2010-06-12  Jim Meyering  <meyering@redhat.com>
18196
18197         test-inttostr: avoid spurious failure on Solaris 9
18198         * tests/test-inttostr.c (main): Skip the test when snprintf fails
18199         to accept "%ju".  Reported by Bruno Haible.
18200
18201 2010-06-11  Jim Meyering  <meyering@redhat.com>
18202
18203         test-sys_socket: mark variables as used more readably
18204         * tests/test-sys_socket.c (main): Mark otherwise unused variables
18205         as "used" explicitly via (void) statement casts.  This is more
18206         readable than using them in an artificial return expression.
18207         Suggestion from Bruno Haible.
18208
18209 2010-06-11  Bruno Haible  <bruno@clisp.org>
18210
18211         Avoid some more warnings from "gcc -Wwrite-strings".
18212         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
18213         to 'const char *'.
18214         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
18215         * tests/test-c-strcasestr.c (main): Likewise.
18216         * tests/test-mbscasestr1.c (main): Likewise.
18217         * tests/test-mbscasestr2.c (main): Likewise.
18218         * tests/test-memmem.c (main): Likewise.
18219         * tests/test-strstr.c (main): Likewise.
18220         * tests/test-strcasestr.c (main): Likewise.
18221
18222 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18223
18224         init.sh: change framework_failure_ to fail with status 99, not 1
18225         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
18226         automake's parallel-tests rule that this is an unexpected failure,
18227         even if the test is listed in XFAIL_TESTS.
18228
18229 2010-06-11  Jim Meyering  <meyering@redhat.com>
18230
18231         test-inttostr: avoid warnings about 4-6KB literal strings
18232         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
18233         Include "macros.h", for its definition of ASSERT.
18234         (CK): s/assert/ASSERT/
18235         * modules/inttostr-tests (Files): Add macros.h.
18236
18237         init.sh: don't use $ME_ or skip_ before they are defined
18238         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
18239         their first uses.  Also hoist their companions: warn_, fail_,
18240         framework_failure_, $stderr_fileno.  Prompted by a patch from
18241         Stefano Lattarini.
18242
18243         test-sys_socket: avoid set-but-not-used warnings from gcc
18244         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
18245         avoid warning about set-but-not-used variables.
18246
18247         test-xvasprintf: avoid 'const' discard warnings
18248         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
18249         "const" when assigning from literal strings.
18250         (test_xasprintf): Add "void" in function argument list to placate
18251         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
18252
18253         tests: avoid compilation warnings in argmatch and exclude tests...
18254         in packages that define ARGMATCH_DIE_DECL, like coreutils.
18255         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
18256         Since it always exits, declare with the "noreturn" attribute.
18257         * tests/test-argmatch.c: Likewise.
18258
18259         tests: avoid 'const' discard warnings in mbsstr tests
18260         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
18261         * tests/test-mbsstr2.c (main): Likewise.
18262
18263         test-verify: avoid warning from gcc's -Wmissing-declarations
18264         * tests/test-verify.c (function): Declare to be static.
18265
18266         test-inttostr.c: include <string.h> for use of strcmp
18267         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
18268
18269         test-linkat: avoid failed assertion on "other" architectures
18270         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
18271         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
18272         sparc: https://bugs.launchpad.net/bugs/591968
18273
18274 2010-06-11  Jim Meyering  <meyering@redhat.com>
18275
18276         printf.m4: avoid autoconf's "Expanded Before Required" warning
18277         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
18278         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
18279         autoconf warning.
18280
18281 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
18282
18283         Replacement header templates are now named with ".in", not "_".
18284         * doc/gnulib-intro.texi: Correct.
18285
18286 2010-06-10  Jim Meyering  <meyering@redhat.com>
18287
18288         inttostr-tests: depend on snprintf, not snprintf-posix
18289         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
18290         snprintf-posix, to avoid this aclocal failure:
18291           missing file gnulib-tests/vasnprintf.c
18292           configure.ac:45: error: expected source file, required through \
18293           AC_LIBSOURCES, not found
18294
18295 2010-06-10  Jim Meyering  <meyering@redhat.com>
18296
18297         inttostr: add a new function, inttostr, and tests
18298         The namesake function was not available.  The existence of the
18299         template file, inttostr.c makes its addition nontrivial.
18300         * lib/anytostr.c: Rename from inttostr.c.
18301         (anytostr): Rename from inttostr.
18302         * lib/inttostr.c: New file.
18303         * modules/inttostr (Files): Add anytostr.c.
18304         (Makefile.am): Set lib_SOURCES instead of ...
18305         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
18306         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
18307         * lib/offtostr.c: Likewise.
18308         * lib/uinttostr.c: Likewise.
18309         * lib/umaxtostr.c: Likewise.
18310         * modules/inttostr-tests: New file.
18311         * tests/test-inttostr.c: New file.  Test these functions.
18312
18313 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
18314             Bruno Haible  <bruno@clisp.org>
18315
18316         Add "Extending Gnulib" chapter to manual.
18317         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
18318         chapter.
18319         (Extending Gnulib): New chapter.
18320         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
18321         chapter.
18322
18323 2010-06-09  Bruno Haible  <bruno@clisp.org>
18324
18325         Avoid relocwrapper link errors due to gnulib replacement functions.
18326         * lib/areadlink.c: Use the system's malloc, realloc functions.
18327         (areadlink): Set errno to ENOMEM explicitly.
18328         * modules/areadlink (Depends-on): Remove malloc-posix.
18329         Reported by Ben Pfaff <blp@cs.stanford.edu>.
18330
18331 2010-06-09  Bruno Haible  <bruno@clisp.org>
18332
18333         Avoid relocwrapper link errors due to gnulib replacement functions.
18334         * lib/canonicalize-lgpl.c: Use the system's malloc function.
18335         * lib/malloca.c: Likewise.
18336         * lib/relocatable.c: Likewise.
18337         * lib/progreloc.c: Use the system's malloc, sprintf functions.
18338         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
18339         * lib/setenv.c: Use the system's malloc, realloc functions.
18340         * lib/strerror.c: Use the system's sprintf function.
18341         Reported by Ben Pfaff <blp@cs.stanford.edu>.
18342
18343 2010-06-04  Bruno Haible  <bruno@clisp.org>
18344
18345         Prefer documented low-level autoconf macro names.
18346         * m4/lib-link.m4: Use m4_translit instead of translit.
18347         * m4/environ.m4: Likewise.
18348         * m4/mathfunc.m4: Likewise.
18349         * m4/onceonly.m4: Likewise.
18350         * m4/stdint.m4: Likewise.
18351         Suggested by Eric Blake.
18352
18353 2010-06-04  Martin Lambers  <marlam@marlam.de>
18354             Bruno Haible  <bruno@clisp.org>
18355
18356         havelib: Allow library names with '+' characters.
18357         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
18358         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
18359
18360 2010-06-09  Bruno Haible  <bruno@clisp.org>
18361
18362         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
18363         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
18364         realloc failed.
18365
18366 2010-06-08  Peter Simons  <simons@cryp.to>
18367
18368         maint.mk: make the news-check rule more configurable
18369         * top/maint.mk (news-check-lines-spec): New variable.
18370         (news-check): Use "sed -n 1,10p" in place of "head".
18371
18372 2010-06-07  Jim Meyering  <meyering@redhat.com>
18373
18374         do-release-commit-and-tag: fix typo in --help
18375         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
18376
18377         regex: avoid new dead-code warning with gcc-4.6.0
18378         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
18379         if-block containing a while-loop.  It's been unused for at least
18380         5 years.
18381
18382 2010-06-05  Bruno Haible  <bruno@clisp.org>
18383
18384         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
18385         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
18386
18387 2010-06-04  Bruno Haible  <bruno@clisp.org>
18388
18389         Update to GNU gettext 0.18.1.
18390         * modules/gettext (configure.ac): Require gettext infrastructure from
18391         version 0.18.1.
18392
18393 2010-06-03  Bruno Haible  <bruno@clisp.org>
18394
18395         Don't use AC_LIBOBJ with file names in subdirectories.
18396         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
18397         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
18398         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
18399         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
18400         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
18401         gl_LIBUNISTRING_LIBSOURCE.
18402         (Makefile.am): Augment lib_SOURCES here, conditionally.
18403         * NEWS: Drop requirement for Automake option 'subdir-objects'.
18404
18405 2010-06-03  Bruno Haible  <bruno@clisp.org>
18406
18407         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
18408         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
18409         expansion does not end with a newline.
18410         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
18411         unnecessary newline.
18412
18413 2010-06-03  Bruno Haible  <bruno@clisp.org>
18414
18415         Reduce dependencies.
18416         * tests/test-quotearg.h: New file, extracted from
18417         tests/test-quotearg.c.
18418         * tests/test-quotearg-simple.c: New file, extracted from
18419         tests/test-quotearg.c.
18420         * tests/test-quotearg.c: Don't include <ctype.h>.
18421         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
18422         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
18423         use_quote_double_quotes, use_quotearg_colon): Moved to
18424         tests/test-quotearg.h.
18425         (results_g, flag_results, custom_quotes, custom_results): Moved
18426         to tests/test-quotearg-simple.c.
18427         (main): Moved the part that does not depend on gettext to
18428         tests/test-quotearg-simple.c. Return 77 if the test cannot be
18429         performed.
18430         * modules/quotearg-simple: New file.
18431         * modules/quotearg-simple-tests: New file.
18432         * modules/quotearg (Depends-on): Add quotearg-simple.
18433         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
18434         (Files): Add tests/test-quotearg.h.
18435         Reported by Paolo Bonzini.
18436
18437 2010-06-03  Bruno Haible  <bruno@clisp.org>
18438
18439         Reduce dependencies.
18440         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
18441
18442 2010-06-03  Bruno Haible  <bruno@clisp.org>
18443
18444         time: Undefine more broken macros.
18445         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
18446         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
18447         Reported by Eric Blake.
18448
18449 2010-06-03  Bruno Haible  <bruno@clisp.org>
18450
18451         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
18452         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
18453         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
18454         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
18455         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
18456         Reported by Ludovic Courtès <ludo@gnu.org>.
18457
18458 2010-06-02  Eric Blake  <eblake@redhat.com>
18459
18460         time: work with mingw + pthreads-win32 library
18461         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
18462         if timespec is defined only in pthread.h.
18463         * modules/time (Makefile.am): Substitute it.
18464         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
18465         <pthread.h>, when needed.
18466         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
18467         from the library.
18468
18469 2010-05-31  Bruno Haible  <bruno@clisp.org>
18470
18471         Avoid expanding two macros in the wrong order.
18472         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
18473         gl_LIBUNISTRING if it is defined.
18474         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
18475         autoconf >= 2.64.
18476         Reported by Ludovic Courtès <ludo@gnu.org>.
18477
18478 2010-05-27  Jim Meyering  <meyering@redhat.com>
18479
18480         maint.mk: also prohibit "#undef" of always-defined symbols
18481         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
18482         Allow more than one space before the symbol name.
18483         (sc_prohibit_always-defined_macros): Use grep's -E, now that
18484         the regexp uses alternation.
18485
18486 2010-05-26  Eric Blake  <eblake@redhat.com>
18487
18488         maint.mk: avoid echo -e
18489         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
18490         Convert all uses of echo -* to printf.
18491         Reported by Matthias Bolte.
18492
18493 2010-05-25  Bruno Haible  <bruno@clisp.org>
18494
18495         Update to GNU gettext 0.18, part 2.
18496         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
18497         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
18498
18499 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18500
18501         Add missing include in test-pwrite.c.
18502         * tests/test-pwrite.c: Include string.h, for strcmp.
18503
18504 2010-05-24  Bruno Haible  <bruno@clisp.org>
18505
18506         * NEWS: Mention requirement for Automake option 'subdir-objects'.
18507
18508 2010-05-24  Bruno Haible  <bruno@clisp.org>
18509
18510         Don't use conversion with transliteration in u{8,16,32}_strcoll.
18511         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
18512         iconveh_error argument.
18513         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
18514         U_STRCONV_TO_LOCALE.
18515         * lib/unistr/u16-strcoll.c: Likewise.
18516         * lib/unistr/u32-strcoll.c: Likewise.
18517         * modules/unistr/u8-strcoll (Depends-on): Add
18518         uniconv/u8-strconv-to-enc, localcharset. Remove
18519         uniconv/u8-strconv-to-locale.
18520         (configure.ac): Bump version number.
18521         * modules/unistr/u16-strcoll (Depends-on): Add
18522         uniconv/u16-strconv-to-enc, localcharset. Remove
18523         uniconv/u16-strconv-to-locale.
18524         (configure.ac): Bump version number.
18525         * modules/unistr/u32-strcoll (Depends-on): Add
18526         uniconv/u32-strconv-to-enc, localcharset. Remove
18527         uniconv/u32-strconv-to-locale.
18528         (configure.ac): Bump version number.
18529
18530 2010-05-24  Bruno Haible  <bruno@clisp.org>
18531
18532         Avoid a test failure on NetBSD 5.0.
18533         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
18534         an iconv() bug.
18535
18536 2010-05-24  Bruno Haible  <bruno@clisp.org>
18537
18538         Adjust #include directive style.
18539         * modules/regex (Includes): Recommend to write <regex.h>.
18540
18541 2010-05-24  Bruno Haible  <bruno@clisp.org>
18542
18543         regex: Don't require alloca.
18544         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
18545         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
18546         only inside if (0).
18547
18548 2010-05-23  Jim Meyering  <meyering@redhat.com>
18549
18550         test-renameat.c: include <sys/stat.h>
18551         * tests/test-renameat.c: Include <sys/stat.h>; required for
18552         definition of S_IS* macros.
18553
18554 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
18555
18556         Update maintainer documentation for 'relocatable-prog' module.
18557         * doc/relocatable-maint.texi: Update.
18558         Comments by Bruno Haible.
18559
18560 2010-05-23  Bruno Haible  <bruno@clisp.org>
18561
18562         git-merge-changelog: Enable --split-merged-entry by default.
18563         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
18564         (usage): Don't mention this option any more.
18565         Reported by Ralf Wildenhues.
18566
18567 2010-05-23  Jim Meyering  <meyering@redhat.com>
18568
18569         test-pwrite: do not leave behind a test file named "out"
18570         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
18571         The trivial-looking use of init.sh is really necessary.
18572         It ensures that the temporary file, "out", is created in
18573         a temporary directory, and removed upon termination.
18574         * tests/test-pwrite.sh: Re-add file.
18575         * modules/pwrite-tests: Reference it.
18576
18577 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18578
18579         Fix output redirection buglet in init.sh.
18580         * tests/init.sh: Fix redirection of stderr.
18581
18582 2010-05-20  Simon Josefsson  <simon@josefsson.org>
18583
18584         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
18585
18586 2010-05-17  Simon Josefsson  <simon@josefsson.org>
18587
18588         * modules/valgrind-tests: New file.
18589         * m4/valgrind-tests.m4: New file.
18590         * doc/valgrind-tests.texi: New file.
18591         * doc/gnulib.texi (Running self-tests under valgrind): New
18592         section.
18593
18594 2010-05-19  Bruno Haible  <bruno@clisp.org>
18595
18596         Clean up dead code in recent commit.
18597         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
18598         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
18599         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
18600         Suggested by Paolo Bonzini.
18601
18602 2010-05-19  Bruno Haible  <bruno@clisp.org>
18603
18604         Avoid valgrind error reports from libunistring.
18605         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
18606         * modules/libunistring (Files): Add it.
18607         * modules/libunistring-optional (Files): Likewise.
18608
18609 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
18610             Bruno Haible  <bruno@clisp.org>
18611
18612         New module 'libunistring-optional'.
18613         * modules/libunistring-optional: New file.
18614         * m4/libunistring-base.m4: New file.
18615         * m4/libunistring-optional.m4: New file.
18616         * lib/unicase.in.h: Renamed from lib/unicase.h.
18617         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
18618         * lib/unictype.in.h: Renamed from lib/unictype.h.
18619         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
18620         * lib/uniname.in.h: Renamed from lib/uniname.h.
18621         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
18622         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
18623         * lib/unistr.in.h: Renamed from lib/unistr.h.
18624         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
18625         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
18626         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
18627         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
18628         gl_LIBUNISTRING. If the library was found, determine the installed
18629         version and set LIBUNISTRING_VERSION.
18630         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
18631         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
18632         handle a configuration option --with-included-libunistring.
18633         * modules/libunistring (Files): Add m4/absolute-header.m4.
18634         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
18635         Add m4/libunistring-base.m4.
18636         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18637         (Makefile.am): Build unicase.h from unicase.in.h.
18638         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
18639         Add m4/libunistring-base.m4.
18640         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18641         (Makefile.am): Build uniconv.h from uniconv.in.h.
18642         * modules/unictype/base (Files): Use unictype.in.h instead of
18643         unictype.h. Add m4/libunistring-base.m4.
18644         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18645         (Makefile.am): Build unictype.h from unictype.in.h.
18646         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
18647         Add m4/libunistring-base.m4.
18648         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18649         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
18650         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
18651         Add m4/libunistring-base.m4.
18652         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18653         (Makefile.am): Build uniname.h from uniname.in.h.
18654         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
18655         Add m4/libunistring-base.m4.
18656         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18657         (Makefile.am): Build uninorm.h from uninorm.in.h.
18658         * modules/unistdio/base (Files): Use unistdio.in.h instead of
18659         unistdio.h. Add m4/libunistring-base.m4.
18660         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18661         (Makefile.am): Build unistdio.h from unistdio.in.h.
18662         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
18663         Add m4/libunistring-base.m4.
18664         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18665         (Makefile.am): Build unistr.h from unistr.in.h.
18666         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
18667         Add m4/libunistring-base.m4.
18668         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18669         (Makefile.am): Build unitypes.h from unitypes.in.h.
18670         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
18671         Add m4/libunistring-base.m4.
18672         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18673         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
18674         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
18675         uniwidth.h. Add m4/libunistring-base.m4.
18676         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18677         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
18678         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
18679         instead of augmenting lib_SOURCES.
18680         * modules/unicase/empty-suffix-context: Likewise.
18681         * modules/unicase/locale-language: Likewise.
18682         * modules/unicase/tolower: Likewise.
18683         * modules/unicase/totitle: Likewise.
18684         * modules/unicase/toupper: Likewise.
18685         * modules/unicase/u8-casecmp: Likewise.
18686         * modules/unicase/u8-casecoll: Likewise.
18687         * modules/unicase/u8-casefold: Likewise.
18688         * modules/unicase/u8-casexfrm: Likewise.
18689         * modules/unicase/u8-ct-casefold: Likewise.
18690         * modules/unicase/u8-ct-tolower: Likewise.
18691         * modules/unicase/u8-ct-totitle: Likewise.
18692         * modules/unicase/u8-ct-toupper: Likewise.
18693         * modules/unicase/u8-is-cased: Likewise.
18694         * modules/unicase/u8-is-casefolded: Likewise.
18695         * modules/unicase/u8-is-lowercase: Likewise.
18696         * modules/unicase/u8-is-titlecase: Likewise.
18697         * modules/unicase/u8-is-uppercase: Likewise.
18698         * modules/unicase/u8-prefix-context: Likewise.
18699         * modules/unicase/u8-suffix-context: Likewise.
18700         * modules/unicase/u8-tolower: Likewise.
18701         * modules/unicase/u8-totitle: Likewise.
18702         * modules/unicase/u8-toupper: Likewise.
18703         * modules/unicase/u16-casecmp: Likewise.
18704         * modules/unicase/u16-casecoll: Likewise.
18705         * modules/unicase/u16-casefold: Likewise.
18706         * modules/unicase/u16-casexfrm: Likewise.
18707         * modules/unicase/u16-ct-casefold: Likewise.
18708         * modules/unicase/u16-ct-tolower: Likewise.
18709         * modules/unicase/u16-ct-totitle: Likewise.
18710         * modules/unicase/u16-ct-toupper: Likewise.
18711         * modules/unicase/u16-is-cased: Likewise.
18712         * modules/unicase/u16-is-casefolded: Likewise.
18713         * modules/unicase/u16-is-lowercase: Likewise.
18714         * modules/unicase/u16-is-titlecase: Likewise.
18715         * modules/unicase/u16-is-uppercase: Likewise.
18716         * modules/unicase/u16-prefix-context: Likewise.
18717         * modules/unicase/u16-suffix-context: Likewise.
18718         * modules/unicase/u16-tolower: Likewise.
18719         * modules/unicase/u16-totitle: Likewise.
18720         * modules/unicase/u16-toupper: Likewise.
18721         * modules/unicase/u32-casecmp: Likewise.
18722         * modules/unicase/u32-casecoll: Likewise.
18723         * modules/unicase/u32-casefold: Likewise.
18724         * modules/unicase/u32-casexfrm: Likewise.
18725         * modules/unicase/u32-ct-casefold: Likewise.
18726         * modules/unicase/u32-ct-tolower: Likewise.
18727         * modules/unicase/u32-ct-totitle: Likewise.
18728         * modules/unicase/u32-ct-toupper: Likewise.
18729         * modules/unicase/u32-is-cased: Likewise.
18730         * modules/unicase/u32-is-casefolded: Likewise.
18731         * modules/unicase/u32-is-lowercase: Likewise.
18732         * modules/unicase/u32-is-titlecase: Likewise.
18733         * modules/unicase/u32-is-uppercase: Likewise.
18734         * modules/unicase/u32-prefix-context: Likewise.
18735         * modules/unicase/u32-suffix-context: Likewise.
18736         * modules/unicase/u32-tolower: Likewise.
18737         * modules/unicase/u32-totitle: Likewise.
18738         * modules/unicase/u32-toupper: Likewise.
18739         * modules/unicase/ulc-casecmp: Likewise.
18740         * modules/unicase/ulc-casecoll: Likewise.
18741         * modules/unicase/ulc-casexfrm: Likewise.
18742         * modules/uniconv/u8-conv-from-enc: Likewise.
18743         * modules/uniconv/u8-conv-to-enc: Likewise.
18744         * modules/uniconv/u8-strconv-from-enc: Likewise.
18745         * modules/uniconv/u8-strconv-from-locale: Likewise.
18746         * modules/uniconv/u8-strconv-to-enc: Likewise.
18747         * modules/uniconv/u8-strconv-to-locale: Likewise.
18748         * modules/uniconv/u16-conv-from-enc: Likewise.
18749         * modules/uniconv/u16-conv-to-enc: Likewise.
18750         * modules/uniconv/u16-strconv-from-enc: Likewise.
18751         * modules/uniconv/u16-strconv-from-locale: Likewise.
18752         * modules/uniconv/u16-strconv-to-enc: Likewise.
18753         * modules/uniconv/u16-strconv-to-locale: Likewise.
18754         * modules/uniconv/u32-conv-from-enc: Likewise.
18755         * modules/uniconv/u32-conv-to-enc: Likewise.
18756         * modules/uniconv/u32-strconv-from-enc: Likewise.
18757         * modules/uniconv/u32-strconv-from-locale: Likewise.
18758         * modules/uniconv/u32-strconv-to-enc: Likewise.
18759         * modules/uniconv/u32-strconv-to-locale: Likewise.
18760         * modules/unictype/bidicategory-byname: Likewise.
18761         * modules/unictype/bidicategory-name: Likewise.
18762         * modules/unictype/bidicategory-of: Likewise.
18763         * modules/unictype/bidicategory-test: Likewise.
18764         * modules/unictype/block-list: Likewise.
18765         * modules/unictype/block-test: Likewise.
18766         * modules/unictype/category-C: Likewise.
18767         * modules/unictype/category-Cc: Likewise.
18768         * modules/unictype/category-Cf: Likewise.
18769         * modules/unictype/category-Cn: Likewise.
18770         * modules/unictype/category-Co: Likewise.
18771         * modules/unictype/category-Cs: Likewise.
18772         * modules/unictype/category-L: Likewise.
18773         * modules/unictype/category-Ll: Likewise.
18774         * modules/unictype/category-Lm: Likewise.
18775         * modules/unictype/category-Lo: Likewise.
18776         * modules/unictype/category-Lt: Likewise.
18777         * modules/unictype/category-Lu: Likewise.
18778         * modules/unictype/category-M: Likewise.
18779         * modules/unictype/category-Mc: Likewise.
18780         * modules/unictype/category-Me: Likewise.
18781         * modules/unictype/category-Mn: Likewise.
18782         * modules/unictype/category-N: Likewise.
18783         * modules/unictype/category-Nd: Likewise.
18784         * modules/unictype/category-Nl: Likewise.
18785         * modules/unictype/category-No: Likewise.
18786         * modules/unictype/category-P: Likewise.
18787         * modules/unictype/category-Pc: Likewise.
18788         * modules/unictype/category-Pd: Likewise.
18789         * modules/unictype/category-Pe: Likewise.
18790         * modules/unictype/category-Pf: Likewise.
18791         * modules/unictype/category-Pi: Likewise.
18792         * modules/unictype/category-Po: Likewise.
18793         * modules/unictype/category-Ps: Likewise.
18794         * modules/unictype/category-S: Likewise.
18795         * modules/unictype/category-Sc: Likewise.
18796         * modules/unictype/category-Sk: Likewise.
18797         * modules/unictype/category-Sm: Likewise.
18798         * modules/unictype/category-So: Likewise.
18799         * modules/unictype/category-Z: Likewise.
18800         * modules/unictype/category-Zl: Likewise.
18801         * modules/unictype/category-Zp: Likewise.
18802         * modules/unictype/category-Zs: Likewise.
18803         * modules/unictype/category-and: Likewise.
18804         * modules/unictype/category-and-not: Likewise.
18805         * modules/unictype/category-byname: Likewise.
18806         * modules/unictype/category-name: Likewise.
18807         * modules/unictype/category-none: Likewise.
18808         * modules/unictype/category-of: Likewise.
18809         * modules/unictype/category-or: Likewise.
18810         * modules/unictype/category-test: Likewise.
18811         * modules/unictype/combining-class: Likewise.
18812         * modules/unictype/ctype-alnum: Likewise.
18813         * modules/unictype/ctype-alpha: Likewise.
18814         * modules/unictype/ctype-blank: Likewise.
18815         * modules/unictype/ctype-cntrl: Likewise.
18816         * modules/unictype/ctype-digit: Likewise.
18817         * modules/unictype/ctype-graph: Likewise.
18818         * modules/unictype/ctype-lower: Likewise.
18819         * modules/unictype/ctype-print: Likewise.
18820         * modules/unictype/ctype-punct: Likewise.
18821         * modules/unictype/ctype-space: Likewise.
18822         * modules/unictype/ctype-upper: Likewise.
18823         * modules/unictype/ctype-xdigit: Likewise.
18824         * modules/unictype/decimal-digit: Likewise.
18825         * modules/unictype/digit: Likewise.
18826         * modules/unictype/mirror: Likewise.
18827         * modules/unictype/numeric: Likewise.
18828         * modules/unictype/property-alphabetic: Likewise.
18829         * modules/unictype/property-ascii-hex-digit: Likewise.
18830         * modules/unictype/property-bidi-arabic-digit: Likewise.
18831         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
18832         * modules/unictype/property-bidi-block-separator: Likewise.
18833         * modules/unictype/property-bidi-boundary-neutral: Likewise.
18834         * modules/unictype/property-bidi-common-separator: Likewise.
18835         * modules/unictype/property-bidi-control: Likewise.
18836         * modules/unictype/property-bidi-embedding-or-override: Likewise.
18837         * modules/unictype/property-bidi-eur-num-separator: Likewise.
18838         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
18839         * modules/unictype/property-bidi-european-digit: Likewise.
18840         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
18841         * modules/unictype/property-bidi-left-to-right: Likewise.
18842         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
18843         * modules/unictype/property-bidi-other-neutral: Likewise.
18844         * modules/unictype/property-bidi-pdf: Likewise.
18845         * modules/unictype/property-bidi-segment-separator: Likewise.
18846         * modules/unictype/property-bidi-whitespace: Likewise.
18847         * modules/unictype/property-byname: Likewise.
18848         * modules/unictype/property-combining: Likewise.
18849         * modules/unictype/property-composite: Likewise.
18850         * modules/unictype/property-currency-symbol: Likewise.
18851         * modules/unictype/property-dash: Likewise.
18852         * modules/unictype/property-decimal-digit: Likewise.
18853         * modules/unictype/property-default-ignorable-code-point: Likewise.
18854         * modules/unictype/property-deprecated: Likewise.
18855         * modules/unictype/property-diacritic: Likewise.
18856         * modules/unictype/property-extender: Likewise.
18857         * modules/unictype/property-format-control: Likewise.
18858         * modules/unictype/property-grapheme-base: Likewise.
18859         * modules/unictype/property-grapheme-extend: Likewise.
18860         * modules/unictype/property-grapheme-link: Likewise.
18861         * modules/unictype/property-hex-digit: Likewise.
18862         * modules/unictype/property-hyphen: Likewise.
18863         * modules/unictype/property-id-continue: Likewise.
18864         * modules/unictype/property-id-start: Likewise.
18865         * modules/unictype/property-ideographic: Likewise.
18866         * modules/unictype/property-ids-binary-operator: Likewise.
18867         * modules/unictype/property-ids-trinary-operator: Likewise.
18868         * modules/unictype/property-ignorable-control: Likewise.
18869         * modules/unictype/property-iso-control: Likewise.
18870         * modules/unictype/property-join-control: Likewise.
18871         * modules/unictype/property-left-of-pair: Likewise.
18872         * modules/unictype/property-line-separator: Likewise.
18873         * modules/unictype/property-logical-order-exception: Likewise.
18874         * modules/unictype/property-lowercase: Likewise.
18875         * modules/unictype/property-math: Likewise.
18876         * modules/unictype/property-non-break: Likewise.
18877         * modules/unictype/property-not-a-character: Likewise.
18878         * modules/unictype/property-numeric: Likewise.
18879         * modules/unictype/property-other-alphabetic: Likewise.
18880         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
18881         * modules/unictype/property-other-grapheme-extend: Likewise.
18882         * modules/unictype/property-other-id-continue: Likewise.
18883         * modules/unictype/property-other-id-start: Likewise.
18884         * modules/unictype/property-other-lowercase: Likewise.
18885         * modules/unictype/property-other-math: Likewise.
18886         * modules/unictype/property-other-uppercase: Likewise.
18887         * modules/unictype/property-paired-punctuation: Likewise.
18888         * modules/unictype/property-paragraph-separator: Likewise.
18889         * modules/unictype/property-pattern-syntax: Likewise.
18890         * modules/unictype/property-pattern-white-space: Likewise.
18891         * modules/unictype/property-private-use: Likewise.
18892         * modules/unictype/property-punctuation: Likewise.
18893         * modules/unictype/property-quotation-mark: Likewise.
18894         * modules/unictype/property-radical: Likewise.
18895         * modules/unictype/property-sentence-terminal: Likewise.
18896         * modules/unictype/property-soft-dotted: Likewise.
18897         * modules/unictype/property-space: Likewise.
18898         * modules/unictype/property-terminal-punctuation: Likewise.
18899         * modules/unictype/property-test: Likewise.
18900         * modules/unictype/property-titlecase: Likewise.
18901         * modules/unictype/property-unassigned-code-value: Likewise.
18902         * modules/unictype/property-unified-ideograph: Likewise.
18903         * modules/unictype/property-uppercase: Likewise.
18904         * modules/unictype/property-variation-selector: Likewise.
18905         * modules/unictype/property-white-space: Likewise.
18906         * modules/unictype/property-xid-continue: Likewise.
18907         * modules/unictype/property-xid-start: Likewise.
18908         * modules/unictype/property-zero-width: Likewise.
18909         * modules/unictype/scripts: Likewise.
18910         * modules/unictype/syntax-c-ident: Likewise.
18911         * modules/unictype/syntax-c-whitespace: Likewise.
18912         * modules/unictype/syntax-java-ident: Likewise.
18913         * modules/unictype/syntax-java-whitespace: Likewise.
18914         * modules/unilbrk/u8-possible-linebreaks: Likewise.
18915         * modules/unilbrk/u8-width-linebreaks: Likewise.
18916         * modules/unilbrk/u16-possible-linebreaks: Likewise.
18917         * modules/unilbrk/u16-width-linebreaks: Likewise.
18918         * modules/unilbrk/u32-possible-linebreaks: Likewise.
18919         * modules/unilbrk/u32-width-linebreaks: Likewise.
18920         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
18921         * modules/unilbrk/ulc-width-linebreaks: Likewise.
18922         * modules/uniname/uniname: Likewise.
18923         * modules/uninorm/canonical-decomposition: Likewise.
18924         * modules/uninorm/composition: Likewise.
18925         * modules/uninorm/decomposing-form: Likewise.
18926         * modules/uninorm/decomposition: Likewise.
18927         * modules/uninorm/filter: Likewise.
18928         * modules/uninorm/nfc: Likewise.
18929         * modules/uninorm/nfd: Likewise.
18930         * modules/uninorm/nfkc: Likewise.
18931         * modules/uninorm/nfkd: Likewise.
18932         * modules/uninorm/u8-normalize: Likewise.
18933         * modules/uninorm/u8-normcmp: Likewise.
18934         * modules/uninorm/u8-normcoll: Likewise.
18935         * modules/uninorm/u8-normxfrm: Likewise.
18936         * modules/uninorm/u16-normalize: Likewise.
18937         * modules/uninorm/u16-normcmp: Likewise.
18938         * modules/uninorm/u16-normcoll: Likewise.
18939         * modules/uninorm/u16-normxfrm: Likewise.
18940         * modules/uninorm/u32-normalize: Likewise.
18941         * modules/uninorm/u32-normcmp: Likewise.
18942         * modules/uninorm/u32-normcoll: Likewise.
18943         * modules/uninorm/u32-normxfrm: Likewise.
18944         * modules/unistdio/u8-asnprintf: Likewise.
18945         * modules/unistdio/u8-asprintf: Likewise.
18946         * modules/unistdio/u8-snprintf: Likewise.
18947         * modules/unistdio/u8-sprintf: Likewise.
18948         * modules/unistdio/u8-u8-asnprintf: Likewise.
18949         * modules/unistdio/u8-u8-asprintf: Likewise.
18950         * modules/unistdio/u8-u8-snprintf: Likewise.
18951         * modules/unistdio/u8-u8-sprintf: Likewise.
18952         * modules/unistdio/u8-u8-vasnprintf: Likewise.
18953         * modules/unistdio/u8-u8-vasprintf: Likewise.
18954         * modules/unistdio/u8-u8-vsnprintf: Likewise.
18955         * modules/unistdio/u8-u8-vsprintf: Likewise.
18956         * modules/unistdio/u8-vasnprintf: Likewise.
18957         * modules/unistdio/u8-vasprintf: Likewise.
18958         * modules/unistdio/u8-vsnprintf: Likewise.
18959         * modules/unistdio/u8-vsprintf: Likewise.
18960         * modules/unistdio/u16-asnprintf: Likewise.
18961         * modules/unistdio/u16-asprintf: Likewise.
18962         * modules/unistdio/u16-snprintf: Likewise.
18963         * modules/unistdio/u16-sprintf: Likewise.
18964         * modules/unistdio/u16-u16-asnprintf: Likewise.
18965         * modules/unistdio/u16-u16-asprintf: Likewise.
18966         * modules/unistdio/u16-u16-snprintf: Likewise.
18967         * modules/unistdio/u16-u16-sprintf: Likewise.
18968         * modules/unistdio/u16-u16-vasnprintf: Likewise.
18969         * modules/unistdio/u16-u16-vasprintf: Likewise.
18970         * modules/unistdio/u16-u16-vsnprintf: Likewise.
18971         * modules/unistdio/u16-u16-vsprintf: Likewise.
18972         * modules/unistdio/u16-vasnprintf: Likewise.
18973         * modules/unistdio/u16-vasprintf: Likewise.
18974         * modules/unistdio/u16-vsnprintf: Likewise.
18975         * modules/unistdio/u16-vsprintf: Likewise.
18976         * modules/unistdio/u32-asnprintf: Likewise.
18977         * modules/unistdio/u32-asprintf: Likewise.
18978         * modules/unistdio/u32-snprintf: Likewise.
18979         * modules/unistdio/u32-sprintf: Likewise.
18980         * modules/unistdio/u32-u32-asnprintf: Likewise.
18981         * modules/unistdio/u32-u32-asprintf: Likewise.
18982         * modules/unistdio/u32-u32-snprintf: Likewise.
18983         * modules/unistdio/u32-u32-sprintf: Likewise.
18984         * modules/unistdio/u32-u32-vasnprintf: Likewise.
18985         * modules/unistdio/u32-u32-vasprintf: Likewise.
18986         * modules/unistdio/u32-u32-vsnprintf: Likewise.
18987         * modules/unistdio/u32-u32-vsprintf: Likewise.
18988         * modules/unistdio/u32-vasnprintf: Likewise.
18989         * modules/unistdio/u32-vasprintf: Likewise.
18990         * modules/unistdio/u32-vsnprintf: Likewise.
18991         * modules/unistdio/u32-vsprintf: Likewise.
18992         * modules/unistdio/ulc-asnprintf: Likewise.
18993         * modules/unistdio/ulc-asprintf: Likewise.
18994         * modules/unistdio/ulc-fprintf: Likewise.
18995         * modules/unistdio/ulc-snprintf: Likewise.
18996         * modules/unistdio/ulc-sprintf: Likewise.
18997         * modules/unistdio/ulc-vasnprintf: Likewise.
18998         * modules/unistdio/ulc-vasprintf: Likewise.
18999         * modules/unistdio/ulc-vfprintf: Likewise.
19000         * modules/unistdio/ulc-vsnprintf: Likewise.
19001         * modules/unistdio/ulc-vsprintf: Likewise.
19002         * modules/unistr/u8-check: Likewise.
19003         * modules/unistr/u8-chr: Likewise.
19004         * modules/unistr/u8-cmp: Likewise.
19005         * modules/unistr/u8-cmp2: Likewise.
19006         * modules/unistr/u8-cpy: Likewise.
19007         * modules/unistr/u8-cpy-alloc: Likewise.
19008         * modules/unistr/u8-endswith: Likewise.
19009         * modules/unistr/u8-mblen: Likewise.
19010         * modules/unistr/u8-mbsnlen: Likewise.
19011         * modules/unistr/u8-mbtouc: Likewise.
19012         * modules/unistr/u8-mbtouc-unsafe: Likewise.
19013         * modules/unistr/u8-mbtoucr: Likewise.
19014         * modules/unistr/u8-move: Likewise.
19015         * modules/unistr/u8-next: Likewise.
19016         * modules/unistr/u8-prev: Likewise.
19017         * modules/unistr/u8-set: Likewise.
19018         * modules/unistr/u8-startswith: Likewise.
19019         * modules/unistr/u8-stpcpy: Likewise.
19020         * modules/unistr/u8-stpncpy: Likewise.
19021         * modules/unistr/u8-strcat: Likewise.
19022         * modules/unistr/u8-strchr: Likewise.
19023         * modules/unistr/u8-strcmp: Likewise.
19024         * modules/unistr/u8-strcoll: Likewise.
19025         * modules/unistr/u8-strcpy: Likewise.
19026         * modules/unistr/u8-strcspn: Likewise.
19027         * modules/unistr/u8-strdup: Likewise.
19028         * modules/unistr/u8-strlen: Likewise.
19029         * modules/unistr/u8-strmblen: Likewise.
19030         * modules/unistr/u8-strmbtouc: Likewise.
19031         * modules/unistr/u8-strncat: Likewise.
19032         * modules/unistr/u8-strncmp: Likewise.
19033         * modules/unistr/u8-strncpy: Likewise.
19034         * modules/unistr/u8-strnlen: Likewise.
19035         * modules/unistr/u8-strpbrk: Likewise.
19036         * modules/unistr/u8-strrchr: Likewise.
19037         * modules/unistr/u8-strspn: Likewise.
19038         * modules/unistr/u8-strstr: Likewise.
19039         * modules/unistr/u8-strtok: Likewise.
19040         * modules/unistr/u8-to-u16: Likewise.
19041         * modules/unistr/u8-to-u32: Likewise.
19042         * modules/unistr/u8-uctomb: Likewise.
19043         * modules/unistr/u16-check: Likewise.
19044         * modules/unistr/u16-chr: Likewise.
19045         * modules/unistr/u16-cmp: Likewise.
19046         * modules/unistr/u16-cmp2: Likewise.
19047         * modules/unistr/u16-cpy: Likewise.
19048         * modules/unistr/u16-cpy-alloc: Likewise.
19049         * modules/unistr/u16-endswith: Likewise.
19050         * modules/unistr/u16-mblen: Likewise.
19051         * modules/unistr/u16-mbsnlen: Likewise.
19052         * modules/unistr/u16-mbtouc: Likewise.
19053         * modules/unistr/u16-mbtouc-unsafe: Likewise.
19054         * modules/unistr/u16-mbtoucr: Likewise.
19055         * modules/unistr/u16-move: Likewise.
19056         * modules/unistr/u16-next: Likewise.
19057         * modules/unistr/u16-prev: Likewise.
19058         * modules/unistr/u16-set: Likewise.
19059         * modules/unistr/u16-startswith: Likewise.
19060         * modules/unistr/u16-stpcpy: Likewise.
19061         * modules/unistr/u16-stpncpy: Likewise.
19062         * modules/unistr/u16-strcat: Likewise.
19063         * modules/unistr/u16-strchr: Likewise.
19064         * modules/unistr/u16-strcmp: Likewise.
19065         * modules/unistr/u16-strcoll: Likewise.
19066         * modules/unistr/u16-strcpy: Likewise.
19067         * modules/unistr/u16-strcspn: Likewise.
19068         * modules/unistr/u16-strdup: Likewise.
19069         * modules/unistr/u16-strlen: Likewise.
19070         * modules/unistr/u16-strmblen: Likewise.
19071         * modules/unistr/u16-strmbtouc: Likewise.
19072         * modules/unistr/u16-strncat: Likewise.
19073         * modules/unistr/u16-strncmp: Likewise.
19074         * modules/unistr/u16-strncpy: Likewise.
19075         * modules/unistr/u16-strnlen: Likewise.
19076         * modules/unistr/u16-strpbrk: Likewise.
19077         * modules/unistr/u16-strrchr: Likewise.
19078         * modules/unistr/u16-strspn: Likewise.
19079         * modules/unistr/u16-strstr: Likewise.
19080         * modules/unistr/u16-strtok: Likewise.
19081         * modules/unistr/u16-to-u32: Likewise.
19082         * modules/unistr/u16-to-u8: Likewise.
19083         * modules/unistr/u16-uctomb: Likewise.
19084         * modules/unistr/u32-check: Likewise.
19085         * modules/unistr/u32-chr: Likewise.
19086         * modules/unistr/u32-cmp: Likewise.
19087         * modules/unistr/u32-cmp2: Likewise.
19088         * modules/unistr/u32-cpy: Likewise.
19089         * modules/unistr/u32-cpy-alloc: Likewise.
19090         * modules/unistr/u32-endswith: Likewise.
19091         * modules/unistr/u32-mblen: Likewise.
19092         * modules/unistr/u32-mbsnlen: Likewise.
19093         * modules/unistr/u32-mbtouc: Likewise.
19094         * modules/unistr/u32-mbtouc-unsafe: Likewise.
19095         * modules/unistr/u32-mbtoucr: Likewise.
19096         * modules/unistr/u32-move: Likewise.
19097         * modules/unistr/u32-next: Likewise.
19098         * modules/unistr/u32-prev: Likewise.
19099         * modules/unistr/u32-set: Likewise.
19100         * modules/unistr/u32-startswith: Likewise.
19101         * modules/unistr/u32-stpcpy: Likewise.
19102         * modules/unistr/u32-stpncpy: Likewise.
19103         * modules/unistr/u32-strcat: Likewise.
19104         * modules/unistr/u32-strchr: Likewise.
19105         * modules/unistr/u32-strcmp: Likewise.
19106         * modules/unistr/u32-strcoll: Likewise.
19107         * modules/unistr/u32-strcpy: Likewise.
19108         * modules/unistr/u32-strcspn: Likewise.
19109         * modules/unistr/u32-strdup: Likewise.
19110         * modules/unistr/u32-strlen: Likewise.
19111         * modules/unistr/u32-strmblen: Likewise.
19112         * modules/unistr/u32-strmbtouc: Likewise.
19113         * modules/unistr/u32-strncat: Likewise.
19114         * modules/unistr/u32-strncmp: Likewise.
19115         * modules/unistr/u32-strncpy: Likewise.
19116         * modules/unistr/u32-strnlen: Likewise.
19117         * modules/unistr/u32-strpbrk: Likewise.
19118         * modules/unistr/u32-strrchr: Likewise.
19119         * modules/unistr/u32-strspn: Likewise.
19120         * modules/unistr/u32-strstr: Likewise.
19121         * modules/unistr/u32-strtok: Likewise.
19122         * modules/unistr/u32-to-u16: Likewise.
19123         * modules/unistr/u32-to-u8: Likewise.
19124         * modules/unistr/u32-uctomb: Likewise.
19125         * modules/uniwbrk/u8-wordbreaks: Likewise.
19126         * modules/uniwbrk/u16-wordbreaks: Likewise.
19127         * modules/uniwbrk/u32-wordbreaks: Likewise.
19128         * modules/uniwbrk/ulc-wordbreaks: Likewise.
19129         * modules/uniwbrk/wordbreak-property: Likewise.
19130         * modules/uniwidth/u8-strwidth: Likewise.
19131         * modules/uniwidth/u8-width: Likewise.
19132         * modules/uniwidth/u16-strwidth: Likewise.
19133         * modules/uniwidth/u16-width: Likewise.
19134         * modules/uniwidth/u32-strwidth: Likewise.
19135         * modules/uniwidth/u32-width: Likewise.
19136         * modules/uniwidth/width: Likewise.
19137         * modules/unicase/cased-tests (Makefile.am): Link all test programs
19138         with $(LIBUNISTRING).
19139         * modules/unicase/ignorable-tests: Likewise.
19140         * modules/unicase/locale-language-tests: Likewise.
19141         * modules/unicase/tolower-tests: Likewise.
19142         * modules/unicase/totitle-tests: Likewise.
19143         * modules/unicase/toupper-tests: Likewise.
19144         * modules/unicase/u8-casecmp-tests: Likewise.
19145         * modules/unicase/u8-casecoll-tests: Likewise.
19146         * modules/unicase/u8-casefold-tests: Likewise.
19147         * modules/unicase/u8-is-cased-tests: Likewise.
19148         * modules/unicase/u8-is-casefolded-tests: Likewise.
19149         * modules/unicase/u8-is-lowercase-tests: Likewise.
19150         * modules/unicase/u8-is-titlecase-tests: Likewise.
19151         * modules/unicase/u8-is-uppercase-tests: Likewise.
19152         * modules/unicase/u8-tolower-tests: Likewise.
19153         * modules/unicase/u8-totitle-tests: Likewise.
19154         * modules/unicase/u8-toupper-tests: Likewise.
19155         * modules/unicase/u16-casecmp-tests: Likewise.
19156         * modules/unicase/u16-casecoll-tests: Likewise.
19157         * modules/unicase/u16-casefold-tests: Likewise.
19158         * modules/unicase/u16-is-cased-tests: Likewise.
19159         * modules/unicase/u16-is-casefolded-tests: Likewise.
19160         * modules/unicase/u16-is-lowercase-tests: Likewise.
19161         * modules/unicase/u16-is-titlecase-tests: Likewise.
19162         * modules/unicase/u16-is-uppercase-tests: Likewise.
19163         * modules/unicase/u16-tolower-tests: Likewise.
19164         * modules/unicase/u16-totitle-tests: Likewise.
19165         * modules/unicase/u16-toupper-tests: Likewise.
19166         * modules/unicase/u32-casecmp-tests: Likewise.
19167         * modules/unicase/u32-casecoll-tests: Likewise.
19168         * modules/unicase/u32-casefold-tests: Likewise.
19169         * modules/unicase/u32-is-cased-tests: Likewise.
19170         * modules/unicase/u32-is-casefolded-tests: Likewise.
19171         * modules/unicase/u32-is-lowercase-tests: Likewise.
19172         * modules/unicase/u32-is-titlecase-tests: Likewise.
19173         * modules/unicase/u32-is-uppercase-tests: Likewise.
19174         * modules/unicase/u32-tolower-tests: Likewise.
19175         * modules/unicase/u32-totitle-tests: Likewise.
19176         * modules/unicase/u32-toupper-tests: Likewise.
19177         * modules/unicase/ulc-casecmp-tests: Likewise.
19178         * modules/unicase/ulc-casecoll-tests: Likewise.
19179         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
19180         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
19181         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
19182         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
19183         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
19184         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
19185         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
19186         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
19187         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
19188         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
19189         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
19190         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
19191         * modules/unictype/bidicategory-byname-tests: Likewise.
19192         * modules/unictype/bidicategory-name-tests: Likewise.
19193         * modules/unictype/bidicategory-of-tests: Likewise.
19194         * modules/unictype/bidicategory-test-tests: Likewise.
19195         * modules/unictype/block-list-tests: Likewise.
19196         * modules/unictype/block-of-tests: Likewise.
19197         * modules/unictype/block-test-tests: Likewise.
19198         * modules/unictype/category-C-tests: Likewise.
19199         * modules/unictype/category-Cc-tests: Likewise.
19200         * modules/unictype/category-Cf-tests: Likewise.
19201         * modules/unictype/category-Cn-tests: Likewise.
19202         * modules/unictype/category-Co-tests: Likewise.
19203         * modules/unictype/category-Cs-tests: Likewise.
19204         * modules/unictype/category-L-tests: Likewise.
19205         * modules/unictype/category-Ll-tests: Likewise.
19206         * modules/unictype/category-Lm-tests: Likewise.
19207         * modules/unictype/category-Lo-tests: Likewise.
19208         * modules/unictype/category-Lt-tests: Likewise.
19209         * modules/unictype/category-Lu-tests: Likewise.
19210         * modules/unictype/category-M-tests: Likewise.
19211         * modules/unictype/category-Mc-tests: Likewise.
19212         * modules/unictype/category-Me-tests: Likewise.
19213         * modules/unictype/category-Mn-tests: Likewise.
19214         * modules/unictype/category-N-tests: Likewise.
19215         * modules/unictype/category-Nd-tests: Likewise.
19216         * modules/unictype/category-Nl-tests: Likewise.
19217         * modules/unictype/category-No-tests: Likewise.
19218         * modules/unictype/category-P-tests: Likewise.
19219         * modules/unictype/category-Pc-tests: Likewise.
19220         * modules/unictype/category-Pd-tests: Likewise.
19221         * modules/unictype/category-Pe-tests: Likewise.
19222         * modules/unictype/category-Pf-tests: Likewise.
19223         * modules/unictype/category-Pi-tests: Likewise.
19224         * modules/unictype/category-Po-tests: Likewise.
19225         * modules/unictype/category-Ps-tests: Likewise.
19226         * modules/unictype/category-S-tests: Likewise.
19227         * modules/unictype/category-Sc-tests: Likewise.
19228         * modules/unictype/category-Sk-tests: Likewise.
19229         * modules/unictype/category-Sm-tests: Likewise.
19230         * modules/unictype/category-So-tests: Likewise.
19231         * modules/unictype/category-Z-tests: Likewise.
19232         * modules/unictype/category-Zl-tests: Likewise.
19233         * modules/unictype/category-Zp-tests: Likewise.
19234         * modules/unictype/category-Zs-tests: Likewise.
19235         * modules/unictype/category-and-not-tests: Likewise.
19236         * modules/unictype/category-and-tests: Likewise.
19237         * modules/unictype/category-byname-tests: Likewise.
19238         * modules/unictype/category-name-tests: Likewise.
19239         * modules/unictype/category-none-tests: Likewise.
19240         * modules/unictype/category-of-tests: Likewise.
19241         * modules/unictype/category-or-tests: Likewise.
19242         * modules/unictype/category-test-withtable-tests: Likewise.
19243         * modules/unictype/combining-class-tests: Likewise.
19244         * modules/unictype/ctype-alnum-tests: Likewise.
19245         * modules/unictype/ctype-alpha-tests: Likewise.
19246         * modules/unictype/ctype-blank-tests: Likewise.
19247         * modules/unictype/ctype-cntrl-tests: Likewise.
19248         * modules/unictype/ctype-digit-tests: Likewise.
19249         * modules/unictype/ctype-graph-tests: Likewise.
19250         * modules/unictype/ctype-lower-tests: Likewise.
19251         * modules/unictype/ctype-print-tests: Likewise.
19252         * modules/unictype/ctype-punct-tests: Likewise.
19253         * modules/unictype/ctype-space-tests: Likewise.
19254         * modules/unictype/ctype-upper-tests: Likewise.
19255         * modules/unictype/ctype-xdigit-tests: Likewise.
19256         * modules/unictype/decimal-digit-tests: Likewise.
19257         * modules/unictype/digit-tests: Likewise.
19258         * modules/unictype/mirror-tests: Likewise.
19259         * modules/unictype/numeric-tests: Likewise.
19260         * modules/unictype/property-alphabetic-tests: Likewise.
19261         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
19262         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
19263         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
19264         * modules/unictype/property-bidi-block-separator-tests: Likewise.
19265         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
19266         * modules/unictype/property-bidi-common-separator-tests: Likewise.
19267         * modules/unictype/property-bidi-control-tests: Likewise.
19268         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
19269         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
19270         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
19271         * modules/unictype/property-bidi-european-digit-tests: Likewise.
19272         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
19273         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
19274         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
19275         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
19276         * modules/unictype/property-bidi-pdf-tests: Likewise.
19277         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
19278         * modules/unictype/property-bidi-whitespace-tests: Likewise.
19279         * modules/unictype/property-byname-tests: Likewise.
19280         * modules/unictype/property-combining-tests: Likewise.
19281         * modules/unictype/property-composite-tests: Likewise.
19282         * modules/unictype/property-currency-symbol-tests: Likewise.
19283         * modules/unictype/property-dash-tests: Likewise.
19284         * modules/unictype/property-decimal-digit-tests: Likewise.
19285         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
19286         * modules/unictype/property-deprecated-tests: Likewise.
19287         * modules/unictype/property-diacritic-tests: Likewise.
19288         * modules/unictype/property-extender-tests: Likewise.
19289         * modules/unictype/property-format-control-tests: Likewise.
19290         * modules/unictype/property-grapheme-base-tests: Likewise.
19291         * modules/unictype/property-grapheme-extend-tests: Likewise.
19292         * modules/unictype/property-grapheme-link-tests: Likewise.
19293         * modules/unictype/property-hex-digit-tests: Likewise.
19294         * modules/unictype/property-hyphen-tests: Likewise.
19295         * modules/unictype/property-id-continue-tests: Likewise.
19296         * modules/unictype/property-id-start-tests: Likewise.
19297         * modules/unictype/property-ideographic-tests: Likewise.
19298         * modules/unictype/property-ids-binary-operator-tests: Likewise.
19299         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
19300         * modules/unictype/property-ignorable-control-tests: Likewise.
19301         * modules/unictype/property-iso-control-tests: Likewise.
19302         * modules/unictype/property-join-control-tests: Likewise.
19303         * modules/unictype/property-left-of-pair-tests: Likewise.
19304         * modules/unictype/property-line-separator-tests: Likewise.
19305         * modules/unictype/property-logical-order-exception-tests: Likewise.
19306         * modules/unictype/property-lowercase-tests: Likewise.
19307         * modules/unictype/property-math-tests: Likewise.
19308         * modules/unictype/property-non-break-tests: Likewise.
19309         * modules/unictype/property-not-a-character-tests: Likewise.
19310         * modules/unictype/property-numeric-tests: Likewise.
19311         * modules/unictype/property-other-alphabetic-tests: Likewise.
19312         * modules/unictype/property-other-default-ignorable-code-point-tests:
19313         Likewise.
19314         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
19315         * modules/unictype/property-other-id-continue-tests: Likewise.
19316         * modules/unictype/property-other-id-start-tests: Likewise.
19317         * modules/unictype/property-other-lowercase-tests: Likewise.
19318         * modules/unictype/property-other-math-tests: Likewise.
19319         * modules/unictype/property-other-uppercase-tests: Likewise.
19320         * modules/unictype/property-paired-punctuation-tests: Likewise.
19321         * modules/unictype/property-paragraph-separator-tests: Likewise.
19322         * modules/unictype/property-pattern-syntax-tests: Likewise.
19323         * modules/unictype/property-pattern-white-space-tests: Likewise.
19324         * modules/unictype/property-private-use-tests: Likewise.
19325         * modules/unictype/property-punctuation-tests: Likewise.
19326         * modules/unictype/property-quotation-mark-tests: Likewise.
19327         * modules/unictype/property-radical-tests: Likewise.
19328         * modules/unictype/property-sentence-terminal-tests: Likewise.
19329         * modules/unictype/property-soft-dotted-tests: Likewise.
19330         * modules/unictype/property-space-tests: Likewise.
19331         * modules/unictype/property-terminal-punctuation-tests: Likewise.
19332         * modules/unictype/property-test-tests: Likewise.
19333         * modules/unictype/property-titlecase-tests: Likewise.
19334         * modules/unictype/property-unassigned-code-value-tests: Likewise.
19335         * modules/unictype/property-unified-ideograph-tests: Likewise.
19336         * modules/unictype/property-uppercase-tests: Likewise.
19337         * modules/unictype/property-variation-selector-tests: Likewise.
19338         * modules/unictype/property-white-space-tests: Likewise.
19339         * modules/unictype/property-xid-continue-tests: Likewise.
19340         * modules/unictype/property-xid-start-tests: Likewise.
19341         * modules/unictype/property-zero-width-tests: Likewise.
19342         * modules/unictype/scripts-tests: Likewise.
19343         * modules/unictype/syntax-c-ident-tests: Likewise.
19344         * modules/unictype/syntax-c-whitespace-tests: Likewise.
19345         * modules/unictype/syntax-java-ident-tests: Likewise.
19346         * modules/unictype/syntax-java-whitespace-tests: Likewise.
19347         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
19348         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
19349         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
19350         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
19351         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
19352         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
19353         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
19354         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
19355         * modules/uniname/uniname-tests: Likewise.
19356         * modules/uninorm/canonical-decomposition-tests: Likewise.
19357         * modules/uninorm/compat-decomposition-tests: Likewise.
19358         * modules/uninorm/composition-tests: Likewise.
19359         * modules/uninorm/decomposing-form-tests: Likewise.
19360         * modules/uninorm/decomposition-tests: Likewise.
19361         * modules/uninorm/filter-tests: Likewise.
19362         * modules/uninorm/nfc-tests: Likewise.
19363         * modules/uninorm/nfd-tests: Likewise.
19364         * modules/uninorm/nfkc-tests: Likewise.
19365         * modules/uninorm/nfkd-tests: Likewise.
19366         * modules/uninorm/u8-normcmp-tests: Likewise.
19367         * modules/uninorm/u8-normcoll-tests: Likewise.
19368         * modules/uninorm/u16-normcmp-tests: Likewise.
19369         * modules/uninorm/u16-normcoll-tests: Likewise.
19370         * modules/uninorm/u32-normcmp-tests: Likewise.
19371         * modules/uninorm/u32-normcoll-tests: Likewise.
19372         * modules/unistdio/u8-asnprintf-tests: Likewise.
19373         * modules/unistdio/u8-vasnprintf-tests: Likewise.
19374         * modules/unistdio/u8-vasprintf-tests: Likewise.
19375         * modules/unistdio/u8-vsnprintf-tests: Likewise.
19376         * modules/unistdio/u8-vsprintf-tests: Likewise.
19377         * modules/unistdio/u16-asnprintf-tests: Likewise.
19378         * modules/unistdio/u16-vasnprintf-tests: Likewise.
19379         * modules/unistdio/u16-vasprintf-tests: Likewise.
19380         * modules/unistdio/u16-vsnprintf-tests: Likewise.
19381         * modules/unistdio/u16-vsprintf-tests: Likewise.
19382         * modules/unistdio/u32-asnprintf-tests: Likewise.
19383         * modules/unistdio/u32-vasnprintf-tests: Likewise.
19384         * modules/unistdio/u32-vasprintf-tests: Likewise.
19385         * modules/unistdio/u32-vsnprintf-tests: Likewise.
19386         * modules/unistdio/u32-vsprintf-tests: Likewise.
19387         * modules/unistdio/ulc-asnprintf-tests: Likewise.
19388         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
19389         * modules/unistdio/ulc-vasprintf-tests: Likewise.
19390         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
19391         * modules/unistdio/ulc-vsprintf-tests: Likewise.
19392         * modules/unistr/u8-check-tests: Likewise.
19393         * modules/unistr/u8-chr-tests: Likewise.
19394         * modules/unistr/u8-cmp-tests: Likewise.
19395         * modules/unistr/u8-cmp2-tests: Likewise.
19396         * modules/unistr/u8-cpy-alloc-tests: Likewise.
19397         * modules/unistr/u8-cpy-tests: Likewise.
19398         * modules/unistr/u8-mblen-tests: Likewise.
19399         * modules/unistr/u8-mbsnlen-tests: Likewise.
19400         * modules/unistr/u8-mbtouc-tests: Likewise.
19401         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
19402         * modules/unistr/u8-mbtoucr-tests: Likewise.
19403         * modules/unistr/u8-move-tests: Likewise.
19404         * modules/unistr/u8-next-tests: Likewise.
19405         * modules/unistr/u8-prev-tests: Likewise.
19406         * modules/unistr/u8-set-tests: Likewise.
19407         * modules/unistr/u8-stpcpy-tests: Likewise.
19408         * modules/unistr/u8-stpncpy-tests: Likewise.
19409         * modules/unistr/u8-strcat-tests: Likewise.
19410         * modules/unistr/u8-strcmp-tests: Likewise.
19411         * modules/unistr/u8-strcoll-tests: Likewise.
19412         * modules/unistr/u8-strcpy-tests: Likewise.
19413         * modules/unistr/u8-strdup-tests: Likewise.
19414         * modules/unistr/u8-strlen-tests: Likewise.
19415         * modules/unistr/u8-strmblen-tests: Likewise.
19416         * modules/unistr/u8-strmbtouc-tests: Likewise.
19417         * modules/unistr/u8-strncat-tests: Likewise.
19418         * modules/unistr/u8-strncmp-tests: Likewise.
19419         * modules/unistr/u8-strncpy-tests: Likewise.
19420         * modules/unistr/u8-strnlen-tests: Likewise.
19421         * modules/unistr/u8-to-u16-tests: Likewise.
19422         * modules/unistr/u8-to-u32-tests: Likewise.
19423         * modules/unistr/u8-uctomb-tests: Likewise.
19424         * modules/unistr/u16-check-tests: Likewise.
19425         * modules/unistr/u16-chr-tests: Likewise.
19426         * modules/unistr/u16-cmp-tests: Likewise.
19427         * modules/unistr/u16-cmp2-tests: Likewise.
19428         * modules/unistr/u16-cpy-alloc-tests: Likewise.
19429         * modules/unistr/u16-cpy-tests: Likewise.
19430         * modules/unistr/u16-mblen-tests: Likewise.
19431         * modules/unistr/u16-mbsnlen-tests: Likewise.
19432         * modules/unistr/u16-mbtouc-tests: Likewise.
19433         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
19434         * modules/unistr/u16-mbtoucr-tests: Likewise.
19435         * modules/unistr/u16-move-tests: Likewise.
19436         * modules/unistr/u16-next-tests: Likewise.
19437         * modules/unistr/u16-prev-tests: Likewise.
19438         * modules/unistr/u16-set-tests: Likewise.
19439         * modules/unistr/u16-stpcpy-tests: Likewise.
19440         * modules/unistr/u16-stpncpy-tests: Likewise.
19441         * modules/unistr/u16-strcat-tests: Likewise.
19442         * modules/unistr/u16-strcmp-tests: Likewise.
19443         * modules/unistr/u16-strcoll-tests: Likewise.
19444         * modules/unistr/u16-strcpy-tests: Likewise.
19445         * modules/unistr/u16-strdup-tests: Likewise.
19446         * modules/unistr/u16-strlen-tests: Likewise.
19447         * modules/unistr/u16-strmblen-tests: Likewise.
19448         * modules/unistr/u16-strmbtouc-tests: Likewise.
19449         * modules/unistr/u16-strncat-tests: Likewise.
19450         * modules/unistr/u16-strncmp-tests: Likewise.
19451         * modules/unistr/u16-strncpy-tests: Likewise.
19452         * modules/unistr/u16-strnlen-tests: Likewise.
19453         * modules/unistr/u16-to-u32-tests: Likewise.
19454         * modules/unistr/u16-to-u8-tests: Likewise.
19455         * modules/unistr/u16-uctomb-tests: Likewise.
19456         * modules/unistr/u32-check-tests: Likewise.
19457         * modules/unistr/u32-chr-tests: Likewise.
19458         * modules/unistr/u32-cmp-tests: Likewise.
19459         * modules/unistr/u32-cmp2-tests: Likewise.
19460         * modules/unistr/u32-cpy-alloc-tests: Likewise.
19461         * modules/unistr/u32-cpy-tests: Likewise.
19462         * modules/unistr/u32-mblen-tests: Likewise.
19463         * modules/unistr/u32-mbsnlen-tests: Likewise.
19464         * modules/unistr/u32-mbtouc-tests: Likewise.
19465         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
19466         * modules/unistr/u32-mbtoucr-tests: Likewise.
19467         * modules/unistr/u32-move-tests: Likewise.
19468         * modules/unistr/u32-next-tests: Likewise.
19469         * modules/unistr/u32-prev-tests: Likewise.
19470         * modules/unistr/u32-set-tests: Likewise.
19471         * modules/unistr/u32-stpcpy-tests: Likewise.
19472         * modules/unistr/u32-stpncpy-tests: Likewise.
19473         * modules/unistr/u32-strcat-tests: Likewise.
19474         * modules/unistr/u32-strcmp-tests: Likewise.
19475         * modules/unistr/u32-strcoll-tests: Likewise.
19476         * modules/unistr/u32-strcpy-tests: Likewise.
19477         * modules/unistr/u32-strdup-tests: Likewise.
19478         * modules/unistr/u32-strlen-tests: Likewise.
19479         * modules/unistr/u32-strmblen-tests: Likewise.
19480         * modules/unistr/u32-strmbtouc-tests: Likewise.
19481         * modules/unistr/u32-strncat-tests: Likewise.
19482         * modules/unistr/u32-strncmp-tests: Likewise.
19483         * modules/unistr/u32-strncpy-tests: Likewise.
19484         * modules/unistr/u32-strnlen-tests: Likewise.
19485         * modules/unistr/u32-to-u16-tests: Likewise.
19486         * modules/unistr/u32-to-u8-tests: Likewise.
19487         * modules/unistr/u32-uctomb-tests: Likewise.
19488         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
19489         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
19490         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
19491         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
19492         * modules/uniwidth/u8-strwidth-tests: Likewise.
19493         * modules/uniwidth/u8-width-tests: Likewise.
19494         * modules/uniwidth/u16-strwidth-tests: Likewise.
19495         * modules/uniwidth/u16-width-tests: Likewise.
19496         * modules/uniwidth/u32-strwidth-tests: Likewise.
19497         * modules/uniwidth/u32-width-tests: Likewise.
19498         * modules/uniwidth/width-tests: Likewise.
19499
19500 2010-05-18  Richard Jones  <rjones@redhat.com>
19501
19502         doc: users.txt: list hivex
19503         * users.txt: Add hivex.
19504
19505 2010-05-18  Richard Jones  <rjones@redhat.com>
19506
19507         doc: users.txt: list febootstrap
19508         * users.txt: Add febootstrap.
19509
19510 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
19511
19512         bootstrap: fix an error when gnulib is not used as a git submodule
19513         * build-aux/bootstrap (gnulib_path): If its length is zero then
19514         assign "gnulib" to it.
19515         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
19516
19517 2010-05-16  Bruno Haible  <bruno@clisp.org>
19518
19519         Avoid autoconf warnings about AM_ICONV.
19520         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
19521         2.64.
19522
19523 2010-05-16  Bruno Haible  <bruno@clisp.org>
19524
19525         absolute-header: Make the macro usable in more situations.
19526         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
19527         from gl_ABSOLUTE_HEADER.
19528         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
19529
19530 2010-05-16  James Youngman  <jay@gnu.org>
19531
19532         doc: update users.txt
19533         * users.txt: Add CSSC.
19534
19535 2010-05-16  Jim Meyering  <meyering@redhat.com>
19536
19537         init.sh: fix an error in the previous change; add more comments
19538         * tests/init.sh: Compare exit code in loop against 9, not 2.
19539         Patch by Bruno Haible.
19540         Make the two tests more similar by adding an empty "then" clause.
19541         Add comments.
19542
19543         init.sh: avoid unnecessary shell re-exec
19544         * tests/init.sh: Improve the re-exec-required check to first test the
19545         current shell.  If it passes the test, do not search for a shell that
19546         does pass, and do not re-exec.  This test is particularly contorted to
19547         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
19548         of $(...) evokes a syntax error and causes immediate shell exit with
19549         status 2.  Bruno Haible reported that the re-exec made it impossible
19550         to single-step through any init.sh-using script.
19551
19552 2010-05-16  Bruno Haible  <bruno@clisp.org>
19553
19554         Fix collision between gnulib's and libintl's printf replacements.
19555         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
19556         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
19557         (printf): When using GNU C, map the __printf__ function to rpl_printf
19558         via __asm__. When not using GNU C, define rpl_printf instead of
19559         __printf__.
19560         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
19561         commit.
19562         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
19563         commit.
19564         * m4/asm-underscore.m4: New file.
19565         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
19566         * modules/stdio (Files): Add m4/asm-underscore.m4.
19567         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
19568         Reported by Ben Pfaff.
19569
19570 2010-05-16  Bruno Haible  <bruno@clisp.org>
19571
19572         verify: Avoid skipping the test on openSUSE 11.0.
19573         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
19574
19575 2010-05-13  Bruno Haible  <bruno@clisp.org>
19576
19577         Avoid useless warnings from G++.
19578         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
19579         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
19580         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
19581
19582 2010-05-11  Jim Meyering  <meyering@redhat.com>
19583
19584         maint.mk: tweak preceding change
19585         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
19586         regexps tighter by anchoring at EOL, and make the new group "shy"
19587         for slightly decreased overhead.
19588
19589 2010-05-11  Eric Blake  <eblake@redhat.com>
19590
19591         maint.mk: gnulib doesn't guarantee NSIG
19592         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
19593
19594 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
19595
19596         test-pwrite.c: Remove unused variable declaration.
19597         * tests/test-pwrite.c (main): Remove read_buf declaration.
19598
19599         Remove useless test-pwrite.sh file.
19600         * tests/test-pwrite.sh: Delete file.
19601         * modules/pwrite-tests: Remove references.
19602         Reported by Bruno Haible.
19603
19604 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
19605
19606         init.sh: fix a typo
19607         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
19608
19609 2010-05-10  Jim Meyering  <meyering@redhat.com>
19610
19611         maint.mk: avoid using a temporary file in the always-defined-macros check
19612         * top/maint.mk (.re-defmac): Remove rule.
19613         (gl_trap_): Remove definition.
19614         (sc_prohibit_always-defined_macros): Rewrite not to create and
19615         depend on a temporary file.  Instead, depend on GNU grep's ability
19616         to read a list of regular expressions from stdin when given "-f -".
19617
19618 2010-05-09  Bruno Haible  <bruno@clisp.org>
19619
19620         Update to GNU gettext 0.18, part 1.
19621         * m4/gettext.m4: Update to GNU gettext 0.18.
19622         * m4/intl.m4: Likewise.
19623         * m4/po.m4: Likewise.
19624         * modules/gettext (Files): Add m4/fcntl-o.m4.
19625         (configure.ac): Require gettext infrastructure from version 0.18.
19626
19627 2010-05-09  Jim Meyering  <meyering@redhat.com>
19628
19629         init.sh: enable MALLOC_PERTURB_
19630         * tests/init.sh: Enable glibc's malloc-perturbing option.
19631
19632         maint.mk: improve sc_cross_check_PATH_usage_in_tests
19633         With my recent change in init.sh from the two-line form:
19634             -#   : ${srcdir=.}
19635             -#   . "$srcdir/init.sh"; path_prepend_ .
19636             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
19637         I noticed that using the one-line form would cause this test
19638         to fail with a false-positive, or to stop working altogether,
19639         depending on whether help-version changed or all the tests did.
19640         * top/maint.mk (_hv_regex): Remove this definition.
19641         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
19642         (_hv_regex_strong): Use a stronger regex to check for conformance.
19643         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
19644         Give a separate diagnostic for lack of conforming use.
19645
19646         maint.mk: prohibit definition of symbols defined by gnulib
19647         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
19648         definition of symbols defined by gnulib.
19649
19650 2010-05-09  Bruno Haible  <bruno@clisp.org>
19651
19652         acl: Avoid test failure on Cygwin-hosted mingw.
19653         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
19654
19655 2010-05-09  Bruno Haible  <bruno@clisp.org>
19656
19657         error: Use system's fcntl function.
19658         * lib/error.c (fcntl): Undefine.
19659
19660 2010-05-09  Jim Meyering  <meyering@redhat.com>
19661
19662         verify: adjust formatting to be more consistent
19663         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
19664         argument-list '('s, and after one comma.
19665
19666 2010-05-09  Bruno Haible  <bruno@clisp.org>
19667
19668         error: More reliable output on mingw.
19669         * lib/error.c: Include <windows.h>.
19670         (is_open): New function.
19671         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
19672         defined.
19673
19674 2010-05-09  Bruno Haible  <bruno@clisp.org>
19675
19676         vasnprintf: Fix syntax errors in libintl build on mingw.
19677         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
19678         pad_ourselves and prec_ourselves after use.
19679
19680 2010-05-08  Bruno Haible  <bruno@clisp.org>
19681
19682         * lib/config.charset: Update comments for Cygwin 1.7.
19683         * lib/localcharset.c: Likewise.
19684
19685 2010-05-07  Jim Meyering  <meyering@redhat.com>
19686
19687         init.sh: improve comments
19688         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
19689         . "${srcdir=.}/init.sh"; path_prepend_ .
19690         Add a note about path_prepend_ and the alternative of using
19691         TESTS_ENVIRONMENT.
19692
19693 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
19694
19695         exclude: Unescape hashed patterns in wildcard mode.
19696         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
19697         to the hash list.
19698         * tests/test-exclude8.sh: New test case.
19699         * modules/exclude-tests: Add new test.
19700
19701 2010-05-05  Eric Blake  <eblake@redhat.com>
19702
19703         verify: automate tests
19704         * modules/verify-tests: New module.
19705         * tests/test-verify.sh: New file.
19706         * tests/test-verify.c: Guard each negative test with a unique id.
19707         Also avoid warning about unused left hand of comma expressions.
19708
19709 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
19710
19711         Further improvements to verify.h, suggested by Eric Blake.
19712         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
19713         the GL_* versions, to avoid collision with OpenGL.
19714         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
19715         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
19716         than testing merely whether it's defined.
19717
19718         Modify verify.h to pacify gcc -Wredundant_decls.
19719         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
19720         These use the prefix "GL_" since they're likely to be useful elsewhere.
19721         We may need to break them out into a different .h file.
19722         (__COUNTER__): Define to 0 if the compiler doesn't support it.
19723         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
19724         of verify_function__.
19725
19726 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
19727
19728         Tests for module pwrite.
19729         * modules/pwrite-tests: New file.
19730         * tests/test-pwrite.sh: New file.
19731         * tests/test-pwrite.c: New file.
19732
19733         New module pwrite.
19734         * lib/unistd.in.h (pwrite): New declaration.
19735         * lib/pwrite.c: New file, from glibc with modifications.
19736         * m4/pwrite.m4: New file.
19737         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
19738         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
19739         REPLACE_PWRITE.
19740         * modules/pwrite: New file.
19741         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
19742         REPLACE_PWRITE.
19743         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
19744         * doc/posix-functions/pwrite.texi: Mention the new module.
19745
19746 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
19747
19748         pread: Update documentation.
19749         * doc/posix-functions/pread.texi: Mention the 'pread' module.
19750
19751 2010-05-04  Eric Blake  <eblake@redhat.com>
19752
19753         docs: update cygwin progress
19754         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
19755         this bug.
19756         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
19757         Added in cygwin 1.7.2.
19758         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
19759         Likewise.
19760         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
19761         Likewise.
19762         * doc/glibc-functions/dup3.texi (dup3): Likewise.
19763         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
19764         * doc/glibc-functions/accept4.texi (accept4): Likewise.
19765         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
19766         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
19767         Mention nproc module.
19768         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
19769         bug in cygwin 1.7.5 addition.
19770         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
19771         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
19772         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
19773         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
19774         1.7.5.
19775         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
19776         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
19777         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
19778         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
19779         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
19780         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
19781         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
19782         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
19783         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
19784         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
19785         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
19786         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
19787         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
19788         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
19789         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
19790         Likewise.
19791         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
19792         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
19793         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
19794         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
19795         Likewise.
19796         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
19797         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
19798         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
19799         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
19800         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
19801         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
19802         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
19803         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
19804         Likewise.
19805         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
19806         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
19807         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
19808         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
19809         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
19810         Likewise.
19811         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
19812         Likewise.
19813         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
19814         Likewise.
19815         * doc/glibc-functions/xdrrec_endofrecord.texi
19816         (xdrrec_endofrecord): Likewise.
19817         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
19818         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
19819         Likewise.
19820         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
19821         Likewise.
19822
19823 2010-05-04  Jim Meyering  <meyering@redhat.com>
19824
19825         gendocs.sh: make its "-s FILE" option more useful
19826         * build-aux/gendocs.sh: When honoring the -s FILE option, update
19827         $PACKAGE to reflect the probably-different basename of "FILE".
19828
19829 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
19830
19831         bootstrap: don't ignore download_po_files failure
19832         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
19833         failure.
19834
19835 2010-05-03  Jim Meyering  <meyering@redhat.com>
19836
19837         maint.mk: allow to pass options to gendocs.sh
19838         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
19839         (gendocs_options_): New overridable variable.
19840
19841         gnu-web-doc-update: don't ignore configure or build failure
19842         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
19843
19844         announce-gen: backslash-escape '@'s in --help output
19845         * build-aux/announce-gen: Fix syntax errors.
19846
19847         maint.mk, announce-gen: allow project-specific announcement mail headers
19848         * top/maint.mk (translation_project_): Define default.
19849         (announcement_Cc_, announcement_mail_headers_): Likewise.
19850         (announcement): Invoke announce-gen with new --mail-headers option.
19851         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
19852
19853         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
19854         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
19855         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
19856         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
19857         line in the "err2" output file when running "make check" in verbose
19858         mode (i.e., with set -x enabled).
19859
19860 2010-05-03  Bruno Haible  <bruno@clisp.org>
19861
19862         wctob: Fix for weird platforms.
19863         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
19864         argument value.
19865
19866 2010-05-03  Jim Meyering  <meyering@redhat.com>
19867
19868         maint.mk: prohibit unwarranted use of <strings.h>
19869         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
19870         strings.h in a file that does not also use strcasecmp, strncasecmp,
19871         ffs or ffsll.
19872
19873         maint.mk: remove obsolete comments
19874         * top/maint.mk: Remove stale, commented-out rules.
19875
19876 2010-05-02  Bruno Haible  <bruno@clisp.org>
19877
19878         wcwidth: Declare also when it's aliased.
19879         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
19880         macro.
19881
19882 2010-05-02  Bruno Haible  <bruno@clisp.org>
19883
19884         Fix regression from 2010-04-25.
19885         * gnulib-tool (func_modules_transitive_closure): Check the status of
19886         all modules, not only of the tests that are of the form foo-tests where
19887         foo is a module.
19888
19889 2010-05-02  Bruno Haible  <bruno@clisp.org>
19890
19891         wctob: Work around nasty Cygwin 1.7.2 bug.
19892         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
19893         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
19894
19895 2010-05-01  Bruno Haible  <bruno@clisp.org>
19896
19897         fpurge: Sharper test.
19898         * tests/test-fpurge.c (main): Add one more ftell check.
19899         * modules/fpurge-tests (Depends-on): Add ftell.
19900         Suggested by Eric Blake.
19901
19902 2010-05-01  Bruno Haible  <bruno@clisp.org>
19903
19904         ftello: Another test.
19905         * tests/test-ftello3.c: New file.
19906         * modules/ftello-tests (Files): Add it.
19907         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
19908         MOSTLYCLEANFILES.
19909
19910         ftell: Another test.
19911         * tests/test-ftell3.c: New file.
19912         * modules/ftell-tests (Files): Add it.
19913         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
19914         MOSTLYCLEANFILES.
19915
19916 2010-05-01  Bruno Haible  <bruno@clisp.org>
19917
19918         ftell, ftello: Work around Solaris bug.
19919         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
19920         * lib/ftello.c: Include stdio-impl.h.
19921         (ftello): On Solaris, when _IOWRT is set, compute the result without
19922         looking at _IOREAD.
19923         * modules/ftello (Files): Add lib/stdio-impl.h.
19924         * doc/posix-functions/ftell.texi: Mention Solaris bug.
19925         * doc/posix-functions/ftello.texi: Likewise.
19926         Reported by Eric Blake.
19927
19928 2010-05-01  Bruno Haible  <bruno@clisp.org>
19929
19930         freading: Adapt to special meaning of _IOREAD flag on Solaris.
19931         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
19932         the _IOWRT flag is also set.
19933
19934 2010-05-01  Bruno Haible  <bruno@clisp.org>
19935
19936         Fix doc about a HP-UX stdio bug.
19937         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
19938         * doc/posix-functions/ftello.texi: Likewise.
19939
19940 2010-05-01  Bruno Haible  <bruno@clisp.org>
19941
19942         lseek test: Fix failure on Solaris.
19943         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
19944         output.
19945
19946 2010-04-30  Jim Meyering  <meyering@redhat.com>
19947
19948         bootstrap: don't ignore failure to generate po*/Makevars
19949         * build-aux/bootstrap (with_gettext): Don't ignore failure
19950         to create po/Makevars or runtime-po/Makevars.
19951
19952 2010-04-29  Eric Blake  <eblake@redhat.com>
19953
19954         headers: relax license to LGPLv2+
19955         * modules/fcntl-h (License): Relax license.
19956         * modules/getopt-posix (License): Likewise.
19957         * modules/locale (License): Likewise.
19958         * modules/math (License): Likewise.
19959         * modules/pty (License): Likewise.
19960         * modules/sched (License): Likewise.
19961         * modules/search (License): Likewise.
19962         * modules/spawn (License): Likewise.
19963         * modules/stdarg (License): Likewise.
19964         * modules/sysexits (License): Likewise.
19965
19966 2010-04-29  Jim Meyering  <meyering@redhat.com>
19967
19968         inttypes: relax license to LGPLv2+
19969         * modules/inttypes (License): Relax license.
19970
19971 2010-04-29  Simon Josefsson  <simon@josefsson.org>
19972
19973         * top/maint.mk (indent): Run twice to produce idempotent results.
19974
19975 2010-04-28  Bruno Haible  <bruno@clisp.org>
19976
19977         getdate: Generate getdate.c in the source directory.
19978         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
19979         MOSTLYCLEANFILES.
19980         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
19981
19982 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
19983
19984         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
19985         is not declared as a const *; avoid warnings in that case.
19986
19987 2010-04-28  Eric Blake  <eblake@redhat.com>
19988
19989         canonicalize-lgpl: avoid compiler warning
19990         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
19991         declaration' / 'extraneous semicolon' warning with some compilers.
19992         Reported by Andreas Gruenbacher.
19993
19994 2010-04-28  Jim Meyering  <meyering@redhat.com>
19995
19996         init.sh: ensure a more reliable exit status when exiting via trap
19997         * tests/init.sh (setup_): Don't rely on $? in signal handler.
19998         Inspired by patches from Dmitry V. Levin.
19999         Also trap on signal 3 (SIGQUIT).
20000
20001 2010-04-27  Bruno Haible  <bruno@clisp.org>
20002
20003         Update doc about utimes().
20004         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
20005         'utimens' module.
20006         Reported by Andreas Gruenbacher <agruen@suse.de>.
20007
20008 2010-04-27  Eric Blake  <eblake@redhat.com>
20009
20010         full-read, full-write: relax license
20011         * modules/full-read (License): Drop to LGPLv2+.
20012         * modules/full-write (License): Likewise.
20013         * modules/safe-read (License): Likewise.
20014         * modules/safe-write (License): Likewise.
20015
20016         pthread: mention library for linking
20017         * modules/pthread (Link): Mention $(LIB_PTHREAD).
20018
20019 2010-04-27  Jim Meyering  <meyering@redhat.com>
20020
20021         maint.mk: fix a bug introduced in last change
20022         * top/maint.mk (gl_assured_headers_): Now that all names are on
20023         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
20024         is not anchored to end of word, it should be adequate.
20025
20026         maint.mk: avoid side-effect in latest syntax-check
20027         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
20028         to run commands via $(shell...), and hence to incur cost only when
20029         the new rule is actually run.
20030
20031         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
20032         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
20033         and use that to create a regexp used to detect all #if HAVE_..._H uses.
20034         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
20035         (gl_assured_headers_, az_, AZ_): Define.
20036         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
20037
20038 2010-04-26  Jim Meyering  <jim@meyering.net>
20039             Bruno Haible  <bruno@clisp.org>
20040
20041         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
20042         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
20043         Prompted by an exchange with Gilles Espinasse.
20044
20045 2010-04-26  Jim Meyering  <meyering@redhat.com>
20046
20047         git-version-gen: aesthetic tweak
20048         * build-aux/git-version-gen: Use "$nl" rather than a literal,
20049         so that the command remains on a single line.
20050
20051 2010-04-26  Eric Blake  <eblake@redhat.com>
20052
20053         git-version-gen: allow use on EBCDIC hosts
20054         * build-aux/git-version-gen (dirty): Use literal rather than tying
20055         ourselves to ascii.
20056         Reported by Steve Goetze.
20057
20058 2010-04-25  Bruno Haible  <bruno@clisp.org>
20059
20060         netdb: Add support for GNULIB_POSIXCHECK.
20061         * lib/netdb.in.h: Include warn-on-use.h.
20062         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
20063         functions are used when GNULIB_POSIXCHECK is defined and the
20064         getaddrinfo module is not in use.
20065         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
20066         freeaddrinfo, gai_strerror, getnameinfo are declared.
20067         * modules/netdb (Depends-on): Add warn-on-use.
20068         (Makefile.am): Include warn-on-use.h in netdb.h.
20069
20070 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
20071
20072         build: avoid "make check" failure without .git/ directory
20073         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
20074         there is no .git/ directory.
20075
20076 2010-04-25  Bruno Haible  <bruno@clisp.org>
20077
20078         ptsname: Fix misuse of ttyname_r.
20079         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
20080         of errno.
20081
20082 2010-04-25  Bruno Haible  <bruno@clisp.org>
20083
20084         ttyname_r: Make it work on Solaris 10.
20085         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
20086         if the system function has the POSIX declaration. Test whether the
20087         function fails if the buffer is less than 128 bytes large.
20088         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
20089         system's ttyname_r function. Provide a reasonably large buffer.
20090         * modules/ttyname_r (Depends-on): Add extensions.
20091         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
20092
20093 2010-04-25  Bruno Haible  <bruno@clisp.org>
20094
20095         Use the 'extensions' module for some more functions on Solaris.
20096         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
20097         module.
20098         * doc/posix-functions/ctime_r.texi: Likewise.
20099         * doc/posix-functions/getgrgid_r.texi: Likewise.
20100         * doc/posix-functions/getgrnam_r.texi: Likewise.
20101         * doc/posix-functions/getpwnam_r.texi: Likewise.
20102         * doc/posix-functions/getpwuid_r.texi: Likewise.
20103         * doc/posix-functions/readdir_r.texi: Likewise.
20104         * doc/posix-functions/sigwait.texi: Likewise.
20105         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
20106         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
20107
20108 2010-04-25  Bruno Haible  <bruno@clisp.org>
20109
20110         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
20111         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
20112         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
20113         * lib/ttyname_r.c: Include <limits.h>.
20114         (ttyname_r): Define using the system's ttyname_r function, if it exists
20115         and not on Solaris.
20116         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
20117         set.
20118         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
20119         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
20120         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
20121         Reported by Simon Josefsson.
20122
20123 2010-04-25  Bruno Haible  <bruno@clisp.org>
20124
20125         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
20126         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
20127         * doc/posix-functions/ctime_r.texi: Likewise.
20128         * doc/posix-functions/getgrgid_r.texi: Likewise.
20129         * doc/posix-functions/getgrnam_r.texi: Likewise.
20130         * doc/posix-functions/getlogin_r.texi: Likewise.
20131         * doc/posix-functions/getpwnam_r.texi: Likewise.
20132         * doc/posix-functions/getpwuid_r.texi: Likewise.
20133         * doc/posix-functions/readdir_r.texi: Likewise.
20134         * doc/posix-functions/sigwait.texi: Likewise.
20135         * doc/posix-functions/ttyname_r.texi: Likewise.
20136         Reported by Simon Josefsson.
20137
20138 2010-04-25  Bruno Haible  <bruno@clisp.org>
20139
20140         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
20141         * gnulib-tool (func_usage): Document that --with-*-tests options apply
20142         also to --create-testdir.
20143         (func_acceptable): Don't consider the status of *-tests modules here.
20144         (func_modules_transitive_closure): Consider it here, before including a
20145         test module.
20146         (func_import, func_create_testdir): Set inc_all_direct_tests,
20147         inc_all_indirect_tests.
20148         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
20149         --create-testdir and --create-megatestdir.
20150
20151 2010-04-25  Bruno Haible  <bruno@clisp.org>
20152
20153         gnulib-tool: Add --without-*-tests options.
20154         * gnulib-tool (func_usage): Document the --without-*-tests options.
20155         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
20156         excl_unportable_tests): New variables.
20157         Fail if they are specified with --import or --update.
20158         (func_acceptable): Respect the excl_*_tests variables.
20159         (func_import): Set the excl_*_tests variables to empty.
20160
20161 2010-04-25  Simon Josefsson  <simon@josefsson.org>
20162             Bruno Haible  <bruno@clisp.org>
20163
20164         Work around a MacOS X 10.4 bug with openpty.
20165         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
20166         * tests/test-openpty.c (main): Close the master side explicitly.
20167
20168 2010-04-25  Bruno Haible  <bruno@clisp.org>
20169
20170         strnlen: Fix a C++ test error on MacOS X and Solaris.
20171         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
20172         the function is not declared.
20173         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
20174         Simon Josefsson.
20175
20176 2010-04-24  Bruno Haible  <bruno@clisp.org>
20177
20178         Avoid a gcc warning.
20179         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
20180         of correct type for %08lx directive.
20181         Reported by Eric Blake.
20182
20183 2010-04-24  Bruno Haible  <bruno@clisp.org>
20184
20185         vasnprintf: Correct errno value in case of out-of-memory.
20186         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
20187         or sprintf. Use the errno value from SNPRINTF or sprintf.
20188         Reported by Ian Beckwith <ianb@erislabs.net>.
20189
20190 2010-04-24  Bruno Haible  <bruno@clisp.org>
20191
20192         ansi-c++-opt: Find correct compiler when cross-compiling.
20193         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
20194         AC_CHECK_PROGS.
20195         Reported by Simon Josefsson.
20196
20197 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
20198
20199         vc-list-files: Add support for subversion
20200         * build-aux/vc-list-files: Use "svn list" to generate the list of
20201         files controlled by subversion.
20202
20203 2010-04-23  Jim Meyering  <meyering@redhat.com>
20204
20205         vc-list-files tests: convert to use init.sh
20206         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
20207         path_prepend_.
20208         Use Exit, not exit.
20209         Use skip_ rather than open coding it.
20210         Remove trap set-up and compare definitions.
20211         * tests/test-vc-list-files-git.sh: Likewise.
20212         * modules/vc-list-files-tests (Files): Add tests/init.sh.
20213
20214 2010-04-22  Simon Josefsson  <simon@josefsson.org>
20215
20216         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
20217         backup files.
20218
20219 2010-04-21  Simon Josefsson  <simon@josefsson.org>
20220
20221         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
20222
20223 2010-04-20  Eric Blake  <eblake@redhat.com>
20224
20225         tests: be robust to ignored SIGPIPE
20226         * tests/test-select-in.sh: Consume all output.
20227         * tests/test-lseek.sh: Check correct exit status, while avoiding
20228         EPIPE.
20229
20230 2010-04-20  Simon Josefsson  <simon@josefsson.org>
20231             Bruno Haible  <bruno@clisp.org>
20232
20233         visibility: Don't use -fvisibility if it leads to a warning.
20234         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
20235         yes, don't pretend that visibility works if it leads to a warning.
20236         Reported by Mike Gran <spk121@yahoo.com>.
20237
20238 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
20239
20240         * build-aux/bootstrap: Use "git -h" for testing for supported options
20241         instead of "git --help".  The short-form option only shows a summary,
20242         and doesn't layout the full man page.  Grep for the full option name
20243         in the summary, too.
20244
20245 2010-04-19  Bruno Haible  <bruno@clisp.org>
20246
20247         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
20248         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
20249         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
20250         mention of RELOCATABLE_STRIP.
20251         Reported by Sylvain Beucler <beuc@beuc.net>.
20252
20253 2010-04-19  Bruno Haible  <bruno@clisp.org>
20254
20255         * lib/diffseq.h: Fix typo in comment.
20256         Reported by Eric Blake.
20257
20258 2010-04-19  Bruno Haible  <bruno@clisp.org>
20259
20260         ioctl: Move autoconf macro to a .m4 file.
20261         * m4/ioctl.m4: New file, extracted from modules/ioctl.
20262         * modules/ioctl (Files): Add it.
20263         (configure.ac): Simply invoke gl_FUNC_IOCTL.
20264         Reported by Ian Beckwith <ianb@erislabs.net>.
20265
20266 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
20267             Bruno Haible  <bruno@clisp.org>
20268
20269         diffseq: Accommodate use-case with abstract arrays.
20270         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
20271         is not defined.
20272         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
20273         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
20274
20275 2010-04-18  Bruno Haible  <bruno@clisp.org>
20276
20277         * doc/posix-headers/stdbool.texi: More precise wording.
20278
20279 2010-04-17  Jim Meyering  <meyering@redhat.com>
20280
20281         maint.mk: use gnu-style indentation in an embedded perl script
20282         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
20283         Rename variable: s/two/last_two_bytes/
20284
20285 2010-04-16  Eric Blake  <eblake@redhat.com>
20286
20287         test-stdbool: skip test that fails with Solaris CC
20288         * tests/test-stdbool.c (f): Skip test that causes compilation
20289         error under buggy C++ compiler.
20290         * lib/stdbool.in.h: Document the limitation.
20291         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
20292
20293         setenv: allow compilation with C++
20294         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
20295         register keyword.
20296
20297         stdint: allow test to pass with C++
20298         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
20299
20300         getopt: allow compilation with C++
20301         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
20302         struct.
20303         * lib/getopt.c (_getopt_internal_r): Use correct type.
20304         Reported by Dagobert Michelson, via Joel E. Denny.
20305
20306 2010-04-16  Bruno Haible  <bruno@clisp.org>
20307
20308         Override netdb.h always.
20309         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
20310         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
20311         Reported by Ludovic Courtès <ludo@gnu.org>.
20312
20313 2010-04-15  Bruno Haible  <bruno@clisp.org>
20314
20315         openpty: Fix mistake from 2010-03-21.
20316         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
20317         Reported by Simon Josefsson.
20318
20319 2010-04-15  Eric Blake  <eblake@redhat.com>
20320
20321         test-forkpty: fix expected signature
20322         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
20323         Reported by Simon Josefsson.
20324
20325 2010-04-15  Jim Meyering  <meyering@redhat.com>
20326
20327         maint.mk: texinfo_suffix_re_: correct the default regexp
20328         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
20329
20330         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
20331         make it configurable via texinfo_suffix_re_.
20332
20333 2010-04-14  Eric Blake  <eblake@redhat.com>
20334
20335         strtok_r: relax license to LGPLv2+
20336         * modules/strtok_r (License): Relax license.
20337         Reported by Matthias Bolte.
20338
20339 2010-04-14  Simon Josefsson  <simon@josefsson.org>
20340
20341         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
20342         version 1.4.4 by default instead of requiring the libgcrypt
20343         version used during build.  This makes it possible to use the
20344         application with older but still binary compatible libgcrypt
20345         versions.
20346
20347 2010-04-13  Eric Blake  <eblake@redhat.com>
20348
20349         getopt-gnu: match recent glibc fixes and posix ruling
20350         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
20351         '+' handling, when requesting extensions.
20352         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
20353         'W;' handling.
20354         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
20355         * doc/posix-functions/getopt.texi (getopt): Document this.
20356         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
20357         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
20358         Likewise.
20359
20360         getopt: merge bug fixes from glibc
20361         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
20362         diagnostics.  Honor '+:' correctly.  Reject ';'.
20363
20364         getopt-posix: detect MacOS bug
20365         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
20366         optind when missing a required argument.
20367         * doc/posix-functions/getopt.texi (getopt): Document the bug.
20368         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
20369         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
20370         Likewise.
20371
20372         getopt-posix: avoid spurious failure on Solaris
20373         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
20374         an indicator that setting optind=1 is sufficient for reset.
20375
20376         getopt-posix: avoid spurious failure on FreeBSD
20377         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
20378         in POSIX mode, since the m4 test uses it.
20379
20380         gnulib-tool: silence warning on BSD sh
20381         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
20382
20383 2010-04-13  Jim Meyering  <meyering@redhat.com>
20384
20385         doc: users.txt: GNU patch now uses gnulib
20386         * users.txt: Add patch.
20387
20388 2010-04-12  Jim Meyering  <meyering@redhat.com>
20389
20390         maint.mk: generate more concise timing data for syntax-check rules
20391         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
20392         " done" from each line that reports a syntax-check test duration.
20393
20394 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
20395
20396         git-version-gen: use "git update-index..." rather than "git status"
20397         * build-aux/git-version-gen: Use git update-index --refresh, not
20398         "git status".  With some versions of git, "git status" would fail
20399         to update the index and result in an unwarranted "-dirty" suffix.
20400
20401 2010-04-11  Jim Meyering  <meyering@redhat.com>
20402
20403         openat: correct formatting (no semantic change)
20404         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
20405         Suggested by Bruno Haible.
20406
20407 2010-04-11  Bruno Haible  <bruno@clisp.org>
20408
20409         Stricter declaration checking in testdirs.
20410         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
20411         If for_tests is true, augment AM_CPPFLAGS to define
20412         GNULIB_STRICT_CHECKING.
20413         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
20414         GNULIB_STRICT_CHECKING is defined, verify that the function is
20415         declared.
20416
20417 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
20418             Bruno Haible  <bruno@clisp.org>
20419
20420         libunistring: Improve configure output.
20421         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
20422         Don't say "consider installing GNU libunistring" when checking again
20423         with libiconv.
20424
20425 2010-04-11  Bruno Haible  <bruno@clisp.org>
20426
20427         libunistring: Correct value of $LTLIBUNISTRING.
20428         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
20429         correct the value of $LTLIBUNISTRING.
20430
20431 2010-04-11  Bruno Haible  <bruno@clisp.org>
20432
20433         havelib: Add static libraries to LIBS in the right order.
20434         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
20435         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
20436
20437 2010-04-11  Bruno Haible  <bruno@clisp.org>
20438
20439         libunistring: Detect libunistring also when it depends on libiconv.
20440         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
20441         the second AC_LIB_HAVE_LINKFLAGS invocation.
20442
20443 2010-04-11  James Youngman  <jay@gnu.org>
20444
20445         close-stream: declare local scalars to be "const"
20446         * lib/close-stream.c (close_stream): Make boolean variables const
20447         to document the fact that we set but do not change them.
20448
20449 2010-04-11  Bruno Haible  <bruno@clisp.org>
20450
20451         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
20452
20453 2010-04-11  Jim Meyering  <meyering@redhat.com>
20454
20455         maint.mk: don't include dist-check.mk
20456         * top/maint.mk: Remove bogus include directive.
20457
20458         maint.mk: improve empty-line-at-EOF check
20459         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
20460         solution, rather than tail+Perl-based one.  The latter would read
20461         a few kilobytes from the end of each file, and did not handle empty
20462         files properly.
20463
20464         maint.mk: print the elapsed time for each syntax-check rule
20465         * top/maint.mk (sc_m_rules_): Save start time in a file.
20466         (sc_z_rules_): New rules: remove temp file and print elapsed time.
20467         (local-check): Interpose the .z rules
20468
20469 2010-04-11  Jim Meyering  <meyering@redhat.com>
20470
20471         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
20472         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
20473         empty file with one that ends in an empty line.
20474
20475 2010-04-10  Bruno Haible  <bruno@clisp.org>
20476
20477         mkdir: Make it work on mingw64.
20478         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
20479         * lib/mkdir.c: Update comment.
20480         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
20481
20482 2010-04-10  Bruno Haible  <bruno@clisp.org>
20483
20484         Don't override improved macro from newer autoconf.
20485         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
20486         autoconf >= 2.62.
20487         Reported by Joel E. Denny <jdenny@clemson.edu>.
20488
20489 2010-04-10  Jim Meyering  <meyering@redhat.com>
20490
20491         maint.mk: new syntax-check rule: prohibit empty lines at end of file
20492         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
20493
20494         maint.mk: correct a diagnostic
20495         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
20496         in diagnostic; now use $prohibit.
20497
20498 2010-04-10  Bruno Haible  <address@hidden>
20499
20500         fchownat: Fix a C++ test error on Solaris 8.
20501         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
20502         the function does not exist.
20503
20504 2010-04-10  Bruno Haible  <bruno@clisp.org>
20505
20506         vasnprintf: Add more tests.
20507         * tests/test-vasnprintf-posix.c: Include <errno.h>.
20508         (test_function): Test converting an invalid wide string.
20509
20510         vasnprintf: Correct handling of unconvertible wide string arguments.
20511         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
20512         VASNPRINTF.
20513         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
20514         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
20515         smaller than the expected maximum need for the directive. Set errno to
20516         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
20517         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
20518         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
20519         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
20520         * modules/vasnprintf (Files): Add m4/printf.m4.
20521         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20522
20523 2010-04-10  Bruno Haible  <bruno@clisp.org>
20524
20525         vasnprintf: Fix crash in %ls directive.
20526         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
20527         string is passed as argument to %ls, with no precision and no width.
20528         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20529
20530 2010-04-10  Bruno Haible  <bruno@clisp.org>
20531
20532         vasnprintf: Fix multiple test failures on mingw.
20533         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
20534         _snprintf, or snwprintf, not _snwprintf.
20535
20536 2010-04-10  Bruno Haible  <bruno@clisp.org>
20537
20538         write: Fix a C++ test error on mingw.
20539         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
20540
20541 2010-04-10  Bruno Haible  <bruno@clisp.org>
20542
20543         vasnprintf test: Reduce code duplication.
20544         * tests/test-vasnprintf.c (test_function): New function, extracted from
20545         test_vasnprintf.
20546         (test_vasnprintf, test_asnprintf): Invoke it.
20547
20548 2010-04-10  Bruno Haible  <bruno@clisp.org>
20549
20550         strnlen: Fix warning in C++ mode on MacOS X.
20551         * lib/string.in.h (strnlen): Use the modern idiom.
20552         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
20553         defining strnlen as a macro already in <config.h>.
20554         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
20555         REPLACE_STRNLEN.
20556         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
20557         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20558
20559 2010-04-08  James Youngman  <jay@gnu.org>
20560
20561         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
20562         the example.
20563
20564 2010-04-09  Jim Meyering  <meyering@redhat.com>
20565
20566         maint.mk: print better diagnostic when there is no $(_hv_file)
20567         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
20568         announce that when $(_hv_file) (aka help-version) does not exist.
20569
20570         init.sh: run tr in the "C" locale to avoid multibyte interpretation
20571         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
20572         not try to interpret its random input bytes.  Jarno Rajahalme reported
20573         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
20574         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
20575         (mktempd_): Likewise, just in case.
20576
20577         ftruncate: add two years to projected module removal date: 2012
20578         * m4/ftruncate.m4: Adjust comments.
20579
20580         ftruncate: mark module as obsolete; even MinGW provides it, now
20581         * modules/ftruncate (Status): Obsolete.
20582         (Notice): Say that.
20583         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
20584         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
20585
20586 2010-04-08  Bruno Haible  <bruno@clisp.org>
20587
20588         Fix side effects from tests-related modules.
20589         * modules/dprintf-posix (Comment): New section.
20590         * modules/fprintf-posix (Comment): Likewise.
20591         * modules/obstack-printf-posix (Comment): Likewise.
20592         * modules/printf-posix (Comment): Likewise.
20593         * modules/snprintf-posix (Comment): Likewise.
20594         * modules/sprintf-posix (Comment): Likewise.
20595         * modules/vasnprintf-posix (Comment): Likewise.
20596         * modules/vasprintf-posix (Comment): Likewise.
20597         * modules/vdprintf-posix (Comment): Likewise.
20598         * modules/vfprintf-posix (Comment): Likewise.
20599         * modules/vprintf-posix (Comment): Likewise.
20600         * modules/vsnprintf-posix (Comment): Likewise.
20601         * modules/vsprintf-posix (Comment): Likewise.
20602         * modules/xprintf-posix (Comment): Likewise.
20603         * modules/xvasprintf-posix (Comment): Likewise.
20604         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
20605         * modules/floorf-tests (Depends-on): Likewise.
20606         * modules/round-tests (Depends-on): Likewise.
20607         * modules/roundf-tests (Depends-on): Likewise.
20608         * modules/trunc-tests (Depends-on): Likewise.
20609         * modules/truncf-tests (Depends-on): Likewise.
20610         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
20611         'fprintf-posix' module is not present.
20612         * tests/test-floorf2.c (check): Likewise.
20613         * tests/test-trunc2.c (check): Likewise.
20614         * tests/test-truncf2.c (check): Likewise.
20615         * tests/test-round2.c (equal): Likewise.
20616         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20617
20618 2010-04-07  Karl Berry  <karl@gnu.org>
20619
20620         * config/srclist.txt,
20621         * config/srclistvars.sh,
20622         * config/srclist-update: doc fixes.
20623
20624 2010-04-07  Jim Meyering  <meyering@redhat.com>
20625
20626         maint.mk: add a PATH crosschecking syntax-check rule
20627         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
20628         Useful if you use a test like the one in help-version (coreutils,
20629         diffutils, grep, gzip) that ensures $(VERSION) matches what is
20630         printed by prog --version.
20631
20632 2010-04-06  Bruno Haible  <bruno@clisp.org>
20633
20634         Fix link error on mingw.
20635         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
20636         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
20637
20638 2010-04-06  Bruno Haible  <bruno@clisp.org>
20639
20640         Assume rmdir exists.
20641         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
20642
20643 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
20644
20645         doc: update users.txt
20646         * users.txt: Add gcal.
20647
20648 2010-04-06  Jim Meyering  <meyering@redhat.com>
20649
20650         init.sh: simply unset TMPDIR rather than risking env -i
20651         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
20652         although it probably works fine on all Unix-based systems, some
20653         systems (Cygwin?) cannot tolerate a totally cleared environment.
20654         Suggestion from Eric Blake.
20655
20656 2010-04-06  Jim Meyering  <meyering@redhat.com>
20657
20658         init.sh: portability fix: use env's POSIX-specified -i option not -u
20659         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
20660         than unportable env -u.  Solaris 5.11's env lacks support for -u.
20661
20662 2010-04-05  Bruno Haible  <bruno@clisp.org>
20663
20664         btowc: Work around Cygwin 1.7.2 bug.
20665         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
20666         does not map NUL to 0.
20667         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
20668
20669 2010-04-05  Bruno Haible  <bruno@clisp.org>
20670
20671         Make the multithread modules work on Cygwin 1.7.2.
20672         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
20673         imported symbols can be declared weak, so that it returns "no" on
20674         Cygwin 1.7.2.
20675
20676 2010-04-05  Bruno Haible  <bruno@clisp.org>
20677
20678         Use the module 'strncat'.
20679         * modules/unistr/u8-strncat (Depends-on): Add strncat.
20680
20681         Tests for module 'strncat'.
20682         * modules/strncat-tests: New file.
20683         * tests/test-strncat.c: New file.
20684
20685         New module 'strncat'.
20686         * lib/string.in.h (strncat): New declaration.
20687         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
20688         * m4/strncat.m4: New file, based on m4/memchr.m4.
20689         * modules/strncat: New file.
20690         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
20691         is declared.
20692         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
20693         REPLACE_STRNCAT.
20694         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
20695         REPLACE_STRNCAT.
20696         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
20697         module.
20698         * tests/test-string-c++.cc: Check signature of strncat.
20699
20700 2010-04-05  Jim Meyering  <meyering@redhat.com>
20701
20702         xstrtoumax-tests: convert to use init.sh
20703         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
20704         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
20705         Use Exit, not exit.
20706         Remove uses of $EXEEXT and "./" to run a program in the current dir.
20707
20708         xstrtoimax-tests: convert to use init.sh
20709         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
20710         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
20711         Use Exit, not exit.
20712         Remove uses of $EXEEXT and "./" to run a program in the current dir.
20713
20714 2010-04-05  Bruno Haible  <bruno@clisp.org>
20715
20716         sys_socket: Avoid #define replacements in C++ mode.
20717         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
20718         warning to the function if possible, rather than #defining the symbol
20719         to a dysfunctional alias.
20720
20721 2010-04-05  Bruno Haible  <bruno@clisp.org>
20722
20723         fseeko: Fix C++ test error on mingw.
20724         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
20725         gl_FUNC_FSEEKO.
20726         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
20727         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
20728         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
20729         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
20730
20731 2010-04-05  Bruno Haible  <bruno@clisp.org>
20732
20733         duplocale: Improve test output.
20734         * tests/test-duplocale.c (main): Print reason for skipped test.
20735
20736 2010-04-05  Bruno Haible  <bruno@clisp.org>
20737
20738         Assume rmdir exists.
20739         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
20740         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
20741
20742 2010-04-05  Bruno Haible  <bruno@clisp.org>
20743
20744         Fix link error on Solaris 8 with cc.
20745         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
20746
20747 2010-04-05  Bruno Haible  <bruno@clisp.org>
20748
20749         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
20750         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
20751
20752 2010-04-05  Bruno Haible  <bruno@clisp.org>
20753
20754         vasprintf: Update documentation.
20755         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
20756
20757 2010-04-05  Bruno Haible  <bruno@clisp.org>
20758
20759         ptsname: Improve test.
20760         * tests/test-ptsname.c (main): Also try the various master names of BSD
20761         systems.
20762
20763 2010-04-05  Bruno Haible  <bruno@clisp.org>
20764
20765         memchr: Avoid a possible C++ test error.
20766         * lib/string.in.h (memchr): Provide declaration if function is missing.
20767         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
20768         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
20769         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
20770         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
20771
20772 2010-04-05  Bruno Haible  <bruno@clisp.org>
20773
20774         strtok_r: Improve idiom.
20775         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
20776         AC_LIBOBJ is used.
20777
20778 2010-04-05  Bruno Haible  <bruno@clisp.org>
20779
20780         strdup: Improve idiom.
20781         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
20782         AC_LIBOBJ is used.
20783         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
20784         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
20785         when AC_LIBOBJ is used.
20786
20787 2010-04-05  Bruno Haible  <bruno@clisp.org>
20788
20789         mbsinit, mbrtowc, wcrtomb: Improve idioms.
20790         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
20791         don't set REPLACE_MBSINIT to 1.
20792         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
20793         don't set REPLACE_MBRTOWC to 1.
20794         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
20795         exist, don't set REPLACE_MBSRTOWCS to 1.
20796         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
20797         exist, don't set REPLACE_MBSNRTOWCS to 1.
20798         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
20799         don't set REPLACE_WCRTOMB to 1.
20800         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
20801         exist, don't set REPLACE_WCSRTOMBS to 1.
20802         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
20803         exist, don't set REPLACE_WCSNRTOMBS to 1.
20804
20805 2010-04-05  Bruno Haible  <bruno@clisp.org>
20806
20807         ldexpl: Improve idiom.
20808         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
20809         make sure to set HAVE_DECL_LDEXPL to 0.
20810
20811 2010-04-05  Jim Meyering  <meyering@redhat.com>
20812
20813         xstrtol-tests: convert to use init.sh
20814         * modules/xstrtol-tests (Files): Add tests/init.sh.
20815         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
20816         Use Exit, not exit.
20817         Remove uses of $EXEEXT and "./" to run a program in the current dir.
20818
20819         atexit-tests: convert to use init.sh
20820         * modules/atexit-tests (Files): Add tests/init.sh.
20821         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
20822         Use Exit, not exit.
20823         Remove uses of $EXEEXT and "./" to run a program in the current dir.
20824
20825         init.sh: fix typo
20826         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
20827
20828         init.sh: make it easier for a test script to write to the tty, ...
20829         when using automake's parallel-tests mode.
20830         * tests/init.sh (stderr_fileno_): Define overridable variable.
20831         (warn_): New function, to use it.
20832         (fail_, skip_, framework_failure_): Use warn_.
20833
20834 2010-04-04  Bruno Haible  <bruno@clisp.org>
20835
20836         btowc: Avoid warning.
20837         * lib/btowc.c: Include <stdlib.h>.
20838         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
20839
20840 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
20841             Bruno Haible  <bruno@clisp.org>
20842
20843         wchar: Port to NetBSD 1.5.
20844         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
20845         * lib/wctype.in.h (WEOF): Likewise.
20846
20847 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
20848             Bruno Haible  <bruno@clisp.org>
20849
20850         Port extended stdio to NetBSD 1.5.
20851         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
20852         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
20853         older.
20854
20855 2010-04-04  Bruno Haible  <bruno@clisp.org>
20856
20857         string: Remove unused substitution.
20858         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
20859         HAVE_DECL_STRERROR.
20860         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
20861
20862 2010-04-04  Bruno Haible  <bruno@clisp.org>
20863
20864         strtod: Avoid a possible C++ test error.
20865         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
20866         set REPLACE_STRTOD.
20867
20868 2010-04-04  Bruno Haible  <bruno@clisp.org>
20869
20870         strerror: Update documentation.
20871         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
20872
20873 2010-04-04  Bruno Haible  <bruno@clisp.org>
20874
20875         stdio: Fix some C++ test errors on Solaris 8 with GCC.
20876         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
20877         _GL_CXXALIAS_SYS_CAST.
20878
20879 2010-04-04  Bruno Haible  <bruno@clisp.org>
20880
20881         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
20882         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
20883         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
20884         REPLACE_FREXPL to 1.
20885         * doc/posix-functions/frexpl.texi: Update documentation.
20886
20887 2010-04-04  Bruno Haible  <bruno@clisp.org>
20888
20889         math: Fix some C++ test errors on Solaris 8 and Cygwin.
20890         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
20891
20892 2010-04-04  Bruno Haible  <bruno@clisp.org>
20893
20894         Implement nanosleep for native Windows.
20895         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
20896
20897 2010-04-04  Bruno Haible  <bruno@clisp.org>
20898
20899         math: Fix some C++ test errors on Solaris 8.
20900         * lib/math.in.h (truncf, trunc): Use simpler idiom.
20901
20902 2010-04-04  Bruno Haible  <bruno@clisp.org>
20903
20904         math: Fix some C++ test errors on Cygwin.
20905         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
20906         truncl): Provide declaration if the system does not have it.
20907         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
20908         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
20909         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
20910         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
20911         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
20912         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
20913         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
20914         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
20915         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
20916         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
20917         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
20918         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
20919         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
20920         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
20921         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
20922         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
20923         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
20924         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
20925         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
20926         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
20927         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
20928         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
20929
20930 2010-04-04  Bruno Haible  <bruno@clisp.org>
20931
20932         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
20933         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
20934         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
20935         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
20936         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
20937         * m4/isinf.m4 (gl_ISINF): Likewise.
20938         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
20939
20940 2010-04-04  Bruno Haible  <bruno@clisp.org>
20941
20942         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
20943         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
20944
20945 2010-04-04  Bruno Haible  <bruno@clisp.org>
20946
20947         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
20948         * modules/tmpfile (configure.ac): Update.
20949
20950         tmpfile: Fix C++ test error on mingw.
20951         * lib/stdio.in.h (tmpfile): New declaration.
20952         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
20953         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
20954         * modules/tmpfile (Depends-on): Add stdio.
20955         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
20956         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
20957         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
20958         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
20959         REPLACE_TMPFILE.
20960         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
20961
20962 2010-04-04  Bruno Haible  <bruno@clisp.org>
20963
20964         ioctl: Fix C++ test error on mingw.
20965         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
20966         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
20967         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
20968
20969 2010-04-03  Bruno Haible  <bruno@clisp.org>
20970
20971         wcwidth: Fix C++ test error on mingw.
20972         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
20973         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
20974         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
20975
20976 2010-04-03  Bruno Haible  <bruno@clisp.org>
20977
20978         nanosleep: Fix C++ test error on mingw.
20979         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
20980         * lib/time.in.h (nanosleep): Use modern idiom.
20981         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
20982         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
20983         REPLACE_NANOSLEEP to 1.
20984         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
20985         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
20986
20987 2010-04-03  Bruno Haible  <bruno@clisp.org>
20988
20989         strptime: Fix C++ test error on mingw.
20990         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
20991         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
20992         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
20993         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
20994         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
20995         not REPLACE_STRPTIME.
20996         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
20997         REPLACE_STRPTIME.
20998
20999 2010-04-03  Bruno Haible  <bruno@clisp.org>
21000
21001         timegm: Fix C++ test error on mingw.
21002         * lib/time.in.h (timegm): Use modern idiom.
21003         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
21004         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
21005         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
21006         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
21007
21008 2010-04-03  Bruno Haible  <bruno@clisp.org>
21009
21010         timegm: Assume declaration if function exists.
21011         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
21012         if it exists. Don't clobber ac_cv_func_timegm.
21013
21014 2010-04-03  Bruno Haible  <bruno@clisp.org>
21015
21016         time_r: Fix C++ test error on mingw.
21017         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
21018         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
21019         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
21020         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
21021         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
21022
21023 2010-04-03  Bruno Haible  <bruno@clisp.org>
21024
21025         time_r: Minor updates.
21026         * modules/time_r (Description): Mention the provided functions.
21027         * lib/time_r.c: Don't include <string.h>.
21028         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
21029         * doc/posix-functions/localtime_r.texi: Likewise.
21030
21031 2010-04-03  Bruno Haible  <bruno@clisp.org>
21032
21033         time: Fix regression introduced on 2010-03-08.
21034         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
21035         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
21036
21037 2010-04-03  Jim Meyering  <meyering@redhat.com>
21038
21039         maint.mk: don't silently disable project-specific syntax-check rules
21040         * top/maint.mk (_prohibit_regexp): Define, to help people realize
21041         that they need to convert their project-specific syntax-check rules
21042         to use the new _sc_search_regexp.
21043
21044 2010-04-03  Bruno Haible  <bruno@clisp.org>
21045
21046         fchdir: Fix regression introduced on 2010-03-08.
21047         * lib/unistd.in.h (fchdir): Fix declaration.
21048         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
21049         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
21050         REPLACE_FCHDIR.
21051         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
21052         REPLACE_FCHDIR.
21053
21054 2010-04-03  Bruno Haible  <bruno@clisp.org>
21055
21056         getpagesize: Fix C++ test error on mingw.
21057         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
21058         system does not declare the function.
21059         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
21060         declared.
21061         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21062         HAVE_DECL_GETPAGESIZE.
21063         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
21064
21065 2010-04-03  Bruno Haible  <bruno@clisp.org>
21066
21067         stdio: Make C++ tests work on mingw.
21068         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
21069         does not declare the function.
21070
21071 2010-04-03  Bruno Haible  <bruno@clisp.org>
21072
21073         ftello: Fix C++ test error on mingw.
21074         * lib/stdio.in.h (ftello): Use modern idiom.
21075         * lib/ftello.c (ftello): Renamed from rpl_ftello.
21076         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
21077         is missing and that it needs to be replaced.
21078         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
21079         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
21080         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
21081
21082 2010-04-03  Bruno Haible  <bruno@clisp.org>
21083
21084         fseeko: Fix C++ test error on mingw.
21085         * lib/stdio.in.h (fseeko): Use modern idiom.
21086         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
21087         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
21088         is missing and that it needs to be replaced.
21089         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
21090         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
21091         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
21092
21093 2010-04-03  Bruno Haible  <bruno@clisp.org>
21094
21095         mkstemp: Fix C++ test error on mingw.
21096         * lib/stdlib.in.h (mkstemp): Use modern idiom.
21097         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
21098         function is missing and that it needs to be replaced.
21099         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
21100         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
21101
21102 2010-04-03  Bruno Haible  <bruno@clisp.org>
21103
21104         stpncpy: Fix C++ test error on mingw.
21105         * lib/string.in.h (stpncpy): Use modern idiom.
21106         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
21107         function is missing and that it needs to be replaced.
21108         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
21109         REPLACE_STPNCPY.
21110         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
21111
21112 2010-04-03  Bruno Haible  <bruno@clisp.org>
21113
21114         sys_stat: Fix C++ test error on mingw.
21115         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
21116         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
21117
21118 2010-04-03  Bruno Haible  <bruno@clisp.org>
21119
21120         pty: Update doc.
21121         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
21122
21123 2010-04-03  Bruno Haible  <bruno@clisp.org>
21124
21125         unistd: Fix C++ test error on mingw.
21126         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
21127
21128 2010-04-03  Bruno Haible  <bruno@clisp.org>
21129
21130         Update doc regarding mingw.
21131         * doc/glibc-functions/openpty.texi: Update regarding mingw.
21132         * doc/glibc-functions/login_tty.texi: Likewise.
21133         * doc/glibc-functions/forkpty.texi: Likewise.
21134
21135 2010-04-03  Bruno Haible  <bruno@clisp.org>
21136
21137         stdlib: Avoid compilation failure of c-strtold on mingw.
21138         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
21139
21140 2010-04-03  Bruno Haible  <bruno@clisp.org>
21141
21142         locale: Make C++ tests work on Cygwin and mingw.
21143         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
21144         cannot provide the function.
21145         Reported by Simon Josefsson.
21146
21147 2010-04-03  Bruno Haible  <bruno@clisp.org>
21148
21149         localename: Port to MacOS X 10.6.
21150         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
21151         memory layout of the locales in MacOS X 10.6 as well.
21152         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
21153
21154 2010-04-02  Bruno Haible  <bruno@clisp.org>
21155
21156         gnulib-tool: Ensure that long-running tests are executed last.
21157         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
21158         running tests after the one for the other tests.
21159
21160 2010-04-02  Bruno Haible  <bruno@clisp.org>
21161
21162         gnulib-tool: Ensure the tests in the main directory are executed first.
21163         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
21164         start with the current directory.
21165
21166 2010-04-02  Bruno Haible  <bruno@clisp.org>
21167
21168         Tests for module 'havelib', moved here from GNU gettext.
21169         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
21170         modifications.
21171         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
21172         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
21173         with modifications.
21174         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
21175         modifications.
21176         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
21177         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
21178         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
21179         with modifications.
21180         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
21181         with modifications.
21182         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
21183         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
21184         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
21185         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
21186         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
21187         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
21188         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
21189         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
21190         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
21191         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
21192         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
21193         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
21194         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
21195         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
21196         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
21197         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
21198         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
21199         with modifications.
21200         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
21201         with modifications.
21202         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
21203         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
21204         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
21205         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
21206         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
21207         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
21208         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
21209         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
21210         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
21211         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
21212         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
21213         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
21214         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
21215         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
21216         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
21217         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
21218         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
21219         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
21220         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
21221         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
21222         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
21223         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
21224         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
21225         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
21226         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
21227         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
21228         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
21229         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
21230         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
21231         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
21232         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
21233         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
21234         * tests/havelib/rpathx/rpathx.c: New file, from
21235         gettext/autoconf-lib-link.
21236         * tests/havelib/rpathx/Makefile.am: New file, from
21237         gettext/autoconf-lib-link.
21238         * tests/havelib/rpathx/configure.ac: New file, from
21239         gettext/autoconf-lib-link with modifications.
21240         * tests/havelib/rpathy/rpathy.c: New file, from
21241         gettext/autoconf-lib-link.
21242         * tests/havelib/rpathy/Makefile.am: New file, from
21243         gettext/autoconf-lib-link.
21244         * tests/havelib/rpathy/configure.ac: New file, from
21245         gettext/autoconf-lib-link with modifications.
21246         * tests/havelib/rpathz/rpathz.c: New file, from
21247         gettext/autoconf-lib-link.
21248         * tests/havelib/rpathz/Makefile.am: New file, from
21249         gettext/autoconf-lib-link.
21250         * tests/havelib/rpathz/configure.ac: New file, from
21251         gettext/autoconf-lib-link with modifications.
21252         * tests/havelib/rpathlx/usex.c: New file, from
21253         gettext/autoconf-lib-link.
21254         * tests/havelib/rpathlx/Makefile.am: New file, from
21255         gettext/autoconf-lib-link.
21256         * tests/havelib/rpathlx/configure.ac: New file, from
21257         gettext/autoconf-lib-link with modifications.
21258         * tests/havelib/rpathly/usey.c: New file, from
21259         gettext/autoconf-lib-link.
21260         * tests/havelib/rpathly/Makefile.am: New file, from
21261         gettext/autoconf-lib-link.
21262         * tests/havelib/rpathly/configure.ac: New file, from
21263         gettext/autoconf-lib-link with modifications.
21264         * tests/havelib/rpathlz/usez.c: New file, from
21265         gettext/autoconf-lib-link.
21266         * tests/havelib/rpathlz/Makefile.am: New file, from
21267         gettext/autoconf-lib-link.
21268         * tests/havelib/rpathlz/configure.ac: New file, from
21269         gettext/autoconf-lib-link with modifications.
21270         * tests/havelib/rpathlyx/usey.c: New file, from
21271         gettext/autoconf-lib-link.
21272         * tests/havelib/rpathlyx/Makefile.am: New file, from
21273         gettext/autoconf-lib-link.
21274         * tests/havelib/rpathlyx/configure.ac: New file, from
21275         gettext/autoconf-lib-link with modifications.
21276         * tests/havelib/rpathlzyx/usez.c: New file, from
21277         gettext/autoconf-lib-link.
21278         * tests/havelib/rpathlzyx/Makefile.am: New file, from
21279         gettext/autoconf-lib-link.
21280         * tests/havelib/rpathlzyx/configure.ac: New file, from
21281         gettext/autoconf-lib-link with modifications.
21282         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
21283         with modifications.
21284
21285 2010-04-02  Bruno Haible  <bruno@clisp.org>
21286
21287         gnulib-tool: Create distributed built sources also for the tests.
21288         * gnulib-tool (func_create_testdir): Also generate distributed built
21289         sources in the tests directory.
21290
21291 2010-04-02  Bruno Haible  <bruno@clisp.org>
21292
21293         gnulib-tool: Obey user's environment variables.
21294         * gnulib-tool (func_create_testdir): When creating built sources,
21295         respect the environment variables for autoconf, automake, etc. given by
21296         the user.
21297
21298 2010-04-02  Bruno Haible  <bruno@clisp.org>
21299
21300         gnulib-tool: Provide the value of --m4-base to modules.
21301         * gnulib-tool (func_import, func_create_testdir): Emit a definition
21302         of gl_m4_base.
21303
21304 2010-04-02  Eric Blake  <eblake@redhat.com>
21305
21306         maint.mk: fix some fallout
21307         * NEWS: Document the incompatible change, and its effect on cfg.mk.
21308         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
21309
21310 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
21311
21312         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
21313         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
21314         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
21315         (sc_cast_of_x_alloc_return_value): Likewise.
21316         (sc_cast_of_alloca_return_value): Likewise.
21317         (sc_space_tab): Likewise.
21318         (sc_prohibit_atoi_atof): Likewise.
21319         (sc_prohibit_magic_number_exit): Likewise.
21320         (sc_error_exit_success): Likewise.
21321         (sc_file_system): Likewise.
21322         (sc_prohibit_have_config_h): Likewise.
21323         (sc_require_config_h): Likewise.
21324         (sc_prohibit_HAVE_MBRTOWC): Likewise.
21325         (sc_obsolete_symbols): Likewise.
21326         (sc_changelog): Likewise.
21327         (sc_program_name): Likewise.
21328         (sc_the_the): Likewise.
21329         (sc_trailing_blank): Likewise.
21330         (sc_two_space_separator_in_usage): Likewise.
21331         (sc_useless_cpp_parens): Likewise.
21332         (sc_GPL_version): Likewise.
21333         (sc_GFDL_version): Likewise.
21334         (sc_texinfo_acronym): Likewise.
21335         (sc_prohibit_cvs_keyword): Likewise.
21336         (sc_prohibit_stat_st_blocks): Likewise.
21337         (sc_prohibit_S_IS_definition): Likewise.
21338         (sc_redundant_const): Likewise.
21339         (sc_makefile_TAB_only_indentation): Likewise.
21340         (sc_m4_quote_check): Likewise.
21341         (sc_makefile_path_separator_check): Likewise.
21342         (sc_copyright_check): Likewise.
21343         (sc_Wundef_boolean): Likewise.
21344         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
21345
21346         maint.mk: match 0 or more whitespace-before-function-call '('
21347         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
21348         that have zero or two-and-more spaces between the function name
21349         and the open parenthesis.
21350         (sc_error_message_warn_fatal): Likewise.
21351         (sc_error_message_uppercase): Likewise.
21352         (sc_error_message_period): Likewise.
21353
21354 2010-03-31  Eric Blake  <eblake@redhat.com>
21355
21356         maint.mk: check for [ as well as test
21357         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
21358         Based on a libvirt report by Matthias Bolte.
21359
21360         gnumakefile: don't squelch _version output
21361         * top/GNUmakefile (_version): Create one-shot dependency rather
21362         than using $(shell) when version must be regenerated.
21363         (_autoreconf): Run verbosely, by default.
21364
21365         sys_time: avoid compiler warnings
21366         * lib/sys_time.in.h (includes): Ensure gcc pragma is
21367         unconditional, fixing regression from 2010-03-29.
21368         Reported by Simon Josefsson.
21369
21370 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
21371
21372         maint.mk: s/_header_without_use/_sc_header_without_use/
21373         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
21374         (sc_prohibit_assert_without_use): Use the new name.
21375         (sc_prohibit_close_stream_without_use): Likewise.
21376         (sc_prohibit_getopt_without_use): Likewise.
21377         (sc_prohibit_quotearg_without_use): Likewise.
21378         (sc_prohibit_quote_without_use): Likewise.
21379         (sc_prohibit_long_options_without_use): Likewise.
21380         (sc_prohibit_inttostr_without_use): Likewise.
21381         (sc_prohibit_ignore_value_without_use): Likewise.
21382         (sc_prohibit_error_without_use): Likewise.
21383         (sc_prohibit_xalloc_without_use): Likewise.
21384         (sc_prohibit_hash_without_use): Likewise.
21385         (sc_prohibit_hash_pjw_without_use): Likewise.
21386         (sc_prohibit_safe_read_without_use): Likewise.
21387         (sc_prohibit_argmatch_without_use): Likewise.
21388         (sc_prohibit_canonicalize_without_use): Likewise.
21389         (sc_prohibit_root_dev_ino_without_use): Likewise.
21390         (sc_prohibit_openat_without_use): Likewise.
21391         (sc_prohibit_c_ctype_without_use): Likewise.
21392         (sc_prohibit_signal_without_use): Likewise.
21393         (sc_prohibit_intprops_without_use): Likewise.
21394
21395 2010-03-30  Eric Blake  <eblake@redhat.com>
21396
21397         maint: improve module indicators
21398         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
21399         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
21400         columns, and avoid extra macro expansion.
21401
21402         fdopendir: work around FreeBSD bug
21403         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
21404         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
21405         * modules/dirent (Makefile.am): Substitute it.
21406         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
21407         declaration.
21408         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
21409         fix.
21410         Reported by Christian Weisgerber <naddy@mips.inka.de>.
21411
21412 2010-03-29  Bruno Haible  <bruno@clisp.org>
21413
21414         Emit #pragma system_header after the inclusion guard, not before.
21415         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
21416         guard that spans the entire file, not before. This enables an
21417         optimization in GCC's preprocessor.
21418         * lib/ctype.in.h: Likewise.
21419         * lib/dirent.in.h: Likewise.
21420         * lib/errno.in.h: Likewise.
21421         * lib/float.in.h: Likewise.
21422         * lib/getopt.in.h: Likewise.
21423         * lib/iconv.in.h: Likewise.
21424         * lib/langinfo.in.h: Likewise.
21425         * lib/locale.in.h: Likewise.
21426         * lib/math.in.h: Likewise.
21427         * lib/netdb.in.h: Likewise.
21428         * lib/netinet_in.in.h: Likewise.
21429         * lib/pty.in.h: Likewise.
21430         * lib/sched.in.h: Likewise.
21431         * lib/se-selinux.in.h: Likewise.
21432         * lib/search.in.h: Likewise.
21433         * lib/spawn.in.h: Likewise.
21434         * lib/stdarg.in.h: Likewise.
21435         * lib/stdint.in.h: Likewise.
21436         * lib/string.in.h: Likewise.
21437         * lib/strings.in.h: Likewise.
21438         * lib/sys_file.in.h: Likewise.
21439         * lib/sys_ioctl.in.h: Likewise.
21440         * lib/sys_time.in.h: Likewise.
21441         * lib/sys_times.in.h: Likewise.
21442         * lib/sys_utsname.in.h: Likewise.
21443         * lib/sys_wait.in.h: Likewise.
21444         * lib/sysexits.in.h: Likewise.
21445         * lib/wctype.in.h: Likewise.
21446
21447 2010-03-28  James Youngman  <jay@gnu.org>
21448
21449         save-cwd: don't leak a file descriptor when the caller execs.
21450         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
21451         saved file descriptor.
21452         * modules/save-cwd (Depends-on): Depend on cloexec.
21453
21454 2010-03-29  Bruno Haible  <bruno@clisp.org>
21455
21456         Remove vestiges of fts-lgpl module.
21457         * lib/fts_.h: Assume GNULIB_FTS is 1.
21458         * lib/fts.c: Likewise.
21459         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
21460
21461 2010-03-28  Bruno Haible  <bruno@clisp.org>
21462
21463         Fix definition of tests witness macro.
21464         * gnulib-tool (func_import): Fix definition of witness macro.
21465
21466 2010-03-28  Bruno Haible  <bruno@clisp.org>
21467
21468         Fix ioctl's protoype on glibc systems.
21469         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
21470         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
21471         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
21472         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
21473         signature. If not, arrange to replace the ioctl function.
21474         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
21475         REPLACE_IOCTL.
21476         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
21477         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
21478         Reported by Ludovic Courtès <ludo@gnu.org>.
21479
21480 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
21481
21482         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
21483         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
21484         made it so grep -r --include=GLOB* ... did not work.
21485
21486 2010-03-26  Jim Meyering  <meyering@redhat.com>
21487             Eric Blake  <eblake@redhat.com>
21488
21489         maint.mk: prohibit use of test's -o and -a operators
21490         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
21491
21492 2010-03-28  Bruno Haible  <bruno@clisp.org>
21493
21494         Remove unused GNULIB_XYZ macro definitions.
21495         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
21496         invocation.
21497
21498 2010-03-28  Bruno Haible  <bruno@clisp.org>
21499
21500         Mark privileged tests modules.
21501         * modules/idpriv-drop-tests (Status): New section.
21502         * modules/idpriv-droptemp-tests (Status): New section.
21503
21504 2010-03-28  Bruno Haible  <bruno@clisp.org>
21505
21506         Split C++ tests into separate tests modules.
21507         * modules/dirent-c++-tests: New file, extracted from
21508         modules/dirent-tests.
21509         * modules/dirent-tests: Depend on it.
21510         * modules/fcntl-h-c++-tests: New file, extracted from
21511         modules/fcntl-h-tests.
21512         * modules/fcntl-h-tests: Depend on it.
21513         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
21514         * modules/glob-tests: Depend on it.
21515         * modules/iconv-h-c++-tests: New file, extracted from
21516         modules/iconv-h-tests.
21517         * modules/iconv-h-tests: Depend on it.
21518         * modules/langinfo-c++-tests: New file, extracted from
21519         modules/langinfo-tests.
21520         * modules/langinfo-tests: Depend on it.
21521         * modules/locale-c++-tests: New file, extracted from
21522         modules/locale-tests.
21523         * modules/locale-tests: Depend on it.
21524         * modules/math-c++-tests: New file, extracted from modules/math-tests.
21525         * modules/math-tests: Depend on it.
21526         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
21527         * modules/pty-tests: Depend on it.
21528         * modules/search-c++-tests: New file, extracted from
21529         modules/search-tests.
21530         * modules/search-tests: Depend on it.
21531         * modules/signal-c++-tests: New file, extracted from
21532         modules/signal-tests.
21533         * modules/signal-tests: Depend on it.
21534         * modules/spawn-c++-tests: New file, extracted from
21535         modules/spawn-tests.
21536         * modules/spawn-tests: Depend on it.
21537         * modules/stdio-c++-tests: New file, extracted from
21538         modules/stdio-tests.
21539         * modules/stdio-tests: Depend on it.
21540         * modules/stdlib-c++-tests: New file, extracted from
21541         modules/stdlib-tests.
21542         * modules/stdlib-tests: Depend on it.
21543         * modules/string-c++-tests: New file, extracted from
21544         modules/string-tests.
21545         * modules/string-tests: Depend on it.
21546         * modules/sys_ioctl-c++-tests: New file, extracted from
21547         modules/sys_ioctl-tests.
21548         * modules/sys_ioctl-tests: Depend on it.
21549         * modules/sys_select-c++-tests: New file, extracted from
21550         modules/sys_select-tests.
21551         * modules/sys_select-tests: Depend on it.
21552         * modules/sys_socket-c++-tests: New file, extracted from
21553         modules/sys_socket-tests.
21554         * modules/sys_socket-tests: Depend on it.
21555         * modules/sys_stat-c++-tests: New file, extracted from
21556         modules/sys_stat-tests.
21557         * modules/sys_stat-tests: Depend on it.
21558         * modules/sys_time-c++-tests: New file, extracted from
21559         modules/sys_time-tests.
21560         * modules/sys_time-tests: Depend on it.
21561         * modules/time-c++-tests: New file, extracted from modules/time-tests.
21562         * modules/time-tests: Depend on it.
21563         * modules/unistd-c++-tests: New file, extracted from
21564         modules/unistd-tests.
21565         * modules/unistd-tests: Depend on it.
21566         * modules/wchar-c++-tests: New file, extracted from
21567         modules/wchar-tests.
21568         * modules/wchar-tests: Depend on it.
21569         * modules/wctype-c++-tests: New file, extracted from
21570         modules/wctype-tests.
21571         * modules/wctype-tests: Depend on it.
21572         Reported by Simon Josefsson.
21573
21574 2010-03-28  Bruno Haible  <bruno@clisp.org>
21575
21576         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
21577         * gnulib-tool (func_exists_module): New function, extracted from
21578         func_verify_module.
21579         (func_verify_module): Use it.
21580         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
21581         'foo' only if 'foo' exists.
21582         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
21583         module.
21584
21585 2010-03-28  Bruno Haible  <bruno@clisp.org>
21586
21587         gnulib-tool: Add support for special categories of tests.
21588         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
21589         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
21590         (func_usage): Document them.
21591         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
21592         inc_unportable_tests, inc_all_tests): New variables.
21593         (func_acceptable): Consider these variables.
21594         (func_modules_transitive_closure): Make it work when the 'Status' field
21595         consists of multiple words.
21596         (func_import): Store and restore the values of inc_cxx_tests,
21597         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
21598         inc_all_tests in gnulib-comp.m4.
21599         (func_create_testdir): Set inc_all_tests to true.
21600         * doc/gnulib.texi (Extra tests modules): New section.
21601         Suggested by Jim Meyering.
21602
21603 2010-03-28  Bruno Haible  <bruno@clisp.org>
21604
21605         ansi-c++-opt: Allow turning off the C++ build by default.
21606         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
21607         gl_CXX_CHOICE_DEFAULT_NO is defined.
21608         Requested by Eric Blake.
21609
21610 2010-03-28  Bruno Haible  <bruno@clisp.org>
21611
21612         unistd: Avoid #define replacements in C++ mode.
21613         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
21614         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
21615         setsockopt, shutdown, select): In C++, attach a warning to the function
21616         if possible, rather than #defining the symbol to a dysfunctional alias.
21617         Reported by John W. Eaton <jwe@gnu.org>.
21618
21619 2010-03-28  Bruno Haible  <bruno@clisp.org>
21620
21621         Fix link errors on mingw.
21622         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
21623         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
21624         $(LIBSOCKET).
21625         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
21626         $(LIBSOCKET).
21627
21628 2010-03-28  Bruno Haible  <bruno@clisp.org>
21629             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21630
21631         lib-ignore: Determine different options for different compilers.
21632         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
21633         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
21634         Add comments.
21635         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
21636         * NEWS: Mention the change.
21637
21638 2010-03-27  Bruno Haible  <bruno@clisp.org>
21639
21640         Remove unused GNULIB_XYZ macro definitions.
21641         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
21642         * modules/fseek (configure.ac): Likewise.
21643         * modules/ioctl (configure.ac): Likewise.
21644         * modules/open (configure.ac): Likewise.
21645         * modules/stdlib-safer (configure.ac): Likewise.
21646
21647 2010-03-27  Bruno Haible  <bruno@clisp.org>
21648
21649         Add a remark about certain modules.
21650         * modules/malloc (Comment): New section.
21651         * modules/realloc (Comment): Likewise.
21652         * modules/sigpipe (Comment): Likewise.
21653
21654 2010-03-27  Bruno Haible  <bruno@clisp.org>
21655
21656         Resolve conflict between the two kinds of module indicators.
21657         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
21658         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
21659         * modules/canonicalize (configure.ac): Invoke
21660         gl_MODULE_INDICATOR_FOR_TESTS.
21661         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
21662         GNULIB_XYZ.
21663         * tests/test-dirent-c++.cc: Likewise.
21664         * tests/test-dirent-safer.c: Likewise.
21665         * tests/test-dup2.c: Likewise.
21666         * tests/test-fchdir.c: Likewise.
21667         * tests/test-fcntl-h-c++.cc: Likewise.
21668         * tests/test-getopt.c: Likewise.
21669         * tests/test-getopt.h: Likewise.
21670         * tests/test-langinfo-c++.cc: Likewise.
21671         * tests/test-locale-c++.cc: Likewise.
21672         * tests/test-math-c++.cc: Likewise.
21673         * tests/test-pty-c++.cc: Likewise.
21674         * tests/test-search-c++.cc: Likewise.
21675         * tests/test-signal-c++.cc: Likewise.
21676         * tests/test-spawn-c++.cc: Likewise.
21677         * tests/test-stdio-c++.cc: Likewise.
21678         * tests/test-stdlib-c++.cc: Likewise.
21679         * tests/test-string-c++.cc: Likewise.
21680         * tests/test-sys_ioctl-c++.cc: Likewise.
21681         * tests/test-sys_select-c++.cc: Likewise.
21682         * tests/test-sys_socket-c++.cc: Likewise.
21683         * tests/test-sys_stat-c++.cc: Likewise.
21684         * tests/test-sys_time-c++.cc: Likewise.
21685         * tests/test-time-c++.cc: Likewise.
21686         * tests/test-unistd-c++.cc: Likewise.
21687         * tests/test-wchar-c++.cc: Likewise.
21688         * tests/uninorm/test-u8-nfc.c: Likewise.
21689         * tests/uninorm/test-u8-nfd.c: Likewise.
21690         * tests/uninorm/test-u8-nfkc.c: Likewise.
21691         * tests/uninorm/test-u8-nfkd.c: Likewise.
21692         * tests/uninorm/test-u16-nfc.c: Likewise.
21693         * tests/uninorm/test-u16-nfd.c: Likewise.
21694         * tests/uninorm/test-u16-nfkc.c: Likewise.
21695         * tests/uninorm/test-u16-nfkd.c: Likewise.
21696         * tests/uninorm/test-u32-nfc.c: Likewise.
21697         * tests/uninorm/test-u32-nfc-big.c: Likewise.
21698         * tests/uninorm/test-u32-nfd.c: Likewise.
21699         * tests/uninorm/test-u32-nfd-big.c: Likewise.
21700         * tests/uninorm/test-u32-nfkc.c: Likewise.
21701         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
21702         * tests/uninorm/test-u32-nfkd.c: Likewise.
21703         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
21704         * tests/uninorm/test-u32-normalize-big.c: Likewise.
21705
21706 2010-03-27  Bruno Haible  <bruno@clisp.org>
21707
21708         Distinguish two kinds of module indicators.
21709         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
21710         gl_MODULE_INDICATOR.
21711         (gl_MODULE_INDICATOR): New macro.
21712         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
21713         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
21714         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
21715         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
21716         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
21717         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
21718         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
21719         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
21720         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
21721         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
21722         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
21723         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
21724         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
21725         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
21726         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
21727         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
21728         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
21729         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
21730         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
21731         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
21732         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
21733         * modules/cloexec (configure.ac): Likewise.
21734         * modules/getopt-gnu (configure.ac): Likewise.
21735         * modules/uninorm/u8-normalize (configure.ac): Likewise.
21736         * modules/uninorm/u16-normalize (configure.ac): Likewise.
21737         * modules/uninorm/u32-normalize (configure.ac): Likewise.
21738         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
21739
21740 2010-03-27  Bruno Haible  <bruno@clisp.org>
21741
21742         New module description field 'Comment'.
21743         * gnulib-tool: New option --extract-comment.
21744         (func_usage): Document it.
21745         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
21746         (func_get_comment): New function.
21747         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
21748
21749 2010-03-27  Bruno Haible  <bruno@clisp.org>
21750
21751         Addendum to 2010-02-07 commit.
21752         * gnulib-tool (func_usage): Document --extract-applicability option.
21753
21754 2010-03-27  Bruno Haible  <bruno@clisp.org>
21755
21756         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
21757         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
21758         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
21759         rather than link errors.
21760
21761 2010-03-27  Bruno Haible  <bruno@clisp.org>
21762
21763         Avoid side effects from tests-related modules on the compilation of lib.
21764         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
21765         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
21766         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
21767         parameter. Emit into AM_CPPFLAGS a definition of the designated C
21768         macro.
21769         (func_import): Define a witness macro. Assign it a value that depends
21770         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
21771         tests-related modules.
21772         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
21773         Reported by Jim Meyering.
21774
21775 2010-03-27  Bruno Haible  <bruno@clisp.org>
21776
21777         Factorize common .m4 code.
21778         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
21779         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
21780         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
21781         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
21782         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
21783         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
21784         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
21785         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
21786         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
21787         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
21788         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
21789         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
21790         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
21791         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
21792         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
21793         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
21794         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
21795         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
21796         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
21797         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
21798         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
21799         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
21800         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
21801         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
21802         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
21803         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
21804         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
21805         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
21806         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
21807         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
21808         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
21809         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
21810
21811 2010-03-27  Bruno Haible  <bruno@clisp.org>
21812
21813         Fix a compilation error on Cygwin with g++ >= 4.3.
21814         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
21815         if it is undefined or if we alias it to chmod.
21816         (lstat): Don't warn about the use of this function if it is undefined
21817         or if we alias it to stat.
21818         Reported by Simon Josefsson.
21819
21820 2010-03-27  Bruno Haible  <bruno@clisp.org>
21821
21822         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
21823         * modules/getlogin (configure.ac): Update.
21824
21825         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
21826         * modules/getlogin_r (configure.ac): Update.
21827
21828         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
21829         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
21830         * modules/inet_ntop (configure.ac): Update.
21831
21832         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
21833         * modules/inet_pton (configure.ac): Update.
21834
21835         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
21836         * modules/mbslen (configure.ac): Update.
21837
21838         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
21839         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
21840         * modules/forkpty (configure.ac): Update.
21841         * modules/openpty (configure.ac): Update.
21842
21843 2010-03-26  Simon Josefsson  <simon@josefsson.org>
21844
21845         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
21846         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
21847
21848 2010-03-25  Eric Blake  <eblake@redhat.com>
21849
21850         maint: use pragma consistently across replacement headers
21851         * lib/ctype.in.h (system_header): Hoist for consistent placement.
21852         * lib/dirent.in.h (system_header): Likewise.
21853         * lib/errno.in.h (system_header): Likewise.
21854         * lib/float.in.h (system_header): Likewise.
21855         * lib/getopt.in.h (system_header): Likewise.
21856         * lib/iconv.in.h (system_header): Likewise.
21857         * lib/inttypes.in.h (system_header): Likewise.
21858         * lib/langinfo.in.h (system_header): Likewise.
21859         * lib/locale.in.h (system_header): Likewise.
21860         * lib/math.in.h (system_header): Likewise.
21861         * lib/netdb.in.h (system_header): Likewise.
21862         * lib/netinet_in.in.h (system_header): Likewise.
21863         * lib/pty.in.h (system_header): Likewise.
21864         * lib/sched.in.h (system_header): Likewise.
21865         * lib/se-selinux.in.h (system_header): Likewise.
21866         * lib/search.in.h (system_header): Likewise.
21867         * lib/spawn.in.h (system_header): Likewise.
21868         * lib/stdarg.in.h (system_header): Likewise.
21869         * lib/stdint.in.h (system_header): Likewise.
21870         * lib/string.in.h (system_header): Likewise.
21871         * lib/strings.in.h (system_header): Likewise.
21872         * lib/sys_file.in.h (system_header): Likewise.
21873         * lib/sys_ioctl.in.h (system_header): Likewise.
21874         * lib/sys_socket.in.h (system_header): Likewise.
21875         * lib/sys_times.in.h (system_header): Likewise.
21876         * lib/sys_utsname.in.h (system_header): Likewise.
21877         * lib/sys_wait.in.h (system_header): Likewise.
21878         * lib/sysexits.in.h (system_header): Likewise.
21879         * lib/unistd.in.h (system_header): Likewise.
21880         * lib/wctype.in.h (system_header): Likewise.
21881
21882         arpa/inet: fix mingw compilation warning
21883         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
21884         Reported by Matthew Bolte.
21885
21886 2010-03-25  Bruno Haible  <bruno@clisp.org>
21887
21888         Avoid collision between gnulib wrapper and libintl wrapper.
21889         * lib/printf.c (printf): Don't define if a printf wrapper is already
21890         defined in intl/printf.c.
21891         Reported by Michel Boaventura <michel@michelboaventura.com>.
21892
21893 2010-03-25  Bruno Haible  <bruno@clisp.org>
21894
21895         Use ANSI C.
21896         * lib/readutmp.h (getutent): Provide ANSI C prototype.
21897
21898 2010-03-25  Bruno Haible  <bruno@clisp.org>
21899
21900         Minor formatting changes.
21901         * lib/acosl.c: Insert space before function argument list.
21902         * lib/argz.c: Likewise.
21903         * lib/asinl.c: Likewise.
21904         * lib/expl.c: Likewise.
21905         * lib/gen-uni-tables.c: Likewise.
21906         * lib/gettext.h: Likewise.
21907         * lib/glthread/lock.h: Likewise.
21908         * lib/tanl.c: Likewise.
21909         * lib/uniname/uniname.c: Likewise.
21910         * tests/test-idpriv-drop.c: Likewise.
21911         * tests/test-idpriv-droptemp.c: Likewise.
21912         * tests/test-lock.c: Likewise.
21913         * tests/test-tls.c: Likewise.
21914         * lib/argp-help.c: Insert space before function-like macro argument
21915         list.
21916         * lib/memcmp.c: Likewise.
21917         * tests/test-base64.c: Likewise.
21918         * lib/localename.c: Insert space before sizeof's argument list.
21919         * lib/safe-alloc.h: Likewise.
21920         * lib/file-set.h: Insert space before macro argument list.
21921         * tests/test-argp.c: Likewise.
21922         * lib/argp-namefrob.h: Insert space before function parameter list.
21923         * lib/getaddrinfo.c: Likewise.
21924         * lib/netdb.in.h: Likewise.
21925         * lib/parse-duration.h: Likewise.
21926         * lib/parse-duration.c: Likewise.
21927         * lib/poll.c: Likewise.
21928         * lib/select.c: Likewise.
21929         * lib/trim.h: Likewise.
21930         * tests/test-usleep.c: Likewise.
21931         * lib/ldexpl.c: Insert space before function parameter list and before
21932         function argument list.
21933         * lib/logl.c: Likewise.
21934         * lib/sqrtl.c: Likewise.
21935         * lib/trim.c: Likewise.
21936         * lib/cosl.c: Use GNU style indentation. Insert space before function
21937         argument list.
21938         * lib/sinl.c: Likewise.
21939         * lib/tsearch.c: Insert space after 'for'.
21940         Reported by Jim Meyering.
21941
21942 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
21943
21944         * maint.mk (sc_Wundef_boolean): Check for the presence of the
21945         config header before grepping, as it's not present before
21946         autoreconf/configure are run.  Reported by Simon Josefsson.
21947
21948 2010-03-23  Bruno Haible  <bruno@clisp.org>
21949
21950         pt_chown: Make it work with automake < 1.11.
21951         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
21952         Reported by Simon Josefsson.
21953
21954 2010-03-23  Bruno Haible  <bruno@clisp.org>
21955
21956         pt_chown: Don't depend on GPLed modules.
21957         * lib/pt_chown.c: Don't include idpriv.h.
21958         (main): Don't drop privileges.
21959         * modules/pt_chown (Depends-on): Remove idpriv-drop.
21960         Reported by Simon Josefsson.
21961
21962 2010-03-24  Simon Josefsson  <simon@josefsson.org>
21963
21964         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
21965         suggestions from karl@freefriends.org (Karl Berry).
21966
21967 2010-03-22  Eric Blake  <eblake@redhat.com>
21968
21969         gethostname: further tweaks
21970         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
21971         are overriding gethostname.
21972         Suggested by Bruno Haible.
21973
21974 2010-03-21  Bruno Haible  <bruno@clisp.org>
21975
21976         Fix comments.
21977         * lib/forkpty.c (rpl_forkpty): Fix comment.
21978         * lib/openpty.c (rpl_openpty): Likewise.
21979         Reported by Eric Blake.
21980
21981 2010-03-22  Eric Blake  <eblake@redhat.com>
21982
21983         gethostname: fix build on mingw
21984         * lib/unistd.in.h (includes): Work around fact that mingw
21985         <winsock2.h> re-includes <unistd.h>, by avoiding any
21986         redeclarations if we are being included by <winsock2.h>.
21987         Reported by Matthias Bolte.
21988
21989 2010-03-21  Bruno Haible  <bruno@clisp.org>
21990
21991         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
21992         * lib/forkpty.c (forkpty): New replacement function, from glibc with
21993         modifications.
21994         * lib/pty.in.h (forkpty): Update declaration. Add comments.
21995         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
21996         provide the replacement.
21997         * modules/forkpty (Depends-on): Add openpty, login_tty.
21998         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
21999         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
22000         * doc/glibc-functions/forkpty.texi: More supported platforms.
22001         * config/srclist.txt: Add forkpty.c (commented).
22002
22003 2010-03-21  Bruno Haible  <bruno@clisp.org>
22004
22005         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
22006         (Makefile.am): Verify that PTY_LIB is defined.
22007
22008         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
22009
22010 2010-03-21  Bruno Haible  <bruno@clisp.org>
22011
22012         Tests for module 'login_tty'.
22013         * modules/login_tty-tests: New file.
22014         * tests/test-login_tty.c: New file.
22015
22016         New module 'login_tty'.
22017         * lib/login_tty.c: New file.
22018         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
22019         * modules/login_tty: New file.
22020         * doc/glibc-functions/login_tty.texi: Mention the new module.
22021
22022 2010-03-21  Bruno Haible  <bruno@clisp.org>
22023
22024         login_tty: Documentation.
22025         * doc/glibc-functions/login_tty.texi: New file.
22026         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
22027
22028 2010-03-21  Bruno Haible  <bruno@clisp.org>
22029
22030         pty: Consistent macro naming.
22031         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
22032         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
22033         * modules/pty (configure.ac): Update.
22034
22035 2010-03-21  Bruno Haible  <bruno@clisp.org>
22036
22037         Tests for openpty: Make stricter.
22038         * tests/test-openpty.c (main): Add test of canonical processing and
22039         erase.
22040         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
22041
22042         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
22043         * lib/openpty.c (openpty): New replacement function.
22044         * lib/pty.in.h: Include <termios.h>.
22045         (openpty): Update declaration. Add comments.
22046         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
22047         is not declared, arrange to provide the replacement. Check for _getpty
22048         and posix_openpt.
22049         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
22050         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
22051         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
22052         * modules/pty-tests (test_pty_c___LDADD): New variable.
22053         * doc/glibc-functions/openpty.texi: More supported platforms.
22054
22055 2010-03-21  Bruno Haible  <bruno@clisp.org>
22056
22057         setenv: Tweaks.
22058         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
22059         the test program.
22060         * doc/posix-functions/setenv.texi: Update platforms list.
22061
22062 2010-03-21  Bruno Haible  <bruno@clisp.org>
22063
22064         New module 'unlockpt'.
22065         * lib/unlockpt.c: New file, from glibc with modifications.
22066         * m4/unlockpt.m4: New file.
22067         * modules/unlockpt: New file.
22068         * lib/stdlib.in.h (unlockpt): New declaration.
22069         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
22070         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
22071         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
22072         HAVE_UNLOCKPT.
22073         * doc/posix-functions/unlockpt.texi: Mention the new module.
22074         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
22075         * config/srclist.txt: Add unlockpt.c (commented).
22076
22077 2010-03-21  Jim Meyering  <meyering@redhat.com>
22078
22079         maint.mk: prohibit inclusion of "intprops.h" without use
22080         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
22081
22082 2010-03-21  Bruno Haible  <bruno@clisp.org>
22083
22084         New module 'grantpt'.
22085         * lib/grantpt.c: New file, from glibc with modifications.
22086         * m4/grantpt.m4: New file.
22087         * modules/grantpt: New file.
22088         * lib/stdlib.in.h (grantpt): New declaration.
22089         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
22090         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
22091         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
22092         HAVE_GRANTPT.
22093         * doc/posix-functions/grantpt.texi: Mention the new module.
22094         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
22095         * config/srclist.txt: Add grantpt.c (commented).
22096
22097 2010-03-21  Bruno Haible  <bruno@clisp.org>
22098
22099         New module 'pt_chown'.
22100         * lib/pt_chown.c: New file, from glibc with modifications.
22101         * lib/pty-private.h: New file, from glibc with modifications.
22102         * modules/pt_chown: New file.
22103         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
22104
22105 2010-03-21  Bruno Haible  <bruno@clisp.org>
22106
22107         Tests for module 'ptsname'.
22108         * modules/ptsname-tests: New file.
22109         * tests/test-ptsname.c: New file.
22110
22111         New module 'ptsname'.
22112         * lib/ptsname.c: New file, from glibc with modifications.
22113         * m4/ptsname.m4: New file.
22114         * modules/ptsname: New file.
22115         * lib/stdlib.in.h (ptsname): New declaration.
22116         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
22117         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
22118         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
22119         HAVE_PTSNAME.
22120         * doc/posix-functions/ptsname.texi: Mention the new module.
22121         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
22122         * config/srclist.txt: Add ptsname.c (commented).
22123
22124 2010-03-21  Bruno Haible  <bruno@clisp.org>
22125
22126         Tests for module 'ttyname_r'.
22127         * modules/ttyname_r-tests: New file.
22128         * tests/test-ttyname_r.c: New file.
22129
22130         New module 'ttyname_r'.
22131         * lib/ttyname_r.c: New file.
22132         * m4/ttyname_r.m4: New file.
22133         * modules/ttyname_r: New file.
22134         * lib/unistd.in.h (ttyname_r): New declaration.
22135         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
22136         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
22137         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
22138         HAVE_TTYNAME_R.
22139         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
22140         * doc/posix-functions/ttyname_r.texi: Mention the new module.
22141
22142 2010-03-20  Bruno Haible  <bruno@clisp.org>
22143
22144         signal: Undefine macro definitions in C++ mode.
22145         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
22146         sigfillset): Undefine macro definitions from the system header in C++
22147         mode.
22148         Reported by John W. Eaton <jwe@gnu.org>.
22149
22150 2010-03-20  Bruno Haible  <bruno@clisp.org>
22151
22152         Ensure no #include statements inside extern "C" { ... }.
22153         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
22154         contain #include statements.
22155         * lib/time.in.h: Likewise.
22156
22157 2010-03-20  Bruno Haible  <bruno@clisp.org>
22158
22159         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
22160         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
22161         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
22162         Reported by John W. Eaton <jwe@gnu.org>.
22163
22164 2010-03-20  Bruno Haible  <bruno@clisp.org>
22165
22166         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
22167         Reported by Jim Meyering.
22168
22169 2010-03-20  Bruno Haible  <bruno@clisp.org>
22170
22171         pipe: Set errno upon failure.
22172         * lib/pipe.h: Specify that when -1 is returned, errno is set.
22173         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
22174         errno value in error message.
22175
22176 2010-03-20  Bruno Haible  <bruno@clisp.org>
22177             Jim Meyering  <meyering@redhat.com>
22178
22179         lchown: Avoid "unused variable" warning.
22180         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
22181
22182 2010-03-20  Bruno Haible  <bruno@clisp.org>
22183
22184         Work around unlink() bug on MacOS X 10.5.6.
22185         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
22186         attempting to unlink a parent directory.
22187         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
22188         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
22189         activate for the replacement function.
22190         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
22191
22192 2010-03-20  Bruno Haible  <bruno@clisp.org>
22193
22194         Fix link errors on Solaris 8.
22195         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
22196         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
22197
22198 2010-03-19  Jim Meyering  <meyering@redhat.com>
22199
22200         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
22201         The _LIBC implementation of build_range_exp correctly honors the
22202         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
22203         However, the non-_LIBC implementation would ignore that syntax-bit
22204         flag and return REG_ERANGE unconditionally.
22205         This change makes it honor that flag.
22206         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
22207         Make two pointer parameters "const".
22208         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
22209         (parse_bracket_exp): Update caller.
22210
22211         regex.m4: correct the reversed range endpoint ([b-a]) test
22212         * m4/regex.m4: When requiring that [b-a] evoke failure,
22213         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
22214         test pass once again for x86-based systems.
22215
22216 2010-03-19  Bruno Haible  <bruno@clisp.org>
22217
22218         scandir: Fix link error on Solaris 8.
22219         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
22220         macros.
22221
22222 2010-03-19  Bruno Haible  <bruno@clisp.org>
22223
22224         getusershell: Fix documentation.
22225         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
22226         module.
22227         * doc/glibc-functions/setusershell.texi: Likewise.
22228
22229         getusershell: Provide declaration, missing on Solaris 9.
22230         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
22231         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
22232         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
22233         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
22234         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22235         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
22236         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
22237         HAVE_GETUSERSHELL.
22238         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
22239
22240 2010-03-19  Bruno Haible  <bruno@clisp.org>
22241
22242         wctype: Provide iswblank function.
22243         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
22244         exists and is fine.
22245         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
22246         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
22247         * tests/test-wctype.c (main): Re-enable the iswblank tests.
22248         * doc/posix-functions/iswblank.texi: Update.
22249
22250 2010-03-19  Bruno Haible  <bruno@clisp.org>
22251
22252         Tests of module 'pty' in C++ mode.
22253         * modules/pty-tests: New file.
22254         * tests/test-pty-c++.cc: New file.
22255         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
22256
22257 2010-03-19  Eric Blake  <eblake@redhat.com>
22258
22259         logb: fix documentation
22260         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
22261         1.5 declaration bug.
22262
22263         forkpty, openpty: prefer glibc's const-safe prototype
22264         * lib/forkpty.c (rpl_forkpty): New file.
22265         * lib/openpty.c (rpl_openpty): Likewise.
22266         * modules/forkpty (Files): Distribute it.
22267         * modules/openpty (Files): Likewise.
22268         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
22269         check...
22270         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
22271         replacement for for non-const BSD signature.
22272         * modules/pty (Makefile.am): Substitute witnesses.
22273         * lib/pty.in.h (forkpty, openpty): Declare replacements.
22274         * tests/test-forkpty.c: Update signature check.
22275         * tests/test-openpty.c: Likewise.
22276         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
22277         * doc/glibc-functions/openpty.texi (openpty): Likewise.
22278
22279         forkpty, openpty: split functions into new modules
22280         * modules/pty (Makefile.am): Substitute new witnesses.
22281         (Libraries): Move library detection...
22282         * modules/forkpty: ...into new module.
22283         * modules/openpty: Another new module.
22284         * modules/pty-tests: Rename and split...
22285         * modules/forkpty-tests: ...to this...
22286         * modules/openpty-tests: ...and this.
22287         * tests/test-pty.c: Rename and split...
22288         * tests/test-forkpty.c: ...to this...
22289         * tests/test-openpty.c: ...and this.
22290         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
22291         (gl_PTY): Split library searching...
22292         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
22293         (gl_FORKPTY, gl_OPENPTY): New macros.
22294         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
22295         * NEWS: Mention the split.
22296         * MODULES.html.sh (Misc): Document the modules.
22297         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
22298         * doc/glibc-functions/openpty.texi (openpty): Likewise.
22299
22300         pty: improve replacement header
22301         * lib/pty.in.h: New file.
22302         * modules/pty (Files): Ship it.
22303         (Makefile.am): Always build replacement.
22304         * m4/pty.m4: Rename...
22305         * m4/pty_h.m4: ...to this.
22306         (gl_PTY): Modernize setting of witness macros; update check of
22307         forkpty to take proper advantage of cache.
22308         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
22309
22310         getopt: avoid compiler warning
22311         * lib/getopt.c (attribute_hidden): Remove unused macro.
22312
22313 2010-03-18  Bruno Haible  <bruno@clisp.org>
22314
22315         Fix link errors on Solaris 8.
22316         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
22317         * modules/search-tests (test_search_c___LDADD): Likewise.
22318         * modules/signal-tests (test_signal_c___LDADD): Likewise.
22319         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
22320         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
22321         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
22322         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
22323         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
22324         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
22325
22326 2010-03-18  Bruno Haible  <bruno@clisp.org>
22327
22328         Fix bug introduced on 2010-03-14.
22329         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
22330         (gl_SPAWN_H): Require it.
22331         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
22332         Reported by Simon Josefsson.
22333
22334 2010-03-18  Bruno Haible  <bruno@clisp.org>
22335
22336         Fix typo introduced on 2009-12-31.
22337         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
22338         posix_spawn_file_actions_adddup2.
22339
22340 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
22341         and Eric Blake  <eblake@redhat.com>
22342
22343         test-vc-list-files-git: make more robust
22344         * tests/test-vc-list-files-git.sh: Unset problematic environment
22345         variables.  Chain commands together.
22346
22347 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
22348
22349         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
22350         `AC_CHECK_DECL' invocation.
22351
22352 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
22353
22354         * lib/inttostr.c (inttostr): Make sure the invocation of verify
22355         appears before executable statements. Suggested by Petr Sumbera
22356         <Petr.Sumbera@Sun.COM>.
22357
22358 2010-03-14  Bruno Haible  <bruno@clisp.org>
22359
22360         * tests/test-flock.c (test_exclusive): Comment out a test that causes
22361         portability problems. Instead use a simpler test.
22362         (main): Check that invalid arguments are rejected only on Linux.
22363
22364 2010-03-14  Bruno Haible  <bruno@clisp.org>
22365
22366         Fix bug introduced on 2009-12-31.
22367         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
22368         gl_PREREQ_SYS_H_WINSOCK2 always.
22369         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
22370         SYS_SOCKET_H variable.
22371         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
22372         Update comments.
22373         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
22374         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
22375         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
22376         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
22377         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
22378
22379 2010-03-14  Bruno Haible  <bruno@clisp.org>
22380
22381         Fix values returned by sinl, cosl.
22382         * lib/trigl.h: Add specification comments.
22383         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
22384         that combines the values from the precomputed table with the values of
22385         the Chebyshev polynomials.
22386
22387 2010-03-14  Bruno Haible  <bruno@clisp.org>
22388
22389         Fix compilation error when modules 'posix_spawn[p]' are not used.
22390         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
22391         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
22392
22393 2010-03-14  Bruno Haible  <bruno@clisp.org>
22394
22395         Fix compilation error on mingw when module 'time_r' is not used.
22396         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
22397         is 1.
22398         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
22399         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
22400         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
22401         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
22402
22403 2010-03-14  Bruno Haible  <bruno@clisp.org>
22404
22405         Fix compilation error with Sun C.
22406         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
22407         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
22408         instead of GCC specific ULONG_LONG_MAX.
22409         * lib/xstrtoll.c: Likewise.
22410         * lib/xstrtoull.c: Likewise.
22411
22412 2010-03-13  Bruno Haible  <bruno@clisp.org>
22413
22414         Allow the user to disable C++ code and tests.
22415         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
22416         (gl_PROG_ANSI_CXX): Require it.
22417
22418 2010-03-13  Bruno Haible  <bruno@clisp.org>
22419
22420         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
22421         cases.
22422
22423 2010-03-13  Bruno Haible  <bruno@clisp.org>
22424
22425         Test that gnulib does not break the standard C++ headers.
22426         * tests/test-locale-c++2.cc: New file.
22427         * modules/locale-tests (Files): Add it.
22428         (Makefile.am): Compile it for test-locale-c++.
22429         * tests/test-math-c++2.cc: New file.
22430         * modules/math-tests (Files): Add it.
22431         (Makefile.am): Compile it for test-math-c++.
22432         * tests/test-signal-c++2.cc: New file.
22433         * modules/signal-tests (Files): Add it.
22434         (Makefile.am): Compile it for test-signal-c++.
22435         * tests/test-stdio-c++2.cc: New file.
22436         * modules/stdio-tests (Files): Add it.
22437         (Makefile.am): Compile it for test-stdio-c++.
22438         * tests/test-stdlib-c++2.cc: New file.
22439         * modules/stdlib-tests (Files): Add it.
22440         (Makefile.am): Compile it for test-stdlib-c++.
22441         * tests/test-string-c++2.cc: New file.
22442         * modules/string-tests (Files): Add it.
22443         (Makefile.am): Compile it for test-string-c++.
22444         * tests/test-time-c++2.cc: New file.
22445         * modules/time-tests (Files): Add it.
22446         (Makefile.am): Compile it for test-time-c++.
22447         Reported by John W. Eaton <jwe@gnu.org>.
22448
22449 2010-03-13  Bruno Haible  <bruno@clisp.org>
22450
22451         * gnulib-tool (func_usage): Clarify which options are available for
22452         --create-testdir and --create-megatestdir.
22453
22454 2010-03-13  Bruno Haible  <bruno@clisp.org>
22455
22456         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
22457         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
22458         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
22459         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
22460         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
22461         when appropriate.
22462         Reported by Jim Meyering.
22463
22464 2010-03-12  Simon Josefsson  <simon@josefsson.org>
22465
22466         * gnulib-tool (func_import): Explain origin of code.
22467
22468 2010-03-12  Bruno Haible  <bruno@clisp.org>
22469
22470         Fix problem with automake's definition of CXXLINK.
22471         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
22472         Reported by Simon Josefsson and Ludovic Courtès.
22473
22474 2010-03-12  Bruno Haible  <bruno@clisp.org>
22475
22476         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
22477         stable releases.
22478
22479 2010-03-11  Bruno Haible  <bruno@clisp.org>
22480
22481         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
22482         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
22483         whether the system provides one variant or multiple variants of the
22484         function.
22485         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
22486         C++ compilers.
22487         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
22488         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
22489         Reported by Jim Meyering.
22490
22491 2010-03-09  Simon Josefsson  <simon@josefsson.org>
22492
22493         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
22494
22495 2010-03-08  Bruno Haible  <bruno@clisp.org>
22496
22497         gnulib-tool: Add support for --libtool in --create-testdir.
22498         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
22499         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
22500
22501 2010-03-08  Eric Blake  <eblake@redhat.com>
22502
22503         gnulib-tool.texi: mention possibility of git submodule
22504         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
22505         submodules.
22506         * doc/.gitignore: Ignore another generated file.
22507
22508 2010-03-08  Karl Berry  <karl@gnu.org>
22509
22510         * doc/gnulib-tool.texi (VCS Issues): Mention third option
22511         of committing gnulib files while skipping others.
22512
22513 2010-03-07  Bruno Haible  <bruno@clisp.org>
22514
22515         Tests of module 'wctype' in C++ mode.
22516         * tests/test-wctype-c++.cc: New file.
22517         * modules/wctype-tests (Files): Add it and tests/signature.h.
22518         (Depends-on): Add ansi-c++-opt.
22519         (Makefile.am): Arrange to compile and run test-wctype-c++.
22520
22521         Tests of module 'wchar' in C++ mode.
22522         * tests/test-wchar-c++.cc: New file.
22523         * modules/wchar-tests (Files): Add it and tests/signature.h.
22524         (Depends-on): Add ansi-c++-opt.
22525         (Makefile.am): Arrange to compile and run test-wchar-c++.
22526         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
22527         gl_MODULE_INDICATOR.
22528
22529         Tests of module 'unistd' in C++ mode.
22530         * tests/test-unistd-c++.cc: New file.
22531         * modules/unistd-tests (Files): Add it and tests/signature.h.
22532         (Depends-on): Add ansi-c++-opt.
22533         (Makefile.am): Arrange to compile and run test-unistd-c++.
22534         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
22535         gl_MODULE_INDICATOR.
22536
22537         Tests of module 'time' in C++ mode.
22538         * tests/test-time-c++.cc: New file.
22539         * modules/time-tests (Files): Add it and tests/signature.h.
22540         (Depends-on): Add ansi-c++-opt.
22541         (Makefile.am): Arrange to compile and run test-time-c++.
22542         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
22543
22544         Tests of module 'sys_time' in C++ mode.
22545         * tests/test-sys_time-c++.cc: New file.
22546         * modules/sys_time-tests (Files): Add it and tests/signature.h.
22547         (Depends-on): Add ansi-c++-opt.
22548         (Makefile.am): Arrange to compile and run test-sys_time-c++.
22549         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
22550         gl_MODULE_INDICATOR.
22551
22552         Tests of module 'sys_stat' in C++ mode.
22553         * tests/test-sys_stat-c++.cc: New file.
22554         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
22555         (Depends-on): Add ansi-c++-opt.
22556         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
22557         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
22558         gl_MODULE_INDICATOR.
22559
22560         Tests of module 'sys_socket' in C++ mode.
22561         * tests/test-sys_socket-c++.cc: New file.
22562         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
22563         (Depends-on): Add ansi-c++-opt.
22564         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
22565         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
22566         gl_MODULE_INDICATOR.
22567
22568         Tests of module 'sys_select' in C++ mode.
22569         * tests/test-sys_select-c++.cc: New file.
22570         * modules/sys_select-tests (Files): Add it and tests/signature.h.
22571         (Depends-on): Add ansi-c++-opt.
22572         (Makefile.am): Arrange to compile and run test-sys_select-c++.
22573         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
22574         gl_MODULE_INDICATOR.
22575
22576         Tests of module 'sys_ioctl' in C++ mode.
22577         * tests/test-sys_ioctl-c++.cc: New file.
22578         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
22579         (Depends-on): Add ansi-c++-opt.
22580         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
22581         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
22582         gl_MODULE_INDICATOR.
22583
22584         Tests of module 'string' in C++ mode.
22585         * tests/test-string-c++.cc: New file.
22586         * modules/string-tests (Files): Add it and tests/signature.h.
22587         (Depends-on): Add ansi-c++-opt.
22588         (Makefile.am): Arrange to compile and run test-string-c++.
22589         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
22590         gl_MODULE_INDICATOR.
22591
22592         Tests of module 'stdlib' in C++ mode.
22593         * tests/test-stdlib-c++.cc: New file.
22594         * modules/stdlib-tests (Files): Add it and tests/signature.h.
22595         (Depends-on): Add ansi-c++-opt.
22596         (Makefile.am): Arrange to compile and run test-stdlib-c++.
22597         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
22598         gl_MODULE_INDICATOR.
22599
22600         Tests of module 'stdio' in C++ mode.
22601         * tests/test-stdio-c++.cc: New file.
22602         * modules/stdio-tests (Files): Add it and tests/signature.h.
22603         (Depends-on): Add ansi-c++-opt.
22604         (Makefile.am): Arrange to compile and run test-stdio-c++.
22605         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
22606         gl_MODULE_INDICATOR.
22607
22608         Tests of module 'spawn' in C++ mode.
22609         * tests/test-spawn-c++.cc: New file.
22610         * modules/spawn-tests (Files): Add it and tests/signature.h.
22611         (Depends-on): Add ansi-c++-opt.
22612         (Makefile.am): Arrange to compile and run test-spawn-c++.
22613         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
22614         gl_MODULE_INDICATOR.
22615
22616         Tests of module 'signal' in C++ mode.
22617         * tests/test-signal-c++.cc: New file.
22618         * modules/signal-tests (Files): Add it and tests/signature.h.
22619         (Depends-on): Add ansi-c++-opt.
22620         (Makefile.am): Arrange to compile and run test-signal-c++.
22621         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
22622         gl_MODULE_INDICATOR.
22623
22624         Tests of module 'search' in C++ mode.
22625         * tests/test-search-c++.cc: New file.
22626         * modules/search-tests (Files): Add it and tests/signature.h.
22627         (Depends-on): Add ansi-c++-opt.
22628         (Makefile.am): Arrange to compile and run test-search-c++.
22629         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
22630         gl_MODULE_INDICATOR.
22631
22632         Tests of module 'math' in C++ mode.
22633         * tests/test-math-c++.cc: New file.
22634         * modules/math-tests (Files): Add it and tests/signature.h.
22635         (Depends-on): Add ansi-c++-opt.
22636         (Makefile.am): Arrange to compile and run test-math-c++.
22637         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
22638
22639         Tests of module 'locale' in C++ mode.
22640         * tests/test-locale-c++.cc: New file.
22641         * modules/locale-tests (Files): Add it and tests/signature.h.
22642         (Depends-on): Add ansi-c++-opt.
22643         (Makefile.am): Arrange to compile and run test-locale-c++.
22644         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
22645         gl_MODULE_INDICATOR.
22646
22647         Tests of module 'langinfo' in C++ mode.
22648         * tests/test-langinfo-c++.cc: New file.
22649         * modules/langinfo-tests (Files): Add it and tests/signature.h.
22650         (Depends-on): Add ansi-c++-opt.
22651         (Makefile.am): Arrange to compile and run test-langinfo-c++.
22652         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
22653         gl_MODULE_INDICATOR.
22654
22655         Tests of module 'iconv-h' in C++ mode.
22656         * tests/test-iconv-h-c++.cc: New file.
22657         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
22658         (Depends-on): Add ansi-c++-opt.
22659         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
22660
22661         Tests of module 'glob' in C++ mode.
22662         * tests/test-glob-c++.cc: New file.
22663         * modules/glob-tests (Files): Add it.
22664         (Depends-on): Add ansi-c++-opt.
22665         (Makefile.am): Arrange to compile and run test-glob-c++.
22666
22667         Tests of module 'fcntl-h' in C++ mode.
22668         * tests/test-fcntl-h-c++.cc: New file.
22669         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
22670         (Depends-on): Add ansi-c++-opt.
22671         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
22672         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
22673         gl_MODULE_INDICATOR.
22674
22675         Tests of module 'dirent' in C++ mode.
22676         * tests/test-dirent-c++.cc: New file.
22677         * modules/dirent-tests (Files): Add it and tests/signature.h.
22678         (Depends-on): Add ansi-c++-opt.
22679         (Makefile.am): Arrange to compile and run test-dirent-c++.
22680         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
22681         gl_MODULE_INDICATOR.
22682
22683         New module 'ansi-c++-opt'.
22684         * modules/ansi-c++-opt: New file.
22685         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
22686
22687         Document C++ namespace mode.
22688         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
22689
22690         wctype: Avoid #define replacements in C++ mode.
22691         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
22692         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
22693         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
22694         In C++, define a namespaced alias symbol.
22695         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
22696         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
22697         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
22698         rule.
22699
22700         wchar: Avoid #define replacements in C++ mode.
22701         * lib/wchar.in.h: Include c++defs.h.
22702         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
22703         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
22704         symbol.
22705         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
22706         * modules/wchar (Depends-on): Add c++defs.
22707         (Makefile.am): Update wchar.h rule.
22708
22709         unistd: Avoid #define replacements in C++ mode.
22710         * lib/unistd.in.h: Include c++defs.h.
22711         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
22712         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
22713         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
22714         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
22715         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
22716         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
22717         symbol.
22718         (environ): Update.
22719         * modules/unistd (Depends-on): Add c++defs.
22720         (Makefile.am): Update unistd.h rule.
22721
22722         time: Avoid #define replacements in C++ mode.
22723         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
22724         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
22725         define a namespaced alias symbol.
22726         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
22727         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
22728         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
22729         * modules/time (Depends-on): Add c++defs, warn-on-use.
22730         (Makefile.am): Update time.h rule.
22731         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
22732         * modules/nanosleep (configure.ac): Likewise.
22733         * modules/strptime (configure.ac): Likewise.
22734         * modules/timegm (configure.ac): Likewise.
22735
22736         sys_time: Avoid #define replacements in C++ mode.
22737         * lib/sys_time.in.h: Include c++defs.h.
22738         (gettimeofday): In C++, define a namespaced alias symbol.
22739         * modules/sys_time (Depends-on): Add c++defs.
22740         (Makefile.am): Update sys/time.h rule.
22741
22742         sys_stat: Avoid #define replacements in C++ mode.
22743         * lib/sys_stat.in.h: Include c++defs.h.
22744         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
22745         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
22746         namespaced alias symbol.
22747         In C++, define a namespaced alias symbol.
22748         * modules/sys_stat (Depends-on): Add c++defs.
22749         (Makefile.am): Update sys/stat.h rule.
22750
22751         sys_socket: Avoid #define replacements in C++ mode.
22752         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
22753         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
22754         definitions also when the system has a <sys/socket.h>.
22755         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
22756         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
22757         In C++, define a namespaced alias symbol.
22758         * modules/sys_socket (Depends-on): Add c++defs.
22759         (Makefile.am): Update sys/socket.h rule.
22760
22761         sys_select: Avoid #define replacements in C++ mode.
22762         * lib/sys_select.in.h: Include c++defs.h. Enable the function
22763         definitions also when the system has a <sys/select.h>.
22764         (select): In C++, define a namespaced alias symbol.
22765         * modules/sys_select (Depends-on): Add c++defs.
22766         (Makefile.am): Update sys/select.h rule.
22767
22768         sys_ioctl: Avoid #define replacements in C++ mode.
22769         * lib/sys_ioctl.in.h: Include c++defs.h.
22770         (ioctl): In C++, define a namespaced alias symbol.
22771         * modules/sys_ioctl (Depends-on): Add c++defs.
22772         (Makefile.am): Update sys/ioctl.h rule.
22773
22774         string: Avoid #define replacements in C++ mode.
22775         * lib/string.in.h: Include c++defs.h.
22776         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
22777         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
22778         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
22779         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
22780         strsignal, strverscmp): In C++, define a namespaced alias symbol.
22781         * modules/string (Depends-on): Add c++defs.
22782         (Makefile.am): Update string.h rule.
22783
22784         stdlib: Avoid #define replacements in C++ mode.
22785         * lib/stdlib.in.h: Include c++defs.h.
22786         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
22787         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
22788         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
22789         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
22790         symbol.
22791         * modules/stdlib (Depends-on): Add c++defs.
22792         (Makefile.am): Update stdlib.h rule.
22793
22794         stdio: Avoid #define replacements in C++ mode.
22795         * lib/stdio.in.h: Include c++defs.h.
22796         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
22797         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
22798         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
22799         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
22800         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
22801         namespaced alias symbol.
22802         * modules/stdio (Depends-on): Add c++defs.
22803         (Makefile.am): Update stdio.h rule.
22804
22805         spawn: Avoid #define replacements in C++ mode.
22806         * lib/spawn.in.h: Include c++defs.h.
22807         (posix_spawn, posix_spawnp, posix_spawnattr_init,
22808         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
22809         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
22810         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
22811         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
22812         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
22813         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
22814         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
22815         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
22816         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
22817         In C++, define a namespaced alias symbol.
22818         * modules/spawn (Depends-on): Add c++defs.
22819         (Makefile.am): Update spawn.h rule.
22820
22821         signal: Avoid #define replacements in C++ mode.
22822         * lib/signal.in.h: Include c++defs.h.
22823         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
22824         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
22825         namespaced alias symbol.
22826         * modules/signal (Depends-on): Add c++defs.
22827         (Makefile.am): Update signal.h rule.
22828
22829         search: Avoid #define replacements in C++ mode.
22830         * lib/search.in.h: Include c++defs.h.
22831         (_gl_search_compar_fn, _gl_search_action_fn): New types.
22832         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
22833         symbol.
22834         * modules/search (Depends-on): Add c++defs.
22835         (Makefile.am): Update search.h rule.
22836
22837         math: Avoid #define replacements in C++ mode.
22838         * lib/math.in.h: Include c++defs.h.
22839         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
22840         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
22841         trunc, truncl): In C++, define a namespaced alias symbol.
22842         * modules/math (Depends-on): Add c++defs.
22843         (Makefile.am): Update math.h rule.
22844
22845         locale: Avoid #define replacements in C++ mode.
22846         * lib/locale.in.h: Include c++defs.h.
22847         (duplocale): In C++, define a namespaced alias symbol.
22848         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
22849         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
22850         * modules/locale (Depends-on): Add c++defs.
22851         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
22852
22853         langinfo: Avoid #define replacements in C++ mode.
22854         * lib/langinfo.in.h: Include c++defs.h.
22855         (nl_langinfo): In C++, define a namespaced alias symbol.
22856         * modules/langinfo (Depends-on): Add c++defs.
22857         (Makefile.am): Update langinfo.h rule.
22858
22859         iconv-h: Avoid #define replacements in C++ mode.
22860         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
22861         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
22862         symbol.
22863         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
22864         whenever iconv is present.
22865         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
22866         (Makefile.am): Update iconv.h rule.
22867
22868         glob: Avoid #define replacements in C++ mode.
22869         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
22870         (_gl_glob_errfunc_fn): New type.
22871         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
22872         symbol.
22873         * modules/glob (Depends-on): Add c++defs, warn-on-use.
22874         (Makefile.am): Update glob.h rule.
22875
22876         fcntl-h: Avoid #define replacements in C++ mode.
22877         * lib/fcntl.in.h: Include c++defs.h.
22878         (fcntl, open, openat): In C++, define a namespaced alias symbol.
22879         * modules/fcntl-h (Depends-on): Add c++defs.
22880         (Makefile.am): Update fcntl.h rule.
22881
22882         dirent: Avoid #define replacements in C++ mode.
22883         * lib/dirent.in.h: Include c++defs.h.
22884         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
22885         namespaced alias symbol.
22886         (dirfd): Update declaration.
22887         * modules/dirent (Depends-on): Add c++defs.
22888         (Makefile.am): Update dirent.h rule.
22889
22890         ctype: Make it usable in C++ code.
22891         * lib/ctype.in.h: Include c++defs.h.
22892         (isblank): Declare as extern "C".
22893         * modules/ctype (Depends-on): Add c++defs.
22894         (Makefile.am): Update ctype.h rule.
22895
22896         New module 'c++defs'.
22897         * modules/c++defs: New file.
22898         * build-aux/c++defs.h: New file.
22899         Reported by John W. Eaton <jwe@gnu.org>.
22900
22901 2010-03-07  Bruno Haible  <bruno@clisp.org>
22902
22903         logb: Provide missing declaration for Cygwin.
22904         * lib/math.in.h (logb): New declaration.
22905         * m4/logb.m4: New file.
22906         * modules/logb (Files): Add m4/logb.m4.
22907         (Depends-on): Add math.
22908         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
22909         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
22910         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
22911         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
22912         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
22913
22914 2010-03-07  Bruno Haible  <bruno@clisp.org>
22915
22916         Fix test-cond link error.
22917         * tests/test-cond.c: Include <stdio.h>.
22918
22919 2010-03-07  Bruno Haible  <bruno@clisp.org>
22920
22921         Fix test-dirent-safer link error.
22922         * modules/dirent-safer-tests (Makefile.am): Define
22923         test_dirent_safer_LDADD.
22924
22925 2010-03-07  Bruno Haible  <bruno@clisp.org>
22926
22927         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
22928         among default module list.
22929
22930 2010-03-07  Bruno Haible  <bruno@clisp.org>
22931
22932         Fix link error on platforms with GNU libiconv.
22933         * modules/unistr/u8-strcoll-tests (Makefile): Define
22934         test_u8_strcoll_LDADD.
22935         * modules/unistr/u16-strcoll-tests (Makefile): Define
22936         test_u16_strcoll_LDADD.
22937         * modules/unistr/u32-strcoll-tests (Makefile): Define
22938         test_u32_strcoll_LDADD.
22939
22940 2010-03-07  Bruno Haible  <bruno@clisp.org>
22941
22942         Use POSIX declarations for socket functions.
22943         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
22944         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
22945         rpl_sendto): Change declaration to match POSIX.
22946         * lib/connect.c (rpl_connect): Likewise.
22947         * lib/accept.c (rpl_accept): Likewise.
22948         * lib/bind.c (rpl_bind): Likewise.
22949         * lib/getpeername.c (rpl_getpeername): Likewise.
22950         * lib/getsockname.c (rpl_getsockname): Likewise.
22951         * lib/recv.c (rpl_recv): Likewise.
22952         * lib/send.c (rpl_send): Likewise.
22953         * lib/recvfrom.c (rpl_recvfrom): Likewise.
22954         * lib/sendto.c (rpl_sendto): Likewise.
22955
22956 2010-03-06  Bruno Haible  <bruno@clisp.org>
22957
22958         Clarify access, euidaccess, faccessat.
22959         * doc/posix-functions/faccessat.texi: Mention security problem under
22960         "Other problems", not "Portability problems".
22961         * doc/posix-functions/access.texi: Likewise. Mention a related security
22962         problem.
22963         * doc/glibc-functions/euidaccess.texi: Mention security problems.
22964         * lib/euidaccess.c: Add comments about platforms.
22965         * lib/unistd.in.h (access, euidaccess): Add warnings.
22966
22967 2010-03-07  Bruno Haible  <bruno@clisp.org>
22968
22969         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
22970         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
22971         (POSIX_SPAWN_SETSCHEDULER): Likewise.
22972         (POSIX_SPAWN_USEVFORK): Define in a way that works when
22973         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
22974         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
22975         declare when POSIX_SPAWN_SETSCHEDULER is zero.
22976         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
22977         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
22978         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
22979         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
22980         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
22981         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
22982         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
22983         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
22984         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
22985         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
22986         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
22987         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
22988         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
22989         Likewise.
22990         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
22991         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
22992         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
22993         Likewise.
22994         * tests/test-spawn.c (main): Make it work when
22995         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
22996
22997 2010-03-07  Bruno Haible  <bruno@clisp.org>
22998
22999         Fix incorrect Makefile.am generation in German locale.
23000         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
23001         Execute sed command with character range in C locale.
23002
23003 2010-03-06  Bruno Haible  <bruno@clisp.org>
23004
23005         Tests for module 'iconv-h'.
23006         * modules/iconv-h-tests: New file.
23007         * tests/test-iconv-h.c: New file.
23008
23009         New module 'iconv-h'.
23010         * modules/iconv-h: New file.
23011         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
23012         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
23013         (configure.ac): Remove gl_ICONV_H.
23014         (Makefile.am): Remove rule for iconv.h.
23015
23016 2010-03-06  Bruno Haible  <bruno@clisp.org>
23017
23018         More consistent naming of *.m4 files.
23019         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
23020         * modules/wctype (Files): Update.
23021
23022         More consistent naming of *.m4 files.
23023         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
23024         * modules/wchar (Files): Update.
23025
23026 2010-03-06  Jim Meyering  <meyering@redhat.com>
23027
23028         euidaccess: relax license to LGPLv2+
23029         * modules/euidaccess (License): Relax to LGPLv2+.
23030
23031 2010-03-06  Bruno Haible  <bruno@clisp.org>
23032
23033         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
23034         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
23035         (Makefile.am): Augment lib_SOURCES instead.
23036
23037 2010-03-04  Jim Meyering  <meyering@redhat.com>
23038
23039         utime: remove obsolete module
23040         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
23041         unnecessary for years, and has been marked as obsolete for 10 months.
23042         * modules/utime: Remove file.
23043         * lib/utime.c: Remove file.
23044         * m4/utime.m4: Remove file.
23045         * m4/utimes-null.m4: Remove file.
23046         * doc/posix-functions/utime.texi (utime): Remove reference to
23047         the module.  Move the sole "fixed by gnulib" item into the
23048         "problems not fixed by Gnulib" list.
23049         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
23050
23051 2010-03-05  Simon Josefsson  <simon@josefsson.org>
23052
23053         * modules/exit (License): Relax license to LGPLv2+.
23054         (Status): Mark as obsolete.
23055         * NEWS: Mention deprecated 'exit' module.
23056         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
23057         of now obsolete 'exit'.
23058
23059 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23060
23061         fts-lgpl: remove unused module
23062         * modules/fts-lgpl: Remove.
23063         * MODULES.html.sh (func_all_modules): Adjust.
23064         * check-module (find_included_lib_files): Adjust.
23065         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
23066
23067 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
23068
23069         copy-acl: enhance Solaris ACL error handling
23070         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
23071         * lib/set-mode-acl.c (qset_acl): Likewise.
23072
23073 2010-03-02  Bruno Haible  <bruno@clisp.org>
23074
23075         spawn: Don't override the system defined values on FreeBSD 8.
23076         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
23077         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
23078         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
23079         if HAVE_POSIX_SPAWN is 1.
23080         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
23081
23082 2010-03-01  Bruno Haible  <bruno@clisp.org>
23083
23084         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
23085         regarding Automake.
23086
23087 2010-02-25  Bruno Haible  <bruno@clisp.org>
23088
23089         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
23090         * gnulib-tool: Define 'echo' as a function only before the ksh alias
23091         setting, not afterwards.
23092         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
23093
23094 2010-02-24  Eric Blake  <eblake@redhat.com>
23095
23096         bootstrap, git-version-gen: use timestamp
23097         * build-aux/git-version-gen (scriptversion): Force UTC.
23098         * build-aux/bootstrap (scriptversion): New variable.
23099
23100         bootstrap: allow older git
23101         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
23102         older than 1.6.4.  Requested by the libvirt project.
23103
23104 2010-02-23  Eric Blake  <eblake@redhat.com>
23105
23106         warn-on-use: work with old autoconf
23107         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
23108         AS_VAR semantics of autoconf 2.60.
23109         Reported by Bruno Haible.
23110
23111         bootstrap: improve some comments
23112         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
23113         clarification comments.
23114
23115         gettimeofday: provide correct function
23116         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
23117         when replacement is declared, otherwise provide gettimeofday.
23118         Reported by Michael Goffioul.
23119
23120 2010-02-23  Jim Meyering  <meyering@redhat.com>
23121
23122         lib-ignore: relax license to "unlimited", not LGPLv2+
23123         * modules/lib-ignore (License): Relax to "unlimited".
23124
23125 2010-02-23  Jim Meyering  <meyering@redhat.com>
23126
23127         lib-ignore: relax license to LGPLv2+
23128         * modules/lib-ignore (License): Relax to LGPLv2+.
23129
23130 2010-02-22  Eric Blake  <eblake@redhat.com>
23131
23132         lseek: avoid bash 3.2 broken pipe bug
23133         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
23134         warning from bash 3.2.
23135         Reported by Ben Pfaff, with analysis from Bruno Haible.
23136
23137         bootstrap: support non-FSF copyright holder
23138         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
23139         bootstrap.conf override of COPYRIGHT_HOLDER.
23140         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
23141
23142         bootstrap: interoperate with gettext 0.14.1
23143         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
23144
23145         bootstrap: allow for alternate submodule location
23146         * build-aux/bootstrap (gnulib_path): New variable; use instead of
23147         hardcoding submodule location.
23148         (gnulib_mk): Allow direct use of Makefile.am.
23149
23150         bootstrap: use GNULIB_SRCDIR to reduce disk usage
23151         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
23152         rather than reconfiguring where the submodule points.
23153
23154         gettimeofday: restore support for platforms that lack function
23155         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
23156         replacement if function is missing.
23157         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
23158         * modules/sys_time (Makefile.am): Substitute it.
23159         * lib/sys_time.in.h (gettimeofday): Check it.
23160         Reported by Michael Goffioul.
23161
23162 2010-02-21  Bruno Haible  <bruno@clisp.org>
23163
23164         * lib/stdio.in.h (obstack_printf): Fix typo.
23165
23166 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
23167
23168         vc-list-files: use bzr ls's -R option
23169         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
23170         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
23171
23172 2010-02-21  Jim Meyering  <meyering@redhat.com>
23173
23174         init.sh: fix EXEEXT shims to work also for names like test-prog
23175         * tests/init.sh: Re-exec a better shell, when needed.
23176         If the current shell lacks support for posix $(...), an init.sh-using
23177         test will now try to find a shell that supports that.  If EXEEXT is
23178         nonempty, we also require support for hyphen-in-alias-name and shell
23179         substitutions like ${var#glob}.  Failure to find such a shell results
23180         in a skipped test.
23181
23182 2010-02-21  Bruno Haible  <bruno@clisp.org>
23183
23184         Really work around around "broken pipe" error message from bash 3.2.
23185         * gnulib-tool (func_reset_sigpipe): Remove function.
23186         (echo): In bash 3.2, define to a function that uses printf.
23187         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
23188
23189 2010-02-20  Bruno Haible  <bruno@clisp.org>
23190
23191         Restore support for automake 1.9.6 with autoconf 2.61.
23192         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
23193         Reported by James Youngman <jay@gnu.org>.
23194
23195 2010-02-20  Bruno Haible  <bruno@clisp.org>
23196
23197         Improve *printf warning condition.
23198         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
23199         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
23200         and the function is overridden due to SIGPIPE emulation.
23201
23202 2010-02-20  Bruno Haible  <bruno@clisp.org>
23203
23204         * lib/stdio.in.h: Tweak comments.
23205
23206 2010-02-19  Bruno Haible  <bruno@clisp.org>
23207
23208         Make it easier to find modules. New gnulib-tool option '--find'.
23209         * gnulib-tool: New option --find.
23210         (func_usage): Document it.
23211         (func_sanitize_modulelist): New function, extracted from
23212         func_all_modules.
23213         (func_all_modules): Invoke it.
23214         * doc/gnulib-tool.texi (Which modules?): New node.
23215
23216 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
23217
23218         * lib/sys_select.in.h: Provide select replacement even if
23219         sys/select.h exists on a system, for Interix.
23220
23221 2010-02-18  Jim Meyering  <meyering@redhat.com>
23222
23223         init.sh: don't use $(...) just yet
23224         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
23225         to accommodate e.g., Solaris' /bin/sh.
23226
23227 2010-02-17  Bruno Haible  <bruno@clisp.org>
23228
23229         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
23230         Reported by Ludovic Courtès <ludo@gnu.org>.
23231
23232 2010-02-16  Simon Josefsson  <simon@josefsson.org>
23233
23234         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
23235         linking with -lintl.
23236
23237 2010-02-17  Simon Josefsson  <simon@josefsson.org>
23238
23239         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
23240         if not provided by the system's netdb.h.  Reported by
23241         ludo@gnu.org (Ludovic Courtès).
23242
23243 2010-02-15  Jim Meyering  <meyering@redhat.com>
23244
23245         init.sh: improve portability and efficiency
23246         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
23247         "dummy" in a for loop.
23248         Use '!', not '^' to select the complement of a character set used
23249         in a "case" statement.
23250         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
23251         Suggestions from Eric Blake.
23252
23253         init.sh: automatically accommodate programs with the .exe suffix
23254         Automatically arrange for an invocation of "prog" to execute the
23255         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
23256         may use the simpler "prog", yet still work when built on a system
23257         that requires specifying the added suffix.
23258         Do this by constructing a function named "prog" that invokes
23259         "prog.exe" for each .exe file in selected directories.
23260         * tests/init.sh (find_exe_basenames_): New function.
23261         (create_exe_shim_functions_): New function.
23262         (path_prepend_): Use it.
23263
23264         maint.mk: mark syntax-check sc_*.m rules as .PHONY
23265         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
23266         "make -t syntax-check" doesn't create a ton of sc_*.m files.
23267
23268 2010-02-14  Jim Meyering  <meyering@redhat.com>
23269
23270         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
23271         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
23272         (sc_prohibit_hash_pjw_without_use): New rule.
23273
23274         maint.mk: allow the default upload destination dir to be overridden
23275         * top/maint.mk (upload_dest_dir_): Define with a default that
23276         preserves the status quo.
23277         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
23278         Reported by Peter Simons.
23279
23280         maint.mk: prohibit inclusion of "hash.h" without_use
23281         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
23282
23283 2010-02-10  Jim Meyering  <meyering@redhat.com>
23284
23285         maint.mk: prohibit inclusion of "ignore-value.h" without_use
23286         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
23287
23288 2010-02-09  Eric Blake  <ebb9@byu.net>
23289         and Bruno Haible  <bruno@clisp.org>
23290
23291         obstack-printf-posix: ensure declaration
23292         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
23293         extracted from gl_FUNC_OBSTACK_PRINTF.
23294         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
23295         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
23296         Likewise.
23297         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
23298         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
23299         0.
23300
23301 2010-02-08  Bruno Haible  <bruno@clisp.org>
23302
23303         gnulib-tool: Fix typo in 2010-02-07 commit.
23304         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
23305         Reported by Eric Blake.
23306
23307 2010-02-07  Bruno Haible  <bruno@clisp.org>
23308
23309         gnulib-tool: Fix up caching patches.
23310         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
23311         option --no-cache. Use associative arrays when supported by the shell.
23312         (sed_comments): New variable.
23313         (modcache): Renamed from do_cache.
23314         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
23315         abbreviate unnecessarily.
23316         (have_associative): New variable.
23317         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
23318         way also for ksh and zsh.
23319         (func_init_sed_convert_to_cache_statements): New function, extracted
23320         from func_cache_lookup_module. Add support for associative arrays.
23321         Don't set the c_MODULE_cached variable here. Ignore all lines before
23322         the first field header. Remove only the final newline, not all trailing
23323         newlines. Support empty fields correctly. Limit the use of 'eval' to
23324         assignments.
23325         (func_get_description, func_get_status, func_get_notice,
23326         func_get_applicability, func_get_filelist, func_get_dependencies,
23327         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
23328         func_get_automake_snippet, func_get_include_directive,
23329         func_get_link_directive, func_get_license, func_get_maintainer):
23330         Update documentation. List the unoptimized code first. Add support for
23331         associative arrays. Limit the use of 'eval' to assignments.
23332         (func_get_applicability): Undo stylistic pessimisations.
23333         (func_get_automake_snippet, func_get_include_directive): Reduce code
23334         duplication.
23335         (func_modules_transitive_closure, func_modules_add_dummy,
23336         func_modules_notice, func_modules_to_filelist, func_add_file,
23337         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
23338         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
23339         func_create_testdir, func_create_megatestdir): Update documentation.
23340
23341 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23342
23343         * gnulib-tool (func_cache_lookup_module): Store the module name
23344         belonging to the cache variable; error out if two different
23345         module names map to the same cache variable name.
23346
23347 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23348
23349         gnulib-tool: Make caching optional.
23350         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
23351         Update matching short versions of --no-changelog.
23352         (func_usage): Update.
23353         (sed_extract_cache_prog): Renamed from ...
23354         (sed_extract_prog): ... this; revert to old extraction script.
23355         (func_get_description, func_get_status)
23356         (func_get_notice, func_get_applicability, func_get_filelist)
23357         (func_get_dependencies, func_get_autoconf_early_snippet)
23358         (func_get_autoconf_snippet, func_get_automake_snippet)
23359         (func_get_include_directive, func_get_link_directive)
23360         (func_get_license, func_get_maintainer): If $do_cache is false,
23361         use old, non-caching extraction scripts.
23362         Suggestion by Bruno Haible.
23363
23364 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23365
23366         gnulib-tool: cache module metainformation.
23367         * gnulib-tool (sed_extract_prog): Match newline before each
23368         header, and rewrite header to a shell variable suffix.
23369         (func_cache_var, func_cache_lookup_module): New functions,
23370         to turn a module name into a cache variable prefix, and to
23371         look up and cache module metainformation.
23372         (func_get_description, func_get_status)
23373         (func_get_notice, func_get_applicability, func_get_filelist)
23374         (func_get_dependencies, func_get_autoconf_early_snippet)
23375         (func_get_autoconf_snippet, func_get_automake_snippet)
23376         (func_get_include_directive, func_get_link_directive)
23377         (func_get_license, func_get_maintainer): Use
23378         func_cache_lookup_module.
23379
23380 2010-02-07  Bruno Haible  <bruno@clisp.org>
23381
23382         fnctl: Fix missing dependency.
23383         * modules/fcntl (Depends-on): Add getdtablesize.
23384         Reported by John W. Eaton <jwe@gnu.org>.
23385
23386 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
23387
23388         Argp: fix recognition of short alias options.
23389
23390         * lib/argp-parse.c (convert_options): Fix improper use of
23391         `|' between character values.
23392         * tests/test-argp.c (group1_option): New alias option
23393         --read (-r).
23394         (group1_parser): Special handling for 'r'.
23395         (test15): New test case.
23396         (test_fun): Add test15.
23397         * tests/test-argp-2.sh: Update expected --help and --usage
23398         outputs.
23399
23400 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
23401
23402         * tests/test-argp.c: Fix indentation.
23403
23404 2010-02-04  Eric Blake  <ebb9@byu.net>
23405
23406         gettimeofday: expose type of second argument
23407         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
23408         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
23409         * tests/test-gettimeofday.c: Use it to silence warning.
23410         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
23411         the issue.
23412
23413 2010-02-03  Jim Meyering  <meyering@redhat.com>
23414
23415         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
23416         * lib/regcomp.c (TYPE_SIGNED): Define.
23417         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
23418
23419         regcomp.c: avoid a new -Wshadow warning
23420         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
23421
23422 2010-02-01  Jim Meyering  <meyering@redhat.com>
23423
23424         removing useless parentheses in cpp #define directives
23425         For motivation, see commit c0221df4, "define STREQ(a,b)
23426         consistently, removing useless parentheses"
23427         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
23428         * lib/mountlist.c (MNT_IGNORE): Likewise.
23429         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
23430
23431 2010-02-01  Eric Blake  <ebb9@byu.net>
23432
23433         sys_time: use link-warning
23434         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
23435         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
23436         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
23437         * modules/sys_time (Depends-on): Add warn-on-use.
23438         (Makefile.am): Always build replacement.
23439         (configure.ac): Update substitutions.
23440         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
23441         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
23442         bother with SYS_TIME_H.
23443         * modules/gettimeofday (configure.ac): Declare indicator.
23444         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
23445         in use.
23446
23447         closein-tests: silence compiler warning
23448         * tests/test-closein.c (main): Ignore fread result.
23449         * modules/closein-tests (Depends-on): Add ignore-value.
23450
23451         tests: silence warning about system return
23452         * tests/test-areadlink-with-size.c (main): Ignore system result.
23453         * tests/test-areadlink.c (main): Likewise.
23454         * tests/test-areadlinkat-with-size.c (main): Likewise.
23455         * tests/test-areadlinkat.c (main): Likewise.
23456         * tests/test-canonicalize-lgpl.c (main): Likewise.
23457         * tests/test-canonicalize.c (main): Likewise.
23458         * tests/test-chown.c (main): Likewise.
23459         * tests/test-fchownat.c (main): Likewise.
23460         * tests/test-fdutimensat.c (main): Likewise.
23461         * tests/test-fstatat.c (main): Likewise.
23462         * tests/test-futimens.c (main): Likewise.
23463         * tests/test-lchown.c (main): Likewise.
23464         * tests/test-link.c (main): Likewise.
23465         * tests/test-linkat.c (main): Likewise.
23466         * tests/test-lstat.c (main): Likewise.
23467         * tests/test-mkdir.c (main): Likewise.
23468         * tests/test-mkdirat.c (main): Likewise.
23469         * tests/test-mkfifo.c (main): Likewise.
23470         * tests/test-mkfifoat.c (main): Likewise.
23471         * tests/test-mknod.c (main): Likewise.
23472         * tests/test-readlink.c (main): Likewise.
23473         * tests/test-remove.c (main): Likewise.
23474         * tests/test-rename.c (main): Likewise.
23475         * tests/test-renameat.c (main): Likewise.
23476         * tests/test-rmdir.c (main): Likewise.
23477         * tests/test-symlink.c (main): Likewise.
23478         * tests/test-symlinkat.c (main): Likewise.
23479         * tests/test-unlink.c (main): Likewise.
23480         * tests/test-unlinkat.c (main): Likewise.
23481         * tests/test-utimens.c (main): Likewise.
23482         * tests/test-utimensat.c (main): Likewise.
23483         * modules/areadlink-tests (Depends-on): Add ignore-value.
23484         * modules/areadlink-with-size-tests (Depends-on): Likewise.
23485         * modules/areadlinkat-tests (Depends-on): Likewise.
23486         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
23487         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
23488         * modules/canonicalize-tests (Depends-on): Likewise.
23489         * modules/chown-tests (Depends-on): Likewise.
23490         * modules/fdutimensat-tests (Depends-on): Likewise.
23491         * modules/futimens-tests (Depends-on): Likewise.
23492         * modules/lchown-tests (Depends-on): Likewise.
23493         * modules/link-tests (Depends-on): Likewise.
23494         * modules/linkat-tests (Depends-on): Likewise.
23495         * modules/lstat-tests (Depends-on): Likewise.
23496         * modules/mkdir-tests (Depends-on): Likewise.
23497         * modules/mkfifo-tests (Depends-on): Likewise.
23498         * modules/mkfifoat-tests (Depends-on): Likewise.
23499         * modules/mknod-tests (Depends-on): Likewise.
23500         * modules/openat-tests (Depends-on): Likewise.
23501         * modules/readlink-tests (Depends-on): Likewise.
23502         * modules/remove-tests (Depends-on): Likewise.
23503         * modules/rename-tests (Depends-on): Likewise.
23504         * modules/renameat-tests (Depends-on): Likewise.
23505         * modules/rmdir-tests (Depends-on): Likewise.
23506         * modules/symlink-tests (Depends-on): Likewise.
23507         * modules/symlinkat-tests (Depends-on): Likewise.
23508         * modules/unlink-tests (Depends-on): Likewise.
23509         * modules/utimens-tests (Depends-on): Likewise.
23510         * modules/utimensat-tests (Depends-on): Likewise.
23511
23512 2010-01-31  Bruno Haible  <bruno@clisp.org>
23513
23514         Perform the same test for many <math.h> functions.
23515         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
23516         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
23517         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
23518         of gl_MATHFUNC.
23519         * modules/acos (configure.ac): Likewise.
23520         * modules/asin (configure.ac): Likewise.
23521         * modules/atan (configure.ac): Likewise.
23522         * modules/atan2 (configure.ac): Likewise.
23523         * modules/cbrt (configure.ac): Likewise.
23524         * modules/copysign (configure.ac): Likewise.
23525         * modules/cos (configure.ac): Likewise.
23526         * modules/cosh (configure.ac): Likewise.
23527         * modules/erf (configure.ac): Likewise.
23528         * modules/erfc (configure.ac): Likewise.
23529         * modules/exp (configure.ac): Likewise.
23530         * modules/fmod (configure.ac): Likewise.
23531         * modules/hypot (configure.ac): Likewise.
23532         * modules/j0 (configure.ac): Likewise.
23533         * modules/j1 (configure.ac): Likewise.
23534         * modules/jn (configure.ac): Likewise.
23535         * modules/lgamma (configure.ac): Likewise.
23536         * modules/log (configure.ac): Likewise.
23537         * modules/log10 (configure.ac): Likewise.
23538         * modules/log1p (configure.ac): Likewise.
23539         * modules/pow (configure.ac): Likewise.
23540         * modules/remainder (configure.ac): Likewise.
23541         * modules/sin (configure.ac): Likewise.
23542         * modules/sinh (configure.ac): Likewise.
23543         * modules/tan (configure.ac): Likewise.
23544         * modules/tanh (configure.ac): Likewise.
23545         * modules/y0 (configure.ac): Likewise.
23546         * modules/y1 (configure.ac): Likewise.
23547         * modules/yn (configure.ac): Likewise.
23548         Suggested by Paolo Bonzini.
23549
23550 2010-01-31  Bruno Haible  <bruno@clisp.org>
23551
23552         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
23553
23554 2010-01-31  Bruno Haible  <bruno@clisp.org>
23555
23556         Work around getdelim() bug on FreeBSD 8.0.
23557         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
23558         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
23559         not work.
23560         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
23561         is 1.
23562         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
23563         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
23564         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
23565         a non-zero size.
23566         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
23567
23568 2010-01-31  Bruno Haible  <bruno@clisp.org>
23569
23570         Work around getline() bug on FreeBSD 8.0.
23571         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
23572         and a non-zero size.
23573         * tests/test-getline.c (main): Likewise.
23574         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
23575         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
23576
23577 2010-01-28  Eric Blake  <ebb9@byu.net>
23578
23579         regex: fix build failure
23580         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
23581         platforms.
23582
23583 2010-01-28  Jim Meyering  <meyering@redhat.com>
23584
23585         regex: do not ignore memory allocation failure
23586         * lib/regex_internal.c (create_cd_newstate): Detect
23587         re_node_set_init_copy failure.   Extracted from glibc commit
23588         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
23589
23590         regex: sync more white-space changes from libc
23591         * lib/regex_internal.c: White-space only changes.
23592         * lib/regexec.c: Likewise.
23593
23594         regex: add many uses of __attribute_warn_unused_result__
23595         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
23596         * lib/regexec.c: Likewise.
23597         Extracted from a messy glibc commit.
23598
23599         regcomp.c: spelling and merge-artifact from glibc
23600         * lib/regcomp.c: Merge remainder of glibc's
23601         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
23602
23603         regcomp.c: sync white-space changes from glibc
23604         * lib/regcomp.c: Merge to accommodate white space
23605         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
23606
23607         regcomp.c: do not ignore internal return values
23608         * lib/regcomp.c: Do not ignore internal return values.
23609         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
23610         but without its white-space changes and spelling fixes.
23611
23612         regex_internal.h: define __attribute_warn_unused_result__
23613         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
23614
23615         maint: add a syntax-check rule to check for vulnerable Makefile.in
23616         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
23617
23618 2010-01-27  Jim Meyering  <meyering@redhat.com>
23619
23620         ncftpput-ftp: clean up spaces
23621         * build-aux/ncftpput-ftp: Make Copyright line consistent.
23622         Remove trailing blanks.
23623
23624 2010-01-27  Simon Josefsson  <simon@josefsson.org>
23625
23626         * build-aux/git-version-gen: Fix copyright statement.
23627         * build-aux/gnupload: Likewise.
23628         * tests/test-arcfour.c: Likewise.
23629         * tests/test-arctwo.c: Likewise.
23630         * tests/test-count-one-bits.c: Likewise.
23631         * tests/test-crc.c: Likewise.
23632         * tests/test-des.c: Likewise.
23633         * tests/test-gc-arcfour.c: Likewise.
23634         * tests/test-gc-arctwo.c: Likewise.
23635         * tests/test-gc-des.c: Likewise.
23636         * tests/test-gc-hmac-md5.c: Likewise.
23637         * tests/test-gc-hmac-sha1.c: Likewise.
23638         * tests/test-gc-md2.c: Likewise.
23639         * tests/test-gc-md4.c: Likewise.
23640         * tests/test-gc-md5.c: Likewise.
23641         * tests/test-gc-pbkdf2-sha1.c: Likewise.
23642         * tests/test-gc-rijndael.c: Likewise.
23643         * tests/test-gc-sha1.c: Likewise.
23644         * tests/test-gc.c: Likewise.
23645         * tests/test-gethostname.c: Likewise.
23646         * tests/test-gettimeofday.c: Likewise.
23647         * tests/test-hash.c: Likewise.
23648         * tests/test-hmac-md5.c: Likewise.
23649         * tests/test-hmac-sha1.c: Likewise.
23650         * tests/test-md2.c: Likewise.
23651         * tests/test-md4.c: Likewise.
23652         * tests/test-md5.c: Likewise.
23653         * tests/test-memchr.c: Likewise.
23654         * tests/test-memchr2.c: Likewise.
23655         * tests/test-memcmp.c: Likewise.
23656         * tests/test-memmem.c: Likewise.
23657         * tests/test-memrchr.c: Likewise.
23658         * tests/test-rawmemchr.c: Likewise.
23659         * tests/test-read-file.c: Likewise.
23660         * tests/test-rijndael.c: Likewise.
23661         * tests/test-sockets.c: Likewise.
23662         * tests/test-strchrnul.c: Likewise.
23663         * tests/test-strstr.c: Likewise.
23664         * tests/test-strtod.c: Likewise.
23665         * build-aux/ncftpput-ftp: Likewise.
23666
23667 2010-01-26  Eric Blake  <ebb9@byu.net>
23668
23669         ignore-value: update recommended header name
23670         * modules/ignore-value (Include): Only use <> for headers that
23671         exist in glibc.
23672
23673 2010-01-26  Jim Meyering  <meyering@redhat.com>
23674
23675         test-userspec.c: avoid compiler warnings
23676         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
23677         and "initialization discards qualifiers..." warnings.
23678         Put the first "uid" in its own scope, and make char* members "const".
23679
23680 2010-01-25  Bruno Haible  <bruno@clisp.org>
23681
23682         gnulib-tool: Make warning diagnostics consistent.
23683         * gnulib-tool (func_warning): New function.
23684         Use it everywhere where gnulib-tool produces output to stderr and it is
23685         not a fatal error.
23686
23687 2010-01-25  Bruno Haible  <bruno@clisp.org>
23688
23689         Fix test dependencies.
23690         * modules/xstrtol-tests (Depends-on): Add inttypes.
23691         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
23692
23693 2010-01-25 Pádraig Brady <P@draigBrady.com>
23694
23695         syntax-check: detect incorrect boolean macro values in config.h
23696         * modules/maintainer-makefile (configure.ac): Parameterize the location
23697         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
23698         The logic is from Eric Blake and the location indicated by Jim Meyering.
23699         Note the more natural CONFIG_HEADER name is prohibited by automake
23700         for backwards compatibility reasons.
23701         * top/maint.mk (sc_Wundef_boolean): New rule.
23702
23703 2010-01-25  Jim Meyering  <meyering@redhat.com>
23704
23705         bootstrap: detect MacOS 10.6's shasum, too
23706         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
23707         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
23708
23709 2010-01-23  Jim Meyering  <meyering@redhat.com>
23710
23711         xstrtoll: new module
23712         * modules/xstrtoll: New file.
23713         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
23714         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
23715         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
23716         ./configure fails if you use this module and lack "long long".
23717         * modules/xstrtoll-tests: New module.
23718         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
23719         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
23720         new init.sh-based test framework.
23721
23722 2010-01-24  Bruno Haible  <bruno@clisp.org>
23723
23724         Tests for module 'yn'.
23725         * modules/yn-tests: New file.
23726         * tests/test-yn.c: New file.
23727
23728         Tests for module 'y1'.
23729         * modules/y1-tests: New file.
23730         * tests/test-y1.c: New file.
23731
23732         Tests for module 'y0'.
23733         * modules/y0-tests: New file.
23734         * tests/test-y0.c: New file.
23735
23736         Tests for module 'tanh'.
23737         * modules/tanh-tests: New file.
23738         * tests/test-tanh.c: New file.
23739
23740         Tests for module 'tan'.
23741         * modules/tan-tests: New file.
23742         * tests/test-tan.c: New file.
23743
23744         Tests for module 'sqrt'.
23745         * modules/sqrt-tests: New file.
23746         * tests/test-sqrt.c: New file.
23747
23748         Tests for module 'sinh'.
23749         * modules/sinh-tests: New file.
23750         * tests/test-sinh.c: New file.
23751
23752         Tests for module 'sin'.
23753         * modules/sin-tests: New file.
23754         * tests/test-sin.c: New file.
23755
23756         Tests for module 'rint'.
23757         * modules/rint-tests: New file.
23758         * tests/test-rint.c: New file.
23759
23760         Tests for module 'remainder'.
23761         * modules/remainder-tests: New file.
23762         * tests/test-remainder.c: New file.
23763
23764         Tests for module 'pow'.
23765         * modules/pow-tests: New file.
23766         * tests/test-pow.c: New file.
23767
23768         Tests for module 'nextafter'.
23769         * modules/nextafter-tests: New file.
23770         * tests/test-nextafter.c: New file.
23771
23772         Tests for module 'modf'.
23773         * modules/modf-tests: New file.
23774         * tests/test-modf.c: New file.
23775
23776         Tests for module 'logb'.
23777         * modules/logb-tests: New file.
23778         * tests/test-logb.c: New file.
23779
23780         Tests for module 'log1p'.
23781         * modules/log1p-tests: New file.
23782         * tests/test-log1p.c: New file.
23783
23784         Tests for module 'log10'.
23785         * modules/log10-tests: New file.
23786         * tests/test-log10.c: New file.
23787
23788         Tests for module 'log'.
23789         * modules/log-tests: New file.
23790         * tests/test-log.c: New file.
23791
23792         Tests for module 'lgamma'.
23793         * modules/lgamma-tests: New file.
23794         * tests/test-lgamma.c: New file.
23795
23796         Tests for module 'ldexp'.
23797         * modules/ldexp-tests: New file.
23798         * tests/test-ldexp.c: New file.
23799
23800         Tests for module 'jn'.
23801         * modules/jn-tests: New file.
23802         * tests/test-jn.c: New file.
23803
23804         Tests for module 'j1'.
23805         * modules/j1-tests: New file.
23806         * tests/test-j1.c: New file.
23807
23808         Tests for module 'j0'.
23809         * modules/j0-tests: New file.
23810         * tests/test-j0.c: New file.
23811
23812         Tests for module 'hypot'.
23813         * modules/hypot-tests: New file.
23814         * tests/test-hypot.c: New file.
23815
23816         Tests for module 'fmod'.
23817         * modules/fmod-tests: New file.
23818         * tests/test-fmod.c: New file.
23819
23820         Tests for module 'fabs'.
23821         * modules/fabs-tests: New file.
23822         * tests/test-fabs.c: New file.
23823
23824         Tests for module 'exp'.
23825         * modules/exp-tests: New file.
23826         * tests/test-exp.c: New file.
23827
23828         Tests for module 'erfc'.
23829         * modules/erfc-tests: New file.
23830         * tests/test-erfc.c: New file.
23831
23832         Tests for module 'erf'.
23833         * modules/erf-tests: New file.
23834         * tests/test-erf.c: New file.
23835
23836         Tests for module 'cosh'.
23837         * modules/cosh-tests: New file.
23838         * tests/test-cosh.c: New file.
23839
23840         Tests for module 'cos'.
23841         * modules/cos-tests: New file.
23842         * tests/test-cos.c: New file.
23843
23844         Tests for module 'copysign'.
23845         * modules/copysign-tests: New file.
23846         * tests/test-copysign.c: New file.
23847
23848         Tests for module 'cbrt'.
23849         * modules/cbrt-tests: New file.
23850         * tests/test-cbrt.c: New file.
23851
23852         Tests for module 'atan2'.
23853         * modules/atan2-tests: New file.
23854         * tests/test-atan2.c: New file.
23855
23856         Tests for module 'atan'.
23857         * modules/atan-tests: New file.
23858         * tests/test-atan.c: New file.
23859
23860         Tests for module 'asin'.
23861         * modules/asin-tests: New file.
23862         * tests/test-asin.c: New file.
23863
23864         Tests for module 'acos'.
23865         * modules/acos-tests: New file.
23866         * tests/test-acos.c: New file.
23867
23868 2010-01-24  Bruno Haible  <bruno@clisp.org>
23869
23870         Fix tests for common <math.h> functions.
23871         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
23872         code snippet that references the function pointer, rather than merely
23873         calling the function. Substitute the FUNC_LIBM variable.
23874         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
23875         * modules/acos (configure.ac): Likewise.
23876         * modules/asin (configure.ac): Likewise.
23877         * modules/atan (configure.ac): Likewise.
23878         * modules/atan2 (configure.ac): Likewise.
23879         * modules/cbrt (configure.ac): Likewise.
23880         * modules/copysign (configure.ac): Likewise.
23881         * modules/cos (configure.ac): Likewise.
23882         * modules/cosh (configure.ac): Likewise.
23883         * modules/erf (configure.ac): Likewise.
23884         * modules/erfc (configure.ac): Likewise.
23885         * modules/exp (configure.ac): Likewise.
23886         * modules/fabs (configure.ac): Likewise.
23887         * modules/fmod (configure.ac): Likewise.
23888         * modules/hypot (configure.ac): Likewise.
23889         * modules/j0 (configure.ac): Likewise.
23890         * modules/j1 (configure.ac): Likewise.
23891         * modules/jn (configure.ac): Likewise.
23892         * modules/ldexp (configure.ac): Likewise.
23893         * modules/lgamma (configure.ac): Likewise.
23894         * modules/log (configure.ac): Likewise.
23895         * modules/log10 (configure.ac): Likewise.
23896         * modules/log1p (configure.ac): Likewise.
23897         * modules/logb (configure.ac): Likewise.
23898         * modules/modf (configure.ac): Likewise.
23899         * modules/nextafter (configure.ac): Likewise.
23900         * modules/pow (configure.ac): Likewise.
23901         * modules/remainder (configure.ac): Likewise.
23902         * modules/rint (configure.ac): Likewise.
23903         * modules/sin (configure.ac): Likewise.
23904         * modules/sinh (configure.ac): Likewise.
23905         * modules/tan (configure.ac): Likewise.
23906         * modules/tanh (configure.ac): Likewise.
23907         * modules/y0 (configure.ac): Likewise.
23908         * modules/y1 (configure.ac): Likewise.
23909         * modules/yn (configure.ac): Likewise.
23910
23911 2010-01-24  Bruno Haible  <bruno@clisp.org>
23912
23913         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
23914         * tests/test-acosl.c (x): New variable.
23915         (main): Store argument in x and fetch it from x.
23916         * tests/test-asinl.c (x): New variable.
23917         (main): Store argument in x and fetch it from x.
23918         * tests/test-atanl.c (x): New variable.
23919         (main): Store argument in x and fetch it from x.
23920         * tests/test-cosl.c (x): New variable.
23921         (main): Store argument in x and fetch it from x.
23922         * tests/test-expl.c (x): New variable.
23923         (main): Store argument in x and fetch it from x.
23924         * tests/test-logl.c (x): New variable.
23925         (main): Store argument in x and fetch it from x.
23926         * tests/test-sinl.c (x): New variable.
23927         (main): Store argument in x and fetch it from x.
23928         * tests/test-sqrtl.c (x): New variable.
23929         (main): Store argument in x and fetch it from x.
23930         * tests/test-tanl.c (x): New variable.
23931         (main): Store argument in x and fetch it from x.
23932
23933 2010-01-24  Bruno Haible  <bruno@clisp.org>
23934
23935         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
23936         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
23937         assignments to the initial TESTS_ENVIRONMENT.
23938         * doc/gnulib.texi (Unit test modules): Document it.
23939         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
23940         TESTS_ENVIRONMENT.
23941         * modules/btowc-tests (Makefile.am): Likewise.
23942         * modules/c-stack-tests (Makefile.am): Likewise.
23943         * modules/c-strcase-tests (Makefile.am): Likewise.
23944         * modules/copy-file-tests (Makefile.am): Likewise.
23945         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
23946         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
23947         * modules/mbrtowc-tests (Makefile.am): Likewise.
23948         * modules/mbscasecmp-tests (Makefile.am): Likewise.
23949         * modules/mbscasestr-tests (Makefile.am): Likewise.
23950         * modules/mbschr-tests (Makefile.am): Likewise.
23951         * modules/mbscspn-tests (Makefile.am): Likewise.
23952         * modules/mbsinit-tests (Makefile.am): Likewise.
23953         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
23954         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
23955         * modules/mbspbrk-tests (Makefile.am): Likewise.
23956         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
23957         * modules/mbsrchr-tests (Makefile.am): Likewise.
23958         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
23959         * modules/mbsspn-tests (Makefile.am): Likewise.
23960         * modules/mbsstr-tests (Makefile.am): Likewise.
23961         * modules/nl_langinfo-tests (Makefile.am): Likewise.
23962         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
23963         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
23964         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
23965         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
23966         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
23967         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
23968         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
23969         * modules/wcrtomb-tests (Makefile.am): Likewise.
23970         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
23971         * modules/wcsrtombs-tests (Makefile.am): Likewise.
23972         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
23973         assignments from TESTS_ENVIRONMENT.
23974         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
23975         augmentation.
23976         * modules/argp-version-etc-tests (Makefile.am): Likewise.
23977         * modules/atexit-tests (Makefile.am): Likewise.
23978         * modules/binary-io-tests (Makefile.am): Likewise.
23979         * modules/closein-tests (Makefile.am): Likewise.
23980         * modules/dprintf-posix-tests (Makefile.am): Likewise.
23981         * modules/exclude-tests (Makefile.am): Likewise.
23982         * modules/fflush-tests (Makefile.am): Likewise.
23983         * modules/fpending-tests (Makefile.am): Likewise.
23984         * modules/fprintf-posix-tests (Makefile.am): Likewise.
23985         * modules/freadahead-tests (Makefile.am): Likewise.
23986         * modules/freadptr-tests (Makefile.am): Likewise.
23987         * modules/freadseek-tests (Makefile.am): Likewise.
23988         * modules/fseek-tests (Makefile.am): Likewise.
23989         * modules/fseeko-tests (Makefile.am): Likewise.
23990         * modules/ftell-tests (Makefile.am): Likewise.
23991         * modules/ftello-tests (Makefile.am): Likewise.
23992         * modules/idpriv-drop-tests (Makefile.am): Likewise.
23993         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
23994         * modules/lseek-tests (Makefile.am): Likewise.
23995         * modules/parse-duration-tests (Makefile.am): Likewise.
23996         * modules/perror-tests (Makefile.am): Likewise.
23997         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
23998         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
23999         * modules/pipe-tests (Makefile.am): Likewise.
24000         * modules/pread-tests (Makefile.am): Likewise.
24001         * modules/printf-posix-tests (Makefile.am): Likewise.
24002         * modules/select-tests (Makefile.am): Likewise.
24003         * modules/sigpipe-tests (Makefile.am): Likewise.
24004         * modules/tsearch-tests (Makefile.am): Likewise.
24005         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
24006         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
24007         * modules/uniname/uniname-tests (Makefile.am): Likewise.
24008         * modules/uniwidth/width-tests (Makefile.am): Likewise.
24009         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
24010         * modules/version-etc-tests (Makefile.am): Likewise.
24011         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
24012         * modules/vprintf-posix-tests (Makefile.am): Likewise.
24013         * modules/xalloc-die-tests (Makefile.am): Likewise.
24014         * modules/xprintf-posix-tests (Makefile.am): Likewise.
24015         * modules/xstrtoimax-tests (Makefile.am): Likewise.
24016         * modules/xstrtol-tests (Makefile.am): Likewise.
24017         * modules/xstrtoumax-tests (Makefile.am): Likewise.
24018         * modules/yesno-tests (Makefile.am): Likewise.
24019         Suggested by Jim Meyering.
24020
24021 2010-01-24  Bruno Haible  <bruno@clisp.org>
24022
24023         More documentation.
24024         * doc/gnulib.texi (Writing modules): New chapter.
24025         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
24026         the new chapter.
24027
24028 2010-01-24  Jim Meyering  <meyering@redhat.com>
24029
24030         maint.mk: do not prepend "./" after filtering
24031         * top/maint.mk (_prepend_srcdir_prefix): New variable
24032         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
24033         "./" when $(srcdir) is ".".
24034
24035         define STREQ(a,b) consistently, removing useless parentheses
24036         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
24037         since the only risk is that "a" or "b" contains an unparenthesized
24038         comma, but if either did that, STREQ would have 3 or more arguments.
24039         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
24040         * lib/fts.c (STREQ): Remove unnecessary parentheses.
24041         * lib/hash-triple.c (STREQ): Likewise.
24042         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
24043         * lib/getugroups.c (STREQ): Likewise.
24044
24045 2010-01-23  Jim Meyering  <meyering@redhat.com>
24046
24047         maint.mk: fix syntax-check in a non-srcdir build directory
24048         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
24049         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
24050
24051 2010-01-22  Jim Meyering  <meyering@redhat.com>
24052
24053         userspec: add unit tests
24054         * tests/test-userspec.c: New file.
24055         * modules/userspec-tests: Likewise.
24056
24057 2010-01-21  Jim Meyering  <meyering@redhat.com>
24058
24059         maint.mk: handle source file names containing "." robustly
24060         * top/maint.mk (_dot_escaped_srcdir): Define.
24061         (VC_LIST): Use it in LHS of sed substitution.
24062
24063 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
24064
24065         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
24066         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
24067         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
24068         from a non-srcdir build.
24069
24070 2010-01-20  Eric Blake  <ebb9@byu.net>
24071
24072         warn-on-use: use instead of link-warning
24073         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
24074         * modules/unistd (Depends-on, Makefile.am): Likewise.
24075         * modules/arpa_inet (Depends-on): Replace link-warning with
24076         warn-on-use.
24077         (Makefile.am): Update rules accordingly.
24078         * modules/ctype (Depends-on, Makefile.am): Likewise.
24079         * modules/dirent (Depends-on, Makefile.am): Likewise.
24080         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
24081         * modules/inttypes (Depends-on, Makefile.am): Likewise.
24082         * modules/langinfo (Depends-on, Makefile.am): Likewise.
24083         * modules/locale (Depends-on, Makefile.am): Likewise.
24084         * modules/math (Depends-on, Makefile.am): Likewise.
24085         * modules/search (Depends-on, Makefile.am): Likewise.
24086         * modules/signal (Depends-on, Makefile.am): Likewise.
24087         * modules/spawn (Depends-on, Makefile.am): Likewise.
24088         * modules/stdlib (Depends-on, Makefile.am): Likewise.
24089         * modules/string (Depends-on, Makefile.am): Likewise.
24090         * modules/strings (Depends-on, Makefile.am): Likewise.
24091         * modules/sys_file (Depends-on, Makefile.am): Likewise.
24092         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
24093         * modules/sys_select (Depends-on, Makefile.am): Likewise.
24094         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
24095         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
24096         * modules/sys_times (Depends-on, Makefile.am): Likewise.
24097         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
24098         * modules/wchar (Depends-on, Makefile.am): Likewise.
24099         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
24100         should be poisoned.
24101         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
24102         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
24103         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
24104         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
24105         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
24106         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
24107         * m4/math_h.m4 (gl_MATH_H): Likewise.
24108         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
24109         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
24110         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
24111         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
24112         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
24113         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
24114         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
24115         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
24116         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
24117         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24118         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
24119         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
24120         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
24121         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
24122         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
24123         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
24124         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
24125         GL_LINK_WARNING.
24126         * lib/ctype.in.h: Likewise.
24127         * lib/dirent.in.h: Likewise.
24128         * lib/fcntl.in.h: Likewise.
24129         * lib/inttypes.in.h: Likewise.
24130         * lib/langinfo.in.h: Likewise.
24131         * lib/locale.in.h: Likewise.
24132         * lib/math.in.h: Likewise.
24133         * lib/search.in.h: Likewise.
24134         * lib/signal.in.h: Likewise.
24135         * lib/spawn.in.h: Likewise.
24136         * lib/stdio.in.h: Likewise.
24137         * lib/stdlib.in.h: Likewise.
24138         * lib/string.in.h: Likewise.
24139         * lib/strings.in.h: Likewise.
24140         * lib/sys_file.in.h: Likewise.
24141         * lib/sys_ioctl.in.h: Likewise.
24142         * lib/sys_select.in.h: Likewise.
24143         * lib/sys_socket.in.h: Likewise.
24144         * lib/sys_stat.in.h: Likewise.
24145         * lib/sys_times.in.h: Likewise.
24146         * lib/sys_utsname.in.h: Likewise.
24147         * lib/unistd.in.h: Likewise.
24148         * lib/wchar.in.h: Likewise.
24149
24150 2010-01-20  Bruno Haible  <bruno@clisp.org>
24151
24152         Avoid duplicate -lm.
24153         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
24154         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
24155         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
24156         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
24157         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
24158         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
24159         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
24160         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
24161         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
24162         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
24163         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
24164         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
24165         Reported by Paolo Bonzini.
24166
24167 2010-01-19  Bruno Haible  <bruno@clisp.org>
24168
24169         langinfo, nl_langinfo: Relicense under LGPLv2+.
24170         * modules/langinfo (License): Change to LGPLv2+.
24171         * modules/nl_langinfo (License): Likewise.
24172         Patch by David Lutterkort <lutter@redhat.com>.
24173
24174 2010-01-19  Bruno Haible  <bruno@clisp.org>
24175
24176         Avoid compilation error with cc on OSF/1 5.1.
24177         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
24178         statement, not before.
24179         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24180
24181 2010-01-18  Bruno Haible  <bruno@clisp.org>
24182
24183         Avoid a link error due to the __printf__ symbol.
24184         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
24185         and 2.6.x.
24186         (__format__, __printf__): Remove definitions.
24187         * lib/argp-fmtstream.h: Likewise.
24188         * lib/argp.h: Likewise.
24189         * lib/error.h: Likewise.
24190         * lib/vasnprintf.h: Likewise.
24191         * lib/xprintf.h: Likewise.
24192         * lib/xvasprintf.h: Likewise.
24193         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24194
24195 2010-01-18  Bruno Haible  <bruno@clisp.org>
24196
24197         Tests for module 'tanl'.
24198         * modules/tanl-tests: New file.
24199         * tests/test-tanl.c: New file.
24200
24201         Tests for module 'sqrtl'.
24202         * modules/sqrtl-tests: New file.
24203         * tests/test-sqrtl.c: New file.
24204
24205         Tests for module 'sinl'.
24206         * modules/sinl-tests: New file.
24207         * tests/test-sinl.c: New file.
24208
24209         Tests for module 'logl'.
24210         * modules/logl-tests: New file.
24211         * tests/test-logl.c: New file.
24212
24213         Tests for module 'expl'.
24214         * modules/expl-tests: New file.
24215         * tests/test-expl.c: New file.
24216
24217         Tests for module 'cosl'.
24218         * modules/cosl-tests: New file.
24219         * tests/test-cosl.c: New file.
24220
24221         Tests for module 'atanl'.
24222         * modules/atanl-tests: New file.
24223         * tests/test-atanl.c: New file.
24224
24225         Tests for module 'asinl'.
24226         * modules/asinl-tests: New file.
24227         * tests/test-asinl.c: New file.
24228
24229         Tests for module 'acosl'.
24230         * modules/acosl-tests: New file.
24231         * tests/test-acosl.c: New file.
24232
24233         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
24234         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
24235         tanl): Use the standard gnulib idiom.
24236         * lib/cosl.c: Don't include trigl.c and sincosl.c.
24237         * lib/sinl.c: Likewise.
24238         * lib/tanl.c: Don't include trigl.c.
24239         (kernel_tanl): Make static.
24240         * lib/sincosl.c: Include trigl.h first.
24241         * lib/trigl.c: Likewise.
24242         * m4/acosl.m4: New file.
24243         * m4/asinl.m4: New file.
24244         * m4/atanl.m4: New file.
24245         * m4/cosl.m4: New file.
24246         * m4/expl.m4: New file.
24247         * m4/logl.m4: New file.
24248         * m4/sinl.m4: New file.
24249         * m4/sqrtl.m4: New file.
24250         * m4/tanl.m4: New file.
24251         * m4/mathl.m4: Remove file.
24252         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
24253         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
24254         Don't initialize GNULIB_MATHL.
24255         * modules/acosl: New file.
24256         * modules/asinl: New file.
24257         * modules/atanl: New file.
24258         * modules/cosl: New file.
24259         * modules/expl: New file.
24260         * modules/logl: New file.
24261         * modules/sinl: New file.
24262         * modules/sqrtl: New file.
24263         * modules/tanl: New file.
24264         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
24265         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
24266         substitute GNULIB_MATHL.
24267         * modules/mathl: Rewritten.
24268         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
24269         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
24270         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
24271         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
24272         * doc/posix-functions/expl.texi: Mention the 'expl' module.
24273         * doc/posix-functions/logl.texi: Mention the 'logl' module.
24274         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
24275         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
24276         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
24277
24278 2010-01-18  Bruno Haible  <bruno@clisp.org>
24279
24280         sqrt: Make gl_FUNC_SQRT requirable.
24281         * m4/sqrt.m4: New file.
24282         * modules/sqrt (Files): Add it.
24283         (configure.ac): Invoke gl_FUNC_SQRT.
24284
24285 2010-01-18  Bruno Haible  <bruno@clisp.org>
24286
24287         New modules for common <math.h> functions.
24288         * m4/mathfunc.m4: New file.
24289         * modules/acos: New file.
24290         * modules/asin: New file.
24291         * modules/atan: New file.
24292         * modules/atan2: New file.
24293         * modules/cbrt: New file.
24294         * modules/copysign: New file.
24295         * modules/cos: New file.
24296         * modules/cosh: New file.
24297         * modules/erf: New file.
24298         * modules/erfc: New file.
24299         * modules/exp: New file.
24300         * modules/fabs: New file.
24301         * modules/fmod: New file.
24302         * modules/hypot: New file.
24303         * modules/j0: New file.
24304         * modules/j1: New file.
24305         * modules/jn: New file.
24306         * modules/ldexp: New file.
24307         * modules/lgamma: New file.
24308         * modules/log: New file.
24309         * modules/log10: New file.
24310         * modules/log1p: New file.
24311         * modules/logb: New file.
24312         * modules/modf: New file.
24313         * modules/nextafter: New file.
24314         * modules/pow: New file.
24315         * modules/remainder: New file.
24316         * modules/rint: New file.
24317         * modules/sin: New file.
24318         * modules/sinh: New file.
24319         * modules/sqrt: New file.
24320         * modules/tan: New file.
24321         * modules/tanh: New file.
24322         * modules/y0: New file.
24323         * modules/y1: New file.
24324         * modules/yn: New file.
24325         * doc/posix-functions/acos.texi: Mention the 'acos' module.
24326         * doc/posix-functions/asin.texi: Mention the 'asin' module.
24327         * doc/posix-functions/atan.texi: Mention the 'atan' module.
24328         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
24329         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
24330         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
24331         * doc/posix-functions/cos.texi: Mention the 'cos' module.
24332         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
24333         * doc/posix-functions/erf.texi: Mention the 'erf' module.
24334         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
24335         * doc/posix-functions/exp.texi: Mention the 'exp' module.
24336         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
24337         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
24338         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
24339         * doc/posix-functions/j0.texi: Mention the 'j0' module.
24340         * doc/posix-functions/j1.texi: Mention the 'j1' module.
24341         * doc/posix-functions/jn.texi: Mention the 'jn' module.
24342         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
24343         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
24344         * doc/posix-functions/log.texi: Mention the 'log' module.
24345         * doc/posix-functions/log10.texi: Mention the 'log10' module.
24346         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
24347         * doc/posix-functions/logb.texi: Mention the 'logb' module.
24348         * doc/posix-functions/modf.texi: Mention the 'modf' module.
24349         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
24350         * doc/posix-functions/pow.texi: Mention the 'pow' module.
24351         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
24352         * doc/posix-functions/rint.texi: Mention the 'rint' module.
24353         * doc/posix-functions/sin.texi: Mention the 'sin' module.
24354         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
24355         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
24356         * doc/posix-functions/tan.texi: Mention the 'tan' module.
24357         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
24358         * doc/posix-functions/y0.texi: Mention the 'y0' module.
24359         * doc/posix-functions/y1.texi: Mention the 'y1' module.
24360         * doc/posix-functions/yn.texi: Mention the 'yn' module.
24361
24362 2010-01-18  Jim Meyering  <meyering@redhat.com>
24363
24364         ignore-value: relax license to LGPLv2+
24365         * modules/ignore-value (License): Relax to LGPLv2+.
24366
24367         getdate: don't leak when TZ contains two or more '"'s
24368         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
24369         double quote in TZ after the first one.
24370
24371         readtokens: do not leak internal token_lengths buffer
24372         * lib/readtokens.c (readtokens): Free the local, lengths,
24373         when the supplied "token_lengths" parameter is NULL.
24374
24375 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24376
24377         Fix a couple of missing LIBTHREAD link failures on AIX.
24378         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
24379         $(LIBTHREAD).
24380         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
24381
24382         Link test-poll against INET_PTON_LIB.
24383         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
24384         for inet_pton on Solaris 10.
24385
24386 2010-01-17  Bruno Haible  <bruno@clisp.org>
24387
24388         unistdio/*-sprintf: Fix typo in module description.
24389         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
24390         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
24391         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
24392         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
24393         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
24394         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
24395         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
24396         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24397
24398 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24399
24400         gnulib-tool: fix filelist for AIX, HP-UX ksh.
24401         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
24402         variables in shell case patterns, for AIX and HP-UX ksh.
24403
24404         Split large sed scripts, for HP-UX sed.
24405         * modules/stdio: Split sed scripts around 50 sed commands,
24406         to avoid HP-UX limit of 99 commands, in the near future.
24407         * modules/string: Likewise.
24408         * modules/unistd: Likewise.
24409
24410         gnulib-tool: avoid writing in the current directory.
24411         * gnulib-tool (func_emit_lib_Makefile_am)
24412         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
24413         not in the current directory, so concurrent gnulib-tool
24414         instances do not interfere.
24415
24416 2010-01-16  Jim Meyering  <meyering@redhat.com>
24417
24418         doc: update users.txt
24419         * users.txt: Add grep.
24420         (diffutils, gzip): Update URLs.
24421
24422 2010-01-12  Bruno Haible  <bruno@clisp.org>
24423
24424         posix_spawn: Avoid test failure on Cygwin.
24425         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
24426         characters.
24427         Reported by Simon Josefsson.
24428
24429 2010-01-12  Bruno Haible  <bruno@clisp.org>
24430
24431         * tests/test-cond.c (main): When skipping the test, show the reason.
24432
24433 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24434
24435         * lib/striconv.c (str_cd_iconv): Avoid if before free.
24436
24437 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24438
24439         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
24440         VC_LIST_ALWAYS_EXCLUDE_REGEX.
24441
24442 2010-01-12  Eric Blake  <ebb9@byu.net>
24443
24444         build: guarantee AS_VAR_IF
24445         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
24446         (gl_AS_VAR_IF): Move...
24447         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
24448         Reported by Simon Josefsson.
24449
24450 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24451
24452         * lib/stdio.in.h: Fix typo.
24453
24454 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24455
24456         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
24457         libgpg-error.
24458
24459 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24460
24461         * tests/test-xalloc-die.sh: Use $EXEEXT.
24462
24463 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24464             Bruno Haible  <bruno@clisp.org>
24465
24466         getlogin, getlogin_r: Avoid test failure.
24467         * tests/test-getlogin.c: Include <stdio.h>.
24468         (main): Skip the test when the function fails because stdin is not a
24469         tty.
24470         * tests/test-getlogin_r.c: Include <stdio.h>.
24471         (main): Skip the test when the function fails because stdin is not a
24472         tty.
24473
24474 2010-01-11  Eric Blake  <ebb9@byu.net>
24475
24476         tests: avoid more large file warnings
24477         * tests/test-fflush.c: Avoid warning about ftell use.
24478         * tests/test-fseek.c: Avoid warning about fseek use.
24479
24480 2010-01-10  Bruno Haible  <bruno@clisp.org>
24481
24482         nproc: Work better on Linux when /proc and /sys are not mounted.
24483         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
24484         as lower bound when, on glibc/Linux systems,
24485         sysconf (_SC_NPROCESSORS_CONF) returns 1.
24486         Suggested by Pádraig Brady <P@draigbrady.com>.
24487         Reported by Dmitry V. Levin <ldv@altlinux.org>.
24488
24489         nproc: Refactor.
24490         * lib/nproc.c (num_processors_via_affinity_mask): New function,
24491         extracted from num_processors.
24492         (num_processors): Call it.
24493
24494 2010-01-11  Jim Meyering  <meyering@redhat.com>
24495
24496         utimecmp: avoid new warning from upcoming gcc-4.5.0
24497         * lib/utimecmp.c (BILLION): Define using #define rather than an
24498         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
24499
24500 2010-01-11  Eric Blake  <ebb9@byu.net>
24501
24502         math: add portability warnings for classification macros
24503         * modules/math (Depends-on): Add warn-on-use.
24504         (Makefile.am): Provide new substitutions.
24505         * m4/math_h.m4 (gl_MATH_H): Require inline.
24506         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
24507         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
24508         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
24509         implement warnings.
24510
24511         unistd: warn on use of environ without module
24512         * modules/unistd (Depends-on): Add warn-on-use.
24513         (Makefile.am): Provide new substitutions.
24514         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
24515         * lib/unistd.in.h (environ): Wrap with a warning helper function.
24516
24517         stdio: warn on suspicious uses
24518         * modules/stdio (Depends-on): Add warn-on-use.
24519         (Makefile.am): Provide new substitutions.
24520         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
24521         fseeko.
24522         * lib/stdio.in.h (gets): Always warn on use.
24523         (fseek, ftell): Adjust when warnings are issued, and honor
24524         _GL_NO_LARGE_FILES as a way to silence the warning.
24525         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
24526         any warning about large file offsets.
24527         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
24528         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
24529         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
24530         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
24531         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
24532         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
24533         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
24534         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
24535
24536         warn-on-use: new module
24537         * modules/warn-on-use: New file.
24538         * build-aux/warn-on-use.h: Likewise.
24539         * m4/warn-on-use.m4: Likewise.
24540         * MODULES.html.sh (Support for building): Mention it.
24541
24542 2010-01-10  Bruno Haible  <bruno@clisp.org>
24543
24544         Tests for module 'unistr/u32-strdup'.
24545         * modules/unistr/u32-strdup-tests: New file.
24546         * tests/unistr/test-u32-strdup.c: New file.
24547
24548         Tests for module 'unistr/u16-strdup'.
24549         * modules/unistr/u16-strdup-tests: New file.
24550         * tests/unistr/test-u16-strdup.c: New file.
24551
24552         Tests for module 'unistr/u8-strdup'.
24553         * modules/unistr/u8-strdup-tests: New file.
24554         * tests/unistr/test-u8-strdup.c: New file.
24555         * tests/unistr/test-strdup.h: New file.
24556
24557         Tests for module 'unistr/u32-strncmp'.
24558         * modules/unistr/u32-strncmp-tests: New file.
24559         * tests/unistr/test-u32-strncmp.c: New file.
24560
24561         Tests for module 'unistr/u16-strncmp'.
24562         * modules/unistr/u16-strncmp-tests: New file.
24563         * tests/unistr/test-u16-strncmp.c: New file.
24564
24565         Tests for module 'unistr/u8-strncmp'.
24566         * modules/unistr/u8-strncmp-tests: New file.
24567         * tests/unistr/test-u8-strncmp.c: New file.
24568         * tests/unistr/test-strncmp.h: New file.
24569
24570         Tests for module 'unistr/u32-strcoll'.
24571         * modules/unistr/u32-strcoll-tests: New file.
24572         * tests/unistr/test-u32-strcoll.c: New file.
24573
24574         Tests for module 'unistr/u16-strcoll'.
24575         * modules/unistr/u16-strcoll-tests: New file.
24576         * tests/unistr/test-u16-strcoll.c: New file.
24577
24578         Tests for module 'unistr/u8-strcoll'.
24579         * modules/unistr/u8-strcoll-tests: New file.
24580         * tests/unistr/test-u8-strcoll.c: New file.
24581
24582         Tests for module 'unistr/u32-strcmp'.
24583         * modules/unistr/u32-strcmp-tests: New file.
24584         * tests/unistr/test-u32-strcmp.c: New file.
24585         * tests/unistr/test-u32-strcmp.h: New file.
24586
24587         Tests for module 'unistr/u16-strcmp'.
24588         * modules/unistr/u16-strcmp-tests: New file.
24589         * tests/unistr/test-u16-strcmp.c: New file.
24590         * tests/unistr/test-u16-strcmp.h: New file.
24591
24592         Tests for module 'unistr/u8-strcmp'.
24593         * modules/unistr/u8-strcmp-tests: New file.
24594         * tests/unistr/test-u8-strcmp.c: New file.
24595         * tests/unistr/test-u8-strcmp.h: New file.
24596         * tests/unistr/test-strcmp.h: New file.
24597
24598         Tests for module 'unistr/u32-strncat'.
24599         * modules/unistr/u32-strncat-tests: New file.
24600         * tests/unistr/test-u32-strncat.c: New file.
24601
24602         Tests for module 'unistr/u16-strncat'.
24603         * modules/unistr/u16-strncat-tests: New file.
24604         * tests/unistr/test-u16-strncat.c: New file.
24605
24606         Tests for module 'unistr/u8-strncat'.
24607         * modules/unistr/u8-strncat-tests: New file.
24608         * tests/unistr/test-u8-strncat.c: New file.
24609         * tests/unistr/test-strncat.h: New file.
24610
24611         Tests for module 'unistr/u32-strcat'.
24612         * modules/unistr/u32-strcat-tests: New file.
24613         * tests/unistr/test-u32-strcat.c: New file.
24614
24615         Tests for module 'unistr/u16-strcat'.
24616         * modules/unistr/u16-strcat-tests: New file.
24617         * tests/unistr/test-u16-strcat.c: New file.
24618
24619         Tests for module 'unistr/u8-strcat'.
24620         * modules/unistr/u8-strcat-tests: New file.
24621         * tests/unistr/test-u8-strcat.c: New file.
24622         * tests/unistr/test-strcat.h: New file.
24623
24624         Tests for module 'unistr/u32-stpncpy'.
24625         * modules/unistr/u32-stpncpy-tests: New file.
24626         * tests/unistr/test-u32-stpncpy.c: New file.
24627
24628         Tests for module 'unistr/u16-stpncpy'.
24629         * modules/unistr/u16-stpncpy-tests: New file.
24630         * tests/unistr/test-u16-stpncpy.c: New file.
24631
24632         Tests for module 'unistr/u8-stpncpy'.
24633         * modules/unistr/u8-stpncpy-tests: New file.
24634         * tests/unistr/test-u8-stpncpy.c: New file.
24635         * tests/unistr/test-stpncpy.h: New file.
24636
24637         Tests for module 'unistr/u32-strncpy'.
24638         * modules/unistr/u32-strncpy-tests: New file.
24639         * tests/unistr/test-u32-strncpy.c: New file.
24640
24641         Tests for module 'unistr/u16-strncpy'.
24642         * modules/unistr/u16-strncpy-tests: New file.
24643         * tests/unistr/test-u16-strncpy.c: New file.
24644
24645         Tests for module 'unistr/u8-strncpy'.
24646         * modules/unistr/u8-strncpy-tests: New file.
24647         * tests/unistr/test-u8-strncpy.c: New file.
24648         * tests/unistr/test-strncpy.h: New file.
24649
24650         Tests for module 'unistr/u32-stpcpy'.
24651         * modules/unistr/u32-stpcpy-tests: New file.
24652         * tests/unistr/test-u32-stpcpy.c: New file.
24653
24654         Tests for module 'unistr/u16-stpcpy'.
24655         * modules/unistr/u16-stpcpy-tests: New file.
24656         * tests/unistr/test-u16-stpcpy.c: New file.
24657
24658         Tests for module 'unistr/u8-stpcpy'.
24659         * modules/unistr/u8-stpcpy-tests: New file.
24660         * tests/unistr/test-u8-stpcpy.c: New file.
24661         * tests/unistr/test-stpcpy.h: New file.
24662
24663         Tests for module 'unistr/u32-strcpy'.
24664         * modules/unistr/u32-strcpy-tests: New file.
24665         * tests/unistr/test-u32-strcpy.c: New file.
24666
24667         Tests for module 'unistr/u16-strcpy'.
24668         * modules/unistr/u16-strcpy-tests: New file.
24669         * tests/unistr/test-u16-strcpy.c: New file.
24670
24671         Tests for module 'unistr/u8-strcpy'.
24672         * modules/unistr/u8-strcpy-tests: New file.
24673         * tests/unistr/test-u8-strcpy.c: New file.
24674         * tests/unistr/test-strcpy.h: New file.
24675
24676         Tests for module 'unistr/u32-strnlen'.
24677         * modules/unistr/u32-strnlen-tests: New file.
24678         * tests/unistr/test-u32-strnlen.c: New file.
24679
24680         Tests for module 'unistr/u16-strnlen'.
24681         * modules/unistr/u16-strnlen-tests: New file.
24682         * tests/unistr/test-u16-strnlen.c: New file.
24683
24684         Tests for module 'unistr/u8-strnlen'.
24685         * modules/unistr/u8-strnlen-tests: New file.
24686         * tests/unistr/test-u8-strnlen.c: New file.
24687         * tests/unistr/test-strnlen.h: New file.
24688
24689         Tests for module 'unistr/u32-strlen'.
24690         * modules/unistr/u32-strlen-tests: New file.
24691         * tests/unistr/test-u32-strlen.c: New file.
24692
24693         Tests for module 'unistr/u16-strlen'.
24694         * modules/unistr/u16-strlen-tests: New file.
24695         * tests/unistr/test-u16-strlen.c: New file.
24696
24697         Tests for module 'unistr/u8-strlen'.
24698         * modules/unistr/u8-strlen-tests: New file.
24699         * tests/unistr/test-u8-strlen.c: New file.
24700
24701         Tests for module 'unistr/u32-prev'.
24702         * modules/unistr/u32-prev-tests: New file.
24703         * tests/unistr/test-u32-prev.c: New file.
24704
24705         Tests for module 'unistr/u16-prev'.
24706         * modules/unistr/u16-prev-tests: New file.
24707         * tests/unistr/test-u16-prev.c: New file.
24708
24709         Tests for module 'unistr/u8-prev'.
24710         * modules/unistr/u8-prev-tests: New file.
24711         * tests/unistr/test-u8-prev.c: New file.
24712
24713         Tests for module 'unistr/u32-next'.
24714         * modules/unistr/u32-next-tests: New file.
24715         * tests/unistr/test-u32-next.c: New file.
24716
24717         Tests for module 'unistr/u16-next'.
24718         * modules/unistr/u16-next-tests: New file.
24719         * tests/unistr/test-u16-next.c: New file.
24720
24721         Tests for module 'unistr/u8-next'.
24722         * modules/unistr/u8-next-tests: New file.
24723         * tests/unistr/test-u8-next.c: New file.
24724
24725         Tests for module 'unistr/u32-strmbtouc'.
24726         * modules/unistr/u32-strmbtouc-tests: New file.
24727         * tests/unistr/test-u32-strmbtouc.c: New file.
24728
24729         Tests for module 'unistr/u16-strmbtouc'.
24730         * modules/unistr/u16-strmbtouc-tests: New file.
24731         * tests/unistr/test-u16-strmbtouc.c: New file.
24732
24733         Tests for module 'unistr/u8-strmbtouc'.
24734         * modules/unistr/u8-strmbtouc-tests: New file.
24735         * tests/unistr/test-u8-strmbtouc.c: New file.
24736
24737         Tests for module 'unistr/u32-strmblen'.
24738         * modules/unistr/u32-strmblen-tests: New file.
24739         * tests/unistr/test-u32-strmblen.c: New file.
24740
24741         Tests for module 'unistr/u16-strmblen'.
24742         * modules/unistr/u16-strmblen-tests: New file.
24743         * tests/unistr/test-u16-strmblen.c: New file.
24744
24745         Tests for module 'unistr/u8-strmblen'.
24746         * modules/unistr/u8-strmblen-tests: New file.
24747         * tests/unistr/test-u8-strmblen.c: New file.
24748
24749         Tests for module 'unistr/u32-cpy-alloc'.
24750         * modules/unistr/u32-cpy-alloc-tests: New file.
24751         * tests/unistr/test-u32-cpy-alloc.c: New file.
24752
24753         Tests for module 'unistr/u16-cpy-alloc'.
24754         * modules/unistr/u16-cpy-alloc-tests: New file.
24755         * tests/unistr/test-u16-cpy-alloc.c: New file.
24756
24757         Tests for module 'unistr/u8-cpy-alloc'.
24758         * modules/unistr/u8-cpy-alloc-tests: New file.
24759         * tests/unistr/test-u8-cpy-alloc.c: New file.
24760         * tests/unistr/test-cpy-alloc.h: New file.
24761
24762         Tests for module 'unistr/u32-mbsnlen'.
24763         * modules/unistr/u32-mbsnlen-tests: New file.
24764         * tests/unistr/test-u32-mbsnlen.c: New file.
24765
24766         Tests for module 'unistr/u16-mbsnlen'.
24767         * modules/unistr/u16-mbsnlen-tests: New file.
24768         * tests/unistr/test-u16-mbsnlen.c: New file.
24769
24770         Tests for module 'unistr/u8-mbsnlen'.
24771         * modules/unistr/u8-mbsnlen-tests: New file.
24772         * tests/unistr/test-u8-mbsnlen.c: New file.
24773
24774         Tests for module 'unistr/u32-chr'.
24775         * modules/unistr/u32-chr-tests: New file.
24776         * tests/unistr/test-u32-chr.c: New file.
24777
24778         Tests for module 'unistr/u16-chr'.
24779         * modules/unistr/u16-chr-tests: New file.
24780         * tests/unistr/test-u16-chr.c: New file.
24781
24782         Tests for module 'unistr/u8-chr'.
24783         * modules/unistr/u8-chr-tests: New file.
24784         * tests/unistr/test-u8-chr.c: New file.
24785         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
24786
24787         Tests for module 'unistr/u32-cmp2'.
24788         * modules/unistr/u32-cmp2-tests: New file.
24789         * tests/unistr/test-u32-cmp2.c: New file.
24790
24791         Tests for module 'unistr/u16-cmp2'.
24792         * modules/unistr/u16-cmp2-tests: New file.
24793         * tests/unistr/test-u16-cmp2.c: New file.
24794
24795         Tests for module 'unistr/u8-cmp2'.
24796         * modules/unistr/u8-cmp2-tests: New file.
24797         * tests/unistr/test-u8-cmp2.c: New file.
24798         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
24799
24800         Tests for module 'unistr/u32-cmp'.
24801         * modules/unistr/u32-cmp-tests: New file.
24802         * tests/unistr/test-u32-cmp.c: New file.
24803
24804         Tests for module 'unistr/u16-cmp'.
24805         * modules/unistr/u16-cmp-tests: New file.
24806         * tests/unistr/test-u16-cmp.c: New file.
24807
24808         Tests for module 'unistr/u8-cmp'.
24809         * modules/unistr/u8-cmp-tests: New file.
24810         * tests/unistr/test-u8-cmp.c: New file.
24811         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
24812
24813         Tests for module 'unistr/u32-set'.
24814         * modules/unistr/u32-set-tests: New file.
24815         * tests/unistr/test-u32-set.c: New file.
24816
24817         Tests for module 'unistr/u16-set'.
24818         * modules/unistr/u16-set-tests: New file.
24819         * tests/unistr/test-u16-set.c: New file.
24820
24821         Tests for module 'unistr/u8-set'.
24822         * modules/unistr/u8-set-tests: New file.
24823         * tests/unistr/test-u8-set.c: New file.
24824         * tests/unistr/test-set.h: New file.
24825
24826         Tests for module 'unistr/u32-move'.
24827         * modules/unistr/u32-move-tests: New file.
24828         * tests/unistr/test-u32-move.c: New file.
24829
24830         Tests for module 'unistr/u16-move'.
24831         * modules/unistr/u16-move-tests: New file.
24832         * tests/unistr/test-u16-move.c: New file.
24833
24834         Tests for module 'unistr/u8-move'.
24835         * modules/unistr/u8-move-tests: New file.
24836         * tests/unistr/test-u8-move.c: New file.
24837         * tests/unistr/test-move.h: New file.
24838
24839         Tests for module 'unistr/u32-cpy'.
24840         * modules/unistr/u32-cpy-tests: New file.
24841         * tests/unistr/test-u32-cpy.c: New file.
24842
24843         Tests for module 'unistr/u16-cpy'.
24844         * modules/unistr/u16-cpy-tests: New file.
24845         * tests/unistr/test-u16-cpy.c: New file.
24846
24847         Tests for module 'unistr/u8-cpy'.
24848         * modules/unistr/u8-cpy-tests: New file.
24849         * tests/unistr/test-u8-cpy.c: New file.
24850         * tests/unistr/test-cpy.h: New file.
24851
24852 2010-01-09  Bruno Haible  <bruno@clisp.org>
24853
24854         Tests for module 'unistr/u32-uctomb'.
24855         * modules/unistr/u32-uctomb-tests: New file.
24856         * tests/unistr/test-u32-uctomb.c: New file.
24857
24858         Tests for module 'unistr/u16-uctomb'.
24859         * modules/unistr/u16-uctomb-tests: New file.
24860         * tests/unistr/test-u16-uctomb.c: New file.
24861
24862         Tests for module 'unistr/u8-uctomb'.
24863         * modules/unistr/u8-uctomb-tests: New file.
24864         * tests/unistr/test-u8-uctomb.c: New file.
24865
24866         Tests for module 'unistr/u32-mbtoucr'.
24867         * modules/unistr/u32-mbtoucr-tests: New file.
24868         * tests/unistr/test-u32-mbtoucr.c: New file.
24869
24870         Tests for module 'unistr/u16-mbtoucr'.
24871         * modules/unistr/u16-mbtoucr-tests: New file.
24872         * tests/unistr/test-u16-mbtoucr.c: New file.
24873
24874         Tests for module 'unistr/u8-mbtoucr'.
24875         * modules/unistr/u8-mbtoucr-tests: New file.
24876         * tests/unistr/test-u8-mbtoucr.c: New file.
24877
24878         Tests for module 'unistr/u32-mbtouc'.
24879         * modules/unistr/u32-mbtouc-tests: New file.
24880         * tests/unistr/test-u32-mbtouc.c: New file.
24881
24882         Tests for module 'unistr/u16-mbtouc'.
24883         * modules/unistr/u16-mbtouc-tests: New file.
24884         * tests/unistr/test-u16-mbtouc.c: New file.
24885
24886         Tests for module 'unistr/u8-mbtouc'.
24887         * modules/unistr/u8-mbtouc-tests: New file.
24888         * tests/unistr/test-u8-mbtouc.c: New file.
24889
24890         Tests for module 'unistr/u32-mbtouc-unsafe'.
24891         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
24892         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
24893         * tests/unistr/test-u32-mbtouc.h: New file.
24894
24895         Tests for module 'unistr/u16-mbtouc-unsafe'.
24896         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
24897         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
24898         * tests/unistr/test-u16-mbtouc.h: New file.
24899
24900         Tests for module 'unistr/u8-mbtouc-unsafe'.
24901         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
24902         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
24903         * tests/unistr/test-u8-mbtouc.h: New file.
24904
24905         Tests for module 'unistr/u32-mblen'.
24906         * modules/unistr/u32-mblen-tests: New file.
24907         * tests/unistr/test-u32-mblen.c: New file.
24908
24909         Tests for module 'unistr/u16-mblen'.
24910         * modules/unistr/u16-mblen-tests: New file.
24911         * tests/unistr/test-u16-mblen.c: New file.
24912
24913         Tests for module 'unistr/u8-mblen'.
24914         * modules/unistr/u8-mblen-tests: New file.
24915         * tests/unistr/test-u8-mblen.c: New file.
24916
24917         Tests for module 'unistr/u32-to-u16'.
24918         * modules/unistr/u32-to-u16-tests: New file.
24919         * tests/unistr/test-u32-to-u16.c: New file.
24920
24921         Tests for module 'unistr/u32-to-u8'.
24922         * modules/unistr/u32-to-u8-tests: New file.
24923         * tests/unistr/test-u32-to-u8.c: New file.
24924
24925         Tests for module 'unistr/u16-to-u32'.
24926         * modules/unistr/u16-to-u32-tests: New file.
24927         * tests/unistr/test-u16-to-u32.c: New file.
24928
24929         Tests for module 'unistr/u16-to-u8'.
24930         * modules/unistr/u16-to-u8-tests: New file.
24931         * tests/unistr/test-u16-to-u8.c: New file.
24932
24933         Tests for module 'unistr/u8-to-u32'.
24934         * modules/unistr/u8-to-u32-tests: New file.
24935         * tests/unistr/test-u8-to-u32.c: New file.
24936
24937         Tests for module 'unistr/u8-to-u16'.
24938         * modules/unistr/u8-to-u16-tests: New file.
24939         * tests/unistr/test-u8-to-u16.c: New file.
24940
24941         Tests for module 'unistr/u32-check'.
24942         * modules/unistr/u32-check-tests: New file.
24943         * tests/unistr/test-u32-check.c: New file.
24944
24945         Tests for module 'unistr/u16-check'.
24946         * modules/unistr/u16-check-tests: New file.
24947         * tests/unistr/test-u16-check.c: New file.
24948
24949         Tests for module 'unistr/u8-check'.
24950         * modules/unistr/u8-check-tests: New file.
24951         * tests/unistr/test-u8-check.c: New file.
24952
24953         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
24954         (category_equals): New function.
24955         (main): Add more tests.
24956         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
24957
24958         * tests/unictype/test-bidi_byname.c (main): Add more tests.
24959
24960 2010-01-10  Bruno Haible  <bruno@clisp.org>
24961
24962         unistr/u*-strcoll: Try harder to distinguish different strings.
24963         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
24964         compare s1 and s2 to see if they are different.
24965
24966 2010-01-10  Bruno Haible  <bruno@clisp.org>
24967
24968         unistr/u*-stpncpy: Fix the return value.
24969         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
24970         description of the return value consistent with stpncpy in glibc.
24971         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
24972         written non-NUL unit.
24973
24974 2010-01-10  Bruno Haible  <bruno@clisp.org>
24975
24976         unistr/u*-next: Add missing dependencies.
24977         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
24978         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
24979         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
24980
24981 2010-01-10  Bruno Haible  <bruno@clisp.org>
24982
24983         unistr/u8-mbsnlen: Fix return value for incomplete character.
24984         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
24985         u8_mblen.
24986         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
24987         Remove unistr/u8-mblen.
24988         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
24989         u16_mblen.
24990         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
24991         Remove unistr/u16-mblen.
24992
24993 2010-01-10  Bruno Haible  <bruno@clisp.org>
24994
24995         wchar: Fix compilation error when <wchar.h> is used from coreutils.
24996         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
24997         Reported by Brian Gough <bjg@gnu.org> and
24998         Chris Clayton <chris2553@googlemail.com> via
24999         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
25000
25001 2010-01-09  Bruno Haible  <bruno@clisp.org>
25002
25003         unistr/u16-to-u32: Reject invalid input.
25004         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
25005         u16_mbtouc.
25006         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
25007         Remove unistr/u16-mbtouc.
25008
25009         unistr/u16-to-u8: Reject invalid input.
25010         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
25011         u16_mbtouc.
25012         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
25013         Remove unistr/u16-mbtouc.
25014
25015         unistr/u8-to-u32: Reject invalid input.
25016         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
25017         u8_mbtouc.
25018         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
25019         Remove unistr/u8-mbtouc.
25020
25021         unistr/u8-to-u16: Reject invalid input.
25022         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
25023         u8_mbtouc.
25024         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
25025         Remove unistr/u8-mbtouc.
25026
25027 2010-01-09  Bruno Haible  <bruno@clisp.org>
25028
25029         Tests for module 'getlogin'.
25030         * modules/getlogin-tests: New file.
25031         * tests/test-getlogin.c: New file.
25032
25033         New module 'getlogin'.
25034         * lib/unistd.in.h (getlogin): New declaration.
25035         * lib/getlogin.c: New file.
25036         * m4/getlogin.m4: New file.
25037         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
25038         HAVE_GETLOGIN.
25039         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
25040         HAVE_GETLOGIN.
25041         * modules/getlogin: New file.
25042         * doc/posix-functions/getlogin.texi: Mention the new module.
25043         Reported by John W. Eaton <jwe@gnu.org>.
25044
25045 2010-01-09  Bruno Haible  <bruno@clisp.org>
25046
25047         getlogin_r: Support for native Windows.
25048         * lib/getlogin_r.c: Include <windows.h>
25049         (getlogin_r): Implement for native Windows.
25050         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
25051         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
25052         via John W. Eaton <jwe@gnu.org>.
25053
25054 2010-01-09  Bruno Haible  <bruno@clisp.org>
25055
25056         getlogin_r: Small fixes.
25057         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
25058         succeeds.
25059         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
25060         before testing whether getlogin_r is declared. No need to set
25061         HAVE_DECL_GETLOGIN_R to 1.
25062         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
25063
25064 2010-01-09  Bruno Haible  <bruno@clisp.org>
25065
25066         * lib/unistd.in.h (getlogin_r): Add comment.
25067
25068 2010-01-09  Bruno Haible  <bruno@clisp.org>
25069
25070         Tests for module 'getlogin_r'.
25071         * modules/getlogin_r-tests: New file.
25072         * tests/test-getlogin_r.c: New file.
25073
25074 2010-01-09  Jim Meyering  <meyering@redhat.com>
25075
25076         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
25077         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
25078         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
25079
25080 2010-01-08  Simon Josefsson  <simon@josefsson.org>
25081
25082         * lib/dup2.c (rpl_dup2): Improve comment.
25083
25084 2010-01-08  Eric Blake  <ebb9@byu.net>
25085
25086         maint.mk: allow packages to add makefile @@ exceptions
25087         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
25088         (sc_makefile_check): Rename...
25089         (sc_makefile_at_at_check): ...to this, and use hook.
25090
25091         dup2: work around mingw bug
25092         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
25093         Reported by Simon Josefsson.
25094
25095 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
25096
25097         glob: Fix C++ compilation.
25098         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
25099         C++.
25100
25101 2010-01-07  Bruno Haible  <bruno@clisp.org>
25102
25103         Fix indentation of wctype.in.h, broken since 2007-01-06.
25104         * lib/wctype.in.h: Fix indentation of preprocessor directives.
25105
25106 2010-01-07  Bruno Haible  <bruno@clisp.org>
25107
25108         mbslen: Avoid collision with system function.
25109         * lib/string.in.h [MirBSD]: Include <wchar.h>.
25110         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
25111         * m4/mbslen.m4: New file.
25112         * modules/mbslen (Files): Add it.
25113         (configure.ac): Invoke gl_MBSLEN.
25114         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
25115         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
25116         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
25117         via Ian Beckwith <ianb@erislabs.net>.
25118
25119 2010-01-07  Bruno Haible  <bruno@clisp.org>
25120
25121         dirent: Document the last fix.
25122         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
25123
25124 2010-01-07  Bruno Haible  <bruno@clisp.org>
25125
25126         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
25127         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
25128         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
25129         va_list are defined.
25130         * doc/posix-headers/stdio.texi: Document the bug of missing types.
25131         Reported by Eric Blake.
25132
25133 2010-01-07  Bruno Haible  <bruno@clisp.org>
25134
25135         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
25136         * modules/xlist (Depends-on): Add 'list',
25137         * modules/xoset (Depends-on): Add 'oset'.
25138         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25139
25140 2010-01-07  Bruno Haible  <bruno@clisp.org>
25141
25142         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
25143         * doc/posix-functions/strncasecmp.texi: Likewise.
25144
25145 2010-01-07  Bruno Haible  <bruno@clisp.org>
25146
25147         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
25148
25149 2010-01-07  John W. Eaton  <jwe@octave.org>
25150
25151         wctype: allow C++ use
25152         * lib/wctype.in.h: Add extern "C" block for C++.
25153
25154 2010-01-06  Eric Blake  <ebb9@byu.net>
25155
25156         maint.mk: detect incorrect GFDL usage
25157         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
25158
25159 2010-01-06  Jim Meyering  <meyering@redhat.com>
25160         and Eric Blake  <ebb9@byu.net>
25161
25162         maint.mk: ignore multi-line copyright in NEWS
25163         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
25164
25165 2010-01-06  Eric Blake  <ebb9@byu.net>
25166
25167         select: add missing dependency
25168         * modules/select-tests (Depends-on): Move sockets dependency...
25169         * modules/select (Depends-on): ...here.
25170         Reported by Ian Beckwith.
25171
25172         doc: regenerate INSTALL
25173         * doc/INSTALL: Reflect recent autoconf update.
25174         * doc/INSTALL.ISO: Likewise.
25175         * doc/INSTALL.UTF-8: Likewise.
25176
25177         pread: fix compilation on glibc
25178         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
25179         Reported by Ralf Wildenhues.
25180
25181         dirent: fix test failure
25182         * lib/dirent.in.h (includes): Guarantee ino_t.
25183         Reported by Ralf Wildenhues.
25184
25185 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
25186
25187         linkat, renameat: avoid bad free
25188         * lib/at-func2.c (at_func2): Fix typo.
25189         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
25190
25191 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25192
25193         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
25194         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
25195         to avoid failure of symlink test later.
25196
25197 2010-01-06  Eric Blake  <ebb9@byu.net>
25198
25199         stdio, unistd: guarantee ssize_t
25200         * lib/unistd.in.h (includes): Ensure that types required by POSIX
25201         2008 are exposed when needed.
25202         * lib/stdio.in.h (includes): Likewise.
25203         Reported by Ralf Wildenhues.
25204
25205 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
25206
25207         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
25208         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
25209         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
25210
25211 2010-01-06  Jim Meyering  <meyering@redhat.com>
25212
25213         readtokens: this module *does* require xalloc.h
25214         It uses only functions that were omitted by the old syntax-check rule.
25215         * lib/readtokens.c: Include "xalloc.h" once again.
25216         * modules/readtokens (Depends-on): Add xalloc.
25217         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
25218
25219 2010-01-05  Eric Blake  <ebb9@byu.net>
25220
25221         maint: support 'make announcement' from a VPATH build
25222         * top/maint.mk (announcement): Look for correct NEWS file.
25223
25224 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
25225
25226         utimens (fdutimens): ignore a negative FD, per contract
25227         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
25228         when we have a valid file descriptor.  Otherwise, using a brand
25229         new glibc (with just-patched futimens that now fails with EBADF)
25230         would cause this function to fail with ENOSYS.
25231         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
25232         See also http://bugzilla.redhat.com/552320.
25233
25234 2010-01-05  Eric Blake  <ebb9@byu.net>
25235
25236         strcase: document what it provides
25237         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
25238         gnulib module.
25239         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
25240         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
25241
25242 2010-01-05  Jim Meyering  <meyering@redhat.com>
25243
25244         maint: remove useless inclusions of "xalloc.h"
25245         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
25246         * lib/readtokens.c: Likewise.
25247         * lib/same.c: Likewise.
25248         * modules/getloadavg (Depends-on): Remove xalloc.
25249         * modules/readtokens: Likewise.
25250         * modules/same: Likewise.
25251
25252         maint.mk: include 4 more function names in alloca.h-checking regexp
25253         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
25254         regexp.  Before, we would give a false-positive (saying alloca.h
25255         is included unnecessarily) when the only uses involved omitted symbols.
25256
25257         xalloc.h: use consistent formatting
25258         * lib/xalloc.h: Move declarations to start in the first column.
25259
25260 2010-01-05  Eric Blake  <ebb9@byu.net>
25261
25262         mkdir: avoid xalloc
25263         * lib/mkdir.c (includes): Drop unused header.
25264         Reported by John W. Eaton.
25265
25266 2010-01-04  Jim Meyering  <meyering@redhat.com>
25267
25268         nl_langinfo: avoid configure-time syntax error
25269         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
25270         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
25271         the empty string.  Don't let that provoke a shell syntax error.
25272
25273         regcomp, regexec, fnmatch: avoid array bounds read error
25274         * lib/regcomp.c (build_equiv_class): From glibc:
25275         Use only the low 24 bits of a findidx return value as an index
25276         into the weights array.  Patch by Ulrich Drepper:
25277         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
25278         * lib/regexec.c (check_node_accept_bytes): Likewise.
25279         * lib/fnmatch_loop.c (FCT): Likewise.
25280
25281         regcomp: skip collseq lookup when there are no rules
25282         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
25283         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
25284
25285         regcomp: recognize ill-formed { } expressions
25286         * lib/regcomp.c (parse_dup_op): From glibc:
25287         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
25288
25289         regcomp: fix typo in comment
25290         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
25291         s/satisfy/satisfies/.
25292
25293         regcomp: sync from glibc: remove dead store
25294         * lib/regcomp.c (duplicate_node_closure): Remove useless
25295         search_duplicated_node call and dead store.
25296
25297         regcomp: sync from glibc; always use nl_langinfo
25298         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
25299         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
25300         * modules/regex (Depends-on): Add nl_langinfo.
25301
25302 2010-01-04  Eric Blake  <ebb9@byu.net>
25303
25304         fdopendir: fix configure test
25305         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
25306
25307 2010-01-01  Bruno Haible  <bruno@clisp.org>
25308
25309         wchar: Remove unused configure check.
25310         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
25311
25312 2010-01-01  Eric Blake  <ebb9@byu.net>
25313
25314         headers: make check of system header explicit
25315         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
25316         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
25317         ourselves.
25318         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
25319         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25320         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
25321         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
25322         internals.
25323         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
25324         missing.
25325         Suggested by Bruno Haible.
25326
25327 2010-01-01  Jim Meyering  <meyering@redhat.com>
25328
25329         ChangeLog: tweak to eliminate unnecessary copyright line
25330         * ChangeLog: Remove a copyright line that was mistakenly updated
25331         by today's update-copyright run.  Reported by Eric Blake.
25332
25333         test-update-copyright: don't let envvar setting cause test failure
25334         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
25335
25336 2010-01-01  Bruno Haible  <bruno@clisp.org>
25337
25338         localename: Avoid gcc warning.
25339         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
25340         function if it is not used.
25341
25342 2010-01-01  Jim Meyering  <meyering@redhat.com>
25343
25344         update nearly all FSF copyright year lists to include 2010
25345         Use the same procedure as for 2009, outlined in
25346         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
25347
25348         version-etc: set COPYRIGHT_YEAR to 2010
25349         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
25350
25351 2009-12-31  Eric Blake  <ebb9@byu.net>
25352
25353         doc: correct availability of cygwin 1.5.x getopt
25354         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
25355         variables.
25356         * doc/posix-functions/opterr.texi (opterr): Likewise.
25357         * doc/posix-functions/optind.texi (optind): Likewise.
25358         * doc/posix-functions/optopt.texi (optopt): Likewise.
25359         * doc/posix-functions/tzname.texi (tzname): Likewise.
25360
25361         openat: update maintainer
25362         * modules/openat (Maintainer): Add myself.
25363
25364         utimens: avoid shadowing warning
25365         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
25366         buffers into one, to avoid shadowing, as well as avoiding a
25367         redundant stat.
25368         Reported by Jim Meyering.
25369
25370         test-dup2: avoid compiler warning
25371         * tests/test-dup2.c (is_inheritable): Only define if used.
25372
25373 2010-01-01  Bruno Haible  <bruno@clisp.org>
25374
25375         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
25376         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
25377         defined, use wctomb instead of wcrtomb.
25378
25379 2010-01-01  Bruno Haible  <bruno@clisp.org>
25380
25381         iconv: Reject native Solaris iconv.
25382         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
25383         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
25384
25385 2009-12-31  Bruno Haible  <bruno@clisp.org>
25386
25387         * tests/test-signal.c (main): Remove test of 'SIG'.
25388
25389 2009-12-31  Bruno Haible  <bruno@clisp.org>
25390
25391         spawn: Fix incomplete fix.
25392         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
25393         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
25394         warnings for GNULIB_POSIXCHECK again.
25395         Reported by Eric Blake.
25396
25397 2009-12-31  Bruno Haible  <bruno@clisp.org>
25398
25399         Avoid namespace pollution on glibc systems.
25400         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
25401         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
25402         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
25403         glibc systems.
25404
25405 2009-12-31  Bruno Haible  <bruno@clisp.org>
25406
25407         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
25408         (gl_REPLACE_WCHAR_H): Turn into a no-op.
25409         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
25410         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
25411         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
25412         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
25413         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
25414
25415 2009-12-31  Bruno Haible  <bruno@clisp.org>
25416
25417         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
25418         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
25419         afterwards.
25420
25421 2009-12-31  Bruno Haible  <bruno@clisp.org>
25422
25423         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
25424         SYS_UTSNAME_H.
25425
25426 2009-12-31  Bruno Haible  <bruno@clisp.org>
25427
25428         spawn: Fix misapplied patch.
25429         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
25430         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
25431         warnings for GNULIB_POSIXCHECK.
25432
25433 2009-12-31  Bruno Haible  <bruno@clisp.org>
25434
25435         times: Update after sys_times changed.
25436         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
25437         * modules/times (Files): Add it.
25438         (configure.ac): Invoke gl_FUNC_TIMES.
25439
25440 2009-12-31  Bruno Haible  <bruno@clisp.org>
25441
25442         Use AC_C_INLINE where necessary.
25443         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
25444         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
25445         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
25446         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
25447         * m4/mbfile.m4 (gl_MBFILE): Likewise.
25448         * m4/mbiter.m4 (gl_MBITER): Likewise.
25449         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
25450         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
25451         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
25452         * modules/u64 (configure.ac): Likewise.
25453
25454 2009-12-31  Bruno Haible  <bruno@clisp.org>
25455
25456         Use AC_C_INLINE instead of module 'inline' where possible.
25457         * modules/inline (Description): Clarify purpose.
25458         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
25459         * modules/count-one-bits (Depends-on): Remove inline.
25460         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
25461         * modules/openat (Depends-on): Remove inline.
25462         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
25463         instead of depending on module 'inline'.
25464         * modules/filevercmp (Depends-on, configure.ac): Likewise.
25465         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
25466         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
25467         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
25468         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
25469         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
25470         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
25471         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
25472         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
25473         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
25474         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
25475         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
25476         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
25477         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
25478         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
25479         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
25480         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
25481         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
25482         Likewise.
25483         * modules/unictype/property-ascii-hex-digit (Depends-on,
25484         configure.ac): Likewise.
25485         * modules/unictype/property-bidi-arabic-digit (Depends-on,
25486         configure.ac): Likewise.
25487         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
25488         configure.ac): Likewise.
25489         * modules/unictype/property-bidi-block-separator (Depends-on,
25490         configure.ac): Likewise.
25491         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
25492         configure.ac): Likewise.
25493         * modules/unictype/property-bidi-common-separator (Depends-on,
25494         configure.ac): Likewise.
25495         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
25496         Likewise.
25497         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
25498         configure.ac): Likewise.
25499         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
25500         configure.ac): Likewise.
25501         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
25502         configure.ac): Likewise.
25503         * modules/unictype/property-bidi-european-digit (Depends-on,
25504         configure.ac): Likewise.
25505         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
25506         configure.ac): Likewise.
25507         * modules/unictype/property-bidi-left-to-right (Depends-on,
25508         configure.ac): Likewise.
25509         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
25510         configure.ac): Likewise.
25511         * modules/unictype/property-bidi-other-neutral (Depends-on,
25512         configure.ac): Likewise.
25513         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
25514         Likewise.
25515         * modules/unictype/property-bidi-segment-separator (Depends-on,
25516         configure.ac): Likewise.
25517         * modules/unictype/property-bidi-whitespace (Depends-on,
25518         configure.ac): Likewise.
25519         * modules/unictype/property-combining (Depends-on, configure.ac):
25520         Likewise.
25521         * modules/unictype/property-composite (Depends-on, configure.ac):
25522         Likewise.
25523         * modules/unictype/property-currency-symbol (Depends-on,
25524         configure.ac): Likewise.
25525         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
25526         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
25527         Likewise.
25528         * modules/unictype/property-default-ignorable-code-point (Depends-on,
25529         configure.ac): Likewise.
25530         * modules/unictype/property-deprecated (Depends-on, configure.ac):
25531         Likewise.
25532         * modules/unictype/property-diacritic (Depends-on, configure.ac):
25533         Likewise.
25534         * modules/unictype/property-extender (Depends-on, configure.ac):
25535         Likewise.
25536         * modules/unictype/property-format-control (Depends-on, configure.ac):
25537         Likewise.
25538         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
25539         Likewise.
25540         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
25541         Likewise.
25542         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
25543         Likewise.
25544         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
25545         Likewise.
25546         * modules/unictype/property-hyphen (Depends-on, configure.ac):
25547         Likewise.
25548         * modules/unictype/property-id-continue (Depends-on, configure.ac):
25549         Likewise.
25550         * modules/unictype/property-id-start (Depends-on, configure.ac):
25551         Likewise.
25552         * modules/unictype/property-ideographic (Depends-on, configure.ac):
25553         Likewise.
25554         * modules/unictype/property-ids-binary-operator (Depends-on,
25555         configure.ac): Likewise.
25556         * modules/unictype/property-ids-trinary-operator (Depends-on,
25557         configure.ac): Likewise.
25558         * modules/unictype/property-ignorable-control (Depends-on,
25559         configure.ac): Likewise.
25560         * modules/unictype/property-iso-control (Depends-on, configure.ac):
25561         Likewise.
25562         * modules/unictype/property-join-control (Depends-on, configure.ac):
25563         Likewise.
25564         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
25565         Likewise.
25566         * modules/unictype/property-line-separator (Depends-on, configure.ac):
25567         Likewise.
25568         * modules/unictype/property-logical-order-exception (Depends-on,
25569         configure.ac): Likewise.
25570         * modules/unictype/property-lowercase (Depends-on, configure.ac):
25571         Likewise.
25572         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
25573         * modules/unictype/property-non-break (Depends-on, configure.ac):
25574         Likewise.
25575         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
25576         Likewise.
25577         * modules/unictype/property-numeric (Depends-on, configure.ac):
25578         Likewise.
25579         * modules/unictype/property-other-alphabetic (Depends-on,
25580         configure.ac): Likewise.
25581         * modules/unictype/property-other-default-ignorable-code-point
25582         (Depends-on, configure.ac): Likewise.
25583         * modules/unictype/property-other-grapheme-extend (Depends-on,
25584         configure.ac): Likewise.
25585         * modules/unictype/property-other-id-continue (Depends-on,
25586         configure.ac): Likewise.
25587         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
25588         Likewise.
25589         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
25590         Likewise.
25591         * modules/unictype/property-other-math (Depends-on, configure.ac):
25592         Likewise.
25593         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
25594         Likewise.
25595         * modules/unictype/property-paired-punctuation (Depends-on,
25596         configure.ac): Likewise.
25597         * modules/unictype/property-paragraph-separator (Depends-on,
25598         configure.ac): Likewise.
25599         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
25600         Likewise.
25601         * modules/unictype/property-pattern-white-space (Depends-on,
25602         configure.ac): Likewise.
25603         * modules/unictype/property-private-use (Depends-on, configure.ac):
25604         Likewise.
25605         * modules/unictype/property-punctuation (Depends-on, configure.ac):
25606         Likewise.
25607         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
25608         Likewise.
25609         * modules/unictype/property-radical (Depends-on, configure.ac):
25610         Likewise.
25611         * modules/unictype/property-sentence-terminal (Depends-on,
25612         configure.ac): Likewise.
25613         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
25614         Likewise.
25615         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
25616         * modules/unictype/property-terminal-punctuation (Depends-on,
25617         configure.ac): Likewise.
25618         * modules/unictype/property-titlecase (Depends-on, configure.ac):
25619         Likewise.
25620         * modules/unictype/property-unassigned-code-value (Depends-on,
25621         configure.ac): Likewise.
25622         * modules/unictype/property-unified-ideograph (Depends-on,
25623         configure.ac): Likewise.
25624         * modules/unictype/property-uppercase (Depends-on, configure.ac):
25625         Likewise.
25626         * modules/unictype/property-variation-selector (Depends-on,
25627         configure.ac): Likewise.
25628         * modules/unictype/property-white-space (Depends-on, configure.ac):
25629         Likewise.
25630         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
25631         Likewise.
25632         * modules/unictype/property-xid-start (Depends-on, configure.ac):
25633         Likewise.
25634         * modules/unictype/property-zero-width (Depends-on, configure.ac):
25635         Likewise.
25636         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
25637         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
25638         Likewise.
25639
25640 2009-12-31  Bruno Haible  <bruno@clisp.org>
25641
25642         Remove unnecessary AC_C_INLINE invocation.
25643         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
25644         since 2009-08-21.
25645
25646 2009-12-31  Jim Meyering  <meyering@redhat.com>
25647
25648         maint.mk: don't require explicit gpg_key_ID in cfg.mk
25649         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
25650         With this change, we can all remove the gpg_key_ID = ... definition
25651         from our respective cfg.mk files.
25652
25653         maint.mk: create announcement template in ~/, not in /tmp
25654         * top/maint.mk (emit_upload_commands): Adjust.
25655         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
25656         Remove temporary file, .ci-msg.
25657
25658 2009-12-31  Eric Blake  <ebb9@byu.net>
25659
25660         link-warning: always build headers with link warnings
25661         * modules/arpa_inet (Makefile.am): Always build replacement
25662         header.
25663         * modules/ctype (Makefile.am): Likewise.
25664         * modules/dirent (Makefile.am): Likewise.
25665         * modules/inttypes (Makefile.am): Likewise.
25666         * modules/langinfo (Makefile.am): Likewise.
25667         * modules/locale (Makefile.am): Likewise.
25668         * modules/spawn (Makefile.am): Likewise.
25669         * modules/sys_file (Makefile.am): Likewise.
25670         * modules/sys_ioctl (Makefile.am): Likewise.
25671         * modules/sys_select (Makefile.am): Likewise.
25672         * modules/sys_socket (Makefile.am): Likewise.
25673         * modules/sys_times (Makefile.am): Likewise.
25674         * modules/sys_utsname (Makefile.am): Likewise.
25675         * modules/sys_wait (Makefile.am): Likewise.
25676         * modules/wchar (Makefile.am): Likewise.
25677         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
25678         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
25679         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
25680         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
25681         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
25682         Likewise.
25683         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
25684         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
25685         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
25686         Likewise.
25687         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
25688         Likewise.
25689         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
25690         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
25691         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
25692         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25693         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
25694         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
25695         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
25696         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
25697         (gl_WCHAR_H_DEFAULTS): Likewise.
25698
25699 2009-12-31  Eric Blake  <ebb9@byu.net>
25700
25701         signal, spawn: use link warnings
25702         * lib/signal.in.h (sigset_t): Make unconditional.
25703         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
25704         (sigpending, sigprocmask, sigaction): Add link warnings.
25705         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
25706         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
25707         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
25708         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
25709         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
25710         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
25711         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
25712         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
25713         (posix_spawn_file_actions_destroy)
25714         (posix_spawn_file_actions_addopen)
25715         (posix_spawn_file_actions_addclose)
25716         (posix_spawn_file_actions_adddup2): Likewise.
25717         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
25718         * tests/test-signal.c (main): Enhance test.
25719
25720         spawn: improve wrapper support
25721         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
25722         (gl_SPAWN_H_DEFAULTS): New defaults.
25723         * modules/spawn (Makefile.am): Substitute them.
25724         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
25725         Only declare if missing or broken.
25726
25727         sys_times, sys_utsname: use include_next
25728         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
25729         header.
25730         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
25731         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
25732         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
25733         * modules/sys_times (Depends-on): Add include_next.
25734         (Makefile.am): Substitute additional values.
25735         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
25736         * lib/sys_times.in.h (includes): Include native header, if
25737         available.
25738         * lib/sys_utsname.in.h (includes): Likewise.
25739         * tests/test-sys_times.c (main): Enhance test.
25740
25741         fdutimensat: revert prior patch
25742         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
25743         utimens.h.
25744         Reported by Bruno Haible.
25745
25746 2009-12-30  Eric Blake  <ebb9@byu.net>
25747
25748         sys_wait: drop link-warning dependency
25749         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
25750         link-warning efforts.
25751         * lib/sys_wait.in.h: Likewise.
25752
25753         fdutimensat: remove bogus dependency
25754         * modules/fdutimensat (Depends-on): Drop inline.
25755
25756         unistd: fix typo
25757         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
25758
25759 2009-12-30  Bruno Haible  <bruno@clisp.org>
25760
25761         Fix compilation error with Solaris cc.
25762         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
25763         * lib/unicase/u16-is-invariant.c: Likewise.
25764         * lib/unicase/u32-is-invariant.c: Likewise.
25765         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
25766
25767 2009-12-30  Bruno Haible  <bruno@clisp.org>
25768
25769         Fix test crash.
25770         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
25771         locales.
25772         Reported by Simon Josefsson <simon@josefsson.org>.
25773
25774 2009-12-30  Bruno Haible  <bruno@clisp.org>
25775
25776         Fix compilation error on most platforms.
25777         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
25778         Reported by Simon Josefsson <simon@josefsson.org>
25779         and Nelson H. F. Beebe <beebe@math.utah.edu>.
25780
25781 2009-12-30  Eric Blake  <ebb9@byu.net>
25782
25783         futimens, utimensat: work around ntfs-3g bug
25784         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
25785         a ctime bug is present, and expand workaround to cover ntfs-3g.
25786         * lib/utimens.c (fdutimens, lutimens): Likewise.
25787         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
25788         (validate_timespec): Adjust return value.
25789         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
25790         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
25791         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
25792
25793 2009-12-29  Eric Blake  <ebb9@byu.net>
25794
25795         link-warning: make usage consistent
25796         * modules/ctype (Depends-on): Add link-warning.
25797         (Makefile.am): Update rules accordingly.
25798         * modules/langinfo (Depends-on, Makefile.am): Likewise.
25799         * modules/locale (Depends-on, Makefile.am): Likewise.
25800         * modules/sys_file (Makefile.am): Likewise.
25801         * modules/getopt-posix (Makefile.am): Delete unused link warning
25802         efforts.
25803         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
25804         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
25805         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
25806         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
25807
25808         stdio: remove unused variables
25809         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
25810         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
25811         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
25812
25813         tests: test more substitute headers
25814         * modules/ctype-tests: New file.
25815         * modules/dirent-tests: Likewise.
25816         * modules/spawn-tests: Likewise.
25817         * modules/sys_file-tests: Likewise.
25818         * modules/sys_ioctl-tests: Likewise.
25819         * modules/sys_wait-tests: Likewise.
25820         * tests/test-ctype.c: Likewise.
25821         * tests/test-dirent.c: Likewise.
25822         * tests/test-spawn.c: Likewise.
25823         * tests/test-sys_file.c: Likewise.
25824         * tests/test-sys_ioctl.c: Likewise.
25825         * tests/test-sys_wait.c: Likewise.
25826         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
25827         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
25828         whether or not flock is in use.
25829
25830         tests: remove License section from module
25831         * modules/arpa_inet-tests: Remove unneeded section.
25832         * modules/byteswap-tests: Likewise.
25833         * modules/ceilf-tests: Likewise.
25834         * modules/ceill-tests: Likewise.
25835         * modules/crypto/des-tests: Likewise.
25836         * modules/crypto/gc-arcfour-tests: Likewise.
25837         * modules/crypto/gc-arctwo-tests: Likewise.
25838         * modules/crypto/gc-des-tests: Likewise.
25839         * modules/crypto/gc-hmac-md5-tests: Likewise.
25840         * modules/crypto/gc-hmac-sha1-tests: Likewise.
25841         * modules/crypto/gc-md2-tests: Likewise.
25842         * modules/crypto/gc-md4-tests: Likewise.
25843         * modules/crypto/gc-md5-tests: Likewise.
25844         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
25845         * modules/crypto/gc-rijndael-tests: Likewise.
25846         * modules/crypto/gc-sha1-tests: Likewise.
25847         * modules/crypto/gc-tests: Likewise.
25848         * modules/crypto/md2-tests: Likewise.
25849         * modules/crypto/md4-tests: Likewise.
25850         * modules/fcntl-h-tests: Likewise.
25851         * modules/floorf-tests: Likewise.
25852         * modules/floorl-tests: Likewise.
25853         * modules/frexp-nolibm-tests: Likewise.
25854         * modules/frexp-tests: Likewise.
25855         * modules/frexpl-nolibm-tests: Likewise.
25856         * modules/frexpl-tests: Likewise.
25857         * modules/getaddrinfo-tests: Likewise.
25858         * modules/inttypes-tests: Likewise.
25859         * modules/isfinite-tests: Likewise.
25860         * modules/isinf-tests: Likewise.
25861         * modules/ldexpl-tests: Likewise.
25862         * modules/locale-tests: Likewise.
25863         * modules/math-tests: Likewise.
25864         * modules/netdb-tests: Likewise.
25865         * modules/netinet_in-tests: Likewise.
25866         * modules/printf-frexp-tests: Likewise.
25867         * modules/printf-frexpl-tests: Likewise.
25868         * modules/priv-set-tests: Likewise.
25869         * modules/random_r-tests: Likewise.
25870         * modules/round-tests: Likewise.
25871         * modules/roundf-tests: Likewise.
25872         * modules/roundl-tests: Likewise.
25873         * modules/search-tests: Likewise.
25874         * modules/select-tests: Likewise.
25875         * modules/signal-tests: Likewise.
25876         * modules/stdbool-tests: Likewise.
25877         * modules/stddef-tests: Likewise.
25878         * modules/stdint-tests: Likewise.
25879         * modules/stdio-tests: Likewise.
25880         * modules/stdlib-tests: Likewise.
25881         * modules/string-tests: Likewise.
25882         * modules/strings-tests: Likewise.
25883         * modules/sys_select-tests: Likewise.
25884         * modules/sys_socket-tests: Likewise.
25885         * modules/sys_stat-tests: Likewise.
25886         * modules/sys_time-tests: Likewise.
25887         * modules/sys_utsname-tests: Likewise.
25888         * modules/sysexits-tests: Likewise.
25889         * modules/time-tests: Likewise.
25890         * modules/trunc-tests: Likewise.
25891         * modules/truncf-tests: Likewise.
25892         * modules/truncl-tests: Likewise.
25893         * modules/tsearch-tests: Likewise.
25894         * modules/unistd-tests: Likewise.
25895         * modules/wchar-tests: Likewise.
25896         * modules/wctype-tests: Likewise.
25897
25898         tests: fix license on several tests
25899         * tests/test-des.c: Update to GPLv3+.
25900         * tests/test-flock.c: Likewise.
25901         * tests/test-fsync.c: Likewise.
25902         * tests/test-futimens.h: Likewise.
25903         * tests/test-gc-arcfour.c: Likewise.
25904         * tests/test-gc-arctwo.c: Likewise.
25905         * tests/test-gc-des.c: Likewise.
25906         * tests/test-gc-hmac-md5.c: Likewise.
25907         * tests/test-gc-hmac-sha1.c: Likewise.
25908         * tests/test-gc-md2.c: Likewise.
25909         * tests/test-gc-md4.c: Likewise.
25910         * tests/test-gc-md5.c: Likewise.
25911         * tests/test-gc-pbkdf2-sha1.c: Likewise.
25912         * tests/test-gc-rijndael.c: Likewise.
25913         * tests/test-gc-sha1.c: Likewise.
25914         * tests/test-gc.c: Likewise.
25915         * tests/test-getcwd.c: Likewise.
25916         * tests/test-link.c: Likewise.
25917         * tests/test-link.h: Likewise.
25918         * tests/test-lutimens.h: Likewise.
25919         * tests/test-md2.c: Likewise.
25920         * tests/test-md4.c: Likewise.
25921         * tests/test-mkdir.h: Likewise.
25922         * tests/test-rename.c: Likewise.
25923         * tests/test-rename.h: Likewise.
25924         * tests/test-safe-alloc.c: Likewise.
25925         * tests/test-utimens-common.h: Likewise.
25926         * tests/test-utimens.h: Likewise.
25927
25928         maint: sync license texts
25929         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
25930         * doc/gpl-3.0.texi: Revert copyright year update.
25931         * doc/lgpl-3.0.texi: Likewise.
25932
25933 2009-12-29  Jim Meyering  <meyering@redhat.com>
25934
25935         update nearly all FSF copyright year lists to include 2009
25936         The files named by the following are exempted:
25937             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
25938               test -f "$dst" && { echo "$dst"; continue; }
25939               test -d "$dst" || continue
25940               echo "$dst"/$(basename "$src")
25941             done > exempt
25942             git ls-files tests/unictype >> exempt
25943         In the remaining files, convert to all-interval notation if
25944         - there is already at least one year interval like 2000-2003
25945         - the file is maintained by me
25946         - the file is in lib/uni*/, where that style already prevails
25947         Otherwise, use update-copyright's default.
25948
25949 2009-12-29  Simon Josefsson  <simon@josefsson.org>
25950         and Eric Blake  <ebb9@byu.net>
25951
25952         tests: don't require debug system() to pass
25953         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
25954         * tests/test-rmdir.h (test_rmdir_func): Likewise.
25955         * tests/test-unlink.h (test_unlink_func): Likewise.
25956         * tests/test-fstatat.c (main): ...into callers.
25957         * tests/test-lstat.c (main): Likewise.
25958         * tests/test-rmdir.c (main): Likewise.
25959         * tests/test-unlink.c (main): Likewise.
25960         * tests/test-unlinkat.c (main): Likewise.
25961         * tests/test-areadlink-with-size.c (main): Don't require a
25962         debug-only system call to pass, aiding cross-testing to mingw.
25963         * tests/test-areadlink.c (main): Likewise.
25964         * tests/test-areadlinkat-with-size.c (main): Likewise.
25965         * tests/test-areadlinkat.c (main): Likewise.
25966         * tests/test-canonicalize-lgpl.c (main): Likewise.
25967         * tests/test-canonicalize.c (main): Likewise.
25968         * tests/test-chown.c (main): Likewise.
25969         * tests/test-fchownat.c (main): Likewise.
25970         * tests/test-lchown.c (main): Likewise.
25971         * tests/test-fdutimensat.c (main): Likewise.
25972         * tests/test-futimens.c (main): Likewise.
25973         * tests/test-link.c (main): Likewise.
25974         * tests/test-linkat.c (main): Likewise.
25975         * tests/test-mkdir.c (main): Likewise.
25976         * tests/test-mkdirat.c (main): Likewise.
25977         * tests/test-mkfifo.c (main): Likewise.
25978         * tests/test-mkfifoat.c (main): Likewise.
25979         * tests/test-mknod.c (main): Likewise.
25980         * tests/test-readlink.c (main): Likewise.
25981         * tests/test-remove.c (main): Likewise.
25982         * tests/test-rename.c (main): Likewise.
25983         * tests/test-renameat.c (main): Likewise.
25984         * tests/test-symlink.c (main): Likewise.
25985         * tests/test-symlinkat.c (main): Likewise.
25986         * tests/test-utimens.c (main): Likewise.
25987         * tests/test-utimensat.c (main): Likewise.
25988
25989 2009-12-29  Simon Josefsson  <simon@josefsson.org>
25990
25991         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
25992         on $(UNUSED_PARAMETER_H) to avoid build failure.
25993
25994 2009-12-28  Jim Meyering  <meyering@redhat.com>
25995
25996         update-copyright: you may specify a max. line length other than 72
25997         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
25998
25999         maint: use consistent FSF copyright line syntax
26000         * lib/posixtm.c: Add missing comma in FSF copyright line.
26001         * lib/posixtm.h: Likewise.
26002         * lib/getugroups.c: Add missing ", Inc.".
26003
26004         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
26005         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
26006         FSF copyright line.  Remove trailing blanks.
26007
26008 2009-12-28  Eric Blake  <ebb9@byu.net>
26009
26010         test-dup2: reduce dependencies
26011         * modules/cloexec (Configure.ac): Set witness.
26012         * modules/dup2-tests (Depends-on): Drop cloexec.
26013         * tests/test-dup2.c (main): Skip portion of test if cloexec module
26014         not present.
26015         Suggested by Bruno Haible.
26016
26017 2009-12-26  Bruno Haible  <bruno@clisp.org>
26018
26019         Remove an unneeded dependency.
26020         * modules/fseterr (Depends-on): Remove dup2.
26021
26022 2009-12-26  Eric Blake  <ebb9@byu.net>
26023
26024         tests: use macros.h in more places
26025         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
26026         (ASSERT_STREAM): Provide default of stderr.
26027         * tests/test-dirent-safer.c: Include macros.h, using alternate
26028         stream for assertions.
26029         * tests/test-dup-safer.c: Likewise.
26030         * tests/test-freopen-safer.c: Likewise.
26031         * tests/test-getopt.c: Likewise.
26032         * tests/test-openat-safer.c: Likewise.
26033         * tests/test-pipe.c: Likewise.
26034         * tests/test-popen-safer.c: Likewise.
26035         * modules/dirent-safer-tests (Files): Include macros.h.
26036         * modules/unistd-safer-tests (Files): Likewise.
26037         * modules/freopen-safer-tests (Files): Likewise.
26038         * modules/getopt-posix-tests (Files): Likewise.
26039         * modules/openat-safer-tests (Files): Likewise.
26040         * modules/pipe-tests (Files): Likewise.
26041
26042 2009-12-26  Bruno Haible  <bruno@clisp.org>
26043
26044         javacomp: Portability fix.
26045         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
26046         that it also works on Solaris.
26047
26048 2009-12-26  Bruno Haible  <bruno@clisp.org>
26049
26050         localename: Fix storage allocation of gl_locale_name_thread's result.
26051         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
26052         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
26053         all platforms that have 'uselocale'.
26054         (gl_locale_name_thread_unsafe): New function, extracted from
26055         gl_locale_name_thread.
26056         (gl_locale_name_thread): Call struniq on all platforms that have
26057         'uselocale'.
26058         * tests/test-localename.c (test_locale_name_thread): Check that the
26059         resulting strings are permanently allocated.
26060         * modules/localename-tests (Depends-on): Add strdup.
26061
26062 2009-12-26  Bruno Haible  <bruno@clisp.org>
26063
26064         * tests/test-localename.c (categories): Fill in the strings.
26065
26066 2009-12-26  Jim Meyering  <meyering@redhat.com>
26067
26068         isdir: complete the removal of m4/isdir.m4
26069         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
26070
26071         isdir: clean up, since at least grep still uses it
26072         * lib/isdir.c: Include "isdir.h".
26073         (S_ISDIR): Remove now-unneeded definition.
26074         * modules/isdir (Files): Add lib/isdir.h.
26075         * lib/isdir.h: New file, with declaration.
26076         * m4/isdir.m4: Remove file -- unneeded.
26077
26078 2009-12-25  Bruno Haible  <bruno@clisp.org>
26079
26080         selinux-h: Make generated .h files standalone.
26081         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
26082         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
26083         * lib/se-selinux.in.h: Likewise.
26084         * modules/selinux-h (Depends-on): Add unused-parameter.
26085         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
26086         selinux/selinux.h and selinux/context.h.
26087         Suggested by Eric Blake.
26088
26089 2009-12-25  Bruno Haible  <bruno@clisp.org>
26090
26091         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
26092         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
26093         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
26094         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
26095         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
26096
26097 2009-12-24  Bruno Haible  <bruno@clisp.org>
26098
26099         openat: Fix warning.
26100         * lib/openat-proc.c: Include <unistd.h>.
26101
26102 2009-12-24  Bruno Haible  <bruno@clisp.org>
26103
26104         New module 'unused-parameter'.
26105         * build-aux/unused-parameter.h: New file, extracted from earlier
26106         gnulib-common.m4.
26107         * modules/unused-parameter: New file.
26108         * lib/unistr.h: Include unused-parameter.h.
26109         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
26110         _GL_UNUSED.
26111         * modules/unistr/base (Depends-on): Add unused-parameter.
26112
26113 2009-12-24  Bruno Haible  <bruno@clisp.org>
26114
26115         Add missing dependencies to 'extensions' module.
26116         * m4/extensions.m4: Add comment.
26117         * modules/accept4 (Depends-on): Add extensions.
26118         * modules/dup3 (Depends-on): Likewise.
26119         * modules/fcntl (Depends-on): Likewise.
26120         * modules/futimens (Depends-on): Likewise.
26121         * modules/mknod (Depends-on): Likewise.
26122         * modules/pipe2 (Depends-on): Likewise.
26123         * modules/stat-time (Depends-on): Likewise.
26124         * modules/strcasestr-simple (Depends-on): Likewise.
26125         * modules/strsignal (Depends-on): Likewise.
26126         * modules/utimensat (Depends-on): Likewise.
26127         * modules/localcharset (Depends-on): Likewise. Needed because of
26128         gl_FCNTL_O_FLAGS.
26129         * modules/wcrtomb (Depends-on): Likewise. Needed because of
26130         AC_TYPE_MBSTATE_T.
26131         * modules/wcsnrtombs (Depends-on): Likewise.
26132         * modules/wcsrtombs (Depends-on): Likewise.
26133
26134 2009-12-24  Bruno Haible  <bruno@clisp.org>
26135
26136         binary-io: Avoid gcc warning due to SET_BINARY.
26137         * lib/binary-io.h (SET_BINARY): Cast the result to void.
26138         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
26139
26140 2009-12-24  Bruno Haible  <bruno@clisp.org>
26141
26142         Avoid future namespace pollution on glibc systems.
26143         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
26144         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
26145         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
26146         glibc systems.
26147
26148 2009-12-24  Bruno Haible  <bruno@clisp.org>
26149
26150         Refactor common macros used in tests.
26151         * tests/macros.h: New file.
26152         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
26153         and/or <stdlib.h>, if appropriate.
26154         (ASSERT, SIZEOF): Remove macros.
26155         * tests/test-areadlink-with-size.c: Likewise.
26156         * tests/test-areadlinkat.c: Likewise.
26157         * tests/test-areadlinkat-with-size.c: Likewise.
26158         * tests/test-argmatch.c: Likewise.
26159         * tests/test-argv-iter.c: Likewise.
26160         * tests/test-array-mergesort.c: Likewise.
26161         * tests/test-array_list.c: Likewise.
26162         * tests/test-array_oset.c: Likewise.
26163         * tests/test-avltree_list.c: Likewise.
26164         * tests/test-avltree_oset.c: Likewise.
26165         * tests/test-avltreehash_list.c: Likewise.
26166         * tests/test-base64.c: Likewise.
26167         * tests/test-binary-io.c: Likewise.
26168         * tests/test-bitrotate.c: Likewise.
26169         * tests/test-btowc.c: Likewise.
26170         * tests/test-byteswap.c: Likewise.
26171         * tests/test-c-ctype.c: Likewise.
26172         * tests/test-c-stack.c: Likewise.
26173         * tests/test-c-strcasecmp.c: Likewise.
26174         * tests/test-c-strcasestr.c: Likewise.
26175         * tests/test-c-strncasecmp.c: Likewise.
26176         * tests/test-c-strstr.c: Likewise.
26177         * tests/test-canonicalize-lgpl.c: Likewise.
26178         * tests/test-canonicalize.c: Likewise.
26179         * tests/test-carray_list.c: Likewise.
26180         * tests/test-ceilf1.c: Likewise.
26181         * tests/test-ceilf2.c: Likewise.
26182         * tests/test-ceill.c: Likewise.
26183         * tests/test-chown.c: Likewise.
26184         * tests/test-cloexec.c: Likewise.
26185         * tests/test-copy-acl.c: Likewise.
26186         * tests/test-copy-file.c: Likewise.
26187         * tests/test-count-one-bits.c: Likewise.
26188         * tests/test-dprintf-posix.c: Likewise.
26189         * tests/test-dup2.c: Likewise.
26190         * tests/test-dup3.c: Likewise.
26191         * tests/test-duplocale.c: Likewise.
26192         * tests/test-fbufmode.c: Likewise.
26193         * tests/test-fchdir.c: Likewise.
26194         * tests/test-fchownat.c: Likewise.
26195         * tests/test-fcntl-safer.c: Likewise.
26196         * tests/test-fcntl.c: Likewise.
26197         * tests/test-fdopendir.c: Likewise.
26198         * tests/test-fdutimensat.c: Likewise.
26199         * tests/test-fflush2.c: Likewise.
26200         * tests/test-file-has-acl.c: Likewise.
26201         * tests/test-filevercmp.c: Likewise.
26202         * tests/test-flock.c: Likewise.
26203         * tests/test-floorf1.c: Likewise.
26204         * tests/test-floorf2.c: Likewise.
26205         * tests/test-floorl.c: Likewise.
26206         * tests/test-fnmatch.c: Likewise.
26207         * tests/test-fopen.h: Likewise.
26208         * tests/test-fpending.c: Likewise.
26209         * tests/test-fprintf-posix.c: Likewise.
26210         * tests/test-fpurge.c: Likewise.
26211         * tests/test-freadable.c: Likewise.
26212         * tests/test-freadahead.c: Likewise.
26213         * tests/test-freading.c: Likewise.
26214         * tests/test-freadptr.c: Likewise.
26215         * tests/test-freadptr2.c: Likewise.
26216         * tests/test-freadseek.c: Likewise.
26217         * tests/test-freopen.c: Likewise.
26218         * tests/test-frexp.c: Likewise.
26219         * tests/test-frexpl.c: Likewise.
26220         * tests/test-fseek.c: Likewise.
26221         * tests/test-fseeko.c: Likewise.
26222         * tests/test-fstatat.c: Likewise.
26223         * tests/test-fstrcmp.c: Likewise.
26224         * tests/test-fsync.c: Likewise.
26225         * tests/test-ftell.c: Likewise.
26226         * tests/test-ftello.c: Likewise.
26227         * tests/test-func.c: Likewise.
26228         * tests/test-futimens.c: Likewise.
26229         * tests/test-fwritable.c: Likewise.
26230         * tests/test-fwriting.c: Likewise.
26231         * tests/test-getcwd.c: Likewise.
26232         * tests/test-getdate.c: Likewise.
26233         * tests/test-getdelim.c: Likewise.
26234         * tests/test-getdtablesize.c: Likewise.
26235         * tests/test-getgroups.c: Likewise.
26236         * tests/test-getline.c: Likewise.
26237         * tests/test-getndelim2.c: Likewise.
26238         * tests/test-glob.c: Likewise.
26239         * tests/test-hash.c: Likewise.
26240         * tests/test-i-ring.c: Likewise.
26241         * tests/test-iconv-utf.c: Likewise.
26242         * tests/test-iconv.c: Likewise.
26243         * tests/test-idpriv-drop.c: Likewise.
26244         * tests/test-idpriv-droptemp.c: Likewise.
26245         * tests/test-inet_ntop.c: Likewise.
26246         * tests/test-inet_pton.c: Likewise.
26247         * tests/test-isblank.c: Likewise.
26248         * tests/test-isfinite.c: Likewise.
26249         * tests/test-isinf.c: Likewise.
26250         * tests/test-isnan.c: Likewise.
26251         * tests/test-isnand.h: Likewise.
26252         * tests/test-isnanf.h: Likewise.
26253         * tests/test-isnanl.h: Likewise.
26254         * tests/test-lchown.c: Likewise.
26255         * tests/test-ldexpl.c: Likewise.
26256         * tests/test-link.c: Likewise.
26257         * tests/test-linkat.c: Likewise.
26258         * tests/test-linked_list.c: Likewise.
26259         * tests/test-linkedhash_list.c: Likewise.
26260         * tests/test-localename.c: Likewise.
26261         * tests/test-lseek.c: Likewise.
26262         * tests/test-lstat.c: Likewise.
26263         * tests/test-mbmemcasecmp.c: Likewise.
26264         * tests/test-mbmemcasecoll.c: Likewise.
26265         * tests/test-mbrtowc.c: Likewise.
26266         * tests/test-mbscasecmp.c: Likewise.
26267         * tests/test-mbscasestr1.c: Likewise.
26268         * tests/test-mbscasestr2.c: Likewise.
26269         * tests/test-mbscasestr3.c: Likewise.
26270         * tests/test-mbscasestr4.c: Likewise.
26271         * tests/test-mbschr.c: Likewise.
26272         * tests/test-mbscspn.c: Likewise.
26273         * tests/test-mbsinit.c: Likewise.
26274         * tests/test-mbsncasecmp.c: Likewise.
26275         * tests/test-mbsnrtowcs.c: Likewise.
26276         * tests/test-mbspbrk.c: Likewise.
26277         * tests/test-mbspcasecmp.c: Likewise.
26278         * tests/test-mbsrchr.c: Likewise.
26279         * tests/test-mbsrtowcs.c: Likewise.
26280         * tests/test-mbsspn.c: Likewise.
26281         * tests/test-mbsstr1.c: Likewise.
26282         * tests/test-mbsstr2.c: Likewise.
26283         * tests/test-mbsstr3.c: Likewise.
26284         * tests/test-memchr.c: Likewise.
26285         * tests/test-memchr2.c: Likewise.
26286         * tests/test-memcmp.c: Likewise.
26287         * tests/test-memmem.c: Likewise.
26288         * tests/test-memrchr.c: Likewise.
26289         * tests/test-mkdir.c: Likewise.
26290         * tests/test-mkdirat.c: Likewise.
26291         * tests/test-mkfifo.c: Likewise.
26292         * tests/test-mkfifoat.c: Likewise.
26293         * tests/test-mknod.c: Likewise.
26294         * tests/test-nanosleep.c: Likewise.
26295         * tests/test-nl_langinfo.c: Likewise.
26296         * tests/test-obstack-printf.c: Likewise.
26297         * tests/test-open.c: Likewise.
26298         * tests/test-openat.c: Likewise.
26299         * tests/test-pipe-filter-gi1.c: Likewise.
26300         * tests/test-pipe-filter-gi2-main.c: Likewise.
26301         * tests/test-pipe-filter-ii1.c: Likewise.
26302         * tests/test-pipe-filter-ii2-main.c: Likewise.
26303         * tests/test-pipe2.c: Likewise.
26304         * tests/test-popen.h: Likewise.
26305         * tests/test-posixtm.c: Likewise.
26306         * tests/test-pread.c: Likewise.
26307         * tests/test-printf-frexp.c: Likewise.
26308         * tests/test-printf-frexpl.c: Likewise.
26309         * tests/test-printf-posix.c: Likewise.
26310         * tests/test-priv-set.c: Likewise.
26311         * tests/test-quotearg.c: Likewise.
26312         * tests/test-random_r.c: Likewise.
26313         * tests/test-rawmemchr.c: Likewise.
26314         * tests/test-rbtree_list.c: Likewise.
26315         * tests/test-rbtree_oset.c: Likewise.
26316         * tests/test-rbtreehash_list.c: Likewise.
26317         * tests/test-readlink.c: Likewise.
26318         * tests/test-remove.c: Likewise.
26319         * tests/test-rename.c: Likewise.
26320         * tests/test-renameat.c: Likewise.
26321         * tests/test-rmdir.c: Likewise.
26322         * tests/test-round1.c: Likewise.
26323         * tests/test-roundf1.c: Likewise.
26324         * tests/test-roundl.c: Likewise.
26325         * tests/test-safe-alloc.c: Likewise.
26326         * tests/test-sameacls.c: Likewise.
26327         * tests/test-set-mode-acl.c: Likewise.
26328         * tests/test-setenv.c: Likewise.
26329         * tests/test-sigaction.c: Likewise.
26330         * tests/test-signbit.c: Likewise.
26331         * tests/test-sleep.c: Likewise.
26332         * tests/test-snprintf-posix.c: Likewise.
26333         * tests/test-snprintf.c: Likewise.
26334         * tests/test-sprintf-posix.c: Likewise.
26335         * tests/test-stat-time.c: Likewise.
26336         * tests/test-stat.c: Likewise.
26337         * tests/test-strcasestr.c: Likewise.
26338         * tests/test-strchrnul.c: Likewise.
26339         * tests/test-strerror.c: Likewise.
26340         * tests/test-striconv.c: Likewise.
26341         * tests/test-striconveh.c: Likewise.
26342         * tests/test-striconveha.c: Likewise.
26343         * tests/test-strsignal.c: Likewise.
26344         * tests/test-strstr.c: Likewise.
26345         * tests/test-strtod.c: Likewise.
26346         * tests/test-strverscmp.c: Likewise.
26347         * tests/test-symlink.c: Likewise.
26348         * tests/test-symlinkat.c: Likewise.
26349         * tests/test-trunc1.c: Likewise.
26350         * tests/test-trunc2.c: Likewise.
26351         * tests/test-truncf1.c: Likewise.
26352         * tests/test-truncf2.c: Likewise.
26353         * tests/test-truncl.c: Likewise.
26354         * tests/test-uname.c: Likewise.
26355         * tests/test-unlink.c: Likewise.
26356         * tests/test-unlinkat.c: Likewise.
26357         * tests/test-unsetenv.c: Likewise.
26358         * tests/test-usleep.c: Likewise.
26359         * tests/test-utimens.c: Likewise.
26360         * tests/test-utimensat.c: Likewise.
26361         * tests/test-vasnprintf-posix.c: Likewise.
26362         * tests/test-vasnprintf-posix2.c: Likewise.
26363         * tests/test-vasnprintf.c: Likewise.
26364         * tests/test-vasprintf-posix.c: Likewise.
26365         * tests/test-vasprintf.c: Likewise.
26366         * tests/test-vdprintf-posix.c: Likewise.
26367         * tests/test-vfprintf-posix.c: Likewise.
26368         * tests/test-vprintf-posix.c: Likewise.
26369         * tests/test-vsnprintf-posix.c: Likewise.
26370         * tests/test-vsnprintf.c: Likewise.
26371         * tests/test-vsprintf-posix.c: Likewise.
26372         * tests/test-wcrtomb.c: Likewise.
26373         * tests/test-wcsnrtombs.c: Likewise.
26374         * tests/test-wcsrtombs.c: Likewise.
26375         * tests/test-wctype.c: Likewise.
26376         * tests/test-wcwidth.c: Likewise.
26377         * tests/test-xfprintf-posix.c: Likewise.
26378         * tests/test-xmemdup0.c: Likewise.
26379         * tests/test-xprintf-posix.c: Likewise.
26380         * tests/test-xvasprintf.c: Likewise.
26381         * tests/unicase/test-locale-language.c: Likewise.
26382         * tests/unicase/test-mapping-part1.h: Likewise.
26383         * tests/unicase/test-predicate-part1.h: Likewise.
26384         * tests/unicase/test-u8-casecmp.c: Likewise.
26385         * tests/unicase/test-u8-casecoll.c: Likewise.
26386         * tests/unicase/test-u8-casefold.c: Likewise.
26387         * tests/unicase/test-u8-is-cased.c: Likewise.
26388         * tests/unicase/test-u8-is-casefolded.c: Likewise.
26389         * tests/unicase/test-u8-is-lowercase.c: Likewise.
26390         * tests/unicase/test-u8-is-titlecase.c: Likewise.
26391         * tests/unicase/test-u8-is-uppercase.c: Likewise.
26392         * tests/unicase/test-u8-tolower.c: Likewise.
26393         * tests/unicase/test-u8-totitle.c: Likewise.
26394         * tests/unicase/test-u8-toupper.c: Likewise.
26395         * tests/unicase/test-u16-casecmp.c: Likewise.
26396         * tests/unicase/test-u16-casecoll.c: Likewise.
26397         * tests/unicase/test-u16-casefold.c: Likewise.
26398         * tests/unicase/test-u16-is-cased.c: Likewise.
26399         * tests/unicase/test-u16-is-casefolded.c: Likewise.
26400         * tests/unicase/test-u16-is-lowercase.c: Likewise.
26401         * tests/unicase/test-u16-is-titlecase.c: Likewise.
26402         * tests/unicase/test-u16-is-uppercase.c: Likewise.
26403         * tests/unicase/test-u16-tolower.c: Likewise.
26404         * tests/unicase/test-u16-totitle.c: Likewise.
26405         * tests/unicase/test-u16-toupper.c: Likewise.
26406         * tests/unicase/test-u32-casecmp.c: Likewise.
26407         * tests/unicase/test-u32-casecoll.c: Likewise.
26408         * tests/unicase/test-u32-casefold.c: Likewise.
26409         * tests/unicase/test-u32-is-cased.c: Likewise.
26410         * tests/unicase/test-u32-is-casefolded.c: Likewise.
26411         * tests/unicase/test-u32-is-lowercase.c: Likewise.
26412         * tests/unicase/test-u32-is-titlecase.c: Likewise.
26413         * tests/unicase/test-u32-is-uppercase.c: Likewise.
26414         * tests/unicase/test-u32-tolower.c: Likewise.
26415         * tests/unicase/test-u32-totitle.c: Likewise.
26416         * tests/unicase/test-u32-toupper.c: Likewise.
26417         * tests/unicase/test-ulc-casecmp.c: Likewise.
26418         * tests/unicase/test-ulc-casecoll.c: Likewise.
26419         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
26420         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
26421         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
26422         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
26423         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
26424         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
26425         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
26426         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
26427         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
26428         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
26429         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
26430         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
26431         * tests/unictype/test-bidi_byname.c: Likewise.
26432         * tests/unictype/test-bidi_name.c: Likewise.
26433         * tests/unictype/test-bidi_of.c: Likewise.
26434         * tests/unictype/test-bidi_test.c: Likewise.
26435         * tests/unictype/test-block_list.c: Likewise.
26436         * tests/unictype/test-block_of.c: Likewise.
26437         * tests/unictype/test-block_test.c: Likewise.
26438         * tests/unictype/test-categ_and.c: Likewise.
26439         * tests/unictype/test-categ_and_not.c: Likewise.
26440         * tests/unictype/test-categ_byname.c: Likewise.
26441         * tests/unictype/test-categ_name.c: Likewise.
26442         * tests/unictype/test-categ_none.c: Likewise.
26443         * tests/unictype/test-categ_of.c: Likewise.
26444         * tests/unictype/test-categ_or.c: Likewise.
26445         * tests/unictype/test-categ_test_withtable.c: Likewise.
26446         * tests/unictype/test-combining.c: Likewise.
26447         * tests/unictype/test-decdigit.c: Likewise.
26448         * tests/unictype/test-digit.c: Likewise.
26449         * tests/unictype/test-mirror.c: Likewise.
26450         * tests/unictype/test-numeric.c: Likewise.
26451         * tests/unictype/test-pr_byname.c: Likewise.
26452         * tests/unictype/test-pr_test.c: Likewise.
26453         * tests/unictype/test-predicate-part1.h: Likewise.
26454         * tests/unictype/test-scripts.c: Likewise.
26455         * tests/unictype/test-sy_c_ident.c: Likewise.
26456         * tests/unictype/test-sy_java_ident.c: Likewise.
26457         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
26458         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
26459         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
26460         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
26461         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
26462         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
26463         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
26464         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
26465         * tests/uninorm/test-canonical-decomposition.c: Likewise.
26466         * tests/uninorm/test-compat-decomposition.c: Likewise.
26467         * tests/uninorm/test-composition.c: Likewise.
26468         * tests/uninorm/test-decomposing-form.c: Likewise.
26469         * tests/uninorm/test-decomposition.c: Likewise.
26470         * tests/uninorm/test-u8-nfc.c: Likewise.
26471         * tests/uninorm/test-u8-nfd.c: Likewise.
26472         * tests/uninorm/test-u8-nfkc.c: Likewise.
26473         * tests/uninorm/test-u8-nfkd.c: Likewise.
26474         * tests/uninorm/test-u8-normcmp.c: Likewise.
26475         * tests/uninorm/test-u8-normcoll.c: Likewise.
26476         * tests/uninorm/test-u16-nfc.c: Likewise.
26477         * tests/uninorm/test-u16-nfd.c: Likewise.
26478         * tests/uninorm/test-u16-nfkc.c: Likewise.
26479         * tests/uninorm/test-u16-nfkd.c: Likewise.
26480         * tests/uninorm/test-u16-normcmp.c: Likewise.
26481         * tests/uninorm/test-u16-normcoll.c: Likewise.
26482         * tests/uninorm/test-u32-nfc.c: Likewise.
26483         * tests/uninorm/test-u32-nfd.c: Likewise.
26484         * tests/uninorm/test-u32-nfkc.c: Likewise.
26485         * tests/uninorm/test-u32-nfkd.c: Likewise.
26486         * tests/uninorm/test-u32-normalize-big.c: Likewise.
26487         * tests/uninorm/test-u32-normcmp.c: Likewise.
26488         * tests/uninorm/test-u32-normcoll.c: Likewise.
26489         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
26490         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
26491         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
26492         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
26493         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
26494         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
26495         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
26496         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
26497         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
26498         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
26499         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
26500         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
26501         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
26502         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
26503         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
26504         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
26505         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
26506         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
26507         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
26508         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
26509         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
26510         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
26511         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
26512         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
26513         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
26514         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
26515         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
26516         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
26517         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
26518         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
26519         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
26520         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
26521         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
26522         * tests/uniwidth/test-u8-strwidth.c: Likewise.
26523         * tests/uniwidth/test-u8-width.c: Likewise.
26524         * tests/uniwidth/test-u16-strwidth.c: Likewise.
26525         * tests/uniwidth/test-u16-width.c: Likewise.
26526         * tests/uniwidth/test-u32-strwidth.c: Likewise.
26527         * tests/uniwidth/test-u32-width.c: Likewise.
26528         * tests/uniwidth/test-uc_width.c: Likewise.
26529         * tests/uniwidth/test-uc_width2.c: Likewise.
26530         * modules/acl-tests (Files): Add tests/macros.h.
26531         * modules/areadlink-tests (Files): Likewise.
26532         * modules/areadlink-with-size-tests (Files): Likewise.
26533         * modules/areadlinkat-tests (Files): Likewise.
26534         * modules/areadlinkat-with-size-tests (Files): Likewise.
26535         * modules/argmatch-tests (Files): Likewise.
26536         * modules/argv-iter-tests (Files): Likewise.
26537         * modules/array-list-tests (Files): Likewise.
26538         * modules/array-mergesort-tests (Files): Likewise.
26539         * modules/array-oset-tests (Files): Likewise.
26540         * modules/avltree-list-tests (Files): Likewise.
26541         * modules/avltree-oset-tests (Files): Likewise.
26542         * modules/avltreehash-list-tests (Files): Likewise.
26543         * modules/base64-tests (Files): Likewise.
26544         * modules/binary-io-tests (Files): Likewise.
26545         * modules/bitrotate-tests (Files): Likewise.
26546         * modules/btowc-tests (Files): Likewise.
26547         * modules/byteswap-tests (Files): Likewise.
26548         * modules/c-ctype-tests (Files): Likewise.
26549         * modules/c-stack-tests (Files): Likewise.
26550         * modules/c-strcase-tests (Files): Likewise.
26551         * modules/c-strcasestr-tests (Files): Likewise.
26552         * modules/c-strstr-tests (Files): Likewise.
26553         * modules/canonicalize-lgpl-tests (Files): Likewise.
26554         * modules/canonicalize-tests (Files): Likewise.
26555         * modules/carray-list-tests (Files): Likewise.
26556         * modules/ceilf-tests (Files): Likewise.
26557         * modules/ceill-tests (Files): Likewise.
26558         * modules/chown-tests (Files): Likewise.
26559         * modules/cloexec-tests (Files): Likewise.
26560         * modules/copy-file-tests (Files): Likewise.
26561         * modules/count-one-bits-tests (Files): Likewise.
26562         * modules/dprintf-posix-tests (Files): Likewise.
26563         * modules/dup2-tests (Files): Likewise.
26564         * modules/dup3-tests (Files): Likewise.
26565         * modules/duplocale-tests (Files): Likewise.
26566         * modules/fbufmode-tests (Files): Likewise.
26567         * modules/fchdir-tests (Files): Likewise.
26568         * modules/fcntl-safer-tests (Files): Likewise.
26569         * modules/fcntl-tests (Files): Likewise.
26570         * modules/fdopendir-tests (Files): Likewise.
26571         * modules/fdutimensat-tests (Files): Likewise.
26572         * modules/fflush-tests (Files): Likewise.
26573         * modules/filevercmp-tests (Files): Likewise.
26574         * modules/flock-tests (Files): Likewise.
26575         * modules/floorf-tests (Files): Likewise.
26576         * modules/floorl-tests (Files): Likewise.
26577         * modules/fnmatch-tests (Files): Likewise.
26578         * modules/fopen-safer-tests (Files): Likewise.
26579         * modules/fopen-tests (Files): Likewise.
26580         * modules/fpending-tests (Files): Likewise.
26581         * modules/fprintf-posix-tests (Files): Likewise.
26582         * modules/fpurge-tests (Files): Likewise.
26583         * modules/freadable-tests (Files): Likewise.
26584         * modules/freadahead-tests (Files): Likewise.
26585         * modules/freading-tests (Files): Likewise.
26586         * modules/freadptr-tests (Files): Likewise.
26587         * modules/freadseek-tests (Files): Likewise.
26588         * modules/freopen-tests (Files): Likewise.
26589         * modules/frexp-nolibm-tests (Files): Likewise.
26590         * modules/frexp-tests (Files): Likewise.
26591         * modules/frexpl-nolibm-tests (Files): Likewise.
26592         * modules/frexpl-tests (Files): Likewise.
26593         * modules/fseek-tests (Files): Likewise.
26594         * modules/fseeko-tests (Files): Likewise.
26595         * modules/fstrcmp-tests (Files): Likewise.
26596         * modules/fsync-tests (Files): Likewise.
26597         * modules/ftell-tests (Files): Likewise.
26598         * modules/ftello-tests (Files): Likewise.
26599         * modules/func-tests (Files): Likewise.
26600         * modules/futimens-tests (Files): Likewise.
26601         * modules/fwritable-tests (Files): Likewise.
26602         * modules/fwriting-tests (Files): Likewise.
26603         * modules/getcwd-tests (Files): Likewise.
26604         * modules/getdate-tests (Files): Likewise.
26605         * modules/getdelim-tests (Files): Likewise.
26606         * modules/getdtablesize-tests (Files): Likewise.
26607         * modules/getgroups-tests (Files): Likewise.
26608         * modules/getline-tests (Files): Likewise.
26609         * modules/getndelim2-tests (Files): Likewise.
26610         * modules/glob-tests (Files): Likewise.
26611         * modules/hash-tests (Files): Likewise.
26612         * modules/i-ring-tests (Files): Likewise.
26613         * modules/iconv-tests (Files): Likewise.
26614         * modules/iconv_open-utf-tests (Files): Likewise.
26615         * modules/idpriv-drop-tests (Files): Likewise.
26616         * modules/idpriv-droptemp-tests (Files): Likewise.
26617         * modules/inet_ntop-tests (Files): Likewise.
26618         * modules/inet_pton-tests (Files): Likewise.
26619         * modules/isblank-tests (Files): Likewise.
26620         * modules/isfinite-tests (Files): Likewise.
26621         * modules/isinf-tests (Files): Likewise.
26622         * modules/isnan-tests (Files): Likewise.
26623         * modules/isnand-nolibm-tests (Files): Likewise.
26624         * modules/isnand-tests (Files): Likewise.
26625         * modules/isnanf-nolibm-tests (Files): Likewise.
26626         * modules/isnanf-tests (Files): Likewise.
26627         * modules/isnanl-nolibm-tests (Files): Likewise.
26628         * modules/isnanl-tests (Files): Likewise.
26629         * modules/lchown-tests (Files): Likewise.
26630         * modules/ldexpl-tests (Files): Likewise.
26631         * modules/link-tests (Files): Likewise.
26632         * modules/linkat-tests (Files): Likewise.
26633         * modules/linked-list-tests (Files): Likewise.
26634         * modules/linkedhash-list-tests (Files): Likewise.
26635         * modules/localename-tests (Files): Likewise.
26636         * modules/lseek-tests (Files): Likewise.
26637         * modules/lstat-tests (Files): Likewise.
26638         * modules/mbmemcasecmp-tests (Files): Likewise.
26639         * modules/mbmemcasecoll-tests (Files): Likewise.
26640         * modules/mbrtowc-tests (Files): Likewise.
26641         * modules/mbscasecmp-tests (Files): Likewise.
26642         * modules/mbscasestr-tests (Files): Likewise.
26643         * modules/mbschr-tests (Files): Likewise.
26644         * modules/mbscspn-tests (Files): Likewise.
26645         * modules/mbsinit-tests (Files): Likewise.
26646         * modules/mbsncasecmp-tests (Files): Likewise.
26647         * modules/mbsnrtowcs-tests (Files): Likewise.
26648         * modules/mbspbrk-tests (Files): Likewise.
26649         * modules/mbspcasecmp-tests (Files): Likewise.
26650         * modules/mbsrchr-tests (Files): Likewise.
26651         * modules/mbsrtowcs-tests (Files): Likewise.
26652         * modules/mbsspn-tests (Files): Likewise.
26653         * modules/mbsstr-tests (Files): Likewise.
26654         * modules/memchr-tests (Files): Likewise.
26655         * modules/memchr2-tests (Files): Likewise.
26656         * modules/memcmp-tests (Files): Likewise.
26657         * modules/memmem-tests (Files): Likewise.
26658         * modules/memrchr-tests (Files): Likewise.
26659         * modules/mkdir-tests (Files): Likewise.
26660         * modules/mkfifo-tests (Files): Likewise.
26661         * modules/mkfifoat-tests (Files): Likewise.
26662         * modules/mknod-tests (Files): Likewise.
26663         * modules/nanosleep-tests (Files): Likewise.
26664         * modules/nl_langinfo-tests (Files): Likewise.
26665         * modules/obstack-printf-tests (Files): Likewise.
26666         * modules/open-tests (Files): Likewise.
26667         * modules/openat-tests (Files): Likewise.
26668         * modules/pipe-filter-gi-tests (Files): Likewise.
26669         * modules/pipe-filter-ii-tests (Files): Likewise.
26670         * modules/pipe2-tests (Files): Likewise.
26671         * modules/popen-safer-tests (Files): Likewise.
26672         * modules/popen-tests (Files): Likewise.
26673         * modules/posixtm-tests (Files): Likewise.
26674         * modules/pread-tests (Files): Likewise.
26675         * modules/printf-frexp-tests (Files): Likewise.
26676         * modules/printf-frexpl-tests (Files): Likewise.
26677         * modules/printf-posix-tests (Files): Likewise.
26678         * modules/priv-set-tests (Files): Likewise.
26679         * modules/quotearg-tests (Files): Likewise.
26680         * modules/random_r-tests (Files): Likewise.
26681         * modules/rawmemchr-tests (Files): Likewise.
26682         * modules/rbtree-list-tests (Files): Likewise.
26683         * modules/rbtree-oset-tests (Files): Likewise.
26684         * modules/rbtreehash-list-tests (Files): Likewise.
26685         * modules/readlink-tests (Files): Likewise.
26686         * modules/remove-tests (Files): Likewise.
26687         * modules/rename-tests (Files): Likewise.
26688         * modules/renameat-tests (Files): Likewise.
26689         * modules/rmdir-tests (Files): Likewise.
26690         * modules/round-tests (Files): Likewise.
26691         * modules/roundf-tests (Files): Likewise.
26692         * modules/roundl-tests (Files): Likewise.
26693         * modules/safe-alloc-tests (Files): Likewise.
26694         * modules/setenv-tests (Files): Likewise.
26695         * modules/sigaction-tests (Files): Likewise.
26696         * modules/signbit-tests (Files): Likewise.
26697         * modules/sleep-tests (Files): Likewise.
26698         * modules/snprintf-posix-tests (Files): Likewise.
26699         * modules/snprintf-tests (Files): Likewise.
26700         * modules/sprintf-posix-tests (Files): Likewise.
26701         * modules/stat-tests (Files): Likewise.
26702         * modules/stat-time-tests (Files): Likewise.
26703         * modules/strcasestr-tests (Files): Likewise.
26704         * modules/strchrnul-tests (Files): Likewise.
26705         * modules/strerror-tests (Files): Likewise.
26706         * modules/striconv-tests (Files): Likewise.
26707         * modules/striconveh-tests (Files): Likewise.
26708         * modules/striconveha-tests (Files): Likewise.
26709         * modules/strsignal-tests (Files): Likewise.
26710         * modules/strstr-tests (Files): Likewise.
26711         * modules/strtod-tests (Files): Likewise.
26712         * modules/strverscmp-tests (Files): Likewise.
26713         * modules/symlink-tests (Files): Likewise.
26714         * modules/symlinkat-tests (Files): Likewise.
26715         * modules/trunc-tests (Files): Likewise.
26716         * modules/truncf-tests (Files): Likewise.
26717         * modules/truncl-tests (Files): Likewise.
26718         * modules/uname-tests (Files): Likewise.
26719         * modules/unicase/cased-tests (Files): Likewise.
26720         * modules/unicase/ignorable-tests (Files): Likewise.
26721         * modules/unicase/locale-language-tests (Files): Likewise.
26722         * modules/unicase/tolower-tests (Files): Likewise.
26723         * modules/unicase/totitle-tests (Files): Likewise.
26724         * modules/unicase/toupper-tests (Files): Likewise.
26725         * modules/unicase/u8-casecmp-tests (Files): Likewise.
26726         * modules/unicase/u8-casecoll-tests (Files): Likewise.
26727         * modules/unicase/u8-casefold-tests (Files): Likewise.
26728         * modules/unicase/u8-is-cased-tests (Files): Likewise.
26729         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
26730         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
26731         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
26732         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
26733         * modules/unicase/u8-tolower-tests (Files): Likewise.
26734         * modules/unicase/u8-totitle-tests (Files): Likewise.
26735         * modules/unicase/u8-toupper-tests (Files): Likewise.
26736         * modules/unicase/u16-casecmp-tests (Files): Likewise.
26737         * modules/unicase/u16-casecoll-tests (Files): Likewise.
26738         * modules/unicase/u16-casefold-tests (Files): Likewise.
26739         * modules/unicase/u16-is-cased-tests (Files): Likewise.
26740         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
26741         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
26742         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
26743         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
26744         * modules/unicase/u16-tolower-tests (Files): Likewise.
26745         * modules/unicase/u16-totitle-tests (Files): Likewise.
26746         * modules/unicase/u16-toupper-tests (Files): Likewise.
26747         * modules/unicase/u32-casecmp-tests (Files): Likewise.
26748         * modules/unicase/u32-casecoll-tests (Files): Likewise.
26749         * modules/unicase/u32-casefold-tests (Files): Likewise.
26750         * modules/unicase/u32-is-cased-tests (Files): Likewise.
26751         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
26752         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
26753         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
26754         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
26755         * modules/unicase/u32-tolower-tests (Files): Likewise.
26756         * modules/unicase/u32-totitle-tests (Files): Likewise.
26757         * modules/unicase/u32-toupper-tests (Files): Likewise.
26758         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
26759         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
26760         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
26761         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
26762         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
26763         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
26764         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
26765         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
26766         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
26767         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
26768         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
26769         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
26770         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
26771         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
26772         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
26773         * modules/unictype/bidicategory-name-tests (Files): Likewise.
26774         * modules/unictype/bidicategory-of-tests (Files): Likewise.
26775         * modules/unictype/bidicategory-test-tests (Files): Likewise.
26776         * modules/unictype/block-list-tests (Files): Likewise.
26777         * modules/unictype/block-of-tests (Files): Likewise.
26778         * modules/unictype/block-test-tests (Files): Likewise.
26779         * modules/unictype/category-C-tests (Files): Likewise.
26780         * modules/unictype/category-Cc-tests (Files): Likewise.
26781         * modules/unictype/category-Cf-tests (Files): Likewise.
26782         * modules/unictype/category-Cn-tests (Files): Likewise.
26783         * modules/unictype/category-Co-tests (Files): Likewise.
26784         * modules/unictype/category-Cs-tests (Files): Likewise.
26785         * modules/unictype/category-L-tests (Files): Likewise.
26786         * modules/unictype/category-Ll-tests (Files): Likewise.
26787         * modules/unictype/category-Lm-tests (Files): Likewise.
26788         * modules/unictype/category-Lo-tests (Files): Likewise.
26789         * modules/unictype/category-Lt-tests (Files): Likewise.
26790         * modules/unictype/category-Lu-tests (Files): Likewise.
26791         * modules/unictype/category-M-tests (Files): Likewise.
26792         * modules/unictype/category-Mc-tests (Files): Likewise.
26793         * modules/unictype/category-Me-tests (Files): Likewise.
26794         * modules/unictype/category-Mn-tests (Files): Likewise.
26795         * modules/unictype/category-N-tests (Files): Likewise.
26796         * modules/unictype/category-Nd-tests (Files): Likewise.
26797         * modules/unictype/category-Nl-tests (Files): Likewise.
26798         * modules/unictype/category-No-tests (Files): Likewise.
26799         * modules/unictype/category-P-tests (Files): Likewise.
26800         * modules/unictype/category-Pc-tests (Files): Likewise.
26801         * modules/unictype/category-Pd-tests (Files): Likewise.
26802         * modules/unictype/category-Pe-tests (Files): Likewise.
26803         * modules/unictype/category-Pf-tests (Files): Likewise.
26804         * modules/unictype/category-Pi-tests (Files): Likewise.
26805         * modules/unictype/category-Po-tests (Files): Likewise.
26806         * modules/unictype/category-Ps-tests (Files): Likewise.
26807         * modules/unictype/category-S-tests (Files): Likewise.
26808         * modules/unictype/category-Sc-tests (Files): Likewise.
26809         * modules/unictype/category-Sk-tests (Files): Likewise.
26810         * modules/unictype/category-Sm-tests (Files): Likewise.
26811         * modules/unictype/category-So-tests (Files): Likewise.
26812         * modules/unictype/category-Z-tests (Files): Likewise.
26813         * modules/unictype/category-Zl-tests (Files): Likewise.
26814         * modules/unictype/category-Zp-tests (Files): Likewise.
26815         * modules/unictype/category-Zs-tests (Files): Likewise.
26816         * modules/unictype/category-and-not-tests (Files): Likewise.
26817         * modules/unictype/category-and-tests (Files): Likewise.
26818         * modules/unictype/category-byname-tests (Files): Likewise.
26819         * modules/unictype/category-name-tests (Files): Likewise.
26820         * modules/unictype/category-none-tests (Files): Likewise.
26821         * modules/unictype/category-of-tests (Files): Likewise.
26822         * modules/unictype/category-or-tests (Files): Likewise.
26823         * modules/unictype/category-test-withtable-tests (Files): Likewise.
26824         * modules/unictype/combining-class-tests (Files): Likewise.
26825         * modules/unictype/ctype-alnum-tests (Files): Likewise.
26826         * modules/unictype/ctype-alpha-tests (Files): Likewise.
26827         * modules/unictype/ctype-blank-tests (Files): Likewise.
26828         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
26829         * modules/unictype/ctype-digit-tests (Files): Likewise.
26830         * modules/unictype/ctype-graph-tests (Files): Likewise.
26831         * modules/unictype/ctype-lower-tests (Files): Likewise.
26832         * modules/unictype/ctype-print-tests (Files): Likewise.
26833         * modules/unictype/ctype-punct-tests (Files): Likewise.
26834         * modules/unictype/ctype-space-tests (Files): Likewise.
26835         * modules/unictype/ctype-upper-tests (Files): Likewise.
26836         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
26837         * modules/unictype/decimal-digit-tests (Files): Likewise.
26838         * modules/unictype/digit-tests (Files): Likewise.
26839         * modules/unictype/mirror-tests (Files): Likewise.
26840         * modules/unictype/numeric-tests (Files): Likewise.
26841         * modules/unictype/property-alphabetic-tests (Files): Likewise.
26842         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
26843         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
26844         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
26845         Likewise.
26846         * modules/unictype/property-bidi-block-separator-tests (Files):
26847         Likewise.
26848         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
26849         Likewise.
26850         * modules/unictype/property-bidi-common-separator-tests (Files):
26851         Likewise.
26852         * modules/unictype/property-bidi-control-tests (Files): Likewise.
26853         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
26854         Likewise.
26855         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
26856         Likewise.
26857         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
26858         Likewise.
26859         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
26860         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
26861         Likewise.
26862         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
26863         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
26864         Likewise.
26865         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
26866         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
26867         * modules/unictype/property-bidi-segment-separator-tests (Files):
26868         Likewise.
26869         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
26870         * modules/unictype/property-byname-tests (Files): Likewise.
26871         * modules/unictype/property-combining-tests (Files): Likewise.
26872         * modules/unictype/property-composite-tests (Files): Likewise.
26873         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
26874         * modules/unictype/property-dash-tests (Files): Likewise.
26875         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
26876         * modules/unictype/property-default-ignorable-code-point-tests (Files):
26877         Likewise.
26878         * modules/unictype/property-deprecated-tests (Files): Likewise.
26879         * modules/unictype/property-diacritic-tests (Files): Likewise.
26880         * modules/unictype/property-extender-tests (Files): Likewise.
26881         * modules/unictype/property-format-control-tests (Files): Likewise.
26882         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
26883         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
26884         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
26885         * modules/unictype/property-hex-digit-tests (Files): Likewise.
26886         * modules/unictype/property-hyphen-tests (Files): Likewise.
26887         * modules/unictype/property-id-continue-tests (Files): Likewise.
26888         * modules/unictype/property-id-start-tests (Files): Likewise.
26889         * modules/unictype/property-ideographic-tests (Files): Likewise.
26890         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
26891         * modules/unictype/property-ids-trinary-operator-tests (Files):
26892         Likewise.
26893         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
26894         * modules/unictype/property-iso-control-tests (Files): Likewise.
26895         * modules/unictype/property-join-control-tests (Files): Likewise.
26896         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
26897         * modules/unictype/property-line-separator-tests (Files): Likewise.
26898         * modules/unictype/property-logical-order-exception-tests (Files):
26899         Likewise.
26900         * modules/unictype/property-lowercase-tests (Files): Likewise.
26901         * modules/unictype/property-math-tests (Files): Likewise.
26902         * modules/unictype/property-non-break-tests (Files): Likewise.
26903         * modules/unictype/property-not-a-character-tests (Files): Likewise.
26904         * modules/unictype/property-numeric-tests (Files): Likewise.
26905         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
26906         * modules/unictype/property-other-default-ignorable-code-point-tests
26907         (Files): Likewise.
26908         * modules/unictype/property-other-grapheme-extend-tests (Files):
26909         Likewise.
26910         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
26911         * modules/unictype/property-other-id-start-tests (Files): Likewise.
26912         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
26913         * modules/unictype/property-other-math-tests (Files): Likewise.
26914         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
26915         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
26916         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
26917         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
26918         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
26919         * modules/unictype/property-private-use-tests (Files): Likewise.
26920         * modules/unictype/property-punctuation-tests (Files): Likewise.
26921         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
26922         * modules/unictype/property-radical-tests (Files): Likewise.
26923         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
26924         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
26925         * modules/unictype/property-space-tests (Files): Likewise.
26926         * modules/unictype/property-terminal-punctuation-tests (Files):
26927         Likewise.
26928         * modules/unictype/property-test-tests (Files): Likewise.
26929         * modules/unictype/property-titlecase-tests (Files): Likewise.
26930         * modules/unictype/property-unassigned-code-value-tests (Files):
26931         Likewise.
26932         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
26933         * modules/unictype/property-uppercase-tests (Files): Likewise.
26934         * modules/unictype/property-variation-selector-tests (Files): Likewise.
26935         * modules/unictype/property-white-space-tests (Files): Likewise.
26936         * modules/unictype/property-xid-continue-tests (Files): Likewise.
26937         * modules/unictype/property-xid-start-tests (Files): Likewise.
26938         * modules/unictype/property-zero-width-tests (Files): Likewise.
26939         * modules/unictype/scripts-tests (Files): Likewise.
26940         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
26941         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
26942         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
26943         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
26944         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
26945         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
26946         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
26947         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
26948         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
26949         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
26950         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
26951         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
26952         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
26953         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
26954         * modules/uninorm/composition-tests (Files): Likewise.
26955         * modules/uninorm/decomposing-form-tests (Files): Likewise.
26956         * modules/uninorm/decomposition-tests (Files): Likewise.
26957         * modules/uninorm/filter-tests (Files): Likewise.
26958         * modules/uninorm/nfc-tests (Files): Likewise.
26959         * modules/uninorm/nfd-tests (Files): Likewise.
26960         * modules/uninorm/nfkc-tests (Files): Likewise.
26961         * modules/uninorm/nfkd-tests (Files): Likewise.
26962         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
26963         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
26964         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
26965         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
26966         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
26967         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
26968         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
26969         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
26970         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
26971         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
26972         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
26973         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
26974         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
26975         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
26976         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
26977         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
26978         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
26979         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
26980         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
26981         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
26982         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
26983         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
26984         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
26985         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
26986         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
26987         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
26988         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
26989         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
26990         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
26991         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
26992         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
26993         * modules/uniwidth/u8-width-tests (Files): Likewise.
26994         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
26995         * modules/uniwidth/u16-width-tests (Files): Likewise.
26996         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
26997         * modules/uniwidth/u32-width-tests (Files): Likewise.
26998         * modules/uniwidth/width-tests (Files): Likewise.
26999         * modules/unlink-tests (Files): Likewise.
27000         * modules/unsetenv-tests (Files): Likewise.
27001         * modules/usleep-tests (Files): Likewise.
27002         * modules/utimens-tests (Files): Likewise.
27003         * modules/utimensat-tests (Files): Likewise.
27004         * modules/vasnprintf-posix-tests (Files): Likewise.
27005         * modules/vasnprintf-tests (Files): Likewise.
27006         * modules/vasprintf-posix-tests (Files): Likewise.
27007         * modules/vasprintf-tests (Files): Likewise.
27008         * modules/vdprintf-posix-tests (Files): Likewise.
27009         * modules/vfprintf-posix-tests (Files): Likewise.
27010         * modules/vprintf-posix-tests (Files): Likewise.
27011         * modules/vsnprintf-posix-tests (Files): Likewise.
27012         * modules/vsnprintf-tests (Files): Likewise.
27013         * modules/vsprintf-posix-tests (Files): Likewise.
27014         * modules/wcrtomb-tests (Files): Likewise.
27015         * modules/wcsnrtombs-tests (Files): Likewise.
27016         * modules/wcsrtombs-tests (Files): Likewise.
27017         * modules/wctype-tests (Files): Likewise.
27018         * modules/wcwidth-tests (Files): Likewise.
27019         * modules/xmemdup0-tests (Files): Likewise.
27020         * modules/xprintf-posix-tests (Files): Likewise.
27021         * modules/xvasprintf-tests (Files): Likewise.
27022
27023 2009-12-24  Eric Blake  <ebb9@byu.net>
27024
27025         test-nanosleep: fix typo
27026         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
27027         patch.
27028         Reported by Bruno Haible.
27029
27030 2009-12-24  Bruno Haible  <bruno@clisp.org>
27031
27032         Reduce namespace pollution on glibc systems.
27033         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
27034         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
27035         systems.
27036         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
27037         <getopt.h> on glibc systems.
27038         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
27039         systems.
27040         * lib/fcntl.c: Include <unistd.h> here instead.
27041
27042 2009-12-24  Bruno Haible  <bruno@clisp.org>
27043
27044         * lib/stdlib.in.h (includes): Fix typo in today's commit.
27045
27046 2009-12-24  Eric Blake  <ebb9@byu.net>
27047
27048         tests: add signature checks
27049         * tests/signature.h (SIGNATURE_CHECK): New file.
27050         * modules/atexit-tests (Files): Use it.
27051         * modules/btowc-tests (Files): Likewise.
27052         * modules/canonicalize-lgpl-tests (Files): Likewise.
27053         * modules/ceilf-tests (Files): Likewise.
27054         * modules/ceill-tests (Files): Likewise.
27055         * modules/chown-tests (Files): Likewise.
27056         * modules/dprintf-posix-tests (Files): Likewise.
27057         * modules/dup2-tests (Files): Likewise.
27058         * modules/dup3-tests (Files): Likewise.
27059         * modules/duplocale-tests (Files): Likewise.
27060         * modules/fchdir-tests (Files): Likewise.
27061         * modules/fcntl-tests (Files): Likewise.
27062         * modules/fdopendir-tests (Files): Likewise.
27063         * modules/fflush-tests (Files): Likewise.
27064         * modules/flock-tests (Files): Likewise.
27065         * modules/floorf-tests (Files): Likewise.
27066         * modules/floorl-tests (Files): Likewise.
27067         * modules/fnmatch-tests (Files): Likewise.
27068         * modules/fopen-tests (Files): Likewise.
27069         * modules/fprintf-posix-tests (Files): Likewise.
27070         * modules/freopen-tests (Files): Likewise.
27071         * modules/frexp-nolibm-tests (Files): Likewise.
27072         * modules/frexp-tests (Files): Likewise.
27073         * modules/frexpl-nolibm-tests (Files): Likewise.
27074         * modules/frexpl-tests (Files): Likewise.
27075         * modules/fseek-tests (Files): Likewise.
27076         * modules/fseeko-tests (Files): Likewise.
27077         * modules/fsync-tests (Files): Likewise.
27078         * modules/ftell-tests (Files): Likewise.
27079         * modules/ftello-tests (Files): Likewise.
27080         * modules/futimens-tests (Files): Likewise.
27081         * modules/getaddrinfo-tests (Files): Likewise.
27082         * modules/getcwd-tests (Files): Likewise.
27083         * modules/getdelim-tests (Files): Likewise.
27084         * modules/getdtablesize-tests (Files): Likewise.
27085         * modules/getgroups-tests (Files): Likewise.
27086         * modules/gethostname-tests (Files): Likewise.
27087         * modules/getline-tests (Files): Likewise.
27088         * modules/getopt-posix-tests (Files): Likewise.
27089         * modules/gettimeofday-tests (Files): Likewise.
27090         * modules/glob-tests (Files): Likewise.
27091         * modules/iconv-tests (Files): Likewise.
27092         * modules/inet_ntop-tests (Files): Likewise.
27093         * modules/inet_pton-tests (Files): Likewise.
27094         * modules/isblank-tests (Files): Likewise.
27095         * modules/lchown-tests (Files): Likewise.
27096         * modules/ldexpl-tests (Files): Likewise.
27097         * modules/link-tests (Files): Likewise.
27098         * modules/linkat-tests (Files): Likewise.
27099         * modules/lseek-tests (Files): Likewise.
27100         * modules/lstat-tests (Files): Likewise.
27101         * modules/mbrtowc-tests (Files): Likewise.
27102         * modules/mbsinit-tests (Files): Likewise.
27103         * modules/mbsnrtowcs-tests (Files): Likewise.
27104         * modules/mbsrtowcs-tests (Files): Likewise.
27105         * modules/memchr-tests (Files): Likewise.
27106         * modules/memcmp-tests (Files): Likewise.
27107         * modules/memmem-tests (Files): Likewise.
27108         * modules/memrchr-tests (Files): Likewise.
27109         * modules/mkdir-tests (Files): Likewise.
27110         * modules/mkfifo-tests (Files): Likewise.
27111         * modules/mkfifoat-tests (Files): Likewise.
27112         * modules/mknod-tests (Files): Likewise.
27113         * modules/nanosleep-tests (Files): Likewise.
27114         * modules/nl_langinfo-tests (Files): Likewise.
27115         * modules/obstack-printf-tests (Files): Likewise.
27116         * modules/open-tests (Files): Likewise.
27117         * modules/openat-tests (Files): Likewise.
27118         * modules/perror-tests (Files): Likewise.
27119         * modules/pipe2-tests (Files): Likewise.
27120         * modules/poll-tests (Files): Likewise.
27121         * modules/popen-tests (Files): Likewise.
27122         * modules/posix_spawn-tests (Files): Likewise.
27123         * modules/posix_spawnp-tests (Files): Likewise.
27124         * modules/pread-tests (Files): Likewise.
27125         * modules/printf-posix-tests (Files): Likewise.
27126         * modules/pty-tests (Files): Likewise.
27127         * modules/random_r-tests (Files): Likewise.
27128         * modules/rawmemchr-tests (Files): Likewise.
27129         * modules/readlink-tests (Files): Likewise.
27130         * modules/remove-tests (Files): Likewise.
27131         * modules/rename-tests (Files): Likewise.
27132         * modules/renameat-tests (Files): Likewise.
27133         * modules/rmdir-tests (Files): Likewise.
27134         * modules/round-tests (Files): Likewise.
27135         * modules/roundf-tests (Files): Likewise.
27136         * modules/roundl-tests (Files): Likewise.
27137         * modules/select-tests (Files): Likewise.
27138         * modules/setenv-tests (Files): Likewise.
27139         * modules/sigaction-tests (Files): Likewise.
27140         * modules/sleep-tests (Files): Likewise.
27141         * modules/snprintf-posix-tests (Files): Likewise.
27142         * modules/snprintf-tests (Files): Likewise.
27143         * modules/sprintf-posix-tests (Files): Likewise.
27144         * modules/stat-tests (Files): Likewise.
27145         * modules/strcasestr-tests (Files): Likewise.
27146         * modules/strchrnul-tests (Files): Likewise.
27147         * modules/strerror-tests (Files): Likewise.
27148         * modules/strsignal-tests (Files): Likewise.
27149         * modules/strstr-tests (Files): Likewise.
27150         * modules/strtod-tests (Files): Likewise.
27151         * modules/strverscmp-tests (Files): Likewise.
27152         * modules/symlink-tests (Files): Likewise.
27153         * modules/symlinkat-tests (Files): Likewise.
27154         * modules/times-tests (Files): Likewise.
27155         * modules/trunc-tests (Files): Likewise.
27156         * modules/truncf-tests (Files): Likewise.
27157         * modules/truncl-tests (Files): Likewise.
27158         * modules/tsearch-tests (Files): Likewise.
27159         * modules/uname-tests (Files): Likewise.
27160         * modules/unlink-tests (Files): Likewise.
27161         * modules/unsetenv-tests (Files): Likewise.
27162         * modules/usleep-tests (Files): Likewise.
27163         * modules/utimensat-tests (Files): Likewise.
27164         * modules/vasprintf-tests (Files): Likewise.
27165         * modules/vdprintf-posix-tests (Files): Likewise.
27166         * modules/vfprintf-posix-tests (Files): Likewise.
27167         * modules/vprintf-posix-tests (Files): Likewise.
27168         * modules/vsnprintf-posix-tests (Files): Likewise.
27169         * modules/vsnprintf-tests (Files): Likewise.
27170         * modules/vsprintf-posix-tests (Files): Likewise.
27171         * modules/wcrtomb-tests (Files): Likewise.
27172         * modules/wcsnrtombs-tests (Files): Likewise.
27173         * modules/wcsrtombs-tests (Files): Likewise.
27174         * modules/wcwidth-tests (Files): Likewise.
27175         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
27176         * tests/test-isinf.c (isinf): Likewise.
27177         * tests/test-isnan.c (isnan): Likewise.
27178         * tests/test-signbit.c (signbit): Likewise.
27179         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
27180         declaration, either as macro or with correct signature.
27181         (select): Ensure function under test is declared with correct
27182         signature in correct header.
27183         * tests/test-atexit.c (atexit): Likewise.
27184         * tests/test-btowc.c (btowc): Likewise.
27185         * tests/test-canonicalize-lgpl.c (realpath)
27186         (canonicalize_file_name): Likewise.
27187         * tests/test-ceilf1.c (ceilf): Likewise.
27188         * tests/test-ceill.c (ceill): Likewise.
27189         * tests/test-chown.c (chown): Likewise.
27190         * tests/test-dprintf-posix.c (dprintf): Likewise.
27191         * tests/test-dup2.c (dup2): Likewise.
27192         * tests/test-dup3.c (dup3): Likewise.
27193         * tests/test-duplocale.c (duplocale): Likewise.
27194         * tests/test-fchdir.c (fchdir): Likewise.
27195         * tests/test-fchownat.c (fchownat): Likewise.
27196         * tests/test-fcntl.c (fcntl): Likewise.
27197         * tests/test-fdopendir.c (fdopendir): Likewise.
27198         * tests/test-fflush.c (fflush): Likewise.
27199         * tests/test-flock.c (flock): Likewise.
27200         * tests/test-floorf1.c (floorf): Likewise.
27201         * tests/test-floorl.c (floorl): Likewise.
27202         * tests/test-fnmatch.c (fnmatch): Likewise.
27203         * tests/test-fopen.c (fopen): Likewise.
27204         * tests/test-fprintf-posix.c (fprintf): Likewise.
27205         * tests/test-freopen.c (freopen): Likewise.
27206         * tests/test-frexp.c (frexp): Likewise.
27207         * tests/test-frexpl.c (frexpl): Likewise.
27208         * tests/test-fseek.c (fseek): Likewise.
27209         * tests/test-fseeko.c (fseeko): Likewise.
27210         * tests/test-fstatat.c (fstatat): Likewise.
27211         * tests/test-fsync.c (fsync): Likewise.
27212         * tests/test-ftell.c (ftell): Likewise.
27213         * tests/test-ftello.c (ftello): Likewise.
27214         * tests/test-futimens.c (futimens): Likewise.
27215         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
27216         (gai_strerror): Likewise.
27217         * tests/test-getcwd.c (getcwd): Likewise.
27218         * tests/test-getdelim.c (getdelim): Likewise.
27219         * tests/test-getdtablesize.c (getdtablesize): Likewise.
27220         * tests/test-getgroups.c (getgroups): Likewise.
27221         * tests/test-gethostname.c (gethostname): Likewise.
27222         * tests/test-getline.c (getline): Likewise.
27223         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
27224         Likewise.
27225         * tests/test-gettimeofday.c (gettimeofday): Likewise.
27226         * tests/test-glob.c (glob, globfree): Likewise.
27227         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
27228         * tests/test-inet_ntop.c (inet_ntop): Likewise.
27229         * tests/test-inet_pton.c (inet_pton): Likewise.
27230         * tests/test-isblank.c (isblank): Likewise.
27231         * tests/test-lchown.c (lchown): Likewise.
27232         * tests/test-ldexpl.c (ldexpl): Likewise.
27233         * tests/test-link.c (link): Likewise.
27234         * tests/test-linkat.c (linkat): Likewise.
27235         * tests/test-lseek.c (lseek): Likewise.
27236         * tests/test-lstat.c (lstat): Likewise.
27237         * tests/test-mbrtowc.c (mbrtowc): Likewise.
27238         * tests/test-mbsinit.c (mbsinit): Likewise.
27239         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
27240         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
27241         * tests/test-memchr.c (memchr): Likewise.
27242         * tests/test-memcmp.c (memcmp): Likewise.
27243         * tests/test-memmem.c (memmem): Likewise.
27244         * tests/test-memrchr.c (memrchr): Likewise.
27245         * tests/test-mkdir.c (mkdir): Likewise.
27246         * tests/test-mkdirat.c (mkdirat): Likewise.
27247         * tests/test-mkfifo.c (mkfifo): Likewise.
27248         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
27249         * tests/test-mknod.c (mknod): Likewise.
27250         * tests/test-nanosleep.c (nanosleep): Likewise.
27251         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
27252         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
27253         Likewise.
27254         * tests/test-open.c (open): Likewise.
27255         * tests/test-openat.c (openat): Likewise.
27256         * tests/test-perror.c (perror): Likewise.
27257         * tests/test-pipe2.c (pipe2): Likewise.
27258         * tests/test-poll.c (poll): Likewise.
27259         * tests/test-popen.c (popen, pclose): Likewise.
27260         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
27261         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
27262         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
27263         (posix_spawn_file_actions_destroy)
27264         (posix_spawn_file_actions_addclose)
27265         (posix_spawn_file_actions_addopen)
27266         (posix_spawn_file_actions_adddup2): Likewise.
27267         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
27268         * tests/test-pread.c (pread): Likewise.
27269         * tests/test-printf-posix.c (printf): Likewise.
27270         * tests/test-pty.c (openpty, forkpty): Likewise.
27271         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
27272         (random_r): Likewise.
27273         * tests/test-rawmemchr.c (rawmemchr): Likewise.
27274         * tests/test-readlink.c (readlink): Likewise.
27275         * tests/test-remove.c (remove): Likewise.
27276         * tests/test-rename.c (rename): Likewise.
27277         * tests/test-renameat.c (renameat): Likewise.
27278         * tests/test-rmdir.c (rmdir): Likewise.
27279         * tests/test-round1.c (round): Likewise.
27280         * tests/test-roundf1.c (roundf): Likewise.
27281         * tests/test-roundl.c (roundl): Likewise.
27282         * tests/test-setenv.c (setenv): Likewise.
27283         * tests/test-sigaction.c (sigaction): Likewise.
27284         * tests/test-sleep.c (sleep): Likewise.
27285         * tests/test-snprintf.c (snprintf): Likewise.
27286         * tests/test-sprintf-posix.c (sprintf): Likewise.
27287         * tests/test-stat.c (stat): Likewise.
27288         * tests/test-stpncpy.c (stpncpy): Likewise.
27289         * tests/test-strcasestr.c (strcasestr): Likewise.
27290         * tests/test-strchrnul.c (strchrnul): Likewise.
27291         * tests/test-strerror.c (strerror): Likewise.
27292         * tests/test-strsignal.c (strsignal): Likewise.
27293         * tests/test-strstr.c (strstr): Likewise.
27294         * tests/test-strtod.c (strtod): Likewise.
27295         * tests/test-strverscmp.c (strverscmp): Likewise.
27296         * tests/test-symlink.c (symlink): Likewise.
27297         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
27298         * tests/test-times.c (times): Likewise.
27299         * tests/test-trunc1.c (trunc): Likewise.
27300         * tests/test-truncf1.c (truncf): Likewise.
27301         * tests/test-truncl.c (truncl): Likewise.
27302         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
27303         Likewise.
27304         * tests/test-uname.c (uname): Likewise.
27305         * tests/test-unlink.c (unlink): Likewise.
27306         * tests/test-unlinkat.c (unlinkat): Likewise.
27307         * tests/test-unsetenv.c (unsetenv): Likewise.
27308         * tests/test-usleep.c (usleep): Likewise.
27309         * tests/test-utimensat.c (utimensat): Likewise.
27310         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
27311         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
27312         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
27313         * tests/test-vprintf-posix.c (vprintf): Likewise.
27314         * tests/test-vsnprintf.c (vsnprintf): Likewise.
27315         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
27316         * tests/test-wcrtomb.c (wcrtomb): Likewise.
27317         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
27318         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
27319         * tests/test-wcwidth.c (wcwidth): Likewise.
27320
27321         build: pull in conditional headers during GNULIB_POSIXCHECK
27322         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
27323         definitions from any conditionally-included headers.
27324         * lib/stdlib.in.h (includes): Likewise.
27325         * lib/unistd.in.h (includes): Likewise.
27326
27327 2009-12-24  Bruno Haible  <bruno@clisp.org>
27328
27329         * tests/test-argv-iter.c: Include header file being tested immediately
27330         after config.h.
27331         * tests/test-base64.c: Likewise.
27332         * tests/test-flock.c: Likewise.
27333         * tests/test-fsync.c: Likewise.
27334         * tests/test-getdate.c: Likewise.
27335         * tests/test-getndelim2.c: Likewise.
27336         * tests/test-isfinite.c: Likewise.
27337         * tests/test-isinf.c: Likewise.
27338         * tests/test-strerror.c: Likewise.
27339         * tests/test-strsignal.c: Likewise.
27340
27341 2009-12-23  Eric Blake  <ebb9@byu.net>
27342
27343         unistd: work around cygwin bug
27344         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
27345         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
27346         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
27347
27348 2009-12-23  Bruno Haible  <bruno@clisp.org>
27349
27350         localename: More tests.
27351         * tests/test-localename.c (SIZEOF): New macro.
27352         (categories): New variable.
27353         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
27354         test_locale_name_default): Add test w.r.t. thread locale.
27355         (test_locale_name_thread): New function.
27356         (main): Invoke it.
27357
27358         localename: Make aware of thread locale.
27359         * lib/localename.h (gl_locale_name_thread): New declaration.
27360         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
27361         behaviour with respect to thread locale.
27362         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
27363         <langinfo.h>, glthread/lock.h.
27364         (SIZE_BITS): New macro.
27365         (string_hash): New function.
27366         (struct hash_node): New type.
27367         (HASH_TABLE_SIZE): New macro.
27368         (struniq_hash_table, struniq_lock): New variables.
27369         (struniq): New function.
27370         (gl_locale_name_thread): New function.
27371         (gl_locale_name): Invoke it.
27372         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
27373         * modules/localename (Depends-on): Add lock.
27374         Reported by Mike Gran <spk121@yahoo.com>.
27375
27376 2009-12-23  Eric Blake  <ebb9@byu.net>
27377
27378         va-args: new module
27379         * modules/va-args: New file.
27380         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
27381         * MODULES.html.sh (Core language properties): Mention it.
27382
27383         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
27384         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
27385         named alias for __attribute__((__unused__)).
27386         * lib/chown.c: Update client.
27387         * lib/fchmodat.c: Likewise.
27388         * lib/fts.c: Likewise.
27389         * lib/getdate.y: Likewise.
27390         * lib/getgroups.c: Likewise.
27391         * lib/getopt.c: Likewise.
27392         * lib/getugroups.c: Likewise.
27393         * lib/mkdir.c: Likewise.
27394         * lib/mkfifo.c: Likewise.
27395         * lib/mkfifoat.c: Likewise.
27396         * lib/mknod.c: Likewise.
27397         * lib/mknodat.c: Likewise.
27398         * lib/readlink.c: Likewise.
27399         * lib/se-context.in.h: Likewise.
27400         * lib/se-selinux.in.h: Likewise.
27401         * lib/sockets.c: Likewise.
27402         * lib/symlink.c: Likewise.
27403         * lib/symlinkat.c: Likewise.
27404         * lib/unicodeio.c: Likewise.
27405         * lib/unistr.h: Likewise.
27406         * tests/test-areadlink.c: Likewise.
27407         * tests/test-areadlinkat.c: Likewise.
27408         * tests/test-filenamecat.c: Likewise.
27409         * tests/test-fseeko.c: Likewise.
27410         * tests/test-ftello.c: Likewise.
27411         * tests/test-getdate.c: Likewise.
27412         * tests/test-getgroups.c: Likewise.
27413         * tests/test-gethostname.c: Likewise.
27414         * tests/test-quotearg.c: Likewise.
27415         * tests/test-version-etc.c: Likewise.
27416         * tests/test-xalloc-die.c: Likewise.
27417         * tests/test-xfprintf-posix.c: Likewise.
27418         * tests/test-xprintf-posix.c: Likewise.
27419         * tests/test-xvasprintf.c: Likewise.
27420
27421         tests: avoid compiler warnings
27422         * tests/test-fcntl.c (main): Delete unused parameters.
27423         * tests/test-freopen-safer.c (main): Likewise.
27424         * tests/test-xalloc-die.c (main): Mark unused parameters.
27425         * tests/test-fseeko.c (main): Likewise.
27426         * tests/test-ftello.c (main): Likewise.
27427         * tests/test-nanosleep.c (main): Avoid declaration warning.
27428         * tests/test-sleep.c (main): Likewise.
27429         * tests/test-unsetenv.c (main): Silence warning about string
27430         literal.
27431         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
27432
27433 2009-12-23  Bruno Haible  <bruno@clisp.org>
27434
27435         * tests/test-localename.c (test_locale_name): New function, extracted
27436         from main. Also test mixed situations.
27437         (test_locale_name_posix, test_locale_name_environ,
27438         test_locale_name_default): New functions.
27439         (main): Invoke them all.
27440         * modules/localename-tests (configure.ac): Test for newlocale.
27441
27442 2009-12-23  Bruno Haible  <bruno@clisp.org>
27443
27444         unistd: Ensure getcwd gets declared before being overridden.
27445         * lib/unistd.in.h: Conditionally include <io.h>.
27446
27447 2009-12-22  Bruno Haible  <bruno@clisp.org>
27448
27449         wchar: Diagnose broken combination of glibc and gcc versions and flags.
27450         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
27451         (gl_WCHAR_H): Invoke it.
27452         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
27453         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
27454         Reported by Karl Berry <karl@freefriends.org>.
27455
27456 2009-12-22  Eric Blake  <ebb9@byu.net>
27457
27458         math, unistd: avoid redundant includes
27459         * lib/math.in.h (isnan): No need to re-include <math.h>.
27460         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
27461
27462         getsubopt: work around cygwin bug
27463         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
27464         avoid conflicting with system getsubopt.
27465         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
27466         bug.
27467
27468         getopt: synchronize from glibc
27469         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
27470         parameter order.  Adjust all callers.
27471         (_getopt_internal_r, main): Adjust quoting in error messages.
27472         Drop considerations for outdated POSIX 1003.2 error message.
27473         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
27474         callers.
27475         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
27476
27477         test-getopt: test stderr behavior
27478         * modules/getopt-posix-tests (Depends-on): Add dup2.
27479         * tests/test-getopt.c (ASSERT): Avoid stderr.
27480         (main): Move stderr to a temporary file.
27481         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
27482         Instead, add parameter to inform caller if output occurred.
27483         (test_getopt): Adjust all existing tests to expect silence, and
27484         add new tests of leading ":".
27485         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
27486         glibc shortcomings with leading "-:" or "+:" in optstring.
27487         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
27488         Likewise.
27489         * doc/posix-functions/getopt.texi (getopt): Likewise.
27490
27491         test-getopt: enhance test
27492         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
27493         supports optind=0.
27494         * tests/test-getopt.c (OPTIND_MIN): Move...
27495         * tests/test-getopt.h (OPTIND_MIN): ...here.
27496         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
27497         Require that optind=0 works, since modern BSD supports it in
27498         addition to optreset, and since coreutils expects it.
27499         (test_getopt_long_only): New test.
27500         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
27501         glibc shortcomings with 'W;', and enforcement of optind=0.
27502         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
27503         Likewise.
27504
27505 2009-12-21  Bruno Haible  <bruno@clisp.org>
27506
27507         localename: Improvements for MacOS X and Cygwin.
27508         * lib/localename.h (gl_locale_name_environ): New declaration.
27509         * lib/localename.c (gl_locale_name_environ): New function, extracted from
27510         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
27511         (gl_locale_name_posix): Invoke it.
27512         (gl_locale_name_default): Add comments. Use Windows native API also on
27513         Cygwin.
27514
27515 2009-12-21  Bruno Haible  <bruno@clisp.org>
27516
27517         Update list of Win32 locale ids.
27518         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
27519         (LANG_SAMI): Renamed from LANG_SAAMI.
27520         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
27521         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
27522         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
27523         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
27524         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
27525         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
27526         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
27527         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
27528         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
27529         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
27530         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
27531         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
27532         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
27533         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
27534         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
27535         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
27536         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
27537         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
27538         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
27539         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
27540         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
27541         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
27542         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
27543         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
27544         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
27545         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
27546         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
27547         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
27548         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
27549         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
27550         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
27551         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
27552         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
27553         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
27554         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
27555         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
27556         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
27557         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
27558         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
27559         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
27560         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
27561         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
27562         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
27563         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
27564         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
27565         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
27566         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
27567         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
27568         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
27569         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
27570         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
27571         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
27572         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
27573         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
27574         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
27575         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
27576         Add more languages and countries for Sami, Sorbian. Add more countries
27577         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
27578         for Pashto. Change country for Syriac, Tswana.
27579
27580 2009-12-21  Eric Blake  <ebb9@byu.net>
27581
27582         test-utimens: avoid spurious failure
27583         * tests/test-chown.h (nap): Factor...
27584         * tests/nap.h: ...into new file.
27585         * tests/test-lchown.h (nap): Avoid duplication.
27586         * tests/test-utimens-common.h (nap): Use shared implementation,
27587         necessary on file systems with 1-second resolution.
27588         * modules/chown-tests (Files): Include new file.
27589         * modules/fdutimensat-tests (Files): Likewise.
27590         * modules/futimens-tests (Files): Likewise.
27591         * modules/lchown-tests (Files): Likewise.
27592         * modules/openat-tests (Files): Likewise.
27593         * modules/utimens-tests (Files): Likewise.
27594         * modules/utimensat-tests (Files): Likewise.
27595
27596 2009-12-19  Eric Blake  <ebb9@byu.net>
27597
27598         futimens, utimensat: work around Linux bug
27599         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
27600         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
27601         * lib/utimensat.c (rpl_utimensat): Work around it.
27602         * lib/futimens.c (rpl_futimens): Adjust comment.
27603
27604         utimens: work around Linux ctime bug
27605         * lib/utimens.c (detect_ctime_bug): New helper function.
27606         (update_timespec): Differentiate between workaround needed for
27607         this bug vs. what is needed for systems that lack utimensat.
27608         (fdutimens, lutimens): Work around bug.
27609
27610         utimens: check for ctime update
27611         * tests/test-utimens-common.h (check_ctime): Define.
27612         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
27613         * tests/test-futimens.h (test_futimens): Likewise.
27614         * tests/test-lutimens.h (test_lutimens): Likewise.
27615         * doc/posix-functions/futimens.texi (futimens): Document the bug.
27616         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
27617
27618 2009-12-19  Bruno Haible  <bruno@clisp.org>
27619
27620         dprintf-posix: Check against memory leak fixed on 2009-12-15.
27621         * tests/test-dprintf-posix2.sh: New file.
27622         * tests/test-dprintf-posix2.c: New file.
27623         * modules/dprintf-posix-tests (Files): Add them.
27624         (configure.ac): Check for getrlimit and setrlimit.
27625         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
27626
27627 2009-12-19  Bruno Haible  <bruno@clisp.org>
27628
27629         fprintf-posix: Check against memory leak fixed on 2009-12-15.
27630         * tests/test-fprintf-posix3.sh: New file.
27631         * tests/test-fprintf-posix3.c: New file.
27632         * modules/fprintf-posix-tests (Files): Add them.
27633         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
27634
27635 2009-12-19  Eric Blake  <ebb9@byu.net>
27636
27637         dirfd: fix prototype
27638         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
27639         * lib/dirfd.c (dirfd): Likewise.
27640
27641         canonicalize: reduce memory usage
27642         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
27643         allocation to size.
27644         Reported by Solar Designer <solar@openwall.com>.
27645
27646 2009-12-19  Bruno Haible  <bruno@clisp.org>
27647
27648         New module attribute 'Applicability'.
27649         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
27650         * gnulib-tool: New option --extract-applicability.
27651         (func_usage): Document it.
27652         (sed_extract_prog): Recognize it.
27653         (func_get_applicability): New function.
27654         (func_import): Generalize handling of 'link-warning' module.
27655         * modules/link-warning (Applicability): New section.
27656         * modules/arg-nonnull (Applicability): New section.
27657         Repoted by Simon Josefsson <simon@josefsson.org>.
27658
27659 2009-12-19  Bruno Haible  <bruno@clisp.org>
27660
27661         fflush: tweak
27662         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
27663         * lib/fseeko.c (rpl_fseeko): Likewise.
27664
27665 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
27666
27667         * lib/gl_list.h: Fix typo in comment.
27668
27669 2009-12-16  Eric Blake  <ebb9@byu.net>
27670
27671         fcntl: use to simplify other modules
27672         * modules/cloexec (Depends-on): Add fcntl.
27673         * modules/fchdir (Depends-on): Likewise.
27674         * modules/fd-safer-flag (Depends-on): Likewise.
27675         * modules/unistd-safer (Depends-on): Likewise.
27676         * modules/dup3 (configure.ac): Set module indicator.
27677         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
27678         missing.
27679         * lib/fchdir.c (_gl_register_dup): Fix comment.
27680         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
27681         * lib/dup-safer.c (dup_safer): Likewise.
27682         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
27683         * lib/dup3.c (dup3): Likewise.
27684         * tests/test-fchdir.c (main): Enhance test.
27685         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
27686
27687         fcntl: port portions of fcntl to mingw
27688         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
27689         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
27690         replacement for mingw.
27691         * modules/fcntl (Description): Update.
27692         (Depends-on): Add dup2.
27693         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
27694         * modules/fcntl-h (Makefile.am): Substitute it.
27695         * lib/fcntl.in.h (fcntl): Update declaration.
27696         (F_DUPFD, F_GETFD): New macros, when needed.
27697         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
27698         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
27699         * tests/test-fcntl.c (check_flags, main): Enhance test for items
27700         we now guarantee.
27701
27702         fcntl: work around cygwin bug in F_DUPFD
27703         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
27704         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
27705         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
27706         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
27707         * doc/posix-functions/fcntl.texi (fcntl): Document it.
27708
27709         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
27710         * modules/fcntl (Files): List new files.
27711         (configure.ac): Run a test.
27712         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
27713         * lib/fcntl.c (rpl_fcntl): Likewise.
27714         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
27715         (gl_FCNTL_H): Always replace fcntl.h.
27716         * modules/fcntl-h (Makefile.am): Substitute witnesses.
27717         * lib/fcntl.in.h (fcntl): Declare replacement.
27718         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
27719         needed, plus a witness.
27720         * doc/posix-functions/fcntl.texi (fcntl): Document this.
27721         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
27722         * tests/test-fcntl.c: New file.
27723         * modules/fcntl-tests: Likewise.
27724
27725         binary-io: avoid potential compilation warning
27726         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
27727         directives.
27728
27729         fflush: avoid compilation error on NetBSD
27730         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
27731         between off_t and fpos_t, since the latter is sometimes a struct.
27732         * lib/fseeko.c (rpl_fseeko): Likewise.
27733         Reported by Alexander Nasonov <alnsn@yandex.ru>.
27734
27735 2009-12-15  Eric Blake  <ebb9@byu.net>
27736
27737         fcntl-h, stdio, sys_ioctl: fix declarations
27738         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
27739         function must not take arguments.
27740         * lib/sys_ioctl.in.h (ioctl): Likewise.
27741         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
27742         (open): Add a link warning.
27743
27744 2009-12-15  Jim Meyering  <meyering@redhat.com>
27745
27746         areadlink, areadlink-with-size: relax license to LGPLv2+
27747         * modules/areadlink (License): Relax to LGPLv2+.
27748         * modules/areadlink-with-size (License): Likewise.
27749
27750 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
27751             Bruno Haible  <bruno@clisp.org>
27752
27753         *printf: Fix memory leak.
27754         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
27755         * lib/vfprintf.c (vfprintf): Likewise.
27756         * lib/dprintf.c (dprintf): Likewise.
27757         * lib/vdprintf.c (vdprintf): Likewise.
27758
27759 2009-12-14  Eric Blake  <ebb9@byu.net>
27760
27761         accept4: adjust module dependencies
27762         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
27763
27764         utimens: one more try at avoiding compiler warning
27765         * lib/utimens.c (lutimens): Lower scope of result.
27766
27767 2009-12-13  Bruno Haible  <bruno@clisp.org>
27768
27769         Move the malloc checking from module 'list' to new module 'xlist'.
27770         * modules/xlist: New file.
27771         * lib/gl_xlist.h: New file.
27772         * lib/gl_xlist.c: New file.
27773         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
27774         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
27775         gl_list_add_last, gl_list_add_before, gl_list_add_after,
27776         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
27777         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
27778         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
27779         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
27780         gl_sortedlist_nx_add): New declarations.
27781         (struct gl_list_implementation): Rename and change methods accordingly.
27782         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
27783         (gl_list_nx_create): Renamed from gl_list_create.
27784         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
27785         (gl_list_nx_set_at): Renamed from gl_list_set_at.
27786         (gl_list_nx_add_first): Renamed from gl_list_add_first.
27787         (gl_list_nx_add_last): Renamed from gl_list_add_last.
27788         (gl_list_nx_add_before): Renamed from gl_list_add_before.
27789         (gl_list_nx_add_after): Renamed from gl_list_add_after.
27790         (gl_list_nx_add_at): Renamed from gl_list_add_at.
27791         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
27792         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
27793         gl_list_create_empty.
27794         (gl_list_nx_create): Renamed from gl_list_create.
27795         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
27796         (gl_list_nx_set_at): Renamed from gl_list_set_at.
27797         (gl_list_nx_add_first): Renamed from gl_list_add_first.
27798         (gl_list_nx_add_last): Renamed from gl_list_add_last.
27799         (gl_list_nx_add_before): Renamed from gl_list_add_before.
27800         (gl_list_nx_add_after): Renamed from gl_list_add_after.
27801         (gl_list_nx_add_at): Renamed from gl_list_add_at.
27802         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
27803         * lib/gl_array_list.c: Don't include xalloc.h.
27804         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
27805         NULL upon out-of-memory.
27806         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
27807         out-of-memory.
27808         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
27809         Change return type to 'int'.
27810         (gl_array_nx_set_at): Renamed from gl_array_set_at.
27811         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
27812         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
27813         upon out-of-memory.
27814         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
27815         upon out-of-memory.
27816         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
27817         upon out-of-memory.
27818         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
27819         upon out-of-memory.
27820         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
27821         out-of-memory.
27822         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
27823         Update.
27824         (gl_array_list_implementation): Update.
27825         * lib/gl_carray_list.c: Don't include xalloc.h.
27826         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
27827         Return NULL upon out-of-memory.
27828         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
27829         out-of-memory.
27830         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
27831         Change return type to 'int'.
27832         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
27833         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
27834         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
27835         upon out-of-memory.
27836         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
27837         upon out-of-memory.
27838         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
27839         out-of-memory.
27840         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
27841         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
27842         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
27843         Update.
27844         (gl_carray_list_implementation): Update.
27845         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
27846         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
27847         gl_linked_create_empty. Return NULL upon out-of-memory.
27848         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
27849         out-of-memory.
27850         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
27851         Change return type to 'int'. Return -1 upon out-of-memory.
27852         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
27853         out-of-memory.
27854         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
27855         upon out-of-memory.
27856         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
27857         upon out-of-memory.
27858         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
27859         NULL upon out-of-memory.
27860         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
27861         upon out-of-memory.
27862         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
27863         out-of-memory.
27864         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
27865         Update.
27866         * lib/gl_linked_list.c: Don't include xalloc.h.
27867         (gl_linked_list_implementation): Update.
27868         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
27869         (add_to_bucket): Change return type to 'int'.
27870         (gl_linkedhash_list_implementation): Update.
27871         * lib/gl_anytree_list1.h (free_subtree): New function.
27872         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
27873         gl_tree_create_empty. Return NULL upon out-of-memory.
27874         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
27875         Change return type to 'int'. Return -1 upon out-of-memory.
27876         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
27877         out-of-memory.
27878         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
27879         (gl_tree_remove_node): New function, moved here from
27880         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
27881         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
27882         Update.
27883         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
27884         malloc, not xmalloc. Return NULL upon out-of-memory.
27885         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
27886         out-of-memory.
27887         (gl_tree_remove_node_from_tree): New function, extracted from
27888         gl_tree_remove_node.
27889         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
27890         upon out-of-memory.
27891         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
27892         out-of-memory.
27893         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
27894         upon out-of-memory.
27895         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
27896         upon out-of-memory.
27897         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
27898         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
27899         not xmalloc. Return NULL upon out-of-memory.
27900         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
27901         out-of-memory.
27902         (gl_tree_remove_node_from_tree): New function, extracted from
27903         gl_tree_remove_node.
27904         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
27905         upon out-of-memory.
27906         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
27907         out-of-memory.
27908         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
27909         upon out-of-memory.
27910         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
27911         upon out-of-memory.
27912         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
27913         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
27914         gl_anytree_list1.h before gl_anyavltree_list2.h.
27915         (gl_avltree_list_implementation): Update.
27916         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
27917         gl_anytree_list1.h before gl_anyavltree_list2.h.
27918         (gl_rbtree_list_implementation): Update.
27919         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
27920         Change return type to 'int'. Return -1 upon out-of-memory. Use
27921         __builtin_expect.
27922         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
27923         (gl_avltreehash_list_implementation): Update.
27924         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
27925         (gl_rbtreehash_list_implementation): Update.
27926         * modules/array-list (Depends-on): Remove xalloc.
27927         * modules/carray-list (Depends-on): Likewise.
27928         * modules/linked-list (Depends-on): Likewise.
27929         * modules/linkedhash-list (Depends-on): Likewise.
27930         * modules/avltree-list (Depends-on): Likewise.
27931         * modules/rbtree-list (Depends-on): Likewise.
27932         * modules/avltreehash-list (Depends-on): Likewise.
27933         * modules/rbtreehash-list (Depends-on): Likewise.
27934
27935         * modules/xsublist: New file.
27936         * lib/gl_xsublist.h: New file.
27937         * lib/gl_xsublist.c: New file.
27938         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
27939         (gl_sublist_nx_create): New declaration.
27940         * lib/gl_sublist.c: Don't include xalloc.h.
27941         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
27942         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
27943         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
27944         Change return type to 'int'. Return -1 upon out-of-memory.
27945         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
27946         upon out-of-memory.
27947         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
27948         NULL upon out-of-memory.
27949         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
27950         upon out-of-memory.
27951         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
27952         NULL upon out-of-memory.
27953         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
27954         NULL upon out-of-memory.
27955         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
27956         upon out-of-memory.
27957         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
27958         (gl_sublist_list_implementation): Update.
27959         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
27960         upon out-of-memory.
27961         * modules/sublist (Depends-on): Remove xalloc.
27962
27963         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
27964         * tests/test-carray_list.c: Likewise.
27965         * tests/test-linked_list.c: Likewise.
27966         * tests/test-linkedhash_list.c: Likewise.
27967         * tests/test-avltree_list.c: Likewise.
27968         * tests/test-rbtree_list.c: Likewise.
27969         * tests/test-avltreehash_list.c: Likewise.
27970         * tests/test-rbtreehash_list.c: Likewise.
27971         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
27972         * modules/carray-list-tests (Makefile.am): Likewise.
27973         * modules/linked-list-tests (Makefile.am): Likewise.
27974         * modules/linkedhash-list-tests (Makefile.am): Likewise.
27975         * modules/avltree-list-tests (Makefile.am): Likewise.
27976         * modules/rbtree-list-tests (Makefile.am): Likewise.
27977         * modules/avltreehash-list-tests (Makefile.am): Likewise.
27978         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
27979
27980         * NEWS: Mention the changes.
27981
27982         * lib/clean-temp.c: Include gl_xlist.h.
27983         * modules/clean-temp (Depends-on): Add xlist.
27984
27985         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
27986         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
27987
27988         * tests/test-array_oset.c: Include gl_xlist.h.
27989         * modules/array-oset-tests (Depends-on): Add xlist.
27990
27991         Reported by José E. Marchesi <jemarch@gnu.org>.
27992
27993 2009-12-13  Bruno Haible  <bruno@clisp.org>
27994
27995         Move the malloc checking from module 'oset' to new module 'xoset'.
27996         * modules/xoset: New file.
27997         * lib/gl_xoset.h: New file.
27998         * lib/gl_xoset.c: New file.
27999         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
28000         declarations.
28001         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
28002         (struct gl_oset_implementation): Rename and change methods accordingly.
28003         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
28004         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
28005         'int'. Mark as __warn_unused_result__.
28006         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
28007         gl_oset_create_empty.
28008         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
28009         'int'.
28010         * lib/gl_array_oset.c: Don't include xalloc.h.
28011         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
28012         malloc, not xmalloc.
28013         (grow): Change return type to 'int'. Don't call xalloc_die.
28014         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
28015         to 'int'.
28016         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
28017         'int'.
28018         (gl_array_oset_implementation): Update.
28019         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
28020         gl_tree_create_empty.
28021         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
28022         'int'.
28023         * lib/gl_avltree_oset.c: Don't include xalloc.h.
28024         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
28025         xmalloc.
28026         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
28027         not xmalloc.
28028         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
28029         xmalloc.
28030         (gl_avltree_oset_implementation): Update.
28031         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
28032         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
28033         xmalloc.
28034         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
28035         not xmalloc.
28036         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
28037         xmalloc.
28038         (gl_rbtree_oset_implementation): Update.
28039         * modules/array-oset (Depends-on): Remove xalloc.
28040         * modules/avltree-oset (Depends-on): Likewise.
28041         * modules/rbtree-oset (Depends-on): Likewise.
28042         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
28043         * tests/test-avltree_oset.c: Likewise.
28044         * tests/test-rbtree_oset.c: Likewise.
28045         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
28046         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
28047         * modules/rbtree-oset-tests (Makefile.am): Likewise.
28048         * NEWS: Mention the change.
28049
28050 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
28051
28052         maint.mk: allow a project to override release-prep commands
28053         * top/maint.mk (alpha, beta, stable): Move release-preparatory
28054         commands into a new rule.
28055         (release-prep): New rule.
28056         (release-prep-hook): New overridable variable.
28057
28058 2009-12-13  Bruno Haible  <bruno@clisp.org>
28059
28060         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
28061
28062 2009-12-13  Jim Meyering  <meyering@redhat.com>
28063
28064         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
28065         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
28066
28067 2009-12-12  Bruno Haible  <bruno@clisp.org>
28068
28069         duplocale: Tweak.
28070         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
28071
28072 2009-12-12  Karl Berry  <karl@gnu.org>
28073
28074         * config/srclist.txt (strtoll.c): tab changes, no more sync.
28075
28076 2009-12-12  Bruno Haible  <bruno@clisp.org>
28077
28078         * m4/po.m4: Undo incorrect untabification.
28079
28080 2009-12-12  Bruno Haible  <bruno@clisp.org>
28081
28082         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
28083         * modules/c-strtod (Depends-on): Add locale.
28084         * modules/c-strtold (Depends-on): Likewise.
28085
28086 2009-12-12  Bruno Haible  <bruno@clisp.org>
28087
28088         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
28089
28090 2009-12-11  Eric Blake  <ebb9@byu.net>
28091
28092         setenv: relax requirement in light of POSIX ruling
28093         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
28094         not NULL.
28095         * tests/test-setenv.c (main): Relax test.
28096         * tests/test-unsetenv.c (main): Likewise.
28097         * doc/posix-functions/setenv.texi (setenv): Document this.
28098         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
28099
28100 2009-12-11  Bruno Haible  <bruno@clisp.org>
28101
28102         New module 'fd-safer-flag'.
28103         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
28104         * lib/dup-safer.c (dup_safer_flag): Remove function.
28105         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
28106         * lib/fd-safer.c (fd_safer_flag): Remove function.
28107         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
28108         * modules/cloexec (configure.ac): Drop indicator macro.
28109         * modules/fd-safer-flag: New file.
28110         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
28111         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
28112         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
28113
28114 2009-12-11  Bruno Haible  <bruno@clisp.org>
28115
28116         Tests for module 'nl_langinfo'.
28117         * modules/nl_langinfo-tests: New file.
28118         * tests/test-nl_langinfo.sh: New file.
28119         * tests/test-nl_langinfo.c: New file.
28120
28121         New module 'nl_langinfo'.
28122         * lib/nl_langinfo.c: New file.
28123         * m4/nl_langinfo.m4: New file.
28124         * modules/nl_langinfo: New file.
28125         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
28126
28127 2009-12-11  Bruno Haible  <bruno@clisp.org>
28128
28129         Tests for module 'langinfo'.
28130         * modules/langinfo-tests: New file.
28131         * tests/test-langinfo.c: New file.
28132
28133         New module 'langinfo'.
28134         * lib/langinfo.in.h: New file.
28135         * m4/langinfo_h.m4: New file.
28136         * modules/langinfo: New file.
28137         * doc/posix-headers/langinfo.texi: Mention the new module.
28138
28139 2009-12-11  Bruno Haible  <bruno@clisp.org>
28140
28141         * lib/config.charset: Untabify.
28142
28143 2009-12-11  Bruno Haible  <bruno@clisp.org>
28144
28145         * modules/unistd-safer (configure.ac): Drop indicator macro.
28146
28147 2009-12-11  Bruno Haible  <bruno@clisp.org>
28148
28149         Move pipe2-safer code to its own file.
28150         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
28151         * lib/pipe-safer.c (pipe2_safer): Remove function.
28152         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
28153         (Makefile.am): Add it to lib_SOURCES.
28154
28155 2009-12-10  Bruno Haible  <bruno@clisp.org>
28156
28157         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
28158
28159 2009-12-10  Bruno Haible  <bruno@clisp.org>
28160
28161         Declare which arguments expect non-NULL values, for GCC and clang.
28162         * build-aux/arg-nonnull.h: New file.
28163         * modules/arg-nonnull: New file.
28164         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
28165         (inet_ntop, inet_pton): Use it.
28166         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
28167         (closedir, dirfd, opendir, scandir, alphasort): Use it.
28168         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
28169         (open, openat): Use it.
28170         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
28171         (fnmatch): Use it.
28172         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
28173         (getopt, getopt_long, getopt_long_only): Use it.
28174         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
28175         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
28176         Use it.
28177         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
28178         (iconv_open): Use it.
28179         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
28180         (strtoimax, strtoumax): Use it.
28181         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
28182         (duplocale): Use it.
28183         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
28184         (frexp, frexpl): Use it.
28185         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
28186         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
28187         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
28188         (tsearch, tfind, tdelete, twalk): Use it.
28189         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
28190         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
28191         sigpending): Use it.
28192         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
28193         (posix_spawn, posix_spawnp, posix_spawnattr_init,
28194         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
28195         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
28196         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
28197         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
28198         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
28199         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
28200         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
28201         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
28202         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
28203         Use it.
28204         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
28205         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
28206         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
28207         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
28208         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
28209         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
28210         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
28211         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
28212         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
28213         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
28214         strtoull, unsetenv): Use it.
28215         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
28216         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
28217         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
28218         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
28219         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
28220         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
28221         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
28222         (strcasecmp, strncasecmp): Use it.
28223         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
28224         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
28225         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
28226         rpl_setsockopt): Use it.
28227         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
28228         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
28229         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
28230         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
28231         (gettimeofday): Use it.
28232         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
28233         (times): Use it.
28234         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
28235         (uname): Use it.
28236         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
28237         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
28238         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
28239         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
28240         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
28241         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
28242         unlinkat, write): Use it.
28243         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
28244         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
28245         * lib/argv-iter.h: Include arg-nonnull.h.
28246         (_ATTRIBUTE_NONNULL_): Remove macro.
28247         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
28248         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
28249         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
28250         optimization.
28251         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
28252         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
28253         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
28254         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
28255         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
28256         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
28257         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
28258         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
28259         * modules/arpa_inet (Depends-on): Add arg-nonnull.
28260         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
28261         * modules/dirent (Depends-on): Add arg-nonnull.
28262         (Makefile.am): Insert arg-nonnull.h into dirent.h.
28263         * modules/fcntl-h (Depends-on): Add arg-nonnull.
28264         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
28265         * modules/fnmatch (Depends-on): Add arg-nonnull.
28266         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
28267         * modules/getopt-posix (Depends-on): Add arg-nonnull.
28268         (Makefile.am): Insert arg-nonnull.h into getopt.h.
28269         * modules/glob (Depends-on): Add arg-nonnull.
28270         (Makefile.am): Insert arg-nonnull.h into glob.h.
28271         * modules/iconv_open (Depends-on): Add arg-nonnull.
28272         (Makefile.am): Insert arg-nonnull.h into iconv.h.
28273         * modules/inttypes (Depends-on): Add arg-nonnull.
28274         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
28275         * modules/locale (Depends-on): Add arg-nonnull.
28276         (Makefile.am): Insert arg-nonnull.h into locale.h.
28277         * modules/math (Depends-on): Add arg-nonnull.
28278         (Makefile.am): Insert arg-nonnull.h into math.h.
28279         * modules/netdb (Depends-on): Add arg-nonnull.
28280         (Makefile.am): Insert arg-nonnull.h into netdb.h.
28281         * modules/search (Depends-on): Add arg-nonnull.
28282         (Makefile.am): Insert arg-nonnull.h into search.h.
28283         * modules/signal (Depends-on): Add arg-nonnull.
28284         (Makefile.am): Insert arg-nonnull.h into signal.h.
28285         * modules/spawn (Depends-on): Add arg-nonnull.
28286         (Makefile.am): Insert arg-nonnull.h into spawn.h.
28287         * modules/stdio (Depends-on): Add arg-nonnull.
28288         (Makefile.am): Insert arg-nonnull.h into stdio.h.
28289         * modules/stdlib (Depends-on): Add arg-nonnull.
28290         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
28291         * modules/string (Depends-on): Add arg-nonnull.
28292         (Makefile.am): Insert arg-nonnull.h into string.h.
28293         * modules/strings (Depends-on): Add arg-nonnull.
28294         (Makefile.am): Insert arg-nonnull.h into strings.h.
28295         * modules/sys_socket (Depends-on): Add arg-nonnull.
28296         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
28297         * modules/sys_stat (Depends-on): Add arg-nonnull.
28298         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
28299         * modules/sys_time (Depends-on): Add arg-nonnull.
28300         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
28301         * modules/sys_times (Depends-on): Add arg-nonnull.
28302         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
28303         * modules/sys_utsname (Depends-on): Add arg-nonnull.
28304         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
28305         * modules/time (Depends-on): Add arg-nonnull.
28306         (Makefile.am): Insert arg-nonnull.h into time.h.
28307         * modules/unistd (Depends-on): Add arg-nonnull.
28308         (Makefile.am): Insert arg-nonnull.h into unistd.h.
28309         * modules/wchar (Depends-on): Add arg-nonnull.
28310         (Makefile.am): Insert arg-nonnull.h into wchar.h.
28311         * modules/argv-iter (Depends-on): Add arg-nonnull.
28312         * tests/test-canonicalize.c (null_ptr): New function.
28313         (main): Use it.
28314         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
28315         (main): Use it.
28316         * tests/test-memmem.c (null_ptr): New function.
28317         (main): Use it.
28318         Reported by Jim Meyering.
28319
28320 2009-12-10  Bruno Haible  <bruno@clisp.org>
28321
28322         Use spaces for indentation, not tabs.
28323         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
28324         * m4/*.m4: Untabify.
28325         * build-aux/*.h: Untabify.
28326         * tests/**/*.[hc]: Untabify.
28327         * README: New section "Indent with spaces, not TABs", based on
28328         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
28329         * NEWS: Mention the change.
28330
28331 2009-12-10  Bruno Haible  <bruno@clisp.org>
28332
28333         pty test: Fix link error.
28334         * modules/pty-tests (Makefile.am): Add the default LDADD value to
28335         test_pty_LDADD.
28336
28337 2009-12-07  Simon Josefsson  <simon@josefsson.org>
28338
28339         * modules/pty: New file.
28340         * modules/pty-tests: New file.
28341         * m4/pty.m4: New file.
28342         * tests/test-pty.c: New file.
28343         * doc/glibc-headers/pty.texi: Modified.
28344         * doc/glibc-functions/forkpty.texi: Modified.
28345         * doc/glibc-functions/openpty.texi: Modified.
28346
28347 2009-12-10  Bruno Haible  <bruno@clisp.org>
28348
28349         Avoid syntax error in C++ mode.
28350         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
28351
28352 2009-12-10  Bruno Haible  <bruno@clisp.org>
28353
28354         Use sed with option -e.
28355         * gnulib-tool (func_version, func_emit_copyright_notice,
28356         func_emit_initmacro_end, func_import, func_create_testdir): Pass
28357         option -e to sed.
28358         * modules/link-warning (Makefile.am): Likewise.
28359
28360 2009-12-10  Jim Meyering  <meyering@redhat.com>
28361
28362         mgetgroups: do not write bytes beyond end of malloc'd buffer
28363         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
28364         username, we call getgroups with a one-element-shorter buffer,
28365         but still told it the length was original, max_n_groups.
28366
28367 2009-12-09  Eric Blake  <ebb9@byu.net>
28368
28369         cloexec: relax license
28370         * modules/cloexec (Maintainer): Add myself.
28371         (License): Use LGPL, not GPL.
28372
28373         link-warning: optimize generation
28374         * modules/link-warning (Makefile.am): Reduce process usage.
28375
28376 2009-12-09  Bruno Haible  <bruno@clisp.org>
28377
28378         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
28379         workaround was added on 2009-11-17.
28380
28381 2009-12-09  Jim Meyering  <meyering@redhat.com>
28382             Bruno Haible  <bruno@clisp.org>
28383
28384         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
28385         * modules/link-warning (Makefile.am): Make the comment-removing sed
28386         command more robust in the face of bootstrap-prepended comment lines.
28387
28388 2009-12-09  Bruno Haible  <bruno@clisp.org>
28389
28390         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
28391         most one group.
28392
28393 2009-12-09  Simon Josefsson <simon@josefsson.org>
28394             Bruno Haible  <bruno@clisp.org>
28395
28396         * build-aux/link-warning.h: Add copyright notice.
28397         * modules/link-warning (Makefile.am): Generate link-warning.h from
28398         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
28399         * NEWS: Mention change in link-warning module.
28400         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
28401         * modules/dirent (Makefile.am): Add dependency to dirent.h.
28402         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
28403         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
28404         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
28405         * modules/math (Makefile.am): Add dependency to math.h.
28406         * modules/search (Makefile.am): Add dependency to search.h.
28407         * modules/signal (Makefile.am): Add dependency to signal.h.
28408         * modules/spawn (Makefile.am): Add dependency to spawn.h.
28409         * modules/stdio (Makefile.am): Add dependency to stdio.h.
28410         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
28411         * modules/string (Makefile.am): Add dependency to string.h.
28412         * modules/strings (Makefile.am): Add dependency to strings.h.
28413         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
28414         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
28415         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
28416         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
28417         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
28418         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
28419         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
28420         * modules/unistd (Makefile.am): Add dependency to unistd.h.
28421         * modules/wchar (Makefile.am): Add dependency to wchar.h.
28422
28423 2009-12-09  Bruno Haible  <bruno@clisp.org>
28424
28425         fchdir: Optimize away rpl_fstat when possible.
28426         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
28427         REPLACE_OPEN_DIRECTORY.
28428         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
28429
28430 2009-12-09  Bruno Haible  <bruno@clisp.org>
28431
28432         * lib/fchdir.c: Update comment.
28433
28434 2009-12-09  Bruno Haible  <bruno@clisp.org>
28435
28436         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
28437
28438 2009-12-08  Eric Blake  <ebb9@byu.net>
28439
28440         fchdir: avoid memory leak on re-registration.
28441         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
28442
28443 2009-12-08  Jim Meyering  <meyering@redhat.com>
28444
28445         init.sh: avoid Solaris 10 /bin/sh portability problem
28446         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
28447         sourced script:
28448           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
28449           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
28450           bar
28451         tests/init.sh relied on that, accepting a --set-path=DIR argument,
28452         and two tests used that idiom.
28453         * tests/init.sh: Update suggested usage comments.
28454         (path_prepend_): New function, to be used in place
28455         of the --src-path=DIR option.
28456         (setup_): Move PATH-prepending code into path_prepend_.
28457         * tests/test-pread.sh: Adapt to new usage.
28458         * tests/test-xalloc-die.sh: Likewise.
28459
28460 2009-12-08  Simon Josefsson  <simon@josefsson.org>
28461
28462         * doc/gnulib.texi (Glibc pty.h): Add.
28463         * doc/glibc-functions/forkpty.texi: Add.
28464         * doc/glibc-functions/openpty.texi: Add.
28465         Suggested by Bruno Haible.
28466
28467 2009-12-08  Eric Blake  <ebb9@byu.net>
28468
28469         fchdir: fix logic bugs
28470         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
28471         * tests/test-fchdir.c (main): Enhance test.
28472         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
28473         is in use.
28474
28475         dup2: fix logic bugs
28476         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
28477         REPLACE_DUP2 to decide when rpl_dup2 is needed.
28478         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
28479         exists.
28480         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
28481
28482 2009-12-07  Eric Blake  <ebb9@byu.net>
28483
28484         unlink: fix m4 detection
28485         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
28486
28487         unistd-safer: add unit test
28488         * modules/unistd-safer-tests: New file.
28489         * tests/test-dup-safer.c: Likewise.
28490         * tests/test-cloexec.c (setmode): Avoid compiler warning.
28491         * tests/test-dup2.c (setmode): Likewise.
28492         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
28493
28494         cloexec: preserve text vs. binary across dup_cloexec
28495         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
28496         mode.
28497         * modules/dup2-tests (Depends-on): Add binary-io.
28498         * modules/cloexec-tests (Depends-on): Likewise.
28499         * tests/test-dup2.c (setmode, is_mode): New helpers.
28500         (main): Add tests that translation mode is preserved.
28501         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
28502         Reported by Bruno Haible.
28503
28504         mgetgroups: reduce duplicate listings
28505         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
28506         resulting array.
28507         * tests/test-chown.h (test_chown): Simplify client.
28508         * tests/test-lchown.h (test_lchown): Likewise.
28509
28510 2009-12-06  Bruno Haible  <bruno@clisp.org>
28511
28512         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
28513         value.
28514
28515 2009-12-06  Bruno Haible  <bruno@clisp.org>
28516
28517         * lib/progname.c: Include stdio.h, stdlib.h.
28518         (set_program_name): Reject a NULL argument.
28519
28520 2009-12-05  Eric Blake  <ebb9@byu.net>
28521
28522         pipe2-safer: new module
28523         * modules/pipe2-safer: New file.
28524         * lib/unistd-safer.h (pipe2_safer): New prototype.
28525         * lib/unistd--.h (pipe2): New wrapper.
28526         * lib/pipe-safer.c (pipe2_safer): New function.
28527         * modules/pipe (Depends-on): Add pipe2-safer.
28528         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
28529
28530         stdlib-safer: preserve cloexec flag for mkostemp[s]
28531         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
28532         fd_safer_flag.
28533
28534         unistd-safer: allow preservation of cloexec status via flag
28535         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
28536         prototypes.
28537         * lib/dup-safer.c (dup_safer_flag): New function.
28538         * lib/fd-safer.c (fd_safer_flag): Likewise.
28539         * modules/cloexec (configure.ac): Set witness.
28540
28541         test-dup2: enhance test
28542         * modules/dup2-tests (Depends-on): Add cloexec.
28543         * tests/test-dup2.c (main): Enhance test.
28544
28545         cloexec: add dup_cloexec
28546         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
28547         header and comments.
28548         * lib/cloexec.c (set_cloexec_flag): Add comments.
28549         (dup_cloexec): New function, with mingw implementation borrowed
28550         from...
28551         * lib/w32spawn.h (dup_noinherit): ...here.
28552         * modules/execute (Depends-on): Add cloexec.
28553         * modules/pipe (Depends-on): Likewise.
28554         * modules/cloexec (Depends-on): Add dup2.
28555         * modules/cloexec-tests (Files): New file.
28556         * tests/test-cloexec.c: Likewise.
28557
28558         test-xalloc-die: fix test for mingw
28559         * modules/xalloc-die-tests (Files): Add tests/init.sh.
28560         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
28561         directory and .exe suffix off argv[0] output.
28562
28563         test-fseeko: fix test for mingw
28564         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
28565         than undefining fseek, so test will pass on mingw.
28566
28567 2009-12-05  Bruno Haible  <bruno@clisp.org>
28568
28569         * lib/progname.h (set_program_name): Clarify specification.
28570         * lib/progname.c (set_program_name): Likewise.
28571         Reported by Jim Meyering.
28572
28573 2009-12-05  Jim Meyering  <meyering@redhat.com>
28574
28575         maint.mk: backslash-escape parens in default regexp
28576         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
28577         backslash-escape the literal parentheses.
28578
28579         maint.mk: news-date-check: use grep -E
28580         * top/maint.mk (today): Define a Make variable, not a...
28581         (news-date-check): ...shell variable.
28582         (news-date-regexp): Use the Make variable.
28583         Use grep's -E option.  Change the failing diagnostic to mention
28584         the variable, $(news-date-regexp).
28585
28586 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
28587
28588         maintainer-makefile: allow customization of NEWS entry format
28589         * top/maint.mk (news-date-regexp): New overridable variable.
28590         (news-date-check): Use it.
28591
28592 2009-12-04  Eric Blake  <ebb9@byu.net>
28593
28594         mgetgroups: add xgetgroups, and avoid ENOSYS failures
28595         * lib/mgetgroups.h (xgetgroups): New prototype.
28596         * lib/mgetgroups.c (xgetgroups): New wrapper.
28597         (mgetgroups): Handle ENOSYS.
28598         * modules/mgetgroups (Depends-on): Add realloc.
28599         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
28600
28601         mgetgroups: avoid argument promotion issues with -1
28602         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
28603         for invalid gid_t.
28604         * tests/test-chown.h (getegid, test_chown): Likewise.
28605         * tests/test-lchown.h (getegid, test_lchown): Likewise.
28606
28607 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
28608
28609         exclude: Fix header file problems.
28610         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
28611
28612 2009-12-01  Jim Meyering  <meyering@redhat.com>
28613
28614         fts: fts_open: do not let an empty string cause immediate failure
28615         This is required in support of GNU rm, for which the command
28616         "rm A '' B" must process and remove both A and B, in spite of
28617         the empty string argument.
28618         * lib/fts.c (fts_open): Do not let the presence of an empty string
28619         cause fts_open to fail immediately.  Most fts-using tools must be
28620         able to process all arguments, in order, and can be expected to
28621         diagnose such arguments themselves.
28622
28623 2009-11-30  Eric Blake  <ebb9@byu.net>
28624
28625         utimens: fix compilation error
28626         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
28627         Declare variable at right scope.
28628
28629 2009-11-29  Jim Meyering  <meyering@redhat.com>
28630
28631         bootstrap: handle perl-5.11's changed --version output
28632         * build-aux/bootstrap (get_version): Handle perl separately,
28633         since perl-5.11's --version output is different.
28634
28635 2009-11-28  Jim Meyering  <meyering@redhat.com>
28636
28637         userspec: depend on the inttostr module, too
28638         * modules/userspec (Depends-on): Add inttostr.
28639
28640         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
28641         * lib/userspec.c (parse_with_separator): Do not accept a user ID
28642         number of MAXUID when it evaluates to (uid_t) -1.
28643         Likewise for group ID.  Reported by Matt McCutchen in
28644         <http://savannah.gnu.org/bugs/?28113>
28645
28646         userspec: reformat to use spaces, not TABs
28647         * lib/userspec.c: Expand TABs to spaces.
28648         Add Emacs' "indent-tabs-mode: nil" hint.
28649
28650 2009-11-27  Eric Blake  <ebb9@byu.net>
28651
28652         getopt-gnu: flush out another BSD bug
28653         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
28654         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
28655         flush out BSD bug.
28656         * tests/test-getopt.h (test_getopt): End lists with NULL.
28657         * tests/test-getopt_long.h (test_getopt_long): Likewise.
28658         (test_getopt_long_posix): Enhance test.
28659         * modules/getopt-posix-tests (Depends-on): Add stdbool.
28660         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
28661         getopt-gnu.
28662         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
28663         Likewise.
28664
28665 2009-11-27  Simon Josefsson  <simon@josefsson.org>
28666
28667         * modules/idpriv-droptemp-tests (Notice): Fix text.
28668
28669 2009-11-27  Jim Meyering  <meyering@redhat.com>
28670
28671         test-xalloc-die: avoid spurious failure due to libtool argv difference
28672         In a libtool-enabled project, this test would fail due to a difference
28673         in the emitted program name, e.g.,
28674         -test-xalloc-die: memory exhausted
28675         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
28676         Use program to avoid that.
28677         * modules/xalloc-die-tests (Depends-on): Add progname.
28678         * tests/test-xalloc-die.c: Include progname.h".
28679         (program_name): Remove decl.
28680         (main): Call set_program_name.
28681         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
28682
28683 2009-11-26  Richard Jones  <rjones@redhat.com>
28684
28685         w32sock: leave win32 error in place.
28686         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
28687
28688 2009-11-26  Eric Blake  <ebb9@byu.net>
28689
28690         init.sh: suggest to use skip_ and fail_ functions in comments
28691         * tests/init.sh: Add a sentence.
28692
28693 2009-11-25  Bruno Haible  <bruno@clisp.org>
28694
28695         init.sh: add documentation in comments
28696         * tests/init.sh: Add some developer and user documentation.
28697
28698 2009-11-26  Jim Meyering  <meyering@redhat.com>
28699
28700         init.sh: accommodate even those who specify bogus srcdir manually
28701         * tests/init.sh: Normally, srcdir is guaranteed by automake and
28702         configure-time tests to be sanitized, so that there is no need to
28703         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
28704         (with no double quotes) suffices.  However, since tests may be
28705         invoked manually, and since you may explicitly set srcdir to the
28706         name of a directory containing spaces, do quote its uses here.
28707         * tests/test-pread.sh: Likewise.
28708         Suggested by Bruno Haible.
28709
28710         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
28711         * tests/test-pread.sh: Write no data into the pipe, because
28712         test-pread actually reads none.  This avoids a diagnostic,
28713         "bash: echo: write error: Broken pipe", that arises in the unusual
28714         event something is ignoring SIGPIPE, and might be interpreted
28715         as some sort of failure.  Reported by Bruno Haible.
28716
28717 2009-11-25  Jim Meyering  <meyering@redhat.com>
28718
28719         test-pread: cover failure with ESPIPE and EINVAL
28720         * tests/test-pread.c (main): Test for failure, too.
28721         * tests/test-pread.sh: Invoke with stdin on a pipe.
28722         Suggested by Eric Blake.
28723
28724         pread: improvement and fix
28725         * modules/pread (Depends-on): Depend on lseek, for portability to
28726         e.g., mingw.  Suggested by Eric Blake.
28727         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
28728
28729         unistd.in.h: correct declaration of pread
28730         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
28731         Reported by Richard W.M. Jones.
28732
28733         test-pread.sh: distribute the test script
28734         * modules/pread-tests (Files): Include test-pread.sh.
28735
28736         test-pread.sh: clean up
28737         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
28738         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
28739         That is unnecessary, since it's always ".".
28740         Suggestion from Eric Blake.
28741
28742         test-pread.sh: make executable
28743         * tests/test-pread.sh: Set executable bit.
28744         Reported by Eric Blake.
28745
28746         correct typo in test-pread.sh
28747         * tests/test-pread.sh: Add #! line.
28748
28749         test pread
28750         * tests/test-pread.c: New file.
28751         * tests/test-pread.sh: Likewise.
28752         * modules/pread-tests: Likewise.
28753
28754         pread: new module
28755         * modules/pread: New file.
28756         * lib/unistd.in.h (pread): Define/declare.
28757         * lib/pread.c (pread): New file.
28758         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
28759         * modules/unistd (Makefile.am): Substitute witnesses.
28760         * doc/posix-functions/pread.texi (pread): Update.
28761         * MODULES.html.sh: Add pread.
28762
28763 2009-11-25  Jim Meyering  <meyering@redhat.com>
28764
28765         tests/init.sh: new file to be used via most *.sh tests
28766         * tests/init.sh: New file.
28767
28768 2009-11-25  Eric Blake  <ebb9@byu.net>
28769
28770         utimens: work around older Linux failure with symlinks
28771         * lib/utimens.c (lutimensat_works_really): New variable.
28772         (fdutimens, lutimens): Use it to manage kernels that support
28773         nanosecond times on files, but not on symlinks.
28774         Reported by OndÅ™ej Vašík.
28775
28776         utimes: fix configure grammar
28777         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
28778
28779 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
28780
28781         regex: Fix fastmap for multibyte character ranges.
28782         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
28783         characters when a multibyte character range is included.
28784
28785 2009-11-22  Andy Wingo  <wingo@pobox.com>
28786
28787         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
28788         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
28789
28790 2009-11-24  Bruno Haible  <bruno@clisp.org>
28791
28792         doc: Most *_l functions exist in MacOS X 10.5.
28793         * doc/posix-functions/duplocale.texi: Update platforms list.
28794         * doc/posix-functions/freelocale.texi: Likewise.
28795         * doc/posix-functions/newlocale.texi: Likewise.
28796         * doc/posix-functions/uselocale.texi: Likewise.
28797         * doc/posix-functions/isalnum_l.texi: Likewise.
28798         * doc/posix-functions/isalpha_l.texi: Likewise.
28799         * doc/posix-functions/isblank_l.texi: Likewise.
28800         * doc/posix-functions/iscntrl_l.texi: Likewise.
28801         * doc/posix-functions/isdigit_l.texi: Likewise.
28802         * doc/posix-functions/isgraph_l.texi: Likewise.
28803         * doc/posix-functions/islower_l.texi: Likewise.
28804         * doc/posix-functions/isprint_l.texi: Likewise.
28805         * doc/posix-functions/ispunct_l.texi: Likewise.
28806         * doc/posix-functions/isspace_l.texi: Likewise.
28807         * doc/posix-functions/isupper_l.texi: Likewise.
28808         * doc/posix-functions/iswalnum_l.texi: Likewise.
28809         * doc/posix-functions/iswalpha_l.texi: Likewise.
28810         * doc/posix-functions/iswblank_l.texi: Likewise.
28811         * doc/posix-functions/iswcntrl_l.texi: Likewise.
28812         * doc/posix-functions/iswctype_l.texi: Likewise.
28813         * doc/posix-functions/iswdigit_l.texi: Likewise.
28814         * doc/posix-functions/iswgraph_l.texi: Likewise.
28815         * doc/posix-functions/iswlower_l.texi: Likewise.
28816         * doc/posix-functions/iswprint_l.texi: Likewise.
28817         * doc/posix-functions/iswpunct_l.texi: Likewise.
28818         * doc/posix-functions/iswspace_l.texi: Likewise.
28819         * doc/posix-functions/iswupper_l.texi: Likewise.
28820         * doc/posix-functions/iswxdigit_l.texi: Likewise.
28821         * doc/posix-functions/isxdigit_l.texi: Likewise.
28822         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
28823         * doc/posix-functions/strcasecmp_l.texi: Likewise.
28824         * doc/posix-functions/strcoll_l.texi: Likewise.
28825         * doc/posix-functions/strfmon_l.texi: Likewise.
28826         * doc/posix-functions/strftime_l.texi: Likewise.
28827         * doc/posix-functions/strncasecmp_l.texi: Likewise.
28828         * doc/posix-functions/strxfrm_l.texi: Likewise.
28829         * doc/posix-functions/tolower_l.texi: Likewise.
28830         * doc/posix-functions/toupper_l.texi: Likewise.
28831         * doc/posix-functions/towctrans_l.texi: Likewise.
28832         * doc/posix-functions/towlower_l.texi: Likewise.
28833         * doc/posix-functions/towupper_l.texi: Likewise.
28834         * doc/posix-functions/wcscoll_l.texi: Likewise.
28835         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
28836         * doc/posix-functions/wctrans_l.texi: Likewise.
28837         * doc/posix-functions/wctype_l.texi: Likewise.
28838         * doc/glibc-functions/strptime_l.texi: Likewise.
28839         * doc/glibc-functions/strtod_l.texi: Likewise.
28840         * doc/glibc-functions/strtof_l.texi: Likewise.
28841         * doc/glibc-functions/strtol_l.texi: Likewise.
28842         * doc/glibc-functions/strtold_l.texi: Likewise.
28843         * doc/glibc-functions/strtoll_l.texi: Likewise.
28844         * doc/glibc-functions/strtoul_l.texi: Likewise.
28845         * doc/glibc-functions/strtoull_l.texi: Likewise.
28846         * doc/glibc-functions/wcsftime_l.texi: Likewise.
28847         * doc/glibc-functions/wcstod_l.texi: Likewise.
28848         * doc/glibc-functions/wcstof_l.texi: Likewise.
28849         * doc/glibc-functions/wcstol_l.texi: Likewise.
28850         * doc/glibc-functions/wcstold_l.texi: Likewise.
28851         * doc/glibc-functions/wcstoll_l.texi: Likewise.
28852         * doc/glibc-functions/wcstoul_l.texi: Likewise.
28853         * doc/glibc-functions/wcstoull_l.texi: Likewise.
28854
28855 2009-11-24  Bruno Haible  <bruno@clisp.org>
28856
28857         duplocale: Fix logic bug.
28858         * lib/duplocale.c: Don't include <langinfo.h>.
28859         (_NL_LOCALE_NAME): Remove macro.
28860         (rpl_duplocale): Use setlocale instead of nl_langinfo.
28861         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
28862
28863 2009-11-23  Jim Meyering  <meyering@redhat.com>
28864
28865         test-update-copyright: don't hard-code /usr/bin/perl
28866         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
28867         perl to print the current year.  Gilles Espinasse reported that
28868         the replaced use of perl was hard-coded as /usr/bin/perl.
28869
28870 2009-11-23  Bruno Haible  <bruno@clisp.org>
28871
28872         duplocale: Add support for glibc 2.3.x.
28873         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
28874
28875 2009-11-22  Bruno Haible  <bruno@clisp.org>
28876
28877         vasnprintf: Tiny optimization.
28878         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
28879         MacOS X.
28880
28881 2009-11-22  Bruno Haible  <bruno@clisp.org>
28882
28883         Tests for module 'duplocale'.
28884         * modules/duplocale-tests: New file.
28885         * tests/test-duplocale.c: New file.
28886
28887         New module 'duplocale'.
28888         * m4/duplocale.m4: New file.
28889         * lib/locale.in.h (duplocale): New declaration.
28890         * lib/duplocale.c: New file.
28891         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
28892         gl_LOCALE_H_DEFAULTS): New macros.
28893         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
28894         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
28895         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
28896         REPLACE_DUPLOCALE.
28897         * modules/duplocale: New file.
28898         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
28899
28900 2009-11-22  Bruno Haible  <bruno@clisp.org>
28901
28902         * modules/locale-tests (configure.ac): Test for newlocale function.
28903         * tests/test-locale.c: When the system has extended locale functions,
28904         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
28905
28906         locale: Make locale_t available when possible.
28907         * lib/locale.in.h: Include <xlocale.h> when it exists.
28908         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
28909         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
28910         * modules/locale (Depends-on): Add extensions.
28911         (Makefile.am): Also substitute HAVE_XLOCALE_H.
28912         * doc/posix-headers/locale.texi: Document the problem with locale_t.
28913
28914 2009-11-22  Bruno Haible  <bruno@clisp.org>
28915
28916         Add comments.
28917         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
28918         invocation.
28919         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
28920         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
28921         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
28922
28923 2009-11-22  Bruno Haible  <bruno@clisp.org>
28924
28925         error: account for the possibility of freopen (stdout).
28926         * lib/error.c: Include <unistd.h>.
28927         (flush_stdout): New function, extracted from error and error_at_line.
28928         Determine stdout's fd dynamically.
28929         (error, error_at_line): Invoke flush_stdout.
28930         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
28931         * modules/error (Depends-on): Add unistd.
28932
28933 2009-11-22  Bruno Haible  <bruno@clisp.org>
28934
28935         diffseq: Add comment.
28936         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
28937
28938 2009-11-22  Jim Meyering  <meyering@redhat.com>
28939
28940         c-stack: avoid defining an unused static function
28941         * lib/c-stack.c (find_stack_direction): Do not define this function
28942         when it will not be used.
28943
28944         diffseq: avoid spurious gcc warnings
28945         * lib/diffseq.h (IF_LINT2): Define.
28946         (compareseq): Use it to initialize two members of "part".
28947         This avoids two used-uninitialized warnings.
28948
28949 2009-11-21  Jim Meyering  <meyering@redhat.com>
28950
28951         c-stack: avoid "ignoring return value of `write'" warning
28952         * lib/c-stack.c: Include "ignore-value.h".
28953         (die): Explicitly ignore each write return value.
28954         * modules/c-stack (Depends-on): Add ignore-value.
28955
28956 2009-11-21  Bruno Haible  <bruno@clisp.org>
28957
28958         diffseq: reduce scope of variable 'best'.
28959         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
28960         variable, earlier used for two different purposes.
28961
28962 2009-11-21  Jim Meyering  <meyering@redhat.com>
28963
28964         diffseq: remove useless assignment to "best"
28965         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
28966         assignment.  At that point "best" is already guaranteed to be zero.
28967
28968 2009-11-20  Eric Blake  <ebb9@byu.net>
28969
28970         build: mention ftp redirector in release announcements
28971         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
28972         values that used to come from cfg.mk; mention FTP redirect URL.
28973         * build-aux/announce-gen: Mention the mirror list.
28974         Suggested by Karl Berry.
28975
28976         nanosleep: improve port to mingw
28977         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
28978         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
28979         LIB_NANOSLEEP, but only when needed.
28980         * modules/select (Link): Document LIBSOCKET.
28981         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
28982         enough.
28983
28984         nanosleep: work around cygwin bug
28985         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
28986         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
28987         bug.
28988         (getnow): Delete, not needed.
28989         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
28990         LIB_CLOCK_GETTIME.
28991         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
28992         clock-time, gettime.
28993         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
28994         bug.
28995         * modules/nanosleep-tests: New test.
28996         * tests/test-nanosleep.c: New file.
28997
28998         sleep: work around cygwin bug
28999         * lib/sleep.c (rpl_sleep): Work around the bug.
29000         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
29001         (gl_PREREQ_SLEEP): Delete unused macro.
29002         * modules/sleep (Depends-on): Add verify.
29003         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
29004         * modules/unistd (Makefile.am): Substitute witness.
29005         * lib/unistd.in.h (sleep): Update prototype.
29006         * doc/posix-functions/sleep.texi (sleep): Document the bug.
29007         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
29008         * modules/sleep-tests (Depends-on): Check for alarm.
29009
29010 2009-11-20  Jim Meyering  <meyering@redhat.com>
29011
29012         maint.mk: improve sc_prohibit_magic_number_exit
29013         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
29014         so it does not match uses like System.exit(1).
29015         Add comments showing how to correct all offenders.
29016
29017 2009-11-19  Eric Blake  <ebb9@byu.net>
29018
29019         xalloc-die-tests: add missing library
29020         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
29021
29022         test-xvasprintf: silence compiler warnings
29023         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
29024         empty string from gcc.
29025
29026 2009-11-19  Jim Meyering  <meyering@redhat.com>
29027
29028         xfreopen: new module, from coreutils
29029         * modules/xfreopen: New module.
29030         * lib/xfreopen.c: New file.
29031         * lib/xfreopen.h: New file.
29032         * MODULES.html.sh (File stream based Input/Output"): Add it.
29033
29034 2009-11-19  Eric Blake  <ebb9@byu.net>
29035
29036         manywarnings: depend on warnings
29037         * modules/manywarnings (Depends-on): Add warnings.
29038
29039         build: avoid compiler warnings
29040         * lib/select.c (rpl_select): Delete unused variable.
29041         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
29042
29043 2009-11-18  Eric Blake  <ebb9@byu.net>
29044
29045         tests: avoid false negative with --with-packager
29046         * tests/test-version-etc.sh: Discard packager information.
29047         * tests/test-argp-version-etc-1.sh: Likewise.
29048         Reported by Mike Frysinger.
29049
29050         utimens: fix regression on Solaris
29051         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
29052         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
29053         can only change fd timestamps via futimesat.  Instead, use an
29054         additional witness macro to avoid BSD bug.
29055         Reported by Jim Meyering.
29056
29057 2009-11-17  Eric Blake  <ebb9@byu.net>
29058
29059         usleep: use it to simplify tests
29060         * modules/stat-time-tests (Depends-on): Add usleep.
29061         (configure.ac): Drop usleep check.
29062         * modules/chown-tests (Depends-on, configure.ac): Likewise.
29063         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
29064         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
29065         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
29066         * modules/openat-tests (Depends-on, configure.ac): Likewise.
29067         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
29068         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
29069         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
29070         Likewise.
29071         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
29072         * tests/test-lchown.h (nap): Likewise.
29073         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
29074         * tests/test-stat-time.c (nap): Likewise.
29075         * tests/test-utimens-common.h (nap): Update comments.
29076
29077         usleep: new module
29078         * modules/usleep: New file.
29079         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
29080         * lib/usleep.c (usleep): Likewise.
29081         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
29082         * modules/unistd (Makefile.am): Substitute witnesses.
29083         * lib/unistd.in.h (usleep): Add declaration.
29084         * doc/pastposix-functions/usleep.texi (usleep): Document this.
29085         * MODULES.html.sh (Date and time): Likewise.
29086         * modules/usleep-tests (Depends-on): New test.
29087         * tests/test-usleep.c: New file.
29088
29089         chown: work around OpenBSD bug
29090         * lib/chown.c (rpl_chown): Work around the bug.
29091         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
29092         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
29093         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
29094         * modules/chown (Depends-on): Add stdbool.
29095         * modules/lchown (Depends-on): Likewise.
29096         * doc/posix-functions/chown.texi (chown): Document the bug.
29097         * doc/posix-functions/lchown.texi (lchown): Likewise.
29098         * tests/test-lchown.h (test_chown): Relax test.
29099
29100         mkstemp: avoid conflict with C++ keyword template
29101         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
29102         * lib/mkostemp.c (mkostemp): Likewise.
29103         * lib/mkostemps.c (mkostemps): Likewise.
29104         * lib/mkstemp.c (mkstemp): Likewise.
29105         * lib/mkstemps.c (mkstemps): Likewise.
29106
29107         xalloc-die-tests: optimize
29108         * tests/test-xalloc-die.sh: Reduce number of processes.
29109
29110 2009-11-17  Simon Josefsson  <simon@josefsson.org>
29111
29112         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
29113         patch from ludo@gnu.org (Ludovic Courtès).
29114
29115 2009-11-17  Jim Meyering  <meyering@redhat.com>
29116
29117         version-etc: use proper license string
29118         * modules/version-etc (License): Use LGPL, not LGPLv3+.
29119         * modules/version-etc-fsf: Likewise.
29120
29121 2009-11-17  Simon Josefsson  <simon@josefsson.org>
29122
29123         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
29124         printed to stdout.  Deal with EOL differences.
29125
29126 2009-11-17  Eric Blake  <ebb9@byu.net>
29127
29128         unsetenv: work around Solaris bug
29129         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
29130         * lib/unsetenv.c (rpl_unsetenv): Work around it.
29131         Reported by Jim Meyering.
29132
29133         vasnprintf: avoid compiler warnings
29134         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
29135         variables.
29136         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
29137
29138 2009-11-17  Simon Josefsson  <simon@josefsson.org>
29139
29140         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
29141         settings since xalloc-die is no longer the self test,
29142         xalloc-die.sh is.
29143
29144 2009-11-17  Jim Meyering  <meyering@redhat.com>
29145
29146         test-xalloc-die.sh: make the code agree with the commit log
29147         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
29148         at the end, just in case you happen to have a test-xalloc-die
29149         program in some other PATH directory.
29150
29151         test-xalloc-die.sh: fix a portability bug
29152         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
29153         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
29154         Otherwise, argv[0] (as often seen in diagnostics) would be too
29155         system-dependent, sometimes with, and sometimes without the leading "./".
29156
29157         version-etc-fsf: relax license to LGPLv3+
29158         * modules/version-etc-fsf (License): Relax license.
29159
29160 2009-11-16  Eric Blake  <ebb9@byu.net>
29161
29162         xalloc-die-tests: avoid printing null pointer
29163         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
29164         shell script.
29165         * tests/test-xalloc-die.c (program_name): Declare.
29166         * tests/test-xalloc-die.sh (tmpfiles): New file.
29167
29168         setenv, unsetenv: work around various bugs
29169         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
29170         (setenv) [HAVE_SETENV]: Work around bugs.
29171         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
29172         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
29173         for bugs.
29174         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
29175         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
29176         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
29177         * modules/stdlib (Makefile.am): Update substitutions.
29178         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
29179         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
29180         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
29181         * modules/setenv-tests: New test.
29182         * modules/unsetenv-tests: Likewise.
29183         * tests/test-setenv.c: New file.
29184         * tests/test-unsetenv.c: Likewise.
29185
29186 2009-11-16  Jim Meyering  <meyering@redhat.com>
29187
29188         version-etc: relax license to LGPLv3+
29189         * modules/version-etc (License): Relax license.
29190
29191         better AC_REQUIRE expanded-before-required-warning avoidance
29192         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
29193         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
29194         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
29195         which is no longer needed.
29196
29197 2009-11-16  Eric Blake  <ebb9@byu.net>
29198
29199         test-freading: clean up temporary file
29200         * tests/test-freading.c (main): Remove file on success, and use
29201         ASSERT more liberally.
29202         Reported by Jim Meyering.
29203
29204 2009-11-16  Jim Meyering  <meyering@redhat.com>
29205
29206         avoid new AC_REQUIRE expanded-before-required warnings
29207         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
29208         merely using it.
29209         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
29210         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
29211
29212 2009-11-15  Simon Josefsson  <simon@josefsson.org>
29213
29214         * tests/test-xalloc-die.c: New file.
29215         * modules/xalloc-die-tests: New file.
29216         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
29217         XFAIL_TESTS so it can be appended by modules.
29218
29219 2009-11-15  Simon Josefsson  <simon@josefsson.org>
29220
29221         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
29222         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
29223
29224 2009-11-14  Eric Blake  <ebb9@byu.net>
29225
29226         fnmatch: avoid compiler warning
29227         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
29228         to silence compiler warning about mismatch signedness in ?:.
29229         Reported by Robert Millan.
29230
29231         intprops: add double-inclusion guard
29232         * lib/intprops.h: Allow idempotent includes.
29233         Suggested by Bruce Korb.
29234
29235         openat: detect Solaris fchownat bug
29236         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
29237         penalizing glibc chownat when only lchownat is broken.
29238         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
29239         trailing slash bugs.
29240         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
29241         * modules/openat-tests (Files): Include more files.
29242         (Depends-on): Add mgetgroups, sleep, stat-time.
29243         (configure.ac): Add additional checks.
29244         (Makefile.am): Build new test.
29245         * tests/test-fchownat.c: New file.
29246
29247         lchown: detect Solaris and FreeBSD bug
29248         * lib/lchown.c (rpl_lchown): Work around bug.
29249         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
29250         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29251         * modules/unistd (Makefile.am): Populate it.
29252         * lib/unistd.in.h (lchown): Update declaration.
29253         * doc/posix-functions/lchown.texi (lchown): Document the bug.
29254         * modules/lchown-tests: New file.
29255         * tests/test-lchown.h (test_lchown): Likewise.
29256         * tests/test-lchown.c (main): Likewise.
29257
29258         chown: detect Solaris and FreeBSD bug
29259         * lib/chown.c (rpl_chown): Work around bug.
29260         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
29261         (gl_PREREQ_CHOWN): Delete.
29262         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29263         * modules/unistd (Makefile.am): Populate it.
29264         * lib/unistd.in.h (chown): Update declaration.
29265         * lib/lchown.c (chown): Update client.
29266         * modules/lchown (Depends-on): Add lstat.
29267         * doc/posix-functions/chown.texi (chown): Document the bug.
29268         * doc/posix-functions/getgroups.texi (getgroups): Document
29269         getgroups pitfall.
29270         * modules/chown-tests: New file.
29271         * tests/test-chown.h (test_chown): Likewise.
29272         * tests/test-chown.c (main): Likewise.
29273
29274 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
29275
29276         gnulib-tool: correctly detect absence of m4 directories
29277         * gnulib-tool: Avoid extra newline on data passed to wc -l.
29278
29279 2009-11-14  Jim Meyering  <meyering@redhat.com>
29280
29281         maint.mk: Prohibit inclusion of "xalloc.h" without use.
29282         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
29283
29284 2009-11-14  John W. Eaton  <jwe@gnu.org>
29285
29286         strftime.h: wrap funtion declaration in extern "C" block
29287         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
29288
29289 2009-11-13  Eric Blake  <ebb9@byu.net>
29290
29291         getgroups: avoid compiler warning
29292         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
29293
29294         getgroups: work around FreeBSD bug
29295         * lib/getgroups.c (rpl_getgroups): Work around the bug.
29296         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
29297         * doc/posix-functions/getgroups.texi (getgroups): Document it.
29298         * tests/test-getgroups.c (main): Fix buffer overrun.
29299
29300         getgroups: avoid compilation failure
29301         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
29302         * modules/getgroups (Depends-on): Add stdint.
29303
29304 2009-11-13  Jim Meyering  <meyering@redhat.com>
29305
29306         test-getgroups: avoid compilation failure
29307         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
29308
29309 2009-11-13  Eric Blake  <ebb9@byu.net>
29310
29311         mgetgroups: new module, taken from coreutils
29312         * modules/mgetgroups: New file.
29313         * lib/mgetgroups.h: Likewise.
29314         * lib/mgetgroups.c (mgetgroups): Likewise.
29315         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
29316         * MODULES.html.sh (Users and groups): Mention it.
29317
29318         getgroups: don't expose GETGROUPS_T to user
29319         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
29320         an element at a time if GETGROUPS_T is wrong size.
29321         * lib/getugroups.h (getugroups): Change signature.
29322         * lib/unistd.in.h (getgroups): Likewise.
29323         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
29324         signature needs fixing.
29325         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
29326         AC_TYPE_GETGROUPS.
29327         * modules/group-member (Depends-on): Add getgroups.
29328         * lib/group-member.c (group_info, get_group_info): Use gid_t.
29329         (group_member): Rely on getgroups replacement.
29330         * lib/getugroups.c (getugroups): Use gid_t.
29331         * tests/test-getgroups.c (main): Likewise.
29332         * NEWS: Mention the signature change.
29333         * doc/posix-functions/getgroups.texi (getgroups): Mention the
29334         problem with signature.
29335         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
29336         GETGROUPS_T is still useful for setgroups.
29337
29338         getgroups, getugroups: provide stubs for mingw
29339         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
29340         * lib/getugroups.c (getugroups): Likewise.
29341         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
29342         function.  Modernize replacement scheme.
29343         (gl_PREREQ_GETGROUPS): Delete.
29344         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
29345         * modules/getgroups (configure.ac): Declare witness.
29346         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
29347         * modules/unistd (Depends-on): Substitute witness.
29348         * lib/unistd.in.h (getgroups): Declare replacement.
29349
29350         getgroups: avoid calling exit
29351         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
29352         drop xalloc.
29353         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
29354         dependencies.
29355         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
29356         exiting, in the rare case of malloc failure.
29357
29358         getgroups: fix logic error
29359         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
29360         has more than 20 groups.
29361         * modules/getgroups-tests: New test.
29362         * tests/test-getgroups.c: New file.
29363
29364 2009-11-13  Simon Josefsson  <simon@josefsson.org>
29365
29366         * tests/test-base64.c: Improve.
29367
29368 2009-11-13  Simon Josefsson  <simon@josefsson.org>
29369
29370         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
29371         Blake <ebb9@byu.net>.
29372
29373 2009-11-13  Simon Josefsson  <simon@josefsson.org>
29374
29375         * tests/test-xvasprintf.c: Add %s%s related checks.
29376
29377 2009-11-12  Eric Blake  <ebb9@byu.net>
29378
29379         version-etc: match standards.texi style
29380         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
29381         and use <> only for URLs.
29382
29383 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
29384
29385         fts: do not fail on a submount during traversal
29386         * lib/fts.c (fts_build): Read the stat info again after opening
29387         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
29388         Original report at http://bugzilla.redhat.com/501848.
29389
29390 2009-11-12  Jim Meyering  <meyering@redhat.com>
29391
29392         bootstrap: sync from coreutils
29393         * build-aux/bootstrap (bootstrap_epilogue): New function.
29394         Use git_modules_config in one more place.  This make bootstrap's
29395         --gnulib-srcdir option more useful for testing.
29396
29397         bootstrap: generalize autoheader check
29398         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
29399         AC_CONFIG_HEADERS.
29400
29401 2009-11-11  Eric Blake  <ebb9@byu.net>
29402
29403         mkfifoat: use new modules for Solaris and BSD bugs
29404         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
29405         * lib/mkfifoat.c (mknodat): Split...
29406         * lib/mknodat.c (mknodat): ...into new file.
29407         * modules/mkfifoat (Files): Ship new file.
29408         (Depends-on): Add mkfifo, mknod.
29409         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
29410         (Depends-on): Add symlink.
29411         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
29412         redundant with test_mkfifo.h.
29413         (do_mkfifoat, do_mknodat): New helpers.
29414
29415         mknod: new module
29416         * modules/mknod: New file.
29417         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
29418         * lib/mknod.c (mknod): Likewise.
29419         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
29420         defaults.
29421         * modules/sys_stat (Makefile.am): Substitute them.
29422         * lib/sys_stat.in.h (mknod): Declare replacement.
29423         * MODULES.html.sh (Support for systems lacking POSIX:2008):
29424         Document it.
29425         * doc/posix-functions/mknod.texi (mknod): Likewise.
29426         * modules/mknod-tests: New test.
29427         * tests/test-mknod.c: Likewise.
29428
29429         mkfifo: new module
29430         * modules/mkfifo: New file.
29431         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
29432         * lib/mkfifo.c (mkfifo): Likewise.
29433         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
29434         defaults.
29435         * modules/sys_stat (Makefile.am): Substitute them.
29436         * lib/sys_stat.in.h (mkfifo): Declare replacement.
29437         * MODULES.html.sh (Support for systems lacking POSIX:2008):
29438         Document it.
29439         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
29440         * modules/mkfifo-tests: New test.
29441         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
29442         from test-mkfifoat.c.
29443         * tests/test-mkfifo.c: New file.
29444
29445         readlink: detect FreeBSD bug
29446         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
29447         slash on symlink.
29448         * doc/posix-functions/readlink.texi (readlink): Document the bug.
29449         * tests/test-readlink.h (test_readlink): Enhance test.
29450
29451         symlink: detect FreeBSD bug
29452         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
29453         slash on symlink.
29454         * doc/posix-functions/symlink.texi (symlink): Document the bug.
29455         * tests/test-symlink.h (test_symlink): Enhance test.
29456
29457 2009-11-10  Eric Blake  <ebb9@byu.net>
29458
29459         link: detect FreeBSD bug
29460         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
29461         symlink.
29462         * doc/posix-functions/link.texi (link): Document the bug.
29463         * tests/test-link.h (test_link): Enhance test.
29464         * tests/test-linkat.c (main): Update caller.
29465
29466         unlink, remove: detect FreeBSD bug
29467         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
29468         slash on symlink.
29469         * doc/posix-functions/unlink.texi (unlink): Document the bug.
29470         * doc/posix-functions/remove.texi (remove): Likewise.
29471         * tests/test-unlink.h (test_unlink): Enhance test.
29472         * tests/test-remove.c (main): Likewise.
29473
29474 2009-11-09  Eric Blake  <ebb9@byu.net>
29475
29476         rename: detect FreeBSD bug
29477         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
29478         slash on symlink.
29479         * modules/renameat-tests (Depends-on): Add filenamecat.
29480         * tests/test-rename.h (test_rename): Allow one more errno.
29481         * tests/test-renameat.c (main): Likewise.
29482         * doc/posix-functions/rename.texi (rename): Document the bug.
29483
29484         open: detect FreeBSD bug
29485         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
29486         symlink.
29487         * doc/posix-functions/open.texi (open): Document the bug.
29488         * doc/posix-functions/utimes.texi (utimes): Likewise.
29489         * tests/test-open.h (test_open): Add parameters, and test symlink
29490         handling.
29491         * tests/test-open.c (main): Adjust caller.
29492         * tests/test-fcntl-safer.c (main): Likewise.
29493         * modules/open-tests (Depends-on): Add stdbool, symlink.
29494         * modules/fcntl-safer-tests (Depends-on): Likewise.
29495         * tests/test-openat.c (main): Add test-open tests.
29496
29497         stat: detect FreeBSD bug
29498         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
29499         symlink.
29500         * doc/posix-functions/stat.texi (stat): Document the bug.
29501         * tests/test-stat.h (test_stat_func): Add argument.
29502         * tests/test-stat.c (main): Adjust caller.
29503         * tests/test-fstatat.c (main): Likewise.
29504         * modules/stat-tests (Depends-on): Add stdbool, symlink.
29505         Reported by Jim Meyering.
29506
29507 2009-11-09  James Youngman  <jay@gnu.org>
29508
29509         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
29510         * lib/strftime.c: Correct placement of #include "ignore-value.h".
29511
29512 2009-11-08  Jim Meyering  <meyering@redhat.com>
29513
29514         utimens: remove invalid futimesat call
29515         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
29516         It used the file descriptor of the target file as the DIR_FD
29517         parameter and NULL as the file name.  That caused failure with
29518         errno == EFAULT on FreeBSD-8.0-rc2
29519
29520 2009-11-07  Eric Blake  <ebb9@byu.net>
29521
29522         fflush, freadseek: use fseeko, not fseek
29523         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
29524         (clear_ungetc_buffer): Avoid potential problems on large files.
29525         * lib/freadseek.c (freadseek): Likewise.
29526         * modules/freadseek (Depends-on): Add fseeko.
29527         * modules/fseek (configure.ac): Set a witness.
29528         * tests/test-fflush.c (main): Use fseeko.
29529         * tests/test-fpurge.c (fseek): Disable link warning.
29530         * tests/test-freadable.c (fseek): Likewise.
29531         * tests/test-freading.c (fseek): Likewise.
29532         * tests/test-fseeko.c (fseek): Likewise.
29533         * tests/test-ftell.c (fseek): Likewise.
29534         * tests/test-ftello.c (fseek): Likewise.
29535         * tests/test-fwritable.c (fseek): Likewise.
29536         * tests/test-fwriting.c (fseek): Likewise.
29537
29538 2009-11-06  Simon Josefsson  <simon@josefsson.org>
29539
29540         * modules/memchr (Depends-on): Drop getpagesize dependency.
29541
29542 2009-11-06  Simon Josefsson  <simon@josefsson.org>
29543
29544         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
29545         Reported by Ludovic Courtès.
29546         * build-aux/pmccabe2html: Improve example usage.
29547         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
29548
29549 2009-11-06  Jim Meyering  <meyering@redhat.com>
29550
29551         do-release-commit-and-tag: New module.
29552         Automate the release-commit and tag process.
29553         * build-aux/do-release-commit-and-tag: New script, from coreutils.
29554         * modules/do-release-commit-and-tag: New file.
29555         * MODULES.html.sh (Support for maintaining and releasing): Add it.
29556
29557 2009-11-06  Simon Josefsson  <simon@josefsson.org>
29558
29559         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
29560         because test-select.c uses inet_pton.
29561
29562 2009-11-06  Simon Josefsson  <simon@josefsson.org>
29563
29564         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
29565         GETADDRINFO_LIB.  Bump serial number.
29566         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
29567         Suggested by Eric Blake <ebb9@byu.net>.
29568
29569 2009-11-05  Eric Blake  <ebb9@byu.net>
29570
29571         strtod: detect darwin bug
29572         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
29573         Reported by Leo Davis.
29574
29575         freopen-safer: new module
29576         * modules/freopen-safer: New module.
29577         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
29578         * lib/freopen-safer.c (freopen_safer): New file.
29579         * lib/stdio-safer.h (freopen_safer): New declaration.
29580         * lib/stdio--.h (freopen): New override.
29581         * MODULES.html.sh (File stream based Input/Output): Mention it.
29582         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
29583         freopen-safer module.
29584         * doc/posix-functions/stderr.texi (stderr): Likewise.
29585         * doc/posix-functions/stdin.texi (stdin): Likewise.
29586         * doc/posix-functions/stdout.texi (stdout): Likewise.
29587         * modules/freopen-safer-tests: New test.
29588         * tests/test-reopen-safer.c: New file.
29589
29590 2009-11-05  Jim Meyering  <meyering@redhat.com>
29591
29592         maint.mk: Prohibit inclusion of "close-stream.h" without use.
29593         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
29594
29595 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29596
29597         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
29598
29599 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29600
29601         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
29602
29603 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29604
29605         Fix link error.
29606         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
29607         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
29608
29609 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29610
29611         * tests/test-func.c: Also test value of __func__.
29612
29613 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29614
29615         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
29616         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
29617
29618 2009-11-05  Bruno Haible  <bruno@clisp.org>
29619
29620         Fix link error.
29621         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
29622         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
29623         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
29624
29625 2009-11-05  Bruno Haible  <bruno@clisp.org>
29626
29627         Tests for module 'inet_pton'.
29628         * modules/inet_pton-tests: New file.
29629         * tests/test-inet_pton.c: New file.
29630
29631 2009-11-05  Bruno Haible  <bruno@clisp.org>
29632
29633         Tests for module 'inet_ntop'.
29634         * modules/inet_ntop-tests: New file.
29635         * tests/test-inet_ntop.c: New file.
29636
29637 2009-11-04  Eric Blake  <ebb9@byu.net>
29638
29639         stdlib-safer: wrap all mkstemp variants
29640         * modules/mkostemp (configure.ac): Set witness.
29641         * modules/mkostemps (configure.ac): Likewise.
29642         * modules/mkstemps (configure.ac): Likewise.
29643         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
29644         (mkstemps_safer): Wrap more functions.
29645         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
29646         wrapping.
29647         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
29648         (mkstemps_safer): Implement the wrappers.
29649
29650         mkstemps, mkostemps: new modules
29651         * modules/mkostemps: New module.
29652         * modules/mkstemps: Likewise.
29653         * lib/mkostemps.c (mkostemps): New file.
29654         * lib/mkstemps.c (mkstemps): Likewise.
29655         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
29656         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
29657         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
29658         * modules/stdlib (Makefile.am): Substitute them.
29659         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
29660         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
29661         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
29662         * doc/gnulib.texi (Glibc stdlib.h): Include them.
29663         * MODULES.html.sh (File system functions): Mention them.
29664
29665         tempname: resync from glibc
29666         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
29667         same values for __GT_FILE as glibc.  Abort even when assertions
29668         are disabled.
29669         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
29670         match its value otherwise.  Allow idempotent inclusion.
29671         * lib/mkdtemp.c (mkdtemp): Adjust caller.
29672         * lib/mkostemp.c (mkostemp): Likewise.
29673         * lib/mkstemp.c (mkstemp): Likewise.
29674         * lib/tmpfile.c (tmpfile): Likewise.
29675         * NEWS: Document this.
29676
29677         utimens: fix use of futimens on older Linux
29678         * lib/utimens.c (fdutimens): Use updated, rather than original,
29679         timespec to avoid bug in older Linux kernel.
29680         Reported by Simon Josefsson.
29681
29682 2009-11-04  Bruno Haible  <bruno@clisp.org>
29683
29684         Make num_processors more flexible and consistent.
29685         * lib/nproc.h (enum nproc_query): New type.
29686         (num_processors): Add a 'query' argument.
29687         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
29688         (num_processors): Add a 'query' argument. Test the value of the
29689         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
29690         mingw, count the number of CPUs available for the current process.
29691         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
29692         Check for sched_getaffinity and sched_getaffinity_np.
29693         * modules/nproc (Depends-on): Add c-ctype, extensions.
29694         * NEWS: Mention the change.
29695
29696 2009-11-03  Bruno Haible  <bruno@clisp.org>
29697
29698         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
29699
29700 2009-11-03  Jim Meyering  <meyering@redhat.com>
29701
29702         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
29703         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
29704         if it is defined.
29705
29706 2009-11-02  Eric Blake  <ebb9@byu.net>
29707
29708         mktime, timegm: share common declaration
29709         * lib/mktime-internal.h: New file.
29710         * lib/mktime.c: Use it rather than open-coding a declaration.
29711         * lib/timegm.c: Likewise.
29712         * modules/mktime (Files): Ship it.
29713         * modules/timegm (Files): Likewise.
29714         Suggested by Bruno Haible.
29715
29716         test-update-copyright: update test to match script changes
29717         * tests/test-update-copyright.sh: Avoid hard-coding perl
29718         location.  Don't update *.bak created by earlier runs.
29719
29720 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
29721             Simon Josefsson  <simon@josefsson.org>
29722             Bruno Haible  <bruno@clisp.org>
29723
29724         Fix link error on Solaris 8.
29725         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
29726         also in libnsl. Define also INET_PTON_LIB.
29727         * modules/inet_pton (Link): New section.
29728
29729 2009-11-02  Simon Josefsson  <simon@josefsson.org>
29730             Bruno Haible  <bruno@clisp.org>
29731
29732         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
29733         * modules/inet_ntop (Link): New section.
29734         Reported by Boyan Kasarov <bkasarov@gmail.com>.
29735
29736 2009-11-02  Eric Blake  <ebb9@byu.net>
29737
29738         maint: avoid compiler warnings in m4 macros
29739         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
29740         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
29741
29742 2009-11-02  Simon Josefsson  <simon@josefsson.org>
29743
29744         * m4/pmccabe2html.m4: Remove file.
29745         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
29746         function.  Change maintainer.
29747         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
29748         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
29749         Courtès).
29750
29751 2009-10-31  Eric Blake  <ebb9@byu.net>
29752
29753         fseeko: fix m4 regression
29754         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
29755         regression from 2009-10-27.
29756         Reported by Ralf Wildenhues.
29757
29758 2009-10-31  Jim Meyering  <meyering@redhat.com>
29759
29760         inttostr: aesthetics and improved (compile-time) safety
29761         Define inttype_is_signed rather than inttype_is_unsigned,
29762         since the sole use is via "#if inttype_is_signed".
29763         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
29764         inttype_is_unsigned.
29765         * lib/offtostr.c (inttype_is_signed): Likewise.
29766         * lib/uinttostr.c (inttype_is_signed): Likewise.
29767         * lib/umaxtostr.c (inttype_is_signed): Likewise.
29768         * lib/inttostr.c (inttostr): Use verify to cross-check the
29769         inttype_is_signed value and the signedness of the actual type.
29770         * modules/inttostr (Depends-on): Add verify.
29771
29772 2009-10-30  Eric Blake  <ebb9@byu.net>
29773
29774         build: avoid compiler warnings
29775         * lib/fchmodat.c (lchmod): Mark unused variables.
29776         * lib/getopt.c (_getopt_initialize): Likewise.
29777         * lib/mktime.c (__mktime_internal): Provide prototype.
29778         * lib/inttostr.c (inttostr): Avoid compiler warning even with
29779         older gcc that do not understand #pragma GCC diagnostic.
29780         * lib/uinttostr.c (inttype_is_unsigned): Define.
29781         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
29782
29783 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
29784
29785         stat: fix compilation on AIX
29786         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
29787         only see struct stat64.
29788
29789 2009-10-30  Eric Blake  <ebb9@byu.net>
29790
29791         exclude: make more robust
29792         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
29793         rather than masking a coding bug.
29794         Suggested by Bruno Haible.
29795
29796 2009-10-30  Jim Meyering  <meyering@redhat.com>
29797
29798         perl scripts: remove #!/usr/bin/perl in favor of more portable...
29799         Rather than putting #!/usr/bin/perl on the first line,
29800         start with a variant of what's recommended by "man perlrun" that
29801         invokes the first "perl" program from your shell's search path.
29802         * build-aux/gitlog-to-changelog: Replace #!... as above.
29803         Add a "Local Variables" perl mode setting.
29804         Prompted by a patch from Ludovic Courtès.
29805         Improved by Eric Blake.
29806         * build-aux/useless-if-before-free: Likewise.
29807         * build-aux/announce-gen: Likewise.
29808         * build-aux/update-copyright: Likewise.
29809
29810 2009-10-29  Eric Blake  <ebb9@byu.net>
29811
29812         filenamecat-lgpl: adjust clients
29813         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
29814         filenamecat.
29815         * modules/renameat (Depends-on): Likewise.
29816
29817         filenamecat: split into filenamecat-lgpl
29818         * modules/filenamecat-lgpl: New module.
29819         * modules/filenamecat (Files): Move library-safe files into
29820         filenamecat-lgpl.
29821         (Depends-on): Add filenamecat-lgpl.
29822         (configure.ac): Declare witness.
29823         * lib/filenamecat.h (file_name_concat): Only declare when using
29824         GPL module.
29825         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
29826         Move...
29827         * lib/filenamecat-lgpl.c: ...into new file.
29828         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
29829         (gl_FILE_NAME_CONCAT): Use it.
29830         * MODULES.html.sh (File system functions): Mention new module.
29831
29832         argp: avoid memory leak
29833         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
29834         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
29835         base_name, since the latter malloc()s and can call exit().
29836         Leak introduced 2006-07-03.
29837
29838         dirname-lgpl: adjust clients that don't need full dirname
29839         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
29840         * modules/filenamecat (Depends-on): Likewise.
29841         * modules/linkat (Depends-on): Likewise.
29842         * modules/mkancesdirs (Depends-on): Likewise.
29843         * modules/mkdir (Depends-on): Likewise.
29844         * modules/openat (Depends-on): Likewise.
29845         * modules/savewd (Depends-on): Likewise.
29846         * modules/rename (Depends-on): Likewise.
29847         (License): Relax license.
29848         * modules/mkdir-tests (Depends-on): Drop progname.
29849         (Makefile.am): Delete unneeded LDADD.
29850         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
29851
29852         dirname: split into dirname-lgpl
29853         * modules/dirname-lgpl: New module.
29854         * modules/dirname (Files): Move library-safe files into
29855         dirname-lgpl.
29856         (Depends-on): Add dirname-lgpl.
29857         (configure.ac): Declare witness.
29858         * modules/double-slash-root (License): Relax license.
29859         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
29860         module.
29861         * lib/dirname.c (dir_len, mdir_name): Move...
29862         * lib/dirname-lgpl.c: ...into new file.
29863         * lib/basename.c (last_component, base_len): Move...
29864         * lib/basename-lgpl.c: ...into new file.
29865         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
29866         (gl_DIRNAME): Use it.
29867         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
29868         Mention new module.
29869         * modules/dirname-tests (Depends-on): Add progname.
29870         * tests/test-dirname.c (program_name): Delete.
29871
29872         mkdir: make safe for libraries
29873         * modules/mkdir (Depends-on): Drop xalloc.
29874         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
29875         exit.
29876
29877         tests: avoid some compiler warnings
29878         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
29879         literals.
29880         * tests/test-memchr.c (main): Avoid type mismatch.
29881         * tests/test-arpa_inet.c (main): Avoid unused parameters.
29882         * tests/test-base64.c (main): Likewise.
29883         * tests/test-getdelim.c (main): Likewise.
29884         * tests/test-gethostname.c (main): Likewise.
29885         * tests/test-getline.c (main): Likewise.
29886         * tests/test-netinet_in.c (main): Likewise.
29887         * tests/test-select.c (open_server_socket, main): Likewise.
29888         * tests/test-select-stdin.c (main): Likewise.
29889         * tests/test-sockets.c (main): Likewise.
29890         * tests/test-strsignal.c (main): Likewise.
29891         * tests/test-sys_select.c (main): Likewise.
29892         * tests/test-sys_socket.c (main): Likewise.
29893         * tests/test-u64.c (main): Likewise.
29894         * tests/test-xfprintf-posix.c (main): Likewise.
29895         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
29896
29897         sockets: avoid compiler warning
29898         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
29899
29900         maint: detect usage(1) and other suspicious exits
29901         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
29902
29903 2009-10-29  Jim Meyering  <meyering@redhat.com>
29904
29905         timespec: long-to-int truncation could make timespec_cmp malfunction
29906         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
29907         a multiple of 2^32 nanoseconds as no difference.
29908
29909 2009-10-28  Jim Meyering  <meyering@redhat.com>
29910
29911         fprintftime: wrap macro code argument in "do {...} while(0)"
29912         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
29913         cpy macro must be a statement that can be followed by a semicolon.
29914         Now that the else clause contains a comment and is hence longer
29915         than one line, I require curly braces.  That in turn requires
29916         that we wrap this code block in the standard do...while(0).
29917
29918         fprintftime: remove stray semicolon from previous change
29919         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
29920
29921         fprintftime: avoid a warning about ignored fwrite return value
29922         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
29923         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
29924         that is unsafe.
29925         * modules/fprintftime (Depends-on): Add ignore-value.
29926
29927         exclude: avoid an unwarranted warning
29928         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
29929
29930 2009-10-27  Eric Blake  <ebb9@byu.net>
29931
29932         fseek: avoid compilation failure when fflush is replaced
29933         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
29934         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
29935         module is in use.
29936         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
29937         module is not in use; since REPLACE_FSEEK worked otherwise.
29938         (GNULIB_FTELLO): Likewise for ftell.
29939         Reported by Ian Beckwith and others.
29940
29941 2009-10-27  Bruno Haible  <bruno@clisp.org>
29942
29943         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
29944         Reported by Jim Meyering.
29945
29946 2009-10-27  Jim Meyering  <jim@meyering.net>
29947             Bruno Haible  <bruno@clisp.org>
29948
29949         Avoid warning despite dropping the return value of fwrite.
29950         * lib/unicodeio.c: Include ignore-value.h.
29951         (fwrite_success_callback): Explicitly ignore fwrite's return value.
29952         * modules/unicodeio (Depends-on): Add ignore-value.
29953
29954 2009-10-26  Eric Blake  <ebb9@byu.net>
29955
29956         areadlinkat: fix fallback path
29957         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
29958         pointer and zero.
29959
29960 2009-10-22  Pádraig Brady  <P@draigBrady.com>
29961
29962         Use a better IO block size for modern systems
29963         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
29964         * lib/md2.c: Likewise.
29965         * lib/md4.c: Likewise.
29966         * lib/md5.c: Likewise.
29967         * lib/sha1.c: Likewise.
29968         * lib/sha256.c: Likewise.
29969         * lib/sha512.c: Likewise.
29970
29971 2009-10-22  Eric Blake  <ebb9@byu.net>
29972
29973         tests: avoid several compiler warnings
29974         * tests/test-getcwd.c (main): Avoid buffer underflow.
29975         * tests/test-getdate.c (main): String literals are not safe with
29976         putenv, so use setenv.  Declare unused argument.
29977         * modules/getdate-tests (Depends-on): Add setenv.
29978         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
29979         problems with string literals in char *.
29980         * tests/test-hash.c (main): Avoid shadowing declaration.
29981         (insert_new): Treat string literals as char const *.
29982         * tests/test-getopt.h (test_getopt): Likewise.
29983         (getopt_loop): Alter types to minimize casting elsewhere.
29984         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
29985         (test_getopt_long_posix): Likewise.
29986         (do_getopt_long): Add wrapper to minimize casting.
29987         * tests/test-atexit.c (clear_temp_file): Use void.
29988         * tests/test-areadlink-with-size.c (main): Declare unused
29989         arguments.
29990         * tests/test-areadlink.c (main): Likewise.
29991         * tests/test-areadlinkat-with-size.c (main): Likewise.
29992         * tests/test-areadlinkat.c (main): Likewise.
29993         * tests/test-canonicalize-lgpl.c (main): Likewise.
29994         * tests/test-canonicalize.c (main): Likewise.
29995         * tests/test-dirent-safer.c (main): Likewise.
29996         * tests/test-dirname.c (main): Likewise.
29997         * tests/test-dup2.c (main): Likewise.
29998         * tests/test-fchdir.c (main): Likewise.
29999         * tests/test-fcntl-h.c (main): Likewise.
30000         * tests/test-fcntl-safer.c (main): Likewise.
30001         * tests/test-fdopendir.c (main): Likewise.
30002         * tests/test-fdutimensat.c (main): Likewise.
30003         * tests/test-fflush.c (main): Likewise.
30004         * tests/test-filenamecat.c (main): Likewise.
30005         * tests/test-filevercmp.c (main): Likewise.
30006         * tests/test-fopen-safer.c (main): Likewise.
30007         * tests/test-fopen.c (main): Likewise.
30008         * tests/test-fpending.c (main): Likewise.
30009         * tests/test-fpurge.c (main): Likewise.
30010         * tests/test-freading.c (main): Likewise.
30011         * tests/test-fstatat.c (main): Likewise.
30012         * tests/test-fsync.c (main): Likewise.
30013         * tests/test-futimens.c (main): Likewise.
30014         * tests/test-getndelim2.c (main): Likewise.
30015         * tests/test-gettimeofday.c (main): Likewise.
30016         * tests/test-getopt.c (main): Likewise.
30017         * tests/test-i-ring.c (main): Likewise.
30018         * tests/test-inttypes.c (main): Likewise.
30019         * tests/test-link.c (main): Likewise.
30020         * tests/test-lstat.c (main): Likewise.
30021         * tests/test-math.c (main): Likewise.
30022         * tests/test-md5.c (main): Likewise.
30023         * tests/test-memchr2.c (main): Likewise.
30024         * tests/test-memrchr.c (main): Likewise.
30025         * tests/test-mkdir.c (main): Likewise.
30026         * tests/test-mkdirat.c (main): Likewise.
30027         * tests/test-mkfifoat.c (main): Likewise.
30028         * tests/test-open.c (main): Likewise.
30029         * tests/test-openat-safer.c (main): Likewise.
30030         * tests/test-openat.c (main): Likewise.
30031         * tests/test-quotearg.c (main): Likewise.
30032         * tests/test-rawmemchr.c (main): Likewise.
30033         * tests/test-readlink.c (main): Likewise.
30034         * tests/test-remove.c (main): Likewise.
30035         * tests/test-rename.c (main): Likewise.
30036         * tests/test-renameat.c (main): Likewise.
30037         * tests/test-rmdir.c (main): Likewise.
30038         * tests/test-sha1.c (main): Likewise.
30039         * tests/test-signal.c (main): Likewise.
30040         * tests/test-sigaction.c (main): Likewise.
30041         * tests/test-stat.c (main): Likewise.
30042         * tests/test-stat-time.c (main): Likewise.
30043         * tests/test-stddef.c (main): Likewise.
30044         * tests/test-stdint.c (main): Likewise.
30045         * tests/test-stdio.c (main): Likewise.
30046         * tests/test-stdlib.c (main): Likewise.
30047         * tests/test-strchrnul.c (main): Likewise.
30048         * tests/test-strerror.c (main): Likewise.
30049         * tests/test-string.c (main): Likewise.
30050         * tests/test-strtod.c (main): Likewise.
30051         * tests/test-strverscmp.c (main): Likewise.
30052         * tests/test-symlink.c (main): Likewise.
30053         * tests/test-symlinkat.c (main): Likewise.
30054         * tests/test-sys_stat.c (main): Likewise.
30055         * tests/test-sys_time.c (main): Likewise.
30056         * tests/test-time.c (main): Likewise.
30057         * tests/test-unistd.c (main): Likewise.
30058         * tests/test-unlink.c (main): Likewise.
30059         * tests/test-unlinkat.c (main): Likewise.
30060         * tests/test-utimens.c (main): Likewise.
30061         * tests/test-utimensat.c (main): Likewise.
30062         * tests/test-version-etc.c (main): Likewise.
30063         * tests/test-wchar.c (main): Likewise.
30064         * tests/test-wctype.c (main): Likewise.
30065         * tests/test-xprintf-posix.c (main): Likewise.
30066         * tests/test-posixtm.c (main): Likewise.
30067         (STREQ): Delete unused macro.
30068         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
30069         shadowed variables.
30070         * tests/test-memchr.c (main): Likewise.
30071
30072 2009-10-21  Eric Blake  <ebb9@byu.net>
30073
30074         areadlinkat: avoid failure on older glibc
30075         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
30076         rather than mis-comparing 0 against FUNC_RESULT of char*.
30077
30078 2009-10-21  Bruno Haible  <bruno@clisp.org>
30079
30080         * modules/stpncpy (License): Relicense under LGPLv2+.
30081         Reported by David Lutterkort <lutter@redhat.com>.
30082
30083 2009-10-20  Eric Blake  <ebb9@byu.net>
30084
30085         utimensat: work around Solaris 9 bug
30086         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
30087         has trailing slash bugs.
30088         * tests/test-lutimens.h (test_lutimens): Enhance test.
30089         * tests/test-utimens.h (test_utimens): Likewise.
30090         * doc/posix-functions/utime.texi (utime): Enhance documentation.
30091         * doc/posix-functions/utimes.texi (utimes): Likewise.
30092         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
30093         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
30094         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
30095         * doc/posix-functions/futimens.texi (futimens): Likewise.
30096
30097         fdutimensat: new module
30098         * modules/fdutimensat: New file.
30099         * lib/fdutimensat.c (fdutimensat): Likewise.
30100         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
30101         * MODULES.html.sh (File system functions): Mention module.
30102         * modules/fdutimensat-tests: New test.
30103         * tests/test-fdutimensat.c: Likewise.
30104
30105         doc: regenerate INSTALL
30106         * doc/INSTALL: Reflect recent autoconf update.
30107         * doc/INSTALL.ISO: Likewise.
30108         * doc/INSTALL.UTF-8: Likewise.
30109
30110 2009-10-20  Pádraig Brady  <P@draigBrady.com>
30111
30112         acl: warn if ACL support is not detected
30113         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
30114
30115 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
30116
30117         * lib/nproc.h: Add extern "C" block for C++.
30118
30119 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
30120             Bruno Haible  <bruno@clisp.org>
30121
30122         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
30123         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
30124         * doc/posix-functions/isalpha.texi: Likewise.
30125         * doc/posix-functions/isblank.texi: Likewise.
30126         * doc/posix-functions/iscntrl.texi: Likewise.
30127         * doc/posix-functions/isdigit.texi: Likewise.
30128         * doc/posix-functions/isgraph.texi: Likewise.
30129         * doc/posix-functions/islower.texi: Likewise.
30130         * doc/posix-functions/isprint.texi: Likewise.
30131         * doc/posix-functions/ispunct.texi: Likewise.
30132         * doc/posix-functions/isspace.texi: Likewise.
30133         * doc/posix-functions/isupper.texi: Likewise.
30134         * doc/posix-functions/isxdigit.texi: Likewise.
30135
30136 2009-10-18  Bruno Haible  <bruno@clisp.org>
30137
30138         Tests for module 'isblank'.
30139         * modules/isblank-tests: New file.
30140         * tests/test-isblank.c: New file.
30141
30142         New module 'isblank'.
30143         * lib/isblank.c: New file.
30144         * m4/isblank.m4: New file.
30145         * modules/isblank: New file.
30146         * doc/posix-functions/isblank.texi: Mention the new module.
30147
30148 2009-10-18  Bruno Haible  <bruno@clisp.org>
30149
30150         New module 'ctype'.
30151         * lib/ctype.in.h: New file.
30152         * m4/ctype.m4: New file.
30153         * modules/ctype: New file.
30154         * doc/posix-headers/ctype.texi: Mention the new module.
30155
30156 2009-10-18  Jim Meyering  <meyering@redhat.com>
30157
30158         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
30159         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
30160         right after its initialization, rather than farther down.
30161         Keeping these in close proximity makes it easier to ensure
30162         that each such variable is initialized.  E.g.,
30163
30164             LIB_CLOCK_GETTIME=
30165             AC_SUBST([LIB_CLOCK_GETTIME])
30166
30167         This change also increments these serial numbers.
30168         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
30169         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
30170         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
30171
30172 2009-10-18  Bruno Haible  <bruno@clisp.org>
30173
30174         Don't let environment variables perturb build.
30175         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
30176         (gl_PREREQ_GETHRXTIME): ... not here.
30177
30178 2009-10-18  Bruno Haible  <bruno@clisp.org>
30179
30180         Avoid symlink attack in localcharset module.
30181         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
30182         (O_NOFOLLOW): Define fallback.
30183         (get_charset_aliases): Don't open the file if it is a symbolic link.
30184         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
30185         gl_FCNTL_H.
30186         (gl_FCNTL_H): Require it.
30187         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
30188         * modules/localcharset (Files): Add m4/fcntl_h.m4.
30189         Reported by Fergal Glynn <fglynn@veracode.com>.
30190
30191 2009-10-18  Bruno Haible  <bruno@clisp.org>
30192
30193         Implement nproc for mingw.
30194         * lib/nproc.c: Include <windows.h>
30195         (num_processors): On native Windows platforms, try GetSystemInfo.
30196
30197 2009-10-18  Bruno Haible  <bruno@clisp.org>
30198
30199         Implement nproc for IRIX.
30200         * lib/nproc.c: Include <sys/sysmp.h>.
30201         (num_processors): On IRIX systems, try sysmp.
30202         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
30203
30204 2009-10-18  Bruno Haible  <bruno@clisp.org>
30205
30206         Implement nproc for HP-UX.
30207         * lib/nproc.c: Include <sys/pstat.h>
30208         (num_processors): On HP-UX systems, try pstat_getdynamic.
30209         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
30210         pstat_getdynamic.
30211
30212 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
30213             Bruno Haible  <bruno@clisp.org>
30214
30215         Implement nproc for NetBSD, OpenBSD.
30216         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
30217         (ARRAY_SIZE): New macro.
30218         (num_processors): On BSD systems, try sysctl of HW_NCPU.
30219         * m4/nproc.m4: New file.
30220         * modules/nproc (Files): Add m4/nproc.m4.
30221         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
30222         (Makefile.am): Instead, augment lib_SOURCES.
30223
30224 2009-10-18  Bruno Haible  <bruno@clisp.org>
30225
30226         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
30227         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
30228         sys/param.h.
30229
30230 2009-10-16  Eric Blake  <ebb9@byu.net>
30231
30232         utimensat: new module
30233         * modules/utimensat: New file.
30234         * lib/utimensat.c (utimensat): Likewise.
30235         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
30236         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
30237         so we can work around Linux bugs.
30238         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
30239         * modules/sys_stat (Makefile.am): Substitute them.
30240         * lib/sys_stat.in.h (utimensat): Declare it.
30241         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30242         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
30243         * modules/utimensat-tests: New test.
30244         * tests/test-utimensat.c: Likewise.
30245
30246         utimens: let lutimens work on non-symlinks
30247         * lib/utimens.c (lutimens): Fall back to utimens rather than
30248         failing with ENOSYS, when file is not a symlink.
30249         (utimens): Reduce redirection.
30250         * tests/test-lutimens.h (test_lutimens): Update test to cover
30251         non-symlinks.
30252         * tests/test-utimens.h (test_utimens): Update test to cover
30253         symlinks.
30254         * tests/test-utimens.c (main): Update caller.
30255
30256         utimens: cache whether utimensat syscall works
30257         * lib/utimens.c (utimensat_works_really): New cache variable.
30258         (fdutimens, lutimens): Use it to avoid failing syscall.
30259
30260         test-stat-time, test-utimens: improve portability
30261         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
30262         ext4 on alpha, and for cygwin.
30263         * tests/test-utimens-common.h: New file.
30264         (nap): Factor delays into single function.
30265         * tests/test-lutimens.h (test_lutimens): Use new header.
30266         * tests/test-futimens.h (test_futimens): Likewise.
30267         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
30268         timestamps to occur from same machine, as was done previously for
30269         test_utimens.
30270         * modules/utimens-tests (Files): Ship new file.
30271         * modules/futimens-tests (Files): Likewise.
30272         Reported in part by Jim Meyering.
30273
30274         sys_stat: sort replacement declarations
30275         * lib/sys_stat.in.h: Sort declarations.
30276         * lib/futimens.c (futimens): Fix typo.
30277
30278 2009-10-15  Jim Meyering  <meyering@redhat.com>
30279
30280         don't let environment settings perturb build
30281         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
30282         could cause a configure-time and/or build-time malfunction.
30283         Typically, a configure-time function-in-library test is performed
30284         via code like this:
30285
30286           LIB_VAR=
30287           AC_SUBST([LIB_VAR])
30288           prefix_saved_LIBS=$LIBS
30289             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
30290                        [test "$ac_cv_search_FUNC" = "none required" ||
30291                         LIB_VAR=$ac_cv_search_FUNC])
30292           LIBS=$prefix_saved_LIBS
30293
30294         However, in each of the files affected by this change, the LIB_VAR=
30295         initialization was omitted.  Thus, when set in the environment, its
30296         value would propagate into generated Makefiles when FUNC is not found
30297         in LIB_NAME.
30298         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
30299         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
30300         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
30301
30302 2009-10-14  Eric Blake  <ebb9@byu.net>
30303
30304         fchdir: avoid infinite recursion in mingw
30305         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
30306         recursing.
30307
30308         test-stat-time: port to mingw
30309         * tests/test-stat-time.c (force_unlink): Return a value.
30310         (test_ctime) [W32]: Fix compilation error.
30311         (nap): Don't call usleep with too large an argument.  Use
30312         force_unlink.
30313         * doc/pastposix-functions/usleep.texi (usleep): Document the
30314         portability issue.
30315
30316 2009-10-13  Jim Meyering  <meyering@redhat.com>
30317
30318         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
30319         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
30320         * modules/pipe-filter-ii: Likewise.
30321         * modules/sys_socket-tests: Likewise.
30322         * modules/tsearch-tests: Likewise.
30323         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
30324         (check): Depend on it.
30325
30326 2009-10-12  Eric Blake  <ebb9@byu.net>
30327
30328         utimens-tests: port to NFS file systems
30329         * tests/test-utimens.h (test_utimens): Refactor utimecmp
30330         comparisons to avoid spurious failures from timestamp drift
30331         between NFS machines.
30332
30333 2009-10-12  Eric Blake  <ebb9@byu.net>
30334
30335         stat-time-tests: minor cleanups
30336         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
30337         * tests/test-stat-time.c (nap): Separate assignment from call.
30338         Suggested by Paolo Bonzini and Bruno Haible.
30339
30340         sys_stat: guarantee struct timespec
30341         * lib/sys_stat.in.h (includes): Always include <time.h>
30342         * modules/sys_stat (Depends-on): Add time.
30343         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
30344         mode_t permission values.
30345         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
30346         get at subsecond timestamps.
30347
30348 2009-10-10  Eric Blake  <ebb9@byu.net>
30349
30350         futimens: new module
30351         * modules/futimens: New file.
30352         * lib/futimens.c (futimens): Likewise.
30353         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
30354         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
30355         we can work around Linux bugs.
30356         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
30357         * modules/sys_stat (Makefile.am): Substitute them.
30358         * lib/sys_stat.in.h (futimens): Declare it.
30359         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30360         * doc/posix-functions/futimens.texi (futimens): Likewise.
30361         * modules/futimens-tests: New test.
30362         * tests/test-futimens.c: Likewise.
30363
30364         utimens: introduce fdutimens
30365         * lib/utimens.h (fdutimens): New prototype.
30366         * lib/utimens.c (gl_futimens): Move guts...
30367         (fdutimens): ...to new interface.
30368         * tests/test-utimens.c (do_fdutimens): Use it.
30369
30370         utimens: add UTIME_NOW and UTIME_OMIT support
30371         * lib/utimens.c (validate_timespec, update_timespec): New helper
30372         functions.
30373         (gl_futimens, lutimens): Use them.
30374         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
30375         stdbool, sys_stat.
30376         (Link): Mention resulting library dependency.
30377         * modules/utimecmp (Link): Likewise.
30378         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
30379         (Makefile.am): Pick up library dependency.
30380         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
30381         definition.
30382         * tests/test-sys_stat.c: Test the definitions.
30383         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
30384         * NEWS: Document library dependency.
30385
30386         utimecmp: support symlink timestamps
30387         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
30388         hashing when possible.  Use pathconf when available.
30389         (SYSCALL_RESOLUTION): Recognize tighter resolution.
30390         * modules/utimecmp (Depends-on): Add lstat.
30391
30392         utimens: add lutimens interface
30393         * lib/utimens.c (lutimens): New function.
30394         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
30395         * lib/utimens.h (lutimens): Declare new interface.
30396         * tests/test-utimens.c (main): Enhance test.
30397         * tests/test-lutimens.h (test_lutimens): New file.
30398         * modules/utimens-tests (Files): Distribute it.
30399         (Depends-on): Add symlink.
30400         (configure.ac): Check for usleep.
30401
30402         utimens: validate futimens usage
30403         * lib/utimens.c (gl_futimens): Require valid fd up front, using
30404         fewer syscalls on failure later on.  Avoid compiler warning on
30405         mingw.
30406         * modules/utimens (Depends-on): Add dup2.
30407
30408         utimens: add test
30409         * modules/utimens-tests: New test.
30410         * tests/test-utimens.h: New file.
30411         * tests/test-futimens.h: Likewise.
30412         * tests/test-utimens.c: Likewise.
30413
30414         doc: mention timestamp portability issues
30415         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
30416         instead.
30417         * doc/posix-functions/utime.texi (utime): Likewise.
30418         * doc/posix-functions/utimes.texi (utimes): Likewise.
30419         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
30420         instead.
30421         * doc/posix-functions/futimens.texi (futimens): Mention utimens
30422         module.
30423         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
30424         Mention weakness with symlink timestamps.
30425         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
30426         to utimensat/futimens instead.
30427         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
30428
30429         test-dup2: enhance test
30430         * tests/test-dup2.c (main): Also check AT_FDCWD.
30431
30432         test-stat-time: avoid more spurious failures
30433         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
30434         xfs; and avoid race if the two timestamps cross quantization edge.
30435
30436         relocatable: prefer 'file system' over 'filesystem'
30437         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
30438         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
30439         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
30440         * doc/relocatable.texi (Enabling Relocatability): Likewise.
30441         * lib/relocatable.c (compute_curr_prefix): Likewise.
30442
30443 2009-10-10  Jim Meyering  <meyering@redhat.com>
30444
30445         stat-time-tests: check for the usleep function
30446         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
30447
30448 2009-10-10  Bruno Haible  <bruno@clisp.org>
30449
30450         * modules/xnanosleep: Put the Link section after the Include section.
30451
30452 2009-10-09  Eric Blake  <ebb9@byu.net>
30453
30454         dup2: work around FreeBSD 6.1 bug
30455         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
30456         * doc/posix-functions/dup2.texi (dup2): Document it.
30457         Reported by Nelson H. F. Beebe and Jim Meyering.
30458
30459         test-stat-time: port to buggy NFS clients
30460         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
30461         (test_ctime): Also skip test if mtime and ctime are skewed.
30462
30463         maint: prefer 'file system' over 'filesystem'
30464         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
30465         * doc/posix-functions/lstat.texi (lstat): Likewise.
30466         * lib/file-has-acl.c (file_has_acl): Likewise.
30467         * lib/fwriteerror.c [TEST]: Likewise.
30468         * tests/test-areadlink.h (test_areadlink): Likewise.
30469         * tests/test-areadlinkat-with-size.c (main): Likewise.
30470         * tests/test-areadlinkat.c (main): Likewise.
30471         * tests/test-canonicalize-lgpl.c (main): Likewise.
30472         * tests/test-canonicalize.c (main): Likewise.
30473         * tests/test-fstatat.c (main): Likewise.
30474         * tests/test-linkat.c (main): Likewise.
30475         * tests/test-lstat.h (test_lstat_func): Likewise.
30476         * tests/test-mkdir.h (test_mkdir): Likewise.
30477         * tests/test-readlink.h (test_readlink): Likewise.
30478         * tests/test-remove.c (main): Likewise.
30479         * tests/test-rename.h (test_rename): Likewise.
30480         * tests/test-renameat.c (main): Likewise.
30481         * tests/test-rmdir.h (test_rmdir_func): Likewise.
30482         * tests/test-symlink.h (test_symlink): Likewise.
30483         * tests/test-symlinkat.c (main): Likewise.
30484         * tests/test-unlink.h (test_unlink_func): Likewise.
30485         * tests/test-unlinkat.c (main): Likewise.
30486
30487         maint: make realtime library usage explicit
30488         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
30489         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
30490         * modules/settime (Link): Likewise.
30491         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
30492
30493         test-stat-time: speed up execution
30494         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
30495         warning on mingw.
30496         (nap): New helper function.
30497         (prepare_test): Use it to reduce sleep time.
30498         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
30499         execution.
30500         * modules/stat-time-tests (configure.ac): Check for usleep.
30501
30502 2009-10-09  Jim Meyering  <meyering@redhat.com>
30503
30504         selinux-h: always use getfilecon wrappers
30505         * lib/getfilecon.c: New file.
30506         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
30507         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
30508         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
30509         (fgetfilecon): Provide a stub.
30510         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
30511         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
30512         file unconditionally.
30513         When <selinux/selinux.h> is found, arrange to use wrappers.
30514         * modules/selinux-h (Files): Add getfilecon.c.
30515         (Makefile.am): Substitute include-next-related bits
30516         into the now-always-generated selinux/selinux.h file.
30517         * doc/glibc-functions/lgetfilecon.texi: New file.
30518         * doc/glibc-functions/fgetfilecon.texi: New file.
30519         * doc/glibc-functions/getfilecon.texi: New file.
30520         * doc/glibc-functions/getfilecon-desc.texi: New file.
30521         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
30522         which to pull in the new files.
30523         * MODULES.html.sh (Misc): Add selinux-h.
30524
30525 2009-10-08  Jim Meyering  <meyering@redhat.com>
30526
30527         unistd: fix comment typo
30528         * lib/unistd.in.h (euidaccess): Fix a comment typo.
30529
30530 2009-10-08  Eric Blake  <ebb9@byu.net>
30531
30532         areadlink: use SIZE_MAX consistently
30533         * modules/areadlink (Depends-on): Add stdint.
30534         * modules/areadlink-with-size (Depends-on): Likewise.
30535         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
30536         gives NULL; drop sys/types, since unistd gives size_t; and add
30537         stdint for SIZE_MAX.
30538         (SIZE_MAX): Rely on headers.
30539         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
30540         and add stdint.
30541         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
30542         (SIZE_MAX): Likewise.
30543         (INITIAL_BUF_SIZE): Turn into enum.
30544         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
30545
30546 2009-10-08  Jim Meyering  <meyering@redhat.com>
30547
30548         areadlinkat: avoid compilation failure
30549         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
30550         Fix typo in comment.
30551
30552 2009-10-07  Eric Blake  <ebb9@byu.net>
30553
30554         areadlinkat-with-size: new module
30555         * modules/areadlinkat-with-size: New module.
30556         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
30557         * lib/areadlink.h (areadlinkat): Declare it.
30558         * MODULES.html.sh (File system functions): Mention it.
30559         * modules/areadlinkat-with-size-tests: New test.
30560         * tests/test-areadlinkat-with-size.c: New file.
30561
30562         xreadlinkat: new module
30563         * modules/xreadlinkat: New module.
30564         * lib/xreadlinkat.c (xreadlinkat): New file.
30565         * lib/xreadlink.h (xreadlinkat): Declare it.
30566         * MODULES.html.sh (File system functions): Mention it.
30567
30568         areadlinkat: new module
30569         * lib/at-func.c (FUNC_FAIL): New define.
30570         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
30571         * modules/areadlinkat: New module.
30572         * lib/linkat.c (areadlinkat): Move...
30573         * lib/areadlinkat.c (areadlinkat): ...to new file.
30574         * lib/areadlink.h (areadlinkat): Declare it.
30575         * modules/linkat (Depends-on): Add areadlinkat.
30576         * MODULES.html.sh (File system functions): Mention it.
30577         * modules/areadlinkat-tests: New test.
30578         * tests/test-areadlinkat.c: New file.
30579
30580         areadlink, areadlink-with-size: add tests
30581         * modules/areadlink-tests: New test.
30582         * modules/areadlink-with-size-tests: Likewise.
30583         * tests/test-areadlink.h: New file.
30584         * tests/test-areadlink.c: Likewise.
30585         * tests/test-areadlink-with-size.c: Likewise.
30586
30587         maint: minor cleanups
30588         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
30589         _UNUSED_PARAMETER_ instead.
30590         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
30591         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
30592         * modules/linkat-tests (Files): Distribute test-link.h.
30593
30594         openat, utimens: whitespace cleanup
30595         * lib/openat.c: Prefer space throughout, rather than mix of 8
30596         spaces vs. tabs.
30597         * lib/at-func.c: Likewise.
30598         * lib/utimens.c: Likewise.
30599
30600         openat: avoid using wrong fd
30601         * lib/openat.c (openat_permissive): Reject user's fd if saving the
30602         working directory chooses same fd.
30603         * lib/at-func.c (AT_FUNC_NAME): Likewise.
30604
30605         mkdir, mkdirat: fix cygwin 1.5.x bug
30606         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
30607         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
30608         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
30609         bug.
30610         (gl_PREREQ_MKDIR): Delete unused macro.
30611         * modules/mkdir (Files): Track file rename.
30612         (configure.ac): Update macro name.
30613         * modules/openat (Depends-on): Add mkdir.
30614         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
30615
30616         mkdir, mkdirat: add tests
30617         * modules/mkdir-tests: New test.
30618         * tests/test-mkdir.h: New file.
30619         * tests/test-mkdir.c: Likewise.
30620         * tests/test-mkdirat.c: Likewise.
30621         * modules/openat-tests (Files): Add new files.
30622         (Makefile.am): Run new test.
30623
30624 2009-10-06  Eric Blake  <ebb9@byu.net>
30625
30626         doc: tweak *at function documentation
30627         * doc/posix-functions/faccessat.texi (faccessat): Mention
30628         known issue with replacement.
30629         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
30630         * doc/posix-functions/linkat.texi (linkat): Likewise.
30631         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
30632         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
30633         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
30634         * doc/posix-functions/renameat.texi (renameat): Likewise.
30635         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
30636
30637         openat: fix GNU/Hurd bug in unlinkat
30638         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
30639         broken.
30640         * doc/posix-functions/unlink.texi (unlink): Document this.
30641         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
30642
30643         fdopendir: fix GNU/Hurd bug
30644         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
30645         allowing non-directory fds.
30646         * lib/fdopendir.c (rpl_fdopendir): Work around it.
30647         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
30648         * modules/dirent (Makefile.am): Substitute it.
30649         * lib/dirent.in.h (fdopendir): Declare replacement.
30650         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
30651         * tests/test-fdopendir.c (main): Test something other than
30652         /dev/null, since on Hurd that behaves like a directory.
30653
30654         test-symlink: port to GNU/Hurd
30655         * tests/test-symlink.h (test_symlink): Relax expected errno.
30656
30657         doc: tweak more cygwin information
30658         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
30659         now compatible with glibc.
30660         * doc/posix-functions/getopt.texi (getopt): Likewise.
30661
30662         getopt-gnu: add another test
30663         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
30664         guarantee behavior relied on by m4.
30665         * tests/test-getopt.c (main): Use it.
30666         * modules/getopt-posix-tests (Depends-on): Add setenv.
30667         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
30668
30669         getopt: fix compilation on darwin
30670         * lib/getopt.in.h (includes): Leave breadcrumbs during system
30671         include.
30672         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
30673         Reported by Ludovic Courtès.
30674
30675 2009-10-06  Bruno Haible  <bruno@clisp.org>
30676
30677         * modules/size_max (Description): Discourage its use.
30678         Reported by Simon Josefsson.
30679
30680 2009-10-06  Jim Meyering  <meyering@redhat.com>
30681
30682         linkat: avoid compilation failure
30683         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
30684
30685 2009-10-05  Eric Blake  <ebb9@byu.net>
30686
30687         linkat: support Linux 2.6.17
30688         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
30689         linkat on Linux, but allow cache variable override.
30690         * lib/linkat.c (rpl_linkat): Define override.
30691         * modules/linkat (Depends-on): Add symlinkat.
30692         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
30693         * modules/unistd (Makefile.am): Substitute it.
30694         * lib/unistd.in.h (linkat): Declare replacement.
30695         Reported by Pádraig Brady.
30696
30697         quotearg: port test to systems with C.UTF-8 locale
30698         * tests/test-quotearg.c (struct result_strings): Add another
30699         member, differentiating between C.ASCII and C.UTF-8 handling.
30700         (compare_strings): Add parameter.
30701         (main): Adjust all callers.
30702
30703         getopt: avoid clash with FreeBSD _getopt_internal
30704         * lib/getopt.in.h (_getopt_internal): Override the name.
30705         * lib/getopt_int.h (includes): Pick up any overrides.
30706         Reported by Reuben Thomas.
30707
30708         hash: allow C89 compilation
30709         * lib/hash.c (check_tuning): Move declaration before statement.
30710         Reported by Reuben Thomas.
30711
30712 2009-10-05  Karl Berry  <karl@gnu.org>
30713
30714         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
30715
30716 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
30717             Bruno Haible  <bruno@clisp.org>
30718
30719         * lib/uname.c (uname): Use a table-driven algorithm to compute
30720         Windows NT versions.
30721
30722 2009-10-04  Bruno Haible  <bruno@clisp.org>
30723
30724         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
30725         program_invocation_short_name.
30726         * modules/progname (configure.ac): Test for presence of
30727         program_invocation_short_name.
30728         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
30729
30730 2009-10-04  Bruno Haible  <bruno@clisp.org>
30731
30732         * lib/progname.c (set_program_name): Fix comment.
30733         Reported by Jim Meyering.
30734
30735 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
30736             Bruno Haible  <bruno@clisp.org>
30737
30738         * lib/uname.c: Include <string.h>.
30739         (uname): Do only one call to GetVersionEx in the common case.
30740
30741 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
30742             Bruno Haible  <bruno@clisp.org>
30743
30744         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
30745         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
30746         (uname): Add support for Windows CE and various non-x86 CPU types.
30747
30748 2009-10-03  Bruno Haible  <bruno@clisp.org>
30749
30750         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
30751         invocation to tests/configure.ac.
30752         Reported by Ian Beckwith <ianb@erislabs.net>.
30753
30754 2009-10-02  Eric Blake  <ebb9@byu.net>
30755
30756         fchdir: avoid compiler warning
30757         * lib/fchdir.c (canonicalize_file_name)
30758         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
30759
30760         test-open: support mingw errno values
30761         * tests/test-open.h (test_open): Relax test.
30762         * tests/test-fopen.h (test_fopen): Likewise.
30763         * tests/test-openat-safer.c (main): Likewise.
30764
30765         open: fix opening directory on mingw
30766         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
30767
30768         test-open: on GNU/Hurd, /dev/null is a directory
30769         * tests/test-fopen.h (main): Rename...
30770         (test_fopen): ...to this.  Use a guaranteed non-directory when
30771         confirming open behavior on trailing slash.
30772         * tests/test-openat-safer.c (main): Likewise.
30773         * tests/test-open.h (main): Likewise....
30774         (test_open): ...to this.
30775         * tests/test-fopen.c (main): Adjust caller.
30776         * tests/test-fopen-safer.c (main): Likewise.
30777         * tests/test-open.c (main): Likewise.
30778         * tests/test-fcntl-safer.c (main): Likewise.
30779         Reported by Samuel Thibault.
30780
30781         rename, fchdir: don't ignore chdir failure
30782         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
30783         * lib/rename.c (rpl_rename) [W32]: Likewise.
30784         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
30785         an empty destination directory if source cannot be renamed,
30786         although there is still possibility for failure.
30787         * doc/posix-functions/rename.texi (rename): Document the race.
30788         Reported by Jim Meyering.
30789
30790         maint: cleanup whitespace in recent commits
30791         * lib/rename.c (rpl_rename): Remove tabs.
30792         * tests/test-link.h (test_link): Likewise.
30793         * lib/fchdir.c (get_name): Likewise.
30794         Reported by Jim Meyering.
30795
30796 2009-10-02  Ben Pfaff  <blp@gnu.org>
30797
30798         relocatable-prog-wrapper: Add missing dependency on
30799         double-slash-root.
30800         * modules/relocatable-prog-wrapper: Add dependency.
30801         Reported by Ian Beckwith <ianb@erislabs.net>.
30802
30803 2009-10-02  Eric Blake  <ebb9@byu.net>
30804
30805         renameat: fix Solaris bugs
30806         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
30807         needed fixing.
30808         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
30809         * modules/stdio (Makefile.am): Substitute it.
30810         * lib/stdio.in.h (renameat): Declare replacement.
30811         * lib/renameat.c (rpl_renameat): Implement fix.
30812
30813         renameat: new module
30814         * modules/renameat: New file.
30815         * lib/renameat.c (renameat): Likewise.
30816         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
30817         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
30818         * modules/stdio (Makefile.am): Substitute them.
30819         * lib/stdio.in.h (renameat): Declare it.
30820         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30821         * doc/posix-functions/renameat.texi (renameat): Likewise.
30822         * modules/renameat-tests: New test.
30823         * tests/test-renameat.c: Likewise.
30824
30825         rename: fix mingw bugs
30826         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
30827         directory overwrite bugs.
30828
30829         rename: fix another cygwin 1.5 bug
30830         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
30831         checks.
30832         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
30833         unnecessary cygwin workarounds.  Also work around bug with moving
30834         full directory onto an empty one.
30835         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
30836
30837         rename-dest-slash: merge into rename module
30838         * modules/rename-dest-slash (Status): Mark obsolete.
30839         (Depends-on): Add rename.
30840         (Files): Let rename do it all.
30841         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
30842         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
30843         * m4/rename-dest-slash.m4: ...so this file can be deleted.
30844         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
30845         * lib/rename.c (rpl_rename): Update comments.
30846
30847         rename: fix cygwin 1.5.x bugs
30848         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
30849         * lib/rename.c (rpl_rename): Work around them.
30850         * modules/rename (Depends-on): Add same-inode.
30851
30852         rename: fix Solaris 10 bug
30853         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
30854         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
30855         was the only bug.
30856
30857         rename: fix Solaris 9 bug
30858         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
30859         on non-directory.  Avoid calling exit.
30860         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
30861         strdup.
30862         * modules/rename-tests (Depends-on): Drop lstat.
30863         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
30864         (gl_PREREQ_RENAME): Delete unused macro.
30865
30866         rename-dest-slash: fix NetBSD bug
30867         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
30868         links.
30869         * modules/rename-dest-slash (Depends-on): Add same-inode.
30870
30871         rename-tests: new test, exposes several platform bugs
30872         * modules/rename-tests: New file.
30873         * tests/test-rename.h: Likewise.
30874         * tests/test-rename.c: Likewise.
30875         * doc/posix-functions/rename.texi (rename): Improve documentation,
30876         including bugs that will eventually be fixed in gnulib.
30877
30878 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
30879
30880         * lib/uname.c: Include <stdlib.h>
30881         (uname): Assume version info is available.
30882
30883 2009-10-02  Jim Meyering  <meyering@redhat.com>
30884
30885         gnu-web-doc-update: correct --help output
30886         * build-aux/gnu-web-doc-update: Make --help output relevant.
30887
30888         gnu-web-doc-update: add standard options
30889         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
30890
30891         gnu-web-doc-update: New module.
30892         Use this script to automatically update the on-line web documentation
30893         for your GNU project at http://www.gnu.org/software/$pkg/manual/
30894         * modules/gnu-web-doc-update: New file, from coreutils.
30895         * build-aux/gnu-web-doc-update: New script.
30896
30897 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
30898
30899         link: LoadLibrary is not needed.
30900         * lib/link.c: Use GetModuleHandle.
30901
30902 2009-10-01  Eric Blake  <ebb9@byu.net>
30903
30904         getopt: bump serial number
30905         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
30906         change.
30907
30908         tests: tighten link, rmdir, and remove tests
30909         * tests/test-link.h (includes): No need to use <config.h> here.
30910         Clean up if directory hard link was created, otherwise test for
30911         trailing '.'.
30912         * tests/test-linkat.c (main): Simplify.
30913         * tests/test-remove.c (main): Enhance test for trailing '.'.
30914         * tests/test-rmdir.h (test_rmdir_func): Likewise.
30915
30916 2009-10-01  Jim Meyering  <meyering@redhat.com>
30917
30918         maint.mk: requiring "make major" was annoying, for a "minor" release.
30919         What is intended is "stable", to contrast with alpha and beta,
30920         so require "make stable", not "make major".
30921         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
30922         (get_tool_versions): Likewise.
30923         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
30924
30925 2009-09-30  Ben Pfaff  <blp@gnu.org>
30926
30927         Fix broken build of replacement for Windows tmpfile().
30928         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
30929         flags argument added along with the 'mkostemp' module.
30930
30931 2009-09-28  Bruno Haible  <bruno@clisp.org>
30932
30933         Avoid identifier clash with POSIX function 'remove' defined as a macro.
30934         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
30935         to 'remove_elt'.
30936         (gl_list_remove): Update.
30937         * lib/gl_list.c (gl_list_remove): Update.
30938         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
30939         to 'remove_elt'.
30940         (gl_oset_remove): Update.
30941         * lib/gl_list.c (gl_oset_remove): Update.
30942         Reported by Eric Blake.
30943
30944 2009-09-28  Eric Blake  <ebb9@byu.net>
30945
30946         doc: mention yet more cygwin 1.7 status
30947         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
30948         cygwin.
30949         * doc/glibc-functions/execvpe.texi (execvpe): New file.
30950         * doc/gnulib.texi (Glibc unistd.h): Mention it.
30951
30952         argp: fix test failure
30953         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
30954         that are not upper-case.  Pass correct range to tolower.
30955
30956 2009-09-27  Jim Meyering  <meyering@redhat.com>
30957
30958         test-yesno: work around sparc-dash here-document infelicity
30959         Without this change, the literal \177 byte in a here document
30960         would make dash 0.5.5.1-3 access uninitialized memory.
30961         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
30962         Instead, use a marker, "@", and filter through tr to create the desired
30963         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
30964
30965 2009-09-27  Bruno Haible  <bruno@clisp.org>
30966
30967         Disable untested support for new flavours of ACLs on AIX.
30968         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
30969         progress.
30970         * lib/set-mode-acl.c (qset_acl): Likewise.
30971
30972 2008-12-07  Bruno Haible  <bruno@clisp.org>
30973
30974         Add support for new flavours of ACLs on AIX. (Untested.)
30975         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
30976         (file_has_acl): Add support for newer AIX.
30977         * lib/set-mode-acl.c (qset_acl): Likewise.
30978         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
30979         Rainer Tammer <tammer@tammer.net>.
30980
30981 2009-09-26  Eric Blake  <ebb9@byu.net>
30982
30983         argp: fix compilation of getopt
30984         * lib/getopt.in.h (includes): Use different guard than glibc.
30985         Reported by Sergey Poznyakoff.
30986
30987         doc: mention more cygwin 1.7 status
30988         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
30989         bug.
30990         * doc/posix-functions/execl.texi (execl): Likewise.
30991         * doc/posix-functions/execle.texi (execle): Likewise.
30992         * doc/posix-functions/execlp.texi (execlp): Likewise.
30993         * doc/posix-functions/execv.texi (execv): Likewise.
30994         * doc/posix-functions/execve.texi (execve): Likewise.
30995         * doc/posix-functions/execvp.texi (execvp): Likewise.
30996         * doc/glibc-functions/canonicalize_file_name.texi
30997         (canonicalize_file_name): Cygwin 1.7 now provides this.
30998         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
30999         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
31000         on AT_SYMLINK_NOFOLLOW.
31001
31002 2009-09-24  Eric Blake  <ebb9@byu.net>
31003
31004         test-linkat: make test more robust
31005         * tests/test-linkat.c (main): Avoid collision with EEXIST.
31006
31007         getopt: fix inclusion guards for cygwin
31008         * modules/getopt-posix (Depends-on): Add include-next.
31009         (Makefile.am): Substitute more items in replacement header.
31010         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
31011         <getopt.h>.
31012         * lib/getopt.in.h (includes): Use split inclusion guard, and
31013         prefer <getopt.h> over include <unistd.h> when one is present.
31014         (option): Also override name of 'struct option'.
31015
31016         same-inode: revert prior change; it is not yet ready
31017         * NEWS: Undo mention of this change.
31018         * lib/same-inode.h (same-inode.h): Undo tri-state change.
31019         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
31020         * lib/cycle-check.c (cycle_check): Likewise.
31021         * lib/same.c (same_name): Likewise.
31022         * lib/at-func2.c (at_func2): Likewise.
31023
31024 2009-09-23  Eric Blake  <ebb9@byu.net>
31025
31026         linkat: new module
31027         * modules/linkat: New file.
31028         * lib/at-func2.c (at_func2): Likewise.
31029         * lib/linkat.c (linkat): Likewise.
31030         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
31031         * lib/openat-priv.h (at_func2): Add declaration.
31032         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
31033         * modules/unistd (Makefile.am): Substitute them.
31034         * lib/unistd.in.h (linkat): Declare it.
31035         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31036         * doc/posix-functions/linkat.texi (linkat): Likewise.
31037         * doc/posix-functions/link.texi (link): Tweak wording.
31038         * tests/test-link.c (main): Move guts...
31039         * tests/test-link.h (test_link): ...into new file.
31040         * modules/linkat-tests: New test.
31041         * tests/test-linkat.c: Likewise.
31042         * modules/link-tests (Files): Ship new file.
31043         (Depends-on): Add stdbool.
31044
31045         dirname: add library-safe mdir_name
31046         * lib/dirname.h (mdir_name): New prototype.
31047         * lib/dirname.c (dir_name): Move guts...
31048         (mdir_name): ...to new function that avoids xalloc_die.
31049
31050         fchdir: another mingw fix
31051         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
31052         * lib/fchdir.c (get_name): New helper method; skips canonicalize
31053         on mingw (where it has not yet been ported), and make it optional
31054         elsewhere.
31055         (_gl_register_fd): Use it.
31056
31057         same-inode: make SAME_INODE tri-state, to port to mingw
31058         * NEWS: Mention this change.
31059         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
31060         st_ino always being 0.
31061         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
31062         * lib/cycle-check.c (cycle_check): Likewise.
31063         * lib/same.c (same_name): Likewise.
31064
31065         lstat: avoid mingw compilation error
31066         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
31067         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
31068         lstat ourselves.
31069         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
31070         was adequate.
31071         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
31072         the checks for lstat.
31073         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
31074
31075         link: fix test failure on Solaris 9
31076         * lib/link.c (rpl_link): Don't assume link will catch bogus
31077         trailing slash on source.
31078
31079         test-symlinkat: enhance test
31080         * tests/test-readlink.c (main): Move guts...
31081         * tests/test-readlink.h (test_readlink): ...into new file.
31082         * tests/test-symlink.c (main): Move guts...
31083         * tests/test-symlink.h (test_symlink): ...into new file.
31084         * tests/test-symlinkat.c (main): Use new files for further
31085         coverage.
31086         (do_symlink, do_readlink): New helper functions.
31087         * modules/symlink-tests (Files): Ship new file.
31088         (Depends-on): Add stdbool.
31089         * modules/readlink-tests (Files): Ship new file.
31090         (Depends-on): Add stdbool.
31091         * modules/symlinkat-tests (Files): Use new files.
31092
31093 2009-09-23  Eric Blake  <ebb9@byu.net>
31094
31095         readlink: document portability issue with symlink length
31096         * doc/posix-functions/lstat.texi (lstat): Mention that some file
31097         systems have bogus st_size on symlinks, and mention the
31098         areadlink-with-size module.
31099         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
31100         * doc/posix-functions/readlink.texi (readlink): Mention the
31101         areadlink module, and ERANGE failure.
31102         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
31103         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
31104
31105         readlink: fix Solaris 9 bug with trailing slash
31106         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
31107         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
31108         * doc/posix-functions/readlink.texi (readlink): Document this.
31109         * modules/readlink-tests: New test.
31110         * tests/test-readlink.c: Likewise.
31111
31112         readlink: fix cygwin 1.5.x bug with return type
31113         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
31114         * lib/unistd.in.h (readlink): Use ssize_t.
31115         * lib/readlink.c (readlink): Likewise.
31116         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31117         * modules/unistd (Makefile.am): Substitute it.
31118         * lib/unistd.in.h (readlink): Declare replacement.
31119         * doc/posix-functions/readlink.texi (readlink): Document this.
31120
31121         symlink: use throughout gnulib
31122         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
31123         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
31124         symlink is not used.
31125         * modules/symlinkat (Depends-on): Add symlink.
31126         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
31127         * modules/canonicalize-tests (Depends-on): Likewise.
31128         * modules/lstat-tests (Depends-on): Likewise.
31129         * modules/openat-tests (Depends-on): Likewise.
31130         * modules/remove-tests (Depends-on): Likewise.
31131         * modules/rmdir-tests (Depends-on): Likewise.
31132         * modules/unlink-tests (Depends-on): Likewise.
31133         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
31134         * tests/test-canonicalize.c (symlink): Likewise.
31135         * tests/test-fstatat.c (symlink): Likewise.
31136         * tests/test-lstat.c (symlink): Likewise.
31137         * tests/test-remove.c (symlink): Likewise.
31138         * tests/test-rmdir.c (symlink): Likewise.
31139         * tests/test-unlink.c (symlink): Likewise.
31140         * tests/test-unlinkat.c (symlink): Likewise.
31141
31142         symlink: new module, for Solaris 9 bug
31143         * modules/symlink: New file.
31144         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
31145         * lib/symlink.c: Likewise.
31146         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
31147         * modules/unistd (Makefile.am): Substitute them.
31148         * lib/unistd.in.h (symlink): Declare replacement.
31149         * MODULES.html.sh (File system functions): Mention it.
31150         * doc/posix-functions/symlink.texi (symlink): Likewise.
31151         * modules/symlink-tests: New test.
31152         * tests/test-symlink.c: Likewise.
31153
31154 2009-09-23  Bruno Haible  <bruno@clisp.org>
31155
31156         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
31157         when needed.
31158         Test case: gnulib-tool --import --with-tests atexit inttypes.
31159         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
31160
31161 2009-09-23  Bruno Haible  <bruno@clisp.org>
31162
31163         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
31164         subcommand, not in a subshell.
31165
31166 2009-09-22  Eric Blake  <ebb9@byu.net>
31167
31168         unistd: sort replacement declarations
31169         * lib/unistd.in.h: Sort declarations.
31170
31171         open, openat: minor optimization
31172         * lib/open.c (open): If open succeeded, len is non-zero.
31173         * lib/openat.c (rpl_openat): Likewise.
31174
31175         link-follow: ensure correct result
31176         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
31177         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
31178         distinguish between possible failures.
31179
31180 2009-09-21  Eric Blake  <ebb9@byu.net>
31181
31182         fts: avoid compiler warning
31183         * lib/fts.c (dirent_inode_sort_may_be_useful)
31184         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
31185
31186 2009-09-19  Bruno Haible  <bruno@clisp.org>
31187
31188         * lib/progreloc.c (canonicalize_file_name): New declaration.
31189
31190 2009-09-19  Eric Blake  <ebb9@byu.net>
31191
31192         link: fix quoting
31193         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
31194
31195         openat: fix openat bugs on Solaris 9
31196         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
31197         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
31198         * modules/openat (Depends-on): Add open.
31199         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
31200         * modules/fcntl-h (Makefile.am): Substitute it.
31201         * lib/fcntl.in.h (openat): Declare replacement.
31202         * doc/posix-functions/openat.texi (openat): Document this.
31203
31204         openat: move fstatat and unlinkat into correct files
31205         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
31206         compiled.
31207         * lib/openat.c (fstatat, unlinkat): Move...
31208         * lib/fstatat.c (fstatat): ...into correct files.
31209         * lib/unlinkat.c (unlinkat): Likewise.
31210
31211         openat: fix unlinkat bugs on Solaris 9
31212         * lib/unlinkat.c (unlinkat): New file.
31213         * modules/openat (Depends-on): Add unlink.
31214         (Files): Distribute it.
31215         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
31216         trailing slash behavior is broken.
31217         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31218         * modules/unistd (Makefile.am): Substitute it.
31219         * lib/unistd.in.h (unlinkat): Declare replacement.
31220         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
31221
31222         openat: fix fstatat bugs on Solaris 9
31223         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
31224         stat.
31225         * doc/posix-functions/fstatat.texi (fstatat): Document this.
31226
31227         test-unlinkat: enhance test, to expose Solaris 9 bug
31228         * tests/test-unlink.c (main): Factor guts...
31229         * tests/test-unlink.h (test_rmdir_func): ...into new file.
31230         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
31231         * tests/test-rmdir.c (main): Adjust caller.
31232         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
31233         (unlinker): New helper function.
31234         (rmdirat): Enhance check.
31235         * modules/rmdir-tests (Depends-on): Add stdbool.
31236         * modules/unlink-tests (Depends-on): Likewise.
31237         (Files): Add test-unlink.h.
31238         * modules/openat-tests (Files): Likewise.
31239         (Depends-on): Add unlinkdir.
31240
31241         test-fstatat: new test, to expose Solaris 9 bugs
31242         * tests/test-stat.c (main): Factor guts...
31243         * tests/test-stat.h (test_stat_func): ...into new file.
31244         * tests/test-lstat.c (main): Factor guts...
31245         * tests/test-lstat.h (test_lstat_func): ...into new file.
31246         * tests/test-fstatat.c: New file.
31247         * modules/stat-tests (Files): Add test-stat.h.
31248         * modules/lstat-tests (Files): Add test-lstat.h.
31249         (Depends-on): Add stdbool.
31250         * modules/openat-tests (Depends-on): Add pathmax.
31251         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
31252         (Makefile.am): Run new test.
31253
31254         remove: new module, for mingw and Solaris 9 bugs
31255         * modules/remove: New file.
31256         * lib/remove.c: Likewise.
31257         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
31258         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
31259         * modules/stdio (Makefile.am): Use them.
31260         * lib/stdio.in.h (remove): Declare replacement.
31261         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31262         * doc/posix-functions/remove.texi (remove): Likewise.
31263         * modules/remove-tests: New test.
31264         * tests/test-remove.c: Likewise.
31265
31266         unlink: new module, for Solaris 9 bug
31267         * modules/unlink: New file.
31268         * lib/unlink.c: Likewise.
31269         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
31270         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
31271         * modules/unistd (Makefile.am): Use them.
31272         * lib/unistd.in.h (stat): Declare replacement.
31273         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31274         * doc/posix-functions/unlink.texi (unlink): Likewise.
31275         * modules/unlink-tests: New test.
31276         * tests/test-unlink.c: Likewise.
31277
31278         lstat: fix Solaris 9 bug
31279         * lib/lstat.c (lstat): Also check for trailing slash on
31280         non-symlink, non-directories.  Use stat module to simplify logic.
31281         * doc/posix-functions/lstat.texi (lstat): Document it.
31282         * modules/lstat-tests (Depends-on): Add errno, same-inode.
31283         (configure.ac): Check for symlink.
31284         * tests/test-lstat.c (main): Add more tests.
31285
31286         stat: add as dependency to other modules
31287         * modules/chown (Depends-on): Add stat.
31288         * modules/euidaccess (Depends-on): Likewise.
31289         * modules/fchdir (Depends-on): Likewise.
31290         * modules/isdir (Depends-on): Likewise.
31291         * modules/link (Depends-on): Likewise.
31292         * modules/lstat (Depends-on): Likewise.
31293         * modules/mkdir-p (Depends-on): Likewise.
31294         * modules/modechange (Depends-on): Likewise.
31295         * modules/open (Depends-on): Likewise.
31296         * modules/readlink (Depends-on): Likewise.
31297         * modules/same (Depends-on): Likewise.
31298
31299         stat: fix Solaris 9 bug
31300         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
31301         slash.
31302         * lib/stat.c (rpl_stat): Work around it.
31303         * doc/posix-functions/stat.texi (stat): Update documentation.
31304
31305         stat: new module, for mingw bug
31306         * modules/stat: New file.
31307         * lib/stat.c: Likewise.
31308         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
31309         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
31310         * modules/sys_stat (Makefile.am): Use them.
31311         * lib/sys_stat.in.h (stat): Declare replacement.
31312         * lib/openat.c (fstatat): Deal with lstat and stat being function
31313         macros.
31314         * modules/openat (Depends-on): Add inline.
31315         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31316         * doc/posix-functions/stat.texi (stat): Likewise.
31317         * modules/stat-tests: New test.
31318         * tests/test-stat.c: Likewise.
31319
31320 2009-09-19  Jim Meyering  <meyering@redhat.com>
31321
31322         syntax-check: detect unnecessary inclusion of canonicalize.h
31323         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
31324
31325 2009-09-19  Eric Blake  <ebb9@byu.net>
31326
31327         canonicalize-lgpl: adjust clients to use correct header
31328         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
31329         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
31330         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
31331         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
31332         * lib/progreloc.c (includes): Likewise.
31333
31334 2009-09-19  Jim Meyering  <meyering@redhat.com>
31335
31336         test-posixtm.c: correct a comment
31337         * tests/test-posixtm.c: Correct first-line comment.
31338         Spotted by Eric Blake.
31339
31340 2009-09-16  Jim Meyering  <meyering@redhat.com>
31341
31342         posixtm-tests: make T const-correct; add a test case
31343         * tests/test-posixtm.c (T): Declare const.
31344         Add a test for -(2^31+1).
31345         Remove useless can-succeed-only-in-2002 test.
31346
31347         posixtm-tests: adjust the sole failing test
31348         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
31349         expected output matches what mktime now produces.  Cross-checked via
31350         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
31351
31352         posixtm: move #ifdef'd tests into a new module
31353         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
31354         * tests/test-posixtm.c: ... this new file.
31355         * modules/posixtm-tests: New module.
31356
31357 2009-09-19  Eric Blake  <ebb9@byu.net>
31358
31359         openat: simplify use of at-func.c
31360         * lib/at-func.c (includes): Include prerequisites here, to
31361         simplify requirements on client files.
31362         * lib/openat-priv.h: Add double-inclusion guard.
31363         * lib/faccessat.c (includes): Simplify.
31364         * lib/fchmodat.c (includes): Likewise.
31365         * lib/fchownat.c (includes): Likewise.
31366         * lib/mkdirat.c (includes): Likewise.
31367         * lib/mkfifoat.c (includes): Likewise.
31368         * lib/symlinkat.c (includes): Likewise.
31369
31370         openat: allow return of fd 0
31371         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
31372         * modules/save-cwd (Depends-on): Replace fcntl-safer with
31373         unistd-safer.
31374         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
31375         <fcntl.h>; this module does not leak fds.
31376         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
31377         must be allowed to return 0, leaving openat_safer to add the
31378         safety.
31379         (openat_permissive): Avoid writing to just-opened fd 2 if
31380         restoring the current directory fails.
31381         * lib/openat-die.c (openat_restore_fail): Add comment.
31382         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
31383         (save_cwd): Guarantee safe fd, but without use of open_safer.
31384         * tests/test-openat.c: New test.
31385         * modules/openat-tests (Files, Makefile.am): Distribute and build
31386         new file.
31387
31388         relocatable-prog-wrapper: fix build
31389         * modules/relocatable-prog-wrapper (Files): Update name of
31390         canonicalize m4 file, broken on 2009-09-17.
31391         Reported by emad hajjar <aleppos@hotmail.com>.
31392
31393 2009-09-19  Bruno Haible  <bruno@clisp.org>
31394
31395         * lib/safe-alloc.h: Use the standard header with GPL copyright.
31396         * lib/safe-alloc.c: Likewise.
31397         Reported by Ian Beckwith <ianb@erislabs.net>.
31398
31399 2009-09-18  Bruno Haible  <bruno@clisp.org>
31400
31401         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
31402         Reported by <erobles@sensacd.com.mx>.
31403
31404 2009-09-17  Eric Blake  <ebb9@byu.net>
31405
31406         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
31407         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
31408         slashes when checking if last component is missing.
31409         * tests/test-canonicalize.c (main): Test this.
31410
31411         canonicalize, canonicalize-lgpl: honor // if distinct from /
31412         * modules/canonicalize (Files): Add double-slash-root.m4.
31413         * modules/canonicalize-lgpl (Files): Likewise.
31414         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
31415         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
31416         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
31417         fallback definition.
31418         (canonicalize_filename_mode): Use it to protect //.
31419         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
31420         (__realpath): Likewise.
31421         * tests/test-canonicalize.c (main): Test this.
31422         * tests/test-canonicalize-lgpl.c (main): Likewise.
31423         * modules/canonicalize-tests (Depends-on): Add same-inode.
31424         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
31425
31426         canonicalize-lgpl: fix glibc bug with trailing slash
31427         * m4/canonicalize-lgpl.m4: Move contents...
31428         * m4/canonicalize.m4: ...here.
31429         (gl_CANONICALIZE_LGPL): Factor realpath check...
31430         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
31431         glibc 2.3.5 bug, fixed 2005-04-27.
31432         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
31433         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
31434         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
31435         * modules/canonicalize-lgpl (Files): Manage file rename.
31436         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
31437         * modules/stdlib (Makefile.am): Substitute witness.
31438         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
31439         is needed.
31440         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
31441         replacement is required.
31442         * lib/canonicalize.c (canonicalize_file_name): Likewise.
31443         * doc/glibc-functions/canonicalize_file_name.texi
31444         (canonicalize_file_name): Document this.
31445         * doc/posix-functions/realpath.texi (realpath): Likewise.
31446
31447         canonicalize-lgpl: reject non-directory with trailing slash
31448         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
31449         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
31450         catches failures in glibc 2.3.5.
31451         * tests/test-canonicalize.c (main): Likewise.
31452
31453         canonicalize-lgpl: use native realpath if it works
31454         * lib/canonicalize-lgpl.c (realpath): Guard with
31455         FUNC_REALPATH_WORKS.
31456         * lib/stdlib.in.h (realpath): Make declaration optional based on
31457         HAVE_REALPATH.
31458         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
31459         native realpath works.
31460         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
31461         * modules/stdlib (Makefile.am): Substitute witness.
31462
31463         canonicalize, canonicalize-lgpl: use <stdlib.h>
31464         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
31465         (Include): Mention <stdlib.h>.
31466         (configure.ac): Mention functions we provide.
31467         * modules/canonicalize (configure.ac): Likewise.
31468         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
31469         realpath if canonicalize_file_name is missing.
31470         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
31471         * modules/stdlib (Makefile.am): Substitute witnesses.
31472         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
31473         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
31474         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
31475         * NEWS: Document this.
31476         * doc/glibc-functions/canonicalize_file_name.texi
31477         (canonicalize_file_name): Likewise.
31478         * doc/posix-functions/realpath.texi (realpath): Likewise.
31479         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
31480
31481         test-canonicalize: consolidate into single C program
31482         * tests/test-canonicalize.sh: Delete; move setup into...
31483         * tests/test-canonicalize.c (main): ...the program, making it
31484         easier to run in debugger.  Add some tests.
31485         * modules/canonicalize-tests (Files): Remove unused file.
31486         (Depends-on): Add progname.
31487         (configure.ac, Makefile.am): Simplify.
31488
31489         test-canonicalize-lgpl: consolidate into single C program
31490         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
31491         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
31492         easier to run in debugger.  Add some tests.
31493         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
31494         (configure.ac, Makefile.am): Simplify.
31495
31496         canonicalize: avoid resolvepath
31497         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
31498         unnecessary checks.
31499         * lib/canonicalize.c (includes): Simplify.
31500         (canonicalize_file_name): Drop resolvepath implementation.
31501         * modules/canonicalize (Depends-on): Drop filenamecat.
31502
31503         canonicalize: don't lose errno
31504         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
31505         over calls to free.
31506
31507         canonicalize: simplify errno handling
31508         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
31509         assignment.
31510
31511         canonicalize, canonicalize-lgpl: update module dependencies
31512         * modules/canonicalize (Depends-on): Add extensions, lstat,
31513         pathmax, stdlib.
31514         (Files): Drop pathmax.h.
31515         (configure.ac): Adjust macro name.
31516         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
31517         lstat, stdlib, sys_stat.
31518         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
31519         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
31520         extensions.
31521         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
31522         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
31523         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
31524         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
31525         declaration, if available.
31526         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
31527         we can rely on the readlink module.
31528         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
31529         (includes): Use <unistd.h> unconditionally.
31530
31531 2009-09-17  Eric Blake  <ebb9@byu.net>
31532
31533         maint: make Include sections of modules consistent
31534         * modules/alloca: Use only header name; no need to list #include.
31535         * modules/alloca-opt: Likewise.
31536         * modules/arpa_inet: Likewise.
31537         * modules/canon-host: Likewise.
31538         * modules/configmake: Likewise.
31539         * modules/dirent: Likewise.
31540         * modules/eealloc: Likewise.
31541         * modules/environ: Likewise.
31542         * modules/fchdir: Likewise.
31543         * modules/fcntl: Likewise.
31544         * modules/fcntl-h: Likewise.
31545         * modules/gethrxtime: Likewise.
31546         * modules/gettime: Likewise.
31547         * modules/ignore-value: Likewise.
31548         * modules/inet_ntop: Likewise.
31549         * modules/inet_pton: Likewise.
31550         * modules/inttypes: Likewise.
31551         * modules/isnand-nolibm: Likewise.
31552         * modules/isnanf-nolibm: Likewise.
31553         * modules/mbchar: Likewise.
31554         * modules/mbfile: Likewise.
31555         * modules/mbiter: Likewise.
31556         * modules/mbuiter: Likewise.
31557         * modules/netdb: Likewise.
31558         * modules/netinet_in: Likewise.
31559         * modules/nproc: Likewise.
31560         * modules/pagealign_alloc: Likewise.
31561         * modules/poll: Likewise.
31562         * modules/printf-frexp: Likewise.
31563         * modules/pthread: Likewise.
31564         * modules/putenv: Likewise.
31565         * modules/random_r: Likewise.
31566         * modules/relocatable-prog: Likewise.
31567         * modules/search: Likewise.
31568         * modules/select: Likewise.
31569         * modules/selinux-h: Likewise.
31570         * modules/settime: Likewise.
31571         * modules/signal: Likewise.
31572         * modules/size_max: Likewise.
31573         * modules/socklen: Likewise.
31574         * modules/ssize_t: Likewise.
31575         * modules/stdarg: Likewise.
31576         * modules/stdbool: Likewise.
31577         * modules/stddef: Likewise.
31578         * modules/stdint: Likewise.
31579         * modules/stdio: Likewise.
31580         * modules/stdlib: Likewise.
31581         * modules/string: Likewise.
31582         * modules/strings: Likewise.
31583         * modules/sys_file: Likewise.
31584         * modules/sys_ioctl: Likewise.
31585         * modules/sys_select: Likewise.
31586         * modules/sys_socket: Likewise.
31587         * modules/sys_stat: Likewise.
31588         * modules/sys_time: Likewise.
31589         * modules/sys_times: Likewise.
31590         * modules/sys_utsname: Likewise.
31591         * modules/sys_wait: Likewise.
31592         * modules/sysexits: Likewise.
31593         * modules/time: Likewise.
31594         * modules/times: Likewise.
31595         * modules/tmpfile: Likewise.
31596         * modules/trim: Likewise.
31597         * modules/unistd: Likewise.
31598         * modules/wchar: Likewise.
31599         * modules/wctype: Likewise.
31600
31601 2009-09-17  Bruno Haible  <bruno@clisp.org>
31602
31603         Make getdate.y compile on QNX and NetBSD 5 / i386.
31604         * m4/getdate.m4 (gl_GETDATE): Conditionally define
31605         TIME_T_FITS_IN_LONG_INT.
31606         * lib/getdate.y (long_time_t): New type.
31607         (relative_time): Change type of 'seconds' field to long_time_t.
31608         (get_date): Update types of local variables. Check against overflow
31609         during conversion from long_time_t to time_t.
31610         Reported by Matt Kraai <kraai@ftbfs.org>
31611         and Hasso Tepper <hasso@netbsd.org>.
31612
31613 2009-09-17  Bruno Haible  <bruno@clisp.org>
31614
31615         * modules/COPYING: Update copyright years.
31616         * modules/README: Likeiwse.
31617         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
31618         Reported by Ian Beckwith <ianb@erislabs.net>.
31619
31620 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
31621
31622         * users.txt: Update references for gnuit package.
31623
31624 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
31625
31626         * m4/getdelim.m4: Fix typo in copyright line.
31627
31628 2009-09-17  Bruno Haible  <bruno@clisp.org>
31629
31630         * lib/atoll.c: Use the standard header with GPL copyright.
31631         * lib/argz.in.h: Likewise.
31632         * lib/glob.c: Likewise.
31633         * lib/glob-libc.h: Likewise.
31634         * lib/random_r.c: Likewise.
31635         * lib/siglist.h: Likewise.
31636         * lib/strsignal.c: Likewise.
31637         Reported by Ian Beckwith <ianb@erislabs.net>.
31638
31639 2009-09-17  Eric Blake  <ebb9@byu.net>
31640
31641         rmdir: ensure correct dependency order
31642         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
31643
31644 2009-09-17  Bruno Haible  <bruno@clisp.org>
31645
31646         Disable assertion that fails on NetBSD 5 / i386.
31647         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
31648         Reported by Sam Steingold <sds@gnu.org>
31649         and Hasso Tepper <hasso@netbsd.org>.
31650
31651 2009-09-16  Eric Blake  <ebb9@byu.net>
31652
31653         unlinkdir: port to mingw
31654         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
31655         on which no one can unlink a directory.
31656
31657         stdlib: sort witness names
31658         * modules/stdlib (Makefile.am): Sort replacements.
31659         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
31660         * lib/stdlib.in.h: Likewise.
31661
31662         parse-duration-tests: avoid link failure
31663         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
31664         LIBINTL.
31665         Reported by Tom G. Christensen.
31666
31667         openat-tests: ensure unlinkat behaves like rmdir
31668         * tests/test-rmdir.c (main): Factor guts...
31669         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
31670         * modules/rmdir-tests (Files): Ship new file.
31671         * modules/openat-tests: New test.
31672         * tests/test-unlinkat.c: Likewise.
31673
31674         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
31675         * modules/rmdir-errno (Status, Notice): Now obsolete.
31676
31677         rmdir: work around cygwin 1.5.x and mingw bugs
31678         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
31679         * lib/rmdir.c (rmdir): Work around it.
31680         * modules/rmdir (Status, Notice): No longer obsolete.
31681         (Files): Add dos.m4.
31682         (Depends-on): Add unistd.
31683         (configure.ac): Set witnesses.
31684         (License): Relax to LGPLv2+.
31685         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
31686         * modules/unistd (Makefile.am): Substitute witnesses.
31687         * lib/unistd.in.h (rmdir): Declare replacement.
31688         * doc/posix-functions/rmdir.texi (rmdir): Document this.
31689         * modules/rmdir-tests: New tests.
31690         * tests/test-rmdir.c: Likewise.
31691
31692 2009-09-15  Eric Blake  <ebb9@byu.net>
31693
31694         fchdir: improve use of replacement functions
31695         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
31696         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
31697         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
31698         REPLACE_CLOSEDIR.
31699         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
31700         * modules/sys_stat (Makefile.am): Substitute correct witness.
31701         * modules/dirent (Makefile.am): Likewise.
31702         * modules/unistd (Makefile.am): Likewise.
31703         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
31704         * lib/unistd.in.h (dup): Likewise.
31705         * lib/sys_stat.in.h (fstat): Likewise.
31706
31707         maint: ignore gnulib-tool temp files
31708         * .gitignore: Ignore files created during gnulib-tool --test.
31709
31710 2009-09-13  Jim Meyering  <meyering@redhat.com>
31711
31712         posixtm: don't reject a time that specify "60" as the number of seconds
31713         * lib/posixtm.c (posixtime): The code to reject invalid dates
31714         would also reject a time specified with the .60 suffix.
31715         But POSIX allows that, in order to accommodate leap seconds.
31716         So don't reject it.
31717         (main): Adjust tests accordingly.
31718         * modules/posixtm (Depends-on): Add stpcpy.
31719
31720 2009-09-11  Jim Meyering  <meyering@redhat.com>
31721
31722         announce-gen: include [$release_type] in emitted Subject:
31723         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
31724         e.g., [stable] in the emitted Subject: line.
31725
31726 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31727
31728         Remove obsolete macros from several modules.
31729         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
31730         obsolete Autoconf macros with their modern counterparts.
31731         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
31732         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
31733         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
31734         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
31735         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
31736         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
31737         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
31738         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
31739         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
31740         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
31741         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
31742         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
31743         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
31744         * m4/sockets.m4 (gl_SOCKETS): Likewise.
31745         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
31746         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
31747         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
31748         * m4/time_r.m4 (gl_TIME_R): Likewise.
31749         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
31750         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
31751         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
31752
31753         Fix copyright header in build-aux scripts.
31754         * build-aux/git-version-gen: Fix copyright header to match GPLv3
31755         recommendation.
31756         * build-aux/ncftpput-ftp: Likewise.
31757         * build-aux/update-copyright: Likewise.
31758
31759 2009-09-09  Eric Blake  <ebb9@byu.net>
31760
31761         test-link: allow Linux choice of errno
31762         * tests/test-link.c (main): Relax test for alternate error.
31763
31764         strndup: fix improper m4 caching
31765         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
31766         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
31767         (gl_PREREQ_STRNDUP): Delete.
31768         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
31769         * modules/string (Makefile.am): Substitute it.
31770         * lib/string.in.h (strndup): Modernize prototype.
31771
31772         getcwd: port to mingw
31773         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
31774         different from the POSIX assumptions made throughout the getcwd
31775         module; fortunately, the mingw getcwd does not need replacement.
31776         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
31777         * modules/getcwd-tests: New test.
31778         * tests/test-getcwd.c: Likewise.
31779
31780         link: fix platform bugs
31781         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
31782         * lib/link.c (link): Work around them.  Fix related mingw bug.
31783         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
31784         * modules/unistd (Makefile.am): Substitute it.
31785         * lib/unistd.in.h (link): Declare replacement.
31786         * doc/posix-functions/link.texi (link): Document this.
31787         * modules/link (Depends-on): Add strdup-posix, sys_stat.
31788
31789         test-link: consolidate into single C program, test more cases
31790         * tests/test-link.sh: Delete.
31791         * tests/test-link.c: Test more error conditions.  Exposes bugs on
31792         at least Cygwin and Solaris.
31793         * modules/link-tests (Files): Remove unused file.
31794         (Depends-on): Add errno, sys_stat.
31795         (Makefile.am): Simplify.
31796
31797 2009-09-08  Bruno Haible  <bruno@clisp.org>
31798
31799         Work around towlower, towupper bug on mingw.
31800         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
31801         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
31802         * doc/posix-functions/towlower.texi: Mention the mingw bug.
31803         * doc/posix-functions/towupper.texi: Likewise.
31804         Reported by Eric Blake.
31805
31806 2009-09-08  Jim Meyering  <meyering@redhat.com>
31807
31808         build: don't try to run autoheader if we don't use it
31809         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
31810         is not used in configure.ac.
31811
31812 2009-09-08  Eric Blake  <ebb9@byu.net>
31813
31814         euidaccess: fix compilation error
31815         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
31816
31817         rawmemchr: relax license
31818         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
31819         okay.
31820         Reported by Jim Meyering.
31821
31822         mkfifoat: new module
31823         * modules/mkfifoat: New file.
31824         * lib/mkfifoat.c: Likewise.
31825         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
31826         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
31827         * modules/sys_stat (Makefile.am): Use them.
31828         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
31829         * MODULES.html.sh (File system functions): Mention module.
31830         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
31831         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
31832         * modules/mkfifoat-tests: New test.
31833         * tests/test-mkfifoat.c: Likewise.
31834
31835         strchrnul: relax license
31836         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
31837         okay.
31838         Reported by Jim Meyering.
31839
31840 2009-09-08  Eric Blake  <ebb9@byu.net>
31841
31842         fstatat: fix compilation on Solaris
31843         * lib/fstatat.c (includes): Add fcntl.h.
31844         Reported by Pádraig Brady.
31845
31846 2009-09-07  Eric Blake  <ebb9@byu.net>
31847
31848         rename: modernize replacement
31849         * modules/rename (Depends-on): Add stdio.
31850         (configure.ac): Declare witness.
31851         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
31852         stdio take care of replacement.
31853         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
31854         * modules/stdio (Makefile.am): Substitute them.
31855         * lib/stdio.in.h (rename): Declare replacement.
31856         * lib/rename.c (includes): Allow cross-compilation to non-windows
31857         machines.
31858         * doc/posix-functions/rename.texi (rename): Improve
31859         documentation.
31860
31861         stdio: sort witness names
31862         * modules/stdio (Makefile.am): Sort replacements.
31863         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
31864         * lib/stdio.in.h: Likewise.
31865
31866         getcwd: minor cleanups
31867         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
31868         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
31869
31870         openat: provide more convenience names
31871         * modules/faccessat (configure.ac): Add C witness.
31872         * lib/unistd.in.h (readlinkat): Fix typo.
31873         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
31874         convenience wrappers.
31875         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
31876         wrappers in syntax checks.
31877
31878 2009-09-06  Eric Blake  <ebb9@byu.net>
31879
31880         doc: fix comments in recent patches
31881         * lib/faccessat.c: Mention correct function.
31882         * lib/fchmodat.c: Likewise.
31883         * lib/fchownat.c: Likewise.
31884         * lib/symlinkat.c: Likewise.
31885         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
31886         constants.
31887
31888         faccessat, symlinkat: continue cleanup of previous patch
31889         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
31890         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
31891         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
31892         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
31893         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
31894         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
31895         set.
31896
31897 2009-09-06  Bruno Haible  <bruno@clisp.org>
31898
31899         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
31900         (fstatat): Declare if GNULIB_FSTATAT is set.
31901         (mkdirat): Declare if GNULIB_MKDIRAT is set.
31902         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
31903         (unlinkat): Declare if GNULIB_UNLINKAT is set.
31904         * modules/fcntl-h (Files): Remove m4/openat.m4.
31905         * modules/sys_stat (Files): Remove m4/openat.m4.
31906         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
31907         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
31908         * modules/unistd (Files): Remove m4/openat.m4.
31909         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
31910         GNULIB_OPENAT.
31911         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
31912         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
31913         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
31914         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
31915         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
31916         gl_OPENAT_DEFAULTS.
31917         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
31918         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
31919         Don't require gl_OPENAT_DEFAULTS.
31920         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
31921         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
31922         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
31923         (gl_OPENAT_DEFAULTS): Remove macro.
31924
31925 2009-09-06  Bruno Haible  <bruno@clisp.org>
31926
31927         * modules/openat (configure.ac): Remove unneeded witness.
31928
31929 2009-09-06  Bruno Haible  <bruno@clisp.org>
31930
31931         Set errno to ENOSYS when a function is entirely unsupported.
31932         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
31933         EOPNOTSUPP.
31934         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
31935         * modules/chown (Depends-on): Remove errno.
31936
31937 2009-09-06  Bruno Haible  <bruno@clisp.org>
31938
31939         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
31940
31941 2009-09-06  Bruno Haible  <bruno@clisp.org>
31942
31943         * lib/sys_stat.in.h: Fix preprocessor command indentation.
31944
31945 2009-09-06  Ben Pfaff  <blp@gnu.org>
31946             Bruno Haible  <bruno@clisp.org>
31947
31948         Work around a glibc bug in strtok_r.
31949         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
31950         Undefine if UNDEFINE_STRTOK_R is set.
31951         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
31952         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
31953         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
31954         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
31955         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
31956         UNDEFINE_STRTOK_R.
31957         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
31958
31959 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
31960
31961         exclude: minor fix
31962         * lib/exclude.c: Include wctype.h
31963
31964 2009-09-06  Akim Demaille  <demaille@gostai.com>
31965
31966         bootstrap: improve error message
31967         * build-aux/bootstrap (find_tool): Upon failure, report the list
31968         of candidates.
31969         Honor the initial value of the envvar.
31970
31971 2009-09-05  Eric Blake  <ebb9@byu.net>
31972
31973         symlinkat: new module
31974         * modules/symlinkat: New file.
31975         * lib/symlinkat.c: Likewise.
31976         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
31977         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
31978         * modules/unistd (Makefile.am): Use them.
31979         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
31980         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
31981         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
31982         * MODULES.html.sh (File system functions): Mention module.
31983         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
31984         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
31985         * modules/symlinkat-tests: New test.
31986         * tests/test-symlinkat.c: Likewise.
31987
31988         test-openat-safer: add more checks
31989         * tests/test-openat-safer.c (main): Check more code paths.
31990
31991 2009-09-05  Jim Meyering  <meyering@redhat.com>
31992
31993         syntax-check: detect unnecessary inclusion of openat.h
31994         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
31995
31996 2009-09-05  Bruno Haible  <bruno@clisp.org>
31997
31998         Support towlower, towupper.
31999         * doc/posix-functions/towlower.texi: Mention module wctype.
32000         * doc/posix-functions/towupper.texi: Likewise.
32001         * lib/wctype.in.h (towlower, towupper): New functions.
32002         * tests/test-wctype.c: Include stdio.h, stdlib.h.
32003         (ASSERT): New macro.
32004         (e): New variable.
32005         (main): Test also towlower, towupper. Test WEOF argument.
32006         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
32007
32008 2009-09-05  Bruno Haible  <bruno@clisp.org>
32009
32010         Fix conversion behaviour when the input is invalid.
32011         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
32012         mark occurring in first pass of indirect conversion.
32013         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
32014         input.
32015         Found by clang's static analyzer.
32016
32017 2009-09-05  Bruno Haible  <bruno@clisp.org>
32018
32019         * tests/test-striconveh.c (main): Test indirect conversion on platforms
32020         where direct conversion is possible.
32021
32022 2009-09-04  Eric Blake  <ebb9@byu.net>
32023
32024         openat: fail with ENOENT on empty name
32025         * lib/openat-proc.c (openat_proc_name): Special-case the empty
32026         buffer.
32027
32028         link-follow: fix logic bug in prior patch
32029         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
32030         reversed sense of yes and no in prior patch.  Avoid confusing
32031         compilation failure with desired semantics.
32032
32033         link-follow: accomodate mingw and cross-compilation
32034         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
32035         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
32036         cross-compilation results to -1, to make linkat easier to
32037         implement when cross-compiling.  Trivially support mingw.
32038         * modules/link-follow (configure.ac): Call new name.
32039         * NEWS: Mention this.
32040
32041 2009-09-03  Eric Blake  <ebb9@byu.net>
32042
32043         faccessat: compile replacement
32044         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
32045         needed.
32046
32047         fts: fix compilation error
32048         * lib/fts.c (includes): Re-add "openat.h", for
32049         openat_needs_fchdir.
32050
32051         faccessat: new module
32052         * modules/faccessat: New file.
32053         * lib/faccessat.c: Likewise.
32054         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
32055         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
32056         * modules/unistd (Makefile.am): Use it.
32057         * lib/unistd.in.h (faccessat): Declare it.
32058         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
32059         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
32060         * MODULES.html.sh (File system functions): Mention it.
32061         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
32062         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
32063
32064         euidaccess: prefer POSIX over non-standard implementation
32065         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
32066         * lib/euidaccess.c (euidaccess): Use it if available.
32067
32068         openat: make template easier to use
32069         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
32070         AT_FUNC_F2 to be undefined.
32071         (VALIDATE_FLAG): New macro; use it to reject bad flags.
32072         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
32073         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
32074         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
32075         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
32076         Likewise.
32077         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
32078         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
32079         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
32080         Likewise.
32081
32082         openat: declare in POSIX headers
32083         * NEWS: Mention this.
32084         * modules/openat (configure.ac): Declare witnesses.
32085         (Depends-on): Add fcntl-h, sys_stat, unistd.
32086         (Include): Mention correct headers.
32087         * modules/fcntl-h (Depends-on): Add link-warning.
32088         (Files): Add openat.m4.
32089         (Makefile.am): Substitute witnesses.
32090         * modules/sys_stat (Files, Makefile.am): Likewise.
32091         * modules/unistd (Files, Makefile.am): Likewise.
32092         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
32093         (gl_OPENAT_DEFAULTS): New macro.
32094         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
32095         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
32096         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
32097         (SYS_STAT_H): Remove unused variable.
32098         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
32099         * lib/fcntl--.h (includes): Remove unneeded header.
32100         * lib/openat-safer.c (includes): Likewise.
32101         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
32102         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
32103         appropriate headers.
32104         (__OPENAT_PREFIX): Delete.
32105         * lib/fcntl.in.h (openat): Provide declaration.
32106         (AT_FDCWD): Fix Solaris bug.
32107         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
32108         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
32109         * lib/fchmodat.c (includes):  Adjust to find declaration.
32110         * lib/fchownat.c (includes): Likewise.
32111         * lib/mkdirat.c (includes): Likewise.
32112         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
32113         still visible.
32114
32115 2009-09-02  Eric Blake  <ebb9@byu.net>
32116
32117         errno: use consistently
32118         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
32119         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
32120         * lib/canonicalize.c (ELOOP): Likewise.
32121         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
32122         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
32123         * lib/lchown.c (EOPNOTSUPP): Likewise.
32124         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
32125         * lib/savewd.c (ESTALE): Likewise.
32126         * lib/settime.c (ENOSYS): Likewise.
32127         * lib/utimens.c (ENOSYS): Likewise.
32128         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
32129         * lib/chdir-safer.c (ELOOP): Likewise.
32130         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
32131         * modules/c-stack (Depends-on): Add errno.
32132         * modules/canonicalize (Depends-on): Likewise.
32133         * modules/chdir-safer (Depends-on): Likewise.
32134         * modules/fdopendir (Depends-on): Likewise.
32135         * modules/inet_ntop (Depends-on): Likewise.
32136         * modules/inet_pton (Depends-on): Likewise.
32137         * modules/lchown (Depends-on): Likewise.
32138         * modules/openat (Depends-on): Likewise.
32139         * modules/savewd (Depends-on): Likewise.
32140         * modules/settime (Depends-on): Likewise.
32141         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
32142
32143         fts: avoid leaking fds
32144         * modules/fts (Depends-on): Add cloexec.
32145         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
32146         flag.
32147
32148         fts: make directory fds more robust
32149         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
32150         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
32151
32152         backupfile, chdir-long, fts, savedir: make safer
32153         * lib/backupfile.c (includes): Use "dirent--.h", since
32154         numbered_backup can write to stderr during readdir.
32155         * lib/savedir.c (includes): Likewise.
32156         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
32157         emulation can write to stderr on failure.
32158         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
32159         * lib/getcwd.c: Document why opendir_safer is unused.
32160         * lib/glob.c: Likewise.
32161         * lib/scandir.c: Likewise.
32162         * lib/openat-proc.c: Likewise, for open_safer.
32163         * modules/backupfile (Depends-on): Add dirent-safer.
32164         * modules/savedir (Depends-on): Likewise.
32165         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
32166         * modules/chdir-long (Depends-on): Add openat-safer.
32167
32168         openat-safer: new module
32169         * modules/openat-safer: New file.
32170         * lib/openat-safer.c: Likewise.
32171         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
32172         * lib/fcntl-safer.h (openat_safer): Declare.
32173         * lib/fcntl--.h (openat): Override.
32174         * MODULES.html.sh (File descriptor based I/O): Mention it.
32175         * lib/openat.h: Add double-inclusion guards.
32176         * lib/openat.c (includes): Only include "fcntl-safer.h", not
32177         "fcntl--.h", so we can implement openat.
32178         * modules/openat-safer-tests: New test.
32179         * tests/test-openat-safer.c: New file.
32180
32181         dirent-safer: new module
32182         * modules/dirent-safer: New file.
32183         * lib/dirent--.h: Likewise.
32184         * lib/dirent-safer.h: Likewise.
32185         * lib/opendir-safer.c: Likewise.
32186         * m4/dirent-safer.m4: Likewise.
32187         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
32188         * modules/dirent-safer-tests: New test.
32189         * tests/test-dirent-safer.c: New file.
32190         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
32191
32192         fdopendir: optimize on mingw
32193         * lib/unistd.in.h (_gl_directory_name): New prototype.
32194         * lib/fchdir.c (_gl_directory_name): Implement it.
32195         (fchdir): Use it to simplify implementation.
32196         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
32197         fchdir, when available, to avoid calling [f]chdir().
32198
32199         fdopendir: split into its own module
32200         * lib/openat.c (fdopendir): Move...
32201         * lib/fdopendir.c: ...into new file.
32202         * modules/fdopendir: New module.
32203         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
32204         * modules/openat (Depends-on): Add fdopendir.
32205         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
32206         fdopendir here.
32207         * modules/savedir (Depends-on): Only need fdopendir, not full
32208         openat.
32209         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
32210         * lib/openat.h (fdopendir): Drop prototype.
32211         * lib/dirent.in.h (fdopendir): Provide prototype.
32212         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
32213         * modules/dirent (Makefile.am): Substitute them.
32214         * MODULES.html.sh (File system functions): Mention it.
32215         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
32216         * modules/fdopendir-tests: New file.
32217         * tests/test-fdopendir.c: Likewise.
32218
32219         fchdir: use more consistent macro convention
32220         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
32221         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
32222         REPLACE_FCHDIR, rather than relying on config.h macros.
32223         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
32224         inside a single make-time REPLACE_FCHDIR block, rather than using
32225         the config.h FCHDIR_REPLACEMENT.
32226         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
32227         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
32228         Manage fstat replacement.
32229         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
32230         REPLACE_FCHDIR.
32231         * modules/sys_stat (Files): Add m4/unistd_h.m4.
32232         (Makefile.am): Substitute REPLACE_FCHDIR.
32233         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
32234         FCHDIR_REPLACEMENT.
32235         * lib/dup-safer.c (dup_safer): Likewise.
32236         * lib/dup2.c (rpl_dup2): Likewise.
32237         * lib/dup3.c (rpl_dup3): Likewise.
32238         * lib/open.c (rpl_open): Likewise.
32239
32240         fchdir: simplify error handling, and support dup3
32241         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
32242         stdbool, malloc-posix, realloc-posix.
32243         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
32244         (ensure_dirs_slot): Return false on allocation failure.
32245         (rpl_dup2): Delete.
32246         (_gl_register_dup): New function.
32247         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
32248         (_gl_register_fd): Close fd on allocation failure.
32249         * lib/fcntl.in.h (_gl_register_fd): Update signature.
32250         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
32251         prototype.
32252         (rpl_dup2_fchdir): Delete prototype.
32253         * lib/open.c (open): Update caller.
32254         * lib/dup2.c (dup2): Track fchdir metadata.
32255         * lib/dup3.c (dup3): Likewise.
32256         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
32257         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
32258
32259 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32260
32261         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
32262         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
32263         don't pass arguments to AC_OUTPUT.
32264
32265 2009-09-02  Bruno Haible  <bruno@clisp.org>
32266
32267         * modules/mkdtemp (License): Relicense under LGPLv2+.
32268         Reported by Paolo Bonzini.
32269
32270 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32271
32272         Replace uses of obsolete autoconf macros in Jim's modules.
32273         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
32274         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
32275         can evoke a warning from autoconf when run with -Wobsolete
32276         enabled.  They were declared obsolete for good reasons (see
32277         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
32278         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
32279         should not continue using the deprecated macros.
32280         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
32281         obsolete Autoconf macros with modern counterparts.
32282         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
32283         * m4/dos.m4 (gl_AC_DOS): Likewise.
32284         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
32285         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
32286         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
32287         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
32288         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
32289         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
32290         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
32291         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
32292         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
32293         Likewise.
32294         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
32295         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
32296         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
32297         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
32298         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
32299         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
32300
32301 2009-09-01  Eric Blake  <ebb9@byu.net>
32302
32303         fchdir: fix off-by-one bug in previous patch
32304         * lib/fchdir.c (rpl_fstat): Use correct bounds.
32305         (_gl_unregister_fd): Delete useless if.
32306
32307 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
32308
32309         maint.mk: sort the list of syntax-check rules
32310         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
32311         easier to get a sense of progress when the rules are run sequentially
32312         and take a long time.
32313
32314 2009-09-01  Simon Josefsson  <simon@josefsson.org>
32315
32316         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
32317         * modules/netinet_in: Likewise.
32318         * modules/sys_file: Likewise.
32319         * modules/sys_ioctl: Likewise.
32320         * modules/sys_select: Likewise.
32321         * modules/sys_socket: Likewise.
32322         * modules/sys_stat: Likewise.
32323         * modules/sys_time: Likewise.
32324         * modules/sys_times: Likewise.
32325         * modules/sys_utsname: Likewise.
32326         * modules/sys_wait: Likewise.
32327
32328 2009-09-01  Jim Meyering  <meyering@redhat.com>
32329
32330         fts: help ensure that return values are not ignored
32331         * lib/fts_.h (__GNUC_PREREQ): Define.
32332         (__attribute_warn_unused_result__): Define.
32333         (fts_children, fts_close, fts_open, fts_read): Declare with
32334         __attribute_warn_unused_result__.
32335
32336         fts: fts_close now fails also when closing a dir file descriptor fails
32337         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
32338         and propagate to caller, along with errno.
32339
32340         announce-gen: correct formatting in --help output
32341         * build-aux/announce-gen (usage): Move the one-line description in
32342         --help output "up", to where it belongs, just after Usage:.
32343
32344 2009-08-31  Eric Blake  <ebb9@byu.net>
32345
32346         fchdir: port to mingw
32347         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
32348         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
32349         opened, then use a substitute.
32350         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
32351         replacement.
32352         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
32353         (_gl_register_fd): No need to check stat if open already filters
32354         all directories.
32355         (fchdir): Fix error condition to match POSIX.
32356         * modules/fchdir (Depends-on): Add sys_stat.
32357         * doc/posix-functions/open.texi (open): Document the limitation.
32358         * modules/fchdir-tests: New file.
32359         * tests/test-fchdir.c: Likewise.
32360
32361         canonicalize: allow cross-testing from cygwin to mingw
32362         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
32363         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
32364         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
32365         Likewise.
32366         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
32367         target does not support symlinks.
32368         * tests/test-canonicalize-lgpl.sh: Likewise.
32369
32370         chown: avoid compilation warning on mingw
32371         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
32372         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
32373         mingw.
32374         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
32375         * modules/chown (Depends-on): Add errno.
32376
32377 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
32378
32379         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
32380         command.
32381
32382 2009-08-31  Jim Meyering  <meyering@redhat.com>
32383
32384         canonicalize: remove useless initialization
32385         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
32386         initialization of local, "end".
32387
32388 2009-08-30  Bruno Haible  <bruno@clisp.org>
32389
32390         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
32391         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
32392         ENOSYS.
32393
32394 2009-08-30  Bruno Haible  <bruno@clisp.org>
32395
32396         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
32397         /usr/xpg4/bin/tr when it exists.
32398         * tests/test-pipe-filter-gi1.sh: Likewise.
32399
32400 2009-08-30  Bruno Haible  <bruno@clisp.org>
32401
32402         Work around deficient /usr/bin/id program on Solaris.
32403         * tests/test-file-has-acl.sh (ID): New variable.
32404         * tests/test-set-mode-acl.sh (ID): Likewise.
32405         * tests/test-copy-acl.sh (ID): Likewise.
32406         * tests/test-copy-file.sh (ID): Likewise.
32407
32408 2009-08-30  Bruno Haible  <bruno@clisp.org>
32409
32410         New module 'xstriconveh'.
32411         * lib/xstriconveh.h: New file.
32412         * lib/xstriconveh.c: New file.
32413         * modules/xstriconveh: New file.
32414
32415 2009-08-30  Bruno Haible  <bruno@clisp.org>
32416
32417         Make it easier to use mem_cd_iconveh.
32418         * lib/striconveh.h (iconveh_t): New type.
32419         (iconveh_open, iconveh_close): New declarations.
32420         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
32421         with a single 'const iconveh_t *' argument.
32422         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
32423         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
32424         with a single 'const iconveh_t *' argument.
32425         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
32426         * tests/test-striconveh.c (main): Update.
32427         * NEWS: Mention the change.
32428
32429 2009-08-30  Bruno Haible  <bruno@clisp.org>
32430
32431         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
32432         problem.
32433
32434 2009-08-30  Bruno Haible  <bruno@clisp.org>
32435
32436         Work around iconv_open problem on Solaris.
32437         * lib/iconv_open-solaris.gperf: New file.
32438         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
32439         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
32440         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
32441         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
32442         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
32443         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
32444
32445 2009-08-29  Jim Meyering  <meyering@redhat.com>
32446
32447         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
32448         * top/maint.mk (cvs-check): Remove target; it was just an alias
32449         to the better-named vc-diff-check.
32450         (maintainer-distcheck): Remove rule.  It was used only from
32451         the (alpha/beta/major) target, and all of its commands but one
32452         were coreutils-specific.
32453         (vc-dist): Remove rule.
32454         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
32455         Run vc-diff-check, not vc-dist.
32456         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
32457
32458 2009-08-27  Bruno Haible  <bruno@clisp.org>
32459
32460         * tests/test-bitrotate.c (main): Remove test that uses a shift count
32461         of 0.
32462
32463 2009-08-27  Bruno Haible  <bruno@clisp.org>
32464
32465         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
32466         compilers.
32467         * doc/func.texi: Document the SunPRO C bug.
32468
32469 2009-08-27  Bruno Haible  <bruno@clisp.org>
32470
32471         Fix link error on Solaris.
32472         * tests/test-parse-duration.c (xstrdup): Remove function.
32473
32474 2009-08-26  Pádraig Brady  <P@draigbrady.com>
32475
32476         ignore-value: handle pointer types, too
32477         * lib/ignore-value.h (__attribute__): Remove definition.
32478         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
32479         of a more concise and more-often effective "(void) i" statement.
32480         (ignore_ptr): New function to suppress warnings from functions that
32481         return pointers, and to make it explicit that one function doesn't
32482         handle all cases.
32483
32484 2009-08-25  Bruno Haible  <bruno@clisp.org>
32485
32486         dup2: work around a Linux bug.
32487         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
32488         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
32489         * doc/posix-functions/dup2.texi: Mention the Linux bug.
32490         Reported by Simon Josefsson.
32491
32492 2009-08-25  Jim Meyering  <meyering@redhat.com>
32493
32494         libguestfs uses gnulib
32495         * users.txt: Add libguestfs.
32496
32497 2009-08-24  Eric Blake  <ebb9@byu.net>
32498
32499         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
32500         * lib/pipe2.c (includes): Add binary-io.h.
32501         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
32502
32503 2009-08-24  Bruno Haible  <bruno@clisp.org>
32504
32505         Tolerate declared but missing accept4 syscall.
32506         * lib/accept4.c (accept4): Invoke original accept4 function first, if
32507         available.
32508         * lib/sys_socket.in.h (accept4): If the function is already present,
32509         override it.
32510         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
32511         * modules/accept4 (Makefile.am): Compile accept4.c always.
32512         Reported by Paolo Bonzini and Eric Blake.
32513
32514 2009-08-23  Bruno Haible  <bruno@clisp.org>
32515
32516         New module 'accept4'.
32517         * lib/sys_socket.in.h (accept4): New declaration.
32518         * lib/accept4.c: New file.
32519         * m4/accept4.m4: New file.
32520         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
32521         GNULIB_ACCEPT4, HAVE_ACCEPT4.
32522         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
32523         HAVE_ACCEPT4.
32524         * modules/accept4: New file.
32525         * doc/glibc-functions/accept4.texi: Mention the new module.
32526
32527 2009-08-24  Jim Meyering  <meyering@redhat.com>
32528
32529         progname: also set global program_invocation_name, when possible
32530         Before this change, a libtool-enabled program that calls glibc's
32531         error function would report the program name as
32532         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
32533         * modules/progname (configure.ac): Check for a declaration of
32534         program_invocation_name.
32535         * lib/progname.c:  Include <errno.h>.
32536         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
32537         Set program_invocation_name.
32538
32539 2009-08-23  Bruno Haible  <bruno@clisp.org>
32540
32541         * lib/dup3.c: Include <string.h>.
32542
32543 2009-08-23  Bruno Haible  <bruno@clisp.org>
32544
32545         * lib/dup3.c (dup3): Test only once whether the system actually exists.
32546         * lib/pipe2.c (pipe2): Likewise.
32547         Suggested by Eric Blake.
32548
32549 2009-08-23  Bruno Haible  <bruno@clisp.org>
32550
32551         Tolerate declared but missing dup3 syscall.
32552         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
32553         * lib/unistd.in.h (dup3): If the function is already present,
32554         override it.
32555         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
32556         * modules/dup3 (Makefile.am): Compile dup3.c always.
32557         Reported by Paolo Bonzini.
32558
32559 2009-08-23  Bruno Haible  <bruno@clisp.org>
32560
32561         Tolerate declared but missing pipe2 syscall.
32562         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
32563         available.
32564         * lib/unistd.in.h (pipe2): If the function is already present,
32565         override it.
32566         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
32567         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
32568         Reported by Paolo Bonzini.
32569
32570 2009-08-23  Bruno Haible  <bruno@clisp.org>
32571
32572         * lib/pipe2.c (pipe2): Move #ifs inside function.
32573
32574 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
32575
32576         quotearg: document limitations of quote_these_too
32577         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
32578         those limitations are created.
32579         * lib/quotearg.h (set_char_quoting): Document that digits and
32580         letters that are special after backslash are not permitted.
32581         (quotearg_char): Cross-reference set_char_quoting documentation.
32582
32583 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
32584
32585         quotearg: implement custom_quoting_style
32586         * lib/quotearg.c: (struct quoting_options): Add left_quote and
32587         right_quote fields.
32588         (set_custom_quoting): New public function.
32589         (quotearg_buffer_restyled): Add left_quote and right_quote
32590         arguments, handle them very much like locale quoting, and update
32591         all uses.
32592         (quotearg_n_custom): New public function.
32593         (quotearg_n_custom_mem): New public function.
32594         (quotearg_custom): New public function.
32595         (quotearg_custom_mem): New public function.
32596         * lib/quotearg.h: Prototype and document new public functions.
32597         (enum quoting_style): For escape_quoting_style and
32598         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
32599         ignored even though they're otherwise like c_quoting_style.
32600         Add custom_quoting_style member and document with comparison to
32601         clocale_quoting_style.
32602         * tests/test-quotearg.c (custom_quotes): New array.
32603         (custom_results): New array.
32604         (main): Extend to test custom quoting.
32605
32606 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
32607
32608         quotearg: fix right quote escaping when it's in quote_these_too
32609         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
32610         quote, be sure to prepend only one backslash.
32611         * tests/test-quotearg.c (use_quote_double_quotes): New function.
32612         (main): Test it.
32613
32614 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
32615
32616         quotearg-tests: test escaping of embedded locale quotes
32617         * tests/test-quotearg.c (struct result_strings): Add member for
32618         new input.
32619         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
32620         (inputs): Add new input.
32621         (results_g): Add expected results.
32622         (flag_results): Likewise.
32623         (locale_results): Likewise.
32624         (compare_strings): Check those.
32625
32626 2009-08-23  Bruno Haible  <bruno@clisp.org>
32627
32628         Tests for module 'dup3'.
32629         * modules/dup3-tests: New file.
32630         * tests/test-dup3.c: New file.
32631
32632         New module 'dup3'.
32633         * lib/unistd.in.h (dup3): New declaration.
32634         * lib/dup3.c: New file.
32635         * m4/dup3.m4: New file.
32636         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
32637         HAVE_DUP3.
32638         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
32639         * modules/dup3: New file.
32640         * doc/glibc-functions/dup3.texi: Mention the new module.
32641
32642 2009-08-23  Bruno Haible  <bruno@clisp.org>
32643
32644         Tweak the dup2 test.
32645         * tests/test-dup2.c (main): Create the test file empty. Verify that an
32646         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
32647         the test file is still empty. Fix argument order of lseek.
32648
32649 2009-08-23  Bruno Haible  <bruno@clisp.org>
32650
32651         Avoid test link errors when the modules getopt-gnu, gettext are used.
32652         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
32653         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32654
32655 2009-08-23  Bruno Haible  <bruno@clisp.org>
32656
32657         Fix getdtablesize() on mingw.
32658         * lib/getdtablesize.c (getdtablesize): Implement differently.
32659         * lib/unistd.in.h (getdtablesize): Improve comment.
32660
32661 2009-08-23  Bruno Haible  <bruno@clisp.org>
32662
32663         New module 'mkostemp'.
32664         Based on Ulrich Drepper's 2007-08-10 change in glibc.
32665         * lib/stdlib.in.h (mksotemp): New declaration.
32666         * lib/mkostemp.c: New file, from glibc with modifications.
32667         * lib/tempname.h (GT_FILE): Remove outdated comment.
32668         (gen_tempname): Add flags argument.
32669         * lib/tempname.c (__GT_BIGFILE): Remove macro.
32670         (__GT_FILE): Map to 1.
32671         (small_open, large_open): Remove macros.
32672         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
32673         * lib/mkstemp.c (mkstemp): Update.
32674         * lib/mkdtemp.c (mkdtemp): Likewise.
32675         * m4/mkostemp.m4: New file.
32676         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
32677         HAVE_MKOSTEMP.
32678         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
32679         HAVE_MKOSTEMP.
32680         * modules/mkostemp: New file, based on modules/mkstemp.
32681         * doc/glibc-functions/mkostemp.texi: Mention the new module.
32682         * NEWS: Mention the change.
32683
32684 2009-08-23  Bruno Haible  <bruno@clisp.org>
32685
32686         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
32687         Reported by Eric Blake.
32688
32689 2009-08-23  Bruno Haible  <bruno@clisp.org>
32690
32691         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
32692         Reported by Eric Blake.
32693
32694 2009-08-23  Bruno Haible  <bruno@clisp.org>
32695
32696         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
32697         * modules/pipe2 (Depends-on): Likewise.
32698
32699 2009-08-23  Eric Blake  <ebb9@byu.net>
32700
32701         fcntl-h: add O_TTY_INIT support
32702         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
32703         * tests/test-fcntl-h.c (o): Test it.
32704         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
32705
32706         fcntl-h: rename from fcntl, in preparation for fcntl(2)
32707         * modules/fcntl: Move <fcntl.h> header replacement...
32708         * modules/fcntl-h: ...to new name, so as not to collide with
32709         like-named function.
32710         * tests/test-fcntl.c: Rename...
32711         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
32712         * modules/fcntl-tests: Rename...
32713         * modules/fcntl-h-tests: ...to this.  Update test file name.
32714         * modules/chdir-long (Depends-on): Update clients.
32715         * modules/chdir-safer (Depends-on): Likewise.
32716         * modules/fcntl-safer (Depends-on): Likewise.
32717         * modules/fts (Depends-on): Likewise.
32718         * modules/mkancesdirs (Depends-on): Likewise.
32719         * modules/mkdir-p (Depends-on): Likewise.
32720         * modules/open (Depends-on): Likewise.
32721         * modules/savewd (Depends-on): Likewise.
32722         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
32723         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
32724
32725 2009-08-22  Bruno Haible  <bruno@clisp.org>
32726
32727         * modules/binary-io (License): Relicense under LGPL.
32728         * modules/pipe2 (License): Likewise.
32729
32730 2009-08-22  Bruno Haible  <bruno@clisp.org>
32731
32732         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
32733         return value.
32734         * lib/pipe-filter-gi.c (filter_init): Likewise.
32735         Reported by Eric Blake.
32736
32737 2009-08-22  Bruno Haible  <bruno@clisp.org>
32738
32739         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
32740         * modules/pipe (Depends-on): Add pipe2.
32741
32742 2009-08-22  Bruno Haible  <bruno@clisp.org>
32743
32744         Tests for module 'pipe2'.
32745         * modules/pipe2-tests: New file.
32746         * tests/test-pipe2.c: New file.
32747
32748         New module 'pipe2'.
32749         * lib/unistd.in.h (pipe2): New declaration.
32750         * lib/pipe2.c: New file.
32751         * m4/pipe2.m4: New file.
32752         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
32753         HAVE_PIPE2.
32754         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
32755         * modules/pipe2: New file.
32756         * doc/glibc-functions/pipe2.texi: Mention the new module.
32757
32758 2009-08-22  Bruno Haible  <bruno@clisp.org>
32759
32760         Reference some new glibc functions.
32761         * doc/glibc-functions/accept4.texi: New file.
32762         * doc/glibc-functions/dup3.texi: New file.
32763         * doc/glibc-functions/mkostemp.texi: New file.
32764         * doc/glibc-functions/pipe2.texi: New file.
32765         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
32766         (Glibc sys/socket.h): Refer to accept4.
32767         (Glibc unistd.h): Refer to dup3, pipe2.
32768         Reported by Eric Blake.
32769
32770 2009-08-22  Jim Meyering  <meyering@redhat.com>
32771             Bruno Haible  <bruno@clisp.org>
32772
32773         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
32774         This makes it so packages using automake-1.11's silent-rules option
32775         can print e.g., a single "GEN    configmake.h" line, rather than
32776         the 30+ statements that perform the job.  If you want to see the
32777         actual commands, you can still run "make V=1".
32778         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
32779         so that make output is abbreviated when those variables are defined
32780         appropriately.
32781         * modules/argz: Likewise.
32782         * modules/arpa_inet: Likewise.
32783         * modules/byteswap: Likewise.
32784         * modules/configmake: Likewise.
32785         * modules/dirent: Likewise.
32786         * modules/errno: Likewise.
32787         * modules/fcntl: Likewise.
32788         * modules/float: Likewise.
32789         * modules/fnmatch: Likewise.
32790         * modules/getopt-posix: Likewise.
32791         * modules/glob: Likewise.
32792         * modules/iconv_open: Likewise.
32793         * modules/inttypes: Likewise.
32794         * modules/localcharset: Likewise.
32795         * modules/locale: Likewise.
32796         * modules/math: Likewise.
32797         * modules/netdb: Likewise.
32798         * modules/netinet_in: Likewise.
32799         * modules/poll: Likewise.
32800         * modules/posix_spawnp-tests: Likewise.
32801         * modules/sched: Likewise.
32802         * modules/search: Likewise.
32803         * modules/selinux-h: Likewise.
32804         * modules/signal: Likewise.
32805         * modules/spawn: Likewise.
32806         * modules/stdarg: Likewise.
32807         * modules/stdbool: Likewise.
32808         * modules/stddef: Likewise.
32809         * modules/stdint: Likewise.
32810         * modules/stdio: Likewise.
32811         * modules/stdlib: Likewise.
32812         * modules/string: Likewise.
32813         * modules/strings: Likewise.
32814         * modules/sys_file: Likewise.
32815         * modules/sys_ioctl: Likewise.
32816         * modules/sys_select: Likewise.
32817         * modules/sys_socket: Likewise.
32818         * modules/sys_stat: Likewise.
32819         * modules/sys_time: Likewise.
32820         * modules/sys_times: Likewise.
32821         * modules/sys_utsname: Likewise.
32822         * modules/sys_wait: Likewise.
32823         * modules/sysexits: Likewise.
32824         * modules/time: Likewise.
32825         * modules/unistd: Likewise.
32826         * modules/wchar: Likewise.
32827         * modules/wctype: Likewise.
32828
32829 2009-08-22  Jim Meyering  <meyering@redhat.com>
32830
32831         announce-gen: detect write failure
32832         * build-aux/announce-gen: Add Coda at end.
32833         Remove equivalent-but-more-verbose block at top.
32834
32835 2009-08-19  Akim Demaille  <demaille@gostai.com>
32836
32837         bootstrap: --help to stdout.
32838         * bootstrap (usage): Don't send --help to stderr.
32839         Use a here doc instead of a long string.
32840
32841 2009-08-21  Eric Blake  <ebb9@byu.net>
32842
32843         test-popen-safer: split from test-popen
32844         * tests/test-popen.c (main): Move...
32845         * tests/test-popen.h: ...into new file.
32846         * tests/test-popen-safer2.c: New file.
32847         * modules/popen-tests (Files): Add test-popen.h.
32848         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
32849         Suggested by Bruno Haible.
32850
32851         test-fcntl-safer: split from test-open
32852         * tests/test-open.c (main): Move...
32853         * tests/test-open.h: ...into new file.
32854         * tests/test-fcntl-safer.c: New file.
32855         * modules/open-tests (Files): Add test-open.h.
32856         * modules/fcntl-safer-tests: New file.
32857         Suggested by Bruno Haible.
32858
32859         test-fopen-safer: split from test-fopen
32860         * tests/test-fopen.c (main): Move...
32861         * tests/test-fopen.h: ...into new file.
32862         * tests/test-fopen-safer.c: New file.
32863         * modules/fopen-tests (Files): Add test-fopen.h.
32864         * modules/fopen-safer-tests: New file.
32865         Suggested by Bruno Haible.
32866
32867 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
32868
32869         popen-safer: test O_CLOEXEC at run-time.
32870         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
32871
32872 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
32873
32874         fcntl: move more flags to the header
32875         * lib/cloexec.c: Do not define FD_CLOEXEC here.
32876         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
32877         * lib/fcntl.in.h: Do both things here.
32878
32879 2009-08-21  Jim Meyering  <meyering@redhat.com>
32880
32881         consistently remove $@-t before redirecting to it
32882         * modules/argz: Remove $@-t and $@ before redirecting to the former.
32883         * modules/alloca-opt: Likewise.
32884         * modules/byteswap: Likewise.
32885         * modules/fnmatch: Likewise.
32886         * modules/getopt-posix: Likewise.
32887         * modules/glob: Likewise.
32888         * modules/poll: Likewise.
32889         * modules/posix_spawnp-tests: Likewise.
32890         * modules/sys_socket: Likewise.
32891         * modules/sysexits: Likewise.
32892
32893 2009-08-21  Eric Blake  <ebb9@byu.net>
32894
32895         popen: simplify access to original popen
32896         * lib/popen.c (rpl_popen): No need to worry about popen being a
32897         macro.
32898         Reported by Bruno Haible.
32899
32900 2009-08-20  Eric Blake  <ebb9@byu.net>
32901
32902         build: avoid some compiler warnings
32903         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
32904         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
32905         type.
32906         (new_exclude_segment, excluded_file_pattern_p)
32907         (excluded_file_name_p): Reduce scope.
32908         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
32909         old-style declaration.
32910
32911 2009-08-20  Simon Josefsson  <simon@josefsson.org>
32912
32913         * tests/test-exclude1.sh: Handle Windows EOL.
32914         * tests/test-exclude2.sh: Likewise.
32915         * tests/test-exclude3.sh: Likewise.
32916         * tests/test-exclude4.sh: Likewise.
32917         * tests/test-exclude5.sh: Likewise.
32918         * tests/test-exclude6.sh: Likewise.
32919         * tests/test-exclude7.sh: Likewise.
32920
32921 2009-08-19  Akim Demaille  <demaille@gostai.com>
32922
32923         bootstrap: find sha1sum when named gsha1sum.
32924         * bootstrap (find_tool): New.
32925         ($SHA1SUM): New.
32926         Use it.
32927
32928 2009-08-20  Jim Meyering  <meyering@redhat.com>
32929
32930         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
32931         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
32932         expression that converts "." in a file name to "\." in the resulting
32933         regexp.  Start with a dummy statement, so that prior shell variable
32934         definitions are expanded portably.  Reported by Simon Josefsson.
32935
32936 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
32937
32938         Fix polling for writeability of a screen buffer.
32939         * lib/poll.c: Distinguish input and screen buffers for the
32940         Win32 implementation.
32941         * lib/select.c: Likewise.
32942
32943 2009-08-19  Eric Blake  <ebb9@byu.net>
32944
32945         popen-safer: prevent popen from clobbering std descriptors
32946         * modules/popen-safer: New file.
32947         * lib/popen-safer.c: Likewise.
32948         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
32949         * lib/stdio--.h (popen): Provide override.
32950         * lib/stdio-safer.h (popen_safer): Provide declaration.
32951         * tests/test-popen.c (includes): Partially test this.
32952         * modules/popen-safer-tests: New file, for more tests.
32953         * tests/test-popen-safer.c: Likewise.
32954         * MODULES.html.sh (file stream based Input/Output): Mention it.
32955
32956         tests: test some of the *-safer modules
32957         * modules/fopen-safer (Depends-on): Add fopen.
32958         * modules/fcntl-safer (Depends-on): Add fcntl.
32959         * modules/stdlib-safer (Depends-on): Add stdlib.
32960         (configure.ac): Set indicator.
32961         * modules/unistd-safer (configure.ac): Likewise.
32962         * modules/tmpfile-safer (configure.ac): Likewise.
32963         (Depends-on): Add tmpfile.
32964         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
32965         active.
32966         * tests/test-fopen.c (includes): Test safer versions when they are
32967         in use.
32968         * tests/test-open.c (includes): Likewise.
32969
32970         popen: fix cygwin 1.5 bug when stdin closed
32971         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
32972         * modules/popen: New file.
32973         * modules/popen-tests: Likewise.
32974         * tests/test-popen.c: Likewise.
32975         * m4/popen.m4: Likewise.
32976         * lib/popen.c: Likewise.
32977         * lib/stdio.in.h (popen): New declaration.
32978         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
32979         * modules/stdio (Makefile.am): Likewise.
32980         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
32981
32982 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
32983
32984         maint.mk: give full control over update-copyright exclusions
32985         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
32986         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
32987         (update-copyright): Don't force inclusion of top-level
32988         ChangeLog.  Don't force exclusion of all COPYING files, but make
32989         them the default exclusion instead.
32990
32991 2009-08-16  Bruno Haible  <bruno@clisp.org>
32992
32993         Fix test failures on Solaris 10.
32994         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
32995         tests when Solaris iconv() is used.
32996         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
32997         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
32998         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
32999         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
33000         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
33001
33002 2009-08-16  Bruno Haible  <bruno@clisp.org>
33003
33004         Fix test failures on Solaris 10.
33005         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
33006         'tr' program and pass it as first argument.
33007         * tests/test-pipe-filter-gi1.sh: Likewise.
33008         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
33009         program as first argument.
33010         * tests/test-pipe-filter-gi1.c (main): Likewise.
33011
33012 2009-08-16  Eric Blake  <ebb9@byu.net>
33013
33014         fpurge: fix previous commits
33015         * modules/fpurge (Makefile.am): Make replacement conditional,
33016         partially reverting 2007-04-29 change; missed in previous
33017         attempt.
33018         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
33019         is missing.
33020
33021 2009-08-16  Bruno Haible  <bruno@clisp.org>
33022
33023         Clarify fpurge's effect on the file position.
33024         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
33025         * tests/test-fpurge.c (main): Make a second pass for checking the file
33026         position.
33027
33028 2009-08-16  Bruno Haible  <bruno@clisp.org>
33029
33030         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
33031         declaration of fpurge is missing.
33032         * tests/test-fpurge.c (main): Check that the file has not more contents
33033         than expected. Close the file before removing it.
33034
33035 2009-08-15  Eric Blake  <ebb9@byu.net>
33036
33037         fpurge: don't wrap working cygwin implementation
33038         * lib/fpurge.c (fpurge): Fix comment typo.
33039         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
33040         1.7 to avoid replacement.
33041         * tests/test-fpurge.c (main): Enhance test.
33042
33043 2009-08-15  Eric Blake  <ebb9@byu.net>
33044         and Jim Meyering  <meyering@redhat.com>
33045
33046         test-update-copyright: skip if perl is insufficient
33047         * tests/test-update-copyright.sh: Failure to run maintainer tool
33048         should not cause testsuite failure on cygwin 1.5.
33049
33050 2009-08-14  Eric Blake  <ebb9@byu.net>
33051
33052         doc: mention more functions added in cygwin 1.7.0
33053         * doc/posix-headers/limits.texi (limits.h): Update for recent
33054         cygwin additions.
33055         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
33056         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
33057         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
33058         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
33059         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
33060
33061 2009-08-14  Eric Blake  <ebb9@byu.net>
33062
33063         maint.mk: simplify update-copyright rule
33064         * top/maint.mk (update-copyright-local): Delete, and document how
33065         to do it in cfg.mk instead.
33066         (update-copyright-exclude-regexp): Delete, and document how to do
33067         it in .x-update-copyright instead.
33068         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
33069         exclude ChangeLog.
33070
33071 2009-08-14  Bruno Haible  <bruno@clisp.org>
33072
33073         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
33074
33075 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
33076
33077         maint.mk: support update-copyright-env
33078         * top/maint.mk (update-copyright-env): Define place-holder.
33079         (update-copyright): Expand $(update-copyright-env) before
33080         invoking update-copyright.
33081
33082 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
33083
33084         update-copyright: implement forced reformatting
33085         * build-aux/update-copyright: Implement and document
33086         UPDATE_COPYRIGHT_FORCE.
33087         * tests/test-update-copyright.sh: Test it.
33088
33089 2009-08-14  Eric Blake  <ebb9@byu.net>
33090         and Bruno Haible  <bruno@clisp.org>
33091
33092         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
33093         * tests/test-locale.c: Revert previous patch related to NULL.
33094         * tests/test-stdio.c: Likewise.
33095         * tests/test-stdlib.c: Likewise.
33096         * tests/test-string.c: Likewise.
33097         * tests/test-unistd.c: Likewise.
33098         * modules/time-tests (Depends-on): Add verify.
33099         * modules/wchar-tests (Depends-on): Likewise.
33100         * tests/test-time.c: Test for NULL compliance.
33101         * tests/test-wchar.c: Likewise.
33102         * modules/locale (Depends-on): Add stddef.
33103         * modules/stdio (Depends-on): Likewise.
33104         * modules/stdlib (Depends-on): Likewise.
33105         * modules/string (Depends-on): Likewise.
33106         * modules/time (Depends-on): Likewise.
33107         * modules/unistd (Depends-on): Likewise.
33108         * modules/wchar (Depends-on): Likewise.
33109         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
33110         * lib/stdlib.in.h (includes): Likewise.
33111         * lib/string.in.h (includes): Likewise.
33112         * lib/time.in.h (includes): Likewise.
33113         * lib/unistd.in.h (includes): Likewise.
33114         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
33115         replaced.
33116         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33117         * m4/stddef_h.m4: New file.
33118         * modules/stddef: Likewise.
33119         * lib/stddef.in.h: Likewise.
33120         * modules/stddef-tests: Likewise.
33121         * tests/test-stddef.c: Likewise.
33122         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
33123         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
33124         * doc/posix-headers/locale.texi (locale.h): Likewise.
33125         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
33126         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
33127         * doc/posix-headers/string.texi (string.h): Likewise.
33128         * doc/posix-headers/time.texi (time.h): Likewise.
33129         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
33130         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
33131
33132 2009-08-14  Eric Blake  <ebb9@byu.net>
33133
33134         doc: improve git diff of texinfo files
33135         * .gitattributes: Add rule for *.texi files, with hint on how to
33136         use it.
33137         Copied from m4, and based on a report by Bruno Haible.
33138
33139 2009-08-14  Bruno Haible  <bruno@clisp.org>
33140
33141         Disable multithread support by default on Cygwin 1.5.x for real.
33142         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
33143
33144 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
33145
33146         update-copyright: much ado about intervals
33147         * build-aux/update-copyright: Implement and document
33148         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
33149         of copyright year intervals.
33150         Also, document UPDATE_COPYRIGHT_YEAR.
33151         * tests/test-update-copyright.sh: Test it.
33152
33153         update-copyright: convert 2-digit to 4-digit years
33154         * build-aux/update-copyright: Implement and document.
33155         * tests/test-update-copyright.sh: Update.
33156
33157 2009-08-14  Jim Meyering  <meyering@redhat.com>
33158
33159         test-exclude: avoid coreutils "make check" failure
33160         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
33161         just as in test-argmatch.c.
33162
33163 2009-08-13  Eric Blake  <ebb9@byu.net>
33164
33165         test-dup2: fix bad assumption
33166         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
33167         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
33168
33169         test-version-etc: fix CRLF portability issue
33170         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
33171         recognize \r.
33172         * tests/test-argp-version-etc-1.sh: Likewise.
33173
33174         getopt: update client modules
33175         * modules/argp (Depends-on): Use getopt-gnu.
33176         * modules/git-merge-changelog (Depends-on): Likewise.
33177         * modules/long-options (Depends-on): Likewise.
33178         * modules/xstrtol (Depends-on): Likewise.
33179
33180 2009-08-13  Simon Josefsson  <simon@josefsson.org>
33181
33182         * tests/test-version-etc.sh: Don't fail on different
33183         project/version.  Don't fail on CRLF differences.  Rewrite to use
33184         multiple -e instead of multiple sed forks, suggested by Eric Blake
33185         <ebb9@byu.net>.
33186         * tests/test-argp-version-etc-1.sh: Likewise.
33187
33188 2009-08-13  Simon Josefsson  <simon@josefsson.org>
33189
33190         * tests/test-version-etc.sh: Don't fail on different
33191         project/version.
33192
33193 2009-08-12  Bruno Haible  <bruno@clisp.org>
33194
33195         Tests for modules 'getopt-posix', 'getopt-gnu'.
33196         * modules/getopt-posix-tests: New file.
33197         * tests/test-getopt.c: New file.
33198         * tests/test-getopt.h: New file.
33199         * tests/test-getopt_long.h: New file.
33200
33201         New modules 'getopt-posix', 'getopt-gnu'.
33202         * modules/getopt-gnu: New file, renamed from modules/getopt.
33203         * modules/getopt-posix: New file.
33204         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
33205         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
33206         (gl_GETOPT): Remove macro.
33207         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
33208         Disable the test against BSD systems that declare optreset. Test
33209         against mingw bug. Test against lack of support of optional arguments
33210         on many platforms.
33211         * doc/glibc-headers/getopt.texi: Update module name and list of
33212         relevant platforms.
33213         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
33214         'getopt-gnu' and more portability problems.
33215         * NEWS: Mention the changes.
33216
33217 2009-08-12  Bruno Haible  <bruno@clisp.org>
33218
33219         Ensure that optarg etc. get declared by <unistd.h>.
33220         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
33221         AC_USE_SYSTEM_EXTENSIONS.
33222         * modules/getopt (Depends-on): Add 'extensions'.
33223
33224 2009-08-12  Bruno Haible  <bruno@clisp.org>
33225
33226         Avoid test link errors.
33227         * modules/pipe-filter-ii-tests (Makefile.am): Define
33228         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
33229         * modules/pipe-filter-gi-tests (Makefile.am): Define
33230         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
33231         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33232
33233 2009-08-12  Bruno Haible  <bruno@clisp.org>
33234
33235         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
33236         gl_GETOPT_SUBSTITUTE before.
33237         (gl_GETOPT): Use it.
33238         * m4/argp.m4 (gl_ARGP): Update.
33239         Reported by Sergey Poznyakoff.
33240
33241         * m4/getopt.m4: Reorder macros.
33242         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
33243         (gl_GETOPT_SUBSTITUTE): Remove macro.
33244
33245 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
33246
33247         Minor improvement in gitlog-to-changelog
33248
33249         * build-aux/gitlog-to-changelog: New option `--format' makes
33250         output format string configurable.
33251
33252 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
33253
33254         Optimize exclude: use hash tables for non-wildcard patterns.
33255
33256         * lib/exclude.c: Include hash.h and mbuiter.h
33257         (struct exclude_pattern, exclude_segment): New data types.
33258         (struct exclude): Rewrite.
33259         (fnmatch_pattern_has_wildcards): New function.
33260         (new_exclude_segment, free_exclude_segment): New functions.
33261         (excluded_file_pattern_p, excluded_file_name_p): New functions.
33262         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
33263         * lib/exclude.h (is_fnmatch_pattern): New prototype.
33264         * modules/exclude: Depend on hash and mbuiter.
33265
33266         * modules/exclude-tests: New file.
33267         * tests/test-exclude.c: New file.
33268         * tests/test-exclude1.sh: New file.
33269         * tests/test-exclude2.sh: New file.
33270         * tests/test-exclude3.sh: New file.
33271         * tests/test-exclude4.sh: New file.
33272         * tests/test-exclude5.sh: New file.
33273         * tests/test-exclude6.sh: New file.
33274         * tests/test-exclude7.sh: New file.
33275
33276 2009-08-12  Bruno Haible  <bruno@clisp.org>
33277
33278         Ensure that getopt() gets declared by <unistd.h>.
33279         * lib/unistd.in.h: Conditionally include getopt.h.
33280         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
33281         Set GNULIB_UNISTD_H_GETOPT.
33282         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33283         GNULIB_UNISTD_H_GETOPT.
33284         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
33285
33286 2009-08-12  Bruno Haible  <bruno@clisp.org>
33287
33288         Clarify logic.
33289         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
33290         gl_replace_getopt instead of GETOPT_H.
33291
33292 2009-08-12  Bruno Haible  <bruno@clisp.org>
33293
33294         * m4/getopt.m4: Add comments.
33295
33296 2009-08-12  Bruno Haible  <bruno@clisp.org>
33297
33298         Disable multithread support by default on Cygwin 1.5.x.
33299         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
33300         set gl_use_threads=no if not specified otherwise.
33301
33302 2009-08-11  Bruno Haible  <bruno@clisp.org>
33303
33304         Avoid compilation error on NetBSD 5.0.
33305         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
33306         * tests/test-stdio.c: Likewise.
33307         * tests/test-stdlib.c: Likewise.
33308         * tests/test-string.c: Likewise.
33309         * tests/test-unistd.c: Likewise.
33310         Reported by Greg Troxel <gdt@ir.bbn.com>
33311         at <https://savannah.gnu.org/support/?106973>.
33312
33313 2009-08-11  Bruno Haible  <bruno@clisp.org>
33314
33315         * modules/dup2-tests (Depends-on): Remove close.
33316
33317         Undo 2009-07-19 commit.
33318         * modules/acl-tests (Depends-on): Remove close.
33319         * modules/binary-io-tests (Depends-on): Likewise.
33320         * modules/closein-tests (Depends-on): Likewise.
33321         * modules/flock-tests (Depends-on): Likewise.
33322         * modules/fsync-tests (Depends-on): Likewise.
33323         * modules/lseek-tests (Depends-on): Likewise.
33324         * modules/pipe-tests (Depends-on): Likewise.
33325         * modules/posix_spawn-tests (Depends-on): Likewise.
33326         * modules/posix_spawnp-tests (Depends-on): Likewise.
33327         * modules/stat-time-tests (Depends-on): Likewise.
33328         * modules/yesno-tests (Depends-on): Likewise.
33329
33330 2009-08-10  Bruno Haible  <bruno@clisp.org>
33331
33332         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
33333
33334 2009-08-10  Bruno Haible  <bruno@clisp.org>
33335
33336         Fix a gcc warning.
33337         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
33338
33339 2009-08-10  Bruno Haible  <bruno@clisp.org>
33340
33341         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
33342         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
33343         not only the first time.
33344         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
33345         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
33346         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
33347         is 1, not only the the first time.
33348
33349 2009-08-10  Bruno Haible  <bruno@clisp.org>
33350
33351         Make it possible to use module 'gethostname' without module 'close'.
33352         * lib/unistd.in.h (close): Evoke a link error only if
33353         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
33354         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33355         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33356         * modules/unistd (Makefile.am): Substitute
33357         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33358         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
33359         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
33360         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
33361         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33362         * modules/sys_ioctl (Makefile.am): Substitute
33363         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33364         * modules/socket (configure.ac): On native Windows, set
33365         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
33366         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33367         Reported by Sam Steingold <sds@gnu.org>.
33368
33369 2009-08-10  Bruno Haible  <bruno@clisp.org>
33370
33371         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
33372         * modules/ioctl (configure.ac): Likewise.
33373
33374 2009-08-10  Bruno Haible  <bruno@clisp.org>
33375
33376         Avoid collision between gnulib wrapper and libintl wrapper.
33377         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
33378         already defined in intl/printf.c.
33379         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
33380         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
33381
33382 2009-08-09  Bruno Haible  <bruno@clisp.org>
33383
33384         Make <sys/select.h> really self-contained, also on Solaris 10.
33385         * lib/sys_select.in.h: Include <string.h>.
33386         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
33387         Solaris 10 problem.
33388         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
33389         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
33390         Reported by Jim Meyering.
33391
33392 2009-08-09  Bruno Haible  <bruno@clisp.org>
33393
33394         Avoid warnings from 'aclocal' that are due to a use of macro name
33395         AM_XGETTEXT_OPTION that is not defined in automake.
33396         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
33397         automake.
33398         * modules/error (configure.ac): Likewise.
33399         * modules/propername (configure.ac): Likewise.
33400         * modules/vasprintf (configure.ac): Likewise.
33401         * modules/verror (configure.ac): Likewise.
33402         * modules/xprintf (configure.ac): Likewise.
33403         * modules/xvasprintf (configure.ac): Likewise.
33404
33405 2009-08-08  Bruno Haible  <bruno@clisp.org>
33406
33407         Avoid compilation error in C++ mode.
33408         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
33409         Reported by Sam Steingold <sds@gnu.org>.
33410
33411 2009-08-08  Bruno Haible  <bruno@clisp.org>
33412
33413         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
33414         for the various Unix platforms.
33415         * doc/posix-headers/limits.texi: Update platforms list regarding
33416         HOST_NAME_MAX.
33417         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33418
33419 2009-08-07  Jim Meyering  <meyering@redhat.com>
33420
33421         selinux-at: fix typo in a comment
33422         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
33423         Spotted by Paolo Bonzini.
33424
33425         selinux-at: remove redundant m4 code, add documentation
33426         * modules/selinux-at (configure.ac): Remove redundant code.
33427         LIB_SELINUX is already set via the dependent module, selinux-h.
33428         (Include): Add quotes around selinux-at.h.
33429         * lib/selinux-at.h: Add documentation.
33430         Reported by Bruno Haible in
33431         http://marc.info/?l=gnulib-bug&m=124958988300749
33432
33433 2009-08-07  Bruno Haible  <bruno@clisp.org>
33434
33435         Avoid link error on MacOS X 10.3 and 10.4.
33436         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
33437         on non-ELF systems.
33438         * lib/argp-pv.c (argp_program_version): Likewise.
33439         Reported by Simon Josefsson.
33440
33441 2009-08-07  Simon Josefsson  <simon@josefsson.org>
33442
33443         * tests/test-version-etc.sh: Use $EXEEXT.
33444
33445 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
33446
33447         update-copyright: update documentation to point to maint.mk
33448         * build-aux/update-copyright: Here.
33449
33450 2009-08-06  Jim Meyering  <meyering@redhat.com>
33451
33452         maint.mk: support update-copyright-local
33453         * top/maint.mk (update-copyright-local): Define place-holder.
33454         (update-copyright): Depend on $(update-copyright-local).
33455
33456 2009-08-06  Jim Meyering  <meyering@redhat.com>
33457
33458         selinux-at: new module
33459         Initially written for coreutils, this module will soon be
33460         used by findutils, too.
33461         * MODULES.html.sh [Misc]: Add selinux-at.
33462         * lib/selinux-at.h: New file, from coreutils.
33463         * lib/selinux-at.c: Likewise.
33464         * modules/selinux-at: Likewise.
33465         (License): Change from LGPL to GPL, since it depends
33466         on the GPL'd openat module.
33467
33468         doc: update README
33469         * README: Remove references to cogito.
33470         Remove cvs-repo-updating instructions from 2007.
33471         Don't imply that CVS is better if you have limited disk space.
33472
33473 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33474
33475         update-copyright: support C-style comments
33476         * build-aux/update-copyright: Implement and document.
33477         * tests/test-update-copyright.sh: Test.
33478
33479 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33480
33481         update-copyright: support omitted "(C)"
33482         * build-aux/update-copyright: Implement and document.  Also,
33483         allow variable whitespace before "(C)".
33484         * tests/test-update-copyright.sh: Test.
33485
33486 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33487
33488         update-copyright: don't trip on non-FSF copyright statements
33489         * build-aux/update-copyright: Fix so that the first correctly
33490         formatted FSF copyright statement is recognized no matter what
33491         appears before it.  Update documentation.
33492         * tests/test-update-copyright.sh: Test that.
33493
33494 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33495
33496         update-copyright: clean up code a little
33497         * build-aux/update-copyright: Append "_re" to the name of any
33498         variable holding a regular expression.
33499         Replace "old" and "new" with "stmt" in variable names.
33500         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
33501         handled correctly.
33502         Format code more consistently.
33503
33504 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33505
33506         update-copyright-tests: improve portability
33507         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
33508         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
33509
33510 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
33511
33512         update-copyright: support @copyright{} and &copy;
33513         * build-aux/update-copyright: Implement and document.
33514         * tests/test-update-copyright.sh: Test.
33515
33516 2009-08-04  Jim Meyering  <meyering@redhat.com>
33517
33518         update-copyright-tests: correctly test EOL=\r\n handling
33519         * tests/test-update-copyright.sh: Put \r at the end of some lines
33520         for the dos-eol tests.  Based on a patch by Joel E. Denny.
33521
33522         maint.mk: make update-copyright exclusion list more configurable
33523         * top/maint.mk (update-copyright): Default to excluding COPYING,
33524         but allow an override, in case someone does want to update that file.
33525
33526         maint.mk: don't update copyright date in COPYING
33527         * top/maint.mk (update-copyright): Exclude COPYING.
33528
33529         maint.mk: add a copyright-updating rule
33530         * top/maint.mk (update-copyright): New rule.
33531         Derived from coreutils/Makefile.am.
33532
33533         update-copyright: rename some variables
33534         * build-aux/update-copyright: Rename a few variables for clarity.
33535         Tweak syntax.  List Joel E. Denny as coauthor.
33536
33537 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
33538
33539         update-copyright: fix bug for 2-digit last year and add tests
33540         * build-aux/update-copyright: Fix bug.
33541         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
33542         specified.
33543         * modules/update-copyright-tests: New
33544         * tests/test-update-copyright.sh: New.
33545
33546 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
33547
33548         update-copyright: handle leading tabs in line prefix
33549         * build-aux/update-copyright: Count leading tabs as 8 spaces
33550         when computing margin.  This helps with the formatting of
33551         ChangeLogs, for example.
33552         Fix documentation a little.
33553
33554 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
33555
33556         update-copyright: support EOL=\r\n
33557         * build-aux/update-copyright: Implement that.
33558
33559 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
33560
33561         update-copyright: automatically format copyright statements
33562         * build-aux/update-copyright: Implement that.
33563         Also, be a little more predictable and safer by always failing
33564         when the full copyright format is not perfectly recognized as an
33565         unbroken whole.  Discussed at
33566         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
33567         Rewrite documentation.
33568
33569 2009-08-03  Bruno Haible  <bruno@clisp.org>
33570
33571         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
33572
33573 2009-08-02  Bruno Haible  <bruno@clisp.org>
33574
33575         Tests for module 'uname'.
33576         * modules/uname-tests: New file.
33577         * tests/test-uname.c: New file.
33578
33579         New module 'uname'.
33580         * lib/uname.c: New file.
33581         * m4/uname.m4: New file.
33582         * modules/uname: New file.
33583         * doc/posix-functions/uname.texi: Mention the new module.
33584
33585 2009-08-02  Bruno Haible  <bruno@clisp.org>
33586
33587         Tests for module 'sys_utsname'.
33588         * modules/sys_utsname-tests: New file.
33589         * tests/test-sys_utsname.c: New file.
33590
33591         New module 'sys_utsname'.
33592         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
33593         * m4/sys_utsname_h.m4: New file.
33594         * modules/sys_utsname: New file.
33595         * doc/posix-headers/sys_utsname.texi: Mention the new module.
33596
33597 2009-08-02  Bruno Haible  <bruno@clisp.org>
33598
33599         Implicitly initialize the sockets library.
33600         * lib/gethostname.c: Include sockets.h.
33601         (rpl_gethostname): Invoke gl_sockets_startup.
33602         * lib/socket.c: Include sockets.h.
33603         (rpl_socket): Invoke gl_sockets_startup.
33604         * modules/gethostname (Depends-on): Add sockets.
33605         * modules/socket (Depends-on): Likewise.
33606         * tests/test-poll.c: Don't include sockets.h.
33607         (main): Don't invoke gl_sockets_startup.
33608         * tests/test-select.c: Don't include sockets.h.
33609         (main): Don't invoke gl_sockets_startup.
33610
33611 2009-08-02  Bruno Haible  <bruno@clisp.org>
33612
33613         Allow multiple calls to gl_sockets_startup.
33614         * lib/sockets.c (initialized_sockets_version): New variable.
33615         (gl_sockets_startup): Do nothing if already called for this or a higher
33616         version.
33617         (gl_sockets_cleanup): Reset initialized_sockets_version.
33618
33619 2009-08-03  Simon Josefsson  <simon@josefsson.org>
33620
33621         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
33622         different project/version.
33623
33624 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
33625             Bruno Haible  <bruno@clisp.org>
33626
33627         Tests for module 'pipe-filter-gi'.
33628         * modules/pipe-filter-gi-tests: New file.
33629         * tests/test-pipe-filter-gi1.sh: New file.
33630         * tests/test-pipe-filter-gi1.c: New file.
33631         * tests/test-pipe-filter-gi2.sh: New file.
33632         * tests/test-pipe-filter-gi2-main.c: New file.
33633         * tests/test-pipe-filter-gi2-child.c: New file.
33634
33635         New module 'pipe-filter-gi'.
33636         * lib/pipe-filter-gi.c: New file.
33637         * modules/pipe-filter-gi: New file.
33638
33639 2009-08-02  Bruno Haible  <bruno@clisp.org>
33640             Paolo Bonzini  <bonzini@gnu.org>
33641
33642         Tests for module 'pipe-filter-ii'.
33643         * modules/pipe-filter-ii-tests: New file.
33644         * tests/test-pipe-filter-ii1.sh: New file.
33645         * tests/test-pipe-filter-ii1.c: New file.
33646         * tests/test-pipe-filter-ii2.sh: New file.
33647         * tests/test-pipe-filter-ii2-main.c: New file.
33648         * tests/test-pipe-filter-ii2-child.c: New file.
33649
33650         New module 'pipe-filter-ii'.
33651         * lib/pipe-filter.h: New file.
33652         * lib/pipe-filter-ii.c: New file.
33653         * lib/pipe-filter-aux.h: New file.
33654         * modules/pipe-filter-ii: New file.
33655
33656 2009-08-02  Simon Josefsson  <simon@josefsson.org>
33657
33658         * lib/gc-libgcrypt.c: Change copyright to FSF.
33659         * lib/gc-gnulib.c: Likewise.
33660
33661 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
33662
33663         * lib/gethostname.c: Include limits.h.
33664
33665 2009-08-02  Simon Josefsson  <simon@josefsson.org>
33666             Bruno Haible  <bruno@clisp.org>
33667
33668         Ensure HOST_NAME_MAX as part of the gethostname module.
33669         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
33670         define also HOST_NAME_MAX.
33671         * tests/test-gethostname.c: Include <limits.h>.
33672         (main): Check also HOST_NAME_MAX.
33673         * doc/posix-headers/limits.texi: Document the mingw problem.
33674
33675 2009-08-02  Bruno Haible  <bruno@clisp.org>
33676
33677         * lib/gethostname.c (gethostname): Fix handling of large len argument.
33678         Add comments.
33679
33680 2009-03-31  Simon Josefsson  <simon@josefsson.org>
33681
33682         * lib/gethostname.c: Add Windows wrapper.
33683         * m4/gethostname.m4: Look for gethostname in -lws2_32.
33684         * modules/gethostname: Depend on sys_socket & errno, for also
33685         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
33686         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
33687
33688 2009-07-31  Jim Meyering  <meyering@redhat.com>
33689
33690         getloadavg: fix symbol name in comment
33691         * lib/getloadavg.c: Correct a typo I introduced when adding
33692         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
33693         Matt Kraai spotted the problem.
33694
33695 2009-07-29  Matt Kraai  <mkraai@beckman.com>
33696
33697         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
33698         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
33699         code also if ! defined N_NAME_POINTER.
33700         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
33701         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
33702         but the n_name member is a 12-byte array.
33703
33704 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
33705
33706         update-copyright: generalize comment handling
33707         * build-aux/update-copyright: Handle copyright statements
33708         within more comment styles.
33709         Document usage.
33710         Report any file with an external copyright holder or parse failure.
33711
33712 2009-07-29  Jim Meyering  <meyering@redhat.com>
33713
33714         mktime: correct setting of REPLACE_MKTIME
33715         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
33716
33717         update-copyright: new module
33718         * modules/update-copyright: New file.
33719         * build-aux/update-copyright: New file.
33720         * MODULES.html.sh (maint+release support): Add update-copyright.
33721
33722 2009-07-27  Bruno Haible  <bruno@clisp.org>
33723
33724         Fix compilation error when <ctime> is used and mktime is replaced.
33725         * lib/time.in.h (mktime): New declaration.
33726         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
33727         REPLACE_MKTIME instead of defining mktime in config.h.
33728         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
33729         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
33730         Reported by Ross McFarland <rwmcfa1@neces.com>.
33731
33732 2009-07-27  Bruno Haible  <bruno@clisp.org>
33733
33734         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
33735         Reported by Matt Kraai <mkraai@beckman.com>.
33736
33737 2009-07-25  Jim Meyering  <meyering@redhat.com>
33738
33739         maint.mk: avoid warnings about missing files
33740         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
33741         diagnostic when .prev-version does not exist.
33742         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
33743         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
33744         nonexistent cfg.mk.
33745         Suggestions from Simon Josefsson.
33746
33747 2009-07-25  Bruno Haible  <bruno@clisp.org>
33748
33749         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
33750         defined as macros. Needed on QNX 6.4.1.
33751         Reported by Matt Kraai <mkraai@beckman.com>.
33752
33753 2009-07-23  Jim Meyering  <meyering@redhat.com>
33754
33755         maint.mk: invoke "make dist" with a working value of XZ_OPT
33756         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
33757
33758 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
33759
33760         Make fseeko.c compile on QNX.
33761         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
33762
33763 2009-07-22  Peter Simons  <simons@cryp.to>
33764
33765         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
33766         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
33767         * lib/md4.h: Likewise.
33768         * lib/md5.h: Likewise.
33769         * lib/sha1.h: Likewise.
33770         * lib/sha256.h: Likewise.
33771         * lib/sha512.h: Likewise.
33772
33773         tests-sha1: don't assign literal string to 'char *' variable
33774         * tests/test-sha1.c (main): Declare locals with "const" to match
33775         attributes of the right hand side.
33776
33777 2009-07-21  Eric Blake  <ebb9@byu.net>
33778
33779         dup2: fix more mingw problems
33780         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
33781         fd to itself.
33782         * doc/posix-functions/dup2.texi (dup2): Document the bug.
33783         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
33784         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
33785         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
33786         care of mingw bugs.
33787
33788 2009-07-21  Jim Meyering  <meyering@redhat.com>
33789
33790         vc-list-files: avoid failure when /bin/sh is dash
33791         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
33792         On some Debian based systems, /bin/sh is a symlink to dash, and running
33793         this command would omit the "/" following each 'tests' prefix:
33794           dash -x build-aux/vc-list-files -C . tests
33795         That is because bash and dash work differently:
33796           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
33797           bash ok
33798           dash odd
33799
33800 2009-07-21  Eric Blake  <ebb9@byu.net>
33801
33802         dup2-tests: test previous patch
33803         * modules/dup2-tests: New file.
33804         * tests/test-dup2.c: Likewise.
33805         * tests/test-open.c (main): Avoid unspecified behavior.
33806         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
33807         test.
33808
33809         dup2: work around mingw and cygwin 1.5 bug
33810         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
33811         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33812         * modules/unistd (Makefile.am): Substitute it.
33813         * lib/unistd.in.h (dup2): Declare the replacement.
33814         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
33815         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
33816         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
33817         * modules/execute (Depends-on): Add dup2.
33818         * modules/fseterr (Depends-on): Likewise.
33819         * modules/pipe (Depends-on): Likewise.
33820         * modules/posix_spawn-internal (Depends-on): Likewise.
33821
33822 2009-07-21  Bruno Haible  <bruno@clisp.org>
33823
33824         * modules/.gitattributes: New file.
33825
33826 2009-07-20  Bruno Haible  <bruno@clisp.org>
33827
33828         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
33829         (main): Use it.
33830
33831 2009-07-20  Eric Blake  <ebb9@byu.net>
33832
33833         test-pipe: make a bit more robust.
33834         * tests/test-pipe.c (myerr): Allow error messages regardless of
33835         what we do to stderr.
33836         (test_pipe): Rearrange to avoid deadlock.
33837         (child_main): Try a larger read, to ensure we avoided deadlock.
33838         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
33839         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
33840         if misused.
33841
33842 2009-07-19  Jim Meyering  <meyering@redhat.com>
33843
33844         fts: avoid false-positive cycle-detection
33845         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
33846         for each new command line argument.
33847
33848 2009-07-19  Bruno Haible  <bruno@clisp.org>
33849
33850         Fix build error on mingw with the modules sys_select and unistd.
33851         * modules/acl-tests (Depends-on): Add close.
33852         * modules/binary-io-tests (Depends-on): Likewise.
33853         * modules/closein-tests (Depends-on): Likewise.
33854         * modules/flock-tests (Depends-on): Likewise.
33855         * modules/fsync-tests (Depends-on): Likewise.
33856         * modules/lseek-tests (Depends-on): Likewise.
33857         * modules/pipe-tests (Depends-on): Likewise.
33858         * modules/posix_spawn-tests (Depends-on): Likewise.
33859         * modules/posix_spawnp-tests (Depends-on): Likewise.
33860         * modules/stat-time-tests (Depends-on): Likewise.
33861         * modules/yesno-tests (Depends-on): Likewise.
33862
33863 2009-07-19  Bruno Haible  <bruno@clisp.org>
33864
33865         Unify conditionals.
33866         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
33867         macros, not at the compiler macros.
33868         * lib/pipe.c: Likewise.
33869         * lib/execute.c: Likewise.
33870         * lib/spawni.c: Likewise.
33871
33872 2009-07-19  Bruno Haible  <bruno@clisp.org>
33873
33874         Fix handling of closed stdin/stdout/stderr on mingw.
33875         * lib/w32spawn.h: Include unistd.h.
33876         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
33877         file descriptor with O_NOINHERIT flag.
33878         (fd_safer_noinherit): New function, based on fd-safer.c.
33879         (dup_safer_noinherit): New function, based on dup-safer.c.
33880         (undup_safer_noinherit): New function.
33881         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
33882         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
33883         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
33884         instead of fd_safer.
33885         * tests/test-pipe.c: Include <windows.h>.
33886         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
33887         result.
33888
33889         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
33890         from main.
33891         (test_pipe): Pass an extra argument for disambiguation.
33892         (main): Invoke parent_main or child_main.
33893
33894         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
33895         consistently.
33896
33897 2009-07-18  Eric Blake  <ebb9@byu.net>
33898
33899         test-pipe: fix mingw build
33900         * tests/test-pipe.c (main): Avoid fcntl on mingw.
33901
33902 2009-07-18  Bruno Haible  <bruno@clisp.org>
33903
33904         * modules/pipe-tests (Makefile.am): Fix typo.
33905
33906 2009-07-18  Eric Blake  <ebb9@byu.net>
33907
33908         error: fix mingw build
33909         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
33910         Reported by Bruno Haible.
33911
33912         error: avoid undefined use of stdout
33913         * lib/error.c (error, error_at_line): Check that fd 1 is open
33914         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
33915         is handling faults and the close_stdout module wants to report the
33916         detection of closed stdout as an error.
33917
33918 2009-07-17  Eric Blake  <ebb9@byu.net>
33919
33920         pipe: be robust in face of closed fds
33921         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
33922         should cause child to misbehave.
33923         * modules/pipe-tests: New module.
33924         * tests/test-pipe.c: New file.
33925         * tests/test-pipe.sh: New file.
33926         Reported by Akim Demaille.
33927
33928 2009-07-14  Bruno Haible  <bruno@clisp.org>
33929
33930         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
33931         Reported by anonymous kc.
33932
33933 2009-07-07  Jim Meyering  <meyering@redhat.com>
33934
33935         maint.mk: don't look for translatable strings in *.m4 or *.mk
33936         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
33937         when searching for translatable strings.
33938
33939 2009-07-05  Jim Meyering  <meyering@redhat.com>
33940
33941         remove superfluous parentheses in STREQ definition
33942         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
33943         * lib/getugroups.c (STREQ): Likewise.
33944         * lib/fnmatch.c (STREQ): Likewise.
33945         Spotted by Bruno Haible.
33946
33947 2009-07-04  Jim Meyering  <meyering@redhat.com>
33948
33949         argv-iter: new module
33950         * MODULES.html.sh: Add argv-iter.
33951         * lib/argv-iter.c, lib/argv-iter.h: New files.
33952         * modules/argv-iter: New file.
33953         * modules/argv-iter-tests: New file.
33954         * tests/test-argv-iter.c: Test it.
33955
33956 2009-07-04  Bruno Haible  <bruno@clisp.org>
33957
33958         Fix assertion.
33959         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
33960         contains more exact copies of a given entry than file2, leave the extra
33961         copies unpaired rather than aborting.
33962         Reported by Eric Blake.
33963
33964 2009-07-02  Bruno Haible  <bruno@clisp.org>
33965
33966         Speedup git-merge-changelog for git cherry-pick.
33967         * lib/git-merge-changelog.c (struct entries_mapping): New type.
33968         (entries_mapping_get): New function, extracted from compute_mapping.
33969         (entries_mapping_reverse_get): New function.
33970         (compute_mapping): Add a 'full' argument. Return the result in a
33971         'struct entries_mapping'.
33972         (main): Update. Access the mappings through entries_mapping_get.
33973         Reported by Eric Blake.
33974
33975 2009-07-02  Bruno Haible  <bruno@clisp.org>
33976
33977         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
33978         best_i.
33979
33980 2009-07-02  Bruno Haible  <bruno@clisp.org>
33981
33982         Speed up approximate search for matching ChangeLog entries.
33983         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
33984         argument. Call fstrcmp_bounded instead of fstrcmp.
33985         (compute_mapping, try_split_merged_entry, main): Update callers.
33986
33987 2009-07-02  Bruno Haible  <bruno@clisp.org>
33988
33989         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
33990
33991 2009-06-30  Bruno Haible  <bruno@clisp.org>
33992
33993         Reduce the number of uc_is_cased calls.
33994         * lib/unicase.h (casing_suffix_context_t): Add
33995         'first_char_except_ignorable' field.
33996         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
33997         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
33998         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
33999         Update initializer.
34000         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
34001         case-ignorable characters.
34002         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
34003         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
34004         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
34005         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
34006         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
34007
34008 2009-06-30  Bruno Haible  <bruno@clisp.org>
34009
34010         Tests for module 'unicase/ignorable'.
34011         * modules/unicase/ignorable-tests: New file.
34012         * tests/unicase/test-ignorable.c: New file, generated by
34013         gen-uni-tables.
34014
34015         Tests for module 'unicase/cased'.
34016         * modules/unicase/cased-tests: New file.
34017         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
34018         * tests/unicase/test-predicate-part1.h: New file, derived from
34019         tests/unictype/test-predicate-part1.h.
34020         * tests/unicase/test-predicate-part2.h: New file, same as
34021         tests/unictype/test-predicate-part2.h.
34022
34023         Fix evaluation of "Before C" condition of FINAL_SIGMA.
34024         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
34025         (output_casing_properties): New function.
34026         (main): Call it.
34027         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
34028         * lib/unicase/cased.c: Include unictype/bitmap.h.
34029         (uc_is_cased): Define through a bitmap lookup.
34030         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
34031         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
34032         (uc_is_case_ignorable): Define through a bitmap lookup.
34033         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
34034         lib/unictype/bitmap.h.
34035         (Depends-on): Add inline. Clean up.
34036         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
34037         lib/unictype/bitmap.h.
34038         (Depends-on): Add inline. Clean up.
34039         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
34040         recognition.
34041         * tests/unicase/test-u16-tolower.c (main): Likewise.
34042         * tests/unicase/test-u32-tolower.c (main): Likewise.
34043
34044 2009-06-30  Bruno Haible  <bruno@clisp.org>
34045
34046         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
34047         * lib/unicase/u16-casemap.c: Likewise.
34048         * lib/unicase/u32-casemap.c: Likewise.
34049
34050 2009-06-29  Bruno Haible  <bruno@clisp.org>
34051
34052         Define u32_casefold as a wrapper around u32_ct_casefold.
34053         * lib/unicase/u32-casefold.c: Update.
34054         * modules/unicase/u32-casefold (Depends-on): Add
34055         unicase/u32-ct-casefold, unicase/empty-prefix-context,
34056         unicase/empty-suffix-context. Clean up.
34057
34058         Define u16_casefold as a wrapper around u16_ct_casefold.
34059         * lib/unicase/u16-casefold.c: Update.
34060         * modules/unicase/u16-casefold (Depends-on): Add
34061         unicase/u16-ct-casefold, unicase/empty-prefix-context,
34062         unicase/empty-suffix-context. Clean up.
34063
34064         Define u8_casefold as a wrapper around u8_ct_casefold.
34065         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
34066         * lib/unicase/u8-casefold.c: Update.
34067         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
34068         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
34069
34070         Define u32_totitle as a wrapper around u32_ct_totitle.
34071         * lib/unicase/u32-totitle.c: Update.
34072         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
34073         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
34074
34075         Define u16_totitle as a wrapper around u16_ct_totitle.
34076         * lib/unicase/u16-totitle.c: Update.
34077         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
34078         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
34079
34080         Define u8_totitle as a wrapper around u8_ct_totitle.
34081         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
34082         functions.
34083         (FUNC): Delegate to U_CT_TOTITLE.
34084         * lib/unicase/u8-totitle.c: Update.
34085         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
34086         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
34087
34088         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
34089         invocation.
34090         * modules/unicase/u32-tolower (Depends-on): Add
34091         unicase/empty-prefix-context, unicase/empty-suffix-context.
34092
34093         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
34094         invocation.
34095         * modules/unicase/u16-tolower (Depends-on): Add
34096         unicase/empty-prefix-context, unicase/empty-suffix-context.
34097
34098         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
34099         * modules/unicase/u8-tolower (Depends-on): Add
34100         unicase/empty-prefix-context, unicase/empty-suffix-context.
34101
34102         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
34103         invocation.
34104         * modules/unicase/u32-toupper (Depends-on): Add
34105         unicase/empty-prefix-context, unicase/empty-suffix-context.
34106
34107         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
34108         invocation.
34109         * modules/unicase/u16-toupper (Depends-on): Add
34110         unicase/empty-prefix-context, unicase/empty-suffix-context.
34111
34112         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
34113         * modules/unicase/u8-toupper (Depends-on): Add
34114         unicase/empty-prefix-context, unicase/empty-suffix-context.
34115
34116         New module 'unicase/u32-ct-casefold'.
34117         * lib/unicase/u32-ct-casefold.c: New file.
34118         * modules/unicase/u32-ct-casefold: New file.
34119
34120         New module 'unicase/u16-ct-casefold'.
34121         * lib/unicase/u16-ct-casefold.c: New file.
34122         * modules/unicase/u16-ct-casefold: New file.
34123
34124         New module 'unicase/u8-ct-casefold'.
34125         * lib/unicase/u8-ct-casefold.c: New file.
34126         * lib/unicase/u-ct-casefold.h: New file, derived from
34127         lib/unicase/u-casefold.h.
34128         * modules/unicase/u8-ct-casefold: New file.
34129
34130         New module 'unicase/u32-ct-totitle'.
34131         * lib/unicase/u32-ct-totitle.c: New file.
34132         * modules/unicase/u32-ct-totitle: New file.
34133
34134         New module 'unicase/u16-ct-totitle'.
34135         * lib/unicase/u16-ct-totitle.c: New file.
34136         * modules/unicase/u16-ct-totitle: New file.
34137
34138         New module 'unicase/u8-ct-totitle'.
34139         * lib/unicase/u8-ct-totitle.c: New file.
34140         * lib/unicase/u-ct-totitle.h: New file, derived from
34141         lib/unicase/u-totitle.h.
34142         * modules/unicase/u8-ct-totitle: New file.
34143
34144         New module 'unicase/u32-ct-tolower'.
34145         * lib/unicase/u32-ct-tolower.c: New file.
34146         * modules/unicase/u32-ct-tolower: New file.
34147
34148         New module 'unicase/u16-ct-tolower'.
34149         * lib/unicase/u16-ct-tolower.c: New file.
34150         * modules/unicase/u16-ct-tolower: New file.
34151
34152         New module 'unicase/u8-ct-tolower'.
34153         * lib/unicase/u8-ct-tolower.c: New file.
34154         * modules/unicase/u8-ct-tolower: New file.
34155
34156         New module 'unicase/u32-ct-toupper'.
34157         * lib/unicase/u32-ct-toupper.c: New file.
34158         * modules/unicase/u32-ct-toupper: New file.
34159
34160         New module 'unicase/u16-ct-toupper'.
34161         * lib/unicase/u16-ct-toupper.c: New file.
34162         * modules/unicase/u16-ct-toupper: New file.
34163
34164         New module 'unicase/u8-ct-toupper'.
34165         * lib/unicase/u8-ct-toupper.c: New file.
34166         * modules/unicase/u8-ct-toupper: New file.
34167
34168         Add context arguments to u*_casemap functions.
34169         * lib/unicase/unicasemap.h: Include unicase.h.
34170         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
34171         suffix_context arguments.
34172         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
34173         functions.
34174         (FUNC): Add prefix_context and suffix_context arguments. Use
34175         uc_is_cased and uc_is_case_ignorable.
34176         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
34177         * lib/unicase/u16-casemap.c: Likewise.
34178         * lib/unicase/u32-casemap.c: Likewise.
34179         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
34180         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
34181         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
34182         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
34183         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
34184         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
34185
34186         New module 'unicase/u32-suffix-context'.
34187         * lib/unicase/u32-suffix-context.c: New file.
34188         * modules/unicase/u32-suffix-context: New file.
34189
34190         New module 'unicase/u16-suffix-context'.
34191         * lib/unicase/u16-suffix-context.c: New file.
34192         * modules/unicase/u16-suffix-context: New file.
34193
34194         New module 'unicase/u8-suffix-context'.
34195         * lib/unicase/u8-suffix-context.c: New file.
34196         * lib/unicase/u-suffix-context.h: New file.
34197         * modules/unicase/u8-suffix-context: New file.
34198
34199         New module 'unicase/empty-suffix-context'.
34200         * lib/unicase/empty-suffix-context.c: New file.
34201         * modules/unicase/empty-suffix-context: New file.
34202
34203         New module 'unicase/u32-prefix-context'.
34204         * lib/unicase/u32-prefix-context.c: New file.
34205         * modules/unicase/u32-prefix-context: New file.
34206
34207         New module 'unicase/u16-prefix-context'.
34208         * lib/unicase/u16-prefix-context.c: New file.
34209         * modules/unicase/u16-prefix-context: New file.
34210
34211         New module 'unicase/u8-prefix-context'.
34212         * lib/unicase/u8-prefix-context.c: New file.
34213         * lib/unicase/u-prefix-context.h: New file.
34214         * lib/unicase/context.h: New file.
34215         * modules/unicase/u8-prefix-context: New file.
34216
34217         New module 'unicase/empty-prefix-context'.
34218         * lib/unicase/empty-prefix-context.c: New file.
34219         * modules/unicase/empty-prefix-context: New file.
34220
34221         New module 'unicase/ignorable'.
34222         * lib/unicase/ignorable.c: New file.
34223         * modules/unicase/ignorable: New file.
34224
34225         New module 'unicase/cased'.
34226         * lib/unicase/caseprop.h: New file.
34227         * lib/unicase/cased.c: New file.
34228         * modules/unicase/cased: New file.
34229
34230         New functions for case mapping of substrings.
34231         * lib/unicase.h (casing_prefix_context_t): New type.
34232         (unicase_empty_prefix_context): New variable.
34233         (u8_casing_prefix_context, u16_casing_prefix_context,
34234         u32_casing_prefix_context, u8_casing_prefixes_context,
34235         u16_casing_prefixes_context, u32_casing_prefixes_context): New
34236         declarations.
34237         (casing_suffix_context_t): New type.
34238         (unicase_empty_suffix_context): New variable.
34239         (u8_casing_suffix_context, u16_casing_suffix_context,
34240         u32_casing_suffix_context, u8_casing_suffixes_context,
34241         u16_casing_suffixes_context, u32_casing_suffixes_context,
34242         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
34243         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
34244         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
34245         declarations.
34246
34247 2009-06-28  Jim Meyering  <meyering@redhat.com>
34248
34249         boostrap: indent only with spaces
34250         * build-aux/bootstrap: Indent only with spaces, never TABs.
34251
34252         bootstrap: split long lines
34253         * build-aux/bootstrap: Keep line length < 80.
34254
34255         bootstrap: sync from coreutils
34256         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
34257         just as autoreconf does.  Verify a list of prerequisite
34258         package-name,version-number pairs if defined in bootstrap.conf.
34259         Refer to README-prereq, if prerequisites are not satisfied.
34260
34261 2009-06-27  Eric Blake  <ebb9@byu.net>
34262
34263         tests: add test for bogus NULL definition
34264         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
34265         * tests/test-stdlib.c: Likewise.
34266         * tests/test-string.c: Likewise.
34267         * tests/test-locale.c: Likewise.
34268         * tests/test-unistd.c: Likewise.
34269         * modules/stdio-tests (Depends-on): Add verify.
34270         * modules/stdlib-tests (Depends-on): Likewise.
34271         * modules/string-tests (Depends-on): Likewise.
34272         * modules/locale-tests (Depends-on): Likewise.
34273         * modules/unistd-tests (Depends-on): Likewise.
34274
34275 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
34276
34277         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
34278         self-explaining comment.
34279         * m4/selinux-selinux-h: Update serial.
34280         (gl_LIBSELINUX): New macro, adding a warning for missing development
34281         packages to code extracted from...
34282         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
34283         Add warning for missing development packages here, too.
34284
34285 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
34286
34287         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
34288
34289 2009-06-25  Eric Blake  <ebb9@byu.net>
34290
34291         version-etc: fix regression
34292         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
34293         gcc.
34294         (version_etc): Use it, to catch bugs with trailing NULL.
34295         * lib/version-etc.c (version_etc_arn): Delete unused argument.
34296         (version_etc_va): Fix logic bug.
34297         * modules/version-etc-tests: Add test.
34298         * tests/test-version-etc.c: New file.
34299         * tests/test-version-etc.sh: Likewise.
34300
34301 2009-06-25  Sam Steingold  <sds@gnu.org>
34302
34303         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
34304         mbtowc declaration.
34305
34306 2009-06-25  Eric Blake  <ebb9@byu.net>
34307
34308         fpurge: migrate into <stdio.h>
34309         * lib/fpurge.h: Delete...
34310         * lib/stdio.in.h (fpurge): ...and declare here, instead.
34311         * lib/fpurge.c (fpurge): Change declaring header.
34312         * modules/fpurge (Files): Drop deleted file.
34313         (Depends-on): Add stdio.
34314         (configure.ac): Set witness.
34315         * modules/stdio (Makefile.am): Support fpurge macros.
34316         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
34317         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
34318         * lib/fflush.c: Update client.
34319         * tests/test-fpurge.c: Likewise.
34320         * NEWS: Mention the change.
34321
34322 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
34323
34324         * lib/argp-version-etc.c (program_authors): Add const
34325         qualifier.
34326         * lib/version-etc.c: Fix typos in the comments.
34327         * modules/argp-version-etc: Depends on version-etc.
34328
34329 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
34330
34331         argp-version-etc: new module.
34332
34333         * lib/argp-version-etc.c: New file.
34334         * lib/argp-version-etc.h: New file.
34335         * modules/argp-version-etc: New file.
34336         * modules/argp-version-etc-tests: New file.
34337         * tests/test-argp-version-etc.c: New test.
34338         * tests/test-argp-version-etc-1.sh: New test.
34339
34340 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
34341
34342         Provide additional interfaces and documentation for version-etc
34343         module.
34344
34345         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
34346         interfaces.
34347         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
34348         prototypes.
34349
34350 2009-06-24  Bruno Haible  <bruno@clisp.org>
34351
34352         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
34353         HAVE_LIB${NAME} macro.
34354         Reported by Sam Steingold <sds@gnu.org>.
34355
34356 2009-06-23  Simon Josefsson  <simon@josefsson.org>
34357
34358         * modules/hash-tests (test_hash_LDADD): Link to libintl when
34359         needed.
34360
34361 2009-06-21  Bruno Haible  <bruno@clisp.org>
34362
34363         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
34364         work.
34365         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
34366         together with LIB${NAME}, LTLIB${NAME}.
34367         Reported by Sam Steingold <sds@gnu.org>.
34368
34369 2009-06-20  Jim Meyering  <meyering@redhat.com>
34370
34371         tests: make sc_require_test_exit_idiom more generic
34372         * top/maint.mk (Exit_witness_file): New overridable variable.
34373         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
34374         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
34375
34376 2009-06-19  Jim Meyering  <meyering@redhat.com>
34377
34378         hash: reverse order of src/dst parameters in an internal interface
34379         * lib/hash.c (transfer_entries): Reverse order of parameters to
34380         put DST before SRC.  Adjust callers.
34381
34382         tests: test-hash: avoid wholesale duplication
34383         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
34384         Instead, use a loop and add a single conditional.
34385
34386         tests: test-hash: allow seed selection via a command line argument
34387         * tests/test-hash.c (get_seed): New function.
34388         (main): Use it.
34389
34390 2009-06-19  Eric Blake  <ebb9@byu.net>
34391
34392         hash: avoid memory leak on allocation failure
34393         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
34394         failure.  Factor repeated algorithm...
34395         (transfer_entries): ...into new helper routine.
34396         (hash_delete): React to hash_rehash return value.
34397
34398         hash: reduce memory pressure in hash_rehash no-op case
34399         * lib/hash.c (next_prime): Avoid overflow.
34400         (hash_initialize): Factor bucket size computation...
34401         (compute_bucket_size): ...into new helper function.
34402         (hash_rehash): Use new function and open coding to reduce memory
34403         pressure, and avoid a memory leak in USE_OBSTACK code.
34404         Reported by Jim Meyering.
34405
34406 2009-06-18  Eric Blake  <ebb9@byu.net>
34407
34408         hash: make rotation more obvious
34409         * modules/hash (Depends-on): Add bitrotate and stdint.
34410         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
34411         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
34412         (SIZE_MAX): Rely on headers for definition.
34413         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
34414         (raw_hasher): Use rotr_sz.
34415         Suggested by Jim Meyering.
34416
34417         hash: fix memory leak in last patch
34418         * lib/hash.c (hash_rehash): Avoid memory leak.
34419
34420         hash: avoid no-op rehashing
34421         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
34422
34423         hash: provide default callback functions
34424         * lib/hash.c (raw_hasher, raw_comparator): New functions.
34425         (hash_initialize): Use them as defaults.
34426         * tests/test-hash.c (main): Test this.
34427
34428         hash: minor optimization
34429         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
34430         when possible.
34431         (hash_initialize): Document this promise.
34432         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
34433         * tests/test-hash.c (hash_compare_strings): Test this.
34434
34435 2009-06-18  Bruno Haible  <bruno@clisp.org>
34436
34437         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
34438         going to be replaced anyway.
34439
34440 2009-06-18  Bruno Haible  <bruno@clisp.org>
34441
34442         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
34443         in one place.
34444         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
34445         be replaced anyway.
34446
34447 2009-06-18  Eric Blake  <ebb9@byu.net>
34448
34449         hash: check for resize before insertion
34450         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
34451         threshold before insertion, so that a pathological hash_rehash
34452         that fills every bucket can still trigger another rehash.
34453
34454 2009-06-18  Jim Meyering  <meyering@redhat.com>
34455
34456         hash-tests: add a loop around the small tests
34457         * tests/test-hash.c (main): Repeat small tests with selected
34458         small initial table sizes.
34459
34460 2009-06-17  Eric Blake  <ebb9@byu.net>
34461
34462         hash: minor cleanups
34463         * lib/hash.h (hash_entry): Make opaque, by moving...
34464         * lib/hash.c (hash_entry): ...here.
34465         (hash_insert): Clarify restrictions on what can be inserted.
34466         (hash_get_next): Clarify when it is safe to remove an element
34467         during traversal.
34468         (check_tuning): Skip verification when tuning is known safe.
34469         (hash_initialize): Clarify restrictions on tuning.
34470
34471 2009-06-17  Jim Meyering  <jim@meyering.net>
34472         and Eric Blake  <ebb9@byu.net>
34473
34474         hash-tests: new module
34475         * modules/hash-tests: New file.
34476         * tests/test-hash.c: New file.
34477
34478 2009-06-17  Eric Blake  <ebb9@byu.net>
34479
34480         strstr-simple: document new module
34481         * MODULES.html.sh: Document new module.
34482
34483         strstr, strcasestr: replace on platforms with broken memchr
34484         * modules/strstr: Split into...
34485         * modules/strstr-simple: ...new module that does not care about
34486         performance, but does care about glibc bug.
34487         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
34488         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
34489         if platform memchr is broken, per Debian bug 521737.
34490         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
34491         memchr.
34492         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
34493         * doc/posix-functions/strstr.texi (strstr): Document the fix.
34494         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
34495         * modules/mountlist (Depends-on): Add strstr-simple.
34496         * modules/gen-uni-tables (Depends-on): Likewise.
34497         * modules/argz (Depends-on): Add strstr.
34498
34499 2009-06-17  Bruno Haible  <bruno@clisp.org>
34500
34501         * modules/posix_spawn-internal (Depends-on): Add errno.
34502
34503 2009-06-17  Bruno Haible  <bruno@clisp.org>
34504
34505         Define missing ESTALE on Interix 3.5.
34506         * lib/errno.in.h (ESTALE): Assign a value if missing.
34507         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
34508         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
34509         missing.
34510         * doc/posix-headers/errno.texi: Mention the Interix bug.
34511         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
34512
34513 2009-06-15  Eric Blake  <ebb9@byu.net>
34514
34515         memchr, memchr2: add valgrind exception
34516         * lib/memchr.valgrind: New file.
34517         * lib/memchr2.valgrind: New file.
34518         * modules/memchr (Files): Distribute valgrind file.
34519         * modules/memchr2 (Files): Likewise.
34520
34521         docs: memchr is no longer obsolete
34522         * MODULES.html.sh: Move memchr from obsolete to string.h section.
34523         * lib/string.in.h (memchr): Simplify logic.
34524
34525 2009-06-14  Jim Meyering  <meyering@redhat.com>
34526
34527         link-follow: fix the "checking..." message to not mention trailing slash
34528         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
34529         never considered trailing slashes.
34530
34531 2009-06-14  Bruno Haible  <bruno@clisp.org>
34532
34533         * m4/memchr.m4: Mention also the bug on IA-64.
34534         * doc/posix-functions/memchr.texi: Likewise.
34535
34536 2009-06-12  Eric Blake  <ebb9@byu.net>
34537
34538         memchr: detect broken x86_64 and alpha implementations
34539         * modules/memchr-tests (Depends-on): Move mmap detection...
34540         * modules/memchr (Depends-on): ...here.
34541         (configure.ac): Set indicator.
34542         * lib/string.in.h (memchr): Declare replacement.
34543         * modules/string (Makefile.am): Trigger replacement.
34544         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
34545         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
34546         bugs.
34547         * doc/posix-functions/memchr.texi (memchr): Document the bug.
34548         * modules/getpagesize (License): Relax license.
34549
34550 2009-06-11  Bruno Haible  <bruno@clisp.org>
34551
34552         * lib/idpriv.h: Add more references.
34553
34554 2009-06-08  Bruno Haible  <bruno@clisp.org>
34555
34556         Tests for module 'idpriv-droptemp'.
34557         * modules/idpriv-droptemp-tests: New file.
34558         * tests/test-idpriv-droptemp.sh: New file.
34559         * tests/test-idpriv-droptemp.su.sh: New file.
34560         * tests/test-idpriv-droptemp.c: New file.
34561
34562         New module 'idpriv-droptemp'.
34563         * lib/idpriv-droptemp.c: New file.
34564         * modules/idpriv-droptemp: New file.
34565
34566 2009-06-08  Bruno Haible  <bruno@clisp.org>
34567
34568         Tests for module 'idpriv-drop'.
34569         * modules/idpriv-drop-tests: New file.
34570         * tests/test-idpriv-drop.sh: New file.
34571         * tests/test-idpriv-drop.su.sh: New file.
34572         * tests/test-idpriv-drop.c: New file.
34573
34574         New module 'idpriv-drop'.
34575         * lib/idpriv.h: New file.
34576         * lib-idpriv-drop.c: New file.
34577         * m4/idpriv.m4: New file.
34578         * modules/idpriv-drop: New file.
34579
34580 2009-06-08  Bruno Haible  <bruno@clisp.org>
34581
34582         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
34583         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
34584         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
34585         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
34586         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
34587         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
34588         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
34589
34590 2009-06-08  Eric Blake  <ebb9@byu.net>
34591
34592         test-strstr: use memory fence, when possible
34593         * tests/test-strstr.c (main): Use memory fence, in order to be
34594         more likely to trigger Debian bug 521737.
34595         * modules/strstr-tests (Files): Pull in additional files.
34596
34597         memchr: no longer obsolete, for wider field testing
34598         * modules/memchr (Status, Notice): Delete, this module is no
34599         longer obsolete.
34600         * modules/vasnprintf (Depends-on): Add memchr.
34601
34602 2009-06-07  Jim Meyering  <meyering@redhat.com>
34603
34604         hash: declare some functions with the warn_unused_result attribute
34605         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
34606
34607 2009-06-07  Bruno Haible  <bruno@clisp.org>
34608
34609         * tests/test-alignof.c: Don't test int64_t if it does not exist.
34610         Reported by Eric Blake.
34611
34612 2009-06-06  Eric Blake  <ebb9@byu.net>
34613
34614         test-alignof: fix typo with long double
34615         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
34616         compiler error.
34617
34618 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
34619
34620         Escape non-texinfo { and }s.
34621         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
34622         markup error.
34623
34624 2009-06-04  Jim Meyering  <meyering@redhat.com>
34625
34626         gitlog-to-changelog: don't infloop on an empty commit log
34627         * build-aux/gitlog-to-changelog: Warn about an empty log message.
34628         Reported by Boris Petersen <transacid@centerim.org>.
34629
34630 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
34631
34632         version-etc: extend for packagers
34633         Add three new configure options, intended for packagers:
34634           --with-packager="packager name"
34635           --with-packager-version="packager-specific version"
34636           --with-packager-bug-reports="packager bug reporting"
34637         An example with coreutils:
34638           $ ./configure \
34639             --with-packager=Gentoo \
34640             --with-packager-bug-report=http://bugs.gentoo.org/ \
34641             --with-packager-version="patchset 1.6"
34642           $ ./src/ls --version | head -n2
34643           ls (GNU coreutils) 7.1-dirty
34644           Packaged by Gentoo (patchset 1.6)
34645         Note that the bug reporting info via --help doesn't show up because
34646         coreutils uses its own custom emit_bug_reporting_address() implementation
34647         in src/system.h.  If it didn't, it'd look like:
34648           $ ./src/ls --help | tail -n4
34649           Report bugs to <bug-coreutils@gnu.org>.
34650           Report Gentoo bugs to <http://bugs.gentoo.org/>.
34651           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
34652           General help using GNU software: <http://www.gnu.org/gethelp/>.
34653         * lib/version-etc.c: Print new information, if provided.
34654         * m4/version-etc.m4: New file.
34655         * modules/version-etc (Files): Add m4/version-etc.m4.
34656         (configure.ac): Add gl_VERSION_ETC.
34657
34658 2009-05-31  Bruno Haible  <bruno@clisp.org>
34659
34660         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
34661         and 'int64_t'.
34662         * modules/alignof-tests (Dependencies): Add stdint.
34663         Reported by Eric Blake.
34664
34665 2009-05-31  Bruno Haible  <bruno@clisp.org>
34666
34667         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
34668         restriction due to compiler bugs.
34669         Reported by Eric Blake.
34670
34671 2009-05-31  Simon Josefsson  <simon@josefsson.org>
34672             Bruno Haible  <bruno@clisp.org>
34673
34674         Fix test-alignof failure.
34675         * lib/alignof.h (alignof_slot): New macro.
34676         (alignof_type): New macro, with the same semantics as the previous
34677         'alignof'.
34678         (alignof): Alias to alignof_slot.
34679         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
34680         check that the results are usable as constant expressions.
34681
34682 2009-05-31  Bruno Haible  <bruno@clisp.org>
34683
34684         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
34685         * tests/test-memchr.c (main): Check that memchr does not read past the
34686         first occurrence of the byte.
34687         * tests/test-strstr.c (main): Update comment.
34688         Suggested by Eric Blake.
34689
34690 2009-05-30  Bruno Haible  <bruno@clisp.org>
34691
34692         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
34693         detail how to use dumpbin.
34694         Reported by David Byron <dbyron@dbyron.com>.
34695
34696 2009-06-02  Simon Josefsson  <simon@josefsson.org>
34697
34698         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
34699
34700 2009-06-02  Simon Josefsson  <simon@josefsson.org>
34701
34702         * m4/manywarnings.m4: Add GCC 4.4 warnings.
34703
34704 2009-05-28  Bruno Haible  <bruno@clisp.org>
34705
34706         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
34707         build-aux/ files.
34708
34709 2009-05-28  Simon Josefsson  <simon@josefsson.org>
34710
34711         * gnulib-tool (func_import): Transform license on build-aux/ files too.
34712
34713 2009-05-27  Simon Josefsson  <simon@josefsson.org>
34714
34715         * gnulib-tool (sed_transform_main_lib_file)
34716         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
34717         regexps.
34718
34719 2009-05-26  Simon Josefsson  <simon@josefsson.org>
34720
34721         * tests/test-strstr.c: Add another self-test.
34722         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
34723         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
34724
34725 2009-05-23  Bruno Haible  <bruno@clisp.org>
34726
34727         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
34728         change.
34729
34730 2009-05-21  Bruno Haible  <bruno@clisp.org>
34731
34732         Simplify use of mode_t varargs.
34733         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
34734         uses 'mode_t' or 'int'.
34735         * lib/openat.c (openat): Likewise.
34736         * lib/open-safer.c (open_safer): Likewise.
34737         * m4/mode_t.m4: New file.
34738         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
34739         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
34740         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
34741         * modules/open (Files): Add m4/mode_t.m4.
34742         * modules/openat (Files): Likewise.
34743         * modules/fcntl-safer (Files): Likewise.
34744         Suggested by Eric Blake.
34745
34746 2009-05-21  Pádraig Brady  <P@draigbrady.com>
34747
34748         * doc/glibc-functions/fallocate.texi: New file.
34749         * doc/gnulib.texi: Include it.
34750
34751 2009-05-21  Eric Blake  <ebb9@byu.net>
34752             Bruno Haible  <bruno@clisp.org>
34753
34754         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
34755         invocations.
34756         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
34757
34758 2009-05-21  Eric Blake  <ebb9@byu.net>
34759             Bruno Haible  <bruno@clisp.org>
34760
34761         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
34762         include_next. Fix of 2008-11-20 commit.
34763         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
34764         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
34765         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
34766         NEXT_MATH_H.
34767         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
34768         instead of NEXT_MATH_H.
34769
34770 2009-05-21  Bruno Haible  <bruno@clisp.org>
34771
34772         Avoid redefinition warnings for SIZE_MAX.
34773         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
34774         Reported by Simon Josefsson.
34775
34776 2009-05-21  Bruno Haible  <bruno@clisp.org>
34777
34778         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
34779         AC_CACHE_VAL.
34780
34781 2009-05-20  Bruno Haible  <bruno@clisp.org>
34782
34783         Make zeroptr.h work on mingw.
34784         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
34785         mprotect.
34786         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
34787         * modules/memchr2-tests (configure.ac): Likewise.
34788         * modules/memcmp-tests (configure.ac): Likewise.
34789         * modules/memmem-tests (configure.ac): Likewise.
34790         * modules/memrchr-tests (configure.ac): Likewise.
34791         Reported by Simon Josefsson.
34792
34793 2009-05-20  Simon Josefsson  <simon@josefsson.org>
34794
34795         * tests/test-glob.c: Include string.h for strcmp prototype.
34796
34797 2009-05-20  Simon Josefsson  <simon@josefsson.org>
34798
34799         * modules/getdelim (Depends-on): Add explicit stdint, although it
34800         was implicitly already pulled in via realloc-posix.
34801         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
34802
34803 2009-05-20  Simon Josefsson  <simon@josefsson.org>
34804
34805         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
34806         G. Christensen" <tgc@jupiterrise.com>.
34807         * m4/sys_socket_h.m4: Check for sa_family_t.
34808         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
34809         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
34810         * tests/test-sys_socket.c: Check that sa_family_t works.
34811
34812 2009-05-18  Eric Blake  <ebb9@byu.net>
34813
34814         maint.mk: allow gnulib_dir in VPATH build
34815         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
34816
34817 2009-05-15  Jim Meyering  <meyering@redhat.com>
34818
34819         maint.mk: Give gnulib_dir a default definition.
34820         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
34821         Thus, most packages no longer need to specify this variable in cfg.mk
34822
34823 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
34824
34825         rename.m4: fix typos that would make non-mingw cross-configure fail
34826         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
34827
34828 2009-05-13  Eric Blake  <ebb9@byu.net>
34829
34830         mmap-anon: avoid out-of-order autoconf expansion
34831         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
34832         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
34833         * modules/memchr-tests (Depends-on): Add extensions.
34834         * modules/memchr2-tests (Depends-on): Add extensions.
34835         * modules/memcmp-tests (Depends-on): Add extensions.
34836         * modules/memmem-tests (Depends-on): Add extensions.
34837         * modules/memrchr-tests (Depends-on): Add extensions.
34838
34839 2009-05-13  Bruno Haible  <bruno@clisp.org>
34840
34841         Make some tests ISO C 99 compliant.
34842         * tests/zerosize-ptr.h: New file.
34843         * tests/test-memchr.c: Include zerosize-ptr.h.
34844         (main): Use a zero-size object pointer instead of NULL.
34845         * tests/test-memchr2.c: Include zerosize-ptr.h.
34846         (main): Use a zero-size object pointer instead of NULL.
34847         * tests/test-memcmp.c: Include zerosize-ptr.h.
34848         (main): Use a zero-size object pointer instead of NULL.
34849         * tests/test-memmem.c: Include zerosize-ptr.h.
34850         (main): Use a zero-size object pointer instead of NULL.
34851         * tests/test-memrchr.c: Include zerosize-ptr.h.
34852         (main): Use a zero-size object pointer instead of NULL.
34853         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
34854         m4/mmap-anon.m4.
34855         (Depends-on): Add getpagesize.
34856         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
34857         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
34858         m4/mmap-anon.m4.
34859         (Depends-on): Add getpagesize.
34860         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
34861         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
34862         m4/mmap-anon.m4.
34863         (Depends-on): Add getpagesize.
34864         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
34865         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
34866         m4/mmap-anon.m4.
34867         (Depends-on): Add getpagesize.
34868         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
34869         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
34870         m4/mmap-anon.m4.
34871         (Depends-on): Add getpagesize.
34872         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
34873
34874 2009-05-12  Bruno Haible  <bruno@clisp.org>
34875
34876         Tests for module 'alignof'.
34877         * modules/alignof-tests: New file.
34878         * tests/test-alignof.c: New file.
34879
34880 2009-05-12  Bruno Haible  <bruno@clisp.org>
34881
34882         Fix alignof macro.
34883         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
34884         vendor compilers that are always correct.
34885
34886 2009-05-12  Bruno Haible  <bruno@clisp.org>
34887
34888         Make the MAP_ANONYMOUS detection work on HP-UX 11.
34889         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
34890         not whether its fully works.
34891
34892 2009-05-12  Bruno Haible  <bruno@clisp.org>
34893
34894         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
34895
34896 2009-05-12  Jim Meyering  <meyering@redhat.com>
34897
34898         * top/maint.mk: Adjust backslash alignment.
34899
34900 2009-05-11  Simon Josefsson  <simon@josefsson.org>
34901
34902         * top/maint.mk: Make $(srcdir)/build-aux configurable.
34903
34904 2009-05-11  Eric Blake  <ebb9@byu.net>
34905
34906         argp: avoid undefined behavior
34907         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
34908         macros.
34909
34910 2009-05-08  Simon Josefsson  <simon@josefsson.org>
34911
34912         * tests/test-vc-list-files-git.sh: Do git config of user.email and
34913         user.name to prevent git commit from complaining.
34914
34915 2009-05-10  Bruno Haible  <bruno@clisp.org>
34916
34917         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
34918         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
34919         it rewrites every file name only once.
34920         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
34921
34922 2009-05-08  Bruno Haible  <bruno@clisp.org>
34923
34924         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
34925         instead of 'max'.
34926
34927 2009-05-08  Simon Josefsson  <simon@josefsson.org>
34928
34929         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
34930         sockaddr_storage test.
34931
34932 2009-05-07  Simon Josefsson  <simon@josefsson.org>
34933
34934         * modules/sys_socket (Makefile.am): Substitute
34935         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
34936         * m4/sys_socket_h.m4: Check for sockaddr_storage.
34937         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
34938         * tests/test-sys_socket.c: Check sockaddr_storage.
34939
34940 2009-05-08  Bruno Haible  <bruno@clisp.org>
34941
34942         New module 'alignof'.
34943         * lib/alignof.h: New file.
34944         * modules/alignof: New file.
34945
34946 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
34947             Bruno Haible  <bruno@clisp.org>
34948
34949         Fix test-file-has-acl on FreeBSD.
34950         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
34951         mask is implicitly added.
34952         * tests/test-file-has-acl.c: Include <signal.h>.
34953         (main): Terminate the test after 5 seconds.
34954         * modules/acl-tests (configure.ac): Check for alarm function.
34955
34956 2009-05-04  Bruno Haible  <bruno@clisp.org>
34957
34958         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
34959         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
34960         * modules/errno (configure.ac): Drop AC_REQUIRE.
34961         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
34962         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
34963
34964 2009-05-04  Simon Josefsson  <simon@josefsson.org>
34965
34966         * modules/glob-tests: New module.
34967         * tests/test-glob.c: Add.
34968
34969 2009-05-04  Simon Josefsson  <simon@josefsson.org>
34970
34971         * modules/fnmatch-tests: New module.
34972         * tests/test-fnmatch.c: Add.
34973
34974 2009-05-04  Eric Blake  <ebb9@byu.net>
34975
34976         maint: make the new no-submodule-changes rule VPATH-safe
34977         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
34978
34979 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
34980             Bruno Haible  <bruno@clisp.org>
34981
34982         acl: Fix infinite loop on FreeBSD.
34983         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
34984         of return value from acl_get_entry.
34985         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
34986         Likewise.
34987
34988 2009-05-03  Bruno Haible  <bruno@clisp.org>
34989
34990         * lib/acl-internal.h (acl_entries): Clarify return value.
34991         * lib/acl_entries.c (acl_entries): Likewise.
34992
34993 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
34994
34995         Bug fix in acl module.
34996         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
34997
34998 2009-05-03  Bruno Haible  <bruno@clisp.org>
34999
35000         Create gperf-generated file in the source dir, not in the build dir.
35001         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
35002         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
35003         * modules/unicase/locale-language (unicase/locale-languages.h):
35004         Likewise.
35005         * modules/unicase/special-casing (unicase/special-casing-table.h):
35006         Likewise.
35007         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
35008         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
35009         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
35010         Reported by Ralf Wildenhues.
35011
35012 2009-05-03  Bruno Haible  <bruno@clisp.org>
35013
35014         * modules/fnmatch (Description, configure.ac): Taken from
35015         fnmatch-posix.
35016         * modules/fnmatch-posix: Turn into a symbolic reference to the
35017         'fnmatch' module, and deprecate.
35018         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
35019
35020 2009-05-03  Bruno Haible  <bruno@clisp.org>
35021
35022         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
35023         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
35024         Reported by Ralf Wildenhues.
35025
35026 2009-05-04  Simon Josefsson  <simon@josefsson.org>
35027
35028         * m4/fnmatch.m4: Fix fnmatch re-define.
35029
35030 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
35031
35032         priv-set: new module and tests; adapt write-any-file
35033         * lib/priv-set.c: New file.
35034         * lib/priv-set.h: New file.
35035         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
35036         * lib/write-any-file.c: Simplify by using priv-set module.
35037         * m4/priv-set.m4: New file.
35038         * modules/priv-set: New file.
35039         * modules/unlinkdir: Add dependency on priv-set module.
35040         * modules/write-any-file: Likewise.
35041
35042         Tests for module 'priv-set'.
35043         * modules/priv-set-tests: New file.
35044         * tests/test-priv-set.c: New file.
35045
35046 2009-05-03  Jim Meyering  <meyering@redhat.com>
35047             Bruno Haible  <bruno@clisp.org>
35048
35049         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
35050         use the converted UTF-8 variant of the name instead.
35051
35052 2009-05-03  Jim Meyering  <meyering@redhat.com>
35053
35054         tests: tighten some getdate tests
35055         * tests/test-getdate.c (main): Tighten tests: require equality,
35056         not just greater than.  Set TZ envvar to UTC0.
35057
35058 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
35059
35060         getdate: correctly interpret "next monday" when run on a Monday
35061         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
35062         that e.g., "next tues" (when run on a tuesday) results in a date
35063         that is one week in the future, and not today's date.
35064         I.e., add a week when the wday is the same as the current one.
35065         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
35066         and earlier by Martin Bernreuther and Jan Minář.
35067         * tests/test-getdate.c (main): Check that "next DAY" is always in
35068         the future and that "last DAY" is always in the past.
35069
35070 2009-05-02  Jim Meyering  <meyering@redhat.com>
35071
35072         build: ensure that a release build fails when a submodule is unclean
35073         * top/maint.mk (no-submodule-changes): New rule.
35074         (alpha beta major): Depend on it.
35075
35076 2009-05-02  Bruno Haible  <bruno@clisp.org>
35077
35078         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
35079         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
35080         shell variable gl_fnmatch_required to detect which variant is
35081         requested.
35082         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
35083         gl_FUNC_FNMATCH_POSIX.
35084         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
35085         exclude fnmatch-posix.
35086
35087 2009-05-02  Bruno Haible  <bruno@clisp.org>
35088
35089         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
35090         * modules/mbsrtowcs (License): Change to LGPLv2+.
35091         * modules/strnlen1 (License): Likewise.
35092         Reported by Simon Josefsson.
35093
35094 2009-05-02  Bruno Haible  <bruno@clisp.org>
35095
35096         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
35097         "cross".
35098         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
35099         gnulib-tool was called with option --source-base=lib.
35100
35101 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35102
35103         Use automake *-local hooks without commands, for extensibility.
35104         * modules/localcharset (Makefile.am): Rename install-exec-local
35105         rule to install-exec-localcharset, and make it a prerequisite of
35106         install-exec-local.  Likewise, rename the uninstall-local rule to
35107         uninstall-localcharset, and make it a prerequisite of the former.
35108
35109 2009-05-01  Bruno Haible  <bruno@clisp.org>
35110
35111         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
35112         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
35113         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
35114         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
35115         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
35116         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
35117         m4/locale-zh.m4, m4/codeset.m4.
35118
35119         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
35120         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
35121         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
35122         m4/locale-zh.m4.
35123
35124         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
35125         REPLACE_WCRTOMB if mbstate_t must be replaced.
35126         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
35127         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
35128
35129 2009-05-01  Bruno Haible  <bruno@clisp.org>
35130
35131         Avoid compiler warnings when redefining macros defined by <libintl.h>.
35132         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
35133         dngettext, dcngettext, textdomain, bindtextdomain,
35134         bind_textdomain_codeset): Undefine before redefining.
35135
35136 2009-04-30  Bruno Haible  <bruno@clisp.org>
35137
35138         Fix bug introduced on 2009-04-25.
35139         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
35140         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
35141         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
35142         is defined.
35143         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
35144         is defined.
35145         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
35146         is defined.
35147         Reported by Elbert_Pol <elbert.pol@gmail.com>.
35148
35149 2009-04-28  Bruno Haible  <bruno@clisp.org>
35150
35151         Comment tweaks.
35152         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
35153         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
35154         * lib/unicase.h (u*_casexfrm): Likewise.
35155         Reported by Paolo Bonzini.
35156
35157 2009-04-28  Bruno Haible  <bruno@clisp.org>
35158
35159         Fix a compilation error.
35160         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
35161         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
35162         Reported by Jim Meyering.
35163
35164 2009-04-27  Bruno Haible  <bruno@clisp.org>
35165
35166         New module 'libunistring'.
35167         * modules/libunistring: New file.
35168         * m4/libunistring.m4: New file.
35169         * MODULES.html.sh (Unicode string functions): Add it.
35170
35171 2009-04-27  Eric Blake  <ebb9@byu.net>
35172
35173         maint.mk: allow package-specific header to provide <config.h>
35174         * top/maint.mk (sc_require_config_h): New variable.
35175         (sc_require_config_h, sc_require_config_h_first): Use it.
35176
35177 2009-04-27  Simon Josefsson  <simon@josefsson.org>
35178
35179         * top/maint.mk (sc_avoid_if_before_free): Except
35180         useless-if-before-free script.
35181
35182 2009-04-27  Eric Blake  <ebb9@byu.net>
35183
35184         maintainer-makefile: depend on all required helper scripts
35185         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
35186         useless-if-before-free.
35187         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
35188         version, rather than assuming gnulib checkout is available.
35189         Reported by Simen Josefsson.
35190
35191 2009-04-26  Bruno Haible  <bruno@clisp.org>
35192
35193         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
35194         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
35195         "../" or "..".
35196
35197 2009-04-26  Bruno Haible  <bruno@clisp.org>
35198
35199         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
35200         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
35201         AC_LIB_HAVE_LINKFLAGS.
35202
35203 2009-04-26  Bruno Haible  <bruno@clisp.org>
35204
35205         Simplify calling convention of u*_conv_from_encoding.
35206         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
35207         u32_conv_from_encoding): Expect a resultbuf argument and return the
35208         result directly as a pointer.
35209         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
35210         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
35211         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
35212         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
35213         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
35214         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
35215         Update.
35216         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
35217         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
35218         * lib/vasnprintf.c (VASNPRINTF): Update.
35219         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
35220         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
35221         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
35222         * NEWS: Mention the change.
35223
35224 2009-04-26  Bruno Haible  <bruno@clisp.org>
35225
35226         Simplify calling convention of u*_conv_to_encoding.
35227         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
35228         u32_conv_to_encoding): Expect a resultbuf argument and return the
35229         result directly as a pointer.
35230         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
35231         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
35232         freeing scaled_offsets if mem_iconveha failed.
35233         * lib/unicase/u-casexfrm.h (FUNC): Update.
35234         * lib/uninorm/u-normxfrm.h (FUNC): Update.
35235         * lib/vasnprintf.c (VASNPRINTF): Update.
35236         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
35237         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
35238         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
35239         * NEWS: Mention the change.
35240
35241 2009-04-26  Bruno Haible  <bruno@clisp.org>
35242
35243         Avoid test failures on AIX and OSF/1.
35244         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
35245         malloc(0).
35246         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
35247         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
35248         Likewise.
35249         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
35250         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
35251         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
35252         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
35253         * doc/posix-functions/malloc.texi: Document the portability problem
35254         related to malloc(0).
35255
35256 2009-04-26  Bruno Haible  <bruno@clisp.org>
35257
35258         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
35259         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
35260         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
35261
35262 2009-04-25  Bruno Haible  <bruno@clisp.org>
35263
35264         Avoid link error when creating a namespace clean library.
35265         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
35266         as macro with arguments if already defined as an alias.
35267         * lib/signbitf.c (gl_signbitf): Don't undefine.
35268         * lib/signbitd.c (gl_signbitd): Don't undefine.
35269         * lib/signbitl.c (gl_signbitl): Don't undefine.
35270
35271 2009-04-25  Jim Meyering  <meyering@redhat.com>
35272
35273         vc-list-files: fix another quoting bug
35274         * build-aux/vc-list-files: Avoid sed backslash expansion
35275         of pathological directory names.
35276
35277 2009-04-25  Eric Blake  <ebb9@byu.net>
35278
35279         vc-list-files: fix shell quoting error
35280         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
35281         timestamp.
35282
35283 2009-04-25  Jim Meyering  <meyering@redhat.com>
35284
35285         vc-list-files: restore lost functionality with subdir argument
35286         * build-aux/vc-list-files: When given a non-"." sub-directory
35287         argument, substitute the $dir/ prefix back onto each resulting name.
35288         Otherwise, coreutils' root_tests check would fail.
35289
35290 2009-04-24  Eric Blake  <ebb9@byu.net>
35291
35292         vc-list-files: ignore git symlinks
35293         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
35294         than ls-files, to ignore git symlinks.
35295
35296         maint.mk: import improvements from m4
35297         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
35298         (move_if_change): Delete unused macro.
35299         (news-date-check, vc-diff-check): Support VPATH builds.
35300         (announcement): Likewise.  Split --bootstrap-tools list...
35301         (boostrap-tools): ...into separate list, which can be overridden
35302         in cfg.mk.
35303         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
35304         requiring dependency on useless-if-before-free module.
35305         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
35306         Support VPATH builds.
35307
35308 2009-04-24  Jim Meyering  <meyering@redhat.com>
35309
35310         maint.mk: remove coreutils-specific rules and variables
35311         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
35312         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
35313         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
35314
35315         maint.mk: remove obsolete rule
35316         * top/maint.mk (rel-check): Remove rule.
35317         (WGET, WGETFLAGS): Remove now-unused variables.
35318
35319 2009-04-24  Simon Josefsson  <simon@josefsson.org>
35320
35321         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
35322         consistency.
35323
35324         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
35325         '$(PATH_SEPARATOR)' instead of ':'.
35326
35327 2009-04-24  Simon Josefsson  <simon@josefsson.org>
35328
35329         * lib/getopt1.c (main): Use 'const' for static array.
35330
35331 2009-04-24  Simon Josefsson  <simon@josefsson.org>
35332
35333         * top/maint.mk: Sync with coreutils.
35334         * NEWS: Explain incompatibilities.
35335
35336 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35337             Bruno Haible  <bruno@clisp.org>
35338
35339         Fix cross-compilation results.
35340         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
35341         statement, as third argument of AC_TRY_RUN.
35342         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
35343         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
35344         Likewise.
35345         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
35346         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
35347         Likewise.
35348         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
35349         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
35350         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
35351
35352 2009-04-20  Bruno Haible  <bruno@clisp.org>
35353
35354         Avoid test failure on mingw.
35355         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
35356
35357 2009-04-20  Bruno Haible  <bruno@clisp.org>
35358
35359         Avoid compilation error on mingw.
35360         * modules/localename-tests (Depends-on): Add locale.
35361
35362 2009-04-19  Bruno Haible  <bruno@clisp.org>
35363
35364         Support for building a shared library on Windows platforms.
35365         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
35366         (main): Test the presence of UNINORM_NFC here.
35367         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
35368         (main): Test the presence of UNINORM_NFD here.
35369         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
35370         (main): Test the presence of UNINORM_NFKC here.
35371         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
35372         (main): Test the presence of UNINORM_NFKD here.
35373
35374 2009-04-19  Bruno Haible  <bruno@clisp.org>
35375
35376         Avoid a compiler warning.
35377         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
35378         Change type of variable 'sequence'.
35379
35380 2009-04-19  Bruno Haible  <bruno@clisp.org>
35381
35382         * modules/configmake (Makefile.am): When the contents of configmake.h
35383         does not change, arrange to preserve its modification time.
35384
35385 2009-04-17  Simon Josefsson  <simon@josefsson.org>
35386
35387         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
35388         gettext domain.
35389
35390 2009-04-16  Jim Meyering  <meyering@redhat.com>
35391
35392         useless-if-before-free: improve conversion code
35393         * build-aux/useless-if-before-free: Adjust code-in-comment to match
35394         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
35395
35396 2009-04-14  Bruno Haible  <bruno@clisp.org>
35397
35398         * modules/fcntl (Depends-on): Add extensions.
35399         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
35400
35401 2009-04-12  Ben Pfaff  <blp@gnu.org>
35402
35403         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
35404         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
35405
35406 2009-03-20  Ben Pfaff  <blp@gnu.org>
35407
35408         Make rename replace existing destinations on Windows.
35409         * m4/rename.m4: Add test for Mingw.
35410         * lib/rename.c: Add rename replacement that uses MoveFileEx with
35411         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
35412         * doc/posix-functions/rename.texi: Document.
35413
35414 2009-04-10  Bruno Haible  <bruno@clisp.org>
35415
35416         New include file "iconveh.h".
35417         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
35418         * lib/striconveh.h: Include it.
35419         (enum iconv_ilseq_handler): Remove definition.
35420         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
35421         striconveh.h.
35422         * lib/striconveha.c: Include striconveh.h.
35423         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
35424         * modules/striconveh (Files): Add lib/iconveh.h.
35425         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
35426         lib/striconveh.h.
35427
35428 2009-04-10  Bruno Haible  <bruno@clisp.org>
35429
35430         * lib/uniconv.h: Update comment.
35431
35432 2009-04-10  Bruno Haible  <bruno@clisp.org>
35433
35434         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
35435         always.
35436         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
35437         * lib/unistr/u16-mbtouc-aux.c: Likewise.
35438         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
35439         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
35440         "unistring-notinline.h", so that the function gets defined always.
35441         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
35442         * lib/unistr/u8-uctomb.c: Likewise.
35443         * lib/unistr/u16-mbtouc.c: Likewise.
35444         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
35445         * lib/unistr/u16-uctomb.c: Likewise.
35446         * lib/unistr/u32-mbtouc.c: Likewise.
35447         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
35448         * lib/unistr/u32-uctomb.c: Likewise.
35449
35450 2009-04-10  Bruno Haible  <bruno@clisp.org>
35451
35452         Mark 'utime' obsolete.
35453         * modules/utime (Status, Notice): New sections.
35454         Suggested by Jim Meyering.
35455
35456         Fix cross-compile guess for utime test.
35457         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
35458         autoconf.
35459         * doc/posix-functions/utime.texi: Give more precisions.
35460         Reported by Jan <ipif@ymail.com>.
35461
35462 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
35463
35464         filevercmp: correct today's change
35465         * lib/filevercmp.c: Also handle coreutils' test inputs.
35466         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
35467
35468         Fix regression in 'filevercmp' module. Thanks Sven Joachim
35469         for reporting it.
35470         * lib/filevercmp.c: Special handle for "", "." and "..".
35471         * tests/test-filevercmp.c: Enlarge the set suite.
35472
35473 2009-04-07  Jim Meyering  <meyering@redhat.com>
35474
35475         useless-if-before-free: show how to remove braced useless free, too
35476         * build-aux/useless-if-before-free: still only in a comment, though.
35477
35478 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
35479
35480         maint.mk: import changes to syntax-check macros from coreutils
35481         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
35482         Use them in the relevant macros.
35483
35484 2009-04-06  Bruno Haible  <bruno@clisp.org>
35485
35486         Fix unportable use of bit-fields.
35487         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
35488         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
35489         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
35490
35491 2009-04-06  Bruno Haible  <bruno@clisp.org>
35492
35493         Avoid test failures on AIX and OSF/1.
35494         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
35495         that malloc(0) = NULL.
35496         * tests/unicase/test-u8-tolower.c (check): Likewise.
35497         * tests/unicase/test-u8-totitle.c (check): Likewise.
35498         * tests/unicase/test-u8-toupper.c (check): Likewise.
35499         * tests/unicase/test-u16-casefold.c (check): Likewise.
35500         * tests/unicase/test-u16-tolower.c (check): Likewise.
35501         * tests/unicase/test-u16-totitle.c (check): Likewise.
35502         * tests/unicase/test-u16-toupper.c (check): Likewise.
35503         * tests/unicase/test-u32-casefold.c (check): Likewise.
35504         * tests/unicase/test-u32-tolower.c (check): Likewise.
35505         * tests/unicase/test-u32-totitle.c (check): Likewise.
35506         * tests/unicase/test-u32-toupper.c (check): Likewise.
35507         * tests/uninorm/test-u8-nfc.c (check): Likewise.
35508         * tests/uninorm/test-u8-nfd.c (check): Likewise.
35509         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
35510         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
35511         * tests/uninorm/test-u16-nfc.c (check): Likewise.
35512         * tests/uninorm/test-u16-nfd.c (check): Likewise.
35513         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
35514         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
35515         * tests/uninorm/test-u32-nfc.c (check): Likewise.
35516         * tests/uninorm/test-u32-nfd.c (check): Likewise.
35517         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
35518         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
35519
35520 2009-04-05  Bruno Haible  <bruno@clisp.org>
35521
35522         Work around an autoconf limitation.
35523         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
35524         comment line if it would be longer than 3 KB.
35525
35526 2009-04-05  Bruno Haible  <bruno@clisp.org>
35527
35528         Avoid test failure with libiconv-1.13.
35529         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
35530         of the expected test results.
35531
35532 2009-04-05  Bruno Haible  <bruno@clisp.org>
35533
35534         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
35535         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
35536         that it should be installed.
35537
35538 2009-04-05  Bruno Haible  <bruno@clisp.org>
35539
35540         * gnulib-tool: New option --copy-file.
35541         (func_usage): Document it.
35542         (func_dest_tmpfilename): Moved out of func_import.
35543         (func_add_file, func_update_file): New functions, extracted from
35544         func_import.
35545         (func_import): Update.
35546
35547 2009-04-05  Karl Berry  <karl@gnu.org>
35548
35549         * README: prominently mention gnulib-tool.
35550         Rearrange sections so getting the code is near the top.
35551
35552 2009-04-05  Bruno Haible  <bruno@clisp.org>
35553
35554         * lib/unicase.h: Mention u*_cmp2.
35555         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
35556         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
35557         * lib/unicase/ulc-casecmp.c: Likewise.
35558         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
35559         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
35560         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
35561         unistr/u8-cmp.
35562         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
35563         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
35564         unistr/u16-cmp.
35565         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
35566         unistr/u32-cmp.
35567
35568         * lib/uninorm.h: Mention u*_cmp2.
35569         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
35570         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
35571         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
35572         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
35573         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
35574         unistr/u8-cmp.
35575         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
35576         unistr/u16-cmp.
35577         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
35578         unistr/u32-cmp.
35579
35580         New module 'unistr/u32-cmp2'.
35581         * lib/unistr/u32-cmp2.c: New file.
35582         * modules/unistr/u32-cmp2: New file.
35583
35584         New module 'unistr/u16-cmp2'.
35585         * lib/unistr/u16-cmp2.c: New file.
35586         * modules/unistr/u16-cmp2: New file.
35587
35588         New module 'unistr/u8-cmp2'.
35589         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
35590         * lib/unistr/u8-cmp2.c: New file.
35591         * lib/unistr/u-cmp2.h: New file.
35592         * modules/unistr/u8-cmp2: New file.
35593
35594 2009-04-05  Bruno Haible  <bruno@clisp.org>
35595
35596         * lib/unictype.h (uc_property_is_valid): New macro.
35597         * tests/unictype/test-pr_byname.c (main): Use it.
35598
35599         * lib/unistr.h: Doc fixes.
35600         * lib/uniconv.h: Doc fixes.
35601         * lib/unictype.h: Doc fixes.
35602
35603 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
35604
35605         Port coreutils 7.2 to Solaris 8.
35606
35607         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
35608         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
35609         for Solaris 8.  This is a bit of a hack, as it means it's the
35610         caller's responsibility to add -lnsl if needed, but most likely it
35611         won't be needed since only getaddrinfo uses this and getaddrinfo
35612         isn't needed on Solaris 8.
35613
35614         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
35615         problem to Solaris 8 encountered with coreutils 7.2, which
35616         resulted in a message "fnmatch.c:292: warning: passing argument 4
35617         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
35618         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
35619
35620 2009-04-03  Simon Josefsson  <simon@josefsson.org>
35621
35622         * m4/ld-version-script.m4: Add FIXME comment.
35623
35624 2009-04-02  Simon Josefsson  <simon@josefsson.org>
35625
35626         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
35627         SOVERSION variable.
35628
35629 2009-04-02  Bruno Haible  <bruno@clisp.org>
35630
35631         * Makefile (info, html, dvi, pdf): Combine the rules.
35632         Suggested by Jim Meyering.
35633
35634 2009-04-01  Bruno Haible  <bruno@clisp.org>
35635
35636         * Makefile (info, html, dvi, pdf): New targets.
35637         Reported by Reuben Thomas <rrt@sc3d.org>.
35638
35639 2009-04-01  Bruno Haible  <bruno@clisp.org>
35640
35641         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
35642         can be put into PATH.
35643         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
35644
35645 2009-04-01  Bruno Haible  <bruno@clisp.org>
35646
35647         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
35648
35649 2009-04-01  Bruno Haible  <bruno@clisp.org>
35650
35651         Rename module 'visibility'.
35652         * modules/lib-symbol-visibility: Renamed from modules/visibility.
35653         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
35654         * doc/gnulib.texi: Update.
35655         * MODULES.html.sh (Misc): Update.
35656         * NEWS: Mention the change.
35657
35658 2009-04-01  Simon Josefsson  <simon@josefsson.org>
35659
35660         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
35661         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
35662         Eric Blake <ebb9@byu.net> for review.
35663         * MODULES.html.sh: Add lib-msvc-compat.
35664         * doc/gnulib.texi: Link to new section.
35665         * m4/ld-output-def.m4: New file.
35666         * doc/ld-output-def.texi: New file.
35667
35668 2009-04-01  Simon Josefsson  <simon@josefsson.org>
35669
35670         Rename ld-version-script to lib-symbol-versions.  Suggested by
35671         Bruno Haible <bruno@clisp.org>.
35672         * modules/ld-version-script: Renamed to lib-symbol-versions.
35673         * doc/ld-version-script.texi: Fix module name.
35674         * MODULES.html.sh: Add lib-symbol-versions.
35675
35676 2009-03-31  Simon Josefsson  <simon@josefsson.org>
35677
35678         * modules/u64-tests: New file.
35679         * tests/test-u64.c: New file.
35680
35681 2009-03-04  Simon Josefsson  <simon@josefsson.org>
35682
35683         * MODULES.html.sh: Mention u64.
35684         * modules/u64: New module.
35685         * modules/crypto/sha512: Depend on u64 module instead of providing
35686         u64.h.
35687
35688 2009-03-27  Eric Blake  <ebb9@byu.net>
35689
35690         test-strerror: make debugging EAI_SYSTEM easier
35691         * modules/getaddrinfo-tests (Depends-on): Add strerror.
35692         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
35693         failure was EAI_SYSTEM.
35694
35695 2009-03-25  Bruno Haible  <bruno@clisp.org>
35696
35697         Fix a problem with --enable-relocatable on Solaris 7.
35698         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
35699         since 2008-02-24.
35700
35701 2009-03-25  Eric Blake  <ebb9@byu.net>
35702
35703         test-sockets: avoid gcc warning
35704         * tests/test-sockets.c (main): Silence compiler warning.
35705
35706 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
35707
35708         New modules nproc, pthread, contributed by Glen Lenker.
35709
35710         * MODULES.html.sh: Add pthread, nproc.
35711         * lib/nproc.c: New file.
35712         * lib/nproc.h: New file.
35713         * lib/pthread.in.h: New file.
35714         * m4/pthread.m4: New file.
35715         * modules/nproc: New file.
35716         * modules/pthread: New file.
35717
35718 2009-03-24  Simon Josefsson  <simon@josefsson.org>
35719
35720         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
35721         New variable.
35722
35723 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
35724
35725         filevercmp: handle simple~ and numbered.~3~ backup suffixes
35726         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
35727         * tests/test-filevercmp.c: Add tests for backup suffixes.
35728
35729 2009-03-24  Simon Josefsson  <simon@josefsson.org>
35730
35731         * modules/stdlib (Depends-on): Add stdint, needed when defining
35732         struct random_data on, for example, HP-UX 10.20.  Reported by
35733         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
35734
35735 2009-03-24  Simon Josefsson  <simon@josefsson.org>
35736
35737         * lib/readline.c (readline): Call fflush on stdout after printing
35738         prompt.
35739
35740 2009-03-20  Bruno Haible  <bruno@clisp.org>
35741
35742         Remove dependency from 'close' module to -lws2_32 on native Windows.
35743         * lib/close-hook.h: New file.
35744         * lib/close-hook.c: New file.
35745         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
35746         w32sock.h.
35747         (_gl_close_fd_maybe_socket): Remove function.
35748         (rpl_close): Invoke execute_all_close_hooks instead of
35749         _gl_close_fd_maybe_socket.
35750         * lib/sockets.c: Include close-hook.h, w32sock.h.
35751         (close_fd_maybe_socket): New function, essentially from lib/close.c.
35752         (close_sockets_hook): New variable.
35753         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
35754         (gl_sockets_cleanup): Unregister it.
35755         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
35756         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
35757         * modules/close-hook: New file.
35758         * modules/close (Files): Remove lib/w32sock.h.
35759         (Depends-on): Add close-hook.
35760         (Link): Remove section.
35761         * modules/sockets (Files): Add lib/w32sock.h.
35762         (Depends-on): Add close-hook.
35763         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
35764         invocation.
35765         * NEWS: Mention that LIB_CLOSE is gone.
35766
35767 2009-03-23  Eric Blake  <ebb9@byu.net>
35768
35769         signal-tests: test previous patch
35770         * tests/test-signal.c: New file.
35771         * modules/signal-tests: Likewise.
35772
35773         signal.h: always support 'volatile sig_atomic_t'
35774         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
35775         (gl_SIGNAL_H_DEFAULTS): Add a default.
35776         * modules/signal (Makefile.am): Substitute if needed.
35777         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
35778         users can blindly add volatile.
35779         * doc/posix-headers/signal.texi (signal.h): Document it.
35780         Reported by Matthew Woehlke.
35781
35782 2009-03-23  Jim Meyering  <meyering@redhat.com>
35783
35784         pathmax: PATH_MAX: use pathconf only when available
35785         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
35786         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
35787         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
35788         This avoids a link failure in a PSP cross-compilation environment
35789         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
35790
35791         * lib/vasnprintf.c (divide): Fix typo in comment.
35792
35793 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35794
35795         * gnulib-tool (func_filter_filelist): Fix comment.
35796
35797 2009-03-20  Bruno Haible  <bruno@clisp.org>
35798
35799         Make sockets.h self-contained.
35800         * lib/sockets.c: Include sockets.h first.
35801         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
35802
35803 2009-03-19  Eric Blake  <ebb9@byu.net>
35804
35805         doc: mention more functions added in cygwin 1.7.0
35806         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
35807         addition.
35808         * doc/posix-functions/log2f.texi: Likewise.
35809
35810 2009-03-19  Jim Meyering  <meyering@redhat.com>
35811
35812         fsusage: avoid syntax error due to statement-before-declaration
35813         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
35814         after all declarations.  Reported by Matthew Woehlke in
35815         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
35816
35817 2009-03-18  Eric Blake  <ebb9@byu.net>
35818
35819         build-aux/compile: sync from automake
35820         * build-aux/compile: New file, from automake.
35821         * config/srclist.txt: Mention build-aux/compile.
35822
35823 2009-03-17  Bruno Haible  <bruno@clisp.org>
35824
35825         * lib/git-merge-changelog.c: Fix typo in comment.
35826         Reported by Reuben Thomas <rrt@sc3d.org>.
35827
35828 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
35829
35830         * m4/regex.m4: update and improve help for
35831         --without-included-regex.
35832
35833 2009-03-17  Simon Josefsson  <simon@josefsson.org>
35834
35835         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
35836         failure on missing include files.
35837
35838 2009-03-17  Eric Blake  <ebb9@byu.net>
35839
35840         doc: mention more functions added in cygwin 1.7.0
35841         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
35842         addition.
35843         * doc/posix-functions/fwscanf.texi: Likewise.
35844         * doc/posix-functions/swprintf.texi: Likewise.
35845         * doc/posix-functions/swscanf.texi: Likewise.
35846         * doc/posix-functions/vfwprintf.texi: Likewise.
35847         * doc/posix-functions/vfwscanf.texi: Likewise.
35848         * doc/posix-functions/vswprintf.texi: Likewise.
35849         * doc/posix-functions/vswscanf.texi: Likewise.
35850         * doc/posix-functions/vwprintf.texi: Likewise.
35851         * doc/posix-functions/vwscanf.texi: Likewise.
35852         * doc/posix-functions/wcscasecmp.texi: Likewise.
35853         * doc/posix-functions/wcsdup.texi: Likewise.
35854         * doc/posix-functions/wcsftime.texi: Likewise.
35855         * doc/posix-functions/wcsncasecmp.texi: Likewise.
35856         * doc/posix-functions/wprintf.texi: Likewise.
35857         * doc/posix-functions/wscanf.texi: Likewise.
35858         * doc/glibc-functions/gethostbyname2.texi: Likewise.
35859
35860 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35861
35862         maint.mk: really add $(AM_MAKEFLAGS)
35863         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
35864         was inadvertently omitted in the last commit.
35865         Spotted by Bruno Haible.
35866
35867         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
35868         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
35869         $(AM_MAKEFLAGS)' rather than plain `make'.
35870
35871         gnulib-tool: execute $MAKE not make
35872         * gnulib-tool: Default $MAKE to 'make'.
35873         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
35874         than make.  Initialize $MAKE in the do-autobuild script.
35875
35876         gnulib-tool: use $MAKE not make in generated files
35877         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
35878         make, in generated files.  Initialize $MAKE in the do-autobuild
35879         script.
35880
35881         * top/GNUmakefile (_have-git-version-gen): Fix typo.
35882
35883         GNUmakefile: disable parallelism only for multiple, recursive targets
35884         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
35885         additions in the Makefile.
35886         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
35887         by Automake.
35888         (.NOTPARALLEL): Only disable parallel builds if multiple targets
35889         are listed on the command line and at least one of them is
35890         listed in $(ALL_RECURSIVE_TARGETS).
35891
35892 2009-03-14  Bruno Haible  <bruno@clisp.org>
35893
35894         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
35895         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
35896         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
35897         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
35898         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
35899         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
35900         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
35901         unistr/u8-uctomb.
35902         * modules/unistr/u8-strchr (Depends-on): Likewise.
35903         * modules/unistr/u8-strrchr (Depends-on): Likewise.
35904         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
35905         unistr/u16-uctomb.
35906         * modules/unistr/u16-strchr (Depends-on): Likewise.
35907         * modules/unistr/u16-strrchr (Depends-on): Likewise.
35908
35909 2009-03-12  Bruno Haible  <bruno@clisp.org>
35910
35911         Work around select() bug on Interix 3.5.
35912         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
35913         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
35914         * m4/select.m4: New file.
35915         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
35916         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
35917         * modules/select (Files): Add m4/select.m4.
35918         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
35919         * modules/nanosleep (Depends-on): Add select.
35920         * modules/poll (Depends-on): Likewise.
35921         * doc/posix-functions/select.texi: Mention the Interix bug.
35922         Reported by Markus Duft <mduft@gentoo.org>.
35923
35924         * lib/select.c: Renamed from lib/winsock-select.c.
35925         * modules/select (Files): Add lib/select.c, remove
35926         lib/winsock-select.c.
35927         (configure.ac): Update.
35928
35929 2009-03-12  Jim Meyering  <meyering@redhat.com>
35930
35931         avoid gcc warnings about unused macro definitions
35932         * lib/readtokens.c (STREQ): Remove unused definition.
35933         * lib/xmalloc.c (SIZE_MAX): Likewise.
35934         * lib/openat-die.c (N_): Likewise.
35935         * lib/mountlist.c (SIZE_MAX): Remove definition.
35936         Instead, include <stdint.h>.
35937         * lib/readutmp.c: Likewise.
35938         * modules/readutmp (Depends-on): Add stdint.
35939         * modules/mountlist (Depends-on): Add stdint.
35940         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
35941
35942 2009-03-10  Bruno Haible  <bruno@clisp.org>
35943
35944         Tests for module 'mbmemcasecoll'.
35945         * modules/mbmemcasecoll-tests: New file.
35946         * tests/test-mbmemcasecoll1.sh: New file.
35947         * tests/test-mbmemcasecoll2.sh: New file.
35948         * tests/test-mbmemcasecoll3.sh: New file.
35949         * tests/test-mbmemcasecoll.c: New file.
35950
35951         New module 'mbmemcasecoll'.
35952         * lib/mbmemcasecoll.h: New file.
35953         * lib/mbmemcasecoll.c: New file.
35954         * modules/mbmemcasecoll: New file.
35955
35956         * tests/test-mbmemcasecmp.h: New file, extracted from
35957         tests/test-mbmemcasecmp.c.
35958         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
35959         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
35960         (main): Update.
35961         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
35962
35963 2009-03-09  Bruno Haible  <bruno@clisp.org>
35964
35965         Tests for module 'mbmemcasecmp'.
35966         * modules/mbmemcasecmp-tests: New file.
35967         * tests/test-mbmemcasecmp1.sh: New file.
35968         * tests/test-mbmemcasecmp2.sh: New file.
35969         * tests/test-mbmemcasecmp3.sh: New file.
35970         * tests/test-mbmemcasecmp.c: New file.
35971
35972         New module 'mbmemcasecmp'.
35973         * lib/mbmemcasecmp.h: New file.
35974         * lib/mbmemcasecmp.c: New file.
35975         * modules/mbmemcasecmp: New file.
35976
35977 2009-03-09  Bruno Haible  <bruno@clisp.org>
35978
35979         Tests for module 'unicase/ulc-casecoll'.
35980         * modules/unicase/ulc-casecoll-tests: New file.
35981         * tests/unicase/test-ulc-casecoll1.sh: New file.
35982         * tests/unicase/test-ulc-casecoll2.sh: New file.
35983         * tests/unicase/test-ulc-casecoll.c: New file.
35984
35985         New module 'unicase/ulc-casecoll'.
35986         * lib/unicase.h (ulc_casecoll): New declaration.
35987         * lib/unicase/ulc-casecoll.c: New file.
35988         * modules/unicase/ulc-casecoll: New file.
35989
35990         New module 'unicase/ulc-casexfrm'.
35991         * lib/unicase.h (ulc_casexfrm): New declaration.
35992         * lib/unicase/ulc-casexfrm.c: New file.
35993         * modules/unicase/ulc-casexfrm: New file.
35994
35995 2009-03-09  Bruno Haible  <bruno@clisp.org>
35996
35997         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
35998         invocations.
35999
36000         * m4/mbscasecmp.m4: Remove file.
36001         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
36002         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
36003
36004         * m4/mbscasestr.m4: Remove file.
36005         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
36006         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
36007
36008         * m4/mbschr.m4: Remove file.
36009         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
36010         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
36011
36012         * m4/mbscspn.m4: Remove file.
36013         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
36014         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
36015
36016         * m4/mbslen.m4: Remove file.
36017         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
36018         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
36019
36020         * m4/mbsncasecmp.m4: Remove file.
36021         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
36022         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
36023
36024         * m4/mbsnlen.m4: Remove file.
36025         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
36026         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
36027
36028         * m4/mbspbrk.m4: Remove file.
36029         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
36030         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
36031
36032         * m4/mbspcasecmp.m4: Remove file.
36033         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
36034         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
36035
36036         * m4/mbsrchr.m4: Remove file.
36037         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
36038         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
36039
36040         * m4/mbssep.m4: Remove file.
36041         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
36042         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
36043
36044         * m4/mbsspn.m4: Remove file.
36045         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
36046         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
36047
36048         * m4/mbsstr.m4: Remove file.
36049         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
36050         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
36051
36052         * m4/mbstok_r.m4: Remove file.
36053         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
36054         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
36055
36056         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
36057
36058         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
36059         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
36060
36061         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
36062
36063 2009-03-08  Bruno Haible  <bruno@clisp.org>
36064
36065         Tests for module 'unicase/ulc-casecmp'.
36066         * modules/unicase/ulc-casecmp-tests: New file.
36067         * tests/unicase/test-ulc-casecmp1.sh: New file.
36068         * tests/unicase/test-ulc-casecmp2.sh: New file.
36069         * tests/unicase/test-ulc-casecmp.c: New file.
36070
36071         New module 'unicase/ulc-casecmp'.
36072         * lib/unicase.h (ulc_casecmp): New declaration.
36073         * lib/unicase/ulc-casecmp.c: New file.
36074         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
36075         'const SRC_UNIT *'.
36076         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
36077         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
36078         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
36079         * modules/unicase/ulc-casecmp: New file.
36080
36081         Tests for module 'unicase/u32-is-cased'.
36082         * modules/unicase/u32-is-cased-tests: New file.
36083         * tests/unicase/test-u32-is-cased.c: New file.
36084
36085         Tests for module 'unicase/u16-is-cased'.
36086         * modules/unicase/u16-is-cased-tests: New file.
36087         * tests/unicase/test-u16-is-cased.c: New file.
36088
36089         Tests for module 'unicase/u8-is-cased'.
36090         * modules/unicase/u8-is-cased-tests: New file.
36091         * tests/unicase/test-u8-is-cased.c: New file.
36092         * tests/unicase/test-is-cased.h: New file.
36093
36094         New module 'unicase/u32-is-cased'.
36095         * lib/unicase/u32-is-cased.c: New file.
36096         * modules/unicase/u32-is-cased: New file.
36097
36098         New module 'unicase/u16-is-cased'.
36099         * lib/unicase/u16-is-cased.c: New file.
36100         * modules/unicase/u16-is-cased: New file.
36101
36102         New module 'unicase/u8-is-cased'.
36103         * lib/unicase/u8-is-cased.c: New file.
36104         * lib/unicase/u-is-cased.h: New file.
36105         * modules/unicase/u8-is-cased: New file.
36106
36107         Tests for module 'unicase/u32-is-casefolded'.
36108         * modules/unicase/u32-is-casefolded-tests: New file.
36109         * tests/unicase/test-u32-is-casefolded.c: New file.
36110
36111         Tests for module 'unicase/u16-is-casefolded'.
36112         * modules/unicase/u16-is-casefolded-tests: New file.
36113         * tests/unicase/test-u16-is-casefolded.c: New file.
36114
36115         Tests for module 'unicase/u8-is-casefolded'.
36116         * modules/unicase/u8-is-casefolded-tests: New file.
36117         * tests/unicase/test-u8-is-casefolded.c: New file.
36118         * tests/unicase/test-is-casefolded.h: New file.
36119
36120         New module 'unicase/u32-is-casefolded'.
36121         * lib/unicase/u32-is-casefolded.c: New file.
36122         * modules/unicase/u32-is-casefolded: New file.
36123
36124         New module 'unicase/u16-is-casefolded'.
36125         * lib/unicase/u16-is-casefolded.c: New file.
36126         * modules/unicase/u16-is-casefolded: New file.
36127
36128         New module 'unicase/u8-is-casefolded'.
36129         * lib/unicase/u8-is-casefolded.c: New file.
36130         * modules/unicase/u8-is-casefolded: New file.
36131
36132         Tests for module 'unicase/u32-is-titlecase'.
36133         * modules/unicase/u32-is-titlecase-tests: New file.
36134         * tests/unicase/test-u32-is-titlecase.c: New file.
36135
36136         Tests for module 'unicase/u16-is-titlecase'.
36137         * modules/unicase/u16-is-titlecase-tests: New file.
36138         * tests/unicase/test-u16-is-titlecase.c: New file.
36139
36140         Tests for module 'unicase/u8-is-titlecase'.
36141         * modules/unicase/u8-is-titlecase-tests: New file.
36142         * tests/unicase/test-u8-is-titlecase.c: New file.
36143         * tests/unicase/test-is-titlecase.h: New file.
36144
36145         New module 'unicase/u32-is-titlecase'.
36146         * lib/unicase/u32-is-titlecase.c: New file.
36147         * modules/unicase/u32-is-titlecase: New file.
36148
36149         New module 'unicase/u16-is-titlecase'.
36150         * lib/unicase/u16-is-titlecase.c: New file.
36151         * modules/unicase/u16-is-titlecase: New file.
36152
36153         New module 'unicase/u8-is-titlecase'.
36154         * lib/unicase/u8-is-titlecase.c: New file.
36155         * modules/unicase/u8-is-titlecase: New file.
36156
36157         Tests for module 'unicase/u32-is-lowercase'.
36158         * modules/unicase/u32-is-lowercase-tests: New file.
36159         * tests/unicase/test-u32-is-lowercase.c: New file.
36160
36161         Tests for module 'unicase/u16-is-lowercase'.
36162         * modules/unicase/u16-is-lowercase-tests: New file.
36163         * tests/unicase/test-u16-is-lowercase.c: New file.
36164
36165         Tests for module 'unicase/u8-is-lowercase'.
36166         * modules/unicase/u8-is-lowercase-tests: New file.
36167         * tests/unicase/test-u8-is-lowercase.c: New file.
36168         * tests/unicase/test-is-lowercase.h: New file.
36169
36170         New module 'unicase/u32-is-lowercase'.
36171         * lib/unicase/u32-is-lowercase.c: New file.
36172         * modules/unicase/u32-is-lowercase: New file.
36173
36174         New module 'unicase/u16-is-lowercase'.
36175         * lib/unicase/u16-is-lowercase.c: New file.
36176         * modules/unicase/u16-is-lowercase: New file.
36177
36178         New module 'unicase/u8-is-lowercase'.
36179         * lib/unicase/u8-is-lowercase.c: New file.
36180         * modules/unicase/u8-is-lowercase: New file.
36181
36182         Tests for module 'unicase/u32-is-uppercase'.
36183         * modules/unicase/u32-is-uppercase-tests: New file.
36184         * tests/unicase/test-u32-is-uppercase.c: New file.
36185
36186         Tests for module 'unicase/u16-is-uppercase'.
36187         * modules/unicase/u16-is-uppercase-tests: New file.
36188         * tests/unicase/test-u16-is-uppercase.c: New file.
36189
36190         Tests for module 'unicase/u8-is-uppercase'.
36191         * modules/unicase/u8-is-uppercase-tests: New file.
36192         * tests/unicase/test-u8-is-uppercase.c: New file.
36193         * tests/unicase/test-is-uppercase.h: New file.
36194
36195         New module 'unicase/u32-is-uppercase'.
36196         * lib/unicase/u32-is-uppercase.c: New file.
36197         * modules/unicase/u32-is-uppercase: New file.
36198
36199         New module 'unicase/u16-is-uppercase'.
36200         * lib/unicase/u16-is-uppercase.c: New file.
36201         * modules/unicase/u16-is-uppercase: New file.
36202
36203         New module 'unicase/u8-is-uppercase'.
36204         * lib/unicase/u8-is-uppercase.c: New file.
36205         * modules/unicase/u8-is-uppercase: New file.
36206
36207         New module 'unicase/u32-is-invariant'.
36208         * lib/unicase/u32-is-invariant.c: New file.
36209         * modules/unicase/u32-is-invariant: New file.
36210
36211         New module 'unicase/u16-is-invariant'.
36212         * lib/unicase/u16-is-invariant.c: New file.
36213         * modules/unicase/u16-is-invariant: New file.
36214
36215         New module 'unicase/u8-is-invariant'.
36216         * lib/unicase/u8-is-invariant.c: New file.
36217         * lib/unicase/invariant.h: New file.
36218         * lib/unicase/u-is-invariant.h: New file.
36219         * modules/unicase/u8-is-invariant: New file.
36220
36221         Tests for module 'unicase/u32-casecoll'.
36222         * modules/unicase/u32-casecoll-tests: New file.
36223         * tests/unicase/test-u32-casecoll.c: New file.
36224
36225         Tests for module 'unicase/u16-casecoll'.
36226         * modules/unicase/u16-casecoll-tests: New file.
36227         * tests/unicase/test-u16-casecoll.c: New file.
36228
36229         Tests for module 'unicase/u8-casecoll'.
36230         * modules/unicase/u8-casecoll-tests: New file.
36231         * tests/unicase/test-u8-casecoll.c: New file.
36232
36233         New module 'unicase/u32-casecoll'.
36234         * lib/unicase/u32-casecoll.c: New file.
36235         * modules/unicase/u32-casecoll: New file.
36236
36237         New module 'unicase/u16-casecoll'.
36238         * lib/unicase/u16-casecoll.c: New file.
36239         * modules/unicase/u16-casecoll: New file.
36240
36241         New module 'unicase/u8-casecoll'.
36242         * lib/unicase/u8-casecoll.c: New file.
36243         * lib/unicase/u-casecoll.h: New file.
36244         * modules/unicase/u8-casecoll: New file.
36245
36246         New module 'unicase/u32-casexfrm'.
36247         * lib/unicase/u32-casexfrm.c: New file.
36248         * modules/unicase/u32-casexfrm: New file.
36249
36250         New module 'unicase/u16-casexfrm'.
36251         * lib/unicase/u16-casexfrm.c: New file.
36252         * modules/unicase/u16-casexfrm: New file.
36253
36254         New module 'unicase/u8-casexfrm'.
36255         * lib/unicase/u8-casexfrm.c: New file.
36256         * lib/unicase/u-casexfrm.h: New file.
36257         * modules/unicase/u8-casexfrm: New file.
36258
36259         Tests for module 'unicase/u32-casecmp'.
36260         * modules/unicase/u32-casecmp-tests: New file.
36261         * tests/unicase/test-u32-casecmp.c: New file.
36262
36263         Tests for module 'unicase/u16-casecmp'.
36264         * modules/unicase/u16-casecmp-tests: New file.
36265         * tests/unicase/test-u16-casecmp.c: New file.
36266
36267         Tests for module 'unicase/u8-casecmp'.
36268         * modules/unicase/u8-casecmp-tests: New file.
36269         * tests/unicase/test-u8-casecmp.c: New file.
36270         * tests/unicase/test-casecmp.h: New file.
36271
36272         New module 'unicase/u32-casecmp'.
36273         * lib/unicase/u32-casecmp.c: New file.
36274         * modules/unicase/u32-casecmp: New file.
36275
36276         New module 'unicase/u16-casecmp'.
36277         * lib/unicase/u16-casecmp.c: New file.
36278         * modules/unicase/u16-casecmp: New file.
36279
36280         New module 'unicase/u8-casecmp'.
36281         * lib/unicase/u8-casecmp.c: New file.
36282         * lib/unicase/u-casecmp.h: New file.
36283         * modules/unicase/u8-casecmp: New file.
36284
36285         Tests for module 'unicase/u32-casefold'.
36286         * modules/unicase/u32-casefold-tests: New file.
36287         * tests/unicase/test-u32-casefold.c: New file.
36288
36289         Tests for module 'unicase/u16-casefold'.
36290         * modules/unicase/u16-casefold-tests: New file.
36291         * tests/unicase/test-u16-casefold.c: New file.
36292
36293         Tests for module 'unicase/u8-casefold'.
36294         * modules/unicase/u8-casefold-tests: New file.
36295         * tests/unicase/test-u8-casefold.c: New file.
36296
36297         New module 'unicase/u32-casefold'.
36298         * lib/unicase/u32-casefold.c: New file.
36299         * modules/unicase/u32-casefold: New file.
36300
36301         New module 'unicase/u16-casefold'.
36302         * lib/unicase/u16-casefold.c: New file.
36303         * modules/unicase/u16-casefold: New file.
36304
36305         New module 'unicase/u8-casefold'.
36306         * lib/unicase/u8-casefold.c: New file.
36307         * lib/unicase/u-casefold.h: New file.
36308         * modules/unicase/u8-casefold: New file.
36309
36310         New module 'unicase/tocasefold'.
36311         * lib/unicase/casefold.h: New file.
36312         * lib/unicase/tocasefold.c: New file.
36313         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
36314         * modules/unicase/tocasefold: New file.
36315
36316         Tests for module 'unicase/u32-totitle'.
36317         * modules/unicase/u32-totitle-tests: New file.
36318         * tests/unicase/test-u32-totitle.c: New file.
36319
36320         Tests for module 'unicase/u16-totitle'.
36321         * modules/unicase/u16-totitle-tests: New file.
36322         * tests/unicase/test-u16-totitle.c: New file.
36323
36324         Tests for module 'unicase/u8-totitle'.
36325         * modules/unicase/u8-totitle-tests: New file.
36326         * tests/unicase/test-u8-totitle.c: New file.
36327
36328         New module 'unicase/u32-totitle'.
36329         * lib/unicase/u32-totitle.c: New file.
36330         * modules/unicase/u32-totitle: New file.
36331
36332         New module 'unicase/u16-totitle'.
36333         * lib/unicase/u16-totitle.c: New file.
36334         * modules/unicase/u16-totitle: New file.
36335
36336         New module 'unicase/u8-totitle'.
36337         * lib/unicase/u8-totitle.c: New file.
36338         * lib/unicase/u-totitle.h: New file.
36339         * modules/unicase/u8-totitle: New file.
36340
36341         Tests for module 'unicase/u32-tolower'.
36342         * modules/unicase/u32-tolower-tests: New file.
36343         * tests/unicase/test-u32-tolower.c: New file.
36344
36345         Tests for module 'unicase/u16-tolower'.
36346         * modules/unicase/u16-tolower-tests: New file.
36347         * tests/unicase/test-u16-tolower.c: New file.
36348
36349         Tests for module 'unicase/u8-tolower'.
36350         * modules/unicase/u8-tolower-tests: New file.
36351         * tests/unicase/test-u8-tolower.c: New file.
36352
36353         New module 'unicase/u32-tolower'.
36354         * lib/unicase/u32-tolower.c: New file.
36355         * modules/unicase/u32-tolower: New file.
36356
36357         New module 'unicase/u16-tolower'.
36358         * lib/unicase/u16-tolower.c: New file.
36359         * modules/unicase/u16-tolower: New file.
36360
36361         New module 'unicase/u8-tolower'.
36362         * lib/unicase/u8-tolower.c: New file.
36363         * modules/unicase/u8-tolower: New file.
36364
36365         Tests for module 'unicase/u32-toupper'.
36366         * modules/unicase/u32-toupper-tests: New file.
36367         * tests/unicase/test-u32-toupper.c: New file.
36368
36369         Tests for module 'unicase/u16-toupper'.
36370         * modules/unicase/u16-toupper-tests: New file.
36371         * tests/unicase/test-u16-toupper.c: New file.
36372
36373         Tests for module 'unicase/u8-toupper'.
36374         * modules/unicase/u8-toupper-tests: New file.
36375         * tests/unicase/test-u8-toupper.c: New file.
36376
36377         New module 'unicase/u32-toupper'.
36378         * lib/unicase/u32-toupper.c: New file.
36379         * modules/unicase/u32-toupper: New file.
36380
36381         New module 'unicase/u16-toupper'.
36382         * lib/unicase/u16-toupper.c: New file.
36383         * modules/unicase/u16-toupper: New file.
36384
36385         New module 'unicase/u8-toupper'.
36386         * lib/unicase/u8-toupper.c: New file.
36387         * modules/unicase/u8-toupper: New file.
36388
36389         New module 'unicase/u32-casemap'.
36390         * lib/unicase/u32-casemap.c: New file.
36391         * modules/unicase/u32-casemap: New file.
36392
36393         New module 'unicase/u16-casemap'.
36394         * lib/unicase/u16-casemap.c: New file.
36395         * modules/unicase/u16-casemap: New file.
36396
36397         New module 'unicase/u8-casemap'.
36398         * lib/unicase/unicasemap.h: New file.
36399         * lib/unicase/u8-casemap.c: New file.
36400         * lib/unicase/u-casemap.h: New file.
36401         * modules/unicase/u8-casemap: New file.
36402
36403         New module 'unicase/special-casing'.
36404         * lib/unicase/special-casing.h: New file.
36405         * lib/unicase/special-casing.c: New file.
36406         * lib/unicase/special-casing-table.gperf: New file, generated by
36407         gen-uni-tables.c.
36408         * modules/unicase/special-casing: New file.
36409
36410         Tests for module 'unicase/locale-language'.
36411         * modules/unicase/locale-language-tests: New file.
36412         * tests/unicase/test-locale-language.sh: New file.
36413         * tests/unicase/test-locale-language.c: New file.
36414
36415         New module 'unicase/locale-language'.
36416         * lib/unicase/locale-language.c: New file.
36417         * lib/unicase/locale-languages.gperf: New file.
36418         * modules/unicase/locale-language: New file.
36419
36420         Generate more tables for case conversion and case folding.
36421         * lib/gen-uni-tables.c (SCC_*): New enum items.
36422         (struct special_casing_rule): New type.
36423         (casing_rules, num_casing_rules, allocated_casing_rules): New
36424         variables.
36425         (add_casing_rule, fill_casing_rules): New functions.
36426         (struct casefold_rule): New type.
36427         (casefolding_rules, num_casefolding_rules,
36428         allocated_casefolding_rules): New variables.
36429         (fill_casefolding_rules): New function.
36430         (unicode_casefold): New variable.
36431         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
36432         sort_casing_rules, output_casing_rules): New functions.
36433         (main): Accept to more arguments: SpecialCasing.txt and
36434         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
36435         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
36436         Output mapping for casefolding.
36437
36438         * lib/unicase.h: Include stdbool.h, uninorm.h.
36439         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
36440         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
36441         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
36442         arguments.
36443         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
36444         resultp arguments.
36445         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
36446         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
36447         resultp arguments.
36448         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
36449         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
36450         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
36451         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
36452         declarations.
36453         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
36454
36455 2009-03-08  Bruno Haible  <bruno@clisp.org>
36456
36457         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
36458         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
36459         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
36460         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
36461
36462 2009-03-07  Bruno Haible  <bruno@clisp.org>
36463
36464         Adjust u*_normcmp, u*_normcoll API.
36465         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
36466         u16_normcoll, u32_normcoll): Change failure conventions.
36467         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
36468         errno and return -1.
36469         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
36470
36471 2009-03-07  Bruno Haible  <bruno@clisp.org>
36472
36473         Tests for module 'uninorm/u32-normcoll'.
36474         * modules/uninorm/u32-normcoll-tests: New file.
36475         * tests/uninorm/test-u32-normcoll.c: New file.
36476
36477         Tests for module 'uninorm/u16-normcoll'.
36478         * modules/uninorm/u16-normcoll-tests: New file.
36479         * tests/uninorm/test-u16-normcoll.c: New file.
36480
36481         Tests for module 'uninorm/u8-normcoll'.
36482         * modules/uninorm/u8-normcoll-tests: New file.
36483         * tests/uninorm/test-u8-normcoll.c: New file.
36484
36485 2009-03-07  Bruno Haible  <bruno@clisp.org>
36486
36487         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
36488         tests/uninorm/test-u32-normcmp.c.
36489         * tests/uninorm/test-u32-normcmp.c: Include it.
36490         (test_nonascii): New function, extracted from main. Add some more
36491         tests.
36492         (main): Invoke test_ascii and test_nonascii.
36493         * modules/uninorm/u32-normcmp-tests (Files): Add
36494         tests/uninorm/test-u32-normcmp.h.
36495         (Depends-on): Remove uninorm/u32-normcmp.
36496
36497         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
36498         tests/uninorm/test-u16-normcmp.c.
36499         * tests/uninorm/test-u16-normcmp.c: Include it.
36500         (test_nonascii): New function, extracted from main. Add some more
36501         tests.
36502         (main): Invoke test_ascii and test_nonascii.
36503         * modules/uninorm/u16-normcmp-tests (Files): Add
36504         tests/uninorm/test-u16-normcmp.h.
36505         (Depends-on): Remove uninorm/u16-normcmp.
36506
36507         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
36508         tests/uninorm/test-u8-normcmp.c.
36509         * tests/uninorm/test-u8-normcmp.c: Include it.
36510         (test_nonascii): New function, extracted from main. Add some more
36511         tests.
36512         (main): Invoke test_ascii and test_nonascii.
36513         * modules/uninorm/u8-normcmp-tests (Files): Add
36514         tests/uninorm/test-u8-normcmp.h.
36515         (Depends-on): Remove uninorm/u8-normcmp.
36516
36517 2009-03-07  Bruno Haible  <bruno@clisp.org>
36518
36519         New module 'uninorm/u32-normcoll'.
36520         * lib/uninorm/u32-normcoll.c: New file.
36521         * modules/uninorm/u32-normcoll: New file.
36522
36523         New module 'uninorm/u16-normcoll'.
36524         * lib/uninorm/u16-normcoll.c: New file.
36525         * modules/uninorm/u16-normcoll: New file.
36526
36527         New module 'uninorm/u8-normcoll'.
36528         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
36529         declarations.
36530         * lib/uninorm/u8-normcoll.c: New file.
36531         * lib/uninorm/u-normcoll.h: New file.
36532         * modules/uninorm/u8-normcoll: New file.
36533
36534         New module 'uninorm/u32-normxfrm'.
36535         * lib/uninorm/u32-normxfrm.c: New file.
36536         * modules/uninorm/u32-normxfrm: New file.
36537
36538         New module 'uninorm/u16-normxfrm'.
36539         * lib/uninorm/u16-normxfrm.c: New file.
36540         * modules/uninorm/u16-normxfrm: New file.
36541
36542         New module 'uninorm/u8-normxfrm'.
36543         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
36544         declarations.
36545         * lib/uninorm/u8-normxfrm.c: New file.
36546         * lib/uninorm/u-normxfrm.h: New file.
36547         * modules/uninorm/u8-normxfrm: New file.
36548
36549 2009-03-07  Bruno Haible  <bruno@clisp.org>
36550
36551         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
36552         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
36553         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
36554
36555 2009-03-07  Bruno Haible  <bruno@clisp.org>
36556
36557         New module 'memxfrm'.
36558         * lib/memxfrm.h: New file.
36559         * lib/memxfrm.c: New file.
36560         * modules/memxfrm: New file.
36561
36562 2009-03-07  Bruno Haible  <bruno@clisp.org>
36563
36564         New module 'memcmp2'.
36565         * lib/memcmp2.h: New file.
36566         * lib/memcmp2.c: New file.
36567         * modules/memcmp2: New file.
36568
36569 2009-03-07  Bruno Haible  <bruno@clisp.org>
36570
36571         Tests for module 'uninorm/decomposing-form'.
36572         * modules/uninorm/decomposing-form-tests: New file.
36573         * tests/uninorm/test-decomposing-form.c: New file.
36574
36575         New module 'uninorm/decomposing-form'.
36576         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
36577         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
36578         Add 'decomposing_variant' field.
36579         * lib/uninorm/decomposing-form.c: New file.
36580         * lib/uninorm/nfc.c (uninorm_nfc): Update.
36581         * lib/uninorm/nfd.c (uninorm_nfd): Update.
36582         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
36583         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
36584         * modules/uninorm/decomposing-form: New file.
36585         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
36586         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
36587
36588 2009-03-07  Bruno Haible  <bruno@clisp.org>
36589
36590         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
36591         strings.
36592
36593 2009-03-06  Bruno Haible  <bruno@clisp.org>
36594
36595         Tests for module 'uninorm/u32-normcmp'.
36596         * tests/uninorm/test-u32-normcmp.c: New file.
36597         * modules/uninorm/u32-normcmp-tests: New file.
36598
36599         Tests for module 'uninorm/u16-normcmp'.
36600         * tests/uninorm/test-u16-normcmp.c: New file.
36601         * modules/uninorm/u16-normcmp-tests: New file.
36602
36603         Tests for module 'uninorm/u8-normcmp'.
36604         * tests/uninorm/test-u8-normcmp.c: New file.
36605         * modules/uninorm/u8-normcmp-tests: New file.
36606
36607         New module 'uninorm/u32-normcmp'.
36608         * lib/uninorm/u32-normcmp.c: New file.
36609         * modules/uninorm/u32-normcmp: New file.
36610
36611         New module 'uninorm/u16-normcmp'.
36612         * lib/uninorm/u16-normcmp.c: New file.
36613         * modules/uninorm/u16-normcmp: New file.
36614
36615         New module 'uninorm/u8-normcmp'.
36616         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
36617         declarations.
36618         * lib/uninorm/u8-normcmp.c: New file.
36619         * lib/uninorm/u-normcmp.h: New file.
36620         * modules/uninorm/u8-normcmp: New file.
36621
36622 2009-03-06  Bruno Haible  <bruno@clisp.org>
36623
36624         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
36625         Reported by Eric Blake.
36626
36627 2009-03-06  Eric Blake  <ebb9@byu.net>
36628             Bruno Haible  <bruno@clisp.org>
36629
36630         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
36631         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
36632         condition.
36633         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
36634         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
36635         condition.
36636         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
36637
36638 2009-03-06  Eric Blake  <ebb9@byu.net>
36639
36640         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
36641         to avoid compiler warnings.
36642         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
36643
36644 2009-03-05  Bruno Haible  <bruno@clisp.org>
36645
36646         * tests/test-ftell.c (main): Disable test beyond end of file on
36647         FreeMiNT.
36648         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
36649
36650 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
36651
36652         * lib/filevercmp.c: Move hidden files up in ordering.
36653         * tests/test-filevercmp.c: Add tests for hidden files.
36654
36655 2009-03-04  Bruno Haible  <bruno@clisp.org>
36656
36657         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
36658         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
36659         AM_CFLAGS.
36660         Reported by Simon Josefsson.
36661
36662 2009-03-03  Bruno Haible  <bruno@clisp.org>
36663
36664         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
36665         Reported by Simon Josefsson.
36666
36667         * doc/ld-version-script.texi: Update node reference.
36668
36669 2009-03-03  Bruno Haible  <bruno@clisp.org>
36670
36671         * modules/visibility (License): Change to 'unlimited'.
36672         Suggested by Simon Josefsson.
36673
36674 2009-03-03  Jim Meyering  <meyering@redhat.com>
36675
36676         unlinkdir: cannot_unlink_dir may modify process state
36677         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
36678         it's neither thread-safe nor appropriate for use in a library.
36679
36680 2009-03-03  Eric Blake  <ebb9@byu.net>
36681
36682         test-closein: silence test under Darwin
36683         * tests/test-closein.sh: Ignore stderr from cat, since we don't
36684         care if it dies from EPIPE or EBADF.
36685
36686 2009-03-03  Bruno Haible  <bruno@clisp.org>
36687
36688         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
36689         earlier.
36690         * doc/visibility.texi: Fix @node and @section.
36691
36692 2009-03-03  Simon Josefsson  <simon@josefsson.org>
36693
36694         * doc/gnulib.texi: Link to sections for ld version script and
36695         visibility.
36696         * doc/visibility.texi: Add @node and @section.
36697         * modules/ld-version-script: New module.
36698         * m4/ld-version-script.m4: New file.
36699         * doc/ld-version-script.texi: New file.
36700
36701 2009-03-02  David Lutterkort  <lutter@redhat.com>
36702
36703         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
36704         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36705
36706 2009-03-02  Bruno Haible  <bruno@clisp.org>
36707
36708         * doc/visibility.texi: Mention libtool's -export-symbols option.
36709
36710 2009-03-02  Jim Meyering  <meyering@redhat.com>
36711
36712         announce-gen: new option: --no-print-checksums
36713         * build-aux/announce-gen (usage): Describe it.
36714         (print_checksums): Print a newline here, not in the [*] footnote.
36715         (main): Honor it.
36716
36717 2009-03-01  Bruno Haible  <bruno@clisp.org>
36718
36719         Use socklen_t in the native Windows replacements prototypes.
36720         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
36721         instead of 'int'.
36722         * lib/getsockopt.c (rpl_getsockopt): Likewise.
36723         * lib/setsockopt.c (rpl_setsockopt): Likewise.
36724         * modules/getsockopt (Depends-on): Add socklen.
36725         * modules/setsockopt (Depends-on): Add socklen.
36726
36727 2009-03-01  Bruno Haible  <bruno@clisp.org>
36728
36729         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
36730         least 4.2.
36731
36732 2009-03-01  Eric Blake  <ebb9@byu.net>
36733             Bruno Haible  <bruno@clisp.org>
36734
36735         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
36736         error messages.
36737         * lib/wait-process.c (wait_subprocess): Omit error message about
36738         deadly signal sent to the child of termsigp != NULL.
36739
36740 2009-03-01  Eric Blake  <ebb9@byu.net>
36741
36742         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
36743
36744 2009-03-01  Bruno Haible  <bruno@clisp.org>
36745
36746         Avoid a gcc warning.
36747         * tests/test-sched.c (b): Make global.
36748         Reported by Eric Blake.
36749
36750 2009-01-19  Martin Lambers  <marlam@marlam.de>
36751
36752         Provide POSIX semantics for socket timeout options on W32.
36753         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
36754         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
36755         * modules/setsockopt: Depend on sys_time module for struct timeval.
36756         * modules/getsockopt: Depend on sys_time module for struct timeval.
36757
36758 2009-03-01  Simon Josefsson  <simon@josefsson.org>
36759
36760         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
36761         __USE_GNU, for consistency with netdb.in.h.
36762         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
36763
36764 2009-03-01  Bruno Haible  <bruno@clisp.org>
36765
36766         More support for FreeMiNT.
36767         * lib/fseeko.c (rpl_fseeko): Complete last commit.
36768         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
36769
36770 2009-03-01  Bruno Haible  <bruno@clisp.org>
36771
36772         More support for FreeMiNT.
36773         * lib/fpurge.c (fpurge): Correct last commit.
36774         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
36775
36776 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36777
36778         Fix unportable awk script in vc-list-files.
36779         * build-aux/vc-list-files: In the replacement awk script, use
36780         substr with a second argument of 1, not zero.
36781         Report by Simon Josefsson.
36782
36783 2009-02-28  Bruno Haible  <bruno@clisp.org>
36784
36785         More support for FreeMiNT.
36786         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
36787         to FreeMiNT today.
36788         * lib/fwriting.c (fwriting): Likewise.
36789         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
36790
36791 2009-02-28  Bruno Haible  <bruno@clisp.org>
36792
36793         * tests/test-freadseek.c (main): Disable test beyond end of file on
36794         FreeMiNT.
36795         * tests/test-ftello.c (main): Likewise.
36796         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
36797
36798 2009-02-28  Bruno Haible  <bruno@clisp.org>
36799
36800         Add tentative support for FreeMiNT.
36801         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
36802         * lib/fpurge.c (fpurge): Likewise.
36803         * lib/freadable.c (freadable): Likewise.
36804         * lib/freading.c (freading): Likewise.
36805         * lib/freadptr.c (freadptr): Likewise.
36806         * lib/freadseek.c (freadptrinc): Likewise.
36807         * lib/fseeko.c (rpl_fseeko): Likewise.
36808         * lib/fseterr.c (fseterr): Likewise.
36809         * lib/fwritable.c (fwritable): Likewise.
36810         * lib/fwriting.c (fwriting): Likewise.
36811         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
36812         Hourihane.
36813         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
36814
36815 2009-02-28  Bruno Haible  <bruno@clisp.org>
36816
36817         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
36818         SIGCHLD.
36819         Reported by Jim Meyering.
36820
36821 2009-02-28  Bruno Haible  <bruno@clisp.org>
36822
36823         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
36824         Mention the results of these tests on various platforms.
36825         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
36826         order.
36827         * doc/posix-functions/printf.texi: Likewise.
36828         * doc/posix-functions/snprintf.texi: Likewise.
36829         * doc/posix-functions/sprintf.texi: Likewise.
36830         * doc/posix-functions/vfprintf.texi: Likewise.
36831         * doc/posix-functions/vprintf.texi: Likewise.
36832         * doc/posix-functions/vsnprintf.texi: Likewise.
36833         * doc/posix-functions/vsprintf.texi: Likewise.
36834         * doc/glibc-functions/obstack_printf.texi: Likewise.
36835         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
36836
36837 2009-02-28  Bruno Haible  <bruno@clisp.org>
36838
36839         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
36840         Reported by Loïc Minier <lool@dooz.org>.
36841
36842 2009-02-27  Bruno Haible  <bruno@clisp.org>
36843
36844         * gnulib-tool (func_import): Make the sed expression used to create the
36845         sed script for updating the .gitignore file POSIX compliant.
36846         Reported by Eric Blake.
36847
36848 2009-02-27  Bruno Haible  <bruno@clisp.org>
36849
36850         * gnulib-tool (sed): Don't alias as "sed --posix".
36851         Reported by Eric Blake.
36852
36853 2009-02-27  Bruno Haible  <bruno@clisp.org>
36854
36855         Avoid test link errors.
36856         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
36857         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
36858         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
36859         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
36860         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36861
36862 2009-02-27  Bruno Haible  <bruno@clisp.org>
36863
36864         Avoid spurious "(cached)" in configure output.
36865         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
36866         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
36867         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
36868         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
36869         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
36870         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
36871         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
36872         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
36873         Reported by Eric Blake.
36874
36875 2009-02-27  Eric Blake  <ebb9@byu.net>
36876
36877         printf: fix regression in previous patch
36878         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
36879
36880 2009-02-27  Bruno Haible  <bruno@clisp.org>
36881
36882         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
36883         value.
36884         * lib/stdint.in.h: Likewise.
36885         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
36886
36887 2009-02-27  Eric Blake  <ebb9@byu.net>
36888
36889         doc: mention more functions added in cygwin 1.7.0
36890         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
36891         addition.
36892         * doc/posix-functions/open_wmemstream.texi: Likewise.
36893         * doc/posix-functions/wcsnlen.texi: Likewise.
36894         * doc/posix-functions/wcsnrtombs.texi: Likewise.
36895         * doc/posix-functions/wcstod.texi: Likewise.
36896         * doc/posix-functions/wcstof.texi: Likewise.
36897         * doc/posix-functions/wcstoimax.texi: Likewise.
36898         * doc/posix-functions/wcstok.texi: Likewise.
36899         * doc/posix-functions/wcstoumax.texi: Likewise.
36900
36901         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
36902         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
36903         * doc/posix-functions/fprintf.texi: Update.
36904         * doc/posix-functions/printf.texi: Update.
36905         * doc/posix-functions/snprintf.texi: Update.
36906         * doc/posix-functions/sprintf.texi: Update.
36907         * doc/posix-functions/vfprintf.texi: Update.
36908         * doc/posix-functions/vprintf.texi: Update.
36909         * doc/posix-functions/vsnprintf.texi: Update.
36910         * doc/posix-functions/vsprintf.texi: Update.
36911         * doc/glibc-functions/obstack_printf.texi: Update.
36912         * doc/glibc-functions/obstack_vprintf.texi: Update.
36913
36914 2009-02-26  Eric Blake  <ebb9@byu.net>
36915
36916         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
36917         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
36918         compilation bug by using runtime conversion.
36919         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
36920         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
36921         * modules/ceill-tests (Files): Use nan.h.
36922         * modules/floorl-tests (Files): Likewise.
36923         * modules/frexpl-tests (Files): Likewise.
36924         * modules/isnanl-tests (Files): Likewise.
36925         * modules/ldexpl-tests (Files): Likewise.
36926         * modules/roundl-tests (Files): Likewise.
36927         * modules/truncl-tests (Files): Likewise.
36928         * tests/test-ceill.c (main): Use a working NaN.
36929         * tests/test-floorl.c (main): Likewise.
36930         * tests/test-frexpl.c (main): Likewise.
36931         * tests/test-isnan.c (test_long_double): Likewise.
36932         * tests/test-isnanl.h (main): Likewise.
36933         * tests/test-ldexpl.h (main): Likewise.
36934         * tests/test-roundl.h (main): Likewise.
36935         * tests/test-truncl.h (main): Likewise.
36936         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
36937
36938 2009-02-26  Eric Blake  <ebb9@byu.net>
36939             Bruno Haible  <bruno@clisp.org>
36940
36941         Work around a *printf bug with %ls on Solaris.
36942         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
36943         precision is specified, sprintf stops converting the wide string
36944         argument when the number of bytes that have been produced by this
36945         conversion equals or exceeds the precision.
36946         * doc/posix-functions/fprintf.texi: Update.
36947         * doc/posix-functions/printf.texi: Update.
36948         * doc/posix-functions/snprintf.texi: Update.
36949         * doc/posix-functions/sprintf.texi: Update.
36950         * doc/posix-functions/vfprintf.texi: Update.
36951         * doc/posix-functions/vprintf.texi: Update.
36952         * doc/posix-functions/vsnprintf.texi: Update.
36953         * doc/posix-functions/vsprintf.texi: Update.
36954         * doc/glibc-functions/obstack_printf.texi: Update.
36955         * doc/glibc-functions/obstack_vprintf.texi: Update.
36956
36957 2009-02-26  Eric Blake  <ebb9@byu.net>
36958
36959         stdlib: favor compiler check of random.h
36960         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
36961         to avoid an ObjC random.h installed by Swarm.
36962
36963 2009-02-26  Bruno Haible  <bruno@clisp.org>
36964
36965         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
36966         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
36967         Reported by Gary V. Vaughan <gary@gnu.org>.
36968
36969 2009-02-26  Bruno Haible  <bruno@clisp.org>
36970
36971         Fix *printf behaviour regarding the %ls directive.
36972         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
36973         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
36974         NEED_PRINTF_DIRECTIVE_LS.
36975         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
36976         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
36977         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
36978         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
36979         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
36980         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
36981         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
36982         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
36983         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
36984         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
36985         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
36986         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
36987         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
36988         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
36989         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
36990         * doc/posix-functions/fprintf.texi: Update.
36991         * doc/posix-functions/printf.texi: Update.
36992         * doc/posix-functions/snprintf.texi: Update.
36993         * doc/posix-functions/sprintf.texi: Update.
36994         * doc/posix-functions/vfprintf.texi: Update.
36995         * doc/posix-functions/vprintf.texi: Update.
36996         * doc/posix-functions/vsnprintf.texi: Update.
36997         * doc/posix-functions/vsprintf.texi: Update.
36998         * doc/glibc-functions/obstack_printf.texi: Update.
36999         * doc/glibc-functions/obstack_vprintf.texi: Update.
37000         Reported by Eric Blake.
37001
37002 2009-02-25  Bruno Haible  <bruno@clisp.org>
37003
37004         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
37005         with known value.
37006         Reported by Gary V. Vaughan <gary@gnu.org>.
37007
37008 2009-02-25  Bruno Haible  <bruno@clisp.org>
37009
37010         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
37011         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
37012         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
37013         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
37014         Reported by Gary V. Vaughan <gary@gnu.org>.
37015
37016 2009-02-25  Bruno Haible  <bruno@clisp.org>
37017
37018         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
37019         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
37020         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
37021         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
37022         Reported by Gary V. Vaughan <gary@gnu.org>.
37023
37024 2009-02-25  Eric Blake  <ebb9@byu.net>
37025
37026         tests: skip fseek/ftell tests if ungetc is broken
37027         * m4/ungetc.m4: New file.
37028         * modules/fseek-tests: Split test, so ungetc dependency is
37029         separate from rest of test.
37030         * modules/fseeko-tests: Likewise.
37031         * modules/ftell-tests: Likewise.
37032         * modules/ftello-tests: Likewise.
37033         * tests/test-fseek.c (main): Isolate ungetc dependency.
37034         * tests/test-fseeko.c (main): Likewise.
37035         * tests/test-ftell.c (main): Likewise.
37036         * tests/test-ftello.c (main): Likewise.
37037         * tests/test-fseek2.sh: New file.
37038         * tests/test-fseeko2.sh: Likewise.
37039         * tests/test-ftell2.sh: Likewise.
37040         * tests/test-ftello2.sh: Likewise.
37041
37042 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
37043
37044         test-getaddrinfo: fix usage of skip return code 77
37045         * tests/test-gettaddrinfo.c: Return skip code 77 only
37046         for first occurance of skip (4x77 is not 77)
37047
37048 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
37049
37050         strtod: avoid C99 decl-after-statement
37051         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
37052
37053 2009-02-24  Eric Blake  <ebb9@byu.net>
37054
37055         strtod: detect HP-UX 11.31 bug
37056         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
37057         Reported by Gary V. Vaughan.
37058
37059 2009-02-23  Bruno Haible  <bruno@clisp.org>
37060
37061         Fix invalid read past end of memory block.
37062         * lib/vasnprintf.c (DCHAR_SET): Define.
37063         (local_wcslen): Define only when needed.
37064         (local_strnlen, local_wcsnlen): New functions.
37065         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
37066         directives that involve a conversion ourselves.
37067         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
37068         wcsnlen, mbrtowc, wcrtomb.
37069         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
37070         * tests/test-vasprintf-posix.c (test_function): Likewise.
37071         * tests/test-snprintf-posix.h (test_function): Likewise.
37072         * tests/test-sprintf-posix.h (test_function): Likewise.
37073         Reported by Ben Pfaff <blp@cs.stanford.edu>.
37074
37075 2009-02-22  Bruno Haible  <bruno@clisp.org>
37076
37077         Implement new clarified decomposition of Hangul syllables.
37078         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
37079         of type LTV, return only a pairwise decomposition.
37080         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
37081         Likewise.
37082         * tests/uninorm/test-decomposition.c (main): Updated expected result.
37083         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
37084         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
37085
37086 2009-02-22  Bruno Haible  <bruno@clisp.org>
37087
37088         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
37089         zero-length results and shrink excess allocated memory.
37090         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
37091         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
37092         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
37093         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
37094         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
37095         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
37096         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
37097         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
37098         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
37099         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
37100         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
37101         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
37102
37103 2009-02-21  Bruno Haible  <bruno@clisp.org>
37104
37105         * doc/gnulib.texi: Include safe-alloc.texi earlier.
37106         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
37107         spaces after a period. Put a space between a macro name and its
37108         argument list. Trivial rewordings.
37109         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
37110         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
37111         (main): Return 0 explicitly.
37112
37113 2009-02-21  Bruno Haible  <bruno@clisp.org>
37114
37115         Tests for module 'uninorm/filter'.
37116         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
37117         * modules/uninorm/filter-tests: New file.
37118
37119         New module 'uninorm/filter'.
37120         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
37121         uninorm_filter_flush, uninorm_filter_free): New declarations.
37122         * lib/uninorm/uninorm-filter.c: New file.
37123         * modules/uninorm/filter: New file.
37124
37125 2009-02-21  Bruno Haible  <bruno@clisp.org>
37126
37127         Tests for module 'uninorm/nfkc'.
37128         * tests/uninorm/test-nfkc.c: New file.
37129         * tests/uninorm/test-u8-nfkc.c: New file.
37130         * tests/uninorm/test-u16-nfkc.c: New file.
37131         * tests/uninorm/test-u32-nfkc.c: New file.
37132         * tests/uninorm/test-u32-nfkc-big.sh: New file.
37133         * tests/uninorm/test-u32-nfkc-big.c: New file.
37134         * modules/uninorm/nfkc-tests: New file.
37135
37136         New module 'uninorm/nfkc'.
37137         * lib/uninorm/nfkc.c: New file.
37138         * modules/uninorm/nfkc: New file.
37139
37140         Tests for module 'uninorm/nfkd'.
37141         * tests/uninorm/test-nfkd.c: New file.
37142         * tests/uninorm/test-u8-nfkd.c: New file.
37143         * tests/uninorm/test-u16-nfkd.c: New file.
37144         * tests/uninorm/test-u32-nfkd.c: New file.
37145         * tests/uninorm/test-u32-nfkd-big.sh: New file.
37146         * tests/uninorm/test-u32-nfkd-big.c: New file.
37147         * modules/uninorm/nfkd-tests: New file.
37148
37149         New module 'uninorm/nfkd'.
37150         * lib/uninorm/nfkd.c: New file.
37151         * modules/uninorm/nfkd: New file.
37152
37153         Tests for module 'uninorm/nfc'.
37154         * tests/uninorm/test-nfc.c: New file.
37155         * tests/uninorm/test-u8-nfc.c: New file.
37156         * tests/uninorm/test-u16-nfc.c: New file.
37157         * tests/uninorm/test-u32-nfc.c: New file.
37158         * tests/uninorm/test-u32-nfc-big.sh: New file.
37159         * tests/uninorm/test-u32-nfc-big.c: New file.
37160         * modules/uninorm/nfc-tests: New file.
37161
37162         New module 'uninorm/nfc'.
37163         * lib/uninorm/nfc.c: New file.
37164         * modules/uninorm/nfc: New file.
37165
37166         Tests for module 'uninorm/nfd'.
37167         * tests/uninorm/test-nfd.c: New file.
37168         * tests/uninorm/test-u8-nfd.c: New file.
37169         * tests/uninorm/test-u16-nfd.c: New file.
37170         * tests/uninorm/test-u32-nfd.c: New file.
37171         * tests/uninorm/test-u32-nfd-big.sh: New file.
37172         * tests/uninorm/test-u32-nfd-big.c: New file.
37173         * tests/uninorm/test-u32-normalize-big.h: New file.
37174         * tests/uninorm/test-u32-normalize-big.c: New file.
37175         * tests/uninorm/NormalizationTest.txt: New file, created from
37176         Unicode 5.1.0 NormalizationTest.txt.
37177         * modules/uninorm/nfd-tests: New file.
37178
37179         New module 'uninorm/nfd'.
37180         * lib/uninorm/nfd.c: New file.
37181         * modules/uninorm/nfd: New file.
37182
37183         New module 'uninorm/u32-normalize'.
37184         * lib/uninorm/u32-normalize.c: New file.
37185         * modules/uninorm/u32-normalize: New file.
37186
37187         New module 'uninorm/u16-normalize'.
37188         * lib/uninorm/u16-normalize.c: New file.
37189         * modules/uninorm/u16-normalize: New file.
37190
37191         New module 'uninorm/u8-normalize'.
37192         * lib/uninorm/u8-normalize.c: New file.
37193         * lib/uninorm/normalize-internal.h: New file.
37194         * lib/uninorm/u-normalize-internal.h: New file.
37195         * modules/uninorm/u8-normalize: New file.
37196
37197         New module 'uninorm/decompose-internal'.
37198         * lib/uninorm/decompose-internal.c: New file.
37199         * modules/uninorm/decompose-internal: New file.
37200
37201         Tests for module 'uninorm/composition'.
37202         * tests/uninorm/test-composition.c: New file.
37203         * modules/uninorm/composition-tests: New file.
37204
37205         New module 'uninorm/composition'.
37206         * lib/uninorm/composition.c: New file.
37207         * lib/uninorm/composition-table.gperf: New file, generated by
37208         gen-uni-tables.
37209         * modules/uninorm/composition: New file.
37210
37211         Tests for module 'uninorm/compat-decomposition'.
37212         * tests/uninorm/test-compat-decomposition.c: New file.
37213         * modules/uninorm/compat-decomposition-tests: New file.
37214
37215         New module 'uninorm/compat-decomposition'.
37216         * lib/uninorm/decompose-internal.h: New file.
37217         * lib/uninorm/compat-decomposition.c: New file.
37218         * modules/uninorm/compat-decomposition: New file.
37219
37220         Tests for module 'uninorm/canonical-decomposition'.
37221         * tests/uninorm/test-canonical-decomposition.c: New file.
37222         * modules/uninorm/canonical-decomposition-tests: New file.
37223
37224         New module 'uninorm/canonical-decomposition'.
37225         * lib/uninorm/canonical-decomposition.c: New file.
37226         * modules/uninorm/canonical-decomposition: New file.
37227
37228         Tests for module 'uninorm/decomposition'.
37229         * tests/uninorm/test-decomposition.c: New file.
37230         * modules/uninorm/decomposition-tests: New file.
37231
37232         New module 'uninorm/decomposition'.
37233         * lib/uninorm/decomposition.c: New file.
37234         * modules/uninorm/decomposition: New file.
37235
37236         New module 'uninorm/decomposition-table'.
37237         * lib/uninorm/decomposition-table.h: New file.
37238         * lib/uninorm/decomposition-table.c: New file.
37239         * lib/uninorm/decomposition-table1.h: New file, generated by
37240         gen-uni-tables.
37241         * lib/uninorm/decomposition-table2.h: New file, generated by
37242         gen-uni-tables.
37243         * modules/uninorm/decomposition-table: New file.
37244
37245         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
37246         (UC_DECOMP_*): New enumeration items.
37247         (get_decomposition): New function.
37248         (struct decomp_table): New type.
37249         (output_decomposition, output_decomposition_tables): New functions.
37250         (unicode_composition_exclusions): New variable.
37251         (fill_composition_exclusions, debug_output_composition_tables): New
37252         functions.
37253         (main): Accept one more argument. Invoke fill_composition_exclusions.
37254         Output decomposition and composition tables.
37255
37256         New module 'uninorm/base'.
37257         * lib/uninorm.h: New file.
37258         * lib/unictype.h: Update comment.
37259         * modules/uninorm/base: New file.
37260
37261 2009-02-21  David Lutterkort  <lutter@redhat.com>
37262
37263         Tests for module 'safe-alloc'.
37264         * tests/test-safe-alloc.c: New file.
37265         * modules/safe-alloc-tests: New file.
37266
37267         New module 'safe-alloc'.
37268         * lib/safe-alloc.h: New file.
37269         * lib/safe-alloc.c: New file.
37270         * m4/safe-alloc.m4: New file.
37271         * modules/safe-alloc: New file.
37272         * doc/safe-alloc.texi: New file.
37273         * doc/gnulib.texi: Include it.
37274         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
37275         safe-alloc.
37276
37277 2009-02-18  Bruno Haible  <bruno@clisp.org>
37278
37279         Fix link error on non-glibc systems.
37280         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
37281         variable.
37282         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37283
37284 2009-02-18  Jim Meyering  <meyering@redhat.com>
37285
37286         fts: avoid used-uninitialized error due to recent change
37287         * lib/fts.c (fts_read): Guard uses of the new member,
37288         parent->fts_n_dirs_remaining, since it's not relevant for
37289         the parent of a directory specified on the command-line.
37290
37291 2009-02-17  James Youngman  <jay@gnu.org>
37292             Bruno Haible  <bruno@clisp.org>
37293
37294         * m4/include_next.m4: Reformulate comment.
37295
37296 2009-02-16  Jim Meyering  <meyering@redhat.com>
37297
37298         fts: add #if guards so that the fts_lgpl module still builds
37299         * lib/fts.c: Guard just-added hash-table-using parts with
37300         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
37301         Reported by Simon Josefsson.
37302
37303 2009-02-15  Bruno Haible  <bruno@clisp.org>
37304
37305         * modules/array-mergesort-tests: New file.
37306         * tests/test-array-mergesort.c: New file.
37307
37308         New module 'array-mergesort'.
37309         * modules/array-mergesort: New file.
37310         * lib/array-mergesort.h: New file.
37311
37312 2009-02-15  Bruno Haible  <bruno@clisp.org>
37313
37314         Fix 2009-02-07 commit.
37315         * lib/gen-uni-tables.c (output_predicate, output_category,
37316         output_combclass, output_bidi_category, output_decimal_digit,
37317         output_digit, output_numeric, output_mirror, output_scripts,
37318         output_ident_category, output_simple_mapping): Fix format directives.
37319         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
37320
37321 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
37322
37323         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
37324         fixes are available from IBM.
37325
37326 2009-02-13  Jim Meyering  <meyering@redhat.com>
37327
37328         fts: arrange not to stat non-directories in more cases
37329         This makes GNU find (when it doesn't need to stat each file)
37330         *much* more efficient at traversing reiserfs file systems.
37331         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
37332         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
37333         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
37334         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
37335         (leaf_optimization_applies): New function.
37336         (LCO_hash, LCO_compare): New helper functions.
37337         (link_count_optimize_ok): New function.
37338         (fts_stat): Initialize new member (if dir).
37339         (fts_read): Decrement parent's fts_n_dirs_remaining count if
37340         we've just stat'ed a directory.  Skip the stat call when possible.
37341         ---
37342         Note this AFS-related exchange:
37343         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
37344         and note find's pioctl call in find/fstype.c.
37345         But that is necessary only if you want to enable the
37346         optimization for AFS, and for now, I don't.
37347
37348         fts: move a function definition "up" (no semantic change)
37349         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
37350         "up" to precede upcoming use of a related function.
37351
37352 2009-02-11  Jim Meyering  <meyering@redhat.com>
37353
37354         fts: correct internal computation of nlinks (optimization-related)
37355         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
37356         whether the current entry is a directory, so don't test it.
37357
37358 2009-02-10  Bruno Haible  <bruno@clisp.org>
37359
37360         Tests for module 'uniwbrk/ulc-wordbreaks'.
37361         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
37362         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
37363         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
37364
37365         Tests for module 'uniwbrk/u32-wordbreaks'.
37366         * modules/uniwbrk/u32-wordbreaks-tests: New file.
37367         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
37368
37369         Tests for module 'uniwbrk/u16-wordbreaks'.
37370         * modules/uniwbrk/u16-wordbreaks-tests: New file.
37371         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
37372
37373         Tests for module 'uniwbrk/u8-wordbreaks'.
37374         * modules/uniwbrk/u8-wordbreaks-tests: New file.
37375         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
37376
37377 2009-02-10  Bruno Haible  <bruno@clisp.org>
37378
37379         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
37380         property.
37381         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
37382         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
37383         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
37384
37385 2009-02-10  Simon Josefsson  <simon@josefsson.org>
37386
37387         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
37388         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
37389
37390 2009-02-10  Bruno Haible  <bruno@clisp.org>
37391
37392         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
37393         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
37394         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
37395         * lib/unilbrk/u8-possible-linebreaks.c: Update.
37396         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
37397         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
37398
37399 2009-02-09  Simon Josefsson  <simon@josefsson.org>
37400
37401         * lib/sockets.h (gl_fd_to_handle): New function.
37402
37403         * tests/test-sockets.c: Call gl_fd_to_handle.
37404
37405 2009-02-09  Bruno Haible  <bruno@clisp.org>
37406
37407         * doc/havelib.texi: Document the conventions on bi-arch systems.
37408
37409 2009-02-08  Bruno Haible  <bruno@clisp.org>
37410
37411         Document the AC_LIB_LINKFLAGS macro.
37412         * doc/havelib.texi: New file, mostly written on 2005-05-24.
37413         * doc/gnulib.texi: Include it.
37414
37415 2009-02-08  Bruno Haible  <bruno@clisp.org>
37416
37417         Fix wrong order of sections, compared to TOC.
37418         * doc/gnulib.texi: Include relocatable-maint.texi after the
37419         "Regular expressions" node, not before.
37420
37421 2009-02-08  Bruno Haible  <bruno@clisp.org>
37422
37423         Tests for module 'unicase/totitle'.
37424         * modules/unicase/totitle-tests: New file.
37425
37426         Tests for module 'unicase/tolower'.
37427         * modules/unicase/tolower-tests: New file.
37428
37429         Tests for module 'unicase/toupper'.
37430         * modules/unicase/toupper-tests: New file.
37431         * tests/unicase/test-mapping-part1.h: New file.
37432         * tests/unicase/test-mapping-part2.h: New file.
37433
37434         New module 'unicase/totitle'.
37435         * modules/unicase/totitle: New file.
37436         * lib/unicase/totitle.c: New file.
37437
37438         New module 'unicase/tolower'.
37439         * modules/unicase/tolower: New file.
37440         * lib/unicase/tolower.c: New file.
37441
37442         New module 'unicase/toupper'.
37443         * modules/unicase/toupper: New file.
37444         * lib/unicase/toupper.c: New file.
37445         * lib/unicase/simple-mapping.h: New file.
37446
37447         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
37448         (mapping_table): New structure.
37449         (output_simple_mapping): New function.
37450         (main): Invoke output_simple_mapping_test and output_simple_mapping.
37451         * modules/gen-uni-tables (Description): Update.
37452         * lib/unicase/toupper.h: New file, automatically generated by
37453         gen-uni-tables.
37454         * lib/unicase/tolower.h: New file, automatically generated by
37455         gen-uni-tables.
37456         * lib/unicase/totitle.h: New file, automatically generated by
37457         gen-uni-tables.
37458         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
37459         gen-uni-tables.
37460         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
37461         gen-uni-tables.
37462         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
37463         gen-uni-tables.
37464
37465         New module 'unicase/base'.
37466         * modules/unicase/base: New file.
37467         * lib/unicase.h: New file.
37468
37469 2009-02-08  Bruno Haible  <bruno@clisp.org>
37470
37471         New module 'uniwbrk/ulc-wordbreaks'.
37472         * modules/uniwbrk/ulc-wordbreaks: New file.
37473         * lib/uniwbrk/ulc-wordbreaks.c: New file.
37474
37475         New module 'uniwbrk/u32-wordbreaks'.
37476         * modules/uniwbrk/u32-wordbreaks: New file.
37477         * lib/uniwbrk/u32-wordbreaks.c: New file.
37478
37479         New module 'uniwbrk/u16-wordbreaks'.
37480         * modules/uniwbrk/u16-wordbreaks: New file.
37481         * lib/uniwbrk/u16-wordbreaks.c: New file.
37482
37483         New module 'uniwbrk/u8-wordbreaks'.
37484         * modules/uniwbrk/u8-wordbreaks: New file.
37485         * lib/uniwbrk/u8-wordbreaks.c: New file.
37486         * lib/uniwbrk/u-wordbreaks.h: New file.
37487
37488         New module 'uniwbrk/table'.
37489         * modules/uniwbrk/table: New file.
37490         * lib/uniwbrk/wbrktable.h: New file.
37491         * lib/uniwbrk/wbrktable.c: New file.
37492
37493         New module 'uniwbrk/wordbreak-property'.
37494         * modules/uniwbrk/wordbreak-property: New file.
37495         * lib/uniwbrk/wordbreak-property.c: New file.
37496
37497         * lib/gen-uni-tables.c (WBP_*): New enum items.
37498         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
37499         (unicode_org_wbp): New variable.
37500         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
37501         New functions.
37502         (wbp_table): New structure.
37503         (output_wbp, output_wbrk_tables): New functions.
37504         (main): Accept additional argument. Invoke fill_org_wbp,
37505         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
37506         output_wbrk_tables.
37507         * modules/gen-uni-tables (Description): Update.
37508         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
37509         gen-uni-tables.
37510
37511         New module 'uniwbrk/base'.
37512         * modules/uniwbrk/base: New file.
37513         * lib/uniwbrk.h: New file.
37514
37515 2009-02-08  Bruno Haible  <bruno@clisp.org>
37516
37517         Update to Unicode 5.1.0.
37518         * lib/gen-uni-tables.c (is_property_alphabetic): Include
37519         U+2185..U+2188.
37520         (is_property_default_ignorable_code_point): Don't include characters
37521         of category Cc or Cs and not-a-characters.
37522         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
37523         U+0D79, U+109E, U+109F, U+A60C.
37524         * lib/unictype/bidi_of.h: Regenerated.
37525         * lib/unictype/blocks.h: Regenerated.
37526         * lib/unictype/categ_C.h: Regenerated.
37527         * lib/unictype/categ_Cf.h: Regenerated.
37528         * lib/unictype/categ_Cn.h: Regenerated.
37529         * lib/unictype/categ_L.h: Regenerated.
37530         * lib/unictype/categ_Ll.h: Regenerated.
37531         * lib/unictype/categ_Lm.h: Regenerated.
37532         * lib/unictype/categ_Lo.h: Regenerated.
37533         * lib/unictype/categ_Lu.h: Regenerated.
37534         * lib/unictype/categ_M.h: Regenerated.
37535         * lib/unictype/categ_Mc.h: Regenerated.
37536         * lib/unictype/categ_Me.h: Regenerated.
37537         * lib/unictype/categ_Mn.h: Regenerated.
37538         * lib/unictype/categ_N.h: Regenerated.
37539         * lib/unictype/categ_Nd.h: Regenerated.
37540         * lib/unictype/categ_Nl.h: Regenerated.
37541         * lib/unictype/categ_No.h: Regenerated.
37542         * lib/unictype/categ_P.h: Regenerated.
37543         * lib/unictype/categ_Pd.h: Regenerated.
37544         * lib/unictype/categ_Pe.h: Regenerated.
37545         * lib/unictype/categ_Pf.h: Regenerated.
37546         * lib/unictype/categ_Pi.h: Regenerated.
37547         * lib/unictype/categ_Po.h: Regenerated.
37548         * lib/unictype/categ_Ps.h: Regenerated.
37549         * lib/unictype/categ_S.h: Regenerated.
37550         * lib/unictype/categ_Sk.h: Regenerated.
37551         * lib/unictype/categ_Sm.h: Regenerated.
37552         * lib/unictype/categ_So.h: Regenerated.
37553         * lib/unictype/categ_of.h: Regenerated.
37554         * lib/unictype/combining.h: Regenerated.
37555         * lib/unictype/ctype_alnum.h: Regenerated.
37556         * lib/unictype/ctype_alpha.h: Regenerated.
37557         * lib/unictype/ctype_graph.h: Regenerated.
37558         * lib/unictype/ctype_lower.h: Regenerated.
37559         * lib/unictype/ctype_print.h: Regenerated.
37560         * lib/unictype/ctype_punct.h: Regenerated.
37561         * lib/unictype/ctype_upper.h: Regenerated.
37562         * lib/unictype/decdigit.h: Regenerated.
37563         * lib/unictype/digit.h: Regenerated.
37564         * lib/unictype/mirror.h: Regenerated.
37565         * lib/unictype/numeric.h: Regenerated.
37566         * lib/unictype/pr_alphabetic.h: Regenerated.
37567         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
37568         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
37569         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
37570         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
37571         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
37572         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
37573         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
37574         * lib/unictype/pr_combining.h: Regenerated.
37575         * lib/unictype/pr_dash.h: Regenerated.
37576         * lib/unictype/pr_decimal_digit.h: Regenerated.
37577         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
37578         * lib/unictype/pr_deprecated.h: Regenerated.
37579         * lib/unictype/pr_diacritic.h: Regenerated.
37580         * lib/unictype/pr_extender.h: Regenerated.
37581         * lib/unictype/pr_format_control.h: Regenerated.
37582         * lib/unictype/pr_grapheme_base.h: Regenerated.
37583         * lib/unictype/pr_grapheme_extend.h: Regenerated.
37584         * lib/unictype/pr_grapheme_link.h: Regenerated.
37585         * lib/unictype/pr_id_continue.h: Regenerated.
37586         * lib/unictype/pr_id_start.h: Regenerated.
37587         * lib/unictype/pr_ideographic.h: Regenerated.
37588         * lib/unictype/pr_ignorable_control.h: Regenerated.
37589         * lib/unictype/pr_lowercase.h: Regenerated.
37590         * lib/unictype/pr_math.h: Regenerated.
37591         * lib/unictype/pr_numeric.h: Regenerated.
37592         * lib/unictype/pr_other_alphabetic.h: Regenerated.
37593         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
37594         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
37595         * lib/unictype/pr_other_id_continue.h: Regenerated.
37596         * lib/unictype/pr_other_lowercase.h: Regenerated.
37597         * lib/unictype/pr_other_math.h: Regenerated.
37598         * lib/unictype/pr_punctuation.h: Regenerated.
37599         * lib/unictype/pr_sentence_terminal.h: Regenerated.
37600         * lib/unictype/pr_soft_dotted.h: Regenerated.
37601         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
37602         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
37603         * lib/unictype/pr_unified_ideograph.h: Regenerated.
37604         * lib/unictype/pr_uppercase.h: Regenerated.
37605         * lib/unictype/pr_xid_continue.h: Regenerated.
37606         * lib/unictype/pr_xid_start.h: Regenerated.
37607         * lib/unictype/pr_zero_width.h: Regenerated.
37608         * lib/unictype/scripts.h: Regenerated.
37609         * lib/unictype/scripts_byname.gperf: Regenerated.
37610         * lib/unictype/sy_java_ident.h: Regenerated.
37611         * lib/unilbrk/lbrkprop1.h: Regenerated.
37612         * lib/unilbrk/lbrkprop2.h: Regenerated.
37613         * tests/unictype/test-categ_C.c: Regenerated.
37614         * tests/unictype/test-categ_Cf.c: Regenerated.
37615         * tests/unictype/test-categ_Cn.c: Regenerated.
37616         * tests/unictype/test-categ_L.c: Regenerated.
37617         * tests/unictype/test-categ_Ll.c: Regenerated.
37618         * tests/unictype/test-categ_Lm.c: Regenerated.
37619         * tests/unictype/test-categ_Lo.c: Regenerated.
37620         * tests/unictype/test-categ_Lu.c: Regenerated.
37621         * tests/unictype/test-categ_M.c: Regenerated.
37622         * tests/unictype/test-categ_Mc.c: Regenerated.
37623         * tests/unictype/test-categ_Me.c: Regenerated.
37624         * tests/unictype/test-categ_Mn.c: Regenerated.
37625         * tests/unictype/test-categ_N.c: Regenerated.
37626         * tests/unictype/test-categ_Nd.c: Regenerated.
37627         * tests/unictype/test-categ_Nl.c: Regenerated.
37628         * tests/unictype/test-categ_No.c: Regenerated.
37629         * tests/unictype/test-categ_P.c: Regenerated.
37630         * tests/unictype/test-categ_Pd.c: Regenerated.
37631         * tests/unictype/test-categ_Pe.c: Regenerated.
37632         * tests/unictype/test-categ_Pf.c: Regenerated.
37633         * tests/unictype/test-categ_Pi.c: Regenerated.
37634         * tests/unictype/test-categ_Po.c: Regenerated.
37635         * tests/unictype/test-categ_Ps.c: Regenerated.
37636         * tests/unictype/test-categ_S.c: Regenerated.
37637         * tests/unictype/test-categ_Sk.c: Regenerated.
37638         * tests/unictype/test-categ_Sm.c: Regenerated.
37639         * tests/unictype/test-categ_So.c: Regenerated.
37640         * tests/unictype/test-ctype_alnum.c: Regenerated.
37641         * tests/unictype/test-ctype_alpha.c: Regenerated.
37642         * tests/unictype/test-ctype_graph.c: Regenerated.
37643         * tests/unictype/test-ctype_lower.c: Regenerated.
37644         * tests/unictype/test-ctype_print.c: Regenerated.
37645         * tests/unictype/test-ctype_punct.c: Regenerated.
37646         * tests/unictype/test-ctype_upper.c: Regenerated.
37647         * tests/unictype/test-decdigit.h: Regenerated.
37648         * tests/unictype/test-digit.h: Regenerated.
37649         * tests/unictype/test-numeric.h: Regenerated.
37650         * tests/unictype/test-pr_alphabetic.c: Regenerated.
37651         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
37652         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
37653         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
37654         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
37655         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
37656         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
37657         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
37658         * tests/unictype/test-pr_combining.c: Regenerated.
37659         * tests/unictype/test-pr_dash.c: Regenerated.
37660         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
37661         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
37662         * tests/unictype/test-pr_deprecated.c: Regenerated.
37663         * tests/unictype/test-pr_diacritic.c: Regenerated.
37664         * tests/unictype/test-pr_extender.c: Regenerated.
37665         * tests/unictype/test-pr_format_control.c: Regenerated.
37666         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
37667         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
37668         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
37669         * tests/unictype/test-pr_id_continue.c: Regenerated.
37670         * tests/unictype/test-pr_id_start.c: Regenerated.
37671         * tests/unictype/test-pr_ideographic.c: Regenerated.
37672         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
37673         * tests/unictype/test-pr_lowercase.c: Regenerated.
37674         * tests/unictype/test-pr_math.c: Regenerated.
37675         * tests/unictype/test-pr_numeric.c: Regenerated.
37676         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
37677         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
37678         Regenerated.
37679         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
37680         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
37681         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
37682         * tests/unictype/test-pr_other_math.c: Regenerated.
37683         * tests/unictype/test-pr_punctuation.c: Regenerated.
37684         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
37685         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
37686         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
37687         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
37688         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
37689         * tests/unictype/test-pr_uppercase.c: Regenerated.
37690         * tests/unictype/test-pr_xid_continue.c: Regenerated.
37691         * tests/unictype/test-pr_xid_start.c: Regenerated.
37692         * tests/unictype/test-pr_zero_width.c: Regenerated.
37693
37694         Update to Unicode 5.1.0.
37695         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
37696         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
37697         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
37698         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
37699         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
37700         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
37701         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
37702         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
37703         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
37704         (nonspacing_table_ind): Update.
37705         * tests/uniwidth/test-uc_width2.sh: Update expected result.
37706
37707         Update to Unicode 5.1.0.
37708         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
37709         code transform.
37710         * lib/uniname/uniname.c (unicode_character_name,
37711         unicode_name_character): Add the range 0x1Fxxx to the code transform.
37712         * lib/uniname/uninames.h: Regenerated.
37713         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
37714
37715 2009-02-07  Bruno Haible  <bruno@clisp.org>
37716
37717         Merge gen-ctype and gen-lbrk into a single program.
37718         * lib/gen-uni-tables.c: New file, incorporating
37719         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
37720         Add directory prefixes to the names of the generated files.
37721         * lib/unictype/gen-ctype.c: Remove file.
37722         * lib/unilbrk/gen-lbrk.c: Remove file.
37723         * modules/gen-uni-tables: New file.
37724         * modules/unictype/gen-ctype: Remove file.
37725         * modules/unilbrk/gen-lbrk: Remove file.
37726
37727 2009-02-07  Bruno Haible  <bruno@clisp.org>
37728
37729         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
37730
37731         New module 'unistr/u32-strcoll'.
37732         * modules/unistr/u32-strcoll: New file.
37733         * lib/unistr/u32-strcoll.c: New file.
37734
37735         New module 'unistr/u16-strcoll'.
37736         * modules/unistr/u16-strcoll: New file.
37737         * lib/unistr/u16-strcoll.c: New file.
37738
37739         New module 'unistr/u8-strcoll'.
37740         * modules/unistr/u8-strcoll: New file.
37741         * lib/unistr/u8-strcoll.c: New file.
37742         * lib/unistr/u-strcoll.h: New file.
37743
37744 2009-02-07  Bruno Haible  <bruno@clisp.org>
37745
37746         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
37747         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
37748         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
37749         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
37750         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
37751         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
37752
37753 2009-02-07  Bruno Haible  <bruno@clisp.org>
37754
37755         Make 64-bit clean.
37756         * lib/unictype/gen-ctype.c (output_predicate, output_category,
37757         output_combclass, output_bidi_category, output_decimal_digit,
37758         output_digit, output_numeric, output_mirror, output_scripts,
37759         output_ident_category): Use proper width specifier in format strings.
37760
37761 2009-02-07  Bruno Haible  <bruno@clisp.org>
37762
37763         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
37764         failure behaviour.
37765
37766 2009-02-07  Jim Meyering  <meyering@redhat.com>
37767
37768         regex: avoid compilation failure with upcoming gcc-4.4
37769         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
37770         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
37771         "... error: integer overflow in preprocessor expression".
37772
37773 2009-02-05  Ben Pfaff  <blp@gnu.org>
37774
37775         Fix link errors on Windows when close module is used.
37776         * modules/close: Add $(LIB_CLOSE) to Link section.
37777         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
37778         $(LIB_CLOSE) on Windows.
37779
37780 2009-02-05  Jim Meyering  <meyering@redhat.com>
37781
37782         still avoid unused-parameter warnings, but do it cleanly
37783         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
37784         (get_fs_usage): Cast to void instead.
37785         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
37786         (dev_from_mount_options, read_file_system_list): Cast to void.
37787         Prompted by Bruno Haible.
37788
37789 2009-02-04  Jim Meyering  <meyering@redhat.com>
37790
37791         fsusage.c: correct copyright year
37792         * lib/fsusage.c: Reflect year in which the change is pushed into
37793
37794         avoid misc. warnings
37795         * lib/fsusage.c (UNUSED_PARAM): Define.
37796         (get_fs_usage): Mark parameter "disk" as unused.
37797         * lib/getugroups.c (getgrent): Use "void" in prototype.
37798         * lib/mountlist.c: Mark unused parameters.
37799         (read_file_system_list): Declare a local with "const".
37800         * lib/nanosleep.c (getnow): Declare static.
37801         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
37802
37803         dirfd: set errno upon failure
37804         * lib/dirfd.c: Include <errno.h>.
37805         Set errno to ENOTSUP when returning -1.
37806         * modules/dirfd (Depends-on): Add errno.
37807         Suggested by John Kodis <kodis@comcast.net>.
37808
37809 2009-02-01  Bruno Haible  <bruno@clisp.org>
37810
37811         Don't assume sizeof (long) >= sizeof (void *).
37812         * lib/memcmp.c: Include stdint.h.
37813         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
37814         srcp2 to 'const byte *'.
37815         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
37816         types to uintptr_t.
37817         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
37818         * modules/memcmp (Depends-on): Add stdint.
37819         Reported by Ozkan Sezer <sezeroz@gmail.com>.
37820
37821 2009-01-30  Eric Blake  <ebb9@byu.net>
37822
37823         fix more require-before-expand issues
37824         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
37825         expand, AC_PROG_AWK.
37826         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
37827
37828 2009-01-28  Eric Blake  <ebb9@byu.net>
37829
37830         version-etc: use consistent URL formatting
37831         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
37832         Improve formatting.  Use fputs for string without %.
37833
37834 2009-01-28  Jim Meyering  <meyering@redhat.com>
37835
37836         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
37837         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
37838         "underquoted definition of NAME" from autoconf-2.59.
37839
37840 2009-01-28  Bruno Haible  <bruno@clisp.org>
37841
37842         * doc/gnulib.texi: Add "Obsolete modules" to index.
37843
37844 2009-01-28  Jim Meyering  <meyering@redhat.com>
37845
37846         useless-if-before-free: recognize more variants
37847         * build-aux/useless-if-before-free: Also recognize e.g.,
37848         if (NULL != p) free (p);
37849
37850 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
37851
37852         test-getaddrinfo: skip (don't fail) this test when there's no network
37853         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
37854         on the presumption that it means you lack network access.
37855
37856 2009-01-26  Jim Meyering  <meyering@redhat.com>
37857
37858         fflush: avoid warnings on modern systems
37859         * lib/fflush.c (rpl_fflush): Move declarations of locals,
37860         pos and result, into scopes where they're used.
37861
37862 2009-01-26  Eric Blake  <ebb9@byu.net>
37863
37864         Silence warning reintroduced by recent extensions patch.
37865         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
37866         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
37867         autoconf.
37868
37869         Backport improved autoconf semantics of AC_DEFUN_ONCE.
37870         * m4/00gnulib.m4: New file.
37871         * gnulib-tool (func_get_filelist): Always use it.
37872         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
37873         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
37874
37875 2009-01-25  Bruno Haible  <bruno@clisp.org>
37876
37877         Make test-quotearg work on MacOS X and AIX.
37878         * tests/test-quotearg.sh: New file.
37879         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
37880         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
37881         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
37882         include <libintl.h>.
37883         (fake_locale): Remove variable.
37884         (gettext, dgettext, dcgettext): Remove functions.
37885         (main): Instead of setting a fake locale, set a real locale. Call
37886         textdomain and bindtextdomain.
37887         * modules/quotearg-tests (Files): Add the new files.
37888         (Depends-on): Add gettext, setenv, unsetenv.
37889         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
37890         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
37891         Augment TESTS_ENVIRONMENT.
37892
37893 2009-01-25  Bruno Haible  <bruno@clisp.org>
37894
37895         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
37896         fr_FR.ISO8859-1 locale on MacOS X.
37897         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
37898         ja_JP.eucJP locale on MacOS X.
37899         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
37900         zh_CN.GB18030 locale on MacOS X.
37901
37902 2009-01-25  Bruno Haible  <bruno@clisp.org>
37903
37904         Avoid link errors on MacOS X 10.3.
37905         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
37906         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
37907
37908 2009-01-25  Bruno Haible  <bruno@clisp.org>
37909
37910         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
37911         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
37912         * modules/pipe (Files): Remove m4/posix_spawn.m4.
37913         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
37914         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
37915         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
37916         posix_spawnattr_init, posix_spawnattr_setsigmask,
37917         posix_spawnattr_setflags, posix_spawnattr_destroy.
37918
37919         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
37920         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
37921         * modules/execute (Files): Remove m4/posix_spawn.m4.
37922         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
37923         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
37924         posix_spawnattr_init, posix_spawnattr_setsigmask,
37925         posix_spawnattr_setflags, posix_spawnattr_destroy.
37926
37927 2009-01-25  Bruno Haible  <bruno@clisp.org>
37928
37929         * lib/glthread/threadlib.c: Include <stdlib.h>.
37930
37931 2009-01-25  Bruno Haible  <bruno@clisp.org>
37932
37933         * lib/glthread/threadlib.c (dummy): New declaration.
37934
37935 2009-01-25  Bruno Haible  <bruno@clisp.org>
37936
37937         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
37938         multibyte characters also for the GB18030 encoding. Don't crash when
37939         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
37940
37941 2009-01-25  Bruno Haible  <bruno@clisp.org>
37942
37943         Avoid redefining 'struct random_data' on OSF/1 5.1.
37944         * lib/stdlib.in.h: Include <random.h> if it exists.
37945         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
37946         HAVE_RANDOM_H. Include <random.h> when testing whether
37947         'struct random_data' exists.
37948         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
37949
37950 2009-01-25  Bruno Haible  <bruno@clisp.org>
37951
37952         Don't install charset.alias on MacOS X >= 10.3.
37953         * lib/localcharset.c (DARWIN7): New macro.
37954         (get_charset_aliases): Hardcode the result for Darwin7.
37955         * modules/localcharset (install-exec-local): Don't install
37956         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
37957
37958 2009-01-25  Bruno Haible  <bruno@clisp.org>
37959
37960         Don't install charset.alias on mingw and Cygwin.
37961         * modules/localcharset (install-exec-local): Don't install
37962         charset.alias on mingw and Cygwin, if the file does not yet exist.
37963         The result for these platforms is hardcoded in localcharset.c.
37964
37965 2009-01-25  Bruno Haible  <bruno@clisp.org>
37966
37967         Make it possible again to use AC_GNU_SOURCE together with gnulib.
37968         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
37969         before requiring AC_USE_SYSTEM_EXTENSIONS.
37970
37971 2009-01-25  Jim Meyering  <meyering@redhat.com>
37972
37973         c-strtod: avoid warnings
37974         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
37975         "assignment discards qualifiers from pointer target type" warnings.
37976
37977 2009-01-24  Bruno Haible  <bruno@clisp.org>
37978
37979         Add support for non-UTF-8 locales on MacOS X.
37980         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
37981         canonical encodings. For Darwin 7 and newer, don't map traditional
37982         encodings to UTF-8.
37983         Reported by Vincent Lefevre <vincent@vinc17.org>
37984         at <http://savannah.gnu.org/bugs/?25235>.
37985
37986 2009-01-24  Bruno Haible  <bruno@clisp.org>
37987
37988         * doc/gnulib.texi (Obsolete modules): New section.
37989         Reported by Mike Frysinger <vapier@gentoo.org>.
37990
37991 2009-01-24  Bruno Haible  <bruno@clisp.org>
37992
37993         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
37994         (%.dvi): New rule.
37995
37996 2009-01-24  Bruno Haible  <bruno@clisp.org>
37997
37998         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
37999         Reported by Eric Blake.
38000
38001 2009-01-24  Bruno Haible  <bruno@clisp.org>
38002
38003         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
38004         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
38005         Reported by Gary V. Vaughan <gary@gnu.org>.
38006
38007 2009-01-24  Bruno Haible  <bruno@clisp.org>
38008
38009         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
38010
38011 2009-01-23  Bruno Haible  <bruno@clisp.org>
38012
38013         Make c-strtod, c-strtold usable in libraries.
38014         * lib/c-strtod.c: Include string.h instead of xalloc.h.
38015         (C_STRTOD): Call strdup instead of xstrdup.
38016         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
38017         * modules/c-strtold (Depends-on): Likewise.
38018         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
38019         * NEWS: Mention the change.
38020         Reported by Michael Gold <mgold@ncf.ca>.
38021
38022 2009-01-23  Jim Meyering  <meyering@redhat.com>
38023
38024         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
38025         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
38026         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
38027
38028 2009-01-23  Simon Josefsson  <simon@josefsson.org>
38029
38030         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
38031         GNU CoreUtils.
38032         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
38033         * modules/version-etc (Description): Update.
38034
38035 2009-01-22  Bruno Haible  <bruno@clisp.org>
38036
38037         Cache the C locale object.
38038         * lib/c-strtod.c (c_locale_cache): New variable.
38039         (c_locale): New function.
38040         (C_STRTOD): Use it, and don't call freelocale.
38041         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
38042         Suggested by Paolo Bonzini.
38043
38044 2009-01-21  Bruno Haible  <bruno@clisp.org>
38045
38046         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
38047         conditions other than overflow.
38048
38049 2009-01-21  Bruno Haible  <bruno@clisp.org>
38050
38051         * lib/c-strtod.c: Include errno.h.
38052         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
38053         value from STRTOD_L and STRTOD.
38054
38055 2009-01-21  Bruno Haible  <bruno@clisp.org>
38056         and Jim Meyering  <meyering@redhat.com>
38057
38058         nanosleep: skip configure test (fail it) for apple universal builds
38059         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
38060         universal builds, assume that nanosleep does not work.
38061         * modules/nanosleep (Depends-on): Add multiarch.
38062
38063         mktime: skip configure test (fail it) for apple universal builds
38064         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
38065         universal builds, assume that mktime does not work.
38066         * modules/mktime (Depends-on): Add multiarch.
38067
38068 2009-01-21  Eric Blake  <ebb9@byu.net>
38069
38070         multiarch: avoid expand-before-require warning
38071         * modules/multiarch (configure.ac): Require, rather than expand,
38072         gl_MULTIARCH.
38073         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
38074         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
38075         enforce that all clients require it.  Partial reversion of
38076         2008-12-29 patch.
38077
38078         error: avoid expand-before-require warning
38079         * modules/errno (configure.ac): Require, rather than expand,
38080         gl_HEADER_ERRNO_H.
38081         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
38082         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
38083         enforce that all clients require it.
38084
38085         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
38086         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
38087         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
38088         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
38089
38090 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
38091
38092         Revert:
38093         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
38094
38095         regex: do not depend on obsolete modules.
38096         * modules/regex: Remove memcmp and memmove.
38097
38098 2009-01-20  Bruno Haible  <bruno@clisp.org>
38099
38100         Make the 'link' module link on Windows NT 4.
38101         * lib/link.c (_WIN32_WINNT): Don't define.
38102         (CreateHardLinkFuncType): New type.
38103         (CreateHardLinkFunc, initialized): New variables.
38104         (initialize): New function.
38105         (link): Invoke CreateHardLink indirectly through the function pointer.
38106
38107 2009-01-20  Bruno Haible  <bruno@clisp.org>
38108
38109         Fix compilation failure on mingw.
38110         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
38111
38112 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
38113
38114         * doc/c-strtod.texi: Mention a couple of restrictions.
38115
38116 2009-01-20  Jim Meyering  <meyering@redhat.com>
38117
38118         gettimeofday: move more declarations out of functions
38119         * lib/gettimeofday.c: Move extern declarations of tzset and
38120         gmtime out of containing functions.  Prompted by Bruno Haible.
38121
38122 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
38123
38124         regex: do not depend on obsolete modules.
38125         * modules/regex: Remove memcmp and memmove.
38126
38127 2009-01-19  Bruno Haible  <bruno@clisp.org>
38128
38129         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
38130         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
38131         gl_BIGENDIAN, not AC_C_BIGENDIAN.
38132         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
38133         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
38134
38135 2009-01-19  Bruno Haible  <bruno@clisp.org>
38136
38137         * tests/test-link.c: Include <errno.h>.
38138         (main): Exit with code 77 when a hard link cannot be created due to
38139         the file system.
38140         * tests/test-link.sh: Skip test when a hard link cannot be created due
38141         to the file system.
38142         Suggested by Eric Blake.
38143
38144 2009-01-19  Martin Lambers  <marlam@marlam.de>
38145
38146         * modules/link-tests: New file.
38147         * tests/test-link.sh: New file.
38148         * tests/test-link.c: New file.
38149
38150 2009-01-19  Eric Blake  <ebb9@byu.net>
38151
38152         doc: mention another function added in cygwin 1.7.0
38153         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
38154         Another new function in cygwin 1.7.
38155
38156 2009-01-19  Bruno Haible  <bruno@clisp.org>
38157
38158         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
38159         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
38160         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
38161         gl_BIGENDIAN, not AC_C_BIGENDIAN.
38162         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
38163         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
38164         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
38165         * m4/md4.m4 (gl_MD4): Likewise.
38166         * m4/md5.m4 (gl_MD5): Likewise.
38167         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
38168         * m4/sha1.m4 (gl_SHA1): Likewise.
38169         * m4/sha256.m4 (gl_SHA256): Likewise.
38170         * m4/sha512.m4 (gl_SHA512): Likewise.
38171
38172 2009-01-19  Bruno Haible  <bruno@clisp.org>
38173
38174         * modules/uniname/uniname-tests (Depends-on): Add progname.
38175         * tests/uniname/test-uninames.c: Include progname.h.
38176         (main): Call set_program_name.
38177
38178         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
38179         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
38180         (main): Call set_program_name.
38181
38182         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
38183         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
38184         (main): Call set_program_name.
38185
38186         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
38187         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
38188         (main): Call set_program_name.
38189
38190         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
38191         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
38192         (main): Call set_program_name.
38193
38194         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
38195         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
38196         (main): Call set_program_name.
38197
38198         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
38199         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
38200         (main): Call set_program_name.
38201
38202         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
38203         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
38204         (main): Call set_program_name.
38205
38206         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
38207         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
38208         (main): Call set_program_name.
38209
38210 2009-01-19  Eric Blake  <ebb9@byu.net>
38211
38212         test-unistd: test previous patch
38213         * tests/test-unistd.c: Test *_FILENO macros.
38214
38215         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
38216         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
38217         Guarantee a definition.
38218         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
38219         * modules/unistd-safer (Depends-on): Add dependency on unistd.
38220         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
38221         * lib/dup-safer.c (STDERR_FILENO): Likewise.
38222         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
38223         Likewise.
38224         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
38225         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
38226         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
38227         Likewise.
38228         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
38229         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
38230         (STDERR_FILENO): Likewise.
38231         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
38232         (STDERR_FILENO): Likewise.
38233         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
38234         (STDERR_FILENO): Likewise.
38235         Reported by Elbert Pol.
38236
38237 2009-01-19  Eric Blake  <ebb9@byu.net>
38238
38239         doc: mention more functions added in cygwin 1.7.0
38240         * doc/posix-functions/abort.texi (abort): Update wording related
38241         to cygwin.
38242         * doc/posix-functions/daylight.texi (daylight): Likewise.
38243         * doc/posix-functions/optarg.texi (optarg): Likewise.
38244         * doc/posix-functions/optarg.texi (opterr): Likewise.
38245         * doc/posix-functions/optarg.texi (optind): Likewise.
38246         * doc/posix-functions/optarg.texi (optopt): Likewise.
38247         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
38248         worked in 1.5.x, and was withdrawn in 1.7.
38249         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
38250         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
38251         cygwin versions.
38252         * doc/posix-functions/perror.texi (perror): Likewise.
38253         * doc/posix-functions/printf.texi (printf): Likewise.
38254         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
38255         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
38256         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
38257         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
38258         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
38259         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
38260         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
38261         Likewise.
38262         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
38263         Likewise.
38264         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
38265         this function.
38266         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
38267         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
38268         Likewise.
38269         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
38270         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
38271         * doc/posix-functions/confstr.texi (confstr): Likewise.
38272         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
38273         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
38274         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
38275         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
38276         * doc/posix-functions/fputws.texi (fputws): Likewise.
38277         * doc/posix-functions/fwide.texi (fwide): Likewise.
38278         * doc/posix-functions/getwc.texi (getwc): Likewise.
38279         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
38280         * doc/posix-functions/putwc.texi (putwc): Likewise.
38281         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
38282         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
38283         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
38284         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
38285         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
38286         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
38287         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
38288         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
38289         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
38290         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
38291         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
38292
38293 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
38294
38295         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
38296         * lib/ioctl.c: Include <sys/ioctl.h>.
38297
38298 2009-01-19  Simon Josefsson  <simon@josefsson.org>
38299
38300         * modules/getdate-tests (Depends-on): Add progname.
38301         * tests/test-getdate.c: Use progname module, to avoid link errors
38302         on non-glibc systems.
38303
38304 2009-01-18  Simon Josefsson  <simon@josefsson.org>
38305
38306         * modules/filenamecat-tests (Depends-on): Add progname.
38307         * modules/fstrcmp-tests (Depends-on): Likewise.
38308
38309         * tests/test-filenamecat.c: Use progname module, to avoid link
38310         errors on non-glibc systems.
38311         * tests/test-fstrcmp.c: Likewise.
38312
38313 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
38314
38315         gettimeofday: avoid warning: nested extern declaration of 'localtime'
38316         * lib/gettimeofday.c: Move extern declaration out of function.
38317
38318 2009-01-18  Bruno Haible  <bruno@clisp.org>
38319
38320         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
38321         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
38322         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
38323
38324 2009-01-18  Bruno Haible  <bruno@clisp.org>
38325
38326         * lib/strftime.c (MEMPCPY): Remove unused macro.
38327         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
38328
38329 2009-01-18  Martin Lambers  <marlam@marlam.de>
38330
38331         New module 'link'.
38332         * lib/unistd.in.h (link): New declaration.
38333         * lib/link.c: New file.
38334         * m4/link.m4: New file.
38335         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
38336         HAVE_LINK.
38337         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
38338         * modules/link: New file.
38339         * doc/posix-functions/link.texi: Mention the new module.
38340
38341 2009-01-18  Bruno Haible  <bruno@clisp.org>
38342
38343         * tests/test-avltree_list.c (main): Call set_program_name.
38344         * tests/test-avltree_oset.c (main): Likewise.
38345         * tests/test-obstack-printf.c: Include progname.h.
38346         (main): Call set_program_name.
38347         * tests/test-quotearg.c: Include progname.h.
38348         (main): Call set_program_name.
38349         * tests/test-xmemdup0.c: Include progname.h.
38350         (main): Call set_program_name.
38351
38352 2009-01-18  Bruno Haible  <bruno@clisp.org>
38353
38354         New module 'alphasort'.
38355         * lib/dirent.in.h (alphasort): New declaration.
38356         * lib/alphasort.c: New file, from glibc with modifications.
38357         * m4/alphasort.m4: New file.
38358         * modules/alphasort: New file.
38359         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
38360         HAVE_ALPHASORT.
38361         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
38362         HAVE_ALPHASORT.
38363         * doc/posix-functions/alphasort.texi: Mention the new module and the
38364         portability problems.
38365
38366 2009-01-18  Bruno Haible  <bruno@clisp.org>
38367
38368         New module 'scandir'.
38369         * lib/dirent.in.h (scandir): New declaration.
38370         * lib/scandir.c: New file, from glibc with modifications.
38371         * m4/scandir.m4: New file.
38372         * modules/scandir: New file.
38373         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
38374         HAVE_SCANDIR.
38375         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
38376         HAVE_SCANDIR.
38377         * doc/posix-functions/scandir.texi: Mention the new module and the
38378         portability problems.
38379
38380 2009-01-17  Bruno Haible  <bruno@clisp.org>
38381
38382         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
38383         Update documentation.
38384         (func_remove_suffix): Escape all dots in the suffix. Update
38385         documentation.
38386         (func_filter_filelist): Update documentation.
38387         Reported by Ralf Wildenhues.
38388
38389 2009-01-17  Bruno Haible  <bruno@clisp.org>
38390
38391         * modules/dprintf-posix-tests: New file.
38392         * tests/test-dprintf-posix.sh: New file.
38393         * tests/test-dprintf-posix.c: New file.
38394
38395         New modules 'dprintf', 'dprintf-posix'.
38396         * lib/stdio.in.h (dprintf): New declaration.
38397         * lib/dprintf.c: New file.
38398         * m4/dprintf.m4: New file.
38399         * m4/dprintf-posix.m4: New file.
38400         * modules/dprintf: New file.
38401         * modules/dprintf-posix: New file.
38402         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
38403         HAVE_DPRINTF, REPLACE_DPRINTF.
38404         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
38405         HAVE_DPRINTF, REPLACE_DPRINTF.
38406         * doc/posix-functions/dprintf.texi: Mention the new modules.
38407
38408 2009-01-17  Bruno Haible  <bruno@clisp.org>
38409
38410         * modules/vdprintf-posix-tests: New file.
38411         * tests/test-vdprintf-posix.sh: New file.
38412         * tests/test-vdprintf-posix.c: New file.
38413
38414         New modules 'vdprintf', 'vdprintf-posix'.
38415         * lib/stdio.in.h (vdprintf): New declaration.
38416         * lib/vdprintf.c: New file.
38417         * m4/vdprintf.m4: New file.
38418         * m4/vdprintf-posix.m4: New file.
38419         * modules/vdprintf: New file.
38420         * modules/vdprintf-posix: New file.
38421         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
38422         HAVE_VDPRINTF, REPLACE_VDPRINTF.
38423         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
38424         HAVE_VDPRINTF, REPLACE_VDPRINTF.
38425         * doc/posix-functions/vdprintf.texi: Mention the new modules.
38426
38427 2009-01-17  Bruno Haible  <bruno@clisp.org>
38428
38429         Fix replacement of fopen on mingw.
38430         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
38431         mingw.
38432
38433 2009-01-17  Bruno Haible  <bruno@clisp.org>
38434
38435         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
38436         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
38437
38438 2009-01-17  Bruno Haible  <bruno@clisp.org>
38439
38440         Avoid test-fflush2.sh failure on mingw.
38441         * tests/test-fflush2.c: Include binary-io.h.
38442         (main): Put standard input into binary mode.
38443         * modules/fflush-tests (Depends-on): Add binary-io.
38444
38445 2009-01-17  Bruno Haible  <bruno@clisp.org>
38446
38447         * lib/wchar.in.h: In another particular situation, include only the
38448         system's <wchar.h> file.
38449         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
38450         Reported by Albert Chin-A-Young <china@thewrittenword.com>
38451         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
38452
38453 2009-01-17  Bruno Haible  <bruno@clisp.org>
38454
38455         Support for stripping executables in --enable-relocatable.
38456         * build-aux/install-reloc: Expect one more argument, or an environment
38457         variable RELOC_STRIP_PROG. If set, strip the destination program and
38458         its wrapper.
38459         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
38460         RELOC_STRIP_PROG.
38461         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
38462         to set RELOCATABLE_STRIP.
38463         * NEWS: Mention the new Makefile requirement.
38464
38465 2009-01-17  Bruno Haible  <bruno@clisp.org>
38466
38467         * build-aux/install-reloc: Remove debugging information left over by
38468         C compiler on MacOS X.
38469
38470 2009-01-17  Bruno Haible  <bruno@clisp.org>
38471
38472         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
38473         * lib/progreloc.c (find_executable): Fix type of pointer passed to
38474         _NSGetExecutablePath.
38475
38476 2009-01-16  Jim Meyering  <meyering@redhat.com>
38477
38478         strerror: avoid warnings about discarding "const"
38479         * lib/strerror.c (rpl_strerror): Instead of returning a const
38480         string from each and every "case", use a variable, and add a single
38481         cast after the switch.
38482
38483 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
38484
38485         * lib/arpa_inet.in.h: Add extern "C" block for C++.
38486
38487 2009-01-16  Bruno Haible  <bruno@clisp.org>
38488
38489         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
38490         array initializer syntax that also works in C++ mode.
38491         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38492
38493 2009-01-16  Jim Meyering  <meyering@redhat.com>
38494
38495         poll: suppress a warning
38496         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
38497         to ignore "...unsigned expression < 0 is always false" warnings.
38498
38499 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
38500
38501         poll: remove declarations of unused variables
38502         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
38503         sockbuf and optlen.
38504
38505 2009-01-15  Bruno Haible  <bruno@clisp.org>
38506
38507         Make fflush-after-ungetc POSIX compliant on BSD systems.
38508         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
38509         (clear_ungetc_buffer): Implement also for other systems.
38510         (rpl_fflush): On glibc systems, invoke
38511         clear_ungetc_buffer_preserving_position. Otherwise, invoke
38512         clear_ungetc_buffer after fetching the stream's position, not before.
38513
38514 2009-01-15  Bruno Haible  <bruno@clisp.org>
38515
38516         Make fflush-after-ungetc POSIX compliant on glibc systems.
38517         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
38518         after ungetc.
38519         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
38520         (rpl_fflush): On glibc systems, simply call the system's fflush
38521         function after clearing the ungetc buffer.
38522         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
38523         Instead, lseek only to the end of file, then use the system's fseeko
38524         for the rest. On glibc systems, reset the EOF indicator bit.
38525
38526 2009-01-15  Jim Meyering  <meyering@redhat.com>
38527
38528         openmp.m4: revert quote-adding change, for portability to older autoconf
38529         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
38530         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
38531         Simon Josefsson noticed the problem when using autoconf-2.61.
38532
38533 2009-01-15  Bruno Haible  <bruno@clisp.org>
38534
38535         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
38536         * tests/test-fflush2.c (ASSERT): Always fail.
38537         (main): Add two tests for fflush() after ungetc(), taking into account
38538         the Austin Group's clarification.
38539         Suggested by Eric Blake.
38540
38541 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
38542
38543         mktime.m4: remove K&R-style function prototypes
38544         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
38545         for the Sun C++ compiler.
38546
38547 2009-01-14  Bruno Haible  <bruno@clisp.org>
38548
38549         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
38550         while including <wchar.h>.
38551         * lib/wchar.in.h: In two particular situations on HP-UX, include only
38552         the system's <wchar.h> file.
38553         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38554
38555 2009-01-14  Bruno Haible  <bruno@clisp.org>
38556
38557         * m4/csharp.m4: Don't mention gettext on the serial number line.
38558         * m4/csharpexec.m4: Likewise.
38559         * m4/eaccess.m4: Likewise.
38560         * m4/javaexec.m4: Likewise.
38561         * m4/sig_atomic_t.m4: Likewise.
38562         * m4/tmpdir.m4: Likewise.
38563         * m4/intldir.m4: Bump gettext version.
38564         * m4/lib-ld.m4: Likewise.
38565
38566 2009-01-14  Bruno Haible  <bruno@clisp.org>
38567
38568         * lib/progname.c (set_program_name): Add more comments.
38569         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
38570
38571 2009-01-14  Simon Josefsson  <simon@josefsson.org>
38572
38573         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
38574         were sys/stat.h does not define it.
38575
38576 2009-01-14  Jim Meyering  <meyering@redhat.com>
38577
38578         many *.m4 files: improve m4 quoting
38579         99% of this change was performed by running the following commands:
38580         git ls-files | grep '\.m4$' | xargs perl -pi \
38581           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
38582           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
38583           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
38584           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
38585         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
38586         The remainder were to add Copyright dates, increment serial numbers,
38587         undo some changes in comments, exclude m4/intl.m4, and add quotes
38588         around the "1" in ",1" where the unusual spacing prohibited the
38589         above regexps from doing the job.  For more details, see
38590         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
38591         * m4/acl.m4: Modified.
38592         * m4/afs.m4: Likewise.
38593         * m4/alloca.m4: Likewise.
38594         * m4/argp.m4: Likewise.
38595         * m4/argz.m4: Likewise.
38596         * m4/atexit.m4: Likewise.
38597         * m4/bison-i18n.m4: Likewise.
38598         * m4/bison.m4: Likewise.
38599         * m4/byteswap.m4: Likewise.
38600         * m4/c-stack.m4: Likewise.
38601         * m4/c-strtod.m4: Likewise.
38602         * m4/calloc.m4: Likewise.
38603         * m4/canonicalize-lgpl.m4: Likewise.
38604         * m4/chown.m4: Likewise.
38605         * m4/clock_time.m4: Likewise.
38606         * m4/codeset.m4: Likewise.
38607         * m4/copy-file.m4: Likewise.
38608         * m4/csharp.m4: Likewise.
38609         * m4/csharpcomp.m4: Likewise.
38610         * m4/csharpexec.m4: Likewise.
38611         * m4/d-ino.m4: Likewise.
38612         * m4/d-type.m4: Likewise.
38613         * m4/dirfd.m4: Likewise.
38614         * m4/double-slash-root.m4: Likewise.
38615         * m4/eaccess.m4: Likewise.
38616         * m4/eealloc.m4: Likewise.
38617         * m4/environ.m4: Likewise.
38618         * m4/errno_h.m4: Likewise.
38619         * m4/euidaccess.m4: Likewise.
38620         * m4/execute.m4: Likewise.
38621         * m4/fatal-signal.m4: Likewise.
38622         * m4/fchdir.m4: Likewise.
38623         * m4/fcntl_h.m4: Likewise.
38624         * m4/fileblocks.m4: Likewise.
38625         * m4/filenamecat.m4: Likewise.
38626         * m4/findprog.m4: Likewise.
38627         * m4/flexmember.m4: Likewise.
38628         * m4/fnmatch.m4: Likewise.
38629         * m4/fopen.m4: Likewise.
38630         * m4/fpending.m4: Likewise.
38631         * m4/fprintf-posix.m4: Likewise.
38632         * m4/free.m4: Likewise.
38633         * m4/frexp.m4: Likewise.
38634         * m4/frexpl.m4: Likewise.
38635         * m4/fsusage.m4: Likewise.
38636         * m4/ftruncate.m4: Likewise.
38637         * m4/gc-camellia.m4: Likewise.
38638         * m4/gc-random.m4: Likewise.
38639         * m4/gc.m4: Likewise.
38640         * m4/getaddrinfo.m4: Likewise.
38641         * m4/getcwd-abort-bug.m4: Likewise.
38642         * m4/getcwd-path-max.m4: Likewise.
38643         * m4/getdate.m4: Likewise.
38644         * m4/getdomainname.m4: Likewise.
38645         * m4/getgroups.m4: Likewise.
38646         * m4/gethostname.m4: Likewise.
38647         * m4/gethrxtime.m4: Likewise.
38648         * m4/getline.m4: Likewise.
38649         * m4/getloadavg.m4: Likewise.
38650         * m4/getndelim2.m4: Likewise.
38651         * m4/getpass.m4: Likewise.
38652         * m4/gettext.m4: Likewise.
38653         * m4/gettime.m4: Likewise.
38654         * m4/gettimeofday.m4: Likewise.
38655         * m4/gnulib-common.m4: Likewise.
38656         * m4/group-member.m4: Likewise.
38657         * m4/host-os.m4: Likewise.
38658         * m4/iconv.m4: Likewise.
38659         * m4/iconv_open.m4: Likewise.
38660         * m4/inet_ntop.m4: Likewise.
38661         * m4/inet_pton.m4: Likewise.
38662         * m4/inline.m4: Likewise.
38663         * m4/intldir.m4: Likewise.
38664         * m4/intlmacosx.m4: Likewise.
38665         * m4/intmax.m4: Likewise.
38666         * m4/intmax_t.m4: Likewise.
38667         * m4/inttypes.m4: Likewise.
38668         * m4/inttypes_h.m4: Likewise.
38669         * m4/inttypes-pri.m4: Likewise.
38670         * m4/isapipe.m4: Likewise.
38671         * m4/isnand.m4: Likewise.
38672         * m4/isnanf.m4: Likewise.
38673         * m4/isnanl.m4: Likewise.
38674         * m4/javacomp.m4: Likewise.
38675         * m4/javaexec.m4: Likewise.
38676         * m4/jm-winsz1.m4: Likewise.
38677         * m4/jm-winsz2.m4: Likewise.
38678         * m4/lchown.m4: Likewise.
38679         * m4/lcmessage.m4: Likewise.
38680         * m4/ldexpl.m4: Likewise.
38681         * m4/lib-ld.m4: Likewise.
38682         * m4/lib-link.m4: Likewise.
38683         * m4/libsigsegv.m4: Likewise.
38684         * m4/link-follow.m4: Likewise.
38685         * m4/localcharset.m4: Likewise.
38686         * m4/locale-fr.m4: Likewise.
38687         * m4/locale-ja.m4: Likewise.
38688         * m4/locale-tr.m4: Likewise.
38689         * m4/locale-zh.m4: Likewise.
38690         * m4/lock.m4: Likewise.
38691         * m4/longlong.m4: Likewise.
38692         * m4/ls-mntd-fs.m4: Likewise.
38693         * m4/lstat.m4: Likewise.
38694         * m4/malloc.m4: Likewise.
38695         * m4/mathl.m4: Likewise.
38696         * m4/mbrtowc.m4: Likewise.
38697         * m4/mbstate_t.m4: Likewise.
38698         * m4/mbswidth.m4: Likewise.
38699         * m4/memchr.m4: Likewise.
38700         * m4/memcmp.m4: Likewise.
38701         * m4/memcpy.m4: Likewise.
38702         * m4/memmem.m4: Likewise.
38703         * m4/memmove.m4: Likewise.
38704         * m4/mempcpy.m4: Likewise.
38705         * m4/memrchr.m4: Likewise.
38706         * m4/memset.m4: Likewise.
38707         * m4/minmax.m4: Likewise.
38708         * m4/mkdir-slash.m4: Likewise.
38709         * m4/mkdtemp.m4: Likewise.
38710         * m4/mktime.m4: Likewise.
38711         * m4/mmap-anon.m4: Likewise.
38712         * m4/mountlist.m4: Likewise.
38713         * m4/nanosleep.m4: Likewise.
38714         * m4/nls.m4: Likewise.
38715         * m4/nocrash.m4: Likewise.
38716         * m4/open.m4: Likewise.
38717         * m4/openat.m4: Likewise.
38718         * m4/openmp.m4: Likewise.
38719         * m4/pathmax.m4: Likewise.
38720         * m4/perl.m4: Likewise.
38721         * m4/physmem.m4: Likewise.
38722         * m4/pipe.m4: Likewise.
38723         * m4/po.m4: Likewise.
38724         * m4/poll.m4: Likewise.
38725         * m4/posixtm.m4: Likewise.
38726         * m4/posixver.m4: Likewise.
38727         * m4/printf-frexp.m4: Likewise.
38728         * m4/printf-frexpl.m4: Likewise.
38729         * m4/printf-posix.m4: Likewise.
38730         * m4/printf-posix-rpl.m4: Likewise.
38731         * m4/printf.m4: Likewise.
38732         * m4/progtest.m4: Likewise.
38733         * m4/putenv.m4: Likewise.
38734         * m4/readline.m4: Likewise.
38735         * m4/readlink.m4: Likewise.
38736         * m4/readutmp.m4: Likewise.
38737         * m4/realloc.m4: Likewise.
38738         * m4/regex.m4: Likewise.
38739         * m4/relocatable.m4: Likewise.
38740         * m4/relocatable-lib.m4: Likewise.
38741         * m4/rename-dest-slash.m4: Likewise.
38742         * m4/rename.m4: Likewise.
38743         * m4/rmdir-errno.m4: Likewise.
38744         * m4/rmdir.m4: Likewise.
38745         * m4/roundf.m4: Likewise.
38746         * m4/roundl.m4: Likewise.
38747         * m4/rpmatch.m4: Likewise.
38748         * m4/save-cwd.m4: Likewise.
38749         * m4/selinux-selinux-h.m4: Likewise.
38750         * m4/setenv.m4: Likewise.
38751         * m4/settime.m4: Likewise.
38752         * m4/sig2str.m4: Likewise.
38753         * m4/sig_atomic_t.m4: Likewise.
38754         * m4/signalblocking.m4: Likewise.
38755         * m4/signbit.m4: Likewise.
38756         * m4/sigpipe.m4: Likewise.
38757         * m4/sockets.m4: Likewise.
38758         * m4/sockpfaf.m4: Likewise.
38759         * m4/st_dm_mode.m4: Likewise.
38760         * m4/stat-time.m4: Likewise.
38761         * m4/stdbool.m4: Likewise.
38762         * m4/stdint.m4: Likewise.
38763         * m4/stdint_h.m4: Likewise.
38764         * m4/stpcpy.m4: Likewise.
38765         * m4/stpncpy.m4: Likewise.
38766         * m4/strcase.m4: Likewise.
38767         * m4/strchrnul.m4: Likewise.
38768         * m4/strcspn.m4: Likewise.
38769         * m4/strdup.m4: Likewise.
38770         * m4/strftime.m4: Likewise.
38771         * m4/strndup.m4: Likewise.
38772         * m4/strnlen.m4: Likewise.
38773         * m4/strpbrk.m4: Likewise.
38774         * m4/strptime.m4: Likewise.
38775         * m4/strsep.m4: Likewise.
38776         * m4/strtod.m4: Likewise.
38777         * m4/strtoimax.m4: Likewise.
38778         * m4/strtok_r.m4: Likewise.
38779         * m4/strtol.m4: Likewise.
38780         * m4/strtoll.m4: Likewise.
38781         * m4/strtoul.m4: Likewise.
38782         * m4/strtoull.m4: Likewise.
38783         * m4/strtoumax.m4: Likewise.
38784         * m4/strverscmp.m4: Likewise.
38785         * m4/threadlib.m4: Likewise.
38786         * m4/timegm.m4: Likewise.
38787         * m4/tm_gmtoff.m4: Likewise.
38788         * m4/tmpdir.m4: Likewise.
38789         * m4/tmpfile.m4: Likewise.
38790         * m4/tzset.m4: Likewise.
38791         * m4/uintmax_t.m4: Likewise.
38792         * m4/unlinkdir.m4: Likewise.
38793         * m4/unlocked-io.m4: Likewise.
38794         * m4/uptime.m4: Likewise.
38795         * m4/userspec.m4: Likewise.
38796         * m4/utimbuf.m4: Likewise.
38797         * m4/utime.m4: Likewise.
38798         * m4/utimes-null.m4: Likewise.
38799         * m4/utimes.m4: Likewise.
38800         * m4/vararrays.m4: Likewise.
38801         * m4/vasnprintf.m4: Likewise.
38802         * m4/vfprintf-posix.m4: Likewise.
38803         * m4/vprintf-posix.m4: Likewise.
38804         * m4/wait-process.m4: Likewise.
38805         * m4/wchar_t.m4: Likewise.
38806         * m4/wint_t.m4: Likewise.
38807         * m4/write-any-file.m4: Likewise.
38808         * m4/yield.m4: Likewise.
38809
38810 2009-01-13  Bruno Haible  <bruno@clisp.org>
38811
38812         Avoid test-copy-file.sh failures when ACL support insufficient.
38813         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
38814         TESTS_ENVIRONMENT.
38815         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
38816         Reported by Jim Meyering.
38817
38818 2009-01-13  Bruno Haible  <bruno@clisp.org>
38819
38820         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
38821         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
38822         * modules/unistdio/u8-printf-parse (Files): Likewise.
38823         * modules/unistdio/u32-printf-parse (Files): Likewise.
38824         * modules/unistdio/ulc-printf-parse (Files): Likewise.
38825
38826 2009-01-13  Simon Josefsson  <simon@josefsson.org>
38827
38828         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
38829         and m4/inttypes_h.m4 too.
38830
38831 2009-01-12  Eric Blake  <ebb9@byu.net>
38832
38833         tests: IRIX 6.2 cc can't compile -0.0 into .data
38834         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
38835         rather than at compile-time.
38836         * tests/test-floorl.c (minus_zero): Likewise.
38837         * tests/test-frexpl.c (minus_zero): Likewise.
38838         * tests/test-isnan.c (minus_zerol): Likewise.
38839         * tests/test-isnanl.h (minus_zero): Likewise.
38840         * tests/test-ldexpl.c (minus_zero): Likewise.
38841         * tests/test-roundl.c (minus_zero): Likewise.
38842         * tests/test-signbit.c (minus_zerol): Likewise.
38843         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
38844         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
38845         * tests/test-truncl.c (minus_zero): Likewise.
38846         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
38847         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
38848         Reported by Tom G. Christensen and Nelson H. F. Beebe.
38849
38850 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
38851
38852         regex: fix glibc bug 9697
38853         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
38854         handling.
38855
38856 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
38857
38858         regex: fix glibc bug 697
38859         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
38860         being NULL also if there are no backreferences.
38861
38862 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
38863
38864         regex: merge glibc changes
38865         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
38866         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
38867         re_string_skip_chars, re_string_reconstruct): Likewise.
38868         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
38869
38870 2009-01-07  Jim Meyering  <meyering@redhat.com>
38871
38872         poll: filter through cppi
38873         * lib/poll.c: Indent cpp directives to reflect nesting.
38874
38875 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
38876
38877         poll: don't return uninitialized
38878         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
38879
38880 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
38881
38882         avoid compile failure on AIX 6.1
38883         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
38884         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
38885
38886 2009-01-04  Jim Meyering  <meyering@redhat.com>
38887
38888         remove duplicate inclusion of <stdio.h>
38889         * tests/test-fprintf-posix.c: Likewise.
38890         * tests/test-printf-posix.c: Likewise.
38891         * tests/test-snprintf-posix.c: Likewise.
38892         * tests/test-sprintf-posix.c: Likewise.
38893         * tests/test-vasprintf-posix.c: Likewise.
38894         * tests/test-vfprintf-posix.c: Likewise.
38895         * tests/test-vprintf-posix.c: Likewise.
38896         * tests/test-vsnprintf-posix.c: Likewise.
38897         * tests/test-vsprintf-posix.c: Likewise.
38898
38899 2009-01-03  Jim Meyering  <meyering@redhat.com>
38900
38901         gnulib-tool: fix sed-based filtering
38902         * gnulib-tool (func_filter_filelist): Remove extra backslash
38903         in sed_fff_filter definition.
38904
38905 2009-01-02  Jim Meyering  <meyering@redhat.com>
38906
38907         strftime: avoid compilation failure on Solaris 2.6
38908         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
38909         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
38910         Don't #define mbrlen or mbsinit, since now they're guaranteed to
38911         be available.  Reported by Tom G. Christensen.  Details in
38912         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
38913
38914 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38915             Bruno Haible  <bruno@clisp.org>
38916
38917         Speed up gnulib-tool by doing more string processing through shell
38918         built-ins.
38919         * gnulib-tool (fast_func_append): New variable.
38920         (func_remove_prefix, func_remove_suffix): New functions.
38921         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
38922         (func_filter_filelist): New function.
38923         (func_get_dependencies): Use func_remove_suffix instead of sed.
38924         (func_get_automake_snippet): Use func_filter_filelist instead of a
38925         subshell and sed invocation.
38926
38927 2009-01-01  Bruno Haible  <bruno@clisp.org>
38928
38929         Fix a security bug.
38930         * gnulib-tool (func_import, import, update): Don't allow the characters
38931         '"', '$', '`', '\' in macro arguments that become part of commands that
38932         are evaluated.
38933
38934 2009-01-01  Bruno Haible  <bruno@clisp.org>
38935
38936         * gnulib-tool (func_reset_sigpipe): Add more comments.
38937
38938 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38939
38940         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
38941         func_emit_tests_Makefile_am, func_import): Abort loops early if we
38942         already know the answer.
38943
38944 2009-01-01  Jim Meyering  <meyering@redhat.com>
38945
38946         * lib/version-etc.c (version_etc_va): Update copyright year.
38947
38948 2008-12-30  Bruno Haible  <bruno@clisp.org>
38949
38950         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
38951         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
38952         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
38953
38954 2008-12-29  Eric Blake  <ebb9@byu.net>
38955
38956         multiarch: avoid autoconf AC_REQUIRE bug
38957         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
38958         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
38959         2.63 and older.
38960         Reported by Bruno Haible, and analyzed in
38961         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
38962
38963 2008-12-29  Bruno Haible  <bruno@clisp.org>
38964
38965         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
38966         files in subdirectories correctly.
38967         Reported by Ralf Wildenhues.
38968
38969 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38970
38971         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
38972         rather than 'join FILE -', for Solaris join.
38973
38974 2008-12-29  Bruno Haible  <bruno@clisp.org>
38975
38976         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
38977         quoting.
38978         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
38979         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
38980         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
38981         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
38982         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
38983         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
38984         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
38985         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
38986         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
38987         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
38988         * m4/nls.m4 (AM_NLS): Likewise.
38989         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
38990         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
38991         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
38992         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
38993         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
38994         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
38995         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
38996         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
38997         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
38998         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
38999         * m4/xsize.m4 (gl_XSIZE): Likewise.
39000         Suggested by Jim Meyering.
39001
39002 2008-11-17  Bruce Korb  <bkorb@gnu.org>
39003
39004         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
39005         * lib/parse-duration.c: use a switch instead of cascading if's.
39006
39007 2008-12-29  Eric Blake  <ebb9@byu.net>
39008
39009         wchar.h: supply WEOF on Irix 5.3
39010         * lib/wchar.in.h (wint_t): Also supply WEOF.
39011         * lib/wctype.in.h (wint_t): Likewise.
39012         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
39013         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
39014         Reported by Tom G. Christensen.
39015
39016 2008-12-26  Bruno Haible  <bruno@clisp.org>
39017
39018         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
39019         i486, i586, i686.
39020
39021 2008-12-26  Bruno Haible  <bruno@clisp.org>
39022
39023         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
39024
39025 2008-12-26  Bruno Haible  <bruno@clisp.org>
39026
39027         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
39028         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
39029         not __STDC_CONSTANT_MACROS.
39030         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
39031
39032 2008-12-25  Bruno Haible  <bruno@clisp.org>
39033
39034         Add support for universal builds to vasnprintf.
39035         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
39036         universal builds, guess no.
39037         * modules/vasnprintf-posix (Depends-on): Add multiarch.
39038         * modules/vasprintf-posix (Depends-on): Likewise.
39039         * modules/fprintf-posix (Depends-on): Likewise.
39040         * modules/vfprintf-posix (Depends-on): Likewise.
39041         * modules/snprintf-posix (Depends-on): Likewise.
39042         * modules/vsnprintf-posix (Depends-on): Likewise.
39043         * modules/sprintf-posix (Depends-on): Likewise.
39044         * modules/vsprintf-posix (Depends-on): Likewise.
39045         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
39046         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
39047         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
39048         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
39049         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
39050         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
39051         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
39052
39053         Add support for universal builds to <inttypes.h>.
39054         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
39055         _SCNu64_PREFIX): In Apple
39056         universal builds, define directly, using _LP64.
39057         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
39058         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
39059         * modules/inttypes (Depends-on): Add multiarch.
39060         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
39061
39062         Add support for universal builds to <stdint.h>.
39063         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
39064         universal builds, define directly, using _LP64.
39065         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
39066         Apple universal builds, don't test for the size and suffix of ptrdiff_t
39067         and size_t.
39068         * modules/stdint (Depends-on): Add multiarch.
39069         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
39070
39071         New module 'multiarch'.
39072         * modules/multiarch: New file.
39073         * m4/multiarch.m4: New file.
39074
39075 2008-12-25  Bruno Haible  <bruno@clisp.org>
39076
39077         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
39078
39079 2008-12-25  Bruno Haible  <bruno@clisp.org>
39080
39081         * modules/btowc (License): Relicense under LGPLv2+.
39082         * modules/mbsinit (License): Likewise.
39083         * modules/mbrtowc (License): Likewise.
39084         * modules/wcrtomb (License): Likewise.
39085         * modules/streq (License): Likewise.
39086         Reported by David Lutterkort <lutter@redhat.com>.
39087
39088 2008-12-23  Bruno Haible  <bruno@clisp.org>
39089
39090         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
39091
39092 2008-12-23  Bruno Haible  <bruno@clisp.org>
39093
39094         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
39095         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
39096         GETADDRINFO_LIB, not in LIBS.
39097         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
39098         * modules/canon-host (Link): Likewise.
39099         * NEWS: Mention the change.
39100         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
39101         GETADDRINFO_LIB.
39102
39103 2008-12-22  Bruno Haible  <bruno@clisp.org>
39104
39105         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
39106         * doc/posix-functions/iswalpha_l.texi: Likewise.
39107         * doc/posix-functions/iswblank_l.texi: Likewise.
39108         * doc/posix-functions/iswcntrl_l.texi: Likewise.
39109         * doc/posix-functions/iswctype_l.texi: Likewise.
39110         * doc/posix-functions/iswdigit_l.texi: Likewise.
39111         * doc/posix-functions/iswgraph_l.texi: Likewise.
39112         * doc/posix-functions/iswlower_l.texi: Likewise.
39113         * doc/posix-functions/iswprint_l.texi: Likewise.
39114         * doc/posix-functions/iswpunct_l.texi: Likewise.
39115         * doc/posix-functions/iswspace_l.texi: Likewise.
39116         * doc/posix-functions/iswupper_l.texi: Likewise.
39117         * doc/posix-functions/iswxdigit_l.texi: Likewise.
39118         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
39119         * doc/posix-functions/open_wmemstream.texi: Likewise.
39120         * doc/posix-functions/swscanf.texi: Likewise.
39121         * doc/posix-functions/towctrans_l.texi: Likewise.
39122         * doc/posix-functions/towlower.texi: Likewise.
39123         * doc/posix-functions/towlower_l.texi: Likewise.
39124         * doc/posix-functions/towupper.texi: Likewise.
39125         * doc/posix-functions/towupper_l.texi: Likewise.
39126         * doc/posix-functions/vfwprintf.texi: Likewise.
39127         * doc/posix-functions/vfwscanf.texi: Likewise.
39128         * doc/posix-functions/vswscanf.texi: Likewise.
39129         * doc/posix-functions/vwprintf.texi: Likewise.
39130         * doc/posix-functions/vwscanf.texi: Likewise.
39131         * doc/posix-functions/wcpcpy.texi: Likewise.
39132         * doc/posix-functions/wcpncpy.texi: Likewise.
39133         * doc/posix-functions/wcscasecmp.texi: Likewise.
39134         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
39135         * doc/posix-functions/wcscoll_l.texi: Likewise.
39136         * doc/posix-functions/wcsdup.texi: Likewise.
39137         * doc/posix-functions/wcsncasecmp.texi: Likewise.
39138         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
39139         * doc/posix-functions/wcsnlen.texi: Likewise.
39140         * doc/posix-functions/wcsnrtombs.texi: Likewise.
39141         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
39142         * doc/posix-functions/wctrans_l.texi: Likewise.
39143         * doc/posix-functions/wctype_l.texi: Likewise.
39144         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
39145         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
39146         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
39147         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
39148         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
39149         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
39150         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
39151         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
39152         * doc/glibc-functions/wcschrnul.texi: Likewise.
39153         * doc/glibc-functions/wcsftime_l.texi: Likewise.
39154         * doc/glibc-functions/wcstod_l.texi: Likewise.
39155         * doc/glibc-functions/wcstof_l.texi: Likewise.
39156         * doc/glibc-functions/wcstol_l.texi: Likewise.
39157         * doc/glibc-functions/wcstold_l.texi: Likewise.
39158         * doc/glibc-functions/wcstoll_l.texi: Likewise.
39159         * doc/glibc-functions/wcstoq.texi: Likewise.
39160         * doc/glibc-functions/wcstoul_l.texi: Likewise.
39161         * doc/glibc-functions/wcstoull_l.texi: Likewise.
39162         * doc/glibc-functions/wcstouq.texi: Likewise.
39163         * doc/glibc-functions/wmempcpy.texi: Likewise.
39164
39165 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
39166             Eric Blake  <ebb9@byu.net>
39167             Paolo Bonzini  <bonzini@gnu.org>
39168             Bruno Haible  <bruno@clisp.org>
39169
39170         Make c-stack work on Haiku.
39171         * lib/c-stack.c (SA_ONSTACK): Define fallback.
39172         (c_stack_action): Use SA_ONSTACK flag.
39173
39174 2008-12-22  Bruno Haible  <bruno@clisp.org>
39175
39176         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
39177
39178 2008-12-22  Bruno Haible  <bruno@clisp.org>
39179
39180         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
39181         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
39182         being overridden.
39183         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
39184         New macros.
39185         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
39186         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
39187         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
39188         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
39189
39190 2008-12-22  Bruno Haible  <bruno@clisp.org>
39191
39192         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
39193         from test code.
39194
39195 2008-12-22  Eric Blake  <ebb9@byu.net>
39196
39197         Avoid gcc warnings on cygwin.
39198         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
39199         Avoid unused variable.
39200         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
39201         Likewise.
39202
39203 2008-12-22  Bruno Haible  <bruno@clisp.org>
39204
39205         Remove HAVE_MBRTOWC conditionals.
39206         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
39207         (mbscasecmp): Assume mbrtowc function.
39208         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
39209         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
39210         * lib/mbschr.c: Include mbuiter.h unconditionally.
39211         (mbschr): Assume mbrtowc function.
39212         * lib/mbscspn.c: Include mbuiter.h unconditionally.
39213         (mbscspn): Assume mbrtowc function.
39214         * lib/mbslen.c: Include mbuiter.h unconditionally.
39215         (mbslen): Assume mbrtowc function.
39216         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
39217         (mbsncasecmp): Assume mbrtowc function.
39218         * lib/mbsnlen.c: Include mbiter.h unconditionally.
39219         (mbsnlen): Assume mbrtowc function.
39220         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
39221         (mbspbrk): Assume mbrtowc function.
39222         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
39223         (mbspcasecmp): Assume mbrtowc function.
39224         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
39225         (mbsrchr): Assume mbrtowc function.
39226         * lib/mbssep.c: Include mbuiter.h unconditionally.
39227         (mbssep): Assume mbrtowc function.
39228         * lib/mbsspn.c: Include mbuiter.h unconditionally.
39229         (mbsspn): Assume mbrtowc function.
39230         * lib/mbsstr.c: Include mbuiter.h unconditionally.
39231         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
39232         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
39233         (mbstok_r): Assume mbrtowc function.
39234         * lib/propername.c: Include mbuiter.h unconditionally.
39235         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
39236         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
39237         (trim2): Assume mbrtowc function.
39238         * lib/mbswidth.c (mbsinit): Remove fallback definition.
39239         (mbsnwidth): Assume mbrtowc function.
39240         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
39241         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
39242         fallback definitions.
39243         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
39244
39245 2008-12-22  Bruno Haible  <bruno@clisp.org>
39246
39247         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
39248
39249 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
39250
39251         * modules/regex: Request emulations for the mb*/wc* functions we need.
39252         * m4/regex.m4: Don't look for those functions here.
39253         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
39254
39255 2008-12-22  Bruno Haible  <bruno@clisp.org>
39256
39257         * modules/fnmatch (Depends-on): Remove duplicated dependency.
39258
39259 2008-12-21  Bruno Haible  <bruno@clisp.org>
39260
39261         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
39262         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
39263         (Include): Remove conditionalization.
39264         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
39265         (Include): Remove conditionalization.
39266         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
39267         (Include): Remove conditionalization.
39268         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
39269         * m4/mbfile.m4 (gl_MBFILE): Likewise.
39270         * NEWS: Mention the change.
39271         Reported by Alan Hourihane <alanh@fairlite.co.uk>
39272         via Sergey Poznyakoff <gray@gnu.org.ua>.
39273
39274 2008-12-21  Bruno Haible  <bruno@clisp.org>
39275
39276         * MODULES.html.sh (Extended multibyte and wide character utilities
39277         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
39278         wcrtomb, wcsrtombs.
39279         (Support for systems lacking POSIX:2008): Add accept, bind, close,
39280         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
39281         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
39282         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
39283
39284 2008-12-21  Bruno Haible  <bruno@clisp.org>
39285
39286         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
39287
39288 2008-12-21  Bruno Haible  <bruno@clisp.org>
39289
39290         * modules/wcsnrtombs-tests: New file.
39291         * tests/test-wcsnrtombs1.sh: New file.
39292         * tests/test-wcsnrtombs2.sh: New file.
39293         * tests/test-wcsnrtombs3.sh: New file.
39294         * tests/test-wcsnrtombs4.sh: New file.
39295         * tests/test-wcsnrtombs.c: New file.
39296
39297         New module 'wcsnrtombs'.
39298         * lib/wchar.in.h (wcsnrtombs): New declaration.
39299         * lib/wcsnrtombs.c: New file.
39300         * lib/wcsrtombs-state.c: New file.
39301         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
39302         (internal_state): Remove variable.
39303         * m4/wcsnrtombs.m4: New file.
39304         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
39305         compilation units.
39306         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
39307         HAVE_WCSNRTOMBS.
39308         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
39309         HAVE_WCSNRTOMBS.
39310         * modules/wcsnrtombs: New file.
39311         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
39312         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
39313
39314 2008-12-21  Bruno Haible  <bruno@clisp.org>
39315
39316         * modules/wcsrtombs-tests: New file.
39317         * tests/test-wcsrtombs1.sh: New file.
39318         * tests/test-wcsrtombs2.sh: New file.
39319         * tests/test-wcsrtombs3.sh: New file.
39320         * tests/test-wcsrtombs4.sh: New file.
39321         * tests/test-wcsrtombs.c: New file.
39322
39323         New module 'wcsrtombs'.
39324         * lib/wchar.in.h (wcsrtombs): New declaration.
39325         * lib/wcsrtombs.c: New file.
39326         * m4/wcsrtombs.m4: New file.
39327         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
39328         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
39329         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
39330         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
39331         * modules/wcsrtombs: New file.
39332         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
39333         bugs.
39334
39335 2008-12-21  Bruno Haible  <bruno@clisp.org>
39336
39337         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
39338         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
39339         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
39340         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
39341         if not correct.
39342         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
39343         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
39344         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
39345         m4/locale-zh.m4, m4/codeset.m4.
39346         * doc/posix-functions/wcrtomb.texi: Document the bug.
39347
39348 2008-12-21  Bruno Haible  <bruno@clisp.org>
39349
39350         Work around a btowc() bug on IRIX 6.5.
39351         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
39352         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
39353         REPLACE_WTOBC if not.
39354         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
39355         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
39356         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
39357
39358 2008-12-21  Bruno Haible  <bruno@clisp.org>
39359
39360         * modules/wcrtomb-tests: New file.
39361         * tests/test-wcrtomb.sh: New file.
39362         * tests/test-wcrtomb.c: New file.
39363
39364         New module 'wcrtomb'.
39365         * lib/wchar.in.h (wcrtomb): New declaration.
39366         * lib/wcrtomb.c: New file.
39367         * m4/wcrtomb.m4: New file.
39368         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
39369         HAVE_WCRTOMB.
39370         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
39371         HAVE_WCRTOMB.
39372         * modules/wcrtomb: New file.
39373         * doc/posix-functions/wcrtomb.texi: Mention the new module.
39374
39375 2008-12-21  Bruno Haible  <bruno@clisp.org>
39376
39377         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
39378         * modules/mbsrtowcs (Files): Likewise.
39379         * modules/wctob (Files): Likewise.
39380         * modules/c-strcase-tests (Files): Likewise.
39381         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
39382         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
39383         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
39384         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
39385         * modules/vasnprintf-posix-tests (Files): Likewise.
39386
39387 2008-12-21  William Pursell  <bill.pursell@gmail.com>
39388
39389         gitlog-to-changelog: pass all command-line arguments to git-log
39390         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
39391         it is sometimes convenient to filter the commits in various ways.
39392         gitlog-to-changelog only allows --since to specify a start date,
39393         but git-log itself supports many other filtering mechanisms.
39394         At the moment, I want to filter by branch name.  Rather than
39395         adding a --branch option to gitlog-to-changelog, it seems more
39396         flexible to simply pass all options directly to git-log and let
39397         git do the work.  Notice that this effectively makes --since a
39398         redundant option for gitlog-to-changelog, but removing it would
39399         require current usage to change since calls would then require
39400         an additional '--'.
39401
39402 2008-12-21  Bruno Haible  <bruno@clisp.org>
39403
39404         * modules/mbsnrtowcs-tests: New file.
39405         * tests/test-mbsnrtowcs1.sh: New file.
39406         * tests/test-mbsnrtowcs2.sh: New file.
39407         * tests/test-mbsnrtowcs3.sh: New file.
39408         * tests/test-mbsnrtowcs4.sh: New file.
39409         * tests/test-mbsnrtowcs.c: New file.
39410
39411         New module 'mbsnrtowcs'.
39412         * lib/wchar.in.h (mbsnrtowcs): New declaration.
39413         * lib/mbsnrtowcs.c: New file.
39414         * lib/mbsrtowcs-state.c: New file.
39415         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
39416         (internal_state): Remove variable.
39417         * m4/mbsnrtowcs.m4: New file.
39418         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
39419         compilation units.
39420         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
39421         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
39422         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
39423         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
39424         * modules/mbsnrtowcs: New file.
39425         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
39426         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
39427         portability problem.
39428
39429 2008-12-21  Bruno Haible  <bruno@clisp.org>
39430
39431         Work around mbsrtowcs bug.
39432         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
39433         (gl_FUNC_MBSRTOWCS): Invoke it.
39434         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
39435         m4/locale-zh.m4.
39436         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
39437
39438 2008-12-21  Bruno Haible  <bruno@clisp.org>
39439
39440         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
39441
39442 2008-12-21  Bruno Haible  <bruno@clisp.org>
39443
39444         Update doc for AIX.
39445         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
39446         16-bit wchar_t type.
39447         * doc/posix-functions/btowc.texi: Likewise.
39448         * doc/posix-functions/fgetwc.texi: Likewise.
39449         * doc/posix-functions/fgetws.texi: Likewise.
39450         * doc/posix-functions/fputwc.texi: Likewise.
39451         * doc/posix-functions/fputws.texi: Likewise.
39452         * doc/posix-functions/fwide.texi: Likewise.
39453         * doc/posix-functions/fwprintf.texi: Likewise.
39454         * doc/posix-functions/fwscanf.texi: Likewise.
39455         * doc/posix-functions/getwchar.texi: Likewise.
39456         * doc/posix-functions/getwc.texi: Likewise.
39457         * doc/posix-functions/iswalnum.texi: Likewise.
39458         * doc/posix-functions/iswalpha.texi: Likewise.
39459         * doc/posix-functions/iswblank.texi: Likewise.
39460         * doc/posix-functions/iswcntrl.texi: Likewise.
39461         * doc/posix-functions/iswctype.texi: Likewise.
39462         * doc/posix-functions/iswdigit.texi: Likewise.
39463         * doc/posix-functions/iswgraph.texi: Likewise.
39464         * doc/posix-functions/iswlower.texi: Likewise.
39465         * doc/posix-functions/iswprint.texi: Likewise.
39466         * doc/posix-functions/iswpunct.texi: Likewise.
39467         * doc/posix-functions/iswspace.texi: Likewise.
39468         * doc/posix-functions/iswupper.texi: Likewise.
39469         * doc/posix-functions/iswxdigit.texi: Likewise.
39470         * doc/posix-functions/mbrtowc.texi: Likewise.
39471         * doc/posix-functions/mbsrtowcs.texi: Likewise.
39472         * doc/posix-functions/mbstowcs.texi: Likewise.
39473         * doc/posix-functions/mbtowc.texi: Likewise.
39474         * doc/posix-functions/putwchar.texi: Likewise.
39475         * doc/posix-functions/putwc.texi: Likewise.
39476         * doc/posix-functions/swprintf.texi: Likewise.
39477         * doc/posix-functions/tolower.texi: Likewise.
39478         * doc/posix-functions/toupper.texi: Likewise.
39479         * doc/posix-functions/towctrans.texi: Likewise.
39480         * doc/posix-functions/ungetwc.texi: Likewise.
39481         * doc/posix-functions/vswprintf.texi: Likewise.
39482         * doc/posix-functions/wcrtomb.texi: Likewise.
39483         * doc/posix-functions/wcscat.texi: Likewise.
39484         * doc/posix-functions/wcschr.texi: Likewise.
39485         * doc/posix-functions/wcscmp.texi: Likewise.
39486         * doc/posix-functions/wcscoll.texi: Likewise.
39487         * doc/posix-functions/wcscpy.texi: Likewise.
39488         * doc/posix-functions/wcscspn.texi: Likewise.
39489         * doc/posix-functions/wcsftime.texi: Likewise.
39490         * doc/posix-functions/wcslen.texi: Likewise.
39491         * doc/posix-functions/wcsncat.texi: Likewise.
39492         * doc/posix-functions/wcsncmp.texi: Likewise.
39493         * doc/posix-functions/wcsncpy.texi: Likewise.
39494         * doc/posix-functions/wcspbrk.texi: Likewise.
39495         * doc/posix-functions/wcsrchr.texi: Likewise.
39496         * doc/posix-functions/wcsrtombs.texi: Likewise.
39497         * doc/posix-functions/wcsspn.texi: Likewise.
39498         * doc/posix-functions/wcsstr.texi: Likewise.
39499         * doc/posix-functions/wcstod.texi: Likewise.
39500         * doc/posix-functions/wcstof.texi: Likewise.
39501         * doc/posix-functions/wcstoimax.texi: Likewise.
39502         * doc/posix-functions/wcstok.texi: Likewise.
39503         * doc/posix-functions/wcstold.texi: Likewise.
39504         * doc/posix-functions/wcstoll.texi: Likewise.
39505         * doc/posix-functions/wcstol.texi: Likewise.
39506         * doc/posix-functions/wcstombs.texi: Likewise.
39507         * doc/posix-functions/wcstoull.texi: Likewise.
39508         * doc/posix-functions/wcstoul.texi: Likewise.
39509         * doc/posix-functions/wcstoumax.texi: Likewise.
39510         * doc/posix-functions/wcswidth.texi: Likewise.
39511         * doc/posix-functions/wcsxfrm.texi: Likewise.
39512         * doc/posix-functions/wctob.texi: Likewise.
39513         * doc/posix-functions/wctomb.texi: Likewise.
39514         * doc/posix-functions/wctrans.texi: Likewise.
39515         * doc/posix-functions/wctype.texi: Likewise.
39516         * doc/posix-functions/wcwidth.texi: Likewise.
39517         * doc/posix-functions/wmemchr.texi: Likewise.
39518         * doc/posix-functions/wmemcmp.texi: Likewise.
39519         * doc/posix-functions/wmemcpy.texi: Likewise.
39520         * doc/posix-functions/wmemmove.texi: Likewise.
39521         * doc/posix-functions/wmemset.texi: Likewise.
39522         * doc/posix-functions/wprintf.texi: Likewise.
39523         * doc/posix-functions/wscanf.texi: Likewise.
39524
39525 2008-12-21  Bruno Haible  <bruno@clisp.org>
39526
39527         Update doc for HP-UX 11.11.
39528         * doc/posix-functions/btowc.texi: Clarify that the function is missing
39529         in HP-UX version 11.00, not in all versions of HP-UX 11.
39530         * doc/posix-functions/fwide.texi: Likewise.
39531         * doc/posix-functions/fwprintf.texi: Likewise.
39532         * doc/posix-functions/fwscanf.texi: Likewise.
39533         * doc/posix-functions/inet_ntop.texi: Likewise.
39534         * doc/posix-functions/inet_pton.texi: Likewise.
39535         * doc/posix-functions/mbrlen.texi: Likewise.
39536         * doc/posix-functions/mbrtowc.texi: Likewise.
39537         * doc/posix-functions/mbsinit.texi: Likewise.
39538         * doc/posix-functions/mbsrtowcs.texi: Likewise.
39539         * doc/posix-functions/swprintf.texi: Likewise.
39540         * doc/posix-functions/swscanf.texi: Likewise.
39541         * doc/posix-functions/towctrans.texi: Likewise.
39542         * doc/posix-functions/vfwprintf.texi: Likewise.
39543         * doc/posix-functions/vswprintf.texi: Likewise.
39544         * doc/posix-functions/vwprintf.texi: Likewise.
39545         * doc/posix-functions/wcrtomb.texi: Likewise.
39546         * doc/posix-functions/wcsrtombs.texi: Likewise.
39547         * doc/posix-functions/wcsstr.texi: Likewise.
39548         * doc/posix-functions/wctob.texi: Likewise.
39549         * doc/posix-functions/wctrans.texi: Likewise.
39550         * doc/posix-functions/wmemchr.texi: Likewise.
39551         * doc/posix-functions/wmemcmp.texi: Likewise.
39552         * doc/posix-functions/wmemcpy.texi: Likewise.
39553         * doc/posix-functions/wmemmove.texi: Likewise.
39554         * doc/posix-functions/wmemset.texi: Likewise.
39555         * doc/posix-functions/wprintf.texi: Likewise.
39556         * doc/posix-functions/wscanf.texi: Likewise.
39557
39558 2008-12-21  Bruno Haible  <bruno@clisp.org>
39559
39560         Work around a portability problem.
39561         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
39562         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
39563
39564 2008-12-20  Bruno Haible  <bruno@clisp.org>
39565
39566         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
39567         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
39568         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
39569         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
39570         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
39571
39572         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
39573         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
39574         set.
39575         (GNULIB_defined_mbstate_t): New macro.
39576         (mbsinit): Redefine if REPLACE_MBSINIT is set.
39577         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
39578         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
39579         reuses the system's mbrtowc function but works around the bugs.
39580         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
39581         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
39582         macros.
39583         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
39584         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
39585         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
39586         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
39587         REPLACE_MBSINIT if mbsinit needs to be overridden.
39588         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
39589         REPLACE_MBSINIT, REPLACE_MBRTOWC.
39590         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
39591         REPLACE_MBSINIT, REPLACE_MBRTOWC.
39592         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
39593         m4/locale-zh.m4.
39594         (Depends): Add mbsinit.
39595         * modules/mbsinit (Depends): Add mbrtowc.
39596         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
39597
39598 2008-12-20  Bruno Haible  <bruno@clisp.org>
39599
39600         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
39601         so that there are no conversion errors on AIX.
39602         * tests/test-mbsrtowcs.c (main): LIkewise.
39603
39604 2008-12-20  Bruno Haible  <bruno@clisp.org>
39605
39606         Work around wctob bug on Solaris <= 9.
39607         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
39608         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
39609         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
39610         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
39611         * modules/wctob (Files): Add m4/locale-fr.m4.
39612         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
39613
39614 2008-12-20  Bruno Haible  <bruno@clisp.org>
39615
39616         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
39617         /dev/null.
39618         * tests/test-select-in.sh: Likewise.
39619         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39620
39621 2008-12-20  Bruno Haible  <bruno@clisp.org>
39622
39623         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
39624         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
39625         Cygwin 1.5.x.
39626
39627 2008-12-20  Bruno Haible  <bruno@clisp.org>
39628
39629         Ensure mbstate_t is defined on HP-UX 11.11.
39630         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
39631         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
39632         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
39633         AC_USE_SYSTEM_EXTENSIONS.
39634         * modules/fnmatch (Depends-on): Add extensions.
39635         * modules/mbrlen (Depends-on): Likewise.
39636         * modules/mbrtowc (Depends-on): Likewise.
39637         * modules/mbsinit (Depends-on): Likewise.
39638         * modules/mbsrtowcs (Depends-on): Likewise.
39639         * modules/mbswidth (Depends-on): Likewise.
39640         * modules/quotearg (Depends-on): Likewise.
39641         * modules/strftime (Depends-on): Likewise.
39642
39643 2008-12-20  Bruno Haible  <bruno@clisp.org>
39644
39645         Ensure wctob is declared on IRIX 6.5.
39646         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
39647         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
39648         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
39649         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
39650         of HAVE_WCTOB.
39651         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
39652         HAVE_WCTOB.
39653         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
39654
39655 2008-12-19  Bruno Haible  <bruno@clisp.org>
39656
39657         * modules/mbsrtowcs-tests: New file.
39658         * tests/test-mbsrtowcs1.sh: New file.
39659         * tests/test-mbsrtowcs2.sh: New file.
39660         * tests/test-mbsrtowcs3.sh: New file.
39661         * tests/test-mbsrtowcs4.sh: New file.
39662         * tests/test-mbsrtowcs.c: New file.
39663
39664         New module 'mbsrtowcs'.
39665         * lib/wchar.in.h (mbsrtowcs): New declaration.
39666         * lib/mbsrtowcs.c: New file.
39667         * m4/mbsrtowcs.m4: New file.
39668         * modules/mbsrtowcs: New file.
39669         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
39670         HAVE_MBSRTOWCS.
39671         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
39672         HAVE_MBSRTOWCS.
39673         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
39674
39675 2008-12-19  Bruno Haible  <bruno@clisp.org>
39676
39677         New module 'mbrlen'.
39678         * lib/wchar.in.h (mbrlen): New declaration.
39679         * lib/mbrlen.c: New file.
39680         * m4/mbrlen.m4: New file.
39681         * modules/mbrlen: New file.
39682         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
39683         HAVE_MBRLEN.
39684         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
39685         HAVE_MBRLEN.
39686         * doc/posix-functions/mbrlen.texi: Document the new module.
39687
39688 2008-12-19  Bruno Haible  <bruno@clisp.org>
39689
39690         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
39691         * modules/mbrtowc (Depends-on): Add verify.
39692         Suggested by Paul Eggert.
39693
39694 2008-12-18  Bruno Haible  <bruno@clisp.org>
39695
39696         * modules/mbsinit-tests: New file.
39697         * tests/test-mbsinit.sh: New file.
39698         * tests/test-mbsinit.c: New file.
39699
39700 2008-12-18  Bruno Haible  <bruno@clisp.org>
39701
39702         * modules/mbrtowc-tests: New file.
39703         * tests/test-mbrtowc1.sh: New file.
39704         * tests/test-mbrtowc2.sh: New file.
39705         * tests/test-mbrtowc3.sh: New file.
39706         * tests/test-mbrtowc4.sh: New file.
39707         * tests/test-mbrtowc.c: New file.
39708
39709         New module 'mbrtowc'.
39710         * lib/wchar.in.h (mbstate_t): Override when the system does not have
39711         mbsinit and mbrtowc.
39712         (mbrtowc): New declaration.
39713         * lib/mbrtowc.c: New file.
39714         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
39715         * modules/mbrtowc: New file.
39716         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
39717         HAVE_MBRTOWC.
39718         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
39719         HAVE_MBRTOWC.
39720         * doc/posix-functions/mbrtowc.texi: Document the new module.
39721
39722 2008-12-18  Bruno Haible  <bruno@clisp.org>
39723
39724         New module 'wctob'.
39725         * lib/wchar.in.h (wctob): New declaration.
39726         * lib/wctob.c: New file.
39727         * m4/wctob.m4: New file.
39728         * modules/wctob: New file.
39729         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
39730         HAVE_WCTOB.
39731         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
39732         * doc/posix-functions/wctob.texi: Document the new module.
39733
39734 2008-12-18  Bruno Haible  <bruno@clisp.org>
39735
39736         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
39737         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
39738
39739 2008-12-18  Simon Josefsson  <simon@josefsson.org>
39740
39741         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
39742         G. Christensen" <tgc@jupiterrise.com>.
39743
39744         * lib/flock.c: Need to include errno.h.  Reported by "Tom
39745         G. Christensen" <tgc@jupiterrise.com>.
39746
39747         * lib/flock.c: Need to include string.h.  Reported by "Tom
39748         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
39749         <ebb9@byu.net>.
39750
39751 2008-12-18  Bruno Haible  <bruno@clisp.org>
39752
39753         * m4/locale-ja.m4: New file, from GNU gettext.
39754
39755 2008-12-17  Bruno Haible  <bruno@clisp.org>
39756
39757         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
39758         Suggested by Eric Blake.
39759
39760 2008-12-17  Bruno Haible  <bruno@clisp.org>
39761
39762         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
39763
39764 2008-12-17  Bruno Haible  <bruno@clisp.org>
39765
39766         * lib/mbsinit.c: Include verify.h. Verify an assumption.
39767         * modules/mbsinit (Depends-on): Add verify.
39768         Suggested by Paul Eggert.
39769
39770 2008-12-17  Bruno Haible  <bruno@clisp.org>
39771
39772         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
39773         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
39774         gl_FUNC_MBRTOWC.
39775         * m4/mbiter.m4 (gl_MBITER): LIkewise.
39776         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
39777         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
39778         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
39779         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
39780         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
39781         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
39782         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
39783         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
39784         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
39785         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
39786         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
39787         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
39788         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
39789         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
39790         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
39791         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
39792         * modules/trim (configure.ac): Likewise.
39793
39794 2008-12-17  Bruno Haible  <bruno@clisp.org>
39795
39796         * modules/btowc-tests: New file.
39797         * tests/test-btowc1.sh: New file.
39798         * tests/test-btowc2.sh: New file.
39799         * tests/test-btowc.c: New file.
39800
39801         New module 'btowc'.
39802         * lib/wchar.in.h (btowc): New declaration.
39803         * lib/btowc.c: New file.
39804         * m4/btowc.m4: New file.
39805         * modules/btowc: New file.
39806         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
39807         HAVE_BTOWC.
39808         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
39809         * doc/posix-functions/btowc.texi: Document the new module.
39810
39811 2008-12-17  Bruno Haible  <bruno@clisp.org>
39812
39813         New module 'mbsinit'.
39814         * lib/wchar.in.h (mbsinit): New declaration.
39815         * lib/mbsinit.c: New file.
39816         * m4/mbsinit.m4: New file.
39817         * modules/mbsinit: New file.
39818         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
39819         HAVE_MBSINIT.
39820         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
39821         HAVE_MBSINIT.
39822         * doc/posix-functions/mbsinit.texi: Document the new module.
39823
39824 2008-12-16  Bruno Haible  <bruno@clisp.org>
39825
39826         * lib/unistd.in.h: Add comment.
39827         * tests/test-environ.c: Don't include <stdlib.h>.
39828
39829 2008-12-16  Bruno Haible  <bruno@clisp.org>
39830
39831         * lib/parse-duration.h (parse_duration): Document return value
39832         convention.
39833         * lib/parse-duration.c: Include specification header first. Add
39834         comments.
39835         (_): Remove macro.
39836         (parse_year_month_day, parse_hour_minute_second): Move side effects
39837         outside of strchr call.
39838         (parse_non_iso8601): Move side effects outside of isspace call.
39839         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
39840         call.
39841
39842 2008-12-16  Bruno Haible  <bruno@clisp.org>
39843
39844         * tests/test-parse-duration.sh: Produce no output when the test
39845         succeeds.
39846
39847 2008-12-16  Bruno Haible  <bruno@clisp.org>
39848
39849         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
39850         expressions.
39851
39852 2008-12-15  Bruno Haible  <bruno@clisp.org>
39853
39854         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
39855         * doc/glibc-functions/flistxattr.texi: Likewise.
39856         * doc/glibc-functions/fopencookie.texi: Likewise.
39857         * doc/glibc-functions/fremovexattr.texi: Likewise.
39858         * doc/glibc-functions/fsetxattr.texi: Likewise.
39859         * doc/glibc-functions/getxattr.texi: Likewise.
39860         * doc/glibc-functions/lgetxattr.texi: Likewise.
39861         * doc/glibc-functions/listxattr.texi: Likewise.
39862         * doc/glibc-functions/llistxattr.texi: Likewise.
39863         * doc/glibc-functions/lremovexattr.texi: Likewise.
39864         * doc/glibc-functions/lsetxattr.texi: Likewise.
39865         * doc/glibc-functions/removexattr.texi: Likewise.
39866         * doc/glibc-functions/setxattr.texi: Likewise.
39867         * doc/posix-functions/open_memstream.texi: Likewise.
39868
39869 2008-12-15  Eric Blake  <ebb9@byu.net>
39870
39871         Update doc for cygwin 1.7.
39872         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
39873         functions.
39874         * doc/posix-functions/fchmodat.texi: Likewise.
39875         * doc/posix-functions/fchownat.texi: Likewise.
39876         * doc/posix-functions/fdopendir.texi: Likewise.
39877         * doc/posix-functions/fmemopen.texi: Likewise.
39878         * doc/posix-functions/freeaddrinfo.texi: Likewise.
39879         * doc/posix-functions/fstatat.texi: Likewise.
39880         * doc/posix-functions/futimens.texi: Likewise.
39881         * doc/posix-functions/gai_strerror.texi: Likewise.
39882         * doc/posix-functions/getaddrinfo.texi: Likewise.
39883         * doc/posix-functions/getnameinfo.texi: Likewise.
39884         * doc/posix-functions/if_freenameindex.texi: Likewise.
39885         * doc/posix-functions/if_indextoname.texi: Likewise.
39886         * doc/posix-functions/if_nameindex.texi: Likewise.
39887         * doc/posix-functions/if_nametoindex.texi: Likewise.
39888         * doc/posix-functions/insque.texi: Likewise.
39889         * doc/posix-functions/linkat.texi: Likewise.
39890         * doc/posix-functions/llrint.texi: Likewise.
39891         * doc/posix-functions/llrintf.texi: Likewise.
39892         * doc/posix-functions/llrintl.texi: Likewise.
39893         * doc/posix-functions/lockf.texi: Likewise.
39894         * doc/posix-functions/lrintl.texi: Likewise.
39895         * doc/posix-functions/mkdirat.texi: Likewise.
39896         * doc/posix-functions/mkfifoat.texi: Likewise.
39897         * doc/posix-functions/mknodat.texi: Likewise.
39898         * doc/posix-functions/mq_close.texi: Likewise.
39899         * doc/posix-functions/mq_getattr.texi: Likewise.
39900         * doc/posix-functions/mq_notify.texi: Likewise.
39901         * doc/posix-functions/mq_open.texi: Likewise.
39902         * doc/posix-functions/mq_receive.texi: Likewise.
39903         * doc/posix-functions/mq_send.texi: Likewise.
39904         * doc/posix-functions/mq_setattr.texi: Likewise.
39905         * doc/posix-functions/mq_timedreceive.texi: Likewise.
39906         * doc/posix-functions/mq_timedsend.texi: Likewise.
39907         * doc/posix-functions/mq_unlink.texi: Likewise.
39908         * doc/posix-functions/open_memstream.texi: Likewise.
39909         * doc/posix-functions/openat.texi: Likewise.
39910         * doc/posix-functions/posix_fadvise.texi: Likewise.
39911         * doc/posix-functions/posix_fallocate.texi: Likewise.
39912         * doc/posix-functions/posix_madvise.texi: Likewise.
39913         * doc/posix-functions/posix_memalign.texi: Likewise.
39914         * doc/posix-functions/posix_openpt.texi: Likewise.
39915         * doc/posix-functions/readlinkat.texi: Likewise.
39916         * doc/posix-functions/remque.texi: Likewise.
39917         * doc/posix-functions/renameat.texi: Likewise.
39918         * doc/posix-functions/rintl.texi: Likewise.
39919         * doc/posix-functions/sem_unlink.texi: Likewise.
39920         * doc/posix-functions/shm_open.texi: Likewise.
39921         * doc/posix-functions/shm_unlink.texi: Likewise.
39922         * doc/posix-functions/signgam.texi: Likewise.
39923         * doc/posix-functions/sigset.texi: Likewise.
39924         * doc/posix-functions/stpcpy.texi: Likewise.
39925         * doc/posix-functions/stpncpy.texi: Likewise.
39926         * doc/posix-functions/strerror.texi: Likewise.
39927         * doc/posix-functions/strtod.texi: Likewise.
39928         * doc/posix-functions/symlinkat.texi: Likewise.
39929         * doc/posix-functions/unlinkat.texi: Likewise.
39930         * doc/posix-functions/utimensat.texi: Likewise.
39931         * doc/glibc-functions/bindresvport.texi: Likewise.
39932         * doc/glibc-functions/dn_expand.texi: Likewise.
39933         * doc/glibc-functions/exp10.texi: Likewise.
39934         * doc/glibc-functions/exp10f.texi: Likewise.
39935         * doc/glibc-functions/fgetxattr.texi: Likewise.
39936         * doc/glibc-functions/flistxattr.texi: Likewise.
39937         * doc/glibc-functions/fopencookie.texi: Likewise.
39938         * doc/glibc-functions/freeifaddrs.texi: Likewise.
39939         * doc/glibc-functions/fremovexattr.texi: Likewise.
39940         * doc/glibc-functions/fsetxattr.texi: Likewise.
39941         * doc/glibc-functions/getifaddrs.texi: Likewise.
39942         * doc/glibc-functions/getxattr.texi: Likewise.
39943         * doc/glibc-functions/lgetxattr.texi: Likewise.
39944         * doc/glibc-functions/listxattr.texi: Likewise.
39945         * doc/glibc-functions/llistxattr.texi: Likewise.
39946         * doc/glibc-functions/lremovexattr.texi: Likewise.
39947         * doc/glibc-functions/lsetxattr.texi: Likewise.
39948         * doc/glibc-functions/pow10.texi: Likewise.
39949         * doc/glibc-functions/pow10f.texi: Likewise.
39950         * doc/glibc-functions/rcmd_af.texi: Likewise.
39951         * doc/glibc-functions/removexattr.texi: Likewise.
39952         * doc/glibc-functions/res_init.texi: Likewise.
39953         * doc/glibc-functions/res_mkquery.texi: Likewise.
39954         * doc/glibc-functions/res_query.texi: Likewise.
39955         * doc/glibc-functions/res_querydomain.texi: Likewise.
39956         * doc/glibc-functions/res_send.texi: Likewise.
39957         * doc/glibc-functions/rresvport_af.texi: Likewise.
39958         * doc/glibc-functions/setxattr.texi: Likewise.
39959         * doc/glibc-functions/strcasestr.texi: Likewise.
39960
39961 2008-12-15  Bruno Haible  <bruno@clisp.org>
39962
39963         Fix compilation error on OSF/1 4.0.
39964         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
39965         <sys/time.h>, simply delegate to the system header.
39966         Reported by Daniel Richard G. <oss@teragram.com>.
39967
39968 2008-12-15  Bruno Haible  <bruno@clisp.org>
39969
39970         * doc/posix-functions/openat.texi: Mention the 'openat' module.
39971         * doc/posix-functions/fchmodat.texi: Likewise.
39972         * doc/posix-functions/fchownat.texi: Likewise.
39973         * doc/posix-functions/fdopendir.texi: Likewise.
39974         * doc/posix-functions/fstatat.texi: Likewise.
39975         * doc/posix-functions/mkdirat.texi: Likewise.
39976         * doc/posix-functions/unlinkat.texi: Likewise.
39977
39978 2008-12-14  Bruno Haible  <bruno@clisp.org>
39979
39980         Update doc for POSIX:2008.
39981         * doc/posix-functions/faccessat.texi: New file.
39982         * doc/posix-functions/fchmodat.texi: New file.
39983         * doc/posix-functions/fchownat.texi: New file.
39984         * doc/posix-functions/fdopendir.texi: New file.
39985         * doc/posix-functions/fstatat.texi: New file.
39986         * doc/posix-functions/futimens.texi: New file.
39987         * doc/posix-functions/linkat.texi: New file.
39988         * doc/posix-functions/mkdirat.texi: New file.
39989         * doc/posix-functions/mkfifoat.texi: New file.
39990         * doc/posix-functions/mknodat.texi: New file.
39991         * doc/posix-functions/open_wmemstream.texi: New file.
39992         * doc/posix-functions/openat.texi: New file.
39993         * doc/posix-functions/psiginfo.texi: New file.
39994         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
39995         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
39996         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
39997         * doc/posix-functions/readlinkat.texi: New file.
39998         * doc/posix-functions/renameat.texi: New file.
39999         * doc/posix-functions/strerror_l.texi: New file.
40000         * doc/posix-functions/symlinkat.texi: New file.
40001         * doc/posix-functions/unlinkat.texi: New file.
40002         * doc/posix-functions/utimensat.texi: New file.
40003         * doc/gnulib.texi (Function Substitutes): Add these subsections.
40004
40005 2008-12-14  Bruno Haible  <bruno@clisp.org>
40006
40007         Update doc for POSIX:2008.
40008         * doc/posix-functions/alphasort.texi: Renamed from
40009         doc/glibc-functions/alphasort.texi.
40010         * doc/posix-functions/dirfd.texi: Renamed from
40011         doc/glibc-functions/dirfd.texi.
40012         * doc/posix-functions/dprintf.texi: Renamed from
40013         doc/glibc-functions/dprintf.texi.
40014         * doc/posix-functions/duplocale.texi: Renamed from
40015         doc/glibc-functions/duplocale.texi.
40016         * doc/posix-functions/fexecve.texi: Renamed from
40017         doc/glibc-functions/fexecve.texi.
40018         * doc/posix-functions/fmemopen.texi: Renamed from
40019         doc/glibc-functions/fmemopen.texi.
40020         * doc/posix-functions/freelocale.texi: Renamed from
40021         doc/glibc-functions/freelocale.texi.
40022         * doc/posix-functions/getdate_err.texi: Renamed from
40023         doc/glibc-functions/getdate_err.texi.
40024         * doc/posix-functions/isalnum_l.texi: Renamed from
40025         doc/glibc-functions/isalnum_l.texi.
40026         * doc/posix-functions/isalpha_l.texi: Renamed from
40027         doc/glibc-functions/isalpha_l.texi.
40028         * doc/posix-functions/isblank_l.texi: Renamed from
40029         doc/glibc-functions/isblank_l.texi.
40030         * doc/posix-functions/iscntrl_l.texi: Renamed from
40031         doc/glibc-functions/iscntrl_l.texi.
40032         * doc/posix-functions/isdigit_l.texi: Renamed from
40033         doc/glibc-functions/isdigit_l.texi.
40034         * doc/posix-functions/isgraph_l.texi: Renamed from
40035         doc/glibc-functions/isgraph_l.texi.
40036         * doc/posix-functions/islower_l.texi: Renamed from
40037         doc/glibc-functions/islower_l.texi.
40038         * doc/posix-functions/isprint_l.texi: Renamed from
40039         doc/glibc-functions/isprint_l.texi.
40040         * doc/posix-functions/ispunct_l.texi: Renamed from
40041         doc/glibc-functions/ispunct_l.texi.
40042         * doc/posix-functions/isspace_l.texi: Renamed from
40043         doc/glibc-functions/isspace_l.texi.
40044         * doc/posix-functions/isupper_l.texi: Renamed from
40045         doc/glibc-functions/isupper_l.texi.
40046         * doc/posix-functions/iswalnum_l.texi: Renamed from
40047         doc/glibc-functions/iswalnum_l.texi.
40048         * doc/posix-functions/iswalpha_l.texi: Renamed from
40049         doc/glibc-functions/iswalpha_l.texi.
40050         * doc/posix-functions/iswblank_l.texi: Renamed from
40051         doc/glibc-functions/iswblank_l.texi.
40052         * doc/posix-functions/iswcntrl_l.texi: Renamed from
40053         doc/glibc-functions/iswcntrl_l.texi.
40054         * doc/posix-functions/iswctype_l.texi: Renamed from
40055         doc/glibc-functions/iswctype_l.texi.
40056         * doc/posix-functions/iswdigit_l.texi: Renamed from
40057         doc/glibc-functions/iswdigit_l.texi.
40058         * doc/posix-functions/iswgraph_l.texi: Renamed from
40059         doc/glibc-functions/iswgraph_l.texi.
40060         * doc/posix-functions/iswlower_l.texi: Renamed from
40061         doc/glibc-functions/iswlower_l.texi.
40062         * doc/posix-functions/iswprint_l.texi: Renamed from
40063         doc/glibc-functions/iswprint_l.texi.
40064         * doc/posix-functions/iswpunct_l.texi: Renamed from
40065         doc/glibc-functions/iswpunct_l.texi.
40066         * doc/posix-functions/iswspace_l.texi: Renamed from
40067         doc/glibc-functions/iswspace_l.texi.
40068         * doc/posix-functions/iswupper_l.texi: Renamed from
40069         doc/glibc-functions/iswupper_l.texi.
40070         * doc/posix-functions/iswxdigit_l.texi: Renamed from
40071         doc/glibc-functions/iswxdigit_l.texi.
40072         * doc/posix-functions/isxdigit_l.texi: Renamed from
40073         doc/glibc-functions/isxdigit_l.texi.
40074         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
40075         doc/glibc-functions/mbsnrtowcs.texi.
40076         * doc/posix-functions/mkdtemp.texi: Renamed from
40077         doc/glibc-functions/mkdtemp.texi.
40078         * doc/posix-functions/newlocale.texi: Renamed from
40079         doc/glibc-functions/newlocale.texi.
40080         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
40081         doc/glibc-functions/nl_langinfo_l.texi.
40082         * doc/posix-functions/open_memstream.texi: Renamed from
40083         doc/glibc-functions/open_memstream.texi.
40084         * doc/posix-functions/opterr.texi: Renamed from
40085         doc/glibc-functions/opterr.texi.
40086         * doc/posix-functions/optind.texi: Renamed from
40087         doc/glibc-functions/optind.texi.
40088         * doc/posix-functions/optopt.texi: Renamed from
40089         doc/glibc-functions/optopt.texi.
40090         * doc/posix-functions/psignal.texi: Renamed from
40091         doc/glibc-functions/psignal.texi.
40092         * doc/posix-functions/scandir.texi: Renamed from
40093         doc/glibc-functions/scandir.texi.
40094         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
40095         doc/glibc-functions/sched_get_priority_min.texi.
40096         * doc/posix-functions/signgam.texi: Renamed from
40097         doc/glibc-functions/signgam.texi.
40098         * doc/posix-functions/stpcpy.texi: Renamed from
40099         doc/glibc-functions/stpcpy.texi.
40100         * doc/posix-functions/stpncpy.texi: Renamed from
40101         doc/glibc-functions/stpncpy.texi.
40102         * doc/posix-functions/strcasecmp_l.texi: Renamed from
40103         doc/glibc-functions/strcasecmp_l.texi.
40104         * doc/posix-functions/strcoll_l.texi: Renamed from
40105         doc/glibc-functions/strcoll_l.texi.
40106         * doc/posix-functions/strfmon_l.texi: Renamed from
40107         doc/glibc-functions/strfmon_l.texi.
40108         * doc/posix-functions/strftime_l.texi: Renamed from
40109         doc/glibc-functions/strftime_l.texi.
40110         * doc/posix-functions/strncasecmp_l.texi: Renamed from
40111         doc/glibc-functions/strncasecmp_l.texi.
40112         * doc/posix-functions/strndup.texi: Renamed from
40113         doc/glibc-functions/strndup.texi.
40114         * doc/posix-functions/strnlen.texi: Renamed from
40115         doc/glibc-functions/strnlen.texi.
40116         * doc/posix-functions/strsignal.texi: Renamed from
40117         doc/glibc-functions/strsignal.texi.
40118         * doc/posix-functions/strxfrm_l.texi: Renamed from
40119         doc/glibc-functions/strxfrm_l.texi.
40120         * doc/posix-functions/timer_gettime.texi: Renamed from
40121         doc/glibc-functions/timer_gettime.texi.
40122         * doc/posix-functions/tolower_l.texi: Renamed from
40123         doc/glibc-functions/tolower_l.texi.
40124         * doc/posix-functions/toupper_l.texi: Renamed from
40125         doc/glibc-functions/toupper_l.texi.
40126         * doc/posix-functions/towctrans_l.texi: Renamed from
40127         doc/glibc-functions/towctrans_l.texi.
40128         * doc/posix-functions/towlower_l.texi: Renamed from
40129         doc/glibc-functions/towlower_l.texi.
40130         * doc/posix-functions/towupper_l.texi: Renamed from
40131         doc/glibc-functions/towupper_l.texi.
40132         * doc/posix-functions/uselocale.texi: Renamed from
40133         doc/glibc-functions/uselocale.texi.
40134         * doc/posix-functions/vdprintf.texi: Renamed from
40135         doc/glibc-functions/vdprintf.texi.
40136         * doc/posix-functions/wcpcpy.texi:
40137         Renamed from doc/glibc-functions/wcpcpy.texi.
40138         * doc/posix-functions/wcpncpy.texi: Renamed from
40139         doc/glibc-functions/wcpncpy.texi.
40140         * doc/posix-functions/wcscasecmp.texi: Renamed from
40141         doc/glibc-functions/wcscasecmp.texi.
40142         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
40143         doc/glibc-functions/wcscasecmp_l.texi.
40144         * doc/posix-functions/wcscoll_l.texi: Renamed from
40145         doc/glibc-functions/wcscoll_l.texi.
40146         * doc/posix-functions/wcsdup.texi: Renamed from
40147         doc/glibc-functions/wcsdup.texi.
40148         * doc/posix-functions/wcsncasecmp.texi: Renamed from
40149         doc/glibc-functions/wcsncasecmp.texi.
40150         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
40151         doc/glibc-functions/wcsncasecmp_l.texi.
40152         * doc/posix-functions/wcsnlen.texi: Renamed from
40153         doc/glibc-functions/wcsnlen.texi.
40154         * doc/posix-functions/wcsnrtombs.texi: Renamed from
40155         doc/glibc-functions/wcsnrtombs.texi.
40156         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
40157         doc/glibc-functions/wcsxfrm_l.texi.
40158         * doc/posix-functions/wctrans_l.texi: Renamed from
40159         doc/glibc-functions/wctrans_l.texi.
40160         * doc/posix-functions/wctype_l.texi: Renamed from
40161         doc/glibc-functions/wctype_l.texi.
40162         * doc/gnulib.texi (Function Substitutes): Add these subsections.
40163         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
40164         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
40165         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
40166         these subsections.
40167         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
40168         Remove sections.
40169
40170 2008-12-14  Bruno Haible  <bruno@clisp.org>
40171
40172         Update doc for POSIX:2008.
40173         * doc/posix-functions/*.texi: Update URL of POSIX specification.
40174
40175 2008-12-14  Bruno Haible  <bruno@clisp.org>
40176
40177         Update doc for POSIX:2008.
40178         * doc/pastposix-functions/bcmp.texi: Renamed from
40179         doc/posix-functions/bcmp.texi.
40180         * doc/pastposix-functions/bcopy.texi: Renamed from
40181         doc/posix-functions/bcopy.texi.
40182         * doc/pastposix-functions/bsd_signal.texi: Renamed from
40183         doc/posix-functions/bsd_signal.texi.
40184         * doc/pastposix-functions/bzero.texi: Renamed from
40185         doc/posix-functions/bzero.texi.
40186         * doc/pastposix-functions/ecvt.texi: Renamed from
40187         doc/posix-functions/ecvt.texi.
40188         * doc/pastposix-functions/fcvt.texi: Renamed from
40189         doc/posix-functions/fcvt.texi.
40190         * doc/pastposix-functions/ftime.texi: Renamed from
40191         doc/posix-functions/ftime.texi.
40192         * doc/pastposix-functions/gcvt.texi: Renamed from
40193         doc/posix-functions/gcvt.texi.
40194         * doc/pastposix-functions/getcontext.texi: Renamed from
40195         doc/posix-functions/getcontext.texi.
40196         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
40197         doc/posix-functions/gethostbyaddr.texi.
40198         * doc/pastposix-functions/gethostbyname.texi: Renamed from
40199         doc/posix-functions/gethostbyname.texi.
40200         * doc/pastposix-functions/getwd.texi: Renamed from
40201         doc/posix-functions/getwd.texi.
40202         * doc/pastposix-functions/h_errno.texi: Renamed from
40203         doc/posix-functions/h_errno.texi.
40204         * doc/pastposix-functions/index.texi: Renamed from
40205         doc/posix-functions/index.texi.
40206         * doc/pastposix-functions/makecontext.texi: Renamed from
40207         doc/posix-functions/makecontext.texi.
40208         * doc/pastposix-functions/mktemp.texi: Renamed from
40209         doc/posix-functions/mktemp.texi.
40210         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
40211         doc/posix-functions/pthread_attr_getstackaddr.texi.
40212         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
40213         doc/posix-functions/pthread_attr_setstackaddr.texi.
40214         * doc/pastposix-functions/rindex.texi: Renamed from
40215         doc/posix-functions/rindex.texi.
40216         * doc/pastposix-functions/scalb.texi: Renamed from
40217         doc/posix-functions/scalb.texi.
40218         * doc/pastposix-functions/setcontext.texi: Renamed from
40219         doc/posix-functions/setcontext.texi.
40220         * doc/pastposix-functions/swapcontext.texi: Renamed from
40221         doc/posix-functions/swapcontext.texi.
40222         * doc/pastposix-functions/ualarm.texi: Renamed from
40223         doc/posix-functions/ualarm.texi.
40224         * doc/pastposix-functions/usleep.texi: Renamed from
40225         doc/posix-functions/usleep.texi.
40226         * doc/pastposix-functions/vfork.texi: Renamed from
40227         doc/posix-functions/vfork.texi.
40228         * doc/pastposix-functions/wcswcs.texi: Renamed from
40229         doc/posix-functions/wcswcs.texi.
40230         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
40231         (Function Substitutes): Update.
40232
40233 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40234
40235         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
40236         m4/strerror.m4.
40237
40238 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40239             Bruno Haible  <bruno@clisp.org>
40240
40241         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
40242
40243 2008-12-13  Bruno Haible  <bruno@clisp.org>
40244
40245         * modules/strtoull (Depends-on): Remove unistd.
40246
40247 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40248
40249         * modules/strtoull (Depends-on): Add stdlib.
40250
40251 2008-12-11  Simon Josefsson  <simon@josefsson.org>
40252
40253         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
40254
40255 2008-12-10  Jim Meyering  <meyering@redhat.com>
40256
40257         gl_ASSERT: don't say assertions are disabled when they're not
40258         * m4/assert.m4 (gl_ASSERT): Do not make configure report
40259         "checking whether to enable assertions... no", when they are in
40260         fact enabled.  This is solely a bug in the output of configure.
40261         In spite of saying "no", NDEBUG was not defined in that case.
40262         Also, as noted by Eric Blake, leave assertions enabled upon
40263         --enable-assert=INVALID.
40264
40265 2008-12-10  Bruno Haible  <bruno@clisp.org>
40266
40267         Change MODULES.html to refer to POSIX:2008 where possible.
40268         * MODULES.html.sh (POSIX2008_URL): New variable.
40269         (posix_headers): Remove sys/timeb, ucontext.
40270         (posix2001_headers): New variable.
40271         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
40272         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
40273         index, makecontext, mktemp, pthread_attr_getstackaddr,
40274         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
40275         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
40276         (posix2001_functions): New variable.
40277         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
40278         otherwise.
40279
40280 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40281
40282         add missing include to parse-duration.c
40283         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
40284         * modules/parse-duration (Depends-on): Add xalloc.
40285
40286         fix sed script reading maint.mk
40287         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
40288         (syntax-check-rules): Use it.
40289
40290 2008-12-09  Bruno Haible  <bruno@clisp.org>
40291
40292         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
40293         MacOS X 10.4/PowerPC.
40294         Reported by Simon Josefsson.
40295
40296 2008-12-08  Jim Meyering  <meyering@redhat.com>
40297
40298         work around mingw's lack of some S_IF definitions
40299         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
40300         Reported by Simon Josefsson.
40301
40302 2008-12-08  Bruno Haible  <bruno@clisp.org>
40303
40304         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
40305         applied to variables. Needed on MacOS X 10.4/PowerPC.
40306         Reported by Simon Josefsson.
40307
40308 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
40309         and Eric Blake  <ebb9@byu.net>
40310
40311         assert: honor --enable-assert
40312         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
40313         order to honor --enable-assert, rather than treating it as a
40314         synonym for --disable-assert.
40315
40316 2008-12-08  Jim Meyering  <meyering@redhat.com>
40317
40318         * lib/posixtm.c: Remove now-useless declaration of mktime.
40319
40320         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
40321
40322 2008-12-07  Bruno Haible  <bruno@clisp.org>
40323
40324         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
40325         test_once): Mark functions as static.
40326         * tests/test-tls.c (test_tls): Likewise.
40327
40328 2008-12-07  Bruno Haible  <bruno@clisp.org>
40329
40330         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
40331         iconv_register_autodetect.
40332
40333 2008-12-07  Jim Meyering  <meyering@redhat.com>
40334
40335         posixtm.c: avoid a warning
40336         * lib/posixtm.c (posixtime): Don't initialize tm0.
40337         It's no longer needed to placate gcc4's -Wuninitialized,
40338         and the attempt to placate would elicit a new warning.
40339
40340         unicodeio.c: mark unused parameters
40341         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
40342         (fallback_failure_callback): Likewise.
40343
40344 2008-12-07  Bruno Haible  <bruno@clisp.org>
40345
40346         * gnulib-tool (func_create_testdir): When building the tests
40347         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
40348         Reported by Simon Josefsson.
40349
40350 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40351
40352         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
40353
40354 2008-12-06  Bruno Haible  <bruno@clisp.org>
40355
40356         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
40357         Suggested by Eric Blake.
40358
40359 2008-12-06  Bruno Haible  <bruno@clisp.org>
40360
40361         Fix a c-stack test failure on MacOS X.
40362         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
40363         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
40364         handler for SIGBUS as well.
40365         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
40366         install a signal handler for SIGBUS as well.
40367         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
40368
40369 2008-12-06  Bruno Haible  <bruno@clisp.org>
40370
40371         Advocacy documentation.
40372         * doc/gnulib-intro.texi (Benefits): New section.
40373         * doc/gnulib.texi: Update.
40374
40375 2008-12-06  Bruno Haible  <bruno@clisp.org>
40376
40377         Document the 'manywarnings' module.
40378         * doc/manywarnings.texi: New file.
40379         * doc/gnulib.texi: Include it.
40380
40381 2008-12-05  Eric Blake  <ebb9@byu.net>
40382
40383         tests: silence some gcc warnings
40384         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
40385         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
40386         type mismatches.
40387
40388 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40389             Bruno Haible  <bruno@clisp.org>
40390
40391         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
40392
40393 2008-11-29  Jim Meyering  <meyering@redhat.com>
40394
40395         unicodeio.c: mark unused parameters
40396         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
40397         (fallback_failure_callback): Likewise.
40398
40399         fts: fix a thinko
40400         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
40401         (set_stat_type): Return S_IF*-valued "type" directly.
40402         Prompted by James Youngman's spotting a related bug.
40403         Confirmed by further testing through find.
40404
40405         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
40406         * lib/fts.c (D_TYPE): Define.
40407         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
40408         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
40409         (s_ifmt_shift_bits): New function.
40410         (set_stat_type): New function.
40411         (fts_build): When not calling fts_stat, call set_stat_type
40412         to propagate dirent.d_type info to fts_read caller.
40413         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
40414         fts_statp->st_mode type information may be valid.
40415
40416 2008-11-28  Simon Josefsson  <simon@josefsson.org>
40417
40418         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
40419         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
40420         <sds@gnu.org>.
40421
40422 2008-11-20  Bruno Haible  <bruno@clisp.org>
40423
40424         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
40425         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
40426         INCLUDE_NEXT.
40427         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
40428         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
40429         * modules/math (Makefile.am): Substitute
40430         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
40431         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40432
40433 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
40434             Bruno Haible  <bruno@clisp.org>
40435
40436         * lib/stdint.in.h: Define all type macros so that their expansion is
40437         a single typedef'ed token. Fixes a compilation failure in Boost which
40438         does "using ::int8_t;".
40439
40440 2008-11-18  Simon Josefsson  <simon@josefsson.org>
40441
40442         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
40443         gl_MANYWARN_ALL_GCC.
40444         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
40445         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
40446         * modules/manywarnings: New file.
40447         * MODULES.html.sh: Mention manywarnings module.
40448
40449 2008-11-18  Bruno Haible  <bruno@clisp.org>
40450
40451         * doc/gnulib-tool.texi (Unit tests): New section.
40452
40453 2008-11-18  Simon Josefsson  <simon@josefsson.org>
40454
40455         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
40456         paths like 'lib/po/foo.po'.
40457
40458 2008-11-17  Simon Josefsson  <simon@josefsson.org>
40459
40460         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
40461         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
40462
40463 2008-11-17  Simon Josefsson  <simon@josefsson.org>
40464
40465         * m4/warnings.m4: Use CPPFLAGS to really check whether the
40466         parameter works.
40467
40468 2008-11-17  Simon Josefsson  <simon@josefsson.org>
40469
40470         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
40471
40472 2008-11-17  Bruce Korb  <bkorb@gnu.org>
40473
40474         * modules/parse-duration-tests: New file.
40475         * tests/test-parse-duration.sh: New file.
40476         * tests/test-parse-duration.c: New file.
40477
40478         New module 'parse-duration'.
40479         * lib/parse-duration.h: New file.
40480         * lib/parse-duration.c: New file.
40481         * modules/parse-duration: New file.
40482
40483 2008-11-17  Bruno Haible  <bruno@clisp.org>
40484
40485         * tests/test-select-out.sh: Comment out the first pipe test.
40486         Reported by Simon Josefsson.
40487
40488 2008-11-17  Bruno Haible  <bruno@clisp.org>
40489
40490         * modules/getaddrinfo (Depends-on): Add servent, hostent.
40491         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
40492         gl_HOSTENT.
40493
40494 2008-11-17  Bruno Haible  <bruno@clisp.org>
40495
40496         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
40497         -lnetwork and -lnet. Needed for Haiku and BeOS.
40498
40499 2008-11-16  Bruno Haible  <bruno@clisp.org>
40500
40501         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
40502
40503 2008-11-16  Bruno Haible  <bruno@clisp.org>
40504
40505         Avoid test failure on Haiku.
40506         * tests/test-fsync.c: Include <errno.h>.
40507         (main): Don't require that fsync (0) fails.
40508
40509 2008-11-15  Bruno Haible  <bruno@clisp.org>
40510
40511         New module 'hostent'.
40512         * modules/hostent: New file.
40513         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
40514
40515 2008-11-15  Bruno Haible  <bruno@clisp.org>
40516
40517         New module 'servent'.
40518         * modules/servent: New file.
40519         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
40520
40521 2008-11-15  Bruno Haible  <bruno@clisp.org>
40522
40523         Avoid generating same test program with two different rules.
40524         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
40525         test-frexp to test-frexp-nolibm.
40526         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
40527         test-frexpl to test-frexpl-nolibm.
40528
40529 2008-11-15  Bruno Haible  <bruno@clisp.org>
40530
40531         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
40532         $(FREXPL_LIBM).
40533
40534 2008-11-15  Bruno Haible  <bruno@clisp.org>
40535
40536         * lib/netdb.in.h: Activate the definitions also when the system's
40537         <netdb.h> has 'struct addrinfo'.
40538         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
40539         EAI_OVERFLOW or AI_NUMERICSERV.
40540         * doc/posix-headers/netdb.texi: Document the problem.
40541
40542 2008-11-15  Bruno Haible  <bruno@clisp.org>
40543
40544         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
40545
40546         Make the 'sched' module work on platforms where <sched.h> exists but
40547         is incomplete (such as Haiku).
40548         * lib/sched.in.h; Include the system's <sched.h> if it exists.
40549         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
40550         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
40551         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
40552         HAVE_STRUCT_SCHED_PARAM.
40553         * modules/sched (Depends-on): Add include_next.
40554         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
40555         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
40556         * doc/posix-headers/sched.texi: Document the issue.
40557
40558 2008-11-13  Jim Meyering  <meyering@redhat.com>
40559
40560         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
40561         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
40562         test would fail due to the difference in the Report bugs to ...
40563         line.  The expected address is empty, "<>", while the actual
40564         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
40565
40566 2008-11-12  Bruno Haible  <bruno@clisp.org>
40567
40568         lstat: don't compile lstat.c on systems lacking lstat
40569         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
40570         which don't have lstat; this is handled by lib/sys_stat.in.h already.
40571         Reported by Daniel P. Berrange via Jim Meyering.
40572
40573 2008-11-12  Jim Meyering  <meyering@redhat.com>
40574
40575         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
40576
40577 2008-11-12  Simon Josefsson  <simon@josefsson.org>
40578
40579         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
40580         instead.
40581
40582 2008-11-12  Bruno Haible  <bruno@clisp.org>
40583
40584         * lib/unicodeio.c: Include unistr.h.
40585         (utf8_wctomb): Remove function.
40586         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
40587
40588 2008-11-12  Simon Josefsson  <simon@josefsson.org>
40589
40590         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
40591         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
40592         <bruno@clisp.org>.
40593         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
40594
40595 2008-11-12  Simon Josefsson  <simon@josefsson.org>
40596
40597         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
40598         * doc/gnulib.texi: Add section for warnings.
40599
40600 2008-11-11  Bruno Haible  <bruno@clisp.org>
40601
40602         * lib/sockets.h: Add a comment.
40603
40604 2008-11-11  Karl Berry  <karl@gnu.org>
40605
40606         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
40607
40608 2008-11-11  Eric Blake  <ebb9@byu.net>
40609
40610         fdl.texi: avoid git symlinks
40611         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
40612
40613 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
40614
40615         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
40616
40617 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
40618
40619         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
40620         (gl_WARN_ADD): Substitute $2 if literal.
40621
40622 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
40623
40624         * m4/warning.m4: Remove.
40625
40626 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
40627
40628         * m4/warnings.m4: Almost complete rewrite. :-)
40629
40630 2008-11-10  Simon Josefsson  <simon@josefsson.org>
40631
40632         * modules/warnings: New module.
40633         * m4/warnings.m4: New file.
40634         * MODULES.html.sh: Mention warnings module.
40635         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
40636         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40637
40638 2008-11-10  Eric Blake  <ebb9@byu.net>
40639
40640         fdl.texi: make a symlink to the latest version
40641         * doc/standards.texi: Revert today's earlier change.
40642         * doc/fdl-1.2.texi: Rename from old fdl.texi...
40643         * doc/fdl.texi: ...and replace this with a symlink to the newer
40644         fdl-1.3.texi.
40645
40646 2008-11-10  Bruno Haible  <bruno@clisp.org>
40647
40648         * tests/test-select-fd.c (main): Accept the result file name as fourth
40649         argument.
40650         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
40651         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
40652
40653 2008-11-10  Bruno Haible  <bruno@clisp.org>
40654
40655         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
40656         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
40657         as autoconf-substituted macros.
40658         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
40659         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
40660         gl_NETDB_H_DEFAULTS. Set these variables.
40661         * modules/netdb (Makefile.am): Substitute these variables.
40662
40663 2008-11-10  Eric Blake  <ebb9@byu.net>
40664
40665         standards.texi: include correct file for FDL 1.3
40666         * doc/standards.texi (GNU Free Documentation License): Change
40667         include file to pull in FDL 1.3, not 1.2.
40668
40669         fdl.texi: revert accidental change to license
40670         * doc/fdl.texi: This is FDL 1.2, not 1.3.
40671
40672 2008-11-10  Bruno Haible  <bruno@clisp.org>
40673
40674         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
40675         cross-compiling guesses also when the native compile gives no result.
40676
40677 2008-11-10  Bruno Haible  <bruno@clisp.org>
40678
40679         * lib/spawni.c (__spawni): Force variable into the stack.
40680
40681 2008-11-10  Bruno Haible  <bruno@clisp.org>
40682
40683         Add support for Haiku.
40684         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
40685         glibc and BeOS, but also on Haiku.
40686         * lib/fpurge.c (fpurge): Likewise.
40687         * lib/freadable.c (freadable): Likewise.
40688         * lib/freadahead.c (freadahead): Likewise.
40689         * lib/freading.c (freading): Likewise.
40690         * lib/freadptr.c (freadptr): Likewise.
40691         * lib/freadseek.c (freadptrinc): Likewise.
40692         * lib/fseeko.c (rpl_fseeko): Likewise.
40693         * lib/fseterr.c (fseterr): Likewise.
40694         * lib/fwritable.c (fwritable): Likewise.
40695         * lib/fwriting.c (fwriting): Likewise.
40696         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
40697
40698 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
40699
40700         * lib/config.charset: Treat Haiku like BeOS.
40701
40702 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
40703
40704         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
40705         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
40706
40707 2008-11-08  Bruno Haible  <bruno@clisp.org>
40708
40709         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
40710         AC_CACHE_CHECK.
40711
40712 2008-11-08  Bruno Haible  <bruno@clisp.org>
40713
40714         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
40715
40716 2008-11-08  Bruno Haible  <bruno@clisp.org>
40717
40718         * tests/test-select-fd.c: New file.
40719         * tests/test-select-in.sh: New file.
40720         * tests/test-select-out.sh: New file.
40721         * tests/test-select-stdin.c: New file.
40722         * modules/select-tests (Files): Add the new files.
40723         (Depends-on): Add gettimeofday.
40724         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
40725         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
40726         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
40727
40728 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
40729             Bruno Haible  <bruno@clisp.org>
40730
40731         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
40732
40733 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
40734
40735         * build-aux/pmccabe2html: Added support for C++ source files.
40736
40737 2008-11-05  Ben Pfaff  <blp@gnu.org>
40738
40739         Fix lib/close.c build on Windows.
40740         * modules/close (Files): Add lib/w32sock.h.
40741
40742 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
40743
40744         Accept Bison's NEWS format.
40745         * build-aux/announce-gen (print_news_deltas): Tweak
40746         $re_prefix.
40747
40748 2008-11-04  Bruno Haible  <bruno@clisp.org>
40749
40750         * modules/random_r (Maintainer): Add glibc.
40751
40752 2008-11-04  Simon Josefsson  <simon@josefsson.org>
40753
40754         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
40755         by karl@freefriends.org (Karl Berry).
40756         * doc/alloca.texi: Likewise.
40757         * doc/c-ctype.texi: Likewise.
40758         * doc/c-strcase.texi: Likewise.
40759         * doc/c-strcaseeq.texi: Likewise.
40760         * doc/c-strcasestr.texi: Likewise.
40761         * doc/c-strstr.texi: Likewise.
40762         * doc/c-strtod.texi: Likewise.
40763         * doc/c-strtold.texi: Likewise.
40764         * doc/ctime.texi: Likewise.
40765         * doc/error.texi: Likewise.
40766         * doc/fdl.texi: Likewise.
40767         * doc/gcd.texi: Likewise.
40768         * doc/getdate.texi: Likewise.
40769         * doc/gnulib-intro.texi: Likewise.
40770         * doc/gnulib-tool.texi: Likewise.
40771         * doc/gnulib.texi: Likewise.
40772         * doc/inet_ntoa.texi: Likewise.
40773         * doc/maintain.texi: Likewise.
40774         * doc/make-stds.texi: Likewise.
40775         * doc/quote.texi: Likewise.
40776         * doc/regexprops-generic.texi: Likewise.
40777         * doc/standards.texi: Likewise.
40778         * doc/verify.texi: Likewise.
40779         * doc/visibility.texi: Likewise.
40780         * doc/gnulib.texi (GNU Free Documentation License): Include
40781         fdl-1.3.texi instead of fdl.texi.
40782
40783 2008-11-04  Simon Josefsson  <simon@josefsson.org>
40784
40785         * doc/fdl-1.3.texi: New file, from
40786         <http://www.gnu.org/licenses/fdl-1.3.texi>.
40787         * modules/fdl-1.3: Add.
40788         * MODULES.html.sh: Add fdl-1.3.
40789
40790 2008-11-03  Bruno Haible  <bruno@clisp.org>
40791
40792         Make determination of absolute name of header file work with AIX xlc.
40793         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
40794         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
40795         preprocessing.
40796         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
40797         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
40798
40799 2008-11-03  Simon Josefsson  <simon@josefsson.org>
40800
40801         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
40802         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
40803         <ludo@gnu.org>.
40804
40805 2008-11-02  Bruno Haible  <bruno@clisp.org>
40806
40807         Mark 'strpbrk' obsolete.
40808         * modules/strpbrk (Status, Notice): New sections.
40809         * modules/strtok_r (Depends-on): Add strpbrk.
40810
40811 2008-11-02  Bruno Haible  <bruno@clisp.org>
40812
40813         Mark 'strdup' obsolete.
40814         * modules/strdup (Status, Notice): New sections.
40815         * modules/findprog (Depends-on): Add strdup.
40816         * modules/getaddrinfo (Depends-on): Likewise.
40817         * modules/localename (Depends-on): Likewise.
40818         * modules/relocatable-lib (Depends-on): Likewise.
40819         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
40820         * modules/relocatable-prog (Depends-on): Likewise.
40821         * modules/trim (Depends-on): Likewise.
40822         * modules/unictype/gen-ctype (Depends-on): Likewise.
40823         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
40824
40825 2008-11-02  Bruno Haible  <bruno@clisp.org>
40826
40827         Mark 'strcspn' obsolete.
40828         * modules/strcspn (Status, Notice): New sections.
40829
40830 2008-11-02  Bruno Haible  <bruno@clisp.org>
40831
40832         Mark 'rmdir' obsolete.
40833         * modules/rmdir (Status, Notice): New sections.
40834         * modules/clean-temp (Depends-on): Add rmdir.
40835         * modules/openat (Depends-on): Likewise.
40836
40837 2008-11-02  Bruno Haible  <bruno@clisp.org>
40838
40839         Mark 'raise' obsolete.
40840         * modules/raise (Status, Notice): New sections.
40841         (Include): Specify <signal.h>.
40842         * modules/stdio (Depends-on): Add raise.
40843         * modules/write (Depends-on): Likewise.
40844
40845 2008-11-02  Bruno Haible  <bruno@clisp.org>
40846
40847         Mark 'memset' obsolete.
40848         * modules/memset (Status, Notice): New sections.
40849
40850 2008-11-02  Bruno Haible  <bruno@clisp.org>
40851
40852         Mark 'memmove' obsolete.
40853         * modules/memmove (Status, Notice): New sections.
40854         * modules/argp (Depends-on): Add memmove.
40855         * modules/argz (Depends-on): Likewise.
40856         * modules/canonicalize (Depends-on): Likewise.
40857         * modules/canonicalize-lgpl (Depends-on): Likewise.
40858         * modules/fts (Depends-on): Likewise.
40859         * modules/getcwd (Depends-on): Likewise.
40860         * modules/human (Depends-on): Likewise.
40861         * modules/regex (Depends-on): Likewise.
40862         * modules/striconveh (Depends-on): Likewise.
40863         * modules/trim (Depends-on): Likewise.
40864         * modules/unistr/u8-move (Depends-on): Likewise.
40865         * modules/unistr/u16-move (Depends-on): Likewise.
40866         * modules/unistr/u32-move (Depends-on): Likewise.
40867
40868 2008-11-02  Bruno Haible  <bruno@clisp.org>
40869
40870         Mark 'memcpy' obsolete.
40871         * modules/memcpy (Status, Notice): New sections.
40872
40873 2008-11-02  Bruno Haible  <bruno@clisp.org>
40874
40875         Mark 'memcmp' obsolete.
40876         * modules/memcmp (Status, Notice): New sections.
40877         * modules/argmatch (Depends-on): Add memchr.
40878         * modules/backupfile (Depends-on): Likewise.
40879         * modules/c-strcasestr (Depends-on): Likewise.
40880         * modules/crypto/des (Depends-on): Likewise.
40881         * modules/csharpcomp (Depends-on): Likewise.
40882         * modules/fnmatch (Depends-on): Likewise.
40883         * modules/git-merge-changelog (Depends-on): Likewise.
40884         * modules/isnand (Depends-on): Likewise.
40885         * modules/isnand-nolibm (Depends-on): Likewise.
40886         * modules/isnanf (Depends-on): Likewise.
40887         * modules/isnanf-nolibm (Depends-on): Likewise.
40888         * modules/isnanl (Depends-on): Likewise.
40889         * modules/isnanl-nolibm (Depends-on): Likewise.
40890         * modules/mbchar (Depends-on): Likewise.
40891         * modules/memcoll (Depends-on): Likewise.
40892         * modules/quotearg (Depends-on): Likewise.
40893         * modules/regex (Depends-on): Likewise.
40894         * modules/relocatable-prog (Depends-on): Likewise.
40895         * modules/same (Depends-on): Likewise.
40896         * modules/signbit (Depends-on): Likewise.
40897         * modules/strcasestr-simple (Depends-on): Likewise.
40898         * modules/unictype/gen-ctype (Depends-on): Likewise.
40899         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
40900         * modules/uniname/uniname (Depends-on): Likewise.
40901         * modules/unistr/u8-cmp (Depends-on): Likewise.
40902
40903 2008-11-02  Bruno Haible  <bruno@clisp.org>
40904
40905         Mark 'memchr' obsolete.
40906         * modules/memchr (Status, Notice): New sections.
40907         * modules/argp (Depends-on): Add memchr.
40908         * modules/base64 (Depends-on): Likewise.
40909         * modules/c-strcasestr (Depends-on): Likewise.
40910         * modules/chdir-long (Depends-on): Likewise.
40911         * modules/fnmatch (Depends-on): Likewise.
40912         * modules/getsubopt (Depends-on): Likewise.
40913         * modules/git-merge-changelog (Depends-on): Likewise.
40914         * modules/glob (Depends-on): Likewise.
40915         * modules/strcasestr-simple (Depends-on): Likewise.
40916         * modules/strnlen (Depends-on): Likewise.
40917
40918 2008-11-02  Bruno Haible  <bruno@clisp.org>
40919
40920         Mark 'atexit' obsolete.
40921         * modules/atexit (Status, Notice): New sections.
40922         * modules/chdir-long (Depends-on): Add atexit.
40923         * modules/wait-process (Depends-on): Likewise.
40924
40925 2008-11-02  Bruno Haible  <bruno@clisp.org>
40926
40927         * gnulib-tool: New option --with-obsolete.
40928         (func_usage): Document it.
40929         (func_modules_transitive_closure): Drop obsolete dependencies if
40930         incobsolete is not true.
40931         (func_import): Read and save the incobsolete variable to the cache.
40932
40933 2008-11-02  Bruno Haible  <bruno@clisp.org>
40934
40935         * modules/TEMPLATE-EXTENDED: New field 'Status'.
40936         * gnulib-tool: New option --extract-status.
40937         (func_usage): Document it.
40938         (sed_extract_prog): Recognize it.
40939         (func_get_status): New function.
40940
40941 2008-10-30  Simon Josefsson  <simon@josefsson.org>
40942
40943         * modules/sockets (License): Change from LGPL to LGPLv2+.
40944
40945 2008-10-28  Simon Josefsson  <simon@josefsson.org>
40946
40947         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
40948
40949 2008-10-28  Simon Josefsson  <simon@josefsson.org>
40950
40951         * MODULES.html.sh (Support for systems lacking POSIX:2001):
40952         Mention times and sys_times.
40953         * modules/sys_times, modules/sys_times-tests: New modules.
40954         * modules/times, modules/times-tests: Likewise
40955         * m4/sys_times_h.m4: New file.
40956         * lib/sys_times.in.h: Likewise
40957         * lib/times.c: Likewise.
40958         * tests/test-sys_times.c: Likewise.
40959         * tests/test-times.c: Likewise.
40960         * doc/posix-headers/sys_times.texi: Update.
40961         * doc/posix-functions/times.texi: Update.
40962
40963 2008-10-28  Jim Meyering  <meyering@redhat.com>
40964
40965         * modules/tempname (Depends-on): Add lstat.
40966
40967         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
40968
40969 2008-10-28  Simon Josefsson  <simon@josefsson.org>
40970
40971         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
40972         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
40973         using idiom used elsewhere in gnulib.
40974
40975 2008-10-27  Jim Meyering  <meyering@redhat.com>
40976
40977         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
40978
40979 2008-10-27  Simon Josefsson  <simon@josefsson.org>
40980
40981         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
40982         TESTS_ENVIRONMENT, for shell scripts that needs to call built
40983         programs.
40984         * tests/test-argp-2.sh: Use $EXEEXT when needed.
40985
40986 2008-10-27  Simon Josefsson  <simon@josefsson.org>
40987
40988         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
40989
40990 2008-10-27  Bruno Haible  <bruno@clisp.org>
40991
40992         * tests/test-lstat.c: Include <stdio.h>.
40993
40994 2008-10-27  Simon Josefsson  <simon@josefsson.org>
40995
40996         * modules/lstat-tests: New module.
40997         * tests/test-lstat.c: New file.
40998
40999 2008-10-26  Jim Meyering  <meyering@redhat.com>
41000
41001         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
41002
41003 2008-10-26  Simon Josefsson  <simon@josefsson.org>
41004             Bruno Haible  <bruno@clisp.org>
41005
41006         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
41007         * modules/configmake (Include): Add a note that the include must come
41008         after all system headers.
41009         * lib/javaversion.c: Include configmake.h after all other includes.
41010
41011 2008-10-26  Bruno Haible  <bruno@clisp.org>
41012
41013         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
41014         HAVE_STRUCT_RANDOM_DATA to 1.
41015         (gl_STDLIB_H): Simplify.
41016
41017 2008-10-26  Simon Josefsson  <simon@josefsson.org>
41018
41019         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
41020         substitute HAVE_STRUCT_RANDOM_DATA.
41021         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
41022         random_data.
41023         * modules/stdlib (Makefile.am): Substitute
41024         HAVE_STRUCT_RANDOM_DATA.
41025
41026 2008-10-26  Simon Josefsson  <simon@josefsson.org>
41027
41028         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
41029         * doc/gnulib-intro.texi (Copyright): Likewise.
41030
41031 2008-10-26  Simon Josefsson  <simon@josefsson.org>
41032
41033         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
41034         findings.
41035
41036 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
41037             Bruno Haible  <bruno@clisp.org>
41038
41039         * lib/unistd.in.h: Include <winsock2.h>.
41040         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
41041         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
41042         Provide dummy declarations.
41043         (gethostname): Override.
41044         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
41045         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
41046         gl_PREREQ_SYS_H_WINSOCK2.
41047         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
41048         * doc/posix-functions/gethostname.texi: More details.
41049
41050 2008-10-25  Bruno Haible  <bruno@clisp.org>
41051
41052         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
41053         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
41054         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
41055
41056         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
41057         here ...
41058         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
41059         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
41060         gl_UNISTD_H_DEFAULTS.
41061
41062 2008-10-25  Eric Blake  <ebb9@byu.net>
41063
41064         signbit: avoid spurious compiler failure
41065         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
41066         declarations inside function.
41067
41068 2008-10-24  Simon Josefsson  <simon@josefsson.org>
41069             Bruno Haible  <bruno@clisp.org>
41070
41071         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
41072         * modules/random_r (Depends-on): Add stdint.
41073
41074 2008-10-24  Bruno Haible  <bruno@clisp.org>
41075
41076         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
41077         Eggert.
41078         * modules/strerror (License): Likewise.
41079
41080 2008-10-24  Jim Meyering  <meyering@redhat.com>
41081
41082         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
41083         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
41084
41085 2008-10-24  Eric Blake  <ebb9@byu.net>
41086
41087         getgroups: fix compilation when getgroups is available
41088         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
41089         but with <config.h> override of getgroups disabled.
41090
41091 2008-10-24  Simon Josefsson  <simon@josefsson.org>
41092
41093         * doc/gnulib.texi (Header files): Add note about C++ problems.
41094         Explained by Bruno Haible <bruno@clisp.org>.
41095
41096 2008-10-23  Bruno Haible  <bruno@clisp.org>
41097
41098         Define a dummy SA_NODEFER macro on Interix.
41099         * lib/signal.in.h (SA_NODEFER): Define fallback.
41100         Reported by Aleksey Cheusov <cheusov@tut.by> via
41101         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
41102
41103 2008-10-23  Bruno Haible  <bruno@clisp.org>
41104
41105         * modules/freadahead (License): Change to LGPLv2+.
41106         Suggested by Simon Josefsson.
41107
41108 2008-10-23  Jim Meyering  <meyering@redhat.com>
41109
41110         random_r: new module
41111         * modules/random_r: New file.
41112         * m4/random_r.m4: New file.
41113         * lib/random_r.c: New file, from glibc.
41114         * modules/random_r-tests: New file.
41115         * tests/test-random_r.c: New file.
41116         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
41117          Declare.
41118         (RAND_MAX): Define.
41119         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
41120         * modules/stdlib: Substitute them, too.
41121         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
41122         * doc/glibc-functions/initstate_r.texi: Mention the new module.
41123         * doc/glibc-functions/random_r.texi: Likewise.
41124         * doc/glibc-functions/setstate_r.texi: Likewise.
41125         * doc/glibc-functions/srandom_r.texi: Likewise.
41126         * config/srclist.txt: Mention it.
41127
41128 2008-10-23  David Lutterkort  <lutter@redhat.com>
41129
41130         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
41131         link requirement
41132
41133 2008-10-23  Jim Meyering  <meyering@redhat.com>
41134
41135         selinux-h: mark parameters of stub functions as intentionally unused
41136         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
41137         * lib/se-context.in.h: Likewise.
41138
41139 2008-10-22  Simon Josefsson  <simon@josefsson.org>
41140
41141         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
41142
41143 2008-10-22  Simon Josefsson  <simon@josefsson.org>
41144
41145         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
41146
41147 2008-10-22  Eric Blake  <ebb9@byu.net>
41148
41149         glthread/thread: avoid compiler warning
41150         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
41151         Add unreachable abort to silence compiler.
41152
41153 2008-10-22  Eric Blake  <ebb9@byu.net>
41154
41155         netdb: also supply struct addrinfo for cygwin 1.5.x
41156         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
41157         older cygwin.
41158         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
41159         cygwin.
41160         * doc/posix-headers/netdb.texi (netdb.h): Document this.
41161
41162 2008-10-22  Bruno Haible  <bruno@clisp.org>
41163
41164         * users.txt: Update entry about pspp.
41165
41166 2008-10-21  Bruno Haible  <bruno@clisp.org>
41167
41168         Simplification.
41169         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
41170         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
41171
41172         Simplification.
41173         * lib/ioctl.c (ioctl): Don't undefine.
41174         * lib/socket.c (socket): Don't undefine.
41175
41176         Remove unused module indicator macros.
41177         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
41178         GNULIB_$1 as a C macro.
41179
41180         * doc/posix-functions/close.texi: Undo last change.
41181         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
41182         Windows platforms.
41183
41184 2008-10-21  Bruno Haible  <bruno@clisp.org>
41185
41186         Add gethostname() declaration to <unistd.h>.
41187         * lib/unistd.in.h (gethostname): New declaration.
41188         * lib/gethostname.c: Include <unistd.h>.
41189         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
41190         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
41191         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
41192         and HAVE_GETHOSTNAME.
41193         * modules/gethostname (Depends-on): Add unistd.
41194         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41195         (Include): Specify <unistd.h>.
41196         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
41197         HAVE_GETHOSTNAME.
41198         * tests/test-gethostname.c: Include <unistd.h> first.
41199
41200 2008-10-21  Bruno Haible  <bruno@clisp.org>
41201
41202         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
41203         * modules/select-tests (Depends-on): Likewise.
41204         Reported by Simon Josefsson.
41205
41206 2008-10-21  Simon Josefsson  <simon@josefsson.org>
41207
41208         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
41209         * lib/accept.c: New file, based on winsock.c.
41210         * lib/bind.c: New file, based on winsock.c.
41211         * lib/connect.c: New file, based on winsock.c.
41212         * lib/getpeername.c: New file, based on winsock.c.
41213         * lib/getsockname.c: New file, based on winsock.c.
41214         * lib/getsockopt.c: New file, based on winsock.c.
41215         * lib/ioctl.c: New file, based on winsock.c.
41216         * lib/listen.c: New file, based on winsock.c.
41217         * lib/recv.c: New file, based on winsock.c.
41218         * lib/recvfrom.c: New file, based on winsock.c.
41219         * lib/send.c: New file, based on winsock.c.
41220         * lib/sendto.c: New file, based on winsock.c.
41221         * lib/setsockopt.c: New file, based on winsock.c.
41222         * lib/shutdown.c: New file, based on winsock.c.
41223         * lib/socket.c: New file, based on winsock.c.
41224         * lib/w32sock.h: New file, based on winsock.c.
41225         * lib/winsock.c: Remove file.
41226         * modules/accept: Likewise.
41227         * modules/bind: Likewise.
41228         * modules/connect: Likewise.
41229         * modules/getpeername: Likewise.
41230         * modules/getsockname: Likewise.
41231         * modules/getsockopt: Likewise.
41232         * modules/ioctl: Likewise.
41233         * modules/listen: Likewise.
41234         * modules/recv: Likewise.
41235         * modules/recvfrom: Likewise.
41236         * modules/send: Likewise.
41237         * modules/sendto: Likewise.
41238         * modules/setsockopt: Likewise.
41239         * modules/shutdown: Likewise.
41240         * modules/socket: Use socket.c instead of winsock.c.
41241         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
41242         * doc/posix-functions/accept.texi: Doc fix.
41243         * doc/posix-functions/bind.texi: Doc fix.
41244         * doc/posix-functions/close.texi: Doc fix.
41245         * doc/posix-functions/connect.texi: Doc fix.
41246         * doc/posix-functions/getpeername.texi: Doc fix.
41247         * doc/posix-functions/getsockname.texi: Doc fix.
41248         * doc/posix-functions/getsockopt.texi: Doc fix.
41249         * doc/posix-functions/ioctl.texi: Doc fix.
41250         * doc/posix-functions/listen.texi: Doc fix.
41251         * doc/posix-functions/recv.texi: Doc fix.
41252         * doc/posix-functions/recvfrom.texi: Doc fix.
41253         * doc/posix-functions/send.texi: Doc fix.
41254         * doc/posix-functions/sendto.texi: Doc fix.
41255         * doc/posix-functions/setsockopt.texi: Doc fix.
41256         * doc/posix-functions/shutdown.texi: Doc fix.
41257         * doc/posix-functions/socket.texi: Doc fix.
41258
41259 2008-10-20  Bruno Haible  <bruno@clisp.org>
41260
41261         Take into account the role of SIGABRT_COMPAT on Windows 2008.
41262         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
41263         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
41264         as an alias for SIGABRT.
41265         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
41266         (sigaction): Map it to SIGABRT.
41267         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
41268
41269 2008-10-20  Bruno Haible  <bruno@clisp.org>
41270
41271         * lib/fts.c: Don't include lstat.h.
41272         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
41273
41274         Move the lstat() declaration to <sys/stat.h>.
41275         * lib/lstat.h: Remove file.
41276         * lib/sys_stat.in.h: Add special invocation convention.
41277         (lstat): New declaration.
41278         * lib/lstat.c (orig_lstat): New function.
41279         (rpl_lstat): Use orig_lstat instead of lstat.
41280         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
41281         AC_C_INLINE. Set REPLACE_LSTAT.
41282         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
41283         and REPLACE_LSTAT.
41284         * modules/lstat (Files): Remove lib/lstat.h.
41285         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
41286         (Include): Specify <sys/stat.h> instead of lstat.h.
41287         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
41288         REPLACE_LSTAT.
41289         * NEWS: Mention the change.
41290
41291 2008-10-20  Bruno Haible  <bruno@clisp.org>
41292
41293         * modules/posix_spawn-tests: New file.
41294         * tests/test-posix_spawn3.c: New file.
41295
41296 2008-10-20  Bruno Haible  <bruno@clisp.org>
41297
41298         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
41299         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
41300         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
41301         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
41302         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
41303
41304 2008-10-20  Bruno Haible  <bruno@clisp.org>
41305
41306         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
41307         of posix_spawn on AIX 5.3.
41308
41309 2008-10-20  Bruno Haible  <bruno@clisp.org>
41310
41311         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
41312
41313 2008-10-20  Bruno Haible  <bruno@clisp.org>
41314
41315         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
41316         of AC_LANG_PROGRAM.
41317
41318 2008-10-20  Simon Josefsson  <simon@josefsson.org>
41319
41320         * lib/netdb.in.h: Don't define GNU specific constants until they
41321         are supported or needed.  Reported by Bruno Haible
41322         <bruno@clisp.org>.
41323
41324 2008-10-20  Simon Josefsson  <simon@josefsson.org>
41325
41326         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
41327
41328 2008-10-20  Simon Josefsson  <simon@josefsson.org>
41329
41330         * lib/getaddrinfo.h: Remove file.
41331         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
41332         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
41333         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
41334         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
41335         * modules/netdb: Substitute GNULIB_GETADDRINFO.
41336         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
41337         * tests/test-getaddrinfo.c: Likewise.
41338         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
41339         * NEWS: Mention change.
41340
41341 2008-10-19  Bruno Haible  <bruno@clisp.org>
41342
41343         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
41344
41345 2008-10-19  Bruno Haible  <bruno@clisp.org>
41346
41347         * lib/wait-process.c: Include simply <sys/wait.h>.
41348         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
41349         WIFSTOPPED): Remove fallback definitions.
41350         * modules/wait-process (Depends-on): Add sys_wait.
41351
41352         New module 'sys_wait'.
41353         * modules/sys_wait: New file.
41354         * lib/sys_wait.in.h: New file, partially copied from
41355         lib/wait-process.c.
41356         * m4/sys_wait_h.m4: New file.
41357         * doc/posix-headers/sys_wait.texi: Mention the new module.
41358
41359 2008-10-19  Bruno Haible  <bruno@clisp.org>
41360
41361         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
41362
41363 2008-10-19  Bruno Haible  <bruno@clisp.org>
41364
41365         Assume that waitpid() fills an 'int' status, not a 'union wait'.
41366         * lib/wait-process.c (WAIT_T): Remove type.
41367         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
41368         (wait_subprocess): Update.
41369
41370 2008-10-19  Bruno Haible  <bruno@clisp.org>
41371
41372         New module 'atoll'.
41373         * modules/atoll: New file.
41374         * lib/stdlib.in.h (atoll): New declaration.
41375         * lib/atoll.c: New file, from glibc with modifications.
41376         * m4/atoll.m4: New file.
41377         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
41378         HAVE_ATOLL.
41379         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
41380         * doc/posix-functions/atoll.texi: Mention the new module.
41381
41382 2008-10-19  Bruno Haible  <bruno@clisp.org>
41383
41384         Add strtoull() declaration to <stdlib.h>.
41385         * lib/stdlib.in.h (strtoull): New declaration.
41386         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
41387         Set HAVE_STRTOULL.
41388         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
41389         HAVE_STRTOULL.
41390         * modules/strtoull (Depends-on): Add stdlib.
41391         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41392         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
41393         HAVE_STRTOULL.
41394
41395 2008-10-19  Bruno Haible  <bruno@clisp.org>
41396
41397         Add strtoll() declaration to <stdlib.h>.
41398         * lib/stdlib.in.h (strtoll): New declaration.
41399         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
41400         Set HAVE_STRTOLL.
41401         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
41402         HAVE_STRTOLL.
41403         * modules/strtoll (Depends-on): Add stdlib.
41404         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41405         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
41406
41407 2008-10-19  Bruno Haible  <bruno@clisp.org>
41408
41409         * modules/bcopy (Depends-on): Add strings.
41410         (Include): Specify <strings.h>.
41411
41412 2008-10-19  Bruno Haible  <bruno@clisp.org>
41413
41414         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
41415
41416 2008-10-19  Bruno Haible  <bruno@clisp.org>
41417
41418         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
41419         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
41420         mingw.
41421
41422 2008-10-19  Bruno Haible  <bruno@clisp.org>
41423
41424         * lib/atanl.c: Don't include isnanl.h.
41425         * lib/cosl.c: Likewise.
41426         * lib/ldexpl.c: Likewise.
41427         * lib/logl.c: Likewise.
41428         * lib/sinl.c: Likewise.
41429         * lib/sqrtl.c: Likewise.
41430         * lib/tanl.c: Likewise.
41431
41432         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
41433         * lib/isnanf.h: Remove file.
41434         * lib/isnand.h: Remove file.
41435         * lib/isnanl.h: Remove file.
41436         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
41437         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
41438         macros.
41439         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
41440         HAVE_ISNANF, don't define it as a C macro.
41441         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
41442         HAVE_ISNAND, don't define it as a C macro.
41443         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
41444         HAVE_ISNANL, don't define it as a C macro.
41445         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
41446         HAVE_ISNAN[FDL].
41447         * modules/isnanf (Files): Remove lib/isnanf.h.
41448         (Depends-on): Add math.
41449         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
41450         (Include): Specify <math.h> instead of isnanf.h.
41451         * modules/isnand (Files): Remove lib/isnand.h.
41452         (Depends-on): Add math.
41453         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
41454         (Include): Specify <math.h> instead of isnand.h.
41455         * modules/isnanl (Files): Remove lib/isnanl.h.
41456         (Depends-on): Add math.
41457         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
41458         (Include): Specify <math.h> instead of isnanl.h.
41459         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
41460         HAVE_ISNAN[FDL].
41461         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
41462         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
41463         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
41464         * NEWS: Mention the change.
41465
41466 2008-10-18  Bruno Haible  <bruno@clisp.org>
41467
41468         Add getusershell(), setusershell(), endusershell() declarations to
41469         <unistd.h>.
41470         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
41471         declarations.
41472         * lib/getusershell.c: Include unistd.h.
41473         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
41474         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
41475         HAVE_GETUSERSHELL.
41476         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
41477         and HAVE_GETUSERSHELL.
41478         * modules/getusershell (Depends-on): Add unistd, extensions.
41479         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41480         (Include): Specify <unistd.h>.
41481         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
41482         HAVE_GETUSERSHELL.
41483
41484 2008-10-18  Bruno Haible  <bruno@clisp.org>
41485
41486         Add a getloadavg() declaration to <stdlib.h>.
41487         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
41488         getloadavg declaration.
41489         (getloadavg): New declaration.
41490         * lib/getloadavg.c: Include <stdlib.h> first.
41491         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
41492         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
41493         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
41494         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
41495         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
41496         * modules/getloadavg (Depends-on): Add stdlib, extensions.
41497         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41498         (Include): Specify <stdlib.h>.
41499         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
41500         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
41501
41502 2008-10-18  Bruno Haible  <bruno@clisp.org>
41503
41504         * lib/dirchownmod.c: Don't include lchmod.h.
41505
41506         Move the lchmod() declaration to <sys/stat.h>.
41507         * lib/lchmod.h: Remove file.
41508         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
41509         (lchmod): New declaration, moved here from lib/lchown.h.
41510         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
41511         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
41512         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
41513         and HAVE_LCHMOD.
41514         * modules/lchmod (Files): Remove lib/lchmod.h.
41515         (Depends-on): Add sys_stat, extensions.
41516         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
41517         (Include): Specify <sys/stat.h> instead of lchmod.h.
41518         * modules/sys_stat (Depends-on): Add link-warning.
41519         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
41520         definition of GL_LINK_WARNING.
41521         * NEWS: Mention the change.
41522
41523 2008-10-18  Bruno Haible  <bruno@clisp.org>
41524
41525         * lib/fchdir.c: Don't include dirfd.h.
41526         * lib/fts.c: Likewise.
41527         * lib/getcwd.c: Likewise.
41528         * lib/glob.c: Likewise.
41529
41530         Move the dirfd() declaration to <dirent.h>.
41531         * lib/dirfd.h: Remove file.
41532         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
41533         (dirfd): New declaration.
41534         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
41535         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
41536         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
41537         HAVE_DECL_DIRFD.
41538         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
41539         HAVE_DECL_DIRFD.
41540         * modules/dirfd (Files): Remove lib/dirfd.h.
41541         (Depends-on): Add dirent, extensions.
41542         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
41543         (Include): Specify <dirent.h> instead of dirfd.h.
41544         * modules/dirent (Depends-on): Add link-warning.
41545         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
41546         definition of GL_LINK_WARNING.
41547         * NEWS: Mention the change.
41548
41549 2008-10-18  Bruno Haible  <bruno@clisp.org>
41550
41551         Move the euidaccess() declaration to <unistd.h>.
41552         * lib/euidaccess.h: Remove file.
41553         * lib/unistd.in.h (euidaccess): New declaration.
41554         * lib/euidaccess.c: Don't include euidaccess.h.
41555         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
41556         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
41557         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
41558         and HAVE_EUIDACCESS.
41559         * modules/euidaccess (Files): Remove lib/euidaccess.h.
41560         (Depends-on): Add unistd.
41561         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41562         (Include): Specify <unistd.h> instead of euidaccess.h.
41563         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
41564         HAVE_EUIDACCESS.
41565         * NEWS: Mention the change.
41566
41567 2008-10-18  Bruno Haible  <bruno@clisp.org>
41568
41569         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
41570
41571         Move the getdomainname() declaration to <unistd.h>.
41572         * lib/getdomainname.h: Remove file.
41573         * lib/unistd.in.h (getdomainname): New declaration.
41574         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
41575         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
41576         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
41577         HAVE_GETDOMAINNAME.
41578         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41579         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
41580         * modules/getdomainname (Files): Remove lib/getdomainname.h.
41581         (Depends-on): Add unistd, extensions.
41582         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41583         (Includes): Specify <unistd.h> instead of getdomainname.h.
41584         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
41585         HAVE_GETDOMAINNAME.
41586         * NEWS: Mention the change.
41587
41588 2008-10-18  Bruno Haible  <bruno@clisp.org>
41589
41590         * modules/dirent: New file.
41591         * m4/dirent_h.m4: New file.
41592         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
41593         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
41594         * modules/fchdir (Files): Remove lib/dirent.in.h.
41595         (Depends-on): Add dirent.
41596         (Makefile.am): Move rules to modules/dirent.
41597         * doc/posix-headers/dirent.texi: Mention the new module.
41598
41599 2008-10-18  Bruno Haible  <bruno@clisp.org>
41600
41601         Avoid -Wunused-parameter warnings in public gnulib header files.
41602         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
41603         macro.
41604         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
41605
41606 2008-10-18  Bruno Haible  <bruno@clisp.org>
41607
41608         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
41609         * doc/glibc-functions/error.texi: Mention the module 'error'.
41610         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
41611         * doc/glibc-functions/getdomainname.texi: Mention the module
41612         'getdomainname'.
41613         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
41614         * doc/glibc-functions/getpagesize.texi: Mention the module
41615         'getpagesize'.
41616         * doc/glibc-functions/getusershell.texi: Mention the module
41617         'getusershell'.
41618         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
41619         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
41620         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
41621         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
41622         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
41623         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
41624         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
41625         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
41626         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
41627         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
41628         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
41629         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
41630         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
41631         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
41632
41633 2008-10-17  Bruno Haible  <bruno@clisp.org>
41634
41635         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
41636         HP-UX and IRIX, use -0.0L.
41637         * tests/test-ceill.c (minus_zero): Likewise.
41638         * tests/test-floorl.c (minus_zero): Likewise.
41639         * tests/test-frexpl.c (minus_zero): Likewise.
41640         * tests/test-isnan.c (minus_zerol): Likewise.
41641         * tests/test-isnanl.h (minus_zero): Likewise.
41642         * tests/test-ldexpl.c (minus_zero): Likewise.
41643         * tests/test-roundl.c (minus_zero): Likewise.
41644         * tests/test-signbit.c (minus_zerol): Likewise.
41645         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
41646         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
41647         * tests/test-truncl.c (minus_zero): Likewise.
41648         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
41649         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
41650         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
41651         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
41652
41653 2008-10-17  Bruno Haible  <bruno@clisp.org>
41654
41655         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
41656         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
41657         that it gets activated only for gcc >= 3.0.
41658         * lib/dirent.in.h: Likewise.
41659         * lib/errno.in.h: Likewise.
41660         * lib/fcntl.in.h: Likewise.
41661         * lib/float.in.h: Likewise.
41662         * lib/iconv.in.h: Likewise.
41663         * lib/inttypes.in.h: Likewise.
41664         * lib/locale.in.h: Likewise.
41665         * lib/math.in.h: Likewise.
41666         * lib/netdb.in.h: Likewise.
41667         * lib/netinet_in.in.h: Likewise.
41668         * lib/search.in.h: Likewise.
41669         * lib/signal.in.h: Likewise.
41670         * lib/spawn.in.h: Likewise.
41671         * lib/stdarg.in.h: Likewise.
41672         * lib/stdint.in.h: Likewise.
41673         * lib/stdio.in.h: Likewise.
41674         * lib/stdlib.in.h: Likewise.
41675         * lib/string.in.h: Likewise.
41676         * lib/strings.in.h: Likewise.
41677         * lib/sys_file.in.h: Likewise.
41678         * lib/sys_ioctl.in.h: Likewise.
41679         * lib/sys_select.in.h: Likewise.
41680         * lib/sys_socket.in.h: Likewise.
41681         * lib/sys_stat.in.h: Likewise.
41682         * lib/sys_time.in.h: Likewise.
41683         * lib/sysexits.in.h: Likewise.
41684         * lib/time.in.h: Likewise.
41685         * lib/unistd.in.h: Likewise.
41686         * lib/wchar.in.h: Likewise.
41687         * lib/wctype.in.h: Likewise.
41688         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
41689
41690 2008-10-17  Jim Meyering  <meyering@redhat.com>
41691
41692         ignore-value: don't depend on inline module
41693         * modules/ignore-value (Depends-on): Remove 'inline'.
41694         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
41695         Suggestion from Bruno Haible.
41696
41697 2008-10-17  Bruno Haible  <bruno@clisp.org>
41698
41699         New implementation of condition variables for Win32.
41700         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
41701         (gl_linked_waitqueue_t): New type.
41702         (gl_cond_t): Use it.
41703         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
41704         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
41705         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
41706         (glthread_cond_init_func, glthread_cond_wait_func,
41707         glthread_cond_timedwait_func, glthread_cond_signal_func,
41708         glthread_cond_broadcast_func, glthread_cond_destroy_func):
41709         Reimplemented on the basis of gl_linked_waitqueue_t.
41710         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
41711         gl_waitqueue_t.
41712         (gl_rwlock_t): Update.
41713         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
41714
41715 2008-10-17  Simon Josefsson  <simon@josefsson.org>
41716
41717         * modules/recvfrom (Depends-on): Add dependency on getpeername.
41718         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
41719
41720 2008-10-17  Jim Meyering  <meyering@redhat.com>
41721
41722         ignore-value: new module
41723         * modules/ignore-value: New file.
41724         * lib/ignore-value.h: New file.
41725         * MODULES.html.sh (Compiler warning management): New section,
41726         just for this module.  More to come.
41727
41728 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
41729
41730         open-safer.c: avoid 'signed and unsigned in conditional...' warning
41731         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
41732         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
41733
41734 2008-10-16  Jim Meyering  <meyering@redhat.com>
41735
41736         openat-die.c: avoid 'no previous prototype' warning
41737         * lib/openat-die.c: Include "openat.h".
41738         Reported by Reuben Thomas <rrt@sc3d.org>.
41739
41740 2008-10-16  Simon Josefsson  <simon@josefsson.org>
41741
41742         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
41743         * lib/netdb.in.h: Fix typo.
41744         Reported by Bruno Haible  <bruno@clisp.org>
41745
41746         * lib/netdb.in.h: Include sys/socket.h for platforms without
41747         netdb.h, to get structures like hostent on MinGW.
41748         * modules/netdb (Depends-on): Add sys_socket.
41749
41750 2008-10-15  Simon Josefsson  <simon@josefsson.org>
41751
41752         * modules/netdb, modules/netdb-tests: New file.
41753         * m4/netdb_h.m4: New file.
41754         * lib/netdb.in.h: Add, currently just an empty file pending
41755         definitions.
41756         * tests/test-netdb.c: New file.
41757         * doc/posix-headers/netdb.texi: Mention that we replace it if
41758         needed.
41759         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
41760         netdb.
41761
41762 2008-10-15  Simon Josefsson  <simon@josefsson.org>
41763
41764         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
41765         with code.
41766
41767 2008-10-13  Bruno Haible  <bruno@clisp.org>
41768
41769         * lib/glthread/cond.c (glthread_cond_wait_func,
41770         glthread_cond_timedwait_func): Add a comment.
41771
41772 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
41773
41774         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
41775         * tests/test-select.c: Likewise,
41776
41777 2008-10-13  Bruno Haible  <bruno@clisp.org>
41778
41779         * lib/glthread/cond.c (glthread_cond_wait_func,
41780         glthread_cond_timedwait_func): Fix variable name.
41781         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
41782
41783 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
41784
41785         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
41786         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
41787         struct sockaddr.sa_len.
41788         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
41789
41790 2008-10-13  Simon Josefsson  <simon@josefsson.org>
41791
41792         * build-aux/pmccabe2html: Add css and css_url parameters.
41793
41794 2008-10-12  Bruno Haible  <bruno@clisp.org>
41795
41796         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
41797         calling aclx_get.
41798         Reported by Rainer Tammer <tammer@tammer.net>.
41799
41800 2008-10-12  Bruno Haible  <bruno@clisp.org>
41801
41802         Use msvcrt aware primitives for creation/termination of Win32 threads.
41803         * lib/glthread/thread.c: Include <process.h>.
41804         (glthread_create_func): Use _beginthreadex instead of CreateThread.
41805         (wrapper_func): Update signature.
41806         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
41807
41808 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
41809             Bruno Haible  <bruno@clisp.org>
41810
41811         Provide a Win32 implementation of the 'cond' module.
41812         * lib/glthread/cond.h [USE_WIN32]: New implementation.
41813         * lib/glthread/cond.c (glthread_cond_init_func,
41814         glthread_cond_wait_func, glthread_cond_timedwait_func,
41815         glthread_cond_signal_func, glthread_cond_broadcast_func,
41816         glthread_cond_destroy_func) [USE_WIN32]: New functions.
41817         * modules/cond (Dependencies): Add gettimeofday.
41818
41819 2008-10-11  Bruno Haible  <bruno@clisp.org>
41820
41821         Make sleep work on older versions of mingw.
41822         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
41823         only whether it exists.
41824         * doc/posix-functions/sleep.texi: Mention the problem with older
41825         versions of mingw.
41826
41827 2008-10-11  Bruno Haible  <bruno@clisp.org>
41828
41829         New module 'shutdown'.
41830         * modules/shutdown: New file.
41831         * lib/sys_socket.in.h (shutdown): New declaration.
41832         * lib/winsock.c (shutdown): New function.
41833         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
41834         GNULIB_SHUTDOWN.
41835         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
41836         * doc/posix-functions/shutdown.texi: Document the new module.
41837
41838 2008-10-11  Jim Meyering  <meyering@redhat.com>
41839
41840         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
41841
41842 2008-10-11  Bruno Haible  <bruno@clisp.org>
41843
41844         New module 'fclose'.
41845         * modules/fclose: New file.
41846         * lib/stdio.in.h (fclose): New declaration.
41847         * lib/fclose.c: New file.
41848         * m4/fclose.m4: New file.
41849         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
41850         REPLACE_FCLOSE.
41851         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
41852         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
41853         REPLACE_FCLOSE.
41854         * modules/close (Depends-on): fclose.
41855         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
41856
41857 2008-10-11  Bruno Haible  <bruno@clisp.org>
41858
41859         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
41860         set errno and don't call _close.
41861
41862 2008-10-10  Bruno Haible  <bruno@clisp.org>
41863
41864         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
41865         ACL, not afterwards. Fixes test failure on Cygwin.
41866
41867 2008-10-09  Ben Pfaff  <blp@gnu.org>
41868
41869         * build-aux/announce-gen: Fix gnulib version related part of usage
41870         message.  Die with a useful error message if no tarballs are
41871         found.
41872
41873 2008-10-10  Jim Meyering  <meyering@redhat.com>
41874
41875         bootstrap: use git's --depth=N option only if it's supported
41876         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
41877         recognize the --depth option.  Reported by Pádraig Brady.
41878
41879 2008-10-09  Bruno Haible  <bruno@clisp.org>
41880
41881         New module 'ioctl'.
41882         * modules/ioctl: New file.
41883         * lib/sys_socket.in.h (ioctl): Remove declaration.
41884         * lib/winsock.c: Include <sys/ioctl.h>.
41885         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
41886         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
41887         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
41888         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
41889         * doc/posix-functions/ioctl.texi: Mention the new module.
41890
41891 2008-10-09  Bruno Haible  <bruno@clisp.org>
41892
41893         New module 'sys_ioctl'.
41894         * lib/sys_ioctl.in.h: New file.
41895         * m4/sys_ioctl_h.m4: New file.
41896         * modules/sys_ioctl: New file.
41897         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
41898
41899 2008-10-09  Bruno Haible  <bruno@clisp.org>
41900
41901         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
41902         * lib/winsock.c: Include <stdarg.h>.
41903         (rpl_ioctl): Change to second argument 'int' and then varargs.
41904
41905 2008-10-09  Bruno Haible  <bruno@clisp.org>
41906
41907         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
41908         when the sys_socket module is present and the system has <winsock2.h>.
41909
41910 2008-10-09  Bruno Haible  <bruno@clisp.org>
41911
41912         * doc/posix-functions/close.texi: Mention module 'close' instead of
41913         module 'sys_socket'.
41914
41915 2008-10-09  Bruno Haible  <bruno@clisp.org>
41916
41917         * doc/glibc-headers/sys_ioctl.texi: New file.
41918         * doc/gnulib.texi: Include it.
41919
41920 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
41921             Bruno Haible  <bruno@clisp.org>
41922
41923         Combine the two replacements of 'close'.
41924         * lib/sys_socket.in.h (close): Define to a reminder to include
41925         <unistd.h>.
41926         (_gl_close_fd_maybe_socket): New declaration.
41927         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
41928         * lib/winsock.c (close): Remove undefinition.
41929         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
41930         needed for the gnulib module 'close'.
41931         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
41932         define to an error symbol or to a warning, if suitable.
41933         * lib/close.c: Include <sys/socket.h>.
41934         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
41935         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
41936         UNISTD_H_HAVE_WINSOCK2_H.
41937         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
41938         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41939         UNISTD_H_HAVE_WINSOCK2_H.
41940         * modules/sys_socket (Files): Add m4/unistd_h.m4.
41941         (configure.ac): Set a module indicator.
41942         (Makefile.am): Substitute GNULIB_CLOSE.
41943         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
41944         * modules/poll-tests (Depends-on): Add close.
41945         * modules/select-tests (Depends-on): Likewise.
41946
41947 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
41948             Bruno Haible  <bruno@clisp.org>
41949
41950         New module 'close'.
41951         * modules/close: New file.
41952         * lib/unistd.in.h (close): Move declaration out of the
41953         FCHDIR_REPLACEMENT scope.
41954         (_gl_unregister_fd): New declaration.
41955         * lib/close.c: New file.
41956         * lib/fchdir.c (rpl_close): Remove function.
41957         * m4/close.m4: New file.
41958         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
41959         close.
41960         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
41961         REPLACE_CLOSE.
41962         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
41963         REPLACE_CLOSE.
41964         * modules/fchdir (Depends-on): Add close.
41965
41966 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
41967             Bruno Haible  <bruno@clisp.org>
41968
41969         * lib/fcntl.in.h (open): Simplify conditionals.
41970         (_gl_register_fd): New declaration.
41971         * lib/fchdir.c (rpl_open): Remove function.
41972         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
41973         also.
41974         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
41975         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
41976         open.
41977
41978 2008-10-09  Jim Meyering  <meyering@redhat.com>
41979
41980         GNUmakefile: use the more name-space-friendly "_version"
41981         * top/GNUmakefile (_dummy): Update.
41982         (_version): Rename from "version".
41983
41984 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
41985             Bruno Haible  <bruno@clisp.org>
41986
41987         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
41988         rpl_close.
41989         (_gl_register_fd): New function, extracted from rpl_open.
41990         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
41991         (rpl_open, rpl_opendir): Use _gl_register_fd.
41992
41993 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
41994
41995         Fix organization of 'open' replacement.
41996         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
41997         (gl_FUNC_OPEN): Use it.
41998         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
41999
42000 2008-10-08  Bruno Haible  <bruno@clisp.org>
42001
42002         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
42003
42004 2008-10-08  Simon Josefsson  <simon@josefsson.org>
42005
42006         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
42007         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
42008         listen).
42009
42010 2008-10-08  Eric Blake  <ebb9@byu.net>
42011
42012         GNUmakefile: add 'make version' target
42013         * top/GNUmakefile (_curr-ver): Split version update rules...
42014         (version): ...into a target.
42015
42016 2008-10-07  Bruno Haible  <bruno@clisp.org>
42017
42018         Use a more portable replacement expression for -0.0L.
42019         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
42020         instead of -0.0L. Fix m4 quotation.
42021
42022         * tests/test-signbit.c: Include <float.h>.
42023         (minus_zero): New variable.
42024         (test_signbitl): Use minus_zero instead of -zero.
42025         * modules/signbit-tests (Depends-on): Add float.
42026
42027         * tests/test-ceill.c: Include <float.h>.
42028         (zero): Remove variable.
42029         (minus_zero): New variable.
42030         (main): Use minus_zero instead of -zero.
42031         * modules/ceill-tests (Depends-on): Add float.
42032
42033         * tests/test-floorl.c: Include <float.h>.
42034         (zero): Remove variable.
42035         (minus_zero): New variable.
42036         (main): Use minus_zero instead of -zero.
42037         * modules/floorl-tests (Depends-on): Add float.
42038
42039         * tests/test-roundl.c: Include <float.h>.
42040         (zero): Remove variable.
42041         (minus_zero): New variable.
42042         (main): Use minus_zero instead of -zero.
42043         * modules/roundl-tests (Depends-on): Add float.
42044
42045         * tests/test-truncl.c: Include <float.h>.
42046         (zero): Remove variable.
42047         (minus_zero): New variable.
42048         (main): Use minus_zero instead of -zero.
42049         * modules/truncl-tests (Depends-on): Add float.
42050
42051         * tests/test-frexpl.c (zero): Remove variable.
42052         (minus_zero): New variable.
42053         (main): Use minus_zero instead of -zero.
42054         * modules/frexpl-tests (Depends-on): Add float.
42055
42056         * tests/test-isnan.c (zerol): Remove variable.
42057         (minus_zerol): New variable.
42058         (test_long_double): Use minus_zerol instead of -zerol.
42059         * modules/isnan-tests (Depends-on): Add float.
42060
42061         * tests/test-isnanl.h (zero): Remove variable.
42062         (minus_zero): New variable.
42063         (main): Use minus_zero instead of -zero.
42064         * modules/isnanl-nolibm-tests (Depends-on): Add float.
42065         * modules/isnanl-tests (Depends-on): Add float.
42066
42067         * tests/test-ldexpl.c (zero): Remove variable.
42068         (minus_zero): New variable.
42069         (main): Use minus_zero instead of -zero.
42070         * modules/ldexpl-tests (Depends-on): Add float.
42071
42072         * tests/test-snprintf-posix.h (zerol): Remove variable.
42073         (minus_zerol): New variable.
42074         (test_function): Use minus_zerol instead of -zerol.
42075         * modules/snprintf-posix-tests (Depends-on): Add float.
42076         * modules/vsnprintf-posix-tests (Depends-on): Add float.
42077
42078         * tests/test-sprintf-posix.h (zerol): Remove variable.
42079         (minus_zerol): New variable.
42080         (test_function): Use minus_zerol instead of -zerol.
42081         * modules/sprintf-posix-tests (Depends-on): Add float.
42082         * modules/vsprintf-posix-tests (Depends-on): Add float.
42083
42084         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
42085         (minus_zerol): New variable.
42086         (test_function): Use minus_zerol instead of -zerol.
42087         * modules/vasnprintf-posix-tests (Depends-on): Add float.
42088
42089         * tests/test-vasprintf-posix.c (zerol): Remove variable.
42090         (minus_zerol): New variable.
42091         (test_function): Use minus_zerol instead of -zerol.
42092         * modules/vasprintf-posix-tests (Depends-on): Add float.
42093
42094 2008-10-07  Simon Josefsson  <simon@josefsson.org>
42095
42096         * MODULES.html.sh (Support for building documentation): Mention
42097         pmccabe2html.  Sort entries.
42098
42099         Add pmccabe2html module, from gnupdf.
42100         * build-aux/pmccabe.css: New file.
42101         * build-aux/pmccabe2html: New file.
42102         * m4/pmccabe2html.m4: New file.
42103         * modules/pmccabe2html: New file.
42104
42105 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
42106
42107         flock: new module
42108         * MODULES.html.sh: Add to list of modules.
42109         * lib/flock.c: flock implementation for Windows and Unix systems
42110         which have fcntl.
42111         * doc/glibc-functions/flock.texi: Update documentation.
42112         * lib/sys_file.in.h: <sys/file.h> header file.
42113         * m4/flock.m4: M4 macros.
42114         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
42115         * modules/flock: flock module.
42116         * modules/flock-tests: flock tests module.
42117         * modules/sys_file: sys/file.h module.
42118         * tests/test-flock.c: test suite for flock.
42119
42120 2008-10-06  Jim Meyering  <meyering@redhat.com>
42121
42122         bootstrap: check for LT_INIT more portably still ;-)
42123         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
42124         Spotted by Bruno Haible.
42125
42126 2008-10-06  Eric Blake  <ebb9@byu.net>
42127
42128         test-signbit: avoid tripping Irix cc bug on -0.0L
42129         * tests/test-signbit.c (minus_zerol): Delete, and replace with
42130         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
42131         entire testsuite consistent and avoids an Irix 6.2 bug.
42132
42133 2008-10-05  Bruno Haible  <bruno@clisp.org>
42134             Jim Meyering  <jim@meyering.net>
42135
42136         Add an option for ignoring EPIPE during close_stdout.
42137         * lib/closeout.h: Include <stdbool.h>.
42138         (close_stdout_set_ignore_EPIPE): New declaration.
42139         * lib/closeout.c: Include <stdbool.h>.
42140         (ignore_EPIPE): New variable.
42141         (close_stdout_set_ignore_EPIPE): New function.
42142         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
42143         * lib/close-stream.c (close_stream): Mention the possible EPIPE
42144         failure.
42145         * modules/closeout (Depends-on): Add stdbool.
42146
42147 2008-10-05  Bruno Haible  <bruno@clisp.org>
42148
42149         * modules/accept: New file.
42150         * modules/bind: New file.
42151         * modules/connect: New file.
42152         * modules/getpeername: New file.
42153         * modules/getsockname: New file.
42154         * modules/getsockopt: New file.
42155         * modules/listen: New file.
42156         * modules/recv: New file.
42157         * modules/recvfrom: New file.
42158         * modules/send: New file.
42159         * modules/sendto: New file.
42160         * modules/setsockopt: New file.
42161         * modules/socket: New file.
42162         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
42163         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
42164         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
42165         the particular module is requested. Add a link warning when the
42166         particular module is not requested.
42167         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
42168         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
42169         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
42170         the particular module is requested.
42171         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
42172         gl_SYS_SOCKET_H_DEFAULTS): New macros.
42173         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
42174         * modules/sys_socket (Depends-on): Add link-warning.
42175         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
42176         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
42177         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
42178         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
42179         GL_LINK_WARNING.
42180         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
42181         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
42182         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
42183         * doc/posix-functions/getpeername.texi: Mention the new module
42184         'getpeername'.
42185         * doc/posix-functions/getsockname.texi: Mention the new module
42186         'getsockname'.
42187         * doc/posix-functions/getsockopt.texi: Mention the new module
42188         'getsockopt'.
42189         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
42190         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
42191         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
42192         * doc/posix-functions/send.texi: Mention the new module 'send'.
42193         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
42194         * doc/posix-functions/setsockopt.texi: Mention the new module
42195         'setsockopt'.
42196         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
42197         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
42198         listen, connect, accept.
42199         * modules/select-tests (Depends-on): Likewise.
42200
42201 2008-10-05  Bruno Haible  <bruno@clisp.org>
42202
42203         * lib/winsock.c (strerror): Remove unused #undef.
42204         (rpl_close): Remove unused local variable.
42205
42206         * modules/sys_socket (Depends-on); Add errno.
42207
42208 2008-10-05  Bruno Haible  <bruno@clisp.org>
42209
42210         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
42211         (select): Add a link warning when the 'select' module is not used.
42212         * modules/sys_select (Depends-on): Add link-warning.
42213         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
42214         Suggested by Paolo Bonzini.
42215
42216 2008-10-05  Jim Meyering  <meyering@redhat.com>
42217
42218         bootstrap: check for LT_INIT more portably
42219         * build-aux/bootstrap: Avoid using grep -E, since it's not
42220         portable enough.  Suggestion from Bruno Haible.
42221
42222 2008-10-05  Bruno Haible  <bruno@clisp.org>
42223
42224         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
42225         as being fixed by gnulib.
42226
42227 2008-10-05  Bruno Haible  <bruno@clisp.org>
42228
42229         * modules/select-tests: New file, mostly copied from
42230         modules/sys_select-tests.
42231         * tests/test-select.c: New file, mostly copied from
42232         tests/test-sys_select.c.
42233         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
42234         * modules/sys_select-tests (Depends-on): Remove all dependencies.
42235         (Makefile.am): Remove test_sys_select_LDADD.
42236
42237         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
42238         to an undefined symbol, for an error message.
42239         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
42240         (gl_SYS_SELECT_H_DEFAULTS): New macro.
42241         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
42242         winsock-select.c here.
42243         * modules/sys_select (Files): Remove lib/winsock-select.c.
42244         (Depends-on): Remove alloca.
42245         (Makefile.am): Substitute GNULIB_SELECT.
42246         * modules/select: New file.
42247         * doc/posix-functions/select.texi: Update.
42248
42249 2008-10-05  Bruno Haible  <bruno@clisp.org>
42250
42251         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
42252         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
42253         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
42254         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
42255         getdtablesize.
42256         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
42257         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
42258
42259 2008-10-05  Bruno Haible  <bruno@clisp.org>
42260
42261         * modules/getdtablesize-tests: New file.
42262         * tests/test-getdtablesize.c: New file.
42263
42264         New module 'getdtablesize'.
42265         * lib/unistd.in.h (getdtablesize): New declaration.
42266         * lib/getdtablesize.c: New file.
42267         * m4/getdtablesize.m4: New file.
42268         * modules/getdtablesize: New file.
42269         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42270         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
42271         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
42272         HAVE_GETDTABLESIZE.
42273         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
42274
42275 2008-10-05  Bruno Haible  <bruno@clisp.org>
42276
42277         * modules/sched (Makefile.am): Fix typo.
42278         Reported by Simon Josefsson.
42279
42280 2008-10-05  Jim Meyering  <meyering@redhat.com>
42281
42282         bootstrap: check for LT_INIT, too
42283         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
42284         are deprecated.  Suggestion from Ralf Wildenhues.
42285
42286 2008-10-05  Bruno Haible  <bruno@clisp.org>
42287
42288         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
42289         overriding them by ours.
42290         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
42291
42292 2008-10-05  Jim Meyering  <meyering@redhat.com>
42293
42294         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
42295         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
42296         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
42297
42298 2008-10-04  Bruno Haible  <bruno@clisp.org>
42299
42300         * modules/dup2 (License): Change to LGPLv2+.
42301         * modules/sleep (License): Likewise.
42302         * modules/perror (License): Likewise.
42303         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
42304         Blake.
42305         * modules/signal (License): Likewise.
42306         * modules/sigprocmask (License): Likewise.
42307         * modules/raise (License): Change to LGPLv2+, with approval by Jim
42308         Meyering.
42309
42310 2008-10-04  Bruno Haible  <bruno@clisp.org>
42311
42312         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
42313         Reported by Rainer Tammer <tammer@tammer.net>.
42314
42315 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
42316             Bruno Haible  <bruno@clisp.org>
42317
42318         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
42319         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
42320         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
42321
42322 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
42323
42324         filevercmp: new module
42325         * lib/filevercmp.h: New function filevercmp comparing version strings.
42326         * lib/filevercmp.c: Implementation of filevercmp function.
42327         * modules/filevercmp: Module metadata.
42328         * tests/test-filevercmp.c: Unit test for new module.
42329         * modules/filevercmp-tests: Unit test metadata.
42330         * MODULES.html.sh: Add filevercmp module.
42331
42332 2008-10-03  Bruno Haible  <bruno@clisp.org>
42333
42334         * lib/c-ctype.h: Add comment.
42335         Reported by Jim Meyering.
42336
42337 2008-10-02  Bruno Haible  <bruno@clisp.org>
42338
42339         * modules/posix_spawn-internal (Depends-on): Add 'open'.
42340
42341 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
42342
42343         * build-aux/bootstrap: Allow renaming bootstrap, and change the
42344         name of bootstrap.conf accordingly.
42345
42346 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
42347
42348         * build-aux/bootstrap: Install git-merge-changelog configuration
42349         items into .gitconfig if needed.
42350
42351 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
42352
42353         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
42354         git repository, and initialize/update it accordingly.
42355
42356 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
42357
42358         * modules/fsync-tests: New file.
42359         * tests/test-fsync.c: New file.
42360
42361         New module 'fsync'.
42362         * lib/fsync.c: New file.
42363         * m4/fsync.m4: New file.
42364         * modules/fsync: New file.
42365         * lib/unistd.in.h (fsync): New declaration.
42366         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
42367         GNULIB_FSYNC and HAVE_FSYNC.
42368         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
42369         * MODULES.html.sh (posix_functions): Add fsync.
42370         * doc/posix-functions/fsync.texi: Mention the new module.
42371
42372 2008-10-02  Jim Meyering  <meyering@redhat.com>
42373
42374         fts.c: sync with similar code from coreutils' remove.c
42375         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
42376         Guard also with "#if defined __linux__", since for now at least,
42377         this code is Linux-kernel-specific.
42378
42379 2008-10-02  Jim Meyering  <meyering@redhat.com>
42380
42381         fts: bug fixes
42382         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
42383         Include <sys/vfs.h>, not <sys/statfs.h>.
42384
42385         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
42386         Include <sys/vfs.h>, not <sys/statfs.h>.
42387
42388 2008-10-01  Bruno Haible  <bruno@clisp.org>
42389
42390         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
42391         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
42392         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
42393         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
42394         * doc/posix-functions/posix_spawnp.texi: Likewise.
42395         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
42396         whether posix_spawn actually works.
42397         * m4/pipe.m4 (gl_PIPE): Likewise.
42398         * modules/execute (Files): Add m4/posix_spawn.m4.
42399         * modules/pipe (Files): Add m4/posix_spawn.m4.
42400         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
42401
42402 2008-10-01  Jim Meyering  <meyering@redhat.com>
42403
42404         remove trailing spaces
42405         * NEWS: Likewise.
42406         * lib/poll.c (poll): Likewise.
42407         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
42408         * lib/winsock.c (rpl_close): Likewise.
42409         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
42410         * modules/yield: Likewise.
42411         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
42412         * tests/test-sys_select.c (connect_to_socket): Likewise.
42413
42414         fts.c: adjust a new interface to be more generally useful
42415         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
42416         (fts_build): Adjust caller.
42417
42418 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42419
42420         * modules/cond-tests: New file.
42421         * tests/test-cond.c: New file.
42422
42423 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42424             Bruno Haible  <bruno@clisp.org>
42425
42426         * modules/cond (Dependencies): Add errno, time.
42427         * lib/glthread/cond.h: Include <time.h>.
42428         (gl_cond_define, gl_cond_define_initialized): Use the same definition
42429         across platforms.
42430
42431 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42432             Bruno Haible  <bruno@clisp.org>
42433
42434         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
42435
42436 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42437             Bruno Haible  <bruno@clisp.org>
42438
42439         * modules/tls-tests (Depends-on): Add thread, yield.
42440         (configure.ac): Remove all checks.
42441         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
42442         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
42443         gl_thread_self): Remove definitions. Include glthread/thread.h and
42444         glthread/yield.h instead.
42445         (test_tls): Pass an additional NULL argument to gl_thread_join.
42446
42447 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42448             Bruno Haible  <bruno@clisp.org>
42449
42450         * modules/lock-tests (Depends-on): Add thread, yield.
42451         (configure.ac): Remove all checks.
42452         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
42453         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
42454         gl_thread_self): Remove definitions. Include glthread/thread.h and
42455         glthread/yield.h instead.
42456         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
42457         additional NULL argument to gl_thread_join.
42458
42459 2008-09-30  Bruno Haible  <bruno@clisp.org>
42460
42461         Fix the Win32 implementation of the 'thread' module.
42462         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
42463         pointer type.
42464         (gl_thread_self): Invoke gl_thread_self_func.
42465         (gl_thread_self_func): New declaration.
42466         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
42467         (do_init_self_key, init_self_key): New functions.
42468         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
42469         Remove some fields.
42470         (running_threads, running_lock): Remove variables.
42471         (get_current_thread_handle): New function.
42472         (gl_thread_self_func, wrapper_func, glthread_create_func,
42473         glthread_join_func, gl_thread_exit_func): Largely rewritten and
42474         simplified.
42475
42476 2008-09-30  Bruno Haible  <bruno@clisp.org>
42477
42478         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
42479         files.
42480
42481 2008-09-30  Jim Meyering  <meyering@redhat.com>
42482
42483         fts.m4: correct the test for statfs.f_type
42484         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
42485         when checking for statfs.f_type.
42486
42487 2008-09-15  Simon Josefsson  <simon@josefsson.org>
42488
42489         tests: avoid some compiler warnings
42490         * tests/test-memchr.c (main): Pass NULL indirectly.
42491         * tests/test-getdate.c (main): Remove unused variable 'ret'.
42492
42493 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
42494
42495         getdate.y: disallow countable dayshifts like "4 yesterday ago"
42496         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
42497         exactly specified dayshifts.
42498         (dayshift): New rule.
42499         (rel): Add dayshift.
42500         (relative_time_table) [tomorrow, yesterday, today, now]:
42501         Use tDAY_SHIFT in place of tDAY_UNIT.
42502         * tests/test-getdate.c: Add tests for now-disallowed countable
42503         dayshifts, e.g., "4 yesterday ago".
42504
42505 2008-09-29  Bruno Haible  <bruno@clisp.org>
42506
42507         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
42508         * tests/test-posix_spawn1.in.sh: Renamed from
42509         tests/test-posix_spawn.in.sh.
42510         * tests/test-posix_spawn2.c: New file.
42511         * tests/test-posix_spawn2.in.sh: New file.
42512         * modules/posix_spawnp-tests (Files): Update.
42513         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
42514
42515 2008-09-29  Bruno Haible  <bruno@clisp.org>
42516
42517         Propagate effects of putenv/setenv/unsetenv to child processes.
42518         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
42519         * lib/pipe.c (create_pipe): Likewise.
42520
42521 2008-09-29  Bruno Haible  <bruno@clisp.org>
42522
42523         Enable use of shell scripts as executables in mingw.
42524         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
42525         run the program as a shell script.
42526         * lib/pipe.c (create_pipe): Likewise.
42527         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
42528         resulting array.
42529
42530 2008-09-29  Eric Blake  <ebb9@byu.net>
42531
42532         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
42533
42534 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
42535
42536         * doc/posix-functions/accept.texi: Update mingw problems.
42537         * doc/posix-functions/bind.texi: Update mingw problems.
42538         * doc/posix-functions/close.texi: Update mingw problems.
42539         * doc/posix-functions/connect.texi: Update mingw problems.
42540         * doc/posix-functions/getpeername.texi: Update mingw problems.
42541         * doc/posix-functions/getsockname.texi: Update mingw problems.
42542         * doc/posix-functions/getsockopt.texi: Update mingw problems.
42543         * doc/posix-functions/ioctl.texi: Update mingw problems.
42544         * doc/posix-functions/listen.texi: Update mingw problems.
42545         * doc/posix-functions/recv.texi: Update mingw problems.
42546         * doc/posix-functions/recvfrom.texi: Update mingw problems.
42547         * doc/posix-functions/select.texi: Update mingw problems.
42548         * doc/posix-functions/send.texi: Update mingw problems.
42549         * doc/posix-functions/sendto.texi: Update mingw problems.
42550         * doc/posix-functions/setsockopt.texi: Update mingw problems.
42551         * doc/posix-functions/socket.texi: Update mingw problems.
42552
42553 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
42554             Bruno Haible  <bruno@clisp.org>
42555
42556         * lib/sys_select.in.h: Include sys/time.h.
42557         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
42558         * modules/sys_select: Depend on sys_time.
42559         * tests/test-sys_select.c: Test that sys/select.h defines struct
42560         timeval fully.
42561
42562 2008-09-29  Bruno Haible  <bruno@clisp.org>
42563
42564         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
42565         * lib/sys_select.in.h: Likewise.
42566
42567 2008-09-29  Bruno Haible  <bruno@clisp.org>
42568
42569         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
42570
42571 2008-09-29  Bruno Haible  <bruno@clisp.org>
42572
42573         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
42574         Set LIBSOCKET instead of augmenting LIBS.
42575         * modules/sockets (Link): New section.
42576         * modules/sockets-tests (test_sockets_LDADD): New variable.
42577         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
42578         * modules/poll-tests (test_poll_LDADD): New variable.
42579         * NEWS: Document the change.
42580
42581 2008-09-29  Bruno Haible  <bruno@clisp.org>
42582
42583         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
42584         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
42585         ARPA_INET_H directly.
42586         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
42587
42588 2008-09-28  Bruno Haible  <bruno@clisp.org>
42589
42590         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
42591         from gl_HEADER_SYS_SOCKET.
42592         (gl_HEADER_SYS_SOCKET): Invoke it.
42593         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
42594
42595 2008-09-28  Bruno Haible  <bruno@clisp.org>
42596
42597         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
42598         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
42599         Needed on OSF/1 4.0.
42600
42601 2008-09-28  Bruno Haible  <bruno@clisp.org>
42602
42603         Override open more carefully.
42604         * lib/open.c (orig_open): New function.
42605         (rpl_open): Use orig_open instead of open.
42606         * lib/fcntl.in.h: Add special invocation convention.
42607         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
42608         (gl_FUNC_OPEN): Invoke it.
42609
42610         Override freopen more carefully.
42611         * lib/freopen.c (orig_freopen): New function.
42612         (rpl_freopen): Use orig_freopen instead of freopen.
42613         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
42614         (gl_FUNC_FREOPEN): Invoke it.
42615
42616         Override fopen more carefully.
42617         * lib/fopen.c (orig_fopen): New function.
42618         (rpl_fopen): Use orig_fopen instead of fopen.
42619         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
42620         (gl_FUNC_FOPEN): Invoke it.
42621         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
42622
42623 2008-09-28  Bruno Haible  <bruno@clisp.org>
42624
42625         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
42626         SIGPIPE.
42627
42628 2008-09-28  Bruno Haible  <bruno@clisp.org>
42629
42630         * tests/test-sigaction.c (handler, main): Disable the check whether
42631         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
42632         glibc systems with LinuxThreads.
42633
42634 2008-09-28  Bruno Haible  <bruno@clisp.org>
42635
42636         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
42637
42638         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
42639         with AIX xlc.
42640         * lib/fcntl.in.h (open): Likewise.
42641         Reported by Rainer Tammer <tammer@tammer.net>.
42642
42643 2008-09-28  Bruno Haible  <bruno@clisp.org>
42644
42645         * modules/posix_spawnp-tests: New file.
42646         * tests/test-posix_spawn.c: New file.
42647         * tests/test-posix_spawn.in.sh: New file.
42648
42649         New module 'posix_spawnp'.
42650         * modules/posix_spawnp: New file.
42651         * lib/spawnp.c: New file, from GNU libc with modifications.
42652         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
42653
42654         New module 'posix_spawn'.
42655         * modules/posix_spawn: New file.
42656         * lib/spawn.c: New file, from GNU libc with modifications.
42657         * doc/posix-functions/posix_spawn.texi: Mention the new module.
42658
42659         New module 'posix_spawnattr_destroy'.
42660         * modules/posix_spawnattr_destroy: New file.
42661         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
42662         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
42663         module.
42664
42665         New module 'posix_spawnattr_setsigmask'.
42666         * modules/posix_spawnattr_setsigmask: New file.
42667         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
42668         modifications.
42669         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
42670         new module.
42671
42672         New module 'posix_spawnattr_getsigmask'.
42673         * modules/posix_spawnattr_getsigmask: New file.
42674         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
42675         modifications.
42676         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
42677         new module.
42678
42679         New module 'posix_spawnattr_setsigdefault'.
42680         * modules/posix_spawnattr_setsigdefault: New file.
42681         * lib/spawnattr_setdefault.c: New file, from GNU libc with
42682         modifications.
42683         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
42684         new module.
42685
42686         New module 'posix_spawnattr_getsigdefault'.
42687         * modules/posix_spawnattr_getsigdefault: New file.
42688         * lib/spawnattr_getdefault.c: New file, from GNU libc with
42689         modifications.
42690         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
42691         new module.
42692
42693         New module 'posix_spawnattr_setschedpolicy'.
42694         * modules/posix_spawnattr_setschedpolicy: New file.
42695         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
42696         modifications.
42697         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
42698         new module.
42699
42700         New module 'posix_spawnattr_getschedpolicy'.
42701         * modules/posix_spawnattr_getschedpolicy: New file.
42702         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
42703         modifications.
42704         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
42705         new module.
42706
42707         New module 'posix_spawnattr_setschedparam'.
42708         * modules/posix_spawnattr_setschedparam: New file.
42709         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
42710         modifications.
42711         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
42712         new module.
42713
42714         New module 'posix_spawnattr_getschedparam'.
42715         * modules/posix_spawnattr_getschedparam: New file.
42716         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
42717         modifications.
42718         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
42719         new module.
42720
42721         New module 'posix_spawnattr_setpgroup'.
42722         * modules/posix_spawnattr_setpgroup: New file.
42723         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
42724         modifications.
42725         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
42726         module.
42727
42728         New module 'posix_spawnattr_getpgroup'.
42729         * modules/posix_spawnattr_getpgroup: New file.
42730         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
42731         modifications.
42732         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
42733         module.
42734
42735         New module 'posix_spawnattr_setflags'.
42736         * modules/posix_spawnattr_setflags: New file.
42737         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
42738         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
42739         module.
42740
42741         New module 'posix_spawnattr_getflags'.
42742         * modules/posix_spawnattr_getflags: New file.
42743         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
42744         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
42745         module.
42746
42747         New module 'posix_spawnattr_init'.
42748         * modules/posix_spawnattr_init: New file.
42749         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
42750         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
42751         module.
42752
42753         New module 'posix_spawn_file_actions_destroy'.
42754         * modules/posix_spawn_file_actions_destroy: New file.
42755         * lib/spawn_faction_destroy.c: New file, from GNU libc with
42756         modifications.
42757         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
42758         the new module.
42759
42760         New module 'posix_spawn_file_actions_addopen'.
42761         * modules/posix_spawn_file_actions_addopen: New file.
42762         * lib/spawn_faction_addopen.c: New file, from GNU libc with
42763         modifications.
42764         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
42765         the new module.
42766
42767         New module 'posix_spawn_file_actions_adddup2'.
42768         * modules/posix_spawn_file_actions_adddup2: New file.
42769         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
42770         modifications.
42771         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
42772         the new module.
42773
42774         New module 'posix_spawn_file_actions_addclose'.
42775         * modules/posix_spawn_file_actions_addclose: New file.
42776         * lib/spawn_faction_addclose.c: New file, from GNU libc with
42777         modifications.
42778         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
42779         the new module.
42780
42781         New module 'posix_spawn_file_actions_init'.
42782         * modules/posix_spawn_file_actions_init: New file.
42783         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
42784         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
42785         new module.
42786
42787         New module 'posix_spawn-internal'.
42788         * modules/posix_spawn-internal: New file.
42789         * lib/spawn_int.h: New file, from GNU libc with modifications.
42790         * lib/spawni.c: New file, from GNU libc with modifications.
42791         * m4/posix_spawn.m4: New file.
42792
42793         New module 'spawn'.
42794         * modules/spawn: New file.
42795         * lib/spawn.in.h: New file, from GNU libc with modifications.
42796         * m4/spawn_h.m4: New file.
42797         * doc/posix-headers/spawn.texi: Mention the new module.
42798
42799 2008-09-28  Bruno Haible  <bruno@clisp.org>
42800
42801         * modules/sched-tests: New file.
42802         * tests/test-sched.c: New file.
42803
42804         New module 'sched'.
42805         * modules/sched: New file.
42806         * lib/sched.in.h: New file.
42807         * m4/sched_h.m4: New file.
42808         * doc/posix-headers/sched.texi: Mention the new module.
42809
42810 2008-09-27  Eric Blake  <ebb9@byu.net>
42811
42812         Fix previous patch, and tweak references to $0.
42813         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
42814         (func_version, func_gnulib_dir): Don't call this program
42815         gnulib-tool.
42816         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
42817         with using $0 in function.
42818         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
42819         (func_fatal_error): Reuse the name the user invoked us with.
42820
42821 2008-09-27  Bruno Haible  <bruno@clisp.org>
42822
42823         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
42824         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
42825         (gl_ICONV_H): Not here.
42826         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
42827         instead of assigning ICONV_H directly.
42828
42829         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
42830         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
42831         WCHAR_H directly.
42832
42833 2008-09-27  Bruno Haible  <bruno@clisp.org>
42834
42835         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
42836         * modules/arpa_inet (Depends-on): Add link-warning.
42837         (Makefile.am): Insert the definition of GL_LINK-WARNING.
42838         * modules/unistd (Makefile.am): Likewise.
42839
42840 2008-09-26  Bruno Haible  <bruno@clisp.org>
42841
42842         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
42843         variables.
42844         (func_version): Essentially copied from gnulib-tool.
42845         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
42846         func_readlink): Copied from gnulib-tool.
42847
42848 2008-09-26  Bruno Haible  <bruno@clisp.org>
42849
42850         * gnulib-tool (func_version): Change directory to $gnulib_dir before
42851         invoking git-version-gen.
42852
42853 2008-09-26  Bruno Haible  <bruno@clisp.org>
42854
42855         * posix-modules: Update to directory names changed on 2008-01-19.
42856         Remove commas in output before splitting into words. No more need to
42857         avoid 'ftruncate' since 2007-02-19.
42858
42859 2008-09-26  Bruno Haible  <bruno@clisp.org>
42860
42861         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
42862
42863 2008-09-26  Bruno Haible  <bruno@clisp.org>
42864
42865         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
42866         * modules/fwriteerror (Depends-on): Add errno.
42867
42868 2008-09-26  Bruno Haible  <bruno@clisp.org>
42869
42870         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
42871         * tests/test-vc-list-files-cvs.sh: Likewise.
42872
42873 2008-09-26  Bruno Haible  <bruno@clisp.org>
42874
42875         * doc/posix-headers/sys_resource.texi: Reorder items.
42876
42877 2008-09-26  Jim Meyering  <meyering@redhat.com>
42878
42879         fts: tweak inode comparison function
42880         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
42881         inode numbers, as documented.
42882
42883         fts: sort dirent entries on inode number before traversing
42884         This avoids a quadratic, seek-related performance penalty when
42885         operating on a directory containing many entries (measurable at 10k;
42886         3.5 hours at 2 million entries with a cold cache) on certain types
42887         of file systems, including ext3 and ext4, but not tmpfs.
42888         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
42889         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
42890         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
42891         (fs_handles_readdir_ordered_dirents_efficiently): New function.
42892         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
42893         (fts_build): Set the stat.st_ino member from D_INO.
42894         If it is likely to be useful, sort dirent entries on inode number.
42895
42896         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
42897         and the struct statfs.f_type member.
42898         * modules/fts (Depends-on): Add d-ino.
42899
42900 2008-09-26  Bruno Haible  <bruno@clisp.org>
42901
42902         * modules/sigpipe-die (Depends-on): Add sigpipe.
42903
42904         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
42905         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
42906         and GNULIB_STDIO_H_SIGPIPE are set.
42907         * lib/stdio-write.c: New file.
42908         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
42909         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
42910         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
42911         REPLACE_STDIO_WRITE_FUNCS.
42912         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
42913         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
42914         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
42915         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
42916         * modules/stdio (Files): Add lib/stdio-write.c.
42917         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
42918         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
42919         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
42920         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
42921         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
42922         REPLACE_FPRINTF_POSIX.
42923         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
42924         REPLACE_PRINTF_POSIX.
42925         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
42926         REPLACE_VFPRINTF_POSIX.
42927         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
42928         REPLACE_VPRINTF_POSIX.
42929         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
42930         SIGPIPE issue.
42931         * doc/posix-functions/fputc.texi: Likewise.
42932         * doc/posix-functions/fputs.texi: Likewise.
42933         * doc/posix-functions/fwrite.texi: Likewise.
42934         * doc/posix-functions/printf.texi: Likewise.
42935         * doc/posix-functions/putc.texi: Likewise.
42936         * doc/posix-functions/putchar.texi: Likewise.
42937         * doc/posix-functions/puts.texi: Likewise.
42938         * doc/posix-functions/vfprintf.texi: Likewise.
42939         * doc/posix-functions/vprintf.texi: Likewise.
42940
42941         * modules/safe-write (Depends-on): Add write.
42942
42943         * modules/sigpipe-tests: New file.
42944         * tests/test-sigpipe.c: New file.
42945         * tests/test-sigpipe.sh: New file.
42946
42947         * modules/write: New file.
42948         * lib/unistd.in.h: Include <sys/types.h>.
42949         (write): New declaration.
42950         * lib/write.c: New file.
42951         * m4/write.m4: New file.
42952         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42953         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
42954         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
42955         GNULIB_WRITE, REPLACE_WRITE.
42956         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
42957         and the SIGPIPE issue.
42958
42959         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
42960         (raise): New declaration.
42961         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
42962         (ext_signal): New function.
42963         (rpl_raise): New function.
42964         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
42965         GNULIB_SIGNAL_H_SIGPIPE.
42966         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
42967         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
42968
42969         * modules/sigpipe: New file.
42970         * m4/sigpipe.m4: New file.
42971
42972 2008-09-25  Derek Price  <derek@ximbiot.com>
42973             Bruno Haible  <bruno@clisp.org>
42974
42975         * gnulib-tool (func_import): Report all license incompatibilities, not
42976         just the first one.
42977
42978 2008-09-25  Bruno Haible  <bruno@clisp.org>
42979
42980         * gnulib-tool (func_import): When computing the edits, consider not
42981         only the Makefile.ams that exist but also those that will be generated.
42982
42983 2008-09-25  Simon Josefsson  <simon@josefsson.org>
42984
42985         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
42986         fixes gnulib-tool --test warning about duplicate dependency.
42987
42988 2008-09-25  Bruno Haible  <bruno@clisp.org>
42989
42990         * gnulib-tool: Don't ask the user to perform edits in the generated
42991         Makefile.ams.
42992         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
42993         apply to the Makefile.am being generated.
42994         (func_emit_tests_Makefile_am): Execute edits that apply to the
42995         Makefile.am being generated.
42996         (func_import): Setup list of Makefile.am edits before emitting the
42997         Makefile.ams, not at the end.
42998         (func_create_testdir): Update.
42999         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
43000
43001 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43002
43003         * gnulib-tool (func_import): Store the --tests-base option in the
43004         comment in gnulib-cache.m4.
43005
43006 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
43007
43008         * NEWS: Document increased portability that sys_select now provides.
43009
43010         * lib/sys_select.in.h: Install select wrapper.
43011         * lib/sys_socket.in.h: Use more descriptive name when there is no
43012         select wrapper.
43013         * lib/winsock-select.c: New.
43014         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
43015         Require gl_HEADER_SYS_SOCKET.
43016         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
43017         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
43018         * tests/test-sys_select.c: Add functional tests.
43019
43020 2008-09-24  Eric Blake  <ebb9@byu.net>
43021
43022         open, fopen: close fd leak in last patch
43023         * lib/open.c (rpl_open): Close fd before returning error.
43024         * lib/fopen.c (rpl_fopen): Close fd before returning error.
43025         * doc/posix-functions/open.texi (open): Document that Irix also
43026         has the bug.
43027         * doc/posix-functions/fopen.texi (fopen): Likewise.
43028         Reported by Paolo Bonzini.
43029
43030 2008-09-24  Bruno Haible  <bruno@clisp.org>
43031
43032         Ensure that a filename ending in a slash cannot be used to access a
43033         non-directory.
43034         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
43035         to check whether it's really a directory.
43036         * lib/fopen.c: Include fcntl.h, unistd.h.
43037         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
43038         and fdopen().
43039         * modules/fopen (Depends-on): Add unistd.
43040         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
43041         * tests/test-fopen.c (main): Likewise.
43042         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
43043         * doc/posix-functions/fopen.texi: Likewise.
43044         Reported by Eric Blake.
43045
43046 2008-09-23  Eric Blake  <ebb9@byu.net>
43047
43048         c-stack: avoid compiler optimizations when provoking overflow
43049         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
43050         recursion harder to optimize, to ensure a stack overflow occurs.
43051         * tests/test-c-stack.c (recurse): Likewise.
43052         Borrowed from libsigsegv.
43053
43054         c-stack: work around Irix sigaltstack bug
43055         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
43056         whether sigaltstack uses wrong end of stack_t (copied in part from
43057         libsigsegv).
43058         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
43059         Irix bug, without requiring an over-allocation.
43060         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
43061         bug.
43062
43063         fopen: document mingw bug on directories
43064         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
43065         not allowing a stream visiting a directory, even though reading
43066         from such a stream is not portable.
43067
43068 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
43069
43070         * lib/poll.c: Rewrite.
43071         * modules/poll: Depend on alloca.
43072
43073 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
43074
43075         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
43076         instead define prototypes for a full set of wrappers.  Ensure
43077         that Cygwin does not use the compatibility code, which is only
43078         for MinGW.
43079         * lib/winsock.c: New.
43080         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
43081         * modules/sys_socket: Add lib/winsock.c.
43082
43083         * modules/poll-tests: Add errno and perror.
43084         * tests/test-poll.c: Use ioctl, not ioctlsocket.
43085
43086 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
43087
43088         * tests/test-poll.c: Downgrade minimum needed Winsock version.
43089
43090 2008-09-23  Bruno Haible  <bruno@clisp.org>
43091
43092         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
43093         * doc/glibc-functions/*: Likewise.
43094
43095 2008-09-23  Simon Josefsson  <simon@josefsson.org>
43096
43097         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
43098         success.
43099
43100 2008-09-22  Eric Blake  <ebb9@byu.net>
43101             Bruno Haible  <bruno@clisp.org>
43102
43103         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
43104         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
43105         supply %A but mishandle pseudo-NaN.
43106         Reported by Simon Josefsson.
43107
43108 2008-09-21  Bruno Haible  <bruno@clisp.org>
43109
43110         * tests/test-lock.c (main): Tweak skip message.
43111         * tests/test-tls.c (main): Likewise.
43112
43113 2008-09-21  Bruno Haible  <bruno@clisp.org>
43114
43115         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
43116         whether 'struct sigaction' has sa_sigaction here...
43117         (gl_PREREQ_SIG_HANDLER_H): ... not here.
43118         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
43119
43120 2008-09-21  Bruno Haible  <bruno@clisp.org>
43121
43122         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
43123         section.
43124         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
43125         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
43126         the new section.
43127         (Support for obsolete systems lacking POSIX:2001): New section.
43128         (String handling <string.h>): Move strdup to the new section.
43129         Suggested by Simon Josefsson and Paolo Bonzini.
43130
43131 2008-09-21  Bruno Haible  <bruno@clisp.org>
43132
43133         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
43134         exponents in %e and %g results on 'long double'. Needed for mingw's
43135         improved *printf functions.
43136         * tests/test-vasprintf-posix.c (test_function): Likewise.
43137         * tests/test-snprintf-posix.h (test_function): Likewise.
43138         * tests/test-sprintf-posix.h (test_function): Likewise.
43139         Reported by Eric Blake.
43140
43141 2008-09-21  Bruno Haible  <bruno@clisp.org>
43142
43143         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
43144         * tests/test-sprintf-posix.h (test_function): Likewise.
43145
43146 2008-09-21  Bruno Haible  <bruno@clisp.org>
43147
43148         * modules/getpass (Depends-on): Add strdup-posix.
43149
43150         New module 'strdup-posix'.
43151         * modules/strdup-posix: New file.
43152         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
43153         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
43154         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43155         REPLACE_STRDUP.
43156         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
43157         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
43158         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
43159         strdup-posix.
43160
43161         * modules/strdup (Depends-on): Remove malloc-posix.
43162
43163 2008-09-20  Bruno Haible  <bruno@clisp.org>
43164
43165         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
43166         Wildenhues.
43167
43168 2008-09-20  Bruno Haible  <bruno@clisp.org>
43169
43170         Ensure that wint_t gets defined on IRIX 5.3.
43171         * lib/wchar.in.h (wint_t): Define if not defined by the system.
43172         * lib/wctype.in.h (wint_t): Likewise.
43173         (__wctype_wint_t): Remove type.
43174         (isw*): Use wint_t instead of __wctype_wint_t.
43175         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
43176         * modules/wchar (Files): Add m4/wint_t.m4.
43177         (Makefile.am): Substitute HAVE_WINT_T.
43178         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
43179         * tests/test-wctype.c: Check that wint_t is defined.
43180         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
43181         * doc/posix-headers/wctype.texi: Likewise.
43182         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43183
43184 2008-09-18  Bruno Haible  <bruno@clisp.org>
43185
43186         * gnulib-tool (func_exit): Update comment.
43187
43188 2008-09-18  Simon Josefsson  <simon@josefsson.org>
43189
43190         * modules/getaddrinfo (Depends-on): Remove strdup, this module
43191         assumes strdup exists and does not depend on strdup to return
43192         ENOMEM on out of memory conditions.
43193
43194 2008-09-18  Bruno Haible  <bruno@clisp.org>
43195
43196         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
43197         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
43198         digits for the exponent.
43199
43200 2008-09-18  Jim Meyering  <meyering@redhat.com>
43201             Bruno Haible  <bruno@clisp.org>
43202
43203         * lib/vasnprintf.c (decimal_point_char): Define also if
43204         NEED_PRINTF_INFINITE_LONG_DOUBLE.
43205
43206 2008-09-16  Bruno Haible  <bruno@clisp.org>
43207         and Eric Blake  <ebb9@byu.net>
43208
43209         vasnprintf: support Irix 5.3
43210         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
43211         that mishandle long double infinity.
43212         Reported by Tom G. Christensen.
43213
43214 2008-09-16  Bruno Haible  <bruno@clisp.org>
43215
43216         * doc/glibc-functions/scandir.texi: Mention the function is missing on
43217         Solaris 9.
43218         * doc/glibc-functions/alphasort.texi: Likewise.
43219         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
43220
43221 2008-09-16  Jim Meyering  <meyering@redhat.com>
43222
43223         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
43224         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
43225         a umask modification leak out of a subshell.  Otherwise, the
43226         opensolaris /bin/sh would be accepted and thus cause unwarranted
43227         failures in the coreutils test suite.
43228
43229 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
43230
43231         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
43232         to succeed.
43233
43234 2008-09-16  Jim Meyering  <meyering@redhat.com>
43235
43236         avoid spurious test failure when library is built without ACL support
43237         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
43238         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
43239         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
43240         * tests/test-copy-acl.sh: Likewise.
43241
43242 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43243
43244         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
43245         based on character occurrence counts.
43246
43247 2008-09-15  Eric Blake  <ebb9@byu.net>
43248
43249         tests: avoid some compiler warnings
43250         * tests/test-memchr.c (main): Pass NULL indirectly.
43251         * tests/test-closein.c (main): Avoid unused variable.
43252
43253 2008-09-15  Bruno Haible  <bruno@clisp.org>
43254
43255         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
43256         are missing on OpenBSD 4.0 individually.
43257         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
43258
43259 2008-09-15  Bruno Haible  <bruno@clisp.org>
43260
43261         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
43262         * doc/posix-functions/strerror.texi: Mention also Cygwin.
43263         * doc/posix-functions/perror.texi: Likewise.
43264         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
43265         is missing.
43266         Reported by Eric Blake.
43267
43268         * lib/errno.in.h: Use replacement values >= 2000.
43269         Reported by Eric Blake.
43270
43271 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43272
43273         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
43274         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
43275         limit.
43276         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
43277         compareseq was aborted.
43278
43279 2008-09-14  Bruno Haible  <bruno@clisp.org>
43280
43281         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
43282         yvec_edit_count.
43283         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
43284         (fstrcmp_bounded): Simplify result computation accordingly.
43285
43286 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43287
43288         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
43289         (fstrcmp): Define in terms of fstrcmp_bounded.
43290         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
43291         lower_bound argument.
43292         Return quickly if the result is certainly < lower_bound.
43293         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
43294
43295 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43296
43297         * lib/diffseq.h (EARLY_ABORT): New macro.
43298         (compareseq): Change return type to bool. Return true when EARLY_ABORT
43299         evaluates to true.
43300
43301 2008-09-14  Bruno Haible  <bruno@clisp.org>
43302
43303         * modules/perror-tests: New file.
43304         * tests/test-perror.sh: New file.
43305         * tests/test-perror.c: New file.
43306
43307         New module 'perror'.
43308         * lib/stdio.in.h (perror): New declaration.
43309         * lib/perror.c: New file.
43310         * m4/perror.m4: New file.
43311         * modules/perror: New file.
43312         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
43313         * doc/posix-functions/perror.texi: Mention the perror module.
43314         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
43315         REPLACE_PERROR.
43316         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
43317         REPLACE_PERROR.
43318
43319 2008-09-14  Bruno Haible  <bruno@clisp.org>
43320
43321         * modules/stdio (Makefile.am): Reorder to match the order in
43322         lib/stdio.in.h.
43323         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
43324
43325 2008-09-13  Bruno Haible  <bruno@clisp.org>
43326
43327         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
43328
43329 2008-09-13  Bruno Haible  <bruno@clisp.org>
43330
43331         Extend strerror to cover the added errno values.
43332         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
43333         (rpl_strerror): Provide error messages for the added errno values and
43334         for the WSA* values.
43335         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
43336         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
43337         strerror.
43338         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
43339         * modules/strerror (Depends-on): Add errno.
43340         * doc/posix-functions/strerror.texi: Document the change.
43341         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
43342         and EOVERFLOW.
43343
43344 2008-09-13  Bruno Haible  <bruno@clisp.org>
43345
43346         * modules/EOVERFLOW: Remove file.
43347         * m4/eoverflow.m4: Remove file.
43348         * modules/EOVERFLOW-tests: Remove file.
43349         * tests/test-EOVERFLOW.c: Remove file.
43350         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
43351         * modules/ftell (Depends-on): Likewise.
43352         * modules/getdelim (Depends-on): Likewise.
43353         * modules/getugroups (Depends-on): Likewise.
43354         * modules/poll (Depends-on): Likewise.
43355         * modules/snprintf (Depends-on): Likewise.
43356         * modules/sprintf-posix (Depends-on): Likewise.
43357         * modules/vasnprintf (Depends-on): Likewise.
43358         * modules/vasprintf (Depends-on): Likewise.
43359         * modules/vfprintf-posix (Depends-on): Likewise.
43360         * modules/vsnprintf (Depends-on): Likewise.
43361         * modules/vsprintf-posix (Depends-on): Likewise.
43362         * modules/xvasprintf (Depends-on): Likewise.
43363         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
43364         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
43365         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
43366         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
43367         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43368         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
43369         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
43370         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
43371         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43372         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
43373         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
43374         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
43375         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43376         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
43377         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
43378         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
43379         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43380         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
43381         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
43382         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
43383         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43384         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
43385         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
43386         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
43387         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
43388         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43389         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
43390         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
43391         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
43392         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
43393         * MODULES.html.sh: Remove EOVERFLOW.
43394         * NEWS: Mention the change.
43395
43396 2008-09-13  Bruno Haible  <bruno@clisp.org>
43397
43398         * modules/errno-tests: New file.
43399         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
43400
43401         * lib/errno.in.h: New file.
43402         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
43403         * modules/errno: New file.
43404         * doc/posix-headers/errno.texi: Update documentation.
43405         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
43406
43407 2008-09-13  Bruno Haible  <bruno@clisp.org>
43408
43409         * tests/test-poll.c: Use #if for native Windows, rather than testing
43410         __MSVCRT__.
43411
43412 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43413             Bruno Haible  <bruno@clisp.org>
43414
43415         * lib/glob.c: Don't include <pwd.h> on native Windows.
43416         (WINDOWS32): New macro.
43417         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
43418
43419 2008-09-13  Bruno Haible  <bruno@clisp.org>
43420
43421         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
43422         (ETIMEDOUT): Remove macro.
43423         (glthread_cond_timedwait_multithreaded): New declaration.
43424         (glthread_cond_timedwait): Use it.
43425         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
43426         (glthread_cond_timedwait_multithreaded): New function.
43427
43428 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
43429
43430         * modules/poll-tests: Do not check for io.h.
43431         * tests/test-poll.c: Check for __MSVCRT__ instead.
43432
43433 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
43434
43435         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
43436         * modules/poll-tests: Add inet_pton, stdbool, sockets.
43437         * tests/test-poll.c: Use them.  Use _pipe on Windows.
43438
43439 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
43440
43441         * modules/poll-tests: New.
43442         * tests/test-poll.c: New.
43443
43444 2008-09-12  Eric Blake  <ebb9@byu.net>
43445
43446         frexp: test for NetBSD failure on -0.0
43447         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
43448         not all, bugs from NetBSD 3.0 have been fixed.
43449         * doc/posix-functions/frexp.texi (frexp): Document bug.
43450         Reported by Thomas Klausner.
43451
43452         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
43453         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
43454         literal -0.0.
43455         Reported by Jonathan C. Patschke <jp@centtech.com>.
43456
43457 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43458
43459         * lib/glthread/cond.h: Use dummy implementation also if
43460         USE_WIN32_THREADS.
43461
43462 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43463
43464         * modules/fnmatch-posix (License): Change to LGPLv2+.
43465         * modules/fnmatch-gnu (License): Likewise.
43466
43467 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43468
43469         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
43470
43471 2008-09-11  Jim Meyering  <meyering@redhat.com>
43472
43473         * users.txt: Add gtk-vnc.
43474
43475 2008-09-08  Simon Josefsson  <simon@josefsson.org>
43476
43477         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
43478         rotate amounts.
43479
43480         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
43481         required for 16-bit and 8-bit rotates.
43482         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
43483         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
43484         UINT8_MAX instead of hard-coded constants.
43485         Suggested by Paul Eggert.
43486
43487 2008-09-07  Bruno Haible  <bruno@clisp.org>
43488
43489         * tests/test-striconveh.c (main): Check behaviour when converting from
43490         UTF-7.
43491
43492         Make striconveh work better with stateful encodings.
43493         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
43494         that iconv does not increment the inptr when returning -1/EINVAL.
43495
43496 2008-09-07  Bruno Haible  <bruno@clisp.org>
43497
43498         * build-aux/config.rpath: Update according to libtool-2.2.6.
43499         * build-aux/config.libpath: Likewise.
43500
43501 2008-09-06  Bruno Haible  <bruno@clisp.org>
43502
43503         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
43504         * lib/freadptr.c (freadptr): Likewise.
43505         * lib/freadseek.c (freadptrinc): Likewise.
43506         Reported by Simon Josefsson.
43507
43508 2008-09-06  Bruno Haible  <bruno@clisp.org>
43509
43510         * modules/freadptr (License): Change to LGPLv2+.
43511         * modules/freadseek (License): Likewise.
43512         Suggested by Eric Blake.
43513
43514         * modules/memchr2 (License): Change to LGPLv2+.
43515         Approved by Eric Blake.
43516
43517 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43518             Bruno Haible  <bruno@clisp.org>
43519
43520         Make gnulib-tool work with native 'sed' on AIX.
43521         * gnulib-tool (sed_noop): New variable.
43522         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
43523         func_add_or_update, func_create_testdir): Use it to initialize sed
43524         script variables.
43525         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43526
43527 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
43528             Bruno Haible  <bruno@clisp.org>
43529
43530         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
43531         also works after #include directives.
43532
43533 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
43534
43535         getdate.y: reject an out-of-range timezone value
43536         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
43537         the range [-24...+24].  When specified with only one or two digits,
43538         * tests/test-getdate.c: Tests for the fix.
43539         * doc/getdate.texi: Document this change.
43540
43541 2008-09-03  Bruno Haible  <bruno@clisp.org>
43542
43543         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
43544
43545 2008-09-02  Simon Josefsson  <simon@josefsson.org>
43546
43547         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
43548         <bruce.korb@gmail.com> with ideas from Ben Pfaff
43549         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
43550         Blake <ebb9@byu.net>.
43551
43552         * tests/test-bitrotate.c: Add more test vectors.
43553
43554 2008-09-02  Eric Blake  <ebb9@byu.net>
43555
43556         vasnprintf-posix: handle large precision via %.*d
43557         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
43558         when handling it ourselves.
43559         * tests/test-vasnprintf-posix.c (test_function): Add test.
43560         * tests/test-snprintf-posix.h (test_function): Likewise.
43561         * tests/test-sprintf-posix.h (test_function): Likewise.
43562         * tests/test-vasprintf-posix.c (test_function): Likewise.
43563         Reported by Alain Guibert.
43564
43565 2008-09-01  Eric Blake  <ebb9@byu.net>
43566
43567         c-stack: make configure-time check more robust
43568         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
43569         successful sigaction call.
43570         Reported by Tom G. Christensen.
43571
43572 2008-09-01  Bruno Haible  <bruno@clisp.org>
43573
43574         New module 'findprog-lgpl'.
43575         * modules/findprog-lgpl: New file.
43576         * lib/findprog-lgpl.c: New file.
43577         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
43578         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
43579         to decide whether to use strdup or xstrdup, concatenated_filename or
43580         xconcatenated_filename.
43581
43582 2008-09-01  Bruno Haible  <bruno@clisp.org>
43583
43584         Split module 'concat-filename' into 'concat-filename' (LGPL) and
43585         'xconcat-filename' (GPL).
43586         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
43587         (License): Change to LGPLv2+.
43588         * modules/xconcat-filename: New file.
43589         * lib/concat-filename.h (concatenated_filename): Change specification.
43590         (xconcatenated_filename): New declaration.
43591         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
43592         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
43593         memory situations.
43594         * lib/xconcat-filename.c: New file.
43595         * NEWS: Mention the change.
43596         * lib/findprog.c: Include concat-filename.h, not filename.h.
43597         (find_in_path): Use xconcatenated_filename instead of
43598         concatenated_filename.
43599         * lib/javacomp.c: Include concat-filename.h, not filename.h.
43600         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
43601         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
43602         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
43603         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
43604         instead of concatenated_filename.
43605         * lib/javaexec.c: Include concat-filename.h, not filename.h.
43606         (execute_java_class): Use xconcatenated_filename instead of
43607         concatenated_filename.
43608         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
43609         * modules/javacomp (Depends-on): Likewise.
43610         * modules/javaexec (Depends-on): Likewise.
43611
43612 2008-09-01  Bruno Haible  <bruno@clisp.org>
43613
43614         Split module 'filename' into 'filename' and 'concat-filename'.
43615         * modules/filename: Keep only lib/filename.h.
43616         (License): Change to LGPLv2+.
43617         * modules/concat-filename: New file, extracted from modules/filename.
43618         * lib/filename.h (concatenated_filename): Remove declaration.
43619         * lib/concat-filename.h: New file, extracted from lib/filename.h.
43620         * lib/concat-filename.c: Include concat-filename.h.
43621         * NEWS: Mention the change.
43622
43623 2008-09-01  Simon Josefsson  <simon@josefsson.org>
43624
43625         * lib/bitrotate.h (rotl8, rotr8): Add.
43626
43627         * modules/bitrotate (configure.ac): Need
43628         AC_REQUIRE([AC_C_INLINE]).
43629         (Description): Mention stdint.h.  Reported by Bruno Haible
43630         <bruno@clisp.org>.
43631
43632         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
43633         Paolo Bonzini <bonzini@gnu.org>.
43634
43635 2008-08-31  Bruno Haible  <bruno@clisp.org>
43636
43637         Assume Solaris specific bi-arch conventions on Solaris systems.
43638         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
43639         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
43640         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
43641         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
43642         like acl_libdirstem.
43643         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
43644         acl_libdirstem.
43645         * NEWS: Mention the change.
43646         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
43647
43648 2008-08-31  Jim Meyering  <meyering@redhat.com>
43649
43650         * lib/strftime.h: Add comments describing the two added arguments.
43651
43652         remove duplicate #include directives
43653         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
43654         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
43655
43656 2008-08-31  Bruno Haible  <bruno@clisp.org>
43657
43658         New module 'sigpipe-die'.
43659         * modules/sigpipe-die: New file.
43660         * lib/sigpipe-die.h: New file.
43661         * lib/sigpipe-die.c: New file.
43662         * MODULES.html.sh (Signal handling): Add sigpipe-die.
43663
43664 2008-08-31  Bruno Haible  <bruno@clisp.org>
43665
43666         Don't override previously installed signal handlers.
43667         * lib/fatal-signal.c (saved_sigactions): New variable.
43668         (uninstall_handlers): Reset the signal to the saved handler, not
43669         to SIG_DFL (except when ignored).
43670         (install_handlers): Save the previous handlers.
43671
43672 2008-08-30  Bruno Haible  <bruno@clisp.org>
43673
43674         * gnulib-tool (func_reset_sigpipe): New function.
43675         (func_get_automake_snippet, func_modules_transitive_closure,
43676         func_import): Invoke it before a join command that reads from stdin,
43677         to avoid "echo: write error: Broken pipe" error messages on stderr.
43678         Reported by Sam Steingold <sds@gnu.org>.
43679
43680 2008-08-30  Bruno Haible  <bruno@clisp.org>
43681
43682         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
43683         Code copied from m4/open.m4.
43684         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
43685         access and the filename ends in a slash. Code copied from lib/open.c.
43686         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
43687         * tests/test-fopen.c (main): Check against bug with trailing slash.
43688
43689 2008-08-29  Bruno Haible  <bruno@clisp.org>
43690
43691         Avoid some "gcc -pedantic" warnings.
43692         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
43693         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
43694         * lib/dirent.in.h: Likewise.
43695         * lib/fcntl.in.h: Likewise.
43696         * lib/float.in.h: Likewise.
43697         * lib/iconv.in.h: Likewise.
43698         * lib/inttypes.in.h: Likewise.
43699         * lib/locale.in.h: Likewise.
43700         * lib/math.in.h: Likewise.
43701         * lib/netinet_in.in.h: Likewise.
43702         * lib/search.in.h: Likewise.
43703         * lib/signal.in.h: Likewise.
43704         * lib/stdarg.in.h: Likewise.
43705         * lib/stdint.in.h: Likewise.
43706         * lib/stdio.in.h: Likewise.
43707         * lib/stdlib.in.h: Likewise.
43708         * lib/string.in.h: Likewise.
43709         * lib/strings.in.h: Likewise.
43710         * lib/sys_select.in.h: Likewise.
43711         * lib/sys_socket.in.h: Likewise.
43712         * lib/sys_stat.in.h: Likewise.
43713         * lib/sys_time.in.h: Likewise.
43714         * lib/sysexits.in.h: Likewise.
43715         * lib/time.in.h: Likewise.
43716         * lib/unistd.in.h: Likewise.
43717         * lib/wchar.in.h: Likewise.
43718         * lib/wctype.in.h: Likewise.
43719         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
43720         * modules/fchdir (Makefile.am): Likewise.
43721         * modules/fcntl (Makefile.am): Likewise.
43722         * modules/float (Makefile.am): Likewise.
43723         * modules/iconv_open (Makefile.am): Likewise.
43724         * modules/inttypes (Makefile.am): Likewise.
43725         * modules/locale (Makefile.am): Likewise.
43726         * modules/math (Makefile.am): Likewise.
43727         * modules/netinet_in (Makefile.am): Likewise.
43728         * modules/search (Makefile.am): Likewise.
43729         * modules/signal (Makefile.am): Likewise.
43730         * modules/stdarg (Makefile.am): Likewise.
43731         * modules/stdint (Makefile.am): Likewise.
43732         * modules/stdio (Makefile.am): Likewise.
43733         * modules/stdlib (Makefile.am): Likewise.
43734         * modules/string (Makefile.am): Likewise.
43735         * modules/strings (Makefile.am): Likewise.
43736         * modules/sys_select (Makefile.am): Likewise.
43737         * modules/sys_socket (Makefile.am): Likewise.
43738         * modules/sys_stat (Makefile.am): Likewise.
43739         * modules/sys_time (Makefile.am): Likewise.
43740         * modules/sysexits (Makefile.am): Likewise.
43741         * modules/time (Makefile.am): Likewise.
43742         * modules/unistd (Makefile.am): Likewise.
43743         * modules/wchar (Makefile.am): Likewise.
43744         * modules/wctype (Makefile.am): Likewise.
43745         Reported by Reuben Thomas <rrt@sc3d.org>.
43746
43747 2008-08-29  Bruno Haible  <bruno@clisp.org>
43748
43749         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
43750         any more.
43751
43752 2008-08-29  Simon Josefsson  <simon@josefsson.org>
43753
43754         * MODULES.html.sh (Misc): Add bitrotate.
43755
43756         * modules/bitrotate: New file.
43757
43758         * lib/bitrotate.h: New file.
43759
43760         * modules/bitrotate-tests: New file.
43761
43762         * tests/test-bitrotate.c: New file.
43763
43764         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
43765         on the bitrotate module.
43766
43767         * lib/arctwo.c: Use new bitrotate module.
43768
43769 2008-08-29  Jim Meyering  <meyering@redhat.com>
43770
43771         bootstrap: merge changes from coreutils
43772         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
43773         of copied files.  Remove a kludge, now that this is fixed.
43774         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
43775         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
43776         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
43777
43778 2008-08-29  Bruno Haible  <bruno@clisp.org>
43779
43780         * MODULES.html.sh: Remove --cvs-urls option.
43781
43782 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
43783
43784         maint.mk: adjust to file name change
43785         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
43786
43787 2008-08-28  Jim Meyering  <meyering@redhat.com>
43788
43789         * modules/getndelim2 (License): Relicense to LGPLv2+.
43790         Approved by Richard Stallman for the version of 1995, and by
43791         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
43792
43793 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
43794
43795         * lib/getdelim.c (flockfile, funlockfile): Make all of them
43796         dummy if one is not available.  Do not touch them if
43797         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
43798         (getc_maybe_unlocked): New.
43799         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
43800
43801 2008-08-26  Eric Blake  <ebb9@byu.net>
43802
43803         doc/INSTALL: resync from autoconf
43804         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
43805         (INSTALL_PRELUDE): Delete; this is done more efficiently by
43806         moving...
43807         * install.texi [!autoconf]: ...here.  Resync from autoconf.
43808         * INSTALL: Regenerate.
43809         * INSTALL.ISO: New file.
43810         * INSTALL.UTF-8: Likewise.
43811
43812 2008-08-26  Jim Meyering  <meyering@redhat.com>
43813
43814         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
43815         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
43816         these definitions conditional, so that they may be overridden, too.
43817
43818 2008-08-26  Bruno Haible  <bruno@clisp.org>
43819
43820         Generate INSTALL file variants with prettier quotes.
43821         * doc/Makefile (INSTALL_PRELUDE): New macro.
43822         (INSTALL): Use it.
43823         (INSTALL.ISO, INSTALL.UTF-8): New rules.
43824
43825 2008-08-26  Bruno Haible  <bruno@clisp.org>
43826
43827         Run makeinfo in an English locale.
43828         * doc/Makefile (MAKEINFO): New variable.
43829
43830 2008-08-26  Bruno Haible  <bruno@clisp.org>
43831
43832         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
43833         Suggested by Eric Blake.
43834
43835 2008-08-25  Bruno Haible  <bruno@clisp.org>
43836
43837         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
43838
43839 2008-08-25  Eric Blake  <ebb9@byu.net>
43840
43841         c-stack: test that stack overflow can be caught
43842         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
43843         that platform allows handling stack overflow; at least OS/2 EMX
43844         has sigaltstack, but crashes before transferring control to
43845         handler on stack overflow.
43846         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
43847         check for HAVE_STACK_OVERFLOW_HANDLING.
43848         Reported by Elbert Pol.
43849
43850 2008-08-25  Bruno Haible  <bruno@clisp.org>
43851
43852         * doc/posix-functions/strftime.texi: Fix description of strftime
43853         module.
43854
43855 2008-08-24  Bruno Haible  <bruno@clisp.org>
43856
43857         * tests/uniwidth/test-uc_width2.c: New file.
43858         * tests/uniwidth/test-uc_width2.sh: New file.
43859         * modules/uniwidth/width-tests (Files): Add the new files.
43860         (TESTS): Add uniwidth/test-uc_width2.sh.
43861         (TESTS_ENVIRONMENT): New variable.
43862         (check_PROGRAMS): Add test-uc_width2.
43863         (test_uc_width2_SOURCES): New variable.
43864
43865         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
43866         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
43867         not 0x00AB.
43868         Reported by Alexander V. Lukyanov <lav@netis.ru>.
43869
43870 2008-08-22  Eric Blake  <ebb9@byu.net>
43871
43872         test-lock, test-tls: mention why a test is skipped
43873         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
43874         skipped.
43875         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
43876
43877         count-one-bits: relax license
43878         * modules/count-one-bits (License): Relicense to LGPLv2+.
43879         Suggested by Ludovic Courtès, approved by Ben Pfaff.
43880
43881 2008-08-22  Andreas Schwab  <schwab@suse.de>
43882
43883         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
43884         Remove spurious space in assignment.
43885
43886 2008-08-21  Simon Josefsson  <simon@josefsson.org>
43887
43888         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
43889         Paul Eggert <eggert@CS.UCLA.EDU>.
43890
43891 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
43892
43893         * modules/gettext: Add m4/threadlib.m4.
43894
43895 2008-08-19  Eric Blake  <ebb9@byu.net>
43896
43897         test-c-stack: fix compilation failure on FreeBSD 5.0
43898         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
43899         headers before <sys/resource.h>.
43900         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
43901         the bug.
43902         Reported by Nelson H. F. Beebe.
43903
43904         strverscmp: migrate from "strverscmp.h" to <string.h>
43905         * modules/string (Makefile.am): Add new hooks.
43906         * modules/strverscmp (Files): Remove strverscmp.h.
43907         (Depends-on): Add string.
43908         (configure.ac): Add indicator.
43909         (Include): Mention new header.
43910         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
43911         defaults.
43912         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
43913         results.
43914         * lib/strverscmp.h: Delete.
43915         * lib/string.in.h (strverscmp): Provide declaration, when needed.
43916         * tests/test-strverscmp.c (includes): Adjust client.
43917         * lib/check-version.c (includes): Likewise.
43918         * NEWS: Document the change.
43919
43920         strverscmp: add unit test
43921         * modules/strverscmp-tests: New file.
43922         * tests/test-strverscmp.c: Likewise.
43923
43924 2008-08-19  Simon Josefsson  <simon@josefsson.org>
43925
43926         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
43927         regarding Windows crypto stuff, from Mono.
43928
43929 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
43930
43931         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
43932         if present, for intel RND.  Return error on failures.
43933
43934 2008-08-18  Ben Pfaff  <blp@gnu.org>
43935
43936         gitlog-to-changelog: give better diagnostic for failed pipe-open
43937         * build-aux/gitlog-to-changelog: Improve error message: suggest
43938         that the version of Git may be too old.
43939
43940 2008-08-18  Simon Josefsson  <simon@josefsson.org>
43941
43942         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
43943         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
43944
43945 2008-08-18  Bruno Haible  <bruno@clisp.org>
43946
43947         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
43948         pthread_in_use().
43949
43950 2008-08-18  Bruno Haible  <bruno@clisp.org>
43951
43952         * lib/glthread/threadlib.c: Include <pthread.h>.
43953
43954 2008-08-18  Bruno Haible  <bruno@clisp.org>
43955
43956         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
43957         glthread_recursive_lock_* macros.
43958         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
43959         Fix syntax error.
43960
43961 2008-08-18  Bruno Haible  <bruno@clisp.org>
43962
43963         * lib/glthread/thread.c: Avoid forcing a context switch right after
43964         thread creation.
43965
43966 2008-08-17  Bruno Haible  <bruno@clisp.org>
43967
43968         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
43969         * lib/glthread/thread.h: Provide Win32 specific implementation.
43970         * modules/thread (Files): Add lib/glthread/thread.c.
43971         (Depends-on): Add lock.
43972         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
43973
43974 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43975
43976         New module 'yield'.
43977         * modules/yield: New file.
43978         * lib/glthread/yield.h: New file.
43979         * m4/yield.m4: New file.
43980         * MODULES.html.sh (Multithreading): Add yield.
43981
43982 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43983
43984         New module 'thread'.
43985         * modules/thread: New file.
43986         * lib/glthread/thread.h: New file.
43987         * m4/thread.m4: New file.
43988         * MODULES.html.sh (Multithreading): Add thread.
43989
43990 2008-08-17  Bruno Haible  <bruno@clisp.org>
43991
43992         * lib/glthread/lock.h: Include <stdlib.h> always.
43993         * lib/glthread/tls.h: Likewise.
43994         * lib/glthread/cond.h: Likewise.
43995
43996 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43997
43998         New module 'cond'.
43999         * modules/cond: New file.
44000         * lib/glthread/cond.h: New file.
44001         * lib/glthread/cond.c: New file.
44002         * m4/cond.m4: New file.
44003         * MODULES.html.sh (Multithreading): Add cond.
44004
44005 2008-08-16  Eric Blake  <ebb9@byu.net>
44006
44007         c-stack: fix regression on Irix 5.3 from 2008-06-21
44008         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
44009         sa_sigaction...
44010         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
44011         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
44012         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
44013         * modules/signal (Makefile.am): Use the value.
44014         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
44015         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
44016         * doc/posix-headers/signal.texi (signal.h): Document this
44017         portability issue.
44018         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
44019         Reported by Tom G. Christensen.
44020
44021 2008-08-17  Bruno Haible  <bruno@clisp.org>
44022
44023         New module 'threadlib'.
44024         * modules/threadlib: New file.
44025         * lib/glthread/threadlib.c: New file, extracted from
44026         lib/glthread/lock.c.
44027         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
44028         functions.
44029         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
44030         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
44031         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
44032         macros.
44033         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
44034         (gl_DISABLE_THREADS): Remove macro.
44035         * modules/lock (Files): Remove build-aux/config.rpath.
44036         (Depends-on): Remove havelib. Add threadlib.
44037         (configure.ac-early): Remove section.
44038         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
44039         * modules/tls (Depends-on): Remove lock. Add threadlib.
44040         (Link): New section, copied from threadlib.
44041         * MODULES.html.sh (Multithreading): Add threadlib.
44042
44043 2008-08-14  Bruno Haible  <bruno@clisp.org>
44044
44045         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
44046         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
44047         glthread_rwlock_unlock, glthread_rwlock_destroy,
44048         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
44049         glthread_recursive_lock_destroy): Define as macros always.
44050         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
44051         glthread_lock_lock.
44052         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
44053         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
44054         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
44055         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
44056         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
44057         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
44058         (glthread_recursive_lock_lock_func): Renamed from
44059         glthread_recursive_lock_lock.
44060         (glthread_recursive_lock_unlock_func): Renamed from
44061         glthread_recursive_lock_unlock.
44062         (glthread_recursive_lock_destroy_func): Renamed from
44063         glthread_recursive_lock_destroy.
44064
44065 2008-08-14  Bruno Haible  <bruno@clisp.org>
44066
44067         * lib/glthread/lock.h: Renamed from lib/lock.h.
44068         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
44069         * lib/glthread/tls.h: Renamed from lib/tls.h.
44070         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
44071         * lib/fstrcmp.c: Update includes.
44072         * lib/strsignal.c: Update includes.
44073         * modules/lock (Files, Makefile.am): Update.
44074         (Include): Change to "glthread/lock.h".
44075         * modules/tls (Files, Makefile.am): Update.
44076         (Include): Change to "glthread/tls.h".
44077         * tests/test-lock.c: Update includes.
44078         * tests/test-tls.c: Update includes.
44079         * NEWS: Mention the renamed header files.
44080
44081 2008-08-11  Jim Meyering  <meyering@redhat.com>
44082
44083         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
44084
44085 2008-08-11  Eric Blake  <ebb9@byu.net>
44086
44087         test-c-stack: avoid C99-ism
44088         * tests/test-c-stack.c (main): Fix whitespace, move declaration
44089         before statement.
44090         Reported by Alain Guibert.
44091
44092 2008-08-10  Jim Meyering  <meyering@redhat.com>
44093
44094         ensure that return value of uinttostr et al are not ignored
44095         * lib/inttostr.h (__GNUC_PREREQ): Define.
44096         (__attribute_warn_unused_result__): Define.
44097         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
44098
44099 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
44100
44101         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
44102         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
44103
44104 2008-08-07  Jim Meyering  <meyering@redhat.com>
44105
44106         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
44107
44108         * modules/mkstemp (License): Relicense under LGPLv2+.
44109         * modules/tempname (License): Likewise.
44110
44111 2008-08-06  Bruno Haible  <bruno@clisp.org>
44112
44113         * lib/poll.c (poll): Further micro-optimization.
44114
44115 2008-08-06  Jim Meyering  <meyering@redhat.com>
44116
44117         inet_pton.c: use locale-independent tolower
44118         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
44119         (inet_pton6): Use c_tolower rather than tolower.
44120         * modules/inet_pton (Depends-on): Add c-ctype.
44121
44122 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
44123
44124         * lib/poll.c (poll): Avoid division when timeout is 0, cache
44125         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
44126
44127 2008-08-06  Jim Meyering  <meyering@redhat.com>
44128
44129         * modules/inet_pton (License): Relicense under LGPLv2+.
44130
44131 2008-08-03  Bruno Haible  <bruno@clisp.org>
44132
44133         Additional non-aborting API for lock and tls.
44134         * lib/lock.h: Include <errno.h>.
44135         (glthread_lock_init): New macro/function.
44136         (gl_lock_init): Define as wrapper around glthread_lock_init.
44137         (glthread_lock_lock): New macro/function.
44138         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
44139         (glthread_lock_unlock): New macro/function.
44140         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
44141         (glthread_lock_destroy): New macro/function.
44142         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
44143         (glthread_rwlock_init): New macro/function.
44144         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
44145         (glthread_rwlock_rdlock): New macro/function.
44146         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
44147         (glthread_rwlock_wrlock): New macro/function.
44148         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
44149         (glthread_rwlock_unlock): New macro/function.
44150         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
44151         (glthread_rwlock_destroy): New macro/function.
44152         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
44153         (glthread_recursive_lock_init): New macro/function.
44154         (gl_recursive_lock_init): Define as wrapper around
44155         glthread_recursive_lock_init.
44156         (glthread_recursive_lock_lock): New macro/function.
44157         (gl_recursive_lock_lock): Define as wrapper around
44158         glthread_recursive_lock_lock.
44159         (glthread_recursive_lock_unlock): New macro/function.
44160         (gl_recursive_lock_unlock): Define as wrapper around
44161         glthread_recursive_lock_unlock.
44162         (glthread_recursive_lock_destroy): New macro/function.
44163         (gl_recursive_lock_destroy): Define as wrapper around
44164         glthread_recursive_lock_destroy.
44165         (glthread_once): New macro/function.
44166         (gl_once): Define as wrapper around glthread_once.
44167         Update function declarations.
44168         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
44169         glthread_rwlock_init. Return error code.
44170         (glthread_rwlock_rdlock_multithreaded): Renamed from
44171         glthread_rwlock_rdlock. Return error code.
44172         (glthread_rwlock_wrlock_multithreaded): Renamed from
44173         glthread_rwlock_wrlock. Return error code.
44174         (glthread_rwlock_unlock_multithreaded): Renamed from
44175         glthread_rwlock_unlock. Return error code.
44176         (glthread_rwlock_destroy_multithreaded): Renamed from
44177         glthread_rwlock_destroy. Return error code.
44178         (glthread_recursive_lock_init_multithreaded): Renamed from
44179         glthread_recursive_lock_init. Return error code.
44180         (glthread_recursive_lock_lock_multithreaded): Renamed from
44181         glthread_recursive_lock_lock. Return error code.
44182         (glthread_recursive_lock_unlock_multithreaded): Renamed from
44183         glthread_recursive_lock_unlock. Return error code.
44184         (glthread_recursive_lock_destroy_multithreaded): Renamed from
44185         glthread_recursive_lock_destroy. Return error code.
44186         (glthread_once_call): Make static.
44187         (glthread_once_multithreaded): Renamed from glthread_once.
44188         * lib/tls.h: Include <errno.h>.
44189         (glthread_tls_key_init): New macro/function.
44190         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
44191         (glthread_tls_set): New macro/function.
44192         (gl_tls_set): Define as wrapper around glthread_tls_set.
44193         (glthread_tls_key_destroy): New macro/function.
44194         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
44195         Update function declarations.
44196         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
44197         glthread_tls_get.
44198         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
44199
44200 2008-08-04  Eric Blake  <ebb9@byu.net>
44201
44202         gnumakefile: use space, not TAB, outside of targets
44203         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
44204
44205 2008-08-02  Jim Meyering  <meyering@redhat.com>
44206
44207         getdate.y: avoid locale-dependent date parsing failure
44208         In Turkish locales, getdate would fail to recognize keywords
44209         containing a lowercase "i".  The solution is not to rely on
44210         locale-sensitive case-conversion.
44211         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
44212         (lookup_word): Use c_toupper in place of toupper.
44213         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
44214         Reported by Vefa Bicakci <bicave@superonline.com> in
44215         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
44216         * modules/getdate (Depends-on): Add c-ctype.
44217
44218 2008-08-02  Bruno Haible  <bruno@clisp.org>
44219
44220         * gnulib-tool (func_import): When updating or creating a .gitignore
44221         file, prepend each added line with a slash, and ignore leading slashes
44222         from the existing lines.
44223         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
44224
44225 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44226
44227         Portability fix for GNU make 3.79.1.
44228         * top/GNUmakefile: Avoid 'else COND', which older GNU make
44229         versions do not understand.
44230
44231 2008-08-01  Bruno Haible  <bruno@clisp.org>
44232
44233         Work around bug of HP-UX 10.20 cc with -0.0 literal.
44234         * tests/test-isnanf.h (zero): New variable.
44235         (main): Avoid literal -0.0f.
44236         * tests/test-isnand.h (zero): New variable.
44237         (main): Avoid literal -0.0.
44238         * tests/test-isnanl.h (zero): New variable.
44239         (main): Avoid literal -0.0L.
44240         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
44241         (test_float, test_double, test_long_double): Avoid literals -0.0f,
44242         -0.0, -0.0L.
44243         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
44244         (test_signbitd): Avoid literal -0.0.
44245         (test_signbitl): Avoid literal -0.0L.
44246         * tests/test-ceilf1.c (zero): New variable.
44247         (main): Avoid literal -0.0f.
44248         * tests/test-ceill.c (zero): New variable.
44249         (main): Avoid literal -0.0L.
44250         * tests/test-floorf1.c (zero): New variable.
44251         (main): Avoid literal -0.0f.
44252         * tests/test-floorl.c (zero): New variable.
44253         (main): Avoid literal -0.0L.
44254         * tests/test-roundf1.c (zero): New variable.
44255         (main): Avoid literal -0.0f.
44256         * tests/test-round1.c (zero): New variable.
44257         (main): Avoid literal -0.0.
44258         * tests/test-roundl.c (zero): New variable.
44259         (main): Avoid literal -0.0L.
44260         * tests/test-truncf1.c (zero): New variable.
44261         (main): Avoid literal -0.0f.
44262         * tests/test-trunc1.c (zero): New variable.
44263         (main): Avoid literal -0.0.
44264         * tests/test-truncl.c (zero): New variable.
44265         (main): Avoid literal -0.0L.
44266         * tests/test-frexp.c (zero): New variable.
44267         (main): Avoid literal -0.0.
44268         * tests/test-frexpl.c (zero): New variable.
44269         (main): Avoid literal -0.0L.
44270         * tests/test-ldexpl.c (zero): New variable.
44271         (main): Avoid literal -0.0L.
44272         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
44273         (zerod, zerol): New variables.
44274         (test_function): Avoid literals -0.0, -0.0L.
44275         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
44276         (zerod, zerol): New variables.
44277         (test_function): Avoid literals -0.0, -0.0L.
44278         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
44279         (zerod, zerol): New variables.
44280         (test_function): Avoid literals -0.0, -0.0L.
44281         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
44282         (zerod, zerol): New variables.
44283         (test_function): Avoid literals -0.0, -0.0L.
44284         * tests/test-strtod.c (zero): New variable.
44285         (main): Avoid literal -0.0.
44286         Reported by Jonathan C. Patschke <jp@centtech.com>.
44287
44288 2008-07-31  Jim Meyering  <meyering@redhat.com>
44289
44290         sha256.h: correct definition of SHA224_DIGEST_SIZE
44291         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
44292         Reported by Paulie Pena IV <paulie4@gmail.com>.
44293         Define as 224 / 8, rather than as a literal.
44294         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
44295         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
44296         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
44297
44298 2008-07-31  Bruno Haible  <bruno@clisp.org>
44299
44300         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
44301         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
44302         Reported by Jonathan Patschke <jp@centtech.com>.
44303
44304 2008-07-31  Bruno Haible  <bruno@clisp.org>
44305
44306         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
44307         Reported by Paolo Bonzini <bonzini@gnu.org>.
44308
44309 2008-07-30  Eric Blake  <ebb9@byu.net>
44310
44311         test-strtod: allow compilation without -lm
44312         * tests/test-strtod.c (main): Avoid link dependence on fabs.
44313         Reported by Dennis Clarke <blastwave@gmail.com>.
44314
44315 2008-07-28  Jim Meyering  <meyering@redhat.com>
44316
44317         bootstrap: work also when there are no .po files in po/
44318         * build-aux/bootstrap (update_po_files): Complete the change
44319         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
44320
44321 2008-07-27  Jim Meyering  <meyering@redhat.com>
44322
44323         * users.txt: Add zile.
44324
44325 2008-07-26  Ben Pfaff  <blp@gnu.org>
44326
44327         Add missing dependencies on new m4/exponent[fdl].m4 files.
44328         * modules/isnanf-nolibm: Add m4/exponentf.m4.
44329         * modules/isnand-nolibm: Add m4/exponentd.m4.
44330         * modules/isnanl-nolibm: Add m4/exponentl.m4.
44331         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
44332         m4/isnan[fdl].m4, because the macros actually used moved.
44333         Reported by Jim Meyering.
44334
44335 2008-07-14  Ben Pfaff  <blp@gnu.org>
44336
44337         Add isinf module.
44338         * lib/isinf.c: New file.
44339         * lib/math.in.h: Define isinf macro if we have decided to replace
44340         it.
44341         * m4/isinf.m4: New file.
44342         * m4/math_h.m4: Initialize and substitute variables for isinf
44343         module.
44344         * modules/isinf: New file.
44345         * modules/isinf-tests: New file.
44346         * modules/math: Add substitutions for new module.
44347         * tests/test-isinf.c: New file.
44348         * doc/posix-functions/isinf.texi: Mention new module.
44349         * MODULES.html.sh: Mention new module.
44350
44351 2008-07-14  Ben Pfaff  <blp@gnu.org>
44352
44353         Factor out some macros for use by additional modules.
44354         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
44355         exponentf.m4.
44356         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
44357         exponentd.m4.
44358         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
44359         file exponentl.m4.
44360         * m4/exponentf.m4: New file.
44361         * m4/exponentd.m4: New file.
44362         * m4/exponentl.m4: New file.
44363         * modules/isnanf: Use new file m4/exponentf.m4.
44364         * modules/isnand: Use new file m4/exponentd.m4.
44365         * modules/isnanl: Use new file m4/exponentl.m4.
44366
44367 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
44368
44369         mktime.c: normalize tp->tm_isdst value to -1/0/1.
44370         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
44371         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
44372         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
44373
44374         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
44375         readlink on platforms without PATH_MAX.
44376
44377 2008-07-21  Eric Blake  <ebb9@byu.net>
44378
44379         Warn, not fail, on stale version.
44380         * top/GNUmakefile (_curr-ver): Tone down previous patch.
44381
44382         Don't allow installation with stale devel version number.
44383         * top/GNUmakefile (_is-install-target): New macro.
44384         (_curr-ver): Forbid installation with stale version number.
44385
44386 2008-07-20  Bruno Haible  <bruno@clisp.org>
44387
44388         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
44389         TESTS_ENVIRONMENT.
44390         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
44391
44392 2008-07-20  Bruno Haible  <bruno@clisp.org>
44393
44394         * lib/c-stack.h (c_stack_action): Add documentation.
44395         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
44396
44397 2008-07-20  Bruno Haible  <bruno@clisp.org>
44398
44399         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
44400         * modules/readlink (License): Likewise.
44401
44402 2008-07-17  Eric Blake  <ebb9@byu.net>
44403
44404         * modules/c-stack (Link): Fix typo.
44405
44406         Make c-stack use libsigsegv, when available.
44407         * modules/c-stack (Depends-on): Add libsigsegv.
44408         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
44409         needed.
44410         * lib/c-stack.c (SIGSTKSZ): Define fallback.
44411         (segv_handler, overflow_handler, c_stack_action)
44412         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
44413         implementation when libsigsegv is available, but only when using
44414         the library is necessary.
44415         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
44416         comment, explaining why XSI check fails on Linux.
44417         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
44418         * tests/test-c-stack2.sh: Tweak skip message.
44419         * NEWS: Document new link-time requirements.
44420
44421 2008-07-16  Eric Blake  <ebb9@byu.net>
44422
44423         c-stack: Expose false positives when not using libsigsegv.
44424         * modules/c-stack-tests (Files): Expand test.
44425         * tests/test-c-stack.c (main): Add means to conditionally trigger
44426         non-overflow SIGSEGV.
44427         * tests/test-c-stack2.sh: New file.
44428
44429 2008-07-14  Bruno Haible  <bruno@clisp.org>
44430
44431         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
44432         Reported by Eric Blake.
44433
44434 2008-07-14  Sam Steingold  <sds@gnu.org>
44435             Bruno Haible  <bruno@clisp.org>
44436
44437         New module libsigsegv.
44438         * modules/libsigsegv: New file.
44439         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
44440         modifications.
44441         * MODULES.html.sh (Signal handling): New section.
44442
44443 2008-07-14  Bruno Haible  <bruno@clisp.org>
44444
44445         * modules/unictype/ctype-* (Description): Add the word "function".
44446         Improves the resulting doc in MODULES.html.
44447
44448 2008-07-12  Ben Pfaff  <blp@gnu.org>
44449
44450         Add longlong module.
44451         * modules/longlong: New file.
44452
44453 2008-07-12  Bruno Haible  <bruno@clisp.org>
44454
44455         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
44456         to empty.
44457
44458 2008-07-10  Ben Pfaff  <blp@gnu.org>
44459
44460         Add isnan module.
44461         * doc/posix-functions/isnan.texi: Mention new module.
44462         * lib/math.in.h: Define isnan macro if we have decided to replace
44463         it.
44464         * m4/isnan.m4: New file.
44465         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
44466         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
44467         also.
44468         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
44469         redundancy.
44470         * m4/math_h.m4: Initialize and substitute variables for isnan
44471         module.
44472         * modules/isnan: New file.
44473         * modules/isnan-tests: New file.
44474         * modules/math: Add substitutions for new module.
44475         * tests/test-isnan.c: New file.
44476         * MODULES.html.sh: Mention new module.
44477
44478 2008-07-10  Ben Pfaff  <blp@gnu.org>
44479
44480         Add isnanf module.
44481         * lib/isnanf.m4: New file.
44482         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
44483         (gl_HAVE_ISNANF_IN_LIBM): New macro.
44484         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
44485         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
44486         * modules/isnanf: New file.
44487         * modules/isnanf-tests: New file.
44488         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
44489         files.
44490         * tests/test-isnanf-nolibm.c: factored most of its contents into
44491         new file tests/test-isnanf.h.
44492         * tests/test-isnanf.h: New file.
44493         * tests/test-isnanf.c: New file.
44494         * MODULES.html.sh: Mention new module.
44495         * doc/glibc-functions/isnanf.texi: Mention new module.
44496
44497 2008-07-10  Ben Pfaff  <blp@gnu.org>
44498
44499         Add isnand module.
44500         * lib/isnand.h: New file.
44501         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
44502         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
44503         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
44504         functionality also.
44505         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
44506         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
44507         (gl_HAVE_ISNAND_IN_LIBM): New macro.
44508         * modules/isnand: New file.
44509         * modules/isnand-tests: New file.
44510         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
44511         files.
44512         * tests/test-isnand-nolibm.c: factored most of its contents into
44513         new file tests/test-isnand.h.
44514         * tests/test-isnand.h: New file.
44515         * tests/test-isnand.c: New file.
44516         * MODULES.html.sh: Mention new module.
44517
44518 2008-07-10  Ben Pfaff  <blp@gnu.org>
44519
44520         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
44521         * lib/isnand.h: Rename lib/isnand-nolibm.h.
44522         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
44523         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
44524         * modules/isnanf-nolibm: Update references to renamed files.
44525         * modules/isnand-nolibm: Likewise.
44526         * modules/isnanf-nolibm-tests: Likewise.
44527         * modules/isnand-nolibm-tests: Likewise.
44528         * lib/frexp.c: Likewise.
44529         * lib/isfinite.c: Likewise.
44530         * lib/signbitd.c: Likewise.
44531         * lib/signbitf.c: Likewise.
44532         * lib/vasnprintf.c: Likewise.
44533         * tests/test-ceilf1.c: Likewise.
44534         * tests/test-ceilf2.c: Likewise.
44535         * tests/test-floorf1.c: Likewise.
44536         * tests/test-floorf2.c: Likewise.
44537         * tests/test-frexp.c: Likewise.
44538         * tests/test-round1.c: Likewise.
44539         * tests/test-round2.c: Likewise.
44540         * tests/test-roundf1.c: Likewise.
44541         * tests/test-strtod.c: Likewise.
44542         * tests/test-trunc1.c: Likewise.
44543         * tests/test-trunc2.c: Likewise.
44544         * tests/test-truncf1.c: Likewise.
44545         * tests/test-truncf2.c: Likewise.
44546         * NEWS: Mention the renamed header files.
44547
44548 2008-07-11  Jim Meyering  <meyering@redhat.com>
44549
44550         vc-list-files: make the last-resort awk code more portable
44551         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
44552         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
44553         does not support it.
44554
44555 2008-07-10  Eric Blake  <ebb9@byu.net>
44556
44557         Work with tar's bootstrap.
44558         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
44559         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
44560         an m4 comment.
44561
44562 2008-07-09  Jim Meyering  <meyering@redhat.com>
44563
44564         posix-shell.m4: fix typo that made this test malfunction
44565         * m4/posix-shell.m4: Remove capitalization in variable name.
44566
44567 2008-07-08  Bruno Haible  <bruno@clisp.org>
44568
44569         * m4/onceonly.m4: Update comments.
44570         Reported by Ben Pfaff <blp@cs.stanford.edu>.
44571
44572 2008-07-04  Jim Meyering  <meyering@redhat.com>
44573
44574         * users.txt: Add vc-dwim.
44575         (bison, coreutils): Use the gitweb URL.
44576
44577 2008-07-03  Jim Meyering  <meyering@redhat.com>
44578
44579         * users.txt: Add libffcall.  From Sam Steingold.
44580
44581 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
44582
44583         getdate.y: do not ignore TZ with relative day, month or year offset
44584         * lib/getdate.y (get_date): Move the tz-handling block to follow the
44585         relative-date-handling, since otherwise, the latter would clobber the
44586         sole output (an updated Start value) of the tz-handling block.
44587         * tests/test-getdate.c: Tests for the fix
44588
44589 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44590
44591         Recognize 'foo_LIBRARIES += libgnu.a'.
44592         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
44593         makefile snippet has already specified an installation location,
44594         also using '+='.
44595
44596 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
44597
44598         getdate.y: factor out common actions
44599         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
44600         Use them in place of open-coded actions.
44601
44602 2008-07-01  Simon Josefsson  <simon@josefsson.org>
44603
44604         Add self-test for getdate module.
44605         * modules/getdate-tests: New file.
44606         * tests/test-getdate.c: New file.
44607
44608 2008-06-29  Bruno Haible  <bruno@clisp.org>
44609
44610         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
44611         .gitignore.
44612         Reported by Sylvain Beucler <beuc@beuc.net>.
44613
44614 2008-06-29  Bruno Haible  <bruno@clisp.org>
44615
44616         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
44617         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
44618
44619 2008-06-29  Bruno Haible  <bruno@clisp.org>
44620
44621         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
44622         EXTRA_DIST.
44623         Reported by Sylvain Beucler <beuc@beuc.net>.
44624
44625 2008-06-26  Jim Meyering  <meyering@redhat.com>
44626
44627         make several modules depend on the "open" module
44628         This provides slightly increased consistency when opening-for-write
44629         the name of a non-directory spelled with a trailing slash.
44630         * modules/chdir-safer: Likewise.
44631         * modules/chown: Likewise.
44632         * modules/clean-temp: Likewise.
44633         * modules/copy-file: Likewise.
44634         * modules/fchdir: Likewise.
44635         * modules/fcntl-safer: Likewise.
44636         * modules/pipe: Likewise.
44637         * modules/utime: Likewise.
44638         Prompted by Eric Blake and Bruno Haible.
44639
44640 2008-06-24  Andreas Schwab  <schwab@suse.de>
44641
44642         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
44643         literals can be used as initializers for global variables.
44644
44645 2008-06-23  Eric Blake  <ebb9@byu.net>
44646
44647         Make gnulib-cache.m4 easier to diff.
44648         * gnulib-tool (func_import): Allow newlines when reading cached
44649         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
44650
44651 2008-06-23  Bruno Haible  <bruno@clisp.org>
44652
44653         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
44654         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
44655         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
44656         m4/signalblocking.m4.
44657         (gl_PREREQ_SIGACTION): Don't invoke it.
44658         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
44659         gl_PREREQ_SIG_HANDLER_H.
44660         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
44661         Don't check for sigaction here.
44662
44663 2008-06-23  Bruno Haible  <bruno@clisp.org>
44664
44665         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
44666         (install_handlers): Don't set the SA_RESETHAND flag.
44667
44668 2008-06-23  Bruno Haible  <bruno@clisp.org>
44669
44670         * m4/sigaction.m4: Comment fixes.
44671         * lib/signal.in.h: Likewise.
44672
44673 2008-06-23  Eric Blake  <ebb9@byu.net>
44674
44675         Fix typo.
44676         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
44677
44678         Avoid SA_ namespace.
44679         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
44680         Reported by Ralf Wildenhues.
44681
44682         Avoid test failure due to SA_RESTORER.
44683         * tests/test-sigaction.c (SA_MASK): New macro.
44684         (main): Avoid failing due to extension flags being set.
44685         Reported by Jim Meyering.
44686
44687         Revert use of sig-handler.h in sigprocmask.c.
44688         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
44689         it requires the existence of struct sigaction.
44690         * lib/sigprocmask.c (handler_t): Restore typedef.
44691         (rpl_signal, old_handlers): Use local type.
44692
44693 2008-06-22  Bruno Haible  <bruno@clisp.org>
44694
44695         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
44696         conditionally.
44697         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44698
44699 2008-06-22  Bruno Haible  <bruno@clisp.org>
44700
44701         * doc/posix-functions/siginterrupt.texi: Move note.
44702
44703         * lib/signal.in.h (SA_RESTART): New macro.
44704         * lib/sigaction.c: Update comment.
44705
44706         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
44707
44708         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
44709         (gl_PREREQ_SIGPROCMASK): Invoke it.
44710         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
44711
44712         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
44713
44714         * lib/sigprocmask.c: Update a comment.
44715
44716 2008-06-21  Eric Blake  <ebb9@byu.net>
44717
44718         Use sigaction module rather than signal().
44719         * modules/c-stack (Depends-on): Add sigaction.
44720         * modules/fatal-signal (Depends-on): Likewise.
44721         * modules/nanosleep (Depends-on): Likewise.
44722         * modules/sigprocmask (Files): Add sig-handler.h.
44723         * modules/sigaction (Files): Likewise.
44724         * lib/sig-handler.h (get_handler): New file, suggested by Paul
44725         Eggert.
44726         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
44727         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
44728         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
44729         (init_fatal_signals): Likewise.
44730         * lib/nanosleep.c (rpl_nanosleep): Likewise.
44731         (siginterrupt): Delete fallback.
44732         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
44733         instead.
44734         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
44735         siginterrupt.
44736
44737         New module sigaction, for mingw.
44738         * modules/sigaction: New module...
44739         * modules/sigaction-tests: ...and its test.
44740         * m4/sigaction.m4: New file.
44741         * lib/sigaction.c: Likewise.
44742         * tests/test-sigaction.c: Likewise.
44743         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
44744         * modules/signal (Makefile.am): Likewise.
44745         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
44746         needed.
44747         * doc/posix-headers/signal.texi (signal.h): Mention provided
44748         types.
44749         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
44750         that sigaction is preferable.
44751         * doc/posix-functions/sigaction.texi (sigaction): Mention new
44752         module.
44753         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
44754         sigaction.
44755
44756         Improve robustness of sigprocmask by overriding signal.
44757         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
44758         is in use.
44759         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
44760         (SIGKILL, SIGSTOP): Provide fallbacks.
44761         (rpl_signal): Implement.
44762         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
44763         signal can be called inside handlers.
44764
44765         Fix nanosleep module on mingw.
44766         * modules/nanosleep (Depends-on): Add sys_select.
44767         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
44768
44769         Fix licensing of sigprocmask.
44770         * modules/raise (License): Relicense as LGPL.
44771
44772 2008-06-21  Bruno Haible  <bruno@clisp.org>
44773
44774         * lib/propername.c (proper_name_utf8): Don't use the transliterated
44775         result if it contains question marks.
44776         Reported by Michael Geng <linux@michaelgeng.de>.
44777
44778 2008-06-19  Bruno Haible  <bruno@clisp.org>
44779
44780         Fix CVS-ism.
44781         * doc/gnulib.texi: Include updated-stamp.texi.
44782         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
44783         (updated-stamp.texi): New rule.
44784         (gnulib.info): Depend on it.
44785         * doc/.gitignore: Add updated-stamp.texi.
44786         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
44787
44788 2008-06-19  Bruno Haible  <bruno@clisp.org>
44789
44790         * doc/Makefile (gnulib.info): Update and simplify dependencies.
44791         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
44792
44793 2008-06-19  Eric Blake  <ebb9@byu.net>
44794
44795         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
44796         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
44797         Reported by Stepan Kasal.
44798
44799 2008-06-18  Bruno Haible  <bruno@clisp.org>
44800
44801         * lib/fatal-signal.c (init_fatal_signals): Add comment.
44802         Reported by Eric Blake.
44803
44804 2008-06-18  Eric Blake  <ebb9@byu.net>
44805
44806         Work around cygwin 1.5.25 strsignal bug.
44807         * tests/test-strsignal.c: Allow for const char *.
44808         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
44809
44810 2008-06-18  Simon Josefsson  <simon@josefsson.org>
44811
44812         * users.txt: Update URL to article and add author/date
44813         information.
44814
44815 2008-06-17  Bruno Haible  <bruno@clisp.org>
44816
44817         New macro gl_DISABLE_THREADS.
44818         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
44819         if the user did not pass --enable-threads or --disable-threads option.
44820         (gl_DISABLE_THREADS): New macro.
44821         Reported by Eric Blake <ebb9@byu.net>.
44822
44823 2008-06-17  Bruno Haible  <bruno@clisp.org>
44824
44825         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
44826         when the macro ignores it.
44827         Based on a patch by Eric Blake <ebb9@byu.net>.
44828
44829 2008-06-17  Bruno Haible  <bruno@clisp.org>
44830
44831         * modules/tls (License): Change to LGPLv2+.
44832         Reported by Eric Blake.
44833
44834 2008-06-17  Eric Blake  <ebb9@byu.net>
44835
44836         Simplify c-stack prerequisites.
44837         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
44838         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
44839         no longer requires <ucontext.h> to exist.  Optimize setrlimit
44840         check.
44841         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
44842         <sys/resource.h>.
44843
44844         Move c-stack test into testsuite.
44845         * modules/c-stack-tests: New file.
44846         * lib/c-stack.c [DEBUG]: Move test program...
44847         * tests/test-c-stack.c: ...into this new file.  Skip rather than
44848         fail test if sigaltstack is lacking.
44849         * tests/test-c-stack.sh: New driver file.
44850
44851 2008-06-16  Eric Blake  <ebb9@byu.net>
44852
44853         Use raise module consistently.
44854         * modules/fatal-signal (Depends-on): Add raise.
44855         * modules/sigprocmask (Depends-on): Likewise.
44856         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
44857         * lib/sigprocmask.c (sigprocmask): Likewise.
44858         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
44859         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
44860
44861         Fix compliance bug in sigpending.
44862         * lib/sigprocmask.c (sigpending): Return pending array via
44863         parameter, not return value.
44864
44865 2008-06-14  Eric Blake  <ebb9@byu.net>
44866
44867         Improve obstack-printf test code.
44868         * tests/test-obstack-printf.c (test_function): Fix comment, and
44869         simplify usage of obstack_* in macros.  Add a test for coverage.
44870         Reported by Bruno Haible.
44871
44872 2008-06-14  Bruno Haible  <bruno@clisp.org>
44873
44874         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
44875         array size as a constant, not as a const variable.
44876         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
44877         AC_USE_SYSTEM_EXTENSIONS.
44878         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
44879         Test whether the obstack_printf function actually exists.
44880         * modules/obstack-printf (Depends-on): Add extensions.
44881         (Include): Remove obstack.h.
44882         * modules/obstack-printf-posix (Depends-on): Add extensions.
44883         (Include): Remove obstack.h.
44884
44885 2008-06-13  Eric Blake  <ebb9@byu.net>
44886
44887         Add obstack-printf and obstack-printf-posix modules.
44888         * modules/obstack-printf: New file.
44889         * modules/obstack-printf-posix: Likewise.
44890         * MODULES.html.sh (Misc): Mention them.
44891         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
44892         Likewise.
44893         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
44894         Likewise.
44895         * modules/stdio (Makefile.am): Accomodate new modules.
44896         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
44897         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
44898         Declare.
44899         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
44900         functions.
44901         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
44902         (gl_REPLACE_OBSTACK_PRINTF): New macros
44903         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
44904         * tests/test-obstack-printf.c: New file.
44905         * modules/obstack-printf-tests: Likewise.
44906         * modules/obstack-printf-posix-tests: Likewise.
44907
44908 2008-06-11  Bruno Haible  <bruno@clisp.org>
44909
44910         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
44911         * lib/open.c: Include errno.h.
44912         (open): Fail when attempting to write to a file that has a trailing
44913         slash.
44914         * tests/test-open.c (main): Test against trailing slash bug.
44915         * doc/posix-functions/open.texi: Mention the trailing slash bug.
44916
44917 2008-06-10  Bruno Haible  <bruno@clisp.org>
44918
44919         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
44920         for $? to work inside the trap command, with various /bin/sh-s.
44921         * tests/test-vc-list-files-cvs.sh: Likewise.
44922
44923 2008-06-10  Bruno Haible  <bruno@clisp.org>
44924
44925         * lib/acl-internal.h: Don't include gettext.h here.
44926         * lib/set-mode-acl.c: Include gettext.h here.
44927         * lib/copy-acl.c: Likewise.
44928
44929 2008-06-10  Bruno Haible  <bruno@clisp.org>
44930
44931         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
44932         * lib/wait-process.c (wait_subprocess): Likewise.
44933         * lib/execute.h (execute): Add termsigp argument.
44934         * lib/execute.c (execute): Likewise.
44935         * lib/csharpcomp.c (compile_csharp_using_pnet,
44936         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
44937         * lib/csharpexec.c (execute_csharp_using_pnet,
44938         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
44939         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
44940         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
44941         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
44942         is_jikes_present): Update.
44943         * lib/javaexec.c (execute_java_class): Update.
44944         * lib/javaversion.c (execute_and_read_line): Update.
44945         * NEWS: Document the changes.
44946         Reported by Eric Blake.
44947
44948 2008-06-10  Eric Blake  <ebb9@byu.net>
44949
44950         Add missing include.
44951         * tests/test-strstr.c (includes): Add <signal.h>.
44952         * tests/test-strcasestr.c (includes): Likewise.
44953         * tests/test-memmem.c (includes): Likewise.
44954
44955 2008-06-10  Bruno Haible  <bruno@clisp.org>
44956
44957         * lib/wait-process.c (wait_subprocess): Add an assertion.
44958
44959 2008-06-10  Bruno Haible  <bruno@clisp.org>
44960
44961         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
44962
44963 2008-06-10  Bruno Haible  <bruno@clisp.org>
44964
44965         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
44966         using alarm().
44967         * tests/test-strcasestr.c (main): Likewise.
44968         * tests/test-strstr.c (main): Likewise.
44969
44970 2008-06-09  Bruno Haible  <bruno@clisp.org>
44971
44972         Work around the Solaris 10 ACE ACLs ABI change.
44973         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
44974         declare if ACL_NO_TRIVIAL is present.
44975         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
44976         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
44977         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
44978         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
44979         define if ACL_NO_TRIVIAL is present.
44980         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
44981         and use the current ABI.
44982         (file_has_acl): Use same #if condition as elsewhere.
44983         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
44984         in use, and use the current ABI.
44985         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
44986         Reported by Jim Meyering.
44987
44988 2008-06-09  Eric Blake  <ebb9@byu.net>
44989
44990         Work around environments that (stupidly) ignore SIGALRM.
44991         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
44992         before using alarm().
44993         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
44994         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
44995         Reported by Ian Beckwith <ianb@erislabs.net>.
44996
44997         Produce autobuild blurb earlier in log.
44998         * modules/autobuild (configure.ac-early): Move AB_INIT here.
44999
45000 2008-06-09  Jim Meyering  <meyering@redhat.com>
45001         and OndÅ™ej Vašík  <ovasik@redhat.com>
45002
45003         utimens.c: correct kernel bug work-around
45004         OndÅ™ej Vašík found that the invalid return value of 280 indicates
45005         failure, not success, and the kernel bug we're trying to work
45006         around affects not just the utimensat call, but also the fallback
45007         futimens call.
45008         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
45009         not success.
45010         [HAVE_FUTIMENS]: Use the same work-around, here.
45011
45012 2008-06-09  Jim Meyering  <meyering@redhat.com>
45013
45014         add more guards around definition of ACE_-related code
45015         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
45016         ALLOW and ACE_OWNER are also defined.
45017
45018 2008-06-08  Bruno Haible  <bruno@clisp.org>
45019
45020         * lib/acl-internal.h: Add me as co-author.
45021         * lib/file-has-acl.c: Likewise.
45022         * lib/set-mode-acl.c: Likewise.
45023         * lib/copy-acl.c: Likewise.
45024
45025 2008-06-08  Bruno Haible  <bruno@clisp.org>
45026
45027         Add support for AIX ACLs.
45028         * lib/acl-internal.h (acl_nontrivial): New declaration.
45029         * lib/file-has-acl.c (acl_nontrivial): New function.
45030         (file_has_acl): Add implementation using AIX 4 ACL API.
45031         * lib/set-mode-acl.c (qset_acl): Likewise.
45032         * lib/copy-acl.c (qcopy_acl): Likewise.
45033
45034 2008-06-08  Bruno Haible  <bruno@clisp.org>
45035
45036         Add support for HP-UX ACLs.
45037         * lib/acl-internal.h (acl_nontrivial): New declaration.
45038         * lib/file-has-acl.c (acl_nontrivial): New function.
45039         (file_has_acl): Add implementation using HP-UX 11 ACL API.
45040         * lib/set-mode-acl.c (qset_acl): Likewise.
45041         * lib/copy-acl.c (qcopy_acl): Likewise.
45042
45043 2008-06-08  Bruno Haible  <bruno@clisp.org>
45044
45045         Add support for Cygwin ACLs.
45046         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
45047         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
45048         the chmod_or_fchmod call.
45049         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
45050
45051 2008-06-08  Bruno Haible  <bruno@clisp.org>
45052
45053         Fix bug with setuid modes in Solaris 10+ code.
45054         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
45055         succeeded, when the mode contains some special bits.
45056
45057 2008-06-08  Bruno Haible  <bruno@clisp.org>
45058
45059         Add support for Solaris 7..10 ACLs.
45060         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
45061         declarations.
45062         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
45063         functions.
45064         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
45065         * lib/set-mode-acl.c (qset_acl): Likewise.
45066         * lib/copy-acl.c (qcopy_acl): Likewise.
45067
45068 2008-06-08  Bruno Haible  <bruno@clisp.org>
45069
45070         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
45071         declaration.
45072         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
45073         (acl_access_nontrivial): Remove MacOS X case.
45074         (file_has_acl): Use acl_extended_nontrivial.
45075         * lib/copy-acl.c (qcopy_acl): Likewise.
45076
45077 2008-06-08  Bruno Haible  <bruno@clisp.org>
45078
45079         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
45080
45081 2008-06-08  Jim Meyering  <meyering@redhat.com>
45082
45083         * modules/acl (Maintainer): Add Bruno Haible.
45084
45085 2008-06-07  Bruno Haible  <bruno@clisp.org>
45086
45087         Improve support for Tru64 ACLs.
45088         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
45089         ACL on OSF/1.
45090
45091 2008-06-07  Bruno Haible  <bruno@clisp.org>
45092
45093         Add support for MacOS X ACLs.
45094         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
45095         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
45096         * lib/set-mode-acl.c (qset_acl): Likewise.
45097         * lib/copy-acl.c (qcopy_acl): Likewise.
45098
45099 2008-06-07  Bruno Haible  <bruno@clisp.org>
45100
45101         Fix memory leak introduced on 2008-05-22.
45102         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
45103         use.
45104
45105 2008-06-07  Bruno Haible  <bruno@clisp.org>
45106
45107         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
45108         to construct an empty ACL.
45109
45110 2008-06-07  Bruno Haible  <bruno@clisp.org>
45111
45112         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
45113         precisely.
45114         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
45115
45116 2008-06-07  Bruno Haible  <bruno@clisp.org>
45117
45118         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
45119         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
45120
45121 2008-06-07  Bruno Haible  <bruno@clisp.org>
45122
45123         * doc/posix-functions/_setjmp.texi: Explain the use of this function
45124         regardless of POSIX.
45125         * doc/posix-functions/_longjmp.texi: Likewise.
45126         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
45127         SystemV platform in this case.
45128
45129 2008-06-06  Eric Blake  <ebb9@byu.net>
45130
45131         Document abort() bugs.
45132         * doc/posix-functions/abort.texi (abort): Mention anomalies.
45133
45134         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
45135         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
45136         sigsetjmp.
45137         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
45138         siglongjmp, but only as a macro.
45139         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
45140         is obsolete.
45141         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
45142
45143         Tweak documentation to cover cygwin argz bugs.
45144         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
45145         argz bug fix; no code change needed since no cygwin releases
45146         occurred between the last fix and the bug being tested.
45147         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
45148         module and recently fixed cygwin bugs.
45149         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
45150         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
45151         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
45152         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
45153         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
45154         Likewise.
45155         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
45156         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
45157         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
45158         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
45159         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
45160         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
45161         Likewise.
45162
45163         Avoid gcc warning on cygwin.
45164         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
45165         !ACL_NO_TRIVIAL]: Avoid unused variable.
45166
45167 2008-06-05  Eric Blake  <ebb9@byu.net>
45168
45169         Be tolerant of UNKNOWN version in gnulib-tool test dir.
45170         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
45171         git-version-gen fails to come up with a version.
45172         Reported by Simon Josefsson.
45173
45174 2008-06-05  Jim Meyering  <meyering@redhat.com>
45175             Paul Eggert  <eggert@cs.ucla.edu>
45176
45177         utimens.c: work around a probable Linux kernel bug
45178         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
45179         appears to be a kernel bug that causes utimensat to return 280
45180         instead of 0, indicating success.
45181
45182 2008-06-04  Bruno Haible  <bruno@clisp.org>
45183
45184         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
45185         2008-06-01 commit.
45186
45187 2008-06-04  Bruno Haible  <bruno@clisp.org>
45188
45189         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
45190         * lib/file-has-acl.c (acl_access_nontrivial): New function.
45191         (file_has_acl): Use it. Save errno afterwards.
45192         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
45193
45194 2008-06-03  Bruno Haible  <bruno@clisp.org>
45195
45196         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
45197         draft code. Simplify #ifs.
45198         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
45199         Put Solaris code after POSIX-draft code. Fix comments regarding
45200         Solaris 10, HP-UX. Mention Cygwin.
45201         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
45202
45203 2008-06-03  Eric Blake  <ebb9@byu.net>
45204
45205         Provide fallback for older kernels.
45206         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
45207         Provide runtime fallback if kernel lacks support.
45208         Reported by Mike Frysinger.
45209
45210 2008-06-02  Bruno Haible  <bruno@clisp.org>
45211
45212         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
45213         it exists.
45214
45215 2008-06-02  Bruno Haible  <bruno@clisp.org>
45216
45217         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
45218         * lib/copy-acl.c (qcopy_acl): Update comment.
45219
45220 2008-06-02  Bruno Haible  <bruno@clisp.org>
45221
45222         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
45223         like ACL APIs.
45224
45225 2008-06-02  Bruno Haible  <bruno@clisp.org>
45226
45227         * tests/test-file-has-acl.sh: Use different code for Cygwin.
45228         * tests/test-set-mode-acl.sh: Likewise.
45229         * tests/test-copy-acl.sh: Likewise.
45230         * tests/test-copy-file.sh: Likewise.
45231
45232 2008-06-02  Bruno Haible  <bruno@clisp.org>
45233
45234         * tests/test-file-has-acl.sh: Remove unused code.
45235
45236 2008-06-01  Bruno Haible  <bruno@clisp.org>
45237
45238         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
45239         (copy_acl): Just a wrapper around qcopy_acl that emits the error
45240         messages.
45241         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
45242
45243 2008-06-01  Bruno Haible  <bruno@clisp.org>
45244
45245         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
45246         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
45247         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
45248         APIs.
45249         * modules/acl-tests (configure.ac): Remove tests now contained in
45250         m4/acl.m4.
45251
45252 2008-06-02  Jim Meyering  <meyering@redhat.com>
45253
45254         announce-gen: use a better key-server host name
45255         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
45256         it may be more consistently reliable.  Suggested by Werner Koch
45257         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
45258
45259 2008-06-01  Bruno Haible  <bruno@clisp.org>
45260
45261         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
45262         Reported by Voroskoi Andras <voroskoi@gmail.com>.
45263
45264 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
45265
45266         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
45267
45268 2008-06-01  Bruno Haible  <bruno@clisp.org>
45269
45270         New ACL tests.
45271         * tests/test-file-has-acl.sh: New file.
45272         * tests/test-file-has-acl.c: New file.
45273         * tests/test-set-mode-acl.sh: New file.
45274         * tests/test-set-mode-acl.c: New file.
45275         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
45276         * tests/test-copy-acl.c: New file.
45277         * modules/acl-tests: New file, based on modules/copy-file-tests.
45278         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
45279         (Depends-on): Add acl-tests.
45280         (configure.ac): Remove checks.
45281         (Makefile.am): Don't create test-sameacls program here any more.
45282
45283 2008-06-01  Bruno Haible  <bruno@clisp.org>
45284
45285         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
45286         * tests/test-sameacls.c: Include progname.h.
45287         (main): Invoke set_program_name. Portability fixes for MacOS X,
45288         Solaris, HP-UX.
45289
45290 2008-06-01  Bruno Haible  <bruno@clisp.org>
45291
45292         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
45293         function.
45294         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
45295
45296 2008-06-01  Bruno Haible  <bruno@clisp.org>
45297
45298         * modules/rpmatch (Depends-on): Add strdup.
45299
45300 2008-06-01  Bruno Haible  <bruno@clisp.org>
45301
45302         * lib/pipe.c: Include unistd-safer.h.
45303         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
45304         * modules/pipe (Depends-on): Add unistd-safer.
45305
45306 2008-05-30  Simon Josefsson  <simon@josefsson.org>
45307
45308         * modules/autobuild (configure.ac): Call AB_INIT.
45309
45310 2008-05-30  Simon Josefsson  <simon@josefsson.org>
45311
45312         * tests/test-getaddrinfo.c: Don't print debug messages by default.
45313         Suggested by Bruno Haible <bruno@clisp.org>.
45314
45315 2008-05-30  Simon Josefsson  <simon@josefsson.org>
45316
45317         * tests/test-base64.c: Cast size_t to unsigned long when invoking
45318         printf.  Use %lu instead of %d.  Reported by Bruno Haible
45319         <bruno@clisp.org>.
45320
45321 2008-05-29  Eric Blake  <ebb9@byu.net>
45322
45323         Prefer new POSIX 200x interfaces over futimesat.
45324         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
45325         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
45326         when available.
45327         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
45328
45329 2008-05-28  Bruno Haible  <bruno@clisp.org>
45330
45331         * modules/stpcpy (License): Change to LGPLv2+.
45332         Requested by David Lutterkort <dlutter@redhat.com>.
45333
45334 2008-05-27  Bruno Haible  <bruno@clisp.org>
45335
45336         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
45337         current mingw.
45338         Reported by Jose E. Marchesi <jemarch@gnu.org>.
45339
45340 2008-05-27  Bruno Haible  <bruno@clisp.org>
45341
45342         * modules/iconv_open (Link): New section, from module 'iconv'.
45343         * modules/striconv (Link): Likewise.
45344         * modules/striconveh (Link): Likewise.
45345         * modules/xstriconv (Link): Likewise.
45346         * modules/unicodeio (Link): Likewise.
45347         * modules/propername (Link): Likewise.
45348         Reported by Jim Meyering.
45349
45350 2008-05-26  Jim Meyering  <meyering@redhat.com>
45351
45352         sha256: do not artificially restrict buffer length to be < 2^32
45353         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
45354         uint32_t to size_t.
45355         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
45356         to match.
45357
45358         avoid unaligned access errors, e.g., on sparc
45359         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
45360         direct access through a possibly-unaligned uint64* pointer.
45361         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
45362         direct access through a possibly-unaligned uint32* pointer.
45363         Prompted by this patch from Tom "spot" Callaway:
45364         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
45365
45366         sha512.c: fix typo in comment
45367         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
45368
45369 2008-05-25  Bruno Haible  <bruno@clisp.org>
45370
45371         * lib/set-mode-acl.c: Renamed from lib/acl.c.
45372         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
45373         (Makefile.am): Update lib_SOURCES.
45374
45375 2008-05-25  Bruno Haible  <bruno@clisp.org>
45376
45377         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
45378
45379 2008-05-25  Jim Meyering  <meyering@redhat.com>
45380
45381         useless-if-before-free: freed expr may have white-space differences
45382         * build-aux/useless-if-before-free: Recognize cases in which the
45383         freed expression differs from the tested one in embedded white
45384         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
45385         $1 was used, so we can't make any regexp shy.  Improved tests now
45386         detect this.
45387
45388         useless-if-before-free: accept white space in the expression.
45389         * build-aux/useless-if-before-free: For now, any white space
45390         in the expression must be identical in the free argument.
45391
45392         useless-if-before-free: efficiency tweak
45393         * build-aux/useless-if-before-free: Make the expression-matching
45394         regexp "shy".
45395         Make the *outer* regexp shy, not the expr-matching one.
45396
45397         update code-in-comment to accept cast of free arg
45398         * build-aux/useless-if-before-free: Update regexp.
45399
45400 2008-05-25  Bruno Haible  <bruno@clisp.org>
45401
45402         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
45403         * modules/copy-file-tests (Files, Makefile.am): Update.
45404         * tests/test-copy-file.c (func_test_copy): Update.
45405
45406 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
45407
45408         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
45409
45410 2008-05-23  Bruno Haible  <bruno@clisp.org>
45411
45412         Improve support for ACLs on OSF/1.
45413         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
45414         Remove fallback for unknown flavors of ACLs.
45415
45416 2008-05-22  Bruno Haible  <bruno@clisp.org>
45417
45418         Add support for ACLs on OSF/1.
45419         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
45420         replacements.
45421         (acl_free_text): New macro fallback.
45422         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
45423         acl_free.
45424         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
45425         acl_free_text function. Require AC_C_INLINE.
45426
45427 2008-05-22  Bruno Haible  <bruno@clisp.org>
45428
45429         Make copy_acl work on MacOS X 10.5.
45430         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
45431         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
45432         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
45433         If MODE_INSIDE_ACL, don't assume that every system has the same text
45434         representation for ACLs as FreeBSD.
45435         * lib/copy-acl.c (copy_acl): Add support for platforms with
45436         !MODE_INSIDE_ACL.
45437         * lib/file-has-acl.c (file_has_acl): Likewise.
45438         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
45439         FreeBSD, MacOS X, or IRIX, respectively.
45440
45441 2008-05-22  Bruno Haible  <bruno@clisp.org>
45442
45443         * lib/acl.h: Don't include <sys/acl.h>.
45444         (GETACLCNT): Move fallback to lib/acl-internal.h.
45445         * lib/acl-internal.h: Include <sys/acl.h> here.
45446         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
45447
45448 2008-05-22  Bruno Haible  <bruno@clisp.org>
45449
45450         Split off copy_acl function to separate file.
45451         * lib/copy-acl.c: New file, extracted from lib/acl.c.
45452         * lib/acl.c (copy_acl): Moved function to separate file.
45453         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
45454         * modules/acl (Files): Add lib/copy-acl.c.
45455         (Makefiles.am): Augment lib_SOURCES.
45456
45457 2008-05-22  Bruno Haible  <bruno@clisp.org>
45458
45459         * modules/copy-file-tests: New file.
45460         * tests/test-copy-file.sh: New file.
45461         * tests/test-copy-file.c: New file.
45462         * tests/test-copy-file-sameacls.c: New file.
45463
45464 2008-05-22  Eric Blake  <ebb9@byu.net>
45465
45466         Avoid gcc warning.
45467         * tests/test-memcmp.c (main): Pass NULL indirectly.
45468
45469 2008-05-21  Bruno Haible  <bruno@clisp.org>
45470
45471         Add reference doc about ACLs.
45472         * doc/acl-resources.txt: New file.
45473         * doc/acl-cygwin.txt: New file.
45474
45475 2008-05-21  Bruno Haible  <bruno@clisp.org>
45476
45477         Avoid one more warning from gcc.
45478         * lib/vasnprintf.c (IF_LINT): Update comments.
45479         (VASNPRINTF): Use it also for the 'prefix' array initializer.
45480
45481 2008-05-21  Jim Meyering  <meyering@redhat.com>
45482
45483         avoid a warning from gcc
45484         * lib/vasnprintf.c (IF_LINT): Define.
45485         (scale10_round_decimal_long_double):
45486         Use it to avoid a "may be used uninitialized" warning.
45487         (scale10_round_decimal_double): Likewise.
45488
45489 2008-05-21  Simon Josefsson  <simon@josefsson.org>
45490
45491         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
45492         declared.
45493
45494 2008-05-20  Bruno Haible  <bruno@clisp.org>
45495
45496         * tests/test-memcmp.c (main): Test also the sign of the result. Test
45497         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
45498
45499 2008-05-20  Simon Josefsson  <simon@josefsson.org>
45500
45501         * modules/memcmp-tests: New file.
45502         * tests/test-memcmp.c: New file.
45503
45504 2008-05-19  Bruno Haible  <bruno@clisp.org>
45505
45506         * modules/propername (Notice, configure.ac): Put quoted "..." into
45507         --keyword option.
45508         * lib/propername.h: Update comments accordingly.
45509         Reported by Eric Blake.
45510
45511 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
45512
45513         * modules/getpass-gnu (Depends-on): Add fseeko.
45514
45515 2008-05-19  Simon Josefsson  <simon@josefsson.org>
45516
45517         * modules/base64-tests: New file.
45518
45519 2008-05-19  Bo Borgerson <gigabo@gmail.com>
45520
45521         * lib/base64.c (base64_decode_ctx): If a decode context structure
45522         was passed in use it to ignore newlines.  If a context structure
45523         was _not_ passed in, continue to treat newlines as garbage (this
45524         is the historical behavior).  Formerly base64_decode.
45525         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
45526         takes a decode context structure.
45527         * lib/base64.h (base64_decode): Macro for four-argument calls.
45528         (base64_decode_alloc): Likewise.
45529         * lib/base64.c (base64_decode_ctx): If a decode context structure
45530         was passed in use it to ignore newlines.  If a context structure
45531         was _not_ passed in, continue to treat newlines as garbage (this
45532         is the historical behavior).  Formerly base64_decode.
45533         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
45534         takes a decode context structure.
45535         * lib/base64.h (base64_decode): Macro for four-argument calls.
45536         (base64_decode_alloc): Likewise.
45537
45538 2008-05-19  Jim Meyering  <meyering@redhat.com>
45539
45540         avoid a warning from gcc
45541         * lib/trim.c (IF_LINT): Define.
45542         (trim2): Use it to avoid a "may be used uninitialized" warning.
45543
45544         Fix doc typo.
45545         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
45546
45547 2008-05-19  Bruno Haible  <bruno@clisp.org>
45548
45549         * doc/glibc-functions/getpass.texi: Document limits of other
45550         implementations.
45551
45552 2008-05-19  Simon Josefsson  <simon@josefsson.org>
45553             Bruno Haible <bruno@clisp.org>
45554
45555         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
45556
45557 2008-05-18  Bruno Haible  <bruno@clisp.org>
45558
45559         * modules/propername: New file, from GNU gettext.
45560         * lib/propername.h: New file, from GNU gettext.
45561         * lib/propername.c: New file, from GNU gettext.
45562         * MODULES.html.sh (Internationalization functions): Add propername.
45563
45564 2008-05-16  Jim Meyering  <meyering@redhat.com>
45565             Bruno Haible  <bruno@clisp.org>
45566
45567         Avoid some warnings from "gcc -Wshadow".
45568         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
45569
45570 2008-05-15  Eric Blake  <ebb9@byu.net>
45571
45572         Extend previous patch to cygwin 1.7.0.
45573         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
45574         fast implementation in cygwin >= 1.7.0.
45575         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
45576         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
45577
45578 2008-05-15  Bruno Haible  <bruno@clisp.org>
45579
45580         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
45581         implementation in glibc >= 2.9.
45582         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
45583         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
45584
45585 2008-05-15  Bruno Haible  <bruno@clisp.org>
45586
45587         * MODULES.html.sh (Internationalization functions): Remove linebreak.
45588         (Unicode string functions): Add unilbrk/*.
45589         Reported by Karl Berry.
45590
45591 2008-05-15  Eric Blake  <ebb9@byu.net>
45592
45593         Fix violation of <stdbool.h> replacement in regex.
45594         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
45595         * lib/regexec.c (re_search_internal): Likewise.
45596         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
45597
45598 2008-05-15  Jim Meyering  <meyering@redhat.com>
45599
45600         avoid distracting test output when git or cvs is not found
45601         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
45602         * tests/test-vc-list-files-git.sh: Likewise.
45603
45604 2008-05-15  Eric Blake  <ebb9@byu.net>
45605
45606         Glibc finally accepted the memmem speedup code, bugzilla #5514.
45607         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
45608         glibc version.
45609         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
45610         * doc/posix-functions/strstr.texi (strstr): Likewise.
45611         * lib/str-two-way.h (MAX): Sychronize with glibc.
45612
45613 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
45614
45615         * lib/regcomp.c (optimize_utf8): Add a note on why we test
45616         opr.ctx_type.
45617         (calc_first): Initialize constraint field.
45618         (duplicate_node_closure): Use it instead of special casing ANCHORS.
45619         Fix grammar.
45620         (duplicate_node): Merge constraint field for all node types.
45621         (calc_eclosure_iter): Look at constraint field for all node types.
45622         * lib/regex_internal.c (create_cd_newstate): Don't look at
45623         opr.ctx_type.
45624
45625 2008-05-14  Bruno Haible  <bruno@clisp.org>
45626
45627         Help GCC to do better code generation.
45628         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
45629         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
45630         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
45631         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
45632         Declare with attribute 'malloc' if supported.
45633
45634 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
45635
45636         use "echo STR|wc -c" rather than unportable "expr length STR"
45637         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
45638         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
45639
45640 2008-05-14  Jim Meyering  <meyering@redhat.com>
45641
45642         use dd ibs=$n count=1 ... rather than less-portable head -c$n
45643         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
45644         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
45645         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
45646         via Collin Lasse.
45647
45648 2008-05-14  Eric Blake  <ebb9@byu.net>
45649
45650         Avoid quadratic growth in gl_LIBSOURCES.
45651         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
45652         Suggested by Bruno Haible.
45653
45654         Test xmemdup0.
45655         * modules/xmemdup0-tests: New file.
45656         * tests/test-xmemdup0.c: Likewise.
45657
45658 2008-05-13  Eric Blake  <ebb9@byu.net>
45659
45660         Split xmemdup0 into its own module.
45661         * modules/xmemdup0: New file.
45662         * lib/xmemdup0.h: Likewise.
45663         * lib/xmemdup0.c: Likewise.
45664         * MODULES.html.sh (Memory management functions): Add xmemdup0.
45665         * lib/xalloc.h (xmemdup0): Remove.
45666         * lib/xmalloc.c (xmemdup0): Likewise.
45667
45668 2008-05-13  Eric Blake  <ebb9@byu.net>
45669             Bruno Haible  <bruno@clisp.org>
45670
45671         Reduce number of forks required during autoconf.
45672         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
45673         and gl_LIBSOURCES_DIR.
45674         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
45675         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
45676         m4_syscmd per file.
45677         <m4_foreach_w>: Move...
45678         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
45679
45680 2008-05-13  Eric Blake  <ebb9@byu.net>
45681
45682         * gnulib-tool: Fix various comment typos.
45683
45684 2008-05-12  Bruno Haible  <bruno@clisp.org>
45685
45686         Tailor the linebreaking algorithm.
45687         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
45688
45689 2008-05-12  Bruno Haible  <bruno@clisp.org>
45690
45691         Update to Unicode 5.0.0.
45692         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
45693         LBP_JV, LBP_JT. Redistribute values.
45694         (unilbrk_table): Change size.
45695         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
45696         Unicode TR#14 rev. 22.
45697         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
45698         LBP_JV, LBP_JT. Redistribute values.
45699         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
45700         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
45701         Update.
45702         * lib/unilbrk/lbrkprop1.h: Regenerated.
45703         * lib/unilbrk/lbrkprop2.h: Regenerated.
45704         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
45705         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
45706         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
45707         Likewise.
45708         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
45709         Likewise.
45710         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
45711         result.
45712         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
45713         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
45714         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
45715         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
45716         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
45717         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
45718
45719 2008-05-11  Bruno Haible  <bruno@clisp.org>
45720
45721         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
45722
45723 2008-05-11  Bruno Haible  <bruno@clisp.org>
45724
45725         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
45726         * modules/unilbrk/gen-lbrk: New file.
45727
45728 2008-05-11  Bruno Haible  <bruno@clisp.org>
45729
45730         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
45731         * m4/sha512.m4 (gl_SHA512): Likewise.
45732
45733 2008-05-11  Jim Meyering  <meyering@redhat.com>
45734
45735         New modules: crypto/sha256, crypto/sha512 (from coreutils)
45736         * modules/crypto/sha256: New file.
45737         * modules/crypto/sha512: Likewise.
45738         * lib/sha256.c: Likewise.
45739         * lib/sha256.h: Likewise.
45740         * lib/sha512.c: Likewise.
45741         * lib/sha512.h: Likewise.
45742         * lib/u64.h: Likewise.
45743         * m4/sha256.m4: Likewise.
45744         * m4/sha512.m4: Likewise.
45745         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
45746
45747 2008-05-10  Bruno Haible  <bruno@clisp.org>
45748
45749         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
45750         (Input/Output <stdio.h>): Add xprintf.
45751         (Signal handling <signal.h>): Add strsignal.
45752         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
45753         (Core language properties): Add func.
45754         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
45755         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
45756         strings.
45757         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
45758         (Input/output): New section.
45759         (File system functions): Add openat-die, stat-macros.
45760         (Networking functions): Add sockets.
45761         (Unicode string functions): Add unictype/*.
45762         (Support for building libraries and executables): Add gperf.
45763         (Support for building documentation): Add agpl-3.0.
45764         (Misc): Add nocrash.
45765
45766 2008-05-10  Bruno Haible  <bruno@clisp.org>
45767
45768         * modules/unictype/gen-ctype: New file.
45769
45770 2008-05-10  Jim Meyering  <meyering@redhat.com>
45771
45772         Make chdir-safer.c more efficient on a system with no symlinks.
45773         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
45774         also if ELOOP is zero.  Suggested by Bruno Haible.
45775
45776         Make chdir-safer.c slightly safer.
45777         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
45778         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
45779
45780         Avoid compile failure on systems without ELOOP (like mingw).
45781         * lib/chdir-safer.c (ELOOP): Define if not already defined.
45782         Reported by Bruno Haible.
45783
45784 2008-05-10  Bruno Haible  <bruno@clisp.org>
45785
45786         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
45787         (is_utf8_encoding): Use a case-insensitive comparison.
45788         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
45789         streq.
45790
45791 2008-05-10  Bruno Haible  <bruno@clisp.org>
45792
45793         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
45794         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
45795         * lib/unilbrk/ulc-common.h (iconv_string_length,
45796         iconv_string_keeping_offsets): Remove declarations.
45797         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
45798         Don't include <iconv.h>, streq.h, xsize.h.
45799         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
45800         conversion.
45801         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
45802         <iconv.h>, streq.h, xsize.h.
45803         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
45804         conversion.
45805         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
45806         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
45807         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
45808         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
45809
45810 2008-05-10  Bruno Haible  <bruno@clisp.org>
45811
45812         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
45813         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
45814
45815         * modules/unilbrk/u32-width-linebreaks-tests: New file.
45816         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
45817
45818         * modules/unilbrk/u16-width-linebreaks-tests: New file.
45819         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
45820
45821         * modules/unilbrk/u8-width-linebreaks-tests: New file.
45822         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
45823
45824         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
45825         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
45826
45827         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
45828         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
45829
45830         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
45831         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
45832
45833         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
45834         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
45835
45836 2008-05-10  Bruno Haible  <bruno@clisp.org>
45837
45838         Split up 'linebreak' module.
45839         * lib/unilbrk.h: New file, based on lib/linebreak.h.
45840         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
45841         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
45842         modifications.
45843         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
45844         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
45845         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
45846         lib/linebreak.c.
45847         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
45848         lib/linebreak.c.
45849         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
45850         lib/linebreak.c.
45851         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
45852         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
45853         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
45854         lib/linebreak.c.
45855         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
45856         lib/linebreak.c.
45857         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
45858         lib/linebreak.c.
45859         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
45860         lib/linebreak.c.
45861         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
45862         lib/linebreak.c.
45863         * modules/unilbrk/base: New file.
45864         * modules/unilbrk/tables: New file.
45865         * modules/unilbrk/u8-possible-linebreaks: New file.
45866         * modules/unilbrk/u16-possible-linebreaks: New file.
45867         * modules/unilbrk/u32-possible-linebreaks: New file.
45868         * modules/unilbrk/ulc-common: New file.
45869         * modules/unilbrk/ulc-possible-linebreaks: New file.
45870         * modules/unilbrk/u8-width-linebreaks: New file.
45871         * modules/unilbrk/u16-width-linebreaks: New file.
45872         * modules/unilbrk/u32-width-linebreaks: New file.
45873         * modules/unilbrk/ulc-width-linebreaks: New file.
45874         * lib/linebreak.h: Remove file.
45875         * lib/linebreak.c: Remove file.
45876         * m4/linebreak.m4: Remove file.
45877         * modules/linebreak: Remove file.
45878         * NEWS: Mention the changes.
45879
45880 2008-05-09  Eric Blake  <ebb9@byu.net>
45881
45882         Add xmemdup0.
45883         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
45884         implementation.
45885         * lib/xmalloc.c (xmemdup0): New C implementation.
45886
45887 2008-05-08  Bruno Haible  <bruno@clisp.org>
45888
45889         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
45890
45891 2008-05-07  Eric Blake  <ebb9@byu.net>
45892
45893         Support cross-compilation of <wctype.h>.
45894         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
45895         AC_CACHE_CHECK.
45896
45897 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
45898
45899         * build-aux/vc-list-files: Add support for bzr.
45900
45901 2008-05-03  Jim Meyering  <meyering@redhat.com>
45902
45903         avoid failed assertion with tight malloc
45904         * tests/test-getndelim2.c: Correct an off-by-one assertion.
45905
45906 2008-05-03  Simon Josefsson  <simon@josefsson.org>
45907
45908         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
45909         are needed from arpa/inet.h.
45910         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
45911         Reported by Bruno Haible.
45912
45913 2008-05-02  Jim Meyering  <meyering@redhat.com>
45914
45915         avoid compilation error on FreeBSD 6
45916         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
45917
45918 2008-05-01  Jim Meyering  <meyering@redhat.com>
45919
45920         useless-if-before-free: correct --help's exit status description
45921         * build-aux/useless-if-before-free (usage): Like grep, exit 0
45922         for one or more matches, etc.  Reported by Bruno Haible.
45923
45924         vc-list-files: make the stand-alone gnulib test work
45925         * modules/vc-list-files-tests (configure.ac):
45926         Define and AC_SUBST abs_aux_dir.
45927         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
45928         $(abs_top_srcdir) to each script and having each of them
45929         duplicate the work of setting PATH, set PATH here, using
45930         the new variable, abs_aux_dir instead.
45931         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
45932         * tests/test-vc-list-files-git.sh: Likewise.
45933         Reported by Bruno Haible.
45934
45935 2008-05-01  Bruno Haible  <bruno@clisp.org>
45936
45937         * lib/getndelim2.c (getndelim2): Fix newsize computation during
45938         reallocation. Rename 'done' to 'found_delimiter'.
45939
45940 2008-05-01  Jim Meyering  <meyering@redhat.com>
45941
45942         vc-list-files: accommodate /bin/sh like the one from Solaris 10
45943         * build-aux/vc-list-files: Use `...`, not $(...).
45944
45945 2008-04-30  Jim Meyering  <meyering@redhat.com>
45946
45947         add tests for vc-list-files
45948         * modules/vc-list-files-tests: New module.
45949         * tests/test-vc-list-files-cvs.sh: New file.
45950         * tests/test-vc-list-files-git.sh: New file.
45951
45952         avoid a warning from gcc
45953         * lib/getndelim2.c (IF_LINT): Define.
45954         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
45955
45956         vc-list-files: work properly with build-aux/cvsu, too
45957         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
45958         to all cvs-based clauses.
45959
45960         vc-list-files: work properly in the CVS+awk case, too
45961         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
45962
45963         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
45964         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
45965         take more than one file argument, so .  Add quotes, just in case $dir
45966         ever contains a shell meta-character.  Prompted by Soren Hansen in
45967         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
45968
45969 2008-04-29  Eric Blake  <ebb9@byu.net>
45970
45971         Optimize getndelim2 to use block operations when possible.
45972         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
45973         freadseek, and memchr2.
45974         * lib/getndelim2.c (getndelim2): Use them for block reads.
45975
45976 2008-04-29  Bruno Haible  <bruno@clisp.org>
45977
45978         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
45979         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
45980         * modules/inet_ntop (Depends-on): Add extensions.
45981         * modules/inet_pton (Depends-on): Likewise.
45982         Reported by Simon Josefsson.
45983
45984 2008-04-29  Jim Meyering  <meyering@redhat.com>
45985
45986         When the is more than one match in a block, match all of them.
45987         * build-aux/useless-if-before-free: Iterate through each block
45988         until there are no more matches.
45989
45990         Fix broken useless-if-before-free script.
45991         * build-aux/useless-if-before-free: Fix typo: missing "?" after
45992         the expression to match cast of argument to free-like function.
45993
45994 2008-04-29  Eric Blake  <ebb9@byu.net>
45995
45996         Use new header.
45997         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
45998
45999 2008-04-29  Jim Meyering  <meyering@redhat.com>
46000
46001         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
46002         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
46003         by gnulib to exist and to declare e.g., inet_ntop.
46004         Don't include "inet_ntop.h", now removed.
46005
46006         * m4/arpa_inet_h.m4: Remove trailing blanks.
46007
46008 2008-04-29  Eric Blake  <ebb9@byu.net>
46009
46010         Silence valgrind on safe reads beyond potential array bounds.
46011         * lib/rawmemchr.valgrind: New file.
46012         * lib/strchrnul.valgrind: Likewise.
46013         * modules/rawmemchr (Files): Distribute new file.
46014         * modules/strchrnul (Files): Likewise.
46015         Suggested by Bruno Haible.
46016
46017 2008-04-29  Bruno Haible  <bruno@clisp.org>
46018
46019         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
46020         (inet_ntop, inet_pton): Change portability warning's wording.
46021         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
46022         Invoke gl_CHECK_NEXT_HEADERS.
46023         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
46024         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
46025         set ARPA_INET_H.
46026         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
46027         * modules/arpa_inet (Description): No longer only for systems that
46028         lack it.
46029         (Depends-on): Add include_next.
46030         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
46031         HAVE_ARPA_INET_H.
46032
46033 2008-04-29  Jim Meyering  <meyering@redhat.com>
46034
46035         * modules/mkdir (License): Re-license as LGPLv2+.
46036
46037 2008-04-29  Bruno Haible  <bruno@clisp.org>
46038
46039         * modules/rawmemchr (Maintainer): Set to Eric.
46040         * modules/strchrnul (Maintainer): Likewise.
46041
46042 2008-04-29  Simon Josefsson  <simon@josefsson.org>
46043
46044         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
46045         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
46046
46047         * modules/arpa_inet (arpa/inet.h): Use them.
46048
46049 2008-04-28  Eric Blake  <ebb9@byu.net>
46050
46051         Test getndelim2.
46052         * modules/getndelim2-tests: New file.
46053         * tests/test-getndelim2.c: Likewise.
46054         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
46055         stream.
46056         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
46057
46058         * MODULES.html.sh: Document new module.
46059
46060 2008-04-20  Bruno Haible  <bruno@clisp.org>
46061
46062         * lib/c-stack.c (die): Use raise.
46063         * modules/c-stack (Depends-on): Add raise.
46064
46065 2008-04-28  Bruno Haible  <bruno@clisp.org>
46066
46067         Expect rpmatch to be declared.
46068         * lib/yesno.c (rpmatch): Remove declaration.
46069
46070         Declare rpmatch.
46071         * lib/stdlib.in.h (rpmatch): New declaration.
46072         * lib/rpmatch.c: Include <stdlib.h> first.
46073         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
46074         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
46075         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
46076         HAVE_RPMATCH.
46077         * modules/rpmatch (Depends-on): Add stdlib, extensions.
46078         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46079         (Include): Set to <stdlib.h>.
46080         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
46081         HAVE_RPMATCH.
46082         * NEWS: Document the change.
46083
46084 2008-04-28  Bruno Haible  <bruno@clisp.org>
46085
46086         Change rpmatch to use nl_langinfo when appropriate.
46087         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
46088         (N_): New macro.
46089         (localized_pattern): New function/macro.
46090         (try): Remove match, nomatch arguments. Copy the pattern into safe
46091         memory before caching it.
46092         (rpmatch): Use localized_pattern. Add translator comments.
46093         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
46094         Suggested by Eric Blake.
46095         * modules/rpmatch (Depends-on): Add stdbool.
46096
46097 2008-04-28  Eric Blake  <ebb9@byu.net>
46098
46099         Add rawmemchr module, matching glibc.
46100         * modules/string (Makefile.am): New indicator.
46101         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
46102         * lib/string.in.h (rawmemchr): Declare when appropriate.
46103         * modules/rawmemchr: New file.
46104         * m4/rawmemchr.m4: Likewise.
46105         * lib/rawmemchr.c: Likewise.
46106         * modules/rawmemchr-tests: Likewise.
46107         * tests/test-rawmemchr.c: Likewise.
46108         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
46109         module.
46110         * modules/strchrnul (Depends-on): Add rawmemchr.
46111         * lib/strchrnul.c (strchrnul): Optimize a corner case.
46112
46113         Whitespace cleanup.
46114         * tests/test-strchrnul.c: Reindent.
46115         * lib/strchrnul.c: Likewise.
46116
46117         Optimize and test strchrnul.
46118         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
46119         * modules/strchrnul-tests: New file.
46120         * tests/test-strchrnul.c: Likewise.
46121
46122         Remove intprops dependency.
46123         * modules/memchr (Depends-on): Remove intprops.
46124         * modules/memrchr (Depends-on): Likewise.
46125         * modules/memchr2 (Depends-on): Likewise.
46126         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
46127         * lib/memrchr.c (__memrchr): Likewise.
46128         * lib/memrchr2.c (memchr2): Likewise.
46129         Reported by Simon Josefsson.
46130
46131 2008-04-28  Simon Josefsson  <simon@josefsson.org>
46132
46133         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
46134         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46135
46136 2008-04-28  Simon Josefsson  <simon@josefsson.org>
46137
46138         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
46139
46140         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
46141
46142         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
46143
46144         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
46145         declarations.
46146         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
46147
46148         * m4/inet_pton.m4: Don't check for header files.
46149
46150         * m4/inet_ntop.m4: Don't check for header files.
46151
46152 2008-04-28  Simon Josefsson  <simon@josefsson.org>
46153
46154         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
46155         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
46156         trigger for cygwin).
46157         Reported by Bruno Haible  <bruno@clisp.org>.
46158
46159 2008-04-28  Bruno Haible  <bruno@clisp.org>
46160
46161         * doc/posix-functions/strdup.texi: Mention mingw problem.
46162
46163 2008-04-27  Bruno Haible  <bruno@clisp.org>
46164
46165         * modules/stat-time-tests (Depends-on): Add sleep.
46166         * tests/test-stat-time.c (force_unlink): New function.
46167         (cleanup): Use it.
46168         (test_mtime): Remove the ctime related tests.
46169         (test_ctime): New function, containing the ctime related tests.
46170         (main): Call test_ctime, except on native Windows platforms.
46171
46172 2008-04-27  Bruno Haible  <bruno@clisp.org>
46173
46174         * lib/rpmatch.c (rpmatch): Add some comments.
46175         Reported by James Youngman <jay@gnu.org>.
46176
46177 2008-04-27  Bruno Haible  <bruno@clisp.org>
46178
46179         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
46180         quiet NaNs.
46181
46182 2008-04-27  Bruno Haible  <bruno@clisp.org>
46183
46184         Make test-yesno.sh work on mingw.
46185         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
46186         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
46187         (main): Set stdin to binary mode.
46188         * modules/yesno-tests (Depends-on): Add binary-io.
46189
46190 2008-04-27  Bruno Haible  <bruno@clisp.org>
46191
46192         Fix 'isfinite' on x86, x86_64, ia64 platforms.
46193         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
46194         argument that lie outside the IEEE 854 domain.
46195         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
46196         (gl_ISFINITE): Use it.
46197         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
46198
46199 2008-04-27  Bruno Haible  <bruno@clisp.org>
46200
46201         Allow local renaming in config.h.
46202         * lib/memrchr.c (memrchr): Don't undefine outside libc.
46203
46204 2008-04-27  Bruno Haible  <bruno@clisp.org>
46205
46206         * lib/memchr.c (__memchr): Change type of 'i'.
46207         * lib/memchr2.c (memchr2): Likewise.
46208
46209 2008-04-26  Eric Blake  <ebb9@byu.net>
46210         and Bruno Haible  <bruno@clisp.org>
46211
46212         Optimize and test memrchr.
46213         * modules/memrchr (Depends-on): Add intprops.
46214         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
46215         * modules/memrchr-tests: New file.
46216         * tests/test-memrchr.c: New file.
46217
46218 2008-04-26  Bruno Haible  <bruno@clisp.org>
46219
46220         Add tentative support for DragonFly BSD.
46221         * lib/stdio-impl.h: Add macros for DragonFly BSD.
46222         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
46223         fp.
46224         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
46225         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
46226         * lib/fpurge.c (fpurge): Likewise.
46227         * lib/freadable.c (freaadable): Likewise.
46228         * lib/freadahead.c (freadahead): Likewise.
46229         * lib/freading.c (freading): Likewise.
46230         * lib/freadptr.c (freadptr): Likewise.
46231         * lib/freadseek.c (freadptrinc): Likewise.
46232         * lib/fseeko.c (fseeko): Likewise.
46233         * lib/fseterr.c (fseterr): Likewise.
46234         * lib/fwritable.c (fwritable): Likewise.
46235         * lib/fwriting.c (fwriting): Likewise.
46236
46237 2008-04-26  Bruno Haible  <bruno@clisp.org>
46238
46239         * lib/stdio-impl.h: New file.
46240         * lib/fbufmode.c: Include stdio-impl.h.
46241         (fbufmode): Use fp_, remove redundant #defines.
46242         * lib/fflush.c: Include stdio-impl.h.
46243         (clear_ungetc_buffer): Remove redundant #defines.
46244         * lib/fpurge.c: Include stdio-impl.h.
46245         (fpurge): Remove redundant #defines.
46246         * lib/freadable.c: Include stdio-impl.h.
46247         (freadable): Remove redundant #defines.
46248         * lib/freadahead.c: Include stdio-impl.h.
46249         (freadahead): Remove redundant #defines.
46250         * lib/freading.c: Include stdio-impl.h.
46251         (freading): Remove redundant #defines.
46252         * lib/freadptr.c: Include stdio-impl.h.
46253         (freadptr): Remove redundant #defines.
46254         * lib/freadseek.c: Include stdio-impl.h.
46255         (freadptrinc): Remove redundant #defines.
46256         * lib/fseeko.c: Include stdio-impl.h.
46257         (rpl_fseeko): Remove redundant #defines.
46258         * lib/fseterr.c: Include stdio-impl.h.
46259         (fseterr): Remove redundant #defines.
46260         * lib/fwritable.c: Include stdio-impl.h.
46261         (fwritable: Remove redundant #defines.
46262         * lib/fwriting.c: Include stdio-impl.h.
46263         (fwriting): Remove redundant #defines.
46264         * modules/fbufmode (Files): Add lib/stdio-impl.h.
46265         * modules/fflush (Files): Likewise.
46266         * modules/fpurge (Files): Likewise.
46267         * modules/freadable (Files): Likewise.
46268         * modules/freadahead (Files): Likewise.
46269         * modules/freading (Files): Likewise.
46270         * modules/freadptr (Files): Likewise.
46271         * modules/freadseek (Files): Likewise.
46272         * modules/fseeko (Files): Likewise.
46273         * modules/fseterr (Files): Likewise.
46274         * modules/fwritable (Files): Likewise.
46275         * modules/fwriting (Files): Likewise.
46276
46277 2008-04-26  Bruno Haible  <bruno@clisp.org>
46278
46279         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
46280         restore_seek_optimization, update_fpos_cache): New functions, extracted
46281         from rpl_fflush.
46282         (rpl_fflush): Use them.
46283         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
46284         (gl_REPLACE_FFLUSH): Use it.
46285
46286 2008-04-26  Bruno Haible  <bruno@clisp.org>
46287
46288         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
46289         on Solaris.
46290         * tests/test-xstrtoimax.sh: Likewise.
46291         * tests/test-xstrtoumax.sh: Likewise.
46292         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46293
46294 2008-04-26  Bruno Haible  <bruno@clisp.org>
46295
46296         * modules/memchr-tests: New file.
46297         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
46298
46299 2008-04-26  Eric Blake  <ebb9@byu.net>
46300             Bruno Haible  <bruno@clisp.org>
46301
46302         * lib/memchr.c: Include intprops.h.
46303         (__memchr): Optimize parallel detection of matching bytes. Rename local
46304         variables. Add explanatory comments.
46305
46306 2008-04-26  Bruno Haible  <bruno@clisp.org>
46307
46308         Fix module 'memchr', broken since 2000-10-28.
46309         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
46310
46311 2008-04-26  Bruno Haible  <bruno@clisp.org>
46312
46313         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
46314         comments.
46315
46316 2008-04-25  Eric Blake  <ebb9@byu.net>
46317
46318         Use native fstatat on cygwin 1.7.0.
46319         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
46320         first.
46321
46322 2008-04-23  Eric Blake  <ebb9@byu.net>
46323
46324         Improve memchr2 performance.
46325         * lib/memchr2.c (memchr2): Further optimize parallel detection of
46326         NUL bytes.
46327         * modules/memchr2 (Depends-on): Use intprops.h.
46328
46329 2008-04-23  Simon Josefsson  <simon@josefsson.org>
46330
46331         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
46332         an inline function instead of a CPP macro.  Patch by Ben Pfaff
46333         <blp@cs.stanford.edu>.
46334
46335 2008-04-23  Simon Josefsson  <simon@josefsson.org>
46336
46337         * lib/arpa_inet.in.h: New file.
46338
46339         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
46340         (Makefile.am): Sed in substitute header file.
46341
46342         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
46343         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
46344
46345         * modules/inet_ntop (configure.ac): Use
46346         gl_ARPA_INET_MODULE_INDICATOR.
46347
46348         * modules/inet_pton (configure.ac): Use
46349         gl_ARPA_INET_MODULE_INDICATOR.
46350
46351 2008-04-22  Jim Meyering  <meyering@redhat.com>
46352
46353         * modules/verify (License): Re-license as LGPLv2+.
46354
46355 2008-04-22  Simon Josefsson  <simon@josefsson.org>
46356
46357         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
46358         parameter to void* as per POSIX standard (MinGW uses char*).
46359
46360 2008-04-21  Bruno Haible  <bruno@clisp.org>
46361
46362         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
46363         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
46364         Define to replacements if REPLACE_ISWCNTRL is 1.
46365         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
46366         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
46367         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
46368         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
46369         what it fixes.
46370         * doc/posix-functions/iswalpha.texi: Likewise.
46371         * doc/posix-functions/iswblank.texi: Likewise.
46372         * doc/posix-functions/iswcntrl.texi: Likewise.
46373         * doc/posix-functions/iswdigit.texi: Likewise.
46374         * doc/posix-functions/iswgraph.texi: Likewise.
46375         * doc/posix-functions/iswlower.texi: Likewise.
46376         * doc/posix-functions/iswprint.texi: Likewise.
46377         * doc/posix-functions/iswpunct.texi: Likewise.
46378         * doc/posix-functions/iswspace.texi: Likewise.
46379         * doc/posix-functions/iswupper.texi: Likewise.
46380         * doc/posix-functions/iswxdigit.texi: Likewise.
46381         Reported by Alain Guibert.
46382
46383 2008-04-21  Bruno Haible  <bruno@clisp.org>
46384
46385         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
46386         Patch by Alain Guibert.
46387
46388 2008-04-21  Bruno Haible  <bruno@clisp.org>
46389
46390         Fix test failures on mingw.
46391         * tests/test-xstrtol.c (print_no_progname): New function.
46392         (main): Install it in error_print_progname hook.
46393         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
46394         * tests/test-xstrtoimax.sh: Likewise.
46395         * tests/test-xstrtoumax.sh: Likewise.
46396
46397 2008-04-21  Bruno Haible  <bruno@clisp.org>
46398
46399         Fix test failure on mingw.
46400         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
46401
46402 2008-04-21  Bruno Haible  <bruno@clisp.org>
46403
46404         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
46405         Actually assign a value.
46406
46407 2008-04-20  Bruno Haible  <bruno@clisp.org>
46408
46409         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
46410         take 2.
46411         * lib/canonicalize.c (canonicalize_file_name): Elide if the
46412         'canonicalize-lgpl' module is also used.
46413         * lib/canonicalize-lgpl.c: Undo last change.
46414         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
46415
46416 2008-04-20  Bruno Haible  <bruno@clisp.org>
46417
46418         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
46419         config.h. Provide _mkdir based fallback for mingw.
46420         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
46421         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
46422         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
46423         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
46424         rather than defining mkdir in config.h.
46425         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
46426         (gl_SYS_STAT_H_DEFAULTS): New macro.
46427         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
46428         HAVE_IO_H any more.
46429         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
46430         HAVE_DECL_MKDIR and HAVE_IO_H.
46431
46432 2008-04-20  Bruno Haible  <bruno@clisp.org>
46433
46434         * lib/isapipe.c: Port to native Windows platforms.
46435
46436 2008-04-20  Bruno Haible  <bruno@clisp.org>
46437
46438         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
46439
46440 2008-04-21  Eric Blake  <ebb9@byu.net>
46441
46442         Work around preprocessors that don't handle UINTMAX_MAX.
46443         * lib/memchr2.c (memchr2): Avoid embedded #if.
46444         Reported by Alain Guibert, fix suggested by Bruno Haible.
46445
46446 2008-04-21  Simon Josefsson  <simon@josefsson.org>
46447
46448         * doc/posix-functions/strftime.texi (strftime): Explain better
46449         Windows incompatibility.  Suggested by Micah Cowan
46450         <micah@cowan.name>.
46451
46452 2008-04-20  Bruno Haible  <bruno@clisp.org>
46453
46454         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
46455         unistr/u8-mblen.
46456
46457 2008-04-20  Bruno Haible  <bruno@clisp.org>
46458
46459         Fix test failure on platforms with non-GNU iconv.
46460         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
46461         (U_TO_U8): Use it, rather than u16_to_u8.
46462         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
46463         units at the end of the input string.
46464         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
46465
46466 2008-04-20  Bruno Haible  <bruno@clisp.org>
46467
46468         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
46469         when the resulting length is 0.
46470         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
46471
46472 2008-04-20  Bruno Haible  <bruno@clisp.org>
46473
46474         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
46475         works.
46476         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
46477
46478 2008-04-20  Bruno Haible  <bruno@clisp.org>
46479
46480         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
46481         * modules/tsearch-tests (configure.ac): Test for initstate function.
46482
46483 2008-04-20  Bruno Haible  <bruno@clisp.org>
46484
46485         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
46486         for nlink_t if missing.
46487         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
46488
46489 2008-04-19  Bruno Haible  <bruno@clisp.org>
46490
46491         Work around snprintf bug on Linux libc5.
46492         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
46493         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
46494         gl_SNPRINTF_SIZE1.
46495         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46496         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
46497         that test failed.
46498         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
46499         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
46500         * modules/snprintf (Files): Add m4/printf.m4.
46501         * modules/vsnprintf (Files): Likewise.
46502         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
46503         * doc/posix-functions/vsnprintf.texi: Likewise.
46504
46505 2008-04-19  Bruno Haible  <bruno@clisp.org>
46506
46507         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
46508         from 0.0058 to less than 10^-7.
46509
46510 2008-04-19  Bruno Haible  <bruno@clisp.org>
46511
46512         Fix rounding when a precision is given.
46513         * lib/vasnprintf.c (is_borderline): New function.
46514         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
46515         9...9x.
46516         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
46517         %e, %g.
46518         * tests/test-vasprintf-posix.c (test_function): Likewise.
46519         * tests/test-snprintf-posix.h (test_function): Likewise.
46520         * tests/test-sprintf-posix.h (test_function): Likewise.
46521         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
46522         * tests/test-printf-posix.h (test_function): Likewise.
46523         * tests/test-printf-posix.output: Update.
46524         Reported by John Darrington <john@darrington.wattle.id.au> via
46525         Ben Pfaff <blp@cs.stanford.edu>.
46526
46527 2008-04-18  Simon Josefsson  <simon@josefsson.org>
46528
46529         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
46530         Suggested by Bruno Haible <bruno@clisp.org>.
46531
46532 2008-04-17  Bruno Haible  <bruno@clisp.org>
46533
46534         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
46535         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
46536         implementation.
46537         Patch by Bruce Merry <bmerry@gmail.com>.
46538
46539 2008-04-17  Simon Josefsson  <simon@josefsson.org>
46540
46541         * doc/posix-functions/strftime.texi (strftime): Mention that %e
46542         doesn't work under Windows.
46543
46544 2008-04-16  Bruno Haible  <bruno@clisp.org>
46545
46546         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
46547         New macros.
46548         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
46549         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
46550         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
46551         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
46552         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
46553         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
46554         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
46555         macros.
46556         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
46557         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
46558         Northern Sotho, Uighur.
46559
46560 2008-04-16  Bruno Haible  <bruno@clisp.org>
46561
46562         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
46563         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
46564         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
46565         Reported by Daniel Bergström <daniel@octocode.com>.
46566
46567 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
46568             Bruno Haible  <bruno@clisp.org>
46569
46570         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
46571         function.
46572         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
46573         New functions, mostly extracted from gl_locale_name_default.
46574         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
46575
46576 2008-04-16  Eric Blake  <ebb9@byu.net>
46577
46578         Adjust strtod detection to catch glibc 2.7 bug.
46579         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
46580         Reported by John Gatewood Ham.
46581
46582 2008-04-16  Bruno Haible  <bruno@clisp.org>
46583
46584         Add tentative support for Linux libc5.
46585         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
46586         * lib/fpurge.c (fpurge): Likewise.
46587         * lib/freadable.c (freadable): Likewise.
46588         * lib/freadahead.c (freadahead): Likewise.
46589         * lib/freading.c (freading): Likewise.
46590         * lib/freadptr.c (freadptr): Likewise.
46591         * lib/freadseek.c (freadptrinc): Likewise.
46592         * lib/fseeko.c (rpl_fseeko): Likewise.
46593         * lib/fseterr.c (fseterr): Likewise.
46594         * lib/fwritable.c (fwritable): Likewise.
46595         * lib/fwriting.c (fwriting): Likewise.
46596         Reported by Alain Guibert <alguibert+bts@free.fr>.
46597
46598 2008-04-15  Bruno Haible  <bruno@clisp.org>
46599
46600         * modules/mathl (configure.ac): Define module indicator.
46601
46602 2008-04-15  Bruno Haible  <bruno@clisp.org>
46603
46604         * lib/logl.c (logl): Remove unused variables.
46605
46606 2008-04-15  Bruno Haible  <bruno@clisp.org>
46607
46608         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
46609         fails.
46610
46611 2008-04-15  Bruno Haible  <bruno@clisp.org>
46612
46613         * lib/trim.c (trim2): Fix argument of isspace() macro.
46614
46615 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
46616
46617         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
46618         to 0.
46619         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
46620
46621 2008-04-14  Bruno Haible  <bruno@clisp.org>
46622
46623         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
46624         AC_LANG_PROGRAM argument.
46625         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
46626         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
46627         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
46628         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
46629         * m4/math_h.m4 (gl_MATH_H): Likewise.
46630         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
46631         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
46632         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
46633         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
46634         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
46635         * m4/regex.m4 (gl_REGEX): Likewise.
46636         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
46637         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
46638         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
46639         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
46640         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
46641         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
46642         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
46643         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
46644
46645 2008-04-14  Jim Meyering  <meyering@redhat.com>
46646
46647         test-strtod: fix typos: s/abs/fabs/
46648         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
46649
46650 2008-04-13  Bruno Haible  <bruno@clisp.org>
46651
46652         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
46653         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
46654         module is also used and while not building the reloc-wrapper.
46655
46656 2008-04-13  Bruno Haible  <bruno@clisp.org>
46657
46658         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
46659
46660 2008-04-13  Bruno Haible  <bruno@clisp.org>
46661
46662         Fix AIX compilation failure introduced on 2008-04-02.
46663         * tests/test-frexp.c (exp): Undefine before redefining.
46664         * tests/test-frexpl.c (exp): Likewise.
46665
46666 2008-04-13  Bruno Haible  <bruno@clisp.org>
46667
46668         Work around a HP-UX stdio bug.
46669         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
46670         * tests/test-ftello.c (main): Likewise.
46671         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
46672         * doc/posix-functions/ftello.texi: Likewise.
46673
46674 2008-04-13  Bruno Haible  <bruno@clisp.org>
46675
46676         Make test-signbit pass on HP-UX/hppa.
46677         * tests/test-signbit.c (minus_zerol): New variable.
46678         (test_signbitl): Use it.
46679
46680 2008-04-13  Bruno Haible  <bruno@clisp.org>
46681
46682         Make truncl work on OSF/1 4.0.
46683         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
46684         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
46685         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
46686         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
46687         HAVE_DECL_TRUNCL.
46688         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
46689         HAVE_DECL_TRUNCL.
46690         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
46691
46692 2008-04-13  Bruno Haible  <bruno@clisp.org>
46693
46694         * lib/unictype.h: Remove trailing comma from enumeration definitions.
46695
46696 2008-04-13  Bruno Haible  <bruno@clisp.org>
46697
46698         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
46699         expression, so as to avoid HP-UX 11 cc compiler bug.
46700
46701 2008-04-13  Bruno Haible  <bruno@clisp.org>
46702
46703         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
46704
46705 2008-04-13  Bruno Haible  <bruno@clisp.org>
46706
46707         * lib/git-merge-changelog.c: Remove empty declaration outside of
46708         functions.
46709
46710 2008-04-13  Bruno Haible  <bruno@clisp.org>
46711
46712         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
46713
46714 2008-04-13  Bruno Haible  <bruno@clisp.org>
46715
46716         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
46717         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
46718         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
46719         also if it exists but lacks definitions of the SHUT_* macros.
46720         * modules/sys_socket (Description): Update.
46721         Reported by Elbert Pol <e.pol@chello.nl>.
46722
46723 2008-04-13  Bruno Haible  <bruno@clisp.org>
46724
46725         * lib/localcharset.c (OS2): Don't redefine if already defined.
46726         Reported by Elbert Pol <e.pol@chello.nl>.
46727
46728 2008-04-13  Bruno Haible  <bruno@clisp.org>
46729
46730         * lib/binary-io.h [__EMX__]: Include <io.h>.
46731         Reported by Elbert Pol <e.pol@chello.nl>.
46732
46733 2008-04-12  Bruno Haible  <bruno@clisp.org>
46734
46735         * lib/fpucw.h: Enable the definitions also for x86_64.
46736         Needed for NetBSD/x86_64.
46737         Reported by Thomas Klausner <tk@giga.or.at>.
46738
46739 2008-04-12  Bruno Haible  <bruno@clisp.org>
46740
46741         * tests/test-strtod.c: Include isnand.h.
46742         (main): Use isnand instead of isnan.
46743         Reported by Jim Meyering.
46744
46745 2008-04-12  Bruno Haible  <bruno@clisp.org>
46746
46747         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
46748         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
46749
46750 2008-04-12  Jim Meyering  <meyering@redhat.com>
46751
46752         * m4/math_h.m4 (gl_MATH_H): Fix typos.
46753
46754 2008-04-12  Bruno Haible  <bruno@clisp.org>
46755
46756         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
46757         Reported by Elbert Pol <e.pol@chello.nl>.
46758
46759 2008-04-12  Eric Blake  <ebb9@byu.net>
46760
46761         Work around Solaris 10 math.h bug.
46762         * m4/math_h.m4 (gl_MATH_H): Check for bug.
46763         (gl_MATH_H_DEFAULTS): Set up default.
46764         * modules/math (Makefile.am): Replace new indicators.
46765         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
46766         * tests/test-math.c (main): Test this.
46767         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
46768         * doc/posix-headers/math.texi (math.h): Mention bug.
46769         Reported by Nelson H. F. Beebe and Jim Meyering.
46770
46771 2008-04-11  Bruno Haible  <bruno@clisp.org>
46772
46773         Adapt to future versions of Apple GCC.
46774         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
46775         Reported by Peter O'Gorman <peter@pogma.com>.
46776
46777 2008-04-11  Bruno Haible  <bruno@clisp.org>
46778
46779         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
46780
46781 2008-04-11  Bruno Haible  <bruno@clisp.org>
46782
46783         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
46784
46785         * modules/getaddrinfo-tests (Makefile.am): Define
46786         test_getaddrinfo_LDADD.
46787
46788 2008-04-11  Bruno Haible  <bruno@clisp.org>
46789
46790         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
46791         (init): Fix syntax error.
46792         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
46793         is declared.
46794
46795 2008-04-11  Bruno Haible  <bruno@clisp.org>
46796
46797         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
46798         * modules/glob (Depends-on): Add stdbool.
46799
46800 2008-04-11  Bruno Haible  <bruno@clisp.org>
46801
46802         * lib/trim.c: Include <string.h>.
46803
46804 2008-04-11  Eric Blake  <ebb9@byu.net>
46805
46806         Avoid compile failure on OS/2.
46807         * lib/regex_internal.h (internal_function): Disable optimization
46808         on OS/2 (__EMX__), where it caused compiler error.
46809         Reported by Elbert Pol.
46810
46811 2008-04-11  Bruno Haible  <bruno@clisp.org>
46812
46813         Flush the standard error stream before aborting. Needed on mingw.
46814         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
46815         * tests/test-array_list.c (ASSERT): Likewise.
46816         * tests/test-array_oset.c (ASSERT): Likewise.
46817         * tests/test-avltree_list.c (ASSERT): Likewise.
46818         * tests/test-avltree_oset.c (ASSERT): Likewise.
46819         * tests/test-avltreehash_list.c (ASSERT): Likewise.
46820         * tests/test-binary-io.c (ASSERT): Likewise.
46821         * tests/test-byteswap.c (ASSERT): Likewise.
46822         * tests/test-c-ctype.c (ASSERT): Likewise.
46823         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
46824         * tests/test-c-strcasestr.c (ASSERT): Likewise.
46825         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
46826         * tests/test-c-strstr.c (ASSERT): Likewise.
46827         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
46828         * tests/test-canonicalize.c (ASSERT): Likewise.
46829         * tests/test-carray_list.c (ASSERT): Likewise.
46830         * tests/test-ceilf1.c (ASSERT): Likewise.
46831         * tests/test-ceilf2.c (ASSERT): Likewise.
46832         * tests/test-ceill.c (ASSERT): Likewise.
46833         * tests/test-count-one-bits.c (ASSERT): Likewise.
46834         * tests/test-fbufmode.c (ASSERT): Likewise.
46835         * tests/test-fflush2.c (ASSERT): Likewise.
46836         * tests/test-floorf1.c (ASSERT): Likewise.
46837         * tests/test-floorf2.c (ASSERT): Likewise.
46838         * tests/test-floorl.c (ASSERT): Likewise.
46839         * tests/test-fopen.c (ASSERT): Likewise.
46840         * tests/test-fpending.c (ASSERT): Likewise.
46841         * tests/test-fprintf-posix.c (ASSERT): Likewise.
46842         * tests/test-fpurge.c (ASSERT): Likewise.
46843         * tests/test-freadable.c (ASSERT): Likewise.
46844         * tests/test-freadahead.c (ASSERT): Likewise.
46845         * tests/test-freading.c (ASSERT): Likewise.
46846         * tests/test-freadptr.c (ASSERT): Likewise.
46847         * tests/test-freadptr2.c (ASSERT): Likewise.
46848         * tests/test-freadseek.c (ASSERT): Likewise.
46849         * tests/test-freopen.c (ASSERT): Likewise.
46850         * tests/test-frexp.c (ASSERT): Likewise.
46851         * tests/test-frexpl.c (ASSERT): Likewise.
46852         * tests/test-fseek.c (ASSERT): Likewise.
46853         * tests/test-fseeko.c (ASSERT): Likewise.
46854         * tests/test-fstrcmp.c (ASSERT): Likewise.
46855         * tests/test-ftell.c (ASSERT): Likewise.
46856         * tests/test-ftello.c (ASSERT): Likewise.
46857         * tests/test-func.c (ASSERT): Likewise.
46858         * tests/test-fwritable.c (ASSERT): Likewise.
46859         * tests/test-fwriting.c (ASSERT): Likewise.
46860         * tests/test-getdelim.c (ASSERT): Likewise.
46861         * tests/test-getline.c (ASSERT): Likewise.
46862         * tests/test-i-ring.c (ASSERT): Likewise.
46863         * tests/test-iconv-utf.c (ASSERT): Likewise.
46864         * tests/test-iconv.c (ASSERT): Likewise.
46865         * tests/test-isfinite.c (ASSERT): Likewise.
46866         * tests/test-isnand.c (ASSERT): Likewise.
46867         * tests/test-isnanf.c (ASSERT): Likewise.
46868         * tests/test-isnanl.h (ASSERT): Likewise.
46869         * tests/test-ldexpl.c (ASSERT): Likewise.
46870         * tests/test-linked_list.c (ASSERT): Likewise.
46871         * tests/test-linkedhash_list.c (ASSERT): Likewise.
46872         * tests/test-localename.c (ASSERT): Likewise.
46873         * tests/test-lseek.c (ASSERT): Likewise.
46874         * tests/test-mbscasecmp.c (ASSERT): Likewise.
46875         * tests/test-mbscasestr1.c (ASSERT): Likewise.
46876         * tests/test-mbscasestr2.c (ASSERT): Likewise.
46877         * tests/test-mbscasestr3.c (ASSERT): Likewise.
46878         * tests/test-mbscasestr4.c (ASSERT): Likewise.
46879         * tests/test-mbschr.c (ASSERT): Likewise.
46880         * tests/test-mbscspn.c (ASSERT): Likewise.
46881         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
46882         * tests/test-mbspbrk.c (ASSERT): Likewise.
46883         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
46884         * tests/test-mbsrchr.c (ASSERT): Likewise.
46885         * tests/test-mbsspn.c (ASSERT): Likewise.
46886         * tests/test-mbsstr1.c (ASSERT): Likewise.
46887         * tests/test-mbsstr2.c (ASSERT): Likewise.
46888         * tests/test-mbsstr3.c (ASSERT): Likewise.
46889         * tests/test-memchr2.c (ASSERT): Likewise.
46890         * tests/test-memmem.c (ASSERT): Likewise.
46891         * tests/test-open.c (ASSERT): Likewise.
46892         * tests/test-printf-frexp.c (ASSERT): Likewise.
46893         * tests/test-printf-frexpl.c (ASSERT): Likewise.
46894         * tests/test-printf-posix.c (ASSERT): Likewise.
46895         * tests/test-quotearg.c (ASSERT): Likewise.
46896         * tests/test-rbtree_list.c (ASSERT): Likewise.
46897         * tests/test-rbtree_oset.c (ASSERT): Likewise.
46898         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
46899         * tests/test-round1.c (ASSERT): Likewise.
46900         * tests/test-roundf1.c (ASSERT): Likewise.
46901         * tests/test-roundl.c (ASSERT): Likewise.
46902         * tests/test-signbit.c (ASSERT): Likewise.
46903         * tests/test-sleep.c (ASSERT): Likewise.
46904         * tests/test-snprintf-posix.c (ASSERT): Likewise.
46905         * tests/test-snprintf.c (ASSERT): Likewise.
46906         * tests/test-sprintf-posix.c (ASSERT): Likewise.
46907         * tests/test-stat-time.c (ASSERT): Likewise.
46908         * tests/test-strcasestr.c (ASSERT): Likewise.
46909         * tests/test-strerror.c (ASSERT): Likewise.
46910         * tests/test-striconv.c (ASSERT): Likewise.
46911         * tests/test-striconveh.c (ASSERT): Likewise.
46912         * tests/test-striconveha.c (ASSERT): Likewise.
46913         * tests/test-strsignal.c (ASSERT): Likewise.
46914         * tests/test-strstr.c (ASSERT): Likewise.
46915         * tests/test-strtod.c (ASSERT): Likewise.
46916         * tests/test-trunc1.c (ASSERT): Likewise.
46917         * tests/test-trunc2.c (ASSERT): Likewise.
46918         * tests/test-truncf1.c (ASSERT): Likewise.
46919         * tests/test-truncf2.c (ASSERT): Likewise.
46920         * tests/test-truncl.c (ASSERT): Likewise.
46921         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
46922         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
46923         * tests/test-vasnprintf.c (ASSERT): Likewise.
46924         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
46925         * tests/test-vasprintf.c (ASSERT): Likewise.
46926         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
46927         * tests/test-vprintf-posix.c (ASSERT): Likewise.
46928         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
46929         * tests/test-vsnprintf.c (ASSERT): Likewise.
46930         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
46931         * tests/test-wcwidth.c (ASSERT): Likewise.
46932         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
46933         * tests/test-xprintf-posix.c (ASSERT): Likewise.
46934         * tests/test-xvasprintf.c (ASSERT): Likewise.
46935         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
46936         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
46937         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
46938         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
46939         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
46940         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
46941         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
46942         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
46943         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
46944         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
46945         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
46946         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
46947         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
46948         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
46949         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
46950         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
46951         * tests/unictype/test-block_list.c (ASSERT): Likewise.
46952         * tests/unictype/test-block_of.c (ASSERT): Likewise.
46953         * tests/unictype/test-block_test.c (ASSERT): Likewise.
46954         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
46955         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
46956         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
46957         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
46958         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
46959         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
46960         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
46961         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
46962         * tests/unictype/test-combining.c (ASSERT): Likewise.
46963         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
46964         * tests/unictype/test-digit.c (ASSERT): Likewise.
46965         * tests/unictype/test-mirror.c (ASSERT): Likewise.
46966         * tests/unictype/test-numeric.c (ASSERT): Likewise.
46967         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
46968         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
46969         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
46970         * tests/unictype/test-scripts.c (ASSERT): Likewise.
46971         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
46972         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
46973         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
46974         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
46975         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
46976         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
46977         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
46978         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
46979         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
46980         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
46981         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
46982         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
46983         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
46984         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
46985         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
46986         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
46987         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
46988         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
46989         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
46990         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
46991         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
46992         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
46993         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
46994         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
46995         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
46996         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
46997         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
46998         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
46999         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
47000         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
47001         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
47002         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
47003         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
47004         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
47005         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
47006         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
47007         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
47008         Reported by Eric Blake.
47009
47010 2008-04-11  Bruno Haible  <bruno@clisp.org>
47011
47012         * lib/wchar.in.h: Tweak comment.
47013
47014 2008-04-11  Bruno Haible  <bruno@clisp.org>
47015
47016         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
47017         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
47018         gl_COMMON.
47019         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
47020
47021 2008-04-11  Bruno Haible  <bruno@clisp.org>
47022
47023         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
47024
47025 2008-04-11  Simon Josefsson  <simon@josefsson.org>
47026
47027         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
47028         of attempting to use non-existing /dev/*random.  Based on patch
47029         from Adam Strzelecki <ono@java.pl> in
47030         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
47031
47032 2008-04-08  Bruno Haible  <bruno@clisp.org>
47033
47034         Add tentative support for emx+gcc.
47035         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
47036         * lib/fpurge.c (fpurge): Likewise.
47037         * lib/freadable.c (freadable): Likewise.
47038         * lib/freadahead.c (freadahead): Likewise.
47039         * lib/freading.c (freading): Likewise.
47040         * lib/freadptr.c (freadptr): Likewise.
47041         * lib/freadseek.c (freadptrinc): Likewise.
47042         * lib/fseeko.c (rpl_fseeko): Likewise.
47043         * lib/fseterr.c (fseterr): Likewise.
47044         * lib/fwritable.c (fwritable): Likewise.
47045         * lib/fwriting.c (fwriting): Likewise.
47046         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
47047
47048 2008-04-09  Eric Blake  <ebb9@byu.net>
47049
47050         Avoid some autoconf warnings.
47051         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
47052         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
47053         * m4/afs.m4 (gl_AFS): Likewise.
47054         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
47055         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
47056         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
47057         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
47058         (gl_INTEGER_TYPE_SUFFIX): Likewise.
47059         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
47060         (AC_CHECK_DECLS_ONCE): Likewise.
47061         Rename file...
47062         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
47063         gnulib-tool requires autoconf 2.59 or better.
47064         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
47065
47066 2008-04-08  Eric Blake  <ebb9@byu.net>
47067
47068         Use 'git describe --match' if present (added in git 1.5.5).
47069         * build-aux/git-version-gen: Limit result to tags that match 'v*'
47070         if possible.
47071
47072 2008-04-08  Bruno Haible  <bruno@clisp.org>
47073
47074         Add tentative support for OpenServer.
47075         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
47076         _ptr, _cnt.
47077         * lib/fpurge.c (fpurge): Likewise.
47078         * lib/freadable.c (freadable): Likewise.
47079         * lib/freadahead.c (freadahead): Likewise.
47080         * lib/freading.c (freading): Likewise.
47081         * lib/freadptr.c (freadptr): Likewise.
47082         * lib/freadseek.c (freadptrinc): Likewise.
47083         * lib/fseeko.c (rpl_fseeko): Likewise.
47084         * lib/fseterr.c (fseterr): Likewise.
47085         * lib/fwritable.c (fwritable): Likewise.
47086         * lib/fwriting.c (fwriting): Likewise.
47087         Reported by Roger Cornelius <rac@tenzing.org> and
47088         Brian K. White <brian@aljex.com>.
47089
47090 2008-04-06  Jim Meyering  <meyering@redhat.com>
47091
47092         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
47093
47094 2008-04-06  Bruno Haible  <bruno@clisp.org>
47095
47096         Avoid possible error with non-ASCII bytes in UTF-8 locales.
47097         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
47098         * tests/test-printf-posix.sh: Likewise.
47099         * tests/test-vfprintf-posix.sh: Likewise.
47100         * tests/test-vprintf-posix.sh: Likewise.
47101         * tests/test-xprintf-posix.sh: Likewise.
47102
47103 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47104
47105         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
47106         hide error from 'ls', needed on OS/2.
47107         Report by Elbert Pol <elbert.pol@gmail.com>.
47108
47109 2008-04-04  Eric Blake  <ebb9@byu.net>
47110
47111         Make test-fseeko.c failures meaningful.
47112         * tests/test-fseeko.c: Print line number on failure.
47113         * tests/test-fseek.c: Likewise.
47114         Reported by Nelson H. F. Beebe.
47115
47116         Improve strtod bug detection check.
47117         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
47118         required for Solaris 10.
47119         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
47120
47121 2008-04-04  Bruno Haible  <bruno@clisp.org>
47122
47123         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
47124         by m4/setenv.m4.
47125
47126 2008-04-03  Eric Blake  <ebb9@byu.net>
47127
47128         Ensure sane .version contents.
47129         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
47130         version string.
47131         * build-aux/git-version-gen: Improve documentation.
47132
47133         Make GNU make output nicer.
47134         * top/GNUmakefile [!_have-Makefile]: Add dependency on
47135         MAKECMDGOALS to enforce message for all command line targets.  Set
47136         srcdir for use in maint.mk.
47137
47138         Another maintainer tweak.
47139         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
47140         a target that regenerates version.
47141
47142 2008-04-03  Jim Meyering  <meyering@redhat.com>
47143
47144         vc-list-files: don't cause coreutils "make po-check" failure
47145         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
47146
47147 2008-04-03  Eric Blake  <ebb9@byu.net>
47148
47149         Allow VPATH usage of vc-list-files.
47150         * build-aux/vc-list-files (scriptversion): Add timestamp.
47151         (options): Add --help, --version, -C.
47152         (CVS): Support installed cvsu.
47153
47154 2008-04-02  Bruno Haible  <bruno@clisp.org>
47155
47156         Avoid some "statement with no effect" warnings from gcc.
47157         * tests/test-wctype.c (main): Explicitly ignore unused values.
47158         Reported by Jim Meyering.
47159
47160 2008-04-02  Jim Meyering  <meyering@redhat.com>
47161
47162         Avoid some warnings from "gcc -Wshadow".
47163         * tests/test-frexp.c (exp): Define to a different identifier.
47164         * tests/test-frexpl.c (exp): Likewise.
47165
47166 2008-04-03  Jim Meyering  <meyering@redhat.com>
47167
47168         bootstrap: remove dangling *.[ch] symlinks from lib
47169         * build-aux/bootstrap [dangling symlink removal]: Move find's
47170         -depth option to precede all others, to avoid a warning.
47171         Remove *.[ch] files too, and from "$source_base" (usually lib/).
47172
47173 2008-04-02  Bruno Haible  <bruno@clisp.org>
47174
47175         Avoid some warnings from "gcc -Wshadow".
47176         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
47177         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
47178         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
47179         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
47180         Reported by Jim Meyering.
47181
47182 2008-04-01  Bruno Haible  <bruno@clisp.org>
47183
47184         Fix test to work on IRIX 6.5 with cc.
47185         * tests/test-math.c (numeric_equal): New function.
47186         (main): Use it.
47187
47188 2008-04-01  Bruno Haible  <bruno@clisp.org>
47189
47190         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
47191
47192 2008-04-01  Bruno Haible  <bruno@clisp.org>
47193
47194         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
47195         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
47196         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
47197         (Depends-on): Remove math.
47198
47199         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
47200         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
47201         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
47202         (Depends-on): Remove math.
47203
47204         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
47205         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
47206         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
47207         (Depends-on): Remove math.
47208         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
47209         (Depends-on): Remove math.
47210
47211         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
47212         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
47213         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
47214         (Depends-on): Remove math.
47215         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
47216         (Depends-on): Remove math.
47217
47218         * tests/test-round1.c: Include nan.h.
47219         (main): Use NaNd instead of NAN.
47220         * modules/round-tests (Files): Add tests/nan.h.
47221
47222         * tests/test-trunc1.c: Include nan.h.
47223         (main): Use NaNd instead of NAN.
47224         * modules/trunc-tests (Files): Add tests/nan.h.
47225
47226         * tests/test-roundf1.c: Include nan.h.
47227         (main): Use NaNf instead of NAN.
47228         * modules/roundf-tests (Files): Add tests/nan.h.
47229
47230         * tests/test-truncf1.c: Include nan.h.
47231         (main): Use NaNf instead of NAN.
47232         * modules/truncf-tests (Files): Add tests/nan.h.
47233
47234         * tests/test-ceilf1.c: Include nan.h.
47235         (main): Use NaNf instead of NAN.
47236         * modules/ceilf-tests (Files): Add tests/nan.h.
47237
47238         * tests/test-floorf1.c: Include nan.h.
47239         (main): Use NaNf instead of NAN.
47240         * modules/floorf-tests (Files): Add tests/nan.h.
47241
47242         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
47243         (main): Use NaNf instead of NAN.
47244         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
47245
47246         * tests/test-isnand.c: Include nan.h instead of <math.h>.
47247         (main): Use NaNd instead of NAN.
47248         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
47249
47250         * tests/test-frexp.c: Include nan.h.
47251         (main): Use NaNd instead of NAN.
47252         * modules/frexp-tests (Files): Add tests/nan.h.
47253
47254         * lib/isnan.c: Don't include <math.h>.
47255         (FUNC): Don't use NAN macro.
47256         * modules/isnand-nolibm (Depends-on): Remove math.
47257         * modules/isnanf-nolibm (Depends-on): Remove math.
47258         * modules/isnanl (Depends-on): Remove math.
47259         * modules/isnanl-nolibm (Depends-on): Remove math.
47260
47261         * tests/nan.h: New file.
47262
47263 2008-04-01  Eric Blake  <ebb9@byu.net>
47264
47265         Fix typos.
47266         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
47267         values to be the right type.
47268
47269         For now, cater to gnulib strtod inaccuracies.
47270         * tests/test-strtod.c (main): Allow 1-ulp error on expected
47271         fractional results.  While not as nice from a QoI perspective, it
47272         is a quicker patch than correctly implementing decimal to binary
47273         rounding.
47274
47275 2008-03-31  Eric Blake  <ebb9@byu.net>
47276
47277         Guarantee a definition of NAN.
47278         * lib/math.in.h (NAN): Define if missing.
47279         * tests/test-math.c (main): Test it.
47280         * doc/posix-headers/math.texi (math.h): Document this.
47281         * lib/isnan.c (rpl_isnand): Use it.
47282         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
47283         * tests/test-floorf1.c (NaN): Likewise.
47284         * tests/test-frexp.c (NaN): Likewise.
47285         * tests/test-isnand.c (NaN): Likewise.
47286         * tests/test-isnanf.c (NaN): Likewise.
47287         * tests/test-round1.c (NaN): Likewise.
47288         * tests/test-roundf1.c (NaN): Likewise.
47289         * tests/test-snprintf-posix.h (NaN): Likewise.
47290         * tests/test-sprintf-posix.h (NaN): Likewise.
47291         * tests/test-trunc1.c (NaN): Likewise.
47292         * tests/test-truncf1.c (NaN): Likewise.
47293         * tests/test-vasnprintf-posix.c (NaN): Likewise.
47294         * tests/test-vasprintf-posix.c (NaN): Likewise.
47295         * modules/isnand-nolibm (Depends-on): Add math.
47296         * modules/isnanf-nolibm (Depends-on): Likewise.
47297         * modules/isnanl (Depends-on): Likewise.
47298         * modules/isnanl-nolibm (Depends-on): Likewise.
47299         * modules/snprintf-posix-tests (Depends-on): Likewise.
47300         * modules/sprintf-posix-tests (Depends-on): Likewise.
47301         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
47302         * modules/vsprintf-posix-tests (Depends-on): Likewise.
47303         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
47304         * modules/vasprintf-posix-tests (Depends-on): Likewise.
47305
47306 2008-03-31  Bruno Haible  <bruno@clisp.org>
47307
47308         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
47309         * doc/posix-functions/strtod.texi: Likewise.
47310
47311 2008-03-31  Bruno Haible  <bruno@clisp.org>
47312
47313         * tests/test-strtod.c (main): Don't use C99 syntax.
47314
47315 2008-03-31  Bruno Haible  <bruno@clisp.org>
47316
47317         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
47318         Reported by Eric Blake.
47319
47320 2008-03-31  Jim Meyering  <meyering@redhat.com>
47321
47322         Don't compare actual signbit return values.
47323         * tests/test-strtod.c (main): Rather, compare only their
47324         zero/non-zero nature.
47325
47326 2008-03-31  Eric Blake  <ebb9@byu.net>
47327
47328         More strtod documentation.
47329         * doc/posix-functions/strtod.texi (strtod): Interpret more test
47330         failures as distinct bugs.
47331
47332 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
47333
47334         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
47335         Problem reported by Erik Benada in
47336         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
47337
47338 2008-03-30  Bruno Haible  <bruno@clisp.org>
47339
47340         * tests/test-strtod.c: Add comments about which assertion fails on which
47341         platform.
47342         * doc/posix-functions/strtod.texi: Add info about many more platforms.
47343
47344 2008-03-30  Eric Blake  <ebb9@byu.net>
47345
47346         Test signbit behavior on zeros.
47347         * tests/test-signbit.c (test_signbitf): Add tests for zero.
47348         (test_signbitd, test_signbitl): Likewise.
47349
47350         More strtod touchups.
47351         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
47352         sign of negative underflow, for now.  Use .5, not .1.
47353         * doc/posix-functions/strtod.texi (strtod): Mention these
47354         limitations.
47355         Reported by Jim Meyering.
47356
47357 2008-03-30  Bruno Haible  <bruno@clisp.org>
47358
47359         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
47360         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
47361
47362 2008-03-30  Bruno Haible  <bruno@clisp.org>
47363
47364         Avoid failure when attempting to return empty iconv results on some
47365         platforms.
47366         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
47367         allocation, don't report ENOMEM when the resulting string is empty.
47368
47369 2008-03-30  Bruno Haible  <bruno@clisp.org>
47370
47371         Fix buffer overrun.
47372         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
47373         Don't consider the width for tmp_length. Check count against tmp_length
47374         before doing the padding. Ensure enough allocation during padding.
47375
47376 2008-03-30  Eric Blake  <ebb9@byu.net>
47377
47378         strtod touchups.
47379         * lib/strtod.c (strtod): Avoid compiler warnings.
47380         Reported by Jim Meyering.
47381
47382 2008-03-30  Bruno Haible  <bruno@clisp.org>
47383
47384         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
47385         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
47386         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
47387         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
47388         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
47389         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
47390         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
47391         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
47392
47393         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
47394         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
47395         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
47396         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
47397         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
47398         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
47399         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
47400         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
47401
47402         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
47403         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
47404         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
47405         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
47406         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
47407         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
47408         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
47409         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
47410
47411         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
47412         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
47413
47414         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
47415         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
47416
47417         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
47418         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
47419
47420         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
47421         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
47422         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
47423
47424         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
47425         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
47426         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
47427
47428         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
47429         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
47430         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
47431
47432         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
47433         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
47434         * modules/vasprintf (Depends-on): Add EOVERFLOW.
47435
47436         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
47437         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
47438         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
47439         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
47440         (Depends-on): Add EOVERFLOW.
47441         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
47442         (Depends-on): Add EOVERFLOW.
47443         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
47444         (Depends-on): Add EOVERFLOW.
47445         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
47446         (Depends-on): Add EOVERFLOW.
47447         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
47448         (Depends-on): Add EOVERFLOW.
47449         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
47450         (Depends-on): Add EOVERFLOW.
47451         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
47452         (Depends-on): Add EOVERFLOW.
47453         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
47454         (Depends-on): Add EOVERFLOW.
47455
47456         * lib/sprintf.c (EOVERFLOW): Remove fallback.
47457         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
47458         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
47459
47460         * lib/snprintf.c (EOVERFLOW): Remove fallback.
47461         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
47462         * modules/snprintf (Depends-on): Add EOVERFLOW.
47463
47464         * lib/poll.c (EOVERFLOW): Remove fallback.
47465         * modules/poll (Depends-on): Add EOVERFLOW.
47466
47467         * lib/getugroups.c (EOVERFLOW): Remove fallback.
47468         * modules/getugroups (Depends-on): Add EOVERFLOW.
47469
47470         * lib/getdelim.c (EOVERFLOW): Remove fallback.
47471         * modules/getdelim (Depends-on): Add EOVERFLOW.
47472
47473         * lib/ftell.c (EOVERFLOW): Remove fallback.
47474         * modules/ftell (Depends-on): Add EOVERFLOW.
47475
47476         * lib/fprintf.c (EOVERFLOW): Remove fallback.
47477         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
47478         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
47479
47480         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
47481
47482         * modules/EOVERFLOW-tests: New file.
47483         * tests/test-EOVERFLOW.c: New file.
47484
47485         * modules/EOVERFLOW: New file.
47486         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
47487
47488 2008-03-30  Bruno Haible  <bruno@clisp.org>
47489
47490         Fix bug introduced on 2007-06-10.
47491         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
47492         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
47493
47494 2008-03-30  Bruno Haible  <bruno@clisp.org>
47495
47496         Improve freadseek's efficiency after ungetc.
47497         * lib/freadseek.c: Include freadahead.h.
47498         (freadptrinc): New function, extracted from freadseek.
47499         (freadseek): Use it in a loop. Use freadahead to determine the number
47500         of loop iterations.
47501         * modules/freadseek (Depends-on): Add freadahead.
47502         (configure.ac): Require AC_C_INLINE.
47503
47504 2008-03-30  Bruno Haible  <bruno@clisp.org>
47505
47506         * lib/freadseek.c (freadseek): Don't ignore the return value of
47507         freadptr.
47508
47509 2008-03-29  Eric Blake  <ebb9@byu.net>
47510
47511         Add hex float support.
47512         * modules/strtod (Depends-on): Add c-ctype.
47513         (Link): Mention POW_LIB.
47514         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
47515         whitespace between 'e' and exponent.
47516         * tests/test-strtod.c (main): Enable hex float tests.
47517         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
47518         now provides.
47519
47520         Document various strtod bugs, with some fixes.
47521         * doc/posix-functions/strtod.texi (strtod): Document bugs with
47522         "-0x", "inf", "nan", and hex constants.
47523         * doc/posix-functions/atof.texi (atof): Likewise.
47524         * modules/stdlib (Makefile.am): Support strtod.
47525         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
47526         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
47527         detect additional strtod bugs.
47528         * lib/stdlib.in.h (rpl_strtod): Add declarations.
47529         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
47530         bool where appropriate.  Parse 'inf' and 'nan'.
47531         * tests/test-strtod.c: New file.
47532         * modules/strtod (Depends-on): Add stdbool, stdlib.
47533         (configure.ac): Turn on module indicator.
47534         * modules/strtod-tests: New module.
47535
47536 2008-03-29  Eric Blake  <ebb9@byu.net>
47537
47538         Fix ftell on mingw.
47539         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
47540         * modules/ftell-tests (Depends-on): Add binary-io.
47541         * modules/ftello-tests (Depends-on): Likewise.
47542         * tests/test-ftell.c (main): Enhance test to cover behavior after
47543         ungetc.  Enforce binary mode.
47544         * tests/test-ftello.c (main): Likewise.
47545
47546         Pass test-freadseek on cygwin.
47547         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
47548         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
47549         ungetc buffer.
47550
47551         * tests/test-fflush2.c (main): Fix typo.
47552
47553 2008-03-29  Bruno Haible  <bruno@clisp.org>
47554
47555         * tests/test-fflush2.c (main): Temporarily disable the contents of
47556         this test.
47557         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
47558         Reported by Eric Blake.
47559
47560 2008-03-28  Simon Josefsson  <simon@josefsson.org>
47561
47562         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
47563         (GC_SHA224_DIGEST_SIZE): Add.
47564
47565         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
47566         (gc_hash_digest_length): Likewise.
47567         (gc_hash_buffer): Likewise.
47568
47569 2008-03-25  Bruno Haible  <bruno@clisp.org>
47570
47571         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
47572         detail which gettext release to use.
47573         Reported by Simon Josefsson.
47574
47575 2008-03-26  Jim Meyering  <meyering@redhat.com>
47576
47577         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
47578         * modules/gnumakefile (clean-GNUmakefile): Also, use
47579         test ... && ... || : syntax rather than if-then ... fi.
47580
47581         gnumakefile: Don't double-quote-expand $(VPATH) value.
47582         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
47583
47584 2008-03-24  Eric Blake  <ebb9@byu.net>
47585
47586         Alter GNUmakefile to install into top directory.
47587         * modules/maintainer-makefile: Split, and add dependency...
47588         * modules/gnumakefile: to this new module.
47589         * build-aux/GNUmakefile: Move...
47590         * top/GNUmakefile: ...here.
47591         * build-aux/maint.mk: Move...
47592         * top/maint.mk: ...here.
47593         * MODULES.html.sh (Support for maintaining...): Document new
47594         module.
47595
47596 2008-03-23  Bruno Haible  <bruno@clisp.org>
47597
47598         * gnulib-tool: New options --vc-files, --no-vc-files.
47599         (func_usage): Document them.
47600         (vc_files): New variable.
47601         (func_import): Consider vc_files.
47602         (func_create_testdir): Set vc_files to empty.
47603         Suggested by Jim Meyering and Karl Berry.
47604
47605 2008-03-23  Bruno Haible  <bruno@clisp.org>
47606
47607         Fix regex compilation error on HP-UX 11.
47608         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
47609         * modules/regex (Files): Add m4/mbstate_t.m4.
47610         Reported by Ton Voon <ton.voon@altinity.com>.
47611
47612 2008-03-23  Bruno Haible  <bruno@clisp.org>
47613
47614         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
47615
47616 2008-03-23  Eric Blake  <ebb9@byu.net>
47617             Bruno Haible  <bruno@clisp.org>
47618
47619         Install files from top/ in the destination directory.
47620         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
47621         augmentation also for the files from top/.
47622         (func_import, func_create_testdir): Rewrite file names:
47623         top/filename -> filename.
47624
47625 2008-03-23  Bruno Haible  <bruno@clisp.org>
47626
47627         Tweak "gnulib --version" output.
47628         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
47629
47630 2008-03-23  Bruno Haible  <bruno@clisp.org>
47631
47632         Tweak "gnulib --version" output.
47633         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
47634         rather than contents of ChangeLog, when possible.
47635
47636 2008-03-21  Eric Blake  <ebb9@byu.net>
47637
47638         More --version tweaks.
47639         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
47640         date of last ChangeLog entry.
47641
47642 2008-03-21  Jim Meyering  <meyering@redhat.com>
47643
47644         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
47645
47646 2008-03-20  Eric Blake  <ebb9@byu.net>
47647
47648         VPATH fix.
47649         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
47650
47651 2008-03-20  Simon Josefsson  <simon@josefsson.org>
47652
47653         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
47654         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
47655
47656 2008-03-20  Eric Blake  <ebb9@byu.net>
47657
47658         Sync GNUmakefile with coreutils.
47659         * build-aux/GNUmakefile (have-Makefile): Rename...
47660         (_have-Makefile): ...to this, for namespace consideration.
47661         (GNUmakefile.cfg): Include, if present.
47662         (_autoreconf): Define a default.
47663         (_is-dist-target): New rule for rebuilds to pick up intra-release
47664         version.
47665         (maint-cfg.mk): Rename...
47666         (cfg.mk): ...to this.
47667
47668 2008-03-18  Jim Meyering  <meyering@redhat.com>
47669
47670         New script and module: mktempd
47671         * MODULES.html.sh (maint+release support): Add mktempd.
47672         * build-aux/mktempd: New file.
47673         * modules/mktempd: New file.
47674
47675 2008-03-15  Jim Meyering  <meyering@redhat.com>
47676
47677         Undo last change.
47678         * lib/sha1.c, lib/md5.c: 63 != ~63.
47679         Reported by Andreas Schwab.
47680
47681         sha1.c, md5.c: Hoist a redundant expression.
47682         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
47683         "ctx->buflen" only once, before calling *_process_block.
47684         * lib/md5.c (md5_process_bytes): Likewise.
47685
47686 2008-03-14  Eric Blake  <ebb9@byu.net>
47687
47688         Bump copyright year in files generated by gnulib-tool.
47689         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
47690         gnulib-tool, rather than hard-coding it.
47691
47692         Fix 'gnulib-tool --version' output to work with git.
47693         * gnulib-tool (func_gnulib_dir): New function, extracted from...
47694         (startup): ...here.
47695         (func_version): Use it to invoke git-version-gen, rather than
47696         relying on CVS keyword expansion.  Modernize wording.
47697         (cvsdatestamp, last_checkin_date, version): Kill unused
47698         variables.
47699
47700 2008-03-12  Jim Meyering  <meyering@redhat.com>
47701
47702         Recognize optional cast of the argument to free.
47703         * build-aux/useless-if-before-free: Update regexps.
47704
47705         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
47706
47707 2008-03-11  Bruno Haible  <bruno@clisp.org>
47708
47709         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
47710         by a single package.
47711         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
47712         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
47713         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
47714         Reported by Sam Steingold <sds@gnu.org>.
47715
47716 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
47717
47718         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
47719         repositories.
47720
47721 2008-03-11  Bruno Haible  <bruno@clisp.org>
47722
47723         Avoid conflicts between local macro definitions.
47724         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
47725         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
47726
47727 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
47728             Bruno Haible  <bruno@clisp.org>
47729
47730         Make va_copy work with some version of xlc on AIX 5.1.
47731         * lib/stdarg.in.h: New file.
47732         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
47733         On AIX, use a <stdarg.h> file substitute.
47734         * modules/stdarg (Files): Add lib/stdarg.in.h.
47735         (Depends-on): Add include_next.
47736         (Makefile.am): Build a stdarg.h substitute if requested.
47737         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
47738
47739 2008-03-10  Bruno Haible  <bruno@clisp.org>
47740
47741         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
47742         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
47743         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
47744
47745 2008-03-10  Bruno Haible  <bruno@clisp.org>
47746
47747         * modules/stdlib (Depends-on): Add include_next, remove
47748         absolute-header.
47749
47750 2008-03-09  Bruno Haible  <bruno@clisp.org>
47751
47752         * lib/freadahead.h (freadahead): Document more precisely.
47753         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
47754         the sum of both buffer sizes.
47755         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
47756         * NEWS: Document the change.
47757
47758 2008-03-09  Bruno Haible  <bruno@clisp.org>
47759
47760         Extend freadptr to return also the buffer size.
47761         * lib/freadptr.h (freadptr): Add sizep argument.
47762         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
47763         (freadptr): Add sizep argument. Determine buffer size like freadahead
47764         does.
47765         * tests/test-freadptr.c: Don't include freadahead.h.
47766         (main): Adapt for new calling convention of freadptr.
47767         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
47768         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
47769         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
47770         tests/test-freadptr2.sh.
47771         (Depends): Remove freadahead.
47772         (TESTS): Add test-freadptr2.sh.
47773         (check_PROGRAMS): Add test-freadptr2.
47774
47775 2008-03-09  Bruno Haible  <bruno@clisp.org>
47776
47777         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
47778         Report and solution by Simon Josefsson.
47779
47780 2008-03-06  Bruno Haible  <bruno@clisp.org>
47781
47782         Make fflush after ungetc work on BSD platforms.
47783         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
47784         * tests/test-fflush2.c: New file.
47785         * tests/test-fflush2.sh: New file.
47786         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
47787         tests/test-fflush2.c.
47788         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
47789         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
47790
47791 2008-03-06  Eric Blake  <ebb9@byu.net>
47792
47793         Likewise for ftello.
47794         * modules/ftello (Dependencies): Add extensions.
47795         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
47796
47797 2008-03-06  Bruno Haible  <bruno@clisp.org>
47798
47799         * modules/fseeko (Dependencies): Add extensions.
47800         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
47801         Needed on glibc systems.
47802
47803 2008-03-06  Bruno Haible  <bruno@clisp.org>
47804
47805         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
47806         email address.
47807         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
47808
47809 2008-03-06  Bruno Haible  <bruno@clisp.org>
47810
47811         * users.txt: Add libgnupdf.
47812
47813 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
47814
47815         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
47816         (Header File Substitutes, Function Substitutes,
47817         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
47818         (Build robot for gnulib): Fix typo.
47819
47820 2008-03-06  Bruno Haible  <bruno@clisp.org>
47821
47822         * doc/gnulib-tool.texi (VCS Issues): Small updates.
47823         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
47824
47825 2008-03-06  Bruno Haible  <bruno@clisp.org>
47826
47827         * doc/func.texi: New file, extracted from doc/gnulib.texi.
47828         * doc/gnulib.texi: Include it.
47829
47830 2008-03-06  Simon Josefsson  <simon@josefsson.org>
47831
47832         * modules/func (License): Change license to unlimited; there was
47833         no LGPL parts in the module anyway.
47834
47835 2008-03-06  Simon Josefsson  <simon@josefsson.org>
47836
47837         * modules/__func__: Renamed to modules/func.
47838         * modules/__func__-tests: Renamed to modules/func-tests.
47839         * tests/test-__func__.c: Renamed to tests/test-func.c.
47840         * m4/__func__.m4: Renamed to m4/func.m4.
47841         * doc/gnulib.texi (__func__): Section renamed to func.
47842         Suggested by Eric Blake <ebb9@byu.net>.
47843
47844 2008-03-06  Simon Josefsson  <simon@josefsson.org>
47845
47846         * doc/gnulib.texi (__func__): Use C99 terminology when talking
47847         about __func__.  Make example self-contained.  Suggested by Eric
47848         Blake <ebb9@byu.net>.
47849
47850         * tests/test-__func__.c (main): Avoid extraneous () around __func.
47851         Suggested by Eric Blake <ebb9@byu.net>.
47852
47853 2008-03-06  Simon Josefsson  <simon@josefsson.org>
47854
47855         * modules/__func__: New file.
47856         * modules/__func__-tests: New file.
47857         * tests/test-__func__.c: New file.
47858         * m4/__func__.m4: New file.
47859         * doc/gnulib.texi (__func__): Document __func__ module.
47860
47861 2008-03-05  Simon Josefsson  <simon@josefsson.org>
47862
47863         * modules/byteswap (License): Re-license as LGPLv2+.
47864
47865 2008-03-05  Simon Josefsson  <simon@josefsson.org>
47866
47867         * doc/Makefile: Add pdf target.
47868
47869 2008-03-05  Simon Josefsson  <simon@josefsson.org>
47870
47871         * modules/inline (License): Use 'unlimited', since there are only
47872         *.m4 files in this module.
47873
47874 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
47875             Bruno Haible  <bruno@clisp.org>
47876
47877         Add support for HP C 7.1 on OpenVMS 8.3.
47878         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
47879
47880 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
47881
47882         Update VMS specifics.
47883         * lib/getopt.c [VMS]: Remove include of unixlib.h.
47884
47885 2008-03-02  Jim Meyering  <meyering@redhat.com>
47886
47887         Remove the last dependency on the "free" module.
47888         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
47889         Reported by Bob Proulx.
47890
47891         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
47892
47893         Remove useless "if" tests before free.  Deprecate "free" module.
47894         * doc/posix-functions/free.texi: Mention that this
47895         module is no longer useful.
47896         * modules/free (Notice): Say this module is obsolete.
47897         * modules/readutmp (Depends-on): Remove free.
47898         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
47899         * lib/putenv.c (putenv): Likewise.
47900         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
47901         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
47902         * tests/test-c-strcasestr.c (main): Likewise.
47903         * tests/test-c-strstr.c (main): Likewise.
47904         * tests/test-mbscasestr1.c (main): Likewise.
47905         * tests/test-mbscasestr2.c (main): Likewise.
47906         * tests/test-mbsstr1.c (main): Likewise.
47907         * tests/test-mbsstr2.c (main): Likewise.
47908         * tests/test-memmem.c (main): Likewise.
47909         * tests/test-strcasestr.c (main): Likewise.
47910         * tests/test-striconv.c (main): Likewise.
47911         * tests/test-striconveh.c (main): Likewise.
47912         * tests/test-striconveha.c (main): Likewise.
47913         * tests/test-strstr.c (main): Likewise.
47914
47915         * build-aux/git-version-gen: Adjust a comment and the Usage string.
47916
47917         bootstrap: sync from coreutils again
47918         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
47919
47920 2008-03-01  Jim Meyering  <meyering@redhat.com>
47921
47922         bootstrap: sync from coreutils
47923         * build-aux/bootstrap (update_po_files): Copy a .po file into place
47924         also when the target doesn't exist.
47925
47926 2008-03-01  Eric Blake  <ebb9@byu.net>
47927
47928         Fix bugs in last patch.
47929         * lib/memchr2.c (memchr2): Fix typo.
47930         * tests/test-memchr2.c: Test previous bug, and don't use GNU
47931         extension.
47932         Reported by Bruce Korb.
47933
47934         New module 'memchr2'.
47935         * modules/memchr2: New file.
47936         * modules/memchr2-tests: Likewise.
47937         * lib/memchr2.h: Likewise.
47938         * lib/memchr2.c: Likewise, based on memchr.c.
47939         * tests/test-memchr2.c: New test.
47940         * MODULES.html.sh (String handling): Add memchr2.
47941
47942 2008-02-29  Bruno Haible  <bruno@clisp.org>
47943
47944         * modules/freadseek-tests: New file.
47945         * tests/test-freadseek.sh: New file.
47946         * tests/test-freadseek.c: New file.
47947
47948         New module 'freadseek'.
47949         * modules/freadseek: New file.
47950         * lib/freadseek.h: New file.
47951         * lib/freadseek.c: New file.
47952         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
47953
47954 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
47955
47956         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
47957         wydawca.
47958
47959         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
47960         program_invocation_name and program_invocation_short_name are
47961         present.
47962
47963 2008-02-28  Bruno Haible  <bruno@clisp.org>
47964
47965         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
47966         * tests/test-freadptr.sh: Also test non-seekable stdin.
47967
47968 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
47969
47970         * build-aux/bootstrap (source_base, m4_base)
47971         (doc_base, tests_base): New variables.
47972         (gnulib_tool_options): Do not hardcode base directories, use
47973         the above variables instead.
47974
47975 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
47976
47977         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
47978
47979 2008-02-28  Bruno Haible  <bruno@clisp.org>
47980
47981         * modules/freadptr-tests: New file.
47982         * tests/test-freadptr.sh: New file.
47983         * tests/test-freadptr.c: New file.
47984
47985         New module 'freadptr'.
47986         * modules/freadptr: New file.
47987         * lib/freadptr.h: New file.
47988         * lib/freadptr.c: New file.
47989         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
47990
47991 2008-02-26  Karl Berry  <karl@freefriends.org>
47992
47993         Sync from Libtool:
47994         * libltdl/argz.c (argz_add, argz_count): New functions.
47995         * libltdl/argz.in.h: Declare them.
47996         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
47997
47998 2008-02-22  Bruno Haible  <bruno@clisp.org>
47999
48000         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
48001         is a pointer type.  Needed for HP-UX 10.
48002         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
48003         * doc/posix-functions/gmtime_r.texi: Likewise.
48004         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
48005
48006 2008-02-24  Bruno Haible  <bruno@clisp.org>
48007
48008         * modules/environ-tests: New file.
48009         * tests/test-environ.c: New file.
48010
48011         New module 'environ'.
48012         * modules/environ: New file.
48013         * lib/unistd.in.h (environ): New declaration.
48014         * m4/environ.m4: New file.
48015         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
48016         after use.
48017         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
48018         HAVE_DECL_ENVIRON.
48019         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
48020         HAVE_DECL_ENVIRON.
48021         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
48022         wrong claim that 'environ' is missing on some systems.
48023         * modules/execute (Depends-on): Add environ.
48024         * lib/execute.c (environ): Remove fallback declaration.
48025         * modules/pipe (Depends-on): Add environ.
48026         * lib/pipe.c (environ): Remove fallback declaration.
48027         * modules/setenv (Depends-on): Add environ.
48028         * lib/setenv.c (environ): Remove fallback declaration.
48029         * modules/unsetenv (Depends-on): Add environ.
48030         * lib/unsetenv.c (environ): Remove fallback declaration.
48031         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
48032         m4/environ.m4.
48033         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
48034         (gl_PREREQ_UNSETENV): Likewise.
48035
48036 2008-02-24  Bruno Haible  <bruno@clisp.org>
48037
48038         * doc/posix-functions/environ.texi: Document the MacOS X problem.
48039
48040 2008-02-20  Bob Proulx  <bob@proulx.com>
48041
48042         Enable use of older two part flavor 'git describe'.
48043         * build-aux/git-version-gen: If using the older two part flavor of
48044         git version then recreate the third part now present in the
48045         newer three part flavor of git describe.
48046
48047 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
48048
48049         * lib/fts.c (fts_build): Typo correction to comment.
48050
48051 2008-02-17  Bruno Haible  <bruno@clisp.org>
48052
48053         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
48054         generating no-op conflicts.
48055
48056 2008-02-17  Bruno Haible  <bruno@clisp.org>
48057
48058         Speed up by 10%.
48059         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
48060         result_entries, rather than an index-based loop.
48061
48062 2008-02-17  Bruno Haible  <bruno@clisp.org>
48063
48064         Speed up by 25%.
48065         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
48066         'hashcode_cached'.
48067         (entry_create): New function.
48068         (entry_hashcode): Use the cached hashcode if possible.
48069         (read_changelog_file, try_split_merged_entry): Use entry_create.
48070
48071 2008-02-17  Bruno Haible  <bruno@clisp.org>
48072
48073         Speed up from O(n^2) to O(n) for long ChangeLog files.
48074         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
48075         (read_changelog_file): Change implementation of entries_reversed list
48076         to rbtreehash.
48077         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
48078
48079 2008-02-17  Bruno Haible  <bruno@clisp.org>
48080
48081         New option --split-merged-entry.
48082         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
48083         (find_paragraph_end, try_split_merged_entry): New functions.
48084         (long_options): Add option --split-merged-entry.
48085         (usage): Document option --split-merged-entry.
48086         (main): Implement option --split-merged-entry.
48087         Reported by Eric Blake.
48088
48089 2008-02-17  Bruno Haible  <bruno@clisp.org>
48090
48091         * lib/git-merge-changelog.c: Include c-strstr.h.
48092         (main): Support the "git pull --rebase" situation.
48093         * modules/git-merge-changelog (Depends-on): Add c-strstr.
48094         Reported by Eric Blake.
48095
48096 2008-02-16  Eric Blake  <ebb9@byu.net>
48097
48098         Avoid doubling \ in common case of "c-maybe" quoting style.
48099         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
48100         eliding outer quotes.
48101         * lib/quotearg.h: Document this.
48102         * tests/test-quotearg.c (result_strings, inputs, results_g)
48103         (flag_results, locale_results): Test it by adding a new string to
48104         each test group.
48105         (compare_strings): Test new string.
48106
48107 2008-02-13  Eric Blake  <ebb9@byu.net>
48108
48109         Avoid trigraph quoting in default output.
48110         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
48111         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
48112         unless explicitly requested.
48113         * tests/test-quotearg.c (flag_results, main): Add additional tests.
48114
48115 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
48116
48117         Don't rely on signed integer overflowing to negative value.
48118         * lib/getugroups.c (getugroups): Include <limits.h>.
48119         Instead, compare against INT_MAX, and increment only if the test passes.
48120
48121 2008-02-13  Jim Meyering  <meyering@redhat.com>
48122         and Eric Blake  <ebb9@byu.net>
48123
48124         Avoid shadowing warning and compile errors on Linux.
48125         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
48126         forwarding macros on Linux.
48127         (dcgettext): Define a stub, for Linux.
48128         (results_g, main): Avoid warnings.
48129
48130 2008-02-12  Eric Blake  <ebb9@byu.net>
48131
48132         Silence warning in last patch.
48133         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
48134
48135         Quotearg part 4: add tests, fix c-maybe colon quoting.
48136         * lib/quotearg.h: Improve documentation.
48137         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
48138         escapes when adding outer quotes.  When quoting trigraphs, use
48139         valid C notation.  When quoting NUL, omit extra characters if next
48140         character is not digit.  Alter prototype.
48141         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
48142         callers.
48143         * modules/quotearg-tests: New module.
48144         * tests/test-quotearg.c: New test.
48145
48146 2008-02-07  Eric Blake  <ebb9@byu.net>
48147
48148         Quotearg part 3: add flag to control outer quote elision.
48149         * lib/quotearg.h (c_maybe_quoting_style): New style.
48150         (enum quoting_flags): Better documentation of flags.
48151         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
48152         c-maybe style.
48153         (quotearg_buffer_restyled): Handle new flag to elide outer
48154         quotes.
48155
48156         Quotearg part 2: add flag that can control NUL elision.
48157         * lib/quotearg.h (set_quoting_flags): New prototype.
48158         * lib/quotearg.c (struct quoting_options): Add flag field.
48159         (set_quoting_flags): New function.
48160         (quotearg_buffer_restyled): Add flags parameter.
48161         (quotearg_alloc_mem): Set the flag if length cannot be returned.
48162         (quotearg_n_options): Set the flag, since length cannot be
48163         returned.
48164         (quoting_options_from_style): Default flags correctly.
48165
48166         Quotearg part 1: more wrappers, restore quotearg_char state.
48167         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
48168         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
48169         (quotearg_colon_mem): New wrappers.
48170         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
48171         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
48172         functions.
48173         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
48174         (quotearg_colon_mem): New functions.
48175
48176 2008-02-11  Bruno Haible  <bruno@clisp.org>
48177
48178         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
48179         library in the current directory: it does not work with parallel make.
48180         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48181
48182 2008-02-11  Bruno Haible  <bruno@clisp.org>
48183
48184         * .gitattributes: New file.
48185
48186 2008-02-11  Jim Meyering  <meyering@redhat.com>
48187
48188         useless-if-before-free: Fix reversed exit values.
48189         * build-aux/useless-if-before-free: Use correct values
48190         for EXIT_MATCH and EXIT_NO_MATCH.
48191
48192         * build-aux/useless-if-before-free: Close stdout carefully.
48193
48194 2008-02-10  Bruno Haible  <bruno@clisp.org>
48195
48196         New module 'git-merge-changelog'.
48197         * modules/git-merge-changelog: New file.
48198         * lib/git-merge-changelog.c: New file.
48199
48200 2008-02-10  Jim Meyering  <meyering@redhat.com>
48201
48202         useless-if-before-free: New option: --list (-l).
48203
48204         useless-if-before-free: Don't exit immediately upon open failure.
48205         * build-aux/useless-if-before-free: Exit 2 for errors.
48206         Upon failure to open a file, don't exit immediately.
48207         Rather, just warn and continue with any remaining files.
48208
48209 2008-02-10  Bruno Haible  <bruno@clisp.org>
48210
48211         New abstract list operation 'node_set_value'.
48212         * lib/gl_list.h (gl_list_node_set_value): New function.
48213         (struct gl_list_implementation): New field node_set_value.
48214         * lib/gl_list.c (gl_list_node_set_value): New function.
48215         * lib/gl_array_list.c (gl_array_node_set_value): New function.
48216         (gl_array_list_implementation): Update.
48217         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
48218         (gl_carray_list_implementation): Update.
48219         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
48220         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
48221         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
48222         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
48223         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
48224         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
48225         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
48226         Update.
48227         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
48228         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
48229         (gl_sublist_list_implementation): Update.
48230
48231 2008-02-10  Bruno Haible  <bruno@clisp.org>
48232
48233         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
48234         Needed when ELEMENT is #defined to 'some_type *'.
48235
48236 2008-02-10  Jim Meyering  <meyering@redhat.com>
48237
48238         New script and module: useless-if-before-free
48239         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
48240         * build-aux/useless-if-before-free: New file.
48241         * modules/useless-if-before-free: New file.
48242
48243         * build-aux/gitlog-to-changelog: Use committer date, not author date.
48244
48245         xstrtol_error: Fix typo.
48246         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
48247         s/exit_failure/exit_status/.
48248
48249 2008-02-09  Jim Meyering  <meyering@redhat.com>
48250
48251         New script and module: gitlog-to-changelog
48252         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
48253         * modules/gitlog-to-changelog: New file.
48254         * build-aux/gitlog-to-changelog: New file.
48255
48256 2008-02-08  Jim Meyering  <meyering@redhat.com>
48257
48258         Avoid two "parameter unused" warnings.
48259         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
48260         Mark "st" as used.
48261
48262         Use "git COMMAND", not "git-COMMAND".
48263         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
48264         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
48265         * build-aux/git-version-gen: Use "git status", not "git-status".
48266
48267 2008-02-07  Bruno Haible  <bruno@clisp.org>
48268
48269         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
48270         Avoids a crash on Windows Vista.
48271         Reported by Adam Strzelecki <ono@java.pl> via
48272         Simon Josefsson <simon@josefsson.org>.
48273
48274 2008-02-06  Bruno Haible  <bruno@clisp.org>
48275
48276         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
48277         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
48278         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
48279         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
48280         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
48281         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48282         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
48283         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
48284         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
48285         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48286         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48287         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48288         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48289         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48290         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48291         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
48292         left-adjust flag.
48293         * tests/test-snprintf-posix.h (test_function): Likewise.
48294         * tests/test-sprintf-posix.h (test_function): Likewise.
48295         * tests/test-vasprintf-posix.c (test_function): Likewise.
48296         * doc/posix-functions/fprintf.texi: Update.
48297         * doc/posix-functions/printf.texi: Update.
48298         * doc/posix-functions/snprintf.texi: Update.
48299         * doc/posix-functions/sprintf.texi: Update.
48300         * doc/posix-functions/vfprintf.texi: Update.
48301         * doc/posix-functions/vprintf.texi: Update.
48302         * doc/posix-functions/vsnprintf.texi: Update.
48303         * doc/posix-functions/vsprintf.texi: Update.
48304         Reported by Peter Fales <psfales@alcatel-lucent.com>.
48305
48306 2008-02-06  Bruno Haible  <bruno@clisp.org>
48307
48308         Fix bug introduced on 2008-01-26.
48309         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
48310
48311 2008-02-06  Bruno Haible  <bruno@clisp.org>
48312
48313         Fix bug introduced on 2007-06-10.
48314         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
48315         !NEED_PRINTF_FLAG_ZERO.
48316
48317 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
48318
48319         getloadavg: use libperfstat on AIX5
48320         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
48321
48322 2008-02-03  Bruno Haible  <bruno@clisp.org>
48323
48324         * lib/diffseq.h: Add comments about required #includes.
48325         Reported by Michael Biggs <gnulib@doubleplum.net>.
48326
48327 2008-02-01  Bruno Haible  <bruno@clisp.org>
48328
48329         * users.txt: Add gnuit.
48330
48331 2008-01-31  Bruno Haible  <bruno@clisp.org>
48332
48333         * lib/md4.c (set_uint32): Mark as inline.
48334         * lib/md5.c (set_uint32): Likewise.
48335         * lib/sha1.c (set_uint32): Likewise.
48336         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
48337         * m4/md5.m4 (gl_MD5): Likewise.
48338         * m4/sha1.m4 (gl_SHA1): Likewise.
48339
48340 2008-01-31  Jim Meyering  <meyering@redhat.com>
48341
48342         Use "sizeof VAR", rather than a literal "4".
48343         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
48344         * lib/md4.c (md4_read_ctx): Likewise.
48345         * lib/sha1.c (sha1_read_ctx): Likewise.
48346
48347 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48348
48349         * tests/test-sha1.c: New file, based on test-md5.c.
48350
48351         * modules/crypto/sha1-tests: New file.
48352
48353 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48354
48355         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
48356
48357 2008-01-31  Jim Meyering  <meyering@redhat.com>
48358
48359         Prefer "sizeof v" over the equivalent "4".
48360         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
48361         * lib/md5.c (set_uint32): Likewise.
48362         * lib/sha1.c (set_uint32): Likewise.
48363
48364 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48365
48366         * lib/sha1.c (set_uint32): Mark function as static.
48367
48368 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48369
48370         md2: clarify comments to say that alignment is not required.
48371         * lib/md2.h: Remove warning about alignment in comment.
48372         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
48373         never been required.
48374
48375 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48376
48377         md4: adapt alignment constraint fix from sha1.
48378         * lib/md4.c (set_uint32): New function, from sha1.c
48379         (md4_read_ctx): Use it.
48380         (md4_finish_ctx): Doc fix.
48381         * lib/md4.h: Doc fix.
48382
48383 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48384
48385         md5: adapt alignment constraint fix from sha1.
48386         * lib/md5.c (set_uint32): New function, from sha1.c
48387         (md5_read_ctx): Use it.
48388         (md5_finish_ctx): Doc fix.
48389         * lib/md5.h: Doc fix.
48390
48391 2008-01-30  Peter Palfrader  <weasel@debian.org>
48392
48393         sha1: remove the result buffer alignment constraint
48394         * lib/sha1.c (set_uint32): New function.
48395         (sha1_read_ctx): Rewrite to remove the result buffer alignment
48396         constraint.
48397         (sha1_finish_ctx): Remove comment warning about alignment constraint.
48398         * lib/sha1.h: Likewise.
48399
48400 2008-01-30  Andreas Schwab  <schwab@suse.de>
48401             Bruno Haible  <bruno@clisp.org>
48402
48403         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
48404         correct definition of LDBL_MIN_EXP.
48405
48406 2008-01-30  Karl Berry  <karl@gnu.org>
48407
48408         * config/srclist-update: try to preserve x bit on updates.
48409         * config/srclistvars.sh: update for karl.
48410
48411 2008-01-29  Jim Meyering  <meyering@redhat.com>
48412
48413         vasnprintf.c: Avoid warning about unused label
48414         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
48415         "overflow" label definition and associated code with the
48416         same cpp condition that guards the sole use of that label.
48417
48418 2008-01-26  Bruno Haible  <bruno@clisp.org>
48419
48420         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
48421         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
48422         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
48423         * lib/isnanl-nolibm.h (isnanl): Likewise.
48424         Reported by Paul Eggert <eggert@cs.ucla.edu>.
48425
48426 2008-01-26  Bruno Haible  <bruno@clisp.org>
48427
48428         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
48429         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
48430
48431 2008-01-26  Bruno Haible  <bruno@clisp.org>
48432
48433         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
48434         GCC >= 4.0 built-in.
48435         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
48436
48437 2008-01-26  Bruno Haible  <bruno@clisp.org>
48438
48439         Rename isnan, applicable to 'double' only, to isnand.
48440         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
48441         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
48442         (configure.ac): Update.
48443         (Include): Replace "isnan.h" with "isnand.h".
48444         * m4/isnand.m4: Renamed from m4/isnan.m4.
48445         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
48446         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
48447         instead of isnan.c.
48448         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
48449         instead of HAVE_ISNAN_IN_LIBC.
48450         (isnand): Renamed from isnan.
48451         * lib/isnand.c: New file.
48452         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
48453         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
48454         (Makefile.am): Update.
48455         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
48456         Include isnand.h instead of isnan.h.
48457         (main): Test isnand instead of isnan.
48458         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
48459         isnan-nolibm.
48460         * modules/frexp (Depends-on): Likewise.
48461         * modules/frexp-tests (Depends-on): Likewise.
48462         * modules/frexp-nolibm (Depends-on): Likewise.
48463         * modules/frexp-nolibm-tests (Depends-on): Likewise.
48464         * modules/isfinite (Depends-on): Likewise.
48465         * modules/round-tests (Depends-on): Likewise.
48466         * modules/signbit (Depends-on): Likewise.
48467         * modules/signbit-tests (Depends-on): Likewise.
48468         * modules/snprintf-posix (Depends-on): Likewise.
48469         * modules/sprintf-posix (Depends-on): Likewise.
48470         * modules/trunc-tests (Depends-on): Likewise.
48471         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48472         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48473         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48474         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48475         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48476         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48477         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48478         * modules/vasnprintf-posix (Depends-on): Likewise.
48479         * modules/vasprintf-posix (Depends-on): Likewise.
48480         * modules/vfprintf-posix (Depends-on): Likewise.
48481         * modules/vsnprintf-posix (Depends-on): Likewise.
48482         * modules/vsprintf-posix (Depends-on): Likewise.
48483         * lib/frexp.c: Include isnand.h instead of isnan.h.
48484         (ISNAN): Set to isnand instead of isnan.
48485         * lib/isfinite.c: Include isnand.h instead of isnan.h.
48486         (gl_isfinited): Use isnand instead of isnan.
48487         * lib/signbitd.c: Include isnand.h instead of isnan.h.
48488         (gl_signbitd): Use isnand instead of isnan.
48489         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
48490         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
48491         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
48492         (main): Use isnand instead of isnan.
48493         * tests/test-round1.c: Include isnand.h.
48494         (main): Use isnand instead of isnan.
48495         * tests/test-round2.c: Include isnand.h instead of isnan.h.
48496         (ISNAN): Set to isnand instead of isnan.
48497         * tests/test-trunc1.c: Include isnand.h.
48498         (main): Use isnand instead of isnan.
48499         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
48500         (equal): Use isnand instead of isnan.
48501         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
48502         isnand-nolibm.
48503         * NEWS: Mention the change.
48504
48505 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
48506             Bruno Haible  <bruno@clisp.org>
48507
48508         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
48509         the GCC builtins for signbits are present and set
48510         REPLACE_SIGNBIT_USING_GCC if so.
48511         * lib/math.in.h (signbit): Define using GCC builtins if
48512         REPLACE_SIGNBIT_USING_GCC is set.
48513         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
48514         REPLACE_SIGNBIT_USING_GCC.
48515         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
48516
48517 2008-01-25  Jim Meyering  <meyering@redhat.com>
48518
48519         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
48520         * lib/poll.c: Include <config.h>, not "config.h".
48521         * tests/test-getaddrinfo.c: Likewise.
48522
48523 2008-01-25  Simon Josefsson  <simon@josefsson.org>
48524
48525         * modules/sockets-tests: New file.
48526
48527 2008-01-24  Simon Josefsson  <simon@josefsson.org>
48528
48529         * modules/sockets: New module, can be used to call WSA_Startup and
48530         WSA_Cleanup when needed.
48531
48532         * lib/sockets.h, lib/sockets.c: New files.
48533
48534         * m4/sockets.m4: New file.
48535
48536         * tests/test-sockets.c: New file.
48537
48538 2008-01-19  Bruno Haible  <bruno@clisp.org>
48539
48540         * doc/posix-headers: Renamed from doc/headers.
48541         * doc/posix-functions: Renamed from doc/functions.
48542         * doc/gnulib.texi: Update.
48543
48544 2008-01-19  Bruno Haible  <bruno@clisp.org>
48545
48546         * doc/glibc-functions/strcasestr.texi: Include contents of
48547         doc/functions/strcasestr.texi, fixing the list of platforms.
48548         * doc/functions/strcasestr.texi: Remove file.
48549
48550 2008-01-19  Bruno Haible  <bruno@clisp.org>
48551
48552         * doc/glibc-functions/memmem.texi: Include contents of
48553         doc/functions/memmem.texi.
48554         * doc/functions/memmem.texi: Remove file.
48555
48556 2008-01-18  Bruno Haible  <bruno@clisp.org>
48557
48558         * doc/glibc-functions/*.texi: New files.
48559         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
48560         to use the new files.
48561
48562 2008-01-17  Bruno Haible  <bruno@clisp.org>
48563
48564         * tests/test-gethostname.c (main): Fix printf statement.
48565
48566 2008-01-17  Simon Josefsson  <simon@josefsson.org>
48567
48568         * modules/gethostname-tests: New file.
48569
48570         * tests/test-gethostname.c: New file.
48571
48572 2008-01-17  Simon Josefsson  <simon@josefsson.org>
48573
48574         * lib/gethostname.c: Include string.h unconditionally, strncpy is
48575         used by the UNAME case.  Reported by Bruno Haible
48576         <bruno@clisp.org>.
48577
48578 2008-01-17  Eric Blake  <ebb9@byu.net>
48579
48580         Convert c-strcasestr to be more efficient.
48581         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
48582         (Depends-on): Add c-strcase, remove malloca, strnlen.
48583         * tests/test-c-strcasestr.c (main): Enhance test.
48584         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
48585
48586 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
48587
48588         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
48589         Use it in creating po/Makevars.
48590
48591 2008-01-15  Simon Josefsson  <simon@josefsson.org>
48592
48593         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
48594         Applications that requires it should initialize libgcrypt
48595         manually.
48596
48597 2008-01-16  Simon Josefsson  <simon@josefsson.org>
48598
48599         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
48600
48601 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
48602
48603         Fix problem with getdate on mingw32 reported by Simon Josefsson
48604         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
48605         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
48606         tzname", when deciding whether to declare tzname.
48607         * lib/strftime.c (tzname): Likewise.
48608
48609 2008-01-15  Bruno Haible  <bruno@clisp.org>
48610
48611         Work around a MacOS X 10.5 bug in frexpl().
48612         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
48613         * doc/functions/frexpl.texi: Document the bug.
48614         Reported by Elias Pipping <pipping@gentoo.org>.
48615
48616 2008-01-14  Eric Blake  <ebb9@byu.net>
48617
48618         Touch up previous patch.
48619         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
48620         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
48621
48622         Convert strcasestr module to use Two-Way algorithm.
48623         * modules/strcasestr-simple: New module, based on the old
48624         strcasestr, but with Two-Way rather than KMP.
48625         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
48626         * lib/string.in.h (rpl_strcasestr): Declare.
48627         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
48628         performance.
48629         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
48630         * modules/string (Makefile.am): Support strcasestr.
48631         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
48632         * modules/strcasestr-tests (Depends-on): Check for alarm.
48633         * tests/test-strcasestr.c: Augment test.
48634         * lib/str-two-way.h: Clean up stray macro.
48635         * NEWS: Document new module.
48636         * MODULES.html.sh (string handling): Likewise.
48637         * doc/functions/strcasestr.texi: New file.
48638         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
48639         here, since it is not a POSIX function.
48640
48641 2008-01-14  Colin Watson  <cjwatson@debian.org>
48642             Bruno Haible  <bruno@clisp.org>
48643
48644         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
48645         works fine; if not, set REPLACE_STRSIGNAL.
48646         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
48647         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
48648         REPLACE_STRSIGNAL.
48649         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
48650         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
48651         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
48652
48653 2008-01-14  Bruno Haible  <bruno@clisp.org>
48654
48655         * modules/strsignal (Include): Change to <string.h>.
48656
48657 2008-01-14  Colin Watson  <cjwatson@debian.org>
48658
48659         * modules/argp (Notice): Add a notice recommending to change
48660         XGETTEXT_OPTIONS.
48661         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
48662
48663 2008-01-13  Colin Watson  <cjwatson@debian.org>
48664
48665         * modules/strsignal-tests: New file.
48666         * tests/test-strsignal.c: New file.
48667
48668         * lib/strsignal.c: New file, from glibc with modifications.
48669         * lib/siglist.h: New file, from glibc with modifications.
48670         * lib/string.in.h (strsignal): New declaration.
48671         * m4/strsignal.m4: New file.
48672         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
48673         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
48674         * modules/strsignal: New file.
48675         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
48676         HAVE_DECL_STRSIGNAL.
48677
48678 2008-01-13  Bruno Haible  <bruno@clisp.org>
48679
48680         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
48681         locale encoding is not ASCII. Needed for OpenBSD 4.0.
48682         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
48683         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
48684
48685 2008-01-13  Bruno Haible  <bruno@clisp.org>
48686
48687         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
48688         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
48689         * lib/argp.h (__attribute__): Likewise.
48690         * lib/c-stack.c (__attribute__): Likewise.
48691         * lib/error.h (__attribute__): Likewise.
48692         * lib/fts.c (__attribute__): Likewise.
48693         * lib/openat.h (__attribute__): Likewise.
48694         * lib/stdio.in.h (__attribute__): Likewise.
48695         * lib/string.in.h (__attribute__): Likewise.
48696         * lib/utimens.c (__attribute__): Likewise.
48697         * lib/vasnprintf.h (__attribute__): Likewise.
48698         * lib/xalloc.h (__attribute__): Likewise.
48699         * lib/xprintf.h (__attribute__): Likewise.
48700         * lib/xstrtol.h (__attribute__): Likewise.
48701         * lib/xvasprintf.h (__attribute__): Likewise.
48702
48703 2008-01-12  Bruno Haible  <bruno@clisp.org>
48704
48705         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
48706         * doc/glibc-headers/a.out.texi: New file.
48707         * doc/glibc-headers/aliases.texi: New file.
48708         * doc/glibc-headers/alloca.texi: New file.
48709         * doc/glibc-headers/ar.texi: New file.
48710         * doc/glibc-headers/argp.texi: New file.
48711         * doc/glibc-headers/argz.texi: New file.
48712         * doc/glibc-headers/byteswap.texi: New file.
48713         * doc/glibc-headers/crypt.texi: New file.
48714         * doc/glibc-headers/endian.texi: New file.
48715         * doc/glibc-headers/envz.texi: New file.
48716         * doc/glibc-headers/err.texi: New file.
48717         * doc/glibc-headers/error.texi: New file.
48718         * doc/glibc-headers/execinfo.texi: New file.
48719         * doc/glibc-headers/fpu_control.texi: New file.
48720         * doc/glibc-headers/fstab.texi: New file.
48721         * doc/glibc-headers/fts.texi: New file.
48722         * doc/glibc-headers/getopt.texi: New file.
48723         * doc/glibc-headers/ieee754.texi: New file.
48724         * doc/glibc-headers/ifaddrs.texi: New file.
48725         * doc/glibc-headers/libintl.texi: New file.
48726         * doc/glibc-headers/mcheck.texi: New file.
48727         * doc/glibc-headers/mntent.texi: New file.
48728         * doc/glibc-headers/obstack.texi: New file.
48729         * doc/glibc-headers/paths.texi: New file.
48730         * doc/glibc-headers/printf.texi: New file.
48731         * doc/glibc-headers/pty.texi: New file.
48732         * doc/glibc-headers/resolv.texi: New file.
48733         * doc/glibc-headers/shadow.texi: New file.
48734         * doc/glibc-headers/sysexits.texi: New file.
48735         * doc/glibc-headers/ttyent.texi: New file.
48736
48737 2008-01-12  Jim Meyering  <meyering@redhat.com>
48738
48739         announce-gen: emit Gnulib's git-based version string.
48740         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
48741         New option --gnulib-version=V, where V is expected to be
48742         the output of running git describe in the gnulib directory.
48743         (get_tool_versions): Request feedback on xdelta.  I suspect it's
48744         not useful, and plan to stop publishing an xdelta file with each
48745         coreutils release.
48746
48747         * build-aux/announce-gen: Also check for lzma-compressed files.
48748
48749 2008-01-11  Bruno Haible  <bruno@clisp.org>
48750
48751         * tests/test-memmem.c (main): Increase maximum allowed time.
48752         * tests/test-strstr.c (main): Likewise.
48753
48754 2008-01-11  Bruno Haible  <bruno@clisp.org>
48755
48756         * doc/functions/memmem.texi: Add more precisions about platforms.
48757         * doc/functions/strstr.texi: Likewise.
48758
48759 2008-01-10  Eric Blake  <ebb9@byu.net>
48760
48761         * m4/strstr.m4: Delete cruft from copy-n-paste.
48762         Reported by Bruno Haible.
48763
48764 2008-01-10  Bruno Haible  <bruno@clisp.org>
48765
48766         Make c-strstr rely on strstr.
48767         * lib/c-strstr.c: Don't include str-kmp.h.
48768         (c_strstr): Define in terms of strstr.
48769         * modules/c-strstr (Files): Remove lib/str-kmp.h.
48770         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
48771
48772 2008-01-10  Bruno Haible  <bruno@clisp.org>
48773
48774         * doc/gnulib.texi (String Functions in C Locale): New section.
48775         * doc/c-ctype.texi: New file.
48776         * doc/c-strcase.texi: New file.
48777         * doc/c-strcaseeq.texi: New file.
48778         * doc/c-strcasestr.texi: New file.
48779         * doc/c-strstr.texi: New file.
48780         * doc/c-strtod.texi: New file.
48781         * doc/c-strtold.texi: New file.
48782
48783 2008-01-10  Eric Blake  <ebb9@byu.net>
48784
48785         * lib/relocatable.h: Fix a comment.
48786
48787 2008-01-10  Eric Blake  <ebb9@byu.net>
48788
48789         Share two-way algorithm.
48790         * lib/str-two-way.h: New file, merged from...
48791         * lib/memmem.c: ...here...
48792         * lib/strstr.c: ...and here.
48793         * modules/memmem (Files): Use it.
48794         * modules/strstr (Files): Likewise.
48795
48796         Avoid quadratic strstr implementations.
48797         * lib/strstr.c: New file.
48798         * m4/strstr.m4: Likewise.
48799         * modules/strstr: Likewise.
48800         * modules/strstr-tests: Likewise.
48801         * tests/test-strstr.c: Likewise.
48802         * lib/string.in.h (rpl_strstr): Declare.
48803         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
48804         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
48805         * modules/string (Makefile.am): Likewise.
48806         * MODULES.html.sh (string handling): Mention new module.
48807         * doc/functions/strstr.texi (strstr): Document the bug.
48808
48809 2008-01-10  Bruno Haible  <bruno@clisp.org>
48810
48811         * lib/relocatable.h (relocate): State whether result is freshly
48812         allocated or not.
48813         * lib/relocatable.c (relocate): Return a freshly allocated string
48814         instead of a pointer to a privately held string.
48815         Reported by Sylvain Beucler <beuc@gnu.org>.
48816
48817 2008-01-10  Colin Watson  <cjwatson@debian.org>
48818
48819         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
48820         s/S_ISNLK/S_ISLNK/.
48821
48822 2008-01-09  Bruno Haible  <bruno@clisp.org>
48823
48824         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
48825         and other files.
48826         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
48827         if it's only a guess.
48828         * modules/memmem: Simplify by depending on memmem-simple.
48829
48830 2008-01-09  Bruno Haible  <bruno@clisp.org>
48831
48832         Work around OpenBSD 4.0 tdelete() bug.
48833         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
48834         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
48835         macros and don't redefine the enum values.
48836         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
48837         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
48838         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
48839
48840 2008-01-09  Bruno Haible  <bruno@clisp.org>
48841
48842         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
48843         (main): Don't perform the tests if setlocale did not install a UTF-8
48844         locale. Needed on OpenBSD 4.0.
48845         * modules/wcwidth-tests (Depends-on): Add localcharset.
48846
48847 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
48848
48849         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
48850         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
48851         * NEWS: announce this.
48852         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
48853
48854 2008-01-09  Simon Josefsson  <simon@josefsson.org>
48855         and Eric Blake  <ebb9@byu.net>
48856
48857         Add memmem-simple module.
48858         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
48859         (gl_FUNC_MEMMEM): Separate performance from presence checks.
48860         * modules/memmem-simple: New file.
48861         * modules/memmem (Description): Tweak.
48862         * MODULES.html.sh (string handling): Mention new module.
48863         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
48864         addressed by memmem-simple.
48865         * NEWS: Document the difference.
48866
48867 2008-01-09  Eric Blake  <ebb9@byu.net>
48868
48869         Give gcc some memmem optimization hints.
48870         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
48871         (strcasestr): Declare as pure.
48872         * modules/memmem (Maintainer): Claim my implementation.
48873
48874 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48875
48876         Support AIX 6.1 and higher.
48877         * build-aux/config.libpath: Likewise.
48878         * build-aux/config.rpath: Likewise.
48879
48880 2008-01-08  Jim Meyering  <meyering@redhat.com>
48881             Bruno Haible  <bruno@clisp.org>
48882
48883         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
48884         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
48885         Reported by Peter Fales in
48886         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
48887
48888 2008-01-08  Bruno Haible  <bruno@clisp.org>
48889
48890         * modules/unictype/category-of (Depends-on): Add
48891         unictype/category-none.
48892         * modules/unictype/category-and-tests (Depends-on): Add
48893         unictype/category-{L,N,Lu,Nd}.
48894         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
48895         * modules/unictype/category-or-tests (Depends-on): Add
48896         unictype/category-{L,N}.
48897         * modules/unictype/category-name-tests (Depends-on): Add
48898         unictype/category-{Z,Nl}.
48899         Reported by Simon Josefsson.
48900
48901 2008-01-08  Bruno Haible  <bruno@clisp.org>
48902
48903         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
48904         convention better.
48905         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
48906         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
48907         Reported by Peter Miller <millerp@canb.auug.org.au>.
48908
48909 2008-01-08  Eric Blake  <ebb9@byu.net>
48910
48911         Rewrite memmem to guarantee linear complexity without malloc.
48912         * lib/memmem.c (memmem): Use Two-Way rather than
48913         Knuth-Morris-Pratt, to allow O(1) space usage.
48914         (critical_factorization, two_way_short_needle)
48915         (two_way_long_needle): New functions.
48916         (knuth_morris_pratt): Delete.
48917         * modules/memmem (Depends-on): No longer need malloca or stdbool.
48918         Add stdint.
48919         * tests/test-memmem.c (main): Add tests for periodic needle and
48920         sublinear performance.
48921         * doc/functions/memmem.texi (memmem): Document other deficiencies
48922         in cygwin and older glibc.
48923
48924 2008-01-08  Bruno Haible  <bruno@clisp.org>
48925
48926         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
48927         augmentation.
48928
48929 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
48930
48931         Add a configure time option: --disable-acl.
48932         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
48933         AC_ARG_ENABLE(acl).
48934
48935 2008-01-06  Simon Josefsson  <simon@josefsson.org>
48936
48937         * tests/test-localename.c: Don't include obsolete "setenv.h".
48938
48939         * modules/localename-tests (Depends-on): Need unsetenv.
48940
48941 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48942
48943         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
48944
48945 2008-01-06  Colin Watson  <cjwatson@debian.org>
48946
48947         * users.txt: Add man-db.
48948
48949 2008-01-07  Bruno Haible  <bruno@clisp.org>
48950
48951         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
48952         previous section name.
48953
48954 2008-01-07  Bruno Haible  <bruno@clisp.org>
48955
48956         * lib/progname.c (set_program_name): Don't strip off a leading
48957         "lt-" prefix outside a .libs directory.
48958         Suggested by Paul Eggert.
48959
48960 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
48961             Bruno Haible  <bruno@clisp.org>
48962
48963         Improve memory cleanup in 'relocatable' module.
48964         * lib/relocatable.h (compute_curr_prefix): Change return type to
48965         'char *'.
48966         * lib/relocatable.c (compute_curr_prefix): Change return type to
48967         'char *'. Free curr_installdir after use.
48968         (relocate): Free curr_prefix_better after use.
48969         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
48970
48971 2008-01-01  Bruno Haible  <bruno@clisp.org>
48972
48973         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
48974         failure on older glibc systems.
48975         Reported by Peter Fales <psfales@alcatel-lucent.com>.
48976
48977 2008-01-05  Eric Blake  <ebb9@byu.net>
48978
48979         Avoid quadratic system memmem.
48980         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
48981         Reported by Ralf Wildenhues.
48982
48983         Fix memmem test for mingw.
48984         * modules/memmem-tests (configure.ac): Check for alarm.
48985         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
48986         it.
48987         * doc/functions/memmem.texi: New file.
48988         * doc/gnulib.texi (Function Substitutes): Add memmem.
48989         Reported by Bruno Haible.
48990
48991 2008-01-04  Bruno Haible  <bruno@clisp.org>
48992
48993         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
48994         Require gl_HEADER_STRINGS_H_DEFAULTS, not
48995         gl_HEADER_STRING_H_DEFAULTS.
48996
48997 2008-01-04  Eric Blake  <ebb9@byu.net>
48998
48999         Shorten duration of memmem test.
49000         * tests/test-memmem.c (main): Use alarm to declare failure if test
49001         is taking too long.
49002         Reported by Ralf Wildenhues.
49003
49004 2007-12-21  Simon Josefsson  <simon@josefsson.org>
49005
49006         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
49007         string, needed by strerror.
49008
49009 2008-01-03  Colin Watson  <cjwatson@debian.org>
49010             Bruno Haible  <bruno@clisp.org>
49011
49012         * doc/gnulib-tool.texi (Localization): New section.
49013
49014 2008-01-02  Bruno Haible  <bruno@clisp.org>
49015
49016         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
49017         variables to 'unsigned char *' type.
49018         Reported by Paul Eggert.
49019
49020 2008-01-02  Jim Meyering  <jim@meyering.net>
49021
49022         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
49023
49024 2007-12-31  Jim Meyering  <jim@meyering.net>
49025
49026         Avoid use of private FTS type name.
49027         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
49028
49029 2007-12-30  Karl Berry  <karl@gnu.org>
49030
49031         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
49032         work around defect in Texinfo and/or the standalone Info browser.
49033
49034 2007-12-30  Bruno Haible  <bruno@clisp.org>
49035
49036         Unify 5 copies of the KMP code.
49037         * lib/str-kmp.h: New file.
49038         * lib/c-strcasestr.c: Include str-kmp.h.
49039         (knuth_morris_pratt): Remove function.
49040         (c_strcasestr): Update.
49041         * lib/c-strstr.c: Include str-kmp.h.
49042         (knuth_morris_pratt): Remove function.
49043         (c_strcasestr): Update.
49044         * lib/mbscasestr.c: Include str-kmp.h.
49045         (knuth_morris_pratt_unibyte): Remove function.
49046         * lib/mbsstr.c: Include str-kmp.h.
49047         (knuth_morris_pratt_unibyte): Remove function.
49048         * lib/strcasestr.c: Include str-kmp.h.
49049         (knuth_morris_pratt): Remove function.
49050         (strcasestr): Update.
49051         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
49052         * modules/c-strstr (Files): Likewise.
49053         * modules/mbscasestr (Files): Likewise.
49054         * modules/mbsstr (Files): Likewise.
49055         * modules/strcasestr (Files): Likewise.
49056         Suggested by Paul Eggert.
49057
49058 2007-12-30  Bruno Haible  <bruno@clisp.org>
49059
49060         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
49061         defined.
49062
49063 2007-12-30  Bruno Haible  <bruno@clisp.org>
49064
49065         * lib/xmalloca.h: Include xalloc.h.
49066         (xnmalloca): New macro.
49067
49068 2007-12-30  Bruno Haible  <bruno@clisp.org>
49069
49070         * lib/malloca.h (nmalloca): New macro.
49071         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
49072         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
49073         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
49074         knuth_morris_pratt_multibyte): Likewise.
49075         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
49076         knuth_morris_pratt_multibyte): Likewise.
49077         * lib/memmem.c (knuth_morris_pratt): Likewise.
49078         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
49079
49080 2007-12-25  Bruno Haible  <bruno@clisp.org>
49081
49082         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
49083         * lib/glob.c: Don't include openat.h.
49084         (link_exists2_p): Add back the code that deals with the
49085         !GLOB_ALTDIRFUNC case.
49086         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
49087         let it do the filename concatenation.
49088         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
49089         * modules/glob (Depends-on): Remove openat.
49090
49091 2007-12-31  Bruno Haible  <bruno@clisp.org>
49092
49093         * modules/dirfd (License): Change to LGPLv2+.
49094         Approved by Jim Meyering.
49095
49096 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
49097
49098         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
49099         when multiplying M by sizeof (size_t).
49100
49101 2007-12-10  Martin Lambers  <marlam@marlam.de>
49102
49103         Override getpagesize on mingw.
49104         * lib/getpagesize.c: New file.
49105         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
49106         * modules/getpagesize (Files): Add lib/getpagesize.c.
49107         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
49108         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
49109         REPLACE_GETPAGESIZE.
49110         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
49111
49112 2007-12-25  Bruno Haible  <bruno@clisp.org>
49113
49114         * modules/localcharset (Notice): New field.
49115         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
49116         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
49117
49118 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
49119             Bruno Haible  <bruno@clisp.org>
49120
49121         Avoid using the syntax symbol() in formatted documentation.
49122         * MODULES.html.sh (func_module): When replacing symbol() with a
49123         hyperlink, remove the parentheses. Show an error if some remain.
49124         Recognize and render the '...' syntax.
49125         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
49126         Rework. Add paragraph about GCC's inlining.
49127         * doc/alloca.texi: Likewise.
49128         * doc/error.texi: Remove parentheses from symbol reference.
49129         * doc/gnulib-intro.texi: Likewise.
49130         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
49131         * modules/fnmatch (Description): Reword to say "the ... function".
49132         * modules/full-read (Description): Likewise.
49133         * modules/full-write (Description): Likewise.
49134         * modules/safe-read (Description): Likewise.
49135         * modules/safe-write (Description): Likewise.
49136         * modules/strchrnul (Description): Likewise.
49137         * modules/trim (Description): Likewise.
49138         * modules/error (Description): Remove parentheses from symbol
49139         references.
49140         * modules/verror (Description): Likewise.
49141         Reported by Karl Berry.
49142
49143 2007-12-25  Bruno Haible  <bruno@clisp.org>
49144
49145         Fixup after 2007-10-16 commit.
49146         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
49147
49148 2007-12-24  Bruno Haible  <bruno@clisp.org>
49149
49150         Make --enable-relocatable work with DESTDIR.
49151         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
49152         to compute installdir from destprog.
49153         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
49154         also set the RELOC_DESTDIR variable.
49155         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
49156
49157 2007-12-24  Bruno Haible  <bruno@clisp.org>
49158
49159         Fix link error due to xalloc_die().
49160         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
49161         of xreadlink.
49162         * lib/relocwrapper.c: Update comments.
49163         * build-aux/install-reloc: Remove xreadlink.c from file list.
49164         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
49165         xreadlink.c.
49166         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
49167
49168 2007-12-24  Bruno Haible  <bruno@clisp.org>
49169
49170         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
49171         * lib/setenv.h: Remove file.
49172         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
49173         lib/setenv.h.
49174         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
49175         (Depends-on): Add stdlib.
49176         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
49177         gl_FUNC_UNSETENV.
49178         (Include): Replace setenv.h with <stdlib.h>.
49179         * modules/unsetenv: New file.
49180         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
49181         * lib/unsetenv.c: Include <stdlib.h> first.
49182         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
49183         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
49184         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
49185         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
49186         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
49187         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
49188         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
49189         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
49190         * doc/functions/unsetenv.texi: Update.
49191         * modules/xsetenv (Depends-on): Add unsetenv.
49192         * modules/getdate (Depends-on): Likewise.
49193         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
49194         * lib/xsetenv.c: Don't include setenv.h.
49195         * lib/getdate.y: Likewise.
49196         * lib/relocwrapper.c: Likewise.
49197         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
49198         (Depends-on): Add stdlib.
49199         * NEWS: Mention the changes.
49200         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
49201
49202 2007-12-23  Bruno Haible  <bruno@clisp.org>
49203
49204         * lib/memmem.c (memmem): Use lowercase variable names. Tab
49205         indentation.
49206
49207 2007-12-23  Bruno Haible  <bruno@clisp.org>
49208
49209         * lib/c-strcasestr.c: Add more comments.
49210         * lib/c-strstr.c: Likewise.
49211         * lib/mbscasestr.c: Likewise.
49212         * lib/mbsstr.c: Likewise.
49213         * lib/strcasestr.c: Likewise.
49214         * lib/memmem.c: Likewise.
49215
49216 2007-12-23  Bruno Haible  <bruno@clisp.org>
49217
49218         * tests/test-memmem.c: Include <string.h> first.
49219
49220 2007-12-22  Bruno Haible  <bruno@clisp.org>
49221
49222         * gnulib-tool (func_create_testdir): Change $auxdir while generating
49223         the contents of $testsbase.
49224         Reported by Ralf Wildenhues.
49225
49226 2007-12-22  Bruno Haible  <bruno@clisp.org>
49227
49228         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
49229         two variables local_ldadd_before, local_ldadd_last.
49230
49231 2007-12-20  Eric Blake  <ebb9@byu.net>
49232
49233         Work around circular library issue when cross-compiling.
49234         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
49235         that progname.o does not need to pull in rpl_memcmp.
49236
49237 2007-12-19  Eric Blake  <ebb9@byu.net>
49238
49239         Fix memmem to avoid O(n^2) worst-case complexity.
49240         * lib/memmem.c (knuth_morris_pratt): New function.
49241         (memmem): Use it if first few naive iterations fail.
49242         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
49243         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
49244         * modules/memchr (License): Likewise.
49245         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
49246         malloca.
49247         * tests/test-memmem.c: Rewrite, borrowing ideas from
49248         test-mbsstr1.c; the old version wouldn't even compile!
49249         * modules/memmem-tests: New file.
49250         * lib/string.in.h (rpl_memmem): Add declaration.
49251         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
49252         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
49253         REPLACE_MEMMEM.
49254
49255 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
49256
49257         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
49258         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
49259         before any system include files, and undef after them all.  This
49260         should fix a problem on VMS reported by John E. Malmberg in
49261         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
49262
49263 2007-12-17  Eric Blake  <ebb9@byu.net>
49264
49265         Revert addition of verify, for BSD/OS.
49266         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
49267         can't handle large files, for the sake of obsolete platforms.
49268         * modules/fseeko (Depends-on): Remove verify.
49269         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
49270         * doc/functions/ftello.texi (ftello): Likewise.
49271         * doc/functions/fgetpos.texi (fgetpos): Likewise.
49272         Reported by Larry Jones.
49273
49274 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
49275
49276         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
49277         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
49278
49279 2007-12-17  Jim Meyering  <meyering@redhat.com>
49280
49281         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
49282         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
49283         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
49284         * modules/getcwd (Depends-on): Add openat.
49285         Reported by Petr Salinger.
49286
49287 2007-12-17  Bruno Haible  <bruno@clisp.org>
49288
49289         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
49290         avoid a segmentation fault of the configure test on x86_64 systems.
49291
49292 2007-12-15  Jim Meyering  <meyering@redhat.com>
49293
49294         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
49295
49296 2007-12-13  Eric Blake  <ebb9@byu.net>
49297
49298         Another fseek test.
49299         * tests/test-fseek.c (main): Also test ungetc handling.
49300         * tests/test-fseeko.c (main): Likewise.
49301         * modules/fseeko (Depends-on): Add verify.
49302         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
49303         large.
49304         Reported by Larry Jones.
49305
49306         Fix fseeko on mingw.
49307         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
49308         seek.
49309
49310         Beef up fseek tests.
49311         * tests/test-fseek.c (main): Also test eof handling.
49312         * tests/test-fseeko.c (main): Likewise.
49313         Reported by Larry Jones.
49314
49315 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
49316
49317         Fix fseeko on BSD-based platforms.
49318         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
49319         successful seek.
49320
49321 2007-12-12  Eric Blake  <ebb9@byu.net>
49322
49323         Allow circular dependency of separate libtests.a
49324         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
49325         when use_libtests.
49326
49327 2007-12-11  Eric Blake  <ebb9@byu.net>
49328
49329         Fix bug with -0.0L in previous patch.
49330         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
49331         * tests/test-isnan.c (main): Also test on zeroes.
49332         * tests/test-isnanf.c (main): Likewise.
49333         * tests/test-isnanl.h (main): Likewise.
49334
49335         Detect pseudo-denormals on x86 even when cross-compiling.
49336         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
49337         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
49338         invalid bit patterns that happen to satisfy ==.
49339
49340         Avoid link failures with separate libtests.a.
49341         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
49342         last, to satisfy circular dependencies.
49343
49344 2007-12-11  Eric Blake  <ebb9@byu.net>
49345         and Bruno Haible  <bruno@clisp.org>
49346
49347         Fix OpenBSD 4.0 <float.h> handling of long double.
49348         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
49349         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
49350         * doc/headers/float.texi (float.h): Document OpenBSD bug.
49351
49352 2007-12-11  Jim Meyering  <meyering@redhat.com>
49353
49354         * users.txt: Add libvirt.
49355
49356         Support versions of autoconf prior to 2.59c.
49357         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
49358         if it is not already defined.
49359
49360 2007-12-09  Bruno Haible  <bruno@clisp.org>
49361
49362         Let 'gnulib-tool --import' collect sources needed for the tests in
49363         tests/ rather than in lib/.
49364         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
49365         argument. If true, add rules to generate libtests.a, and put libtests.a
49366         into $(LDADD). Consider source files in subdirectories and set
49367         uses_subdirs.
49368         (func_emit_initmacro_start, func_emit_initmacro_end,
49369         func_emit_initmacro_done): Pass all arguments explicitly.
49370         (func_import): Determine two module lists main_modules,
49371         testsrelated_modules. Determine use_libtests. Determine two variables
49372         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
49373         instead of just sed_transform_lib_file. Determine two variables
49374         main_files and testsrelated_files. Compute 'files' as the union of
49375         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
49376         func_add_or_update. In the generated gnulib-comp.m4, collect the
49377         object files for tests/ in different variables than those for lib/.
49378         Substitute LIBTESTS_LIBDEPS.
49379         (func_create_testdir): Combine the uses_subdirs results from
49380         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
49381
49382 2007-12-09  Bruno Haible  <bruno@clisp.org>
49383
49384         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
49385         the build-aux directory.
49386
49387 2007-12-09  Bruno Haible  <bruno@clisp.org>
49388
49389         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
49390         introduced on 2006-09-09.
49391
49392 2007-12-07  Jim Meyering  <meyering@redhat.com>
49393
49394         Let these macros work also with autoconf-2.59.
49395         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
49396         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
49397         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
49398
49399 2007-12-06  Jim Meyering  <meyering@redhat.com>
49400
49401         Avoid a configure-time syntax error in gl_FUNC_ACL.
49402         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
49403         function in each branch, before testing the cache variable.
49404
49405 2007-12-04  Eric Blake  <ebb9@byu.net>
49406
49407         Make scripts executable.
49408         * build-aux/config.guess: Add execute permissions.
49409         * build-aux/config.sub: Likewise.
49410         * build-aux/gendocs.sh: Likewise.
49411
49412         Fix frexp on mingw.
49413         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
49414         cross-compiling.
49415         * doc/functions/frexp.texi (frexp): Document the bug.
49416
49417         Make cygwin fseeko check more reliable.
49418         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
49419         version numbers, rather than unrelated feature check.
49420         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
49421         * doc/functions/ftello.texi (ftello): Likewise.
49422         Reported by Bruno Haible.
49423
49424         * m4/strerror.m4: Bump version number.
49425
49426 2007-12-03  Bruno Haible  <bruno@clisp.org>
49427
49428         * doc/functions/mprotect.texi: Mention the mingw problem.
49429
49430 2007-12-03  Eric Blake  <ebb9@byu.net>
49431
49432         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
49433         REPLACE_STRERROR is initialized before this macro.
49434
49435 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
49436
49437         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
49438         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
49439         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
49440         put -lsec in even for programs other than 'ls'.  This fixes a problem
49441         for gettext reported by Bruno Haible in
49442         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
49443         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
49444         Add support for Solaris 10.  This isn't efficient, but should get the
49445         job done for now.
49446
49447 2007-12-03  James Youngman  <jay@gnu.org>
49448
49449         * doc/regexprops-generic.texi: change "an close-group" to "a
49450         close-group" and "illegal" to "not allowed".
49451
49452 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49453
49454         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
49455         pr_byname.h. Needed for the rare case when the maintainer has done
49456         "make maintainer-clean" in the source directory and then attempts a
49457         build outside the source directory.
49458         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
49459         scripts_byname.h.
49460
49461 2007-12-02  Martin Lambers <marlam@marlam.de>
49462             Bruno Haible  <bruno@clisp.org>
49463
49464         * lib/getpagesize.h: Remove file.
49465         * lib/unistd.in.h: Include declaration of getpagesize here.
49466         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
49467         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
49468         HAVE_SYS_PARAM_H.
49469         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
49470         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
49471         * modules/getpagesize (Files): Remove lib/getpagesize.h.
49472         (Depends-on): Add unistd.
49473         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
49474         (Include): Use <unistd.h> instead of getpagesize.h.
49475         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
49476         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
49477         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
49478         gl_GETPAGESIZE invocation, already handled by module dependency.
49479         * lib/pagealign_alloc.c: Don't include getpagesize.h.
49480
49481 2007-12-02  Bruno Haible  <bruno@clisp.org>
49482
49483         * modules/strings-tests: New file.
49484         * tests/test-strings.c: New file.
49485
49486         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
49487         * lib/strings.in.h: New file.
49488         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
49489         * m4/strings_h.m4: New file.
49490         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
49491         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
49492         * modules/strings: New file.
49493         * modules/string (Makefile.am): Update.
49494         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
49495         Reported by Karl Berry.
49496
49497 2007-12-01  Eric Blake  <ebb9@byu.net>
49498
49499         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
49500         accomodate fix in cygwin 1.5.25.
49501
49502 2007-12-01  Jim Meyering  <meyering@redhat.com>
49503
49504         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
49505         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
49506         that would inhibit utf8-optimization of a regexp containing line-
49507         or buffer-anchors, e.g., `^', `$'.
49508
49509 2007-11-30  Bruno Haible  <bruno@clisp.org>
49510
49511         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
49512         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
49513         glthread_recursive_lock_init.
49514         * lib/lock.c (glthread_recursive_lock_init)
49515         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
49516         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
49517
49518 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
49519
49520         New function qset_acl, like set_acl but with syscall semantics.
49521         * lib/acl.h (qset_acl): New decl.
49522         * lib/acl.c (qset_acl): New function.
49523         (set_acl): Use new function.  Use more-consistent diagnostics.
49524
49525 2007-11-28  Jim Meyering  <meyering@redhat.com>
49526
49527         * modules/physmem (License): Change from GPL to LGPLv2+.
49528
49529 2007-11-26  Bruno Haible  <bruno@clisp.org>
49530
49531         * lib/vasnprintf.c (decode_long_double): Don't abort if the
49532         'long double' type has excess precision.
49533         Reported by Jim Meyering in
49534         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
49535
49536 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49537
49538         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
49539         Sync from <http://gnu.org/licenses>.
49540         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
49541         with license text from same location.
49542         * doc/maintain.texi, doc/standards.texi:  Sync from
49543         <http://savannah.gnu.org/projects/gnustandards>.
49544
49545 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
49546         and Jim Meyering  <meyering@redhat.com>
49547
49548         Adjust getdate' grammar to accept a slightly more regular language.
49549         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
49550         Before, the former was rejected.
49551         * lib/getdate.y (digits_to_date_time): New function, factored
49552         out of ...
49553         (number): ...here.  Just call digits_to_date_time.
49554         (hybrid): New non-terminal to handle an <unsigned number,
49555         signed relative offset> sequence consistently.
49556
49557 2007-11-18  Jim Meyering  <meyering@redhat.com>
49558
49559         Pull my changes from coreutils:
49560         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
49561         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
49562         use of $gnulib_tool_option_extras, so that it's separated from the
49563         preceding argument.
49564
49565         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
49566         * build-aux/bootstrap (cp_mark_as_generated): Create any required
49567         parent destination directories before copying a file into place.
49568
49569 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
49570
49571         bootstrap: work also with 4-argument variant of AC_INIT
49572         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
49573
49574 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
49575
49576         Port test-getaddrinfo to Solaris.
49577         Problem reported by Bruno Haible in
49578         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
49579         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
49580         explanation of setting 'hints'.
49581         Don't reject an implementation merely because it returns EAI_SERVICE.
49582         (EAI_SERVICE): Define to 0 if not defined.
49583
49584 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
49585
49586         The license of gnu-make and posix-shell is now "GPLed build tool".
49587         * modules/gnu-make (License): Likewise.
49588         * modules/posix-shell (License): Likewise.
49589
49590         New module posix-shell, for determining a POSIX shell
49591         or perhaps something that is close enough to a POSIX shell.
49592         * m4/posix-shell.m4: New file.
49593         * modules/posix-shell: New file.
49594
49595         * MODULES.html.sh: Mention new module.
49596
49597         New module gnu-make, for determining whether we're using GNU Make.
49598         * m4/gnu-make.m4: New file.
49599         * modules/gnu-make: New file.
49600         * MODULES.html.sh: Mention new module.
49601
49602 2007-11-14  Jim Meyering  <meyering@redhat.com>
49603
49604         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
49605         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
49606         use this macro to create a function _definition_.
49607         Remove useless "#undef ARGMATCH_DIE".
49608
49609 2007-11-14  Bruno Haible  <bruno@clisp.org>
49610
49611         * lib/config.charset: Update for OpenBSD 4.1.
49612         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
49613
49614 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
49615
49616         Document 64-bit #if problems in stdint.texi.
49617         * doc/headers/stdint.texi (stdint.h): Mention problems with
49618         64-bit-#if, and how to work around them.
49619
49620         Don't insist on 'long long int' support in the preprocessor.  It
49621         breaks too many things.  For example, PRIdMAX still uses a 'long
49622         long int' format with the latest Sun compiler, even though
49623         HAVE_LONG_LONG_INT isn't defined due to that compiler's
49624         preprocessor problem.  This causes the latest coreutils to dump
49625         core on Solaris 10 sparc with the Sun C compiler.
49626         Instead, fix the 2007-10-16 problem in a different way, by evaluating
49627         the troublesome expressions at configure-time, not at #if-time.
49628         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
49629         preprocessor.
49630         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
49631         compile-time C checks, done at 'configure'-time.
49632         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
49633         * modules/inttypes (Makefile): Substitute the new symbols that
49634         gl_INTTYPES_H now generates.
49635         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
49636
49637 2007-11-12  Bruno Haible  <bruno@clisp.org>
49638
49639         Tests for Unicode character classification functions.
49640
49641         * modules/unictype/bidicategory-byname-tests: New file.
49642         * modules/unictype/bidicategory-name-tests: New file.
49643         * modules/unictype/bidicategory-of-tests: New file.
49644         * modules/unictype/bidicategory-test-tests: New file.
49645         * modules/unictype/block-list-tests: New file.
49646         * modules/unictype/block-of-tests: New file.
49647         * modules/unictype/block-test-tests: New file.
49648         * modules/unictype/category-C-tests: New file.
49649         * modules/unictype/category-Cc-tests: New file.
49650         * modules/unictype/category-Cf-tests: New file.
49651         * modules/unictype/category-Cn-tests: New file.
49652         * modules/unictype/category-Co-tests: New file.
49653         * modules/unictype/category-Cs-tests: New file.
49654         * modules/unictype/category-L-tests: New file.
49655         * modules/unictype/category-Ll-tests: New file.
49656         * modules/unictype/category-Lm-tests: New file.
49657         * modules/unictype/category-Lo-tests: New file.
49658         * modules/unictype/category-Lt-tests: New file.
49659         * modules/unictype/category-Lu-tests: New file.
49660         * modules/unictype/category-M-tests: New file.
49661         * modules/unictype/category-Mc-tests: New file.
49662         * modules/unictype/category-Me-tests: New file.
49663         * modules/unictype/category-Mn-tests: New file.
49664         * modules/unictype/category-N-tests: New file.
49665         * modules/unictype/category-Nd-tests: New file.
49666         * modules/unictype/category-Nl-tests: New file.
49667         * modules/unictype/category-No-tests: New file.
49668         * modules/unictype/category-P-tests: New file.
49669         * modules/unictype/category-Pc-tests: New file.
49670         * modules/unictype/category-Pd-tests: New file.
49671         * modules/unictype/category-Pe-tests: New file.
49672         * modules/unictype/category-Pf-tests: New file.
49673         * modules/unictype/category-Pi-tests: New file.
49674         * modules/unictype/category-Po-tests: New file.
49675         * modules/unictype/category-Ps-tests: New file.
49676         * modules/unictype/category-S-tests: New file.
49677         * modules/unictype/category-Sc-tests: New file.
49678         * modules/unictype/category-Sk-tests: New file.
49679         * modules/unictype/category-Sm-tests: New file.
49680         * modules/unictype/category-So-tests: New file.
49681         * modules/unictype/category-Z-tests: New file.
49682         * modules/unictype/category-Zl-tests: New file.
49683         * modules/unictype/category-Zp-tests: New file.
49684         * modules/unictype/category-Zs-tests: New file.
49685         * modules/unictype/category-and-not-tests: New file.
49686         * modules/unictype/category-and-tests: New file.
49687         * modules/unictype/category-byname-tests: New file.
49688         * modules/unictype/category-name-tests: New file.
49689         * modules/unictype/category-none-tests: New file.
49690         * modules/unictype/category-of-tests: New file.
49691         * modules/unictype/category-or-tests: New file.
49692         * modules/unictype/category-test-withtable-tests: New file.
49693         * modules/unictype/combining-class-tests: New file.
49694         * modules/unictype/ctype-alnum-tests: New file.
49695         * modules/unictype/ctype-alpha-tests: New file.
49696         * modules/unictype/ctype-blank-tests: New file.
49697         * modules/unictype/ctype-cntrl-tests: New file.
49698         * modules/unictype/ctype-digit-tests: New file.
49699         * modules/unictype/ctype-graph-tests: New file.
49700         * modules/unictype/ctype-lower-tests: New file.
49701         * modules/unictype/ctype-print-tests: New file.
49702         * modules/unictype/ctype-punct-tests: New file.
49703         * modules/unictype/ctype-space-tests: New file.
49704         * modules/unictype/ctype-upper-tests: New file.
49705         * modules/unictype/ctype-xdigit-tests: New file.
49706         * modules/unictype/decimal-digit-tests: New file.
49707         * modules/unictype/digit-tests: New file.
49708         * modules/unictype/mirror-tests: New file.
49709         * modules/unictype/numeric-tests: New file.
49710         * modules/unictype/property-alphabetic-tests: New file.
49711         * modules/unictype/property-ascii-hex-digit-tests: New file.
49712         * modules/unictype/property-bidi-arabic-digit-tests: New file.
49713         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
49714         * modules/unictype/property-bidi-block-separator-tests: New file.
49715         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
49716         * modules/unictype/property-bidi-common-separator-tests: New file.
49717         * modules/unictype/property-bidi-control-tests: New file.
49718         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
49719         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
49720         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
49721         * modules/unictype/property-bidi-european-digit-tests: New file.
49722         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
49723         * modules/unictype/property-bidi-left-to-right-tests: New file.
49724         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
49725         * modules/unictype/property-bidi-other-neutral-tests: New file.
49726         * modules/unictype/property-bidi-pdf-tests: New file.
49727         * modules/unictype/property-bidi-segment-separator-tests: New file.
49728         * modules/unictype/property-bidi-whitespace-tests: New file.
49729         * modules/unictype/property-byname-tests: New file.
49730         * modules/unictype/property-combining-tests: New file.
49731         * modules/unictype/property-composite-tests: New file.
49732         * modules/unictype/property-currency-symbol-tests: New file.
49733         * modules/unictype/property-dash-tests: New file.
49734         * modules/unictype/property-decimal-digit-tests: New file.
49735         * modules/unictype/property-default-ignorable-code-point-tests: New file.
49736         * modules/unictype/property-deprecated-tests: New file.
49737         * modules/unictype/property-diacritic-tests: New file.
49738         * modules/unictype/property-extender-tests: New file.
49739         * modules/unictype/property-format-control-tests: New file.
49740         * modules/unictype/property-grapheme-base-tests: New file.
49741         * modules/unictype/property-grapheme-extend-tests: New file.
49742         * modules/unictype/property-grapheme-link-tests: New file.
49743         * modules/unictype/property-hex-digit-tests: New file.
49744         * modules/unictype/property-hyphen-tests: New file.
49745         * modules/unictype/property-id-continue-tests: New file.
49746         * modules/unictype/property-id-start-tests: New file.
49747         * modules/unictype/property-ideographic-tests: New file.
49748         * modules/unictype/property-ids-binary-operator-tests: New file.
49749         * modules/unictype/property-ids-trinary-operator-tests: New file.
49750         * modules/unictype/property-ignorable-control-tests: New file.
49751         * modules/unictype/property-iso-control-tests: New file.
49752         * modules/unictype/property-join-control-tests: New file.
49753         * modules/unictype/property-left-of-pair-tests: New file.
49754         * modules/unictype/property-line-separator-tests: New file.
49755         * modules/unictype/property-logical-order-exception-tests: New file.
49756         * modules/unictype/property-lowercase-tests: New file.
49757         * modules/unictype/property-math-tests: New file.
49758         * modules/unictype/property-non-break-tests: New file.
49759         * modules/unictype/property-not-a-character-tests: New file.
49760         * modules/unictype/property-numeric-tests: New file.
49761         * modules/unictype/property-other-alphabetic-tests: New file.
49762         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
49763         * modules/unictype/property-other-grapheme-extend-tests: New file.
49764         * modules/unictype/property-other-id-continue-tests: New file.
49765         * modules/unictype/property-other-id-start-tests: New file.
49766         * modules/unictype/property-other-lowercase-tests: New file.
49767         * modules/unictype/property-other-math-tests: New file.
49768         * modules/unictype/property-other-uppercase-tests: New file.
49769         * modules/unictype/property-paired-punctuation-tests: New file.
49770         * modules/unictype/property-paragraph-separator-tests: New file.
49771         * modules/unictype/property-pattern-syntax-tests: New file.
49772         * modules/unictype/property-pattern-white-space-tests: New file.
49773         * modules/unictype/property-private-use-tests: New file.
49774         * modules/unictype/property-punctuation-tests: New file.
49775         * modules/unictype/property-quotation-mark-tests: New file.
49776         * modules/unictype/property-radical-tests: New file.
49777         * modules/unictype/property-sentence-terminal-tests: New file.
49778         * modules/unictype/property-soft-dotted-tests: New file.
49779         * modules/unictype/property-space-tests: New file.
49780         * modules/unictype/property-terminal-punctuation-tests: New file.
49781         * modules/unictype/property-test-tests: New file.
49782         * modules/unictype/property-titlecase-tests: New file.
49783         * modules/unictype/property-unassigned-code-value-tests: New file.
49784         * modules/unictype/property-unified-ideograph-tests: New file.
49785         * modules/unictype/property-uppercase-tests: New file.
49786         * modules/unictype/property-variation-selector-tests: New file.
49787         * modules/unictype/property-white-space-tests: New file.
49788         * modules/unictype/property-xid-continue-tests: New file.
49789         * modules/unictype/property-xid-start-tests: New file.
49790         * modules/unictype/property-zero-width-tests: New file.
49791         * modules/unictype/scripts-tests: New file.
49792         * modules/unictype/syntax-c-ident-tests: New file.
49793         * modules/unictype/syntax-c-whitespace-tests: New file.
49794         * modules/unictype/syntax-java-ident-tests: New file.
49795         * modules/unictype/syntax-java-whitespace-tests: New file.
49796         * tests/unictype/test-bidi_byname.c: New file.
49797         * tests/unictype/test-bidi_name.c: New file.
49798         * tests/unictype/test-bidi_of.c: New file.
49799         * tests/unictype/test-bidi_test.c: New file.
49800         * tests/unictype/test-block_list.c: New file.
49801         * tests/unictype/test-block_of.c: New file.
49802         * tests/unictype/test-block_test.c: New file.
49803         * tests/unictype/test-categ_and.c: New file.
49804         * tests/unictype/test-categ_and_not.c: New file.
49805         * tests/unictype/test-categ_byname.c: New file.
49806         * tests/unictype/test-categ_name.c: New file.
49807         * tests/unictype/test-categ_none.c: New file.
49808         * tests/unictype/test-categ_of.c: New file.
49809         * tests/unictype/test-categ_or.c: New file.
49810         * tests/unictype/test-categ_test_withtable.c: New file.
49811         * tests/unictype/test-combining.c: New file.
49812         * tests/unictype/test-decdigit.c: New file.
49813         * tests/unictype/test-digit.c: New file.
49814         * tests/unictype/test-mirror.c: New file.
49815         * tests/unictype/test-numeric.c: New file.
49816         * tests/unictype/test-pr_byname.c: New file.
49817         * tests/unictype/test-pr_test.c: New file.
49818         * tests/unictype/test-predicate-part1.h: New file.
49819         * tests/unictype/test-predicate-part2.h: New file.
49820         * tests/unictype/test-scripts.c: New file.
49821         * tests/unictype/test-sy_c_ident.c: New file.
49822         * tests/unictype/test-sy_java_ident.c: New file.
49823
49824         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
49825         for Unicode 5.0.0.
49826         * tests/unictype/test-categ_Cc.c: Likewise.
49827         * tests/unictype/test-categ_Cf.c: Likewise.
49828         * tests/unictype/test-categ_Cn.c: Likewise.
49829         * tests/unictype/test-categ_Co.c: Likewise.
49830         * tests/unictype/test-categ_Cs.c: Likewise.
49831         * tests/unictype/test-categ_L.c: Likewise.
49832         * tests/unictype/test-categ_Ll.c: Likewise.
49833         * tests/unictype/test-categ_Lm.c: Likewise.
49834         * tests/unictype/test-categ_Lo.c: Likewise.
49835         * tests/unictype/test-categ_Lt.c: Likewise.
49836         * tests/unictype/test-categ_Lu.c: Likewise.
49837         * tests/unictype/test-categ_M.c: Likewise.
49838         * tests/unictype/test-categ_Mc.c: Likewise.
49839         * tests/unictype/test-categ_Me.c: Likewise.
49840         * tests/unictype/test-categ_Mn.c: Likewise.
49841         * tests/unictype/test-categ_N.c: Likewise.
49842         * tests/unictype/test-categ_Nd.c: Likewise.
49843         * tests/unictype/test-categ_Nl.c: Likewise.
49844         * tests/unictype/test-categ_No.c: Likewise.
49845         * tests/unictype/test-categ_P.c: Likewise.
49846         * tests/unictype/test-categ_Pc.c: Likewise.
49847         * tests/unictype/test-categ_Pd.c: Likewise.
49848         * tests/unictype/test-categ_Pe.c: Likewise.
49849         * tests/unictype/test-categ_Pf.c: Likewise.
49850         * tests/unictype/test-categ_Pi.c: Likewise.
49851         * tests/unictype/test-categ_Po.c: Likewise.
49852         * tests/unictype/test-categ_Ps.c: Likewise.
49853         * tests/unictype/test-categ_S.c: Likewise.
49854         * tests/unictype/test-categ_Sc.c: Likewise.
49855         * tests/unictype/test-categ_Sk.c: Likewise.
49856         * tests/unictype/test-categ_Sm.c: Likewise.
49857         * tests/unictype/test-categ_So.c: Likewise.
49858         * tests/unictype/test-categ_Z.c: Likewise.
49859         * tests/unictype/test-categ_Zl.c: Likewise.
49860         * tests/unictype/test-categ_Zp.c: Likewise.
49861         * tests/unictype/test-categ_Zs.c: Likewise.
49862         * tests/unictype/test-ctype_alnum.c: Likewise.
49863         * tests/unictype/test-ctype_alpha.c: Likewise.
49864         * tests/unictype/test-ctype_blank.c: Likewise.
49865         * tests/unictype/test-ctype_cntrl.c: Likewise.
49866         * tests/unictype/test-ctype_digit.c: Likewise.
49867         * tests/unictype/test-ctype_graph.c: Likewise.
49868         * tests/unictype/test-ctype_lower.c: Likewise.
49869         * tests/unictype/test-ctype_print.c: Likewise.
49870         * tests/unictype/test-ctype_punct.c: Likewise.
49871         * tests/unictype/test-ctype_space.c: Likewise.
49872         * tests/unictype/test-ctype_upper.c: Likewise.
49873         * tests/unictype/test-ctype_xdigit.c: Likewise.
49874         * tests/unictype/test-decdigit.h: Likewise.
49875         * tests/unictype/test-digit.h: Likewise.
49876         * tests/unictype/test-numeric.h: Likewise.
49877         * tests/unictype/test-pr_alphabetic.c: Likewise.
49878         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
49879         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
49880         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
49881         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
49882         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
49883         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
49884         * tests/unictype/test-pr_bidi_control.c: Likewise.
49885         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
49886         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
49887         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
49888         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
49889         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
49890         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
49891         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
49892         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
49893         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
49894         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
49895         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
49896         * tests/unictype/test-pr_combining.c: Likewise.
49897         * tests/unictype/test-pr_composite.c: Likewise.
49898         * tests/unictype/test-pr_currency_symbol.c: Likewise.
49899         * tests/unictype/test-pr_dash.c: Likewise.
49900         * tests/unictype/test-pr_decimal_digit.c: Likewise.
49901         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
49902         * tests/unictype/test-pr_deprecated.c: Likewise.
49903         * tests/unictype/test-pr_diacritic.c: Likewise.
49904         * tests/unictype/test-pr_extender.c: Likewise.
49905         * tests/unictype/test-pr_format_control.c: Likewise.
49906         * tests/unictype/test-pr_grapheme_base.c: Likewise.
49907         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
49908         * tests/unictype/test-pr_grapheme_link.c: Likewise.
49909         * tests/unictype/test-pr_hex_digit.c: Likewise.
49910         * tests/unictype/test-pr_hyphen.c: Likewise.
49911         * tests/unictype/test-pr_id_continue.c: Likewise.
49912         * tests/unictype/test-pr_id_start.c: Likewise.
49913         * tests/unictype/test-pr_ideographic.c: Likewise.
49914         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
49915         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
49916         * tests/unictype/test-pr_ignorable_control.c: Likewise.
49917         * tests/unictype/test-pr_iso_control.c: Likewise.
49918         * tests/unictype/test-pr_join_control.c: Likewise.
49919         * tests/unictype/test-pr_left_of_pair.c: Likewise.
49920         * tests/unictype/test-pr_line_separator.c: Likewise.
49921         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
49922         * tests/unictype/test-pr_lowercase.c: Likewise.
49923         * tests/unictype/test-pr_math.c: Likewise.
49924         * tests/unictype/test-pr_non_break.c: Likewise.
49925         * tests/unictype/test-pr_not_a_character.c: Likewise.
49926         * tests/unictype/test-pr_numeric.c: Likewise.
49927         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
49928         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
49929         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
49930         * tests/unictype/test-pr_other_id_continue.c: Likewise.
49931         * tests/unictype/test-pr_other_id_start.c: Likewise.
49932         * tests/unictype/test-pr_other_lowercase.c: Likewise.
49933         * tests/unictype/test-pr_other_math.c: Likewise.
49934         * tests/unictype/test-pr_other_uppercase.c: Likewise.
49935         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
49936         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
49937         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
49938         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
49939         * tests/unictype/test-pr_private_use.c: Likewise.
49940         * tests/unictype/test-pr_punctuation.c: Likewise.
49941         * tests/unictype/test-pr_quotation_mark.c: Likewise.
49942         * tests/unictype/test-pr_radical.c: Likewise.
49943         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
49944         * tests/unictype/test-pr_soft_dotted.c: Likewise.
49945         * tests/unictype/test-pr_space.c: Likewise.
49946         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
49947         * tests/unictype/test-pr_titlecase.c: Likewise.
49948         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
49949         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
49950         * tests/unictype/test-pr_uppercase.c: Likewise.
49951         * tests/unictype/test-pr_variation_selector.c: Likewise.
49952         * tests/unictype/test-pr_white_space.c: Likewise.
49953         * tests/unictype/test-pr_xid_continue.c: Likewise.
49954         * tests/unictype/test-pr_xid_start.c: Likewise.
49955         * tests/unictype/test-pr_zero_width.c: Likewise.
49956         * tests/unictype/test-sy_c_whitespace.c: Likewise.
49957         * tests/unictype/test-sy_java_whitespace.c: Likewise.
49958
49959 2007-11-12  Bruno Haible  <bruno@clisp.org>
49960
49961         Unicode character classification functions.
49962         * lib/unictype.h: New file.
49963         * modules/unictype/base: New file.
49964         * modules/unictype/category-L: New file.
49965         * modules/unictype/category-Lu: New file.
49966         * modules/unictype/category-Ll: New file.
49967         * modules/unictype/category-Lt: New file.
49968         * modules/unictype/category-Lm: New file.
49969         * modules/unictype/category-Lo: New file.
49970         * modules/unictype/category-M: New file.
49971         * modules/unictype/category-Mn: New file.
49972         * modules/unictype/category-Mc: New file.
49973         * modules/unictype/category-Me: New file.
49974         * modules/unictype/category-N: New file.
49975         * modules/unictype/category-Nd: New file.
49976         * modules/unictype/category-Nl: New file.
49977         * modules/unictype/category-No: New file.
49978         * modules/unictype/category-P: New file.
49979         * modules/unictype/category-Pc: New file.
49980         * modules/unictype/category-Pd: New file.
49981         * modules/unictype/category-Ps: New file.
49982         * modules/unictype/category-Pe: New file.
49983         * modules/unictype/category-Pi: New file.
49984         * modules/unictype/category-Pf: New file.
49985         * modules/unictype/category-Po: New file.
49986         * modules/unictype/category-S: New file.
49987         * modules/unictype/category-Sm: New file.
49988         * modules/unictype/category-Sc: New file.
49989         * modules/unictype/category-Sk: New file.
49990         * modules/unictype/category-So: New file.
49991         * modules/unictype/category-Z: New file.
49992         * modules/unictype/category-Zs: New file.
49993         * modules/unictype/category-Zl: New file.
49994         * modules/unictype/category-Zp: New file.
49995         * modules/unictype/category-C: New file.
49996         * modules/unictype/category-Cc: New file.
49997         * modules/unictype/category-Cf: New file.
49998         * modules/unictype/category-Cs: New file.
49999         * modules/unictype/category-Co: New file.
50000         * modules/unictype/category-Cn: New file.
50001         * modules/unictype/category-or: New file.
50002         * modules/unictype/category-of: New file.
50003         * modules/unictype/category-test: New file.
50004         * modules/unictype/category-test-withtable: New file.
50005         * modules/unictype/category-byname: New file.
50006         * modules/unictype/category-none: New file.
50007         * modules/unictype/category-and: New file.
50008         * modules/unictype/category-and-not: New file.
50009         * modules/unictype/category-name: New file.
50010         * modules/unictype/combining-class: New file.
50011         * modules/unictype/category-all: New file.
50012         * modules/unictype/bidicategory-all: New file.
50013         * modules/unictype/bidicategory-byname: New file.
50014         * modules/unictype/bidicategory-name: New file.
50015         * modules/unictype/bidicategory-of: New file.
50016         * modules/unictype/bidicategory-test: New file.
50017         * modules/unictype/decimal-digit: New file.
50018         * modules/unictype/digit: New file.
50019         * modules/unictype/numeric: New file.
50020         * modules/unictype/mirror: New file.
50021         * modules/unictype/property-white-space: New file.
50022         * modules/unictype/property-alphabetic: New file.
50023         * modules/unictype/property-other-alphabetic: New file.
50024         * modules/unictype/property-not-a-character: New file.
50025         * modules/unictype/property-default-ignorable-code-point: New file.
50026         * modules/unictype/property-other-default-ignorable-code-point: New
50027         file.
50028         * modules/unictype/property-deprecated: New file.
50029         * modules/unictype/property-logical-order-exception: New file.
50030         * modules/unictype/property-variation-selector: New file.
50031         * modules/unictype/property-private-use: New file.
50032         * modules/unictype/property-unassigned-code-value: New file.
50033         * modules/unictype/property-uppercase: New file.
50034         * modules/unictype/property-other-uppercase: New file.
50035         * modules/unictype/property-lowercase: New file.
50036         * modules/unictype/property-other-lowercase: New file.
50037         * modules/unictype/property-titlecase: New file.
50038         * modules/unictype/property-soft-dotted: New file.
50039         * modules/unictype/property-id-start: New file.
50040         * modules/unictype/property-other-id-start: New file.
50041         * modules/unictype/property-id-continue: New file.
50042         * modules/unictype/property-other-id-continue: New file.
50043         * modules/unictype/property-xid-start: New file.
50044         * modules/unictype/property-xid-continue: New file.
50045         * modules/unictype/property-pattern-white-space: New file.
50046         * modules/unictype/property-pattern-syntax: New file.
50047         * modules/unictype/property-join-control: New file.
50048         * modules/unictype/property-grapheme-base: New file.
50049         * modules/unictype/property-grapheme-extend: New file.
50050         * modules/unictype/property-other-grapheme-extend: New file.
50051         * modules/unictype/property-grapheme-link: New file.
50052         * modules/unictype/property-bidi-control: New file.
50053         * modules/unictype/property-bidi-left-to-right: New file.
50054         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
50055         * modules/unictype/property-bidi-arabic-right-to-left: New file.
50056         * modules/unictype/property-bidi-european-digit: New file.
50057         * modules/unictype/property-bidi-eur-num-separator: New file.
50058         * modules/unictype/property-bidi-eur-num-terminator: New file.
50059         * modules/unictype/property-bidi-arabic-digit: New file.
50060         * modules/unictype/property-bidi-common-separator: New file.
50061         * modules/unictype/property-bidi-block-separator: New file.
50062         * modules/unictype/property-bidi-segment-separator: New file.
50063         * modules/unictype/property-bidi-whitespace: New file.
50064         * modules/unictype/property-bidi-non-spacing-mark: New file.
50065         * modules/unictype/property-bidi-boundary-neutral: New file.
50066         * modules/unictype/property-bidi-pdf: New file.
50067         * modules/unictype/property-bidi-embedding-or-override: New file.
50068         * modules/unictype/property-bidi-other-neutral: New file.
50069         * modules/unictype/property-hex-digit: New file.
50070         * modules/unictype/property-ascii-hex-digit: New file.
50071         * modules/unictype/property-ideographic: New file.
50072         * modules/unictype/property-unified-ideograph: New file.
50073         * modules/unictype/property-radical: New file.
50074         * modules/unictype/property-ids-binary-operator: New file.
50075         * modules/unictype/property-ids-trinary-operator: New file.
50076         * modules/unictype/property-zero-width: New file.
50077         * modules/unictype/property-space: New file.
50078         * modules/unictype/property-non-break: New file.
50079         * modules/unictype/property-iso-control: New file.
50080         * modules/unictype/property-format-control: New file.
50081         * modules/unictype/property-dash: New file.
50082         * modules/unictype/property-hyphen: New file.
50083         * modules/unictype/property-punctuation: New file.
50084         * modules/unictype/property-line-separator: New file.
50085         * modules/unictype/property-paragraph-separator: New file.
50086         * modules/unictype/property-quotation-mark: New file.
50087         * modules/unictype/property-sentence-terminal: New file.
50088         * modules/unictype/property-terminal-punctuation: New file.
50089         * modules/unictype/property-currency-symbol: New file.
50090         * modules/unictype/property-math: New file.
50091         * modules/unictype/property-other-math: New file.
50092         * modules/unictype/property-paired-punctuation: New file.
50093         * modules/unictype/property-left-of-pair: New file.
50094         * modules/unictype/property-combining: New file.
50095         * modules/unictype/property-composite: New file.
50096         * modules/unictype/property-decimal-digit: New file.
50097         * modules/unictype/property-numeric: New file.
50098         * modules/unictype/property-diacritic: New file.
50099         * modules/unictype/property-extender: New file.
50100         * modules/unictype/property-ignorable-control: New file.
50101         * modules/unictype/property-test: New file.
50102         * modules/unictype/property-byname: New file.
50103         * modules/unictype/property-all: New file.
50104         * modules/unictype/scripts: New file.
50105         * modules/unictype/scripts-all: New file.
50106         * modules/unictype/block-of: New file.
50107         * modules/unictype/block-test: New file.
50108         * modules/unictype/block-list: New file.
50109         * modules/unictype/block-all: New file.
50110         * modules/unictype/syntax-c-whitespace: New file.
50111         * modules/unictype/syntax-java-whitespace: New file.
50112         * modules/unictype/syntax-c-ident: New file.
50113         * modules/unictype/syntax-java-ident: New file.
50114         * modules/unictype/ctype-alnum: New file.
50115         * modules/unictype/ctype-alpha: New file.
50116         * modules/unictype/ctype-cntrl: New file.
50117         * modules/unictype/ctype-digit: New file.
50118         * modules/unictype/ctype-graph: New file.
50119         * modules/unictype/ctype-lower: New file.
50120         * modules/unictype/ctype-print: New file.
50121         * modules/unictype/ctype-punct: New file.
50122         * modules/unictype/ctype-space: New file.
50123         * modules/unictype/ctype-upper: New file.
50124         * modules/unictype/ctype-xdigit: New file.
50125         * modules/unictype/ctype-blank: New file.
50126         * lib/unictype/bidi_byname.c: New file.
50127         * lib/unictype/bidi_name.c: New file.
50128         * lib/unictype/bidi_of.c: New file.
50129         * lib/unictype/bidi_test.c: New file.
50130         * lib/unictype/bitmap.h: New file.
50131         * lib/unictype/block_test.c: New file.
50132         * lib/unictype/blocks.c: New file.
50133         * lib/unictype/categ_C.c: New file.
50134         * lib/unictype/categ_Cc.c: New file.
50135         * lib/unictype/categ_Cf.c: New file.
50136         * lib/unictype/categ_Cn.c: New file.
50137         * lib/unictype/categ_Co.c: New file.
50138         * lib/unictype/categ_Cs.c: New file.
50139         * lib/unictype/categ_L.c: New file.
50140         * lib/unictype/categ_Ll.c: New file.
50141         * lib/unictype/categ_Lm.c: New file.
50142         * lib/unictype/categ_Lo.c: New file.
50143         * lib/unictype/categ_Lt.c: New file.
50144         * lib/unictype/categ_Lu.c: New file.
50145         * lib/unictype/categ_M.c: New file.
50146         * lib/unictype/categ_Mc.c: New file.
50147         * lib/unictype/categ_Me.c: New file.
50148         * lib/unictype/categ_Mn.c: New file.
50149         * lib/unictype/categ_N.c: New file.
50150         * lib/unictype/categ_Nd.c: New file.
50151         * lib/unictype/categ_Nl.c: New file.
50152         * lib/unictype/categ_No.c: New file.
50153         * lib/unictype/categ_P.c: New file.
50154         * lib/unictype/categ_Pc.c: New file.
50155         * lib/unictype/categ_Pd.c: New file.
50156         * lib/unictype/categ_Pe.c: New file.
50157         * lib/unictype/categ_Pf.c: New file.
50158         * lib/unictype/categ_Pi.c: New file.
50159         * lib/unictype/categ_Po.c: New file.
50160         * lib/unictype/categ_Ps.c: New file.
50161         * lib/unictype/categ_S.c: New file.
50162         * lib/unictype/categ_Sc.c: New file.
50163         * lib/unictype/categ_Sk.c: New file.
50164         * lib/unictype/categ_Sm.c: New file.
50165         * lib/unictype/categ_So.c: New file.
50166         * lib/unictype/categ_Z.c: New file.
50167         * lib/unictype/categ_Zl.c: New file.
50168         * lib/unictype/categ_Zp.c: New file.
50169         * lib/unictype/categ_Zs.c: New file.
50170         * lib/unictype/categ_and.c: New file.
50171         * lib/unictype/categ_and_not.c: New file.
50172         * lib/unictype/categ_byname.c: New file.
50173         * lib/unictype/categ_name.c: New file.
50174         * lib/unictype/categ_none.c: New file.
50175         * lib/unictype/categ_of.c: New file.
50176         * lib/unictype/categ_or.c: New file.
50177         * lib/unictype/categ_test.c: New file.
50178         * lib/unictype/combining.c: New file.
50179         * lib/unictype/ctype_alnum.c: New file.
50180         * lib/unictype/ctype_alpha.c: New file.
50181         * lib/unictype/ctype_blank.c: New file.
50182         * lib/unictype/ctype_cntrl.c: New file.
50183         * lib/unictype/ctype_digit.c: New file.
50184         * lib/unictype/ctype_graph.c: New file.
50185         * lib/unictype/ctype_lower.c: New file.
50186         * lib/unictype/ctype_print.c: New file.
50187         * lib/unictype/ctype_punct.c: New file.
50188         * lib/unictype/ctype_space.c: New file.
50189         * lib/unictype/ctype_upper.c: New file.
50190         * lib/unictype/ctype_xdigit.c: New file.
50191         * lib/unictype/decdigit.c: New file.
50192         * lib/unictype/digit.c: New file.
50193         * lib/unictype/identsyntaxmap.h: New file.
50194         * lib/unictype/mirror.c: New file.
50195         * lib/unictype/numeric.c: New file.
50196         * lib/unictype/pr_alphabetic.c: New file.
50197         * lib/unictype/pr_ascii_hex_digit.c: New file.
50198         * lib/unictype/pr_bidi_arabic_digit.c: New file.
50199         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
50200         * lib/unictype/pr_bidi_block_separator.c: New file.
50201         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
50202         * lib/unictype/pr_bidi_common_separator.c: New file.
50203         * lib/unictype/pr_bidi_control.c: New file.
50204         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
50205         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
50206         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
50207         * lib/unictype/pr_bidi_european_digit.c: New file.
50208         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
50209         * lib/unictype/pr_bidi_left_to_right.c: New file.
50210         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
50211         * lib/unictype/pr_bidi_other_neutral.c: New file.
50212         * lib/unictype/pr_bidi_pdf.c: New file.
50213         * lib/unictype/pr_bidi_segment_separator.c: New file.
50214         * lib/unictype/pr_bidi_whitespace.c: New file.
50215         * lib/unictype/pr_byname.c: New file.
50216         * lib/unictype/pr_byname.gperf: New file.
50217         * lib/unictype/pr_combining.c: New file.
50218         * lib/unictype/pr_composite.c: New file.
50219         * lib/unictype/pr_currency_symbol.c: New file.
50220         * lib/unictype/pr_dash.c: New file.
50221         * lib/unictype/pr_decimal_digit.c: New file.
50222         * lib/unictype/pr_default_ignorable_code_point.c: New file.
50223         * lib/unictype/pr_deprecated.c: New file.
50224         * lib/unictype/pr_diacritic.c: New file.
50225         * lib/unictype/pr_extender.c: New file.
50226         * lib/unictype/pr_format_control.c: New file.
50227         * lib/unictype/pr_grapheme_base.c: New file.
50228         * lib/unictype/pr_grapheme_extend.c: New file.
50229         * lib/unictype/pr_grapheme_link.c: New file.
50230         * lib/unictype/pr_hex_digit.c: New file.
50231         * lib/unictype/pr_hyphen.c: New file.
50232         * lib/unictype/pr_id_continue.c: New file.
50233         * lib/unictype/pr_id_start.c: New file.
50234         * lib/unictype/pr_ideographic.c: New file.
50235         * lib/unictype/pr_ids_binary_operator.c: New file.
50236         * lib/unictype/pr_ids_trinary_operator.c: New file.
50237         * lib/unictype/pr_ignorable_control.c: New file.
50238         * lib/unictype/pr_iso_control.c: New file.
50239         * lib/unictype/pr_join_control.c: New file.
50240         * lib/unictype/pr_left_of_pair.c: New file.
50241         * lib/unictype/pr_line_separator.c: New file.
50242         * lib/unictype/pr_logical_order_exception.c: New file.
50243         * lib/unictype/pr_lowercase.c: New file.
50244         * lib/unictype/pr_math.c: New file.
50245         * lib/unictype/pr_non_break.c: New file.
50246         * lib/unictype/pr_not_a_character.c: New file.
50247         * lib/unictype/pr_numeric.c: New file.
50248         * lib/unictype/pr_other_alphabetic.c: New file.
50249         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
50250         * lib/unictype/pr_other_grapheme_extend.c: New file.
50251         * lib/unictype/pr_other_id_continue.c: New file.
50252         * lib/unictype/pr_other_id_start.c: New file.
50253         * lib/unictype/pr_other_lowercase.c: New file.
50254         * lib/unictype/pr_other_math.c: New file.
50255         * lib/unictype/pr_other_uppercase.c: New file.
50256         * lib/unictype/pr_paired_punctuation.c: New file.
50257         * lib/unictype/pr_paragraph_separator.c: New file.
50258         * lib/unictype/pr_pattern_syntax.c: New file.
50259         * lib/unictype/pr_pattern_white_space.c: New file.
50260         * lib/unictype/pr_private_use.c: New file.
50261         * lib/unictype/pr_punctuation.c: New file.
50262         * lib/unictype/pr_quotation_mark.c: New file.
50263         * lib/unictype/pr_radical.c: New file.
50264         * lib/unictype/pr_sentence_terminal.c: New file.
50265         * lib/unictype/pr_soft_dotted.c: New file.
50266         * lib/unictype/pr_space.c: New file.
50267         * lib/unictype/pr_terminal_punctuation.c: New file.
50268         * lib/unictype/pr_test.c: New file.
50269         * lib/unictype/pr_titlecase.c: New file.
50270         * lib/unictype/pr_unassigned_code_value.c: New file.
50271         * lib/unictype/pr_unified_ideograph.c: New file.
50272         * lib/unictype/pr_uppercase.c: New file.
50273         * lib/unictype/pr_variation_selector.c: New file.
50274         * lib/unictype/pr_white_space.c: New file.
50275         * lib/unictype/pr_xid_continue.c: New file.
50276         * lib/unictype/pr_xid_start.c: New file.
50277         * lib/unictype/pr_zero_width.c: New file.
50278         * lib/unictype/scripts.c: New file.
50279         * lib/unictype/sy_c_ident.c: New file.
50280         * lib/unictype/sy_c_whitespace.c: New file.
50281         * lib/unictype/sy_java_ident.c: New file.
50282         * lib/unictype/sy_java_whitespace.c: New file.
50283
50284         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
50285         Unicode 5.0.0.
50286         * lib/unictype/blocks.h: Likewise.
50287         * lib/unictype/categ_C.h: Likewise.
50288         * lib/unictype/categ_Cc.h: Likewise.
50289         * lib/unictype/categ_Cf.h: Likewise.
50290         * lib/unictype/categ_Cn.h: Likewise.
50291         * lib/unictype/categ_Co.h: Likewise.
50292         * lib/unictype/categ_Cs.h: Likewise.
50293         * lib/unictype/categ_L.h: Likewise.
50294         * lib/unictype/categ_Ll.h: Likewise.
50295         * lib/unictype/categ_Lm.h: Likewise.
50296         * lib/unictype/categ_Lo.h: Likewise.
50297         * lib/unictype/categ_Lt.h: Likewise.
50298         * lib/unictype/categ_Lu.h: Likewise.
50299         * lib/unictype/categ_M.h: Likewise.
50300         * lib/unictype/categ_Mc.h: Likewise.
50301         * lib/unictype/categ_Me.h: Likewise.
50302         * lib/unictype/categ_Mn.h: Likewise.
50303         * lib/unictype/categ_N.h: Likewise.
50304         * lib/unictype/categ_Nd.h: Likewise.
50305         * lib/unictype/categ_Nl.h: Likewise.
50306         * lib/unictype/categ_No.h: Likewise.
50307         * lib/unictype/categ_P.h: Likewise.
50308         * lib/unictype/categ_Pc.h: Likewise.
50309         * lib/unictype/categ_Pd.h: Likewise.
50310         * lib/unictype/categ_Pe.h: Likewise.
50311         * lib/unictype/categ_Pf.h: Likewise.
50312         * lib/unictype/categ_Pi.h: Likewise.
50313         * lib/unictype/categ_Po.h: Likewise.
50314         * lib/unictype/categ_Ps.h: Likewise.
50315         * lib/unictype/categ_S.h: Likewise.
50316         * lib/unictype/categ_Sc.h: Likewise.
50317         * lib/unictype/categ_Sk.h: Likewise.
50318         * lib/unictype/categ_Sm.h: Likewise.
50319         * lib/unictype/categ_So.h: Likewise.
50320         * lib/unictype/categ_Z.h: Likewise.
50321         * lib/unictype/categ_Zl.h: Likewise.
50322         * lib/unictype/categ_Zp.h: Likewise.
50323         * lib/unictype/categ_Zs.h: Likewise.
50324         * lib/unictype/categ_of.h: Likewise.
50325         * lib/unictype/combining.h: Likewise.
50326         * lib/unictype/ctype_alnum.h: Likewise.
50327         * lib/unictype/ctype_alpha.h: Likewise.
50328         * lib/unictype/ctype_blank.h: Likewise.
50329         * lib/unictype/ctype_cntrl.h: Likewise.
50330         * lib/unictype/ctype_digit.h: Likewise.
50331         * lib/unictype/ctype_graph.h: Likewise.
50332         * lib/unictype/ctype_lower.h: Likewise.
50333         * lib/unictype/ctype_print.h: Likewise.
50334         * lib/unictype/ctype_punct.h: Likewise.
50335         * lib/unictype/ctype_space.h: Likewise.
50336         * lib/unictype/ctype_upper.h: Likewise.
50337         * lib/unictype/ctype_xdigit.h: Likewise.
50338         * lib/unictype/decdigit.h: Likewise.
50339         * lib/unictype/digit.h: Likewise.
50340         * lib/unictype/mirror.h: Likewise.
50341         * lib/unictype/numeric.h: Likewise.
50342         * lib/unictype/pr_alphabetic.h: Likewise.
50343         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
50344         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
50345         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
50346         * lib/unictype/pr_bidi_block_separator.h: Likewise.
50347         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
50348         * lib/unictype/pr_bidi_common_separator.h: Likewise.
50349         * lib/unictype/pr_bidi_control.h: Likewise.
50350         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
50351         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
50352         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
50353         * lib/unictype/pr_bidi_european_digit.h: Likewise.
50354         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
50355         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
50356         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
50357         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
50358         * lib/unictype/pr_bidi_pdf.h: Likewise.
50359         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
50360         * lib/unictype/pr_bidi_whitespace.h: Likewise.
50361         * lib/unictype/pr_combining.h: Likewise.
50362         * lib/unictype/pr_composite.h: Likewise.
50363         * lib/unictype/pr_currency_symbol.h: Likewise.
50364         * lib/unictype/pr_dash.h: Likewise.
50365         * lib/unictype/pr_decimal_digit.h: Likewise.
50366         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
50367         * lib/unictype/pr_deprecated.h: Likewise.
50368         * lib/unictype/pr_diacritic.h: Likewise.
50369         * lib/unictype/pr_extender.h: Likewise.
50370         * lib/unictype/pr_format_control.h: Likewise.
50371         * lib/unictype/pr_grapheme_base.h: Likewise.
50372         * lib/unictype/pr_grapheme_extend.h: Likewise.
50373         * lib/unictype/pr_grapheme_link.h: Likewise.
50374         * lib/unictype/pr_hex_digit.h: Likewise.
50375         * lib/unictype/pr_hyphen.h: Likewise.
50376         * lib/unictype/pr_id_continue.h: Likewise.
50377         * lib/unictype/pr_id_start.h: Likewise.
50378         * lib/unictype/pr_ideographic.h: Likewise.
50379         * lib/unictype/pr_ids_binary_operator.h: Likewise.
50380         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
50381         * lib/unictype/pr_ignorable_control.h: Likewise.
50382         * lib/unictype/pr_iso_control.h: Likewise.
50383         * lib/unictype/pr_join_control.h: Likewise.
50384         * lib/unictype/pr_left_of_pair.h: Likewise.
50385         * lib/unictype/pr_line_separator.h: Likewise.
50386         * lib/unictype/pr_logical_order_exception.h: Likewise.
50387         * lib/unictype/pr_lowercase.h: Likewise.
50388         * lib/unictype/pr_math.h: Likewise.
50389         * lib/unictype/pr_non_break.h: Likewise.
50390         * lib/unictype/pr_not_a_character.h: Likewise.
50391         * lib/unictype/pr_numeric.h: Likewise.
50392         * lib/unictype/pr_other_alphabetic.h: Likewise.
50393         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
50394         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
50395         * lib/unictype/pr_other_id_continue.h: Likewise.
50396         * lib/unictype/pr_other_id_start.h: Likewise.
50397         * lib/unictype/pr_other_lowercase.h: Likewise.
50398         * lib/unictype/pr_other_math.h: Likewise.
50399         * lib/unictype/pr_other_uppercase.h: Likewise.
50400         * lib/unictype/pr_paired_punctuation.h: Likewise.
50401         * lib/unictype/pr_paragraph_separator.h: Likewise.
50402         * lib/unictype/pr_pattern_syntax.h: Likewise.
50403         * lib/unictype/pr_pattern_white_space.h: Likewise.
50404         * lib/unictype/pr_private_use.h: Likewise.
50405         * lib/unictype/pr_punctuation.h: Likewise.
50406         * lib/unictype/pr_quotation_mark.h: Likewise.
50407         * lib/unictype/pr_radical.h: Likewise.
50408         * lib/unictype/pr_sentence_terminal.h: Likewise.
50409         * lib/unictype/pr_soft_dotted.h: Likewise.
50410         * lib/unictype/pr_space.h: Likewise.
50411         * lib/unictype/pr_terminal_punctuation.h: Likewise.
50412         * lib/unictype/pr_titlecase.h: Likewise.
50413         * lib/unictype/pr_unassigned_code_value.h: Likewise.
50414         * lib/unictype/pr_unified_ideograph.h: Likewise.
50415         * lib/unictype/pr_uppercase.h: Likewise.
50416         * lib/unictype/pr_variation_selector.h: Likewise.
50417         * lib/unictype/pr_white_space.h: Likewise.
50418         * lib/unictype/pr_xid_continue.h: Likewise.
50419         * lib/unictype/pr_xid_start.h: Likewise.
50420         * lib/unictype/pr_zero_width.h: Likewise.
50421         * lib/unictype/scripts.h: Likewise.
50422         * lib/unictype/scripts_byname.gperf: Likewise.
50423         * lib/unictype/sy_c_ident.h: Likewise.
50424         * lib/unictype/sy_c_whitespace.h: Likewise.
50425         * lib/unictype/sy_java_ident.h: Likewise.
50426         * lib/unictype/sy_java_whitespace.h: Likewise.
50427
50428         * lib/unictype/Makefile: New file.
50429         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
50430         glibc.
50431         * lib/unictype/3level.h: New file, copied from glibc.
50432         * lib/unictype/3levelbit.h: New file.
50433
50434 2007-11-11  Bruno Haible  <bruno@clisp.org>
50435
50436         * modules/gperf: New file.
50437         * modules/iconv_open (Depends-on): Add it.
50438         (Makefile.am): Remove the GPERF definition.
50439
50440 2007-11-11  Bruno Haible  <bruno@clisp.org>
50441
50442         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
50443         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
50444
50445 2007-11-11  Bruno Haible  <bruno@clisp.org>
50446
50447         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
50448         (usage): Remove function.
50449
50450 2007-11-11  Bruno Haible  <bruno@clisp.org>
50451
50452         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
50453         gl_FUNC_CEILF_LIBS.
50454         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
50455         gl_FUNC_CEIL_LIBS.
50456         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
50457         gl_FUNC_CEILL_LIBS.
50458         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
50459         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
50460         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
50461
50462 2007-11-11  Bruno Haible  <bruno@clisp.org>
50463
50464         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
50465         roundf were declared but do not exist on functions.
50466         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
50467         roundl were declared but do not exist on functions.
50468         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
50469         HAVE_FLOORL_AND_CEILL, respectively.
50470         Needed for Sun C on Solaris 10.
50471
50472 2007-11-11  Bruno Haible  <bruno@clisp.org>
50473
50474         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
50475         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
50476         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
50477         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
50478         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
50479         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
50480         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
50481         HAVE_DECL_ROUNDF.
50482         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
50483         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
50484         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
50485         of HAVE_DECL_ROUND*.
50486         * modules/math (Makefile.am): Update.
50487
50488 2007-11-10  Bruno Haible  <bruno@clisp.org>
50489
50490         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
50491         ptrdiff_t as m4/intl.m4.
50492
50493 2007-11-10  Jim Meyering  <meyering@redhat.com>
50494
50495         Avoid link failure for the argmatch test.
50496         * tests/test-argmatch.c (usage): Define function to avoid a link
50497         failure: argmatch_die requires a usage function.
50498
50499 2007-11-09  Bruno Haible  <bruno@clisp.org>
50500
50501         * doc/functions/snprintf.texi: Mention BeOS deficiency.
50502         * doc/functions/vsnprintf.texi: Likewise.
50503         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
50504         with a size argument < 2.
50505
50506 2007-11-09  Bruno Haible  <bruno@clisp.org>
50507
50508         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
50509         buffer. Fixes an inefficiency introduced on 2007-11-03.
50510
50511 2007-11-09  Bruno Haible  <bruno@clisp.org>
50512
50513         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
50514         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
50515
50516 2007-11-08  Jim Meyering  <meyering@redhat.com>
50517
50518         Change cache variable name prefix "jm_" to "gl_" everywhere.
50519         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
50520         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
50521         * m4/uptime.m4: s/gl_/jm_/
50522
50523 2007-11-07  Bruno Haible  <bruno@clisp.org>
50524
50525         Update to GNU gettext 0.17.
50526         * m4/intl.m4: Update to GNU gettext 0.17.
50527         * m4/po.m4: Likewise.
50528         * modules/gettext (Files): Remove m4/ulonglong.m4.
50529         (configure.ac): Require gettext infrastructure from version 0.17.
50530
50531 2007-11-06  Bruno Haible  <bruno@clisp.org>
50532
50533         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
50534         symbolic values are not defined in a public header.
50535         * lib/freadable.c (freadable) [QNX]: Likewise.
50536         * lib/freadahead.c (freadahead) [QNX]: Likewise.
50537         * lib/freading.c (freading) [QNX]: Likewise.
50538         * lib/fseterr.c (fseterr) [QNX]: Likewise.
50539         * lib/fwritable.c (fwritable) [QNX]: Likewise.
50540         * lib/fwriting.c (fwriting) [QNX]: Likewise.
50541         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
50542         Reported by Alain Magloire.
50543
50544         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
50545
50546 2007-11-05  Bruno Haible  <bruno@clisp.org>
50547
50548         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
50549         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
50550         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
50551         Reported by Eric Blake.
50552
50553 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50554             Bruno Haible  <bruno@clisp.org>
50555
50556         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
50557         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
50558         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
50559         (malloc): Undefine also before including <stdlib.h>.
50560         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
50561         Needed on OSF/1 4.0.
50562
50563 2007-11-05  Jim Meyering  <meyering@redhat.com>
50564
50565         git-version-gen: sync from coreutils.
50566         * build-aux/git-version-gen: Add comments.
50567         Change the first '-' to '.' in the snapshot version string,
50568         e.g., 6.9-377-08144 -> 6.9.377-08144
50569         Remove first parameter.
50570         Don't declare a version "-dirty" merely because a time
50571         stamp has changed.
50572
50573 2007-11-04  Bruno Haible  <bruno@clisp.org>
50574
50575         * lib/lock.h: Protect all macro definitions containing an 'if'
50576         statement through a "do { ... } while (0)".
50577         * lib/tls.h: Likewise.
50578
50579 2007-11-04  Bruno Haible  <bruno@clisp.org>
50580
50581         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
50582
50583 2007-11-04  Bruno Haible  <bruno@clisp.org>
50584
50585         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
50586         * modules/fprintf-posix (Depends-on): Add nocrash.
50587         * modules/snprintf-posix (Depends-on): Likewise.
50588         * modules/sprintf-posix (Depends-on): Likewise.
50589         * modules/vasnprintf-posix (Depends-on): Likewise.
50590         * modules/vasprintf-posix (Depends-on): Likewise.
50591         * modules/vfprintf-posix (Depends-on): Likewise.
50592         * modules/vsnprintf-posix (Depends-on): Likewise.
50593         * modules/vsprintf-posix (Depends-on): Likewise.
50594         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
50595         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
50596         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
50597         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
50598         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
50599         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
50600         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
50601
50602 2007-11-04  Bruno Haible  <bruno@clisp.org>
50603
50604         * modules/nocrash: New file.
50605         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
50606         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
50607
50608 2007-11-04  Bruno Haible  <bruno@clisp.org>
50609
50610         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
50611         precision handling.
50612         * tests/test-vasprintf-posix.c (test_function): Likewise.
50613         * tests/test-snprintf-posix.h (test_function): Likewise.
50614         * tests/test-sprintf-posix.h (test_function): Likewise.
50615
50616         Fix *printf behaviour for large precisions on mingw and BeOS.
50617         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
50618         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
50619         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
50620         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
50621         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50622         gl_PRINTF_PRECISION and test its result. Invoke
50623         gl_PREREQ_VASNPRINTF_PRECISION.
50624         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50625         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50626         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50627         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50628         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50629         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50630         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50631         * doc/functions/fprintf.texi: Update.
50632         * doc/functions/printf.texi: Update.
50633         * doc/functions/snprintf.texi: Update.
50634         * doc/functions/sprintf.texi: Update.
50635         * doc/functions/vfprintf.texi: Update.
50636         * doc/functions/vprintf.texi: Update.
50637         * doc/functions/vsnprintf.texi: Update.
50638         * doc/functions/vsprintf.texi: Update.
50639
50640 2007-11-04  Bruno Haible  <bruno@clisp.org>
50641
50642         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
50643
50644 2007-11-04  Bruno Haible  <bruno@clisp.org>
50645
50646         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
50647         Reported by Sylvain Beucler <beuc@gnu.org>.
50648
50649 2007-11-03  Bruno Haible  <bruno@clisp.org>
50650
50651         * tests/test-fprintf-posix2.sh: New file.
50652         * tests/test-fprintf-posix2.c: New file.
50653         * modules/fprintf-posix-tests (Files): Add them.
50654         (TESTS): Add test-fprintf-posix2.sh.
50655         (configure.ac): Check for getrlimit and setrlimit.
50656         (check_PROGRAMS): Add test-fprintf-posix2.
50657
50658         * tests/test-printf-posix2.sh: New file.
50659         * tests/test-printf-posix2.c: New file.
50660         * modules/printf-posix-tests (Files): Add them.
50661         (TESTS): Add test-printf-posix2.sh.
50662         (configure.ac): Check for getrlimit and setrlimit.
50663         (check_PROGRAMS): Add test-printf-posix2.
50664
50665         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
50666         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
50667         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
50668         (decode_double): New function, copied from decode_long_double.
50669         (scale10_round_decimal_decoded): New function, extracted from
50670         scale10_round_decimal_long_double.
50671         (scale10_round_decimal_long_double): Use it.
50672         (scale10_round_decimal_double): New function.
50673         (floorlog10): New function.
50674         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
50675         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
50676         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
50677         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50678         gl_PRINTF_ENOMEM and test its result. Invoke
50679         gl_PREREQ_VASNPRINTF_ENOMEM.
50680         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50681         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50682         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50683         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50684         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50685         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50686         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50687         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
50688         * modules/snprintf-posix (Depends-on): Likewise.
50689         * modules/sprintf-posix (Depends-on): Likewise.
50690         * modules/vasnprintf-posix (Depends-on): Likewise.
50691         * modules/vasprintf-posix (Depends-on): Likewise.
50692         * modules/vfprintf-posix (Depends-on): Likewise.
50693         * modules/vsnprintf-posix (Depends-on): Likewise.
50694         * modules/vsprintf-posix (Depends-on): Likewise.
50695         * doc/functions/fprintf.texi: Update.
50696         * doc/functions/printf.texi: Update.
50697         * doc/functions/snprintf.texi: Update.
50698         * doc/functions/sprintf.texi: Update.
50699         * doc/functions/vfprintf.texi: Update.
50700         * doc/functions/vprintf.texi: Update.
50701         * doc/functions/vsnprintf.texi: Update.
50702         * doc/functions/vsprintf.texi: Update.
50703
50704 2007-11-03  Bruno Haible  <bruno@clisp.org>
50705
50706         * modules/frexp-nolibm-tests: New file.
50707
50708         * modules/frexp-nolibm: New file.
50709         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
50710
50711 2007-11-03  Bruno Haible  <bruno@clisp.org>
50712
50713         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
50714         value is C99 compliant.
50715         Needed for OSF/1 5.1.
50716
50717 2007-11-03  Bruno Haible  <bruno@clisp.org>
50718
50719         Fix out-of-memory handling of vasnprintf.
50720         * lib/printf-parse.c: Include <errno.h>.
50721         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
50722         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
50723         is already set.
50724
50725 2007-11-02  Eric Blake  <ebb9@byu.net>
50726
50727         Fix tests on cygwin.
50728         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
50729
50730 2007-11-01  Bruno Haible  <bruno@clisp.org>
50731
50732         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
50733         warning.
50734         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
50735         needed for POSIX compatibility.
50736
50737 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
50738
50739         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
50740         for compatibility with GNU.
50741
50742 2007-11-01  Bruno Haible  <bruno@clisp.org>
50743
50744         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
50745         (putenv): Renamed from rpl_putenv. Change argument type from
50746         'const char *' to 'char *'.
50747         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
50748         of defining putenv in config.h, just set REPLACE_PUTENV.
50749         * modules/putenv (Depends-on): Add stdlib.
50750         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50751         (Include): Use <stdlib.h>.
50752         * lib/stdlib.in.h (putenv): New declaration.
50753         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
50754         REPLACE_PUTENV.
50755         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
50756         REPLACE_PUTENV.
50757         Needed for MacOS X 10.5.0.
50758         Reported by Peter O'Gorman <peter@pogma.com>.
50759
50760 2007-11-01  Jim Meyering  <meyering@redhat.com>
50761
50762         Treat an empty date string exactly like "0".
50763         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
50764         if the remaining date string (to be parsed) is empty, use "0".
50765         Reported by Mischa Molhoek and discussed in this thread:
50766         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
50767
50768 2007-10-31  Bruno Haible  <bruno@clisp.org>
50769
50770         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
50771         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
50772         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
50773         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
50774         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
50775         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
50776
50777 2007-10-31  Bruno Haible  <bruno@clisp.org>
50778
50779         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
50780         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
50781         (AC_TYPE_LONG_LONG_INT): Use it.
50782         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
50783         it as well.
50784         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
50785         to m4/longlong.m4.
50786         * modules/stdint (Files): Remove m4/ulonglong.m4.
50787         * modules/strtoull (Files): Use m4/longlong.m4 instead of
50788         m4/ulonglong.m4.
50789         * modules/strtoumax (Files): Likewise.
50790
50791 2007-10-30  Bruno Haible  <bruno@clisp.org>
50792
50793         * modules/xvasprintf-posix: New file.
50794         Suggested by Eric Blake.
50795
50796 2007-10-30  Bruno Haible  <bruno@clisp.org>
50797
50798         * modules/xprintf-posix-tests: New file.
50799         * tests/test-xprintf-posix.sh: New file.
50800         * tests/test-xprintf-posix.c: New file.
50801         * tests/test-xfprintf-posix.c: New file.
50802
50803         * modules/xprintf-posix: New file.
50804
50805 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50806
50807         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
50808         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
50809         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
50810
50811 2007-10-29  Bruno Haible  <bruno@clisp.org>
50812
50813         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
50814         contain the special marker '_cv_'.
50815         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
50816         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
50817         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
50818         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
50819         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
50820         Reported by Ralf Wildenhues.
50821
50822 2007-10-29  Bruno Haible  <bruno@clisp.org>
50823
50824         * gnulib-tool (func_import): When --lgpl is not specified, set
50825         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
50826         GPLv3.
50827         Reported by Simon Josefsson.
50828
50829 2007-10-28  Bruno Haible  <bruno@clisp.org>
50830
50831         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
50832         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
50833         HAVE_DECL_ISFINITE.
50834         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
50835         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
50836         HAVE_DECL_ISFINITE.
50837
50838 2007-10-28  Bruno Haible  <bruno@clisp.org>
50839
50840         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
50841         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
50842
50843 2007-10-28  Bruno Haible  <bruno@clisp.org>
50844
50845         Fix link errors with Sun C 5.0 on Solaris 10.
50846         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
50847         function is declared but not present in the compiler's libm.
50848         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
50849         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
50850         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
50851         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
50852         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
50853         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
50854         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
50855         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
50856         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
50857         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
50858         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
50859         HAVE_DECL_FLOORL.
50860
50861 2007-10-28  Bruno Haible  <bruno@clisp.org>
50862
50863         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
50864         gl_FUNC_FLOORL. Cache the result.
50865         (gl_FUNC_FLOORL): Use it.
50866         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
50867         gl_FUNC_CEILL. Cache the result.
50868         (gl_FUNC_CEILL): Use it.
50869
50870         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
50871         gl_FUNC_FLOOR. Cache the result.
50872         (gl_FUNC_FLOOR): Use it.
50873         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
50874         gl_FUNC_CEIL. Cache the result.
50875         (gl_FUNC_CEIL): Use it.
50876
50877         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
50878         gl_FUNC_FLOORF. Cache the result.
50879         (gl_FUNC_FLOORF): Use it.
50880         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
50881         gl_FUNC_CEILF. Cache the result.
50882         (gl_FUNC_CEILF): Use it.
50883
50884 2007-10-28  Bruno Haible  <bruno@clisp.org>
50885
50886         * gnulib-tool: Allow specifying the LGPL version number through
50887         --lgpl=2 or --lgpl=3.
50888         (func_usage): Document --lgpl with argument.
50889         Handle --lgpl=... arguments.
50890         (func_import): Recognize also gl_LGPL calls with an argument. When
50891         --lgpl=2 is used and the module's license is just LGPL, report an
50892         error. Set sed_transform_lib_file according to the lgpl variable. In
50893         the generated files, use --lgpl or gl_LGPL invocations with argument,
50894         if necessary.
50895         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
50896         an LGPv2+ license.
50897         * doc/gnulib-tool.texi (Modified imports): Update explanation of
50898         gl_LGPL macro.
50899
50900 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50901             Bruno Haible  <bruno@clisp.org>
50902
50903         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
50904         (u16_uctomb_aux): Likewise.
50905         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
50906         !HAVE_INLINE.
50907         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
50908
50909 2007-10-28  Bruno Haible  <bruno@clisp.org>
50910
50911         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
50912         Invoke AM_GETTEXT_OPTION if it exists.
50913         * modules/vasprintf: Likewise.
50914         * modules/verror: Likewise.
50915         * modules/xprintf: Likewise.
50916         * modules/xvasprintf: Likewise.
50917
50918 2007-10-27  Ben Pfaff  <blp@gnu.org>
50919
50920         * lib/math.in.h: Define isfinite macro and prototypes for
50921         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
50922         implementations.
50923         * m4/math_h.m4: New substitutions for isfinite module.
50924         * lib/isfinite.c: New file.
50925         * m4/isfinite.m4: New file.
50926         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
50927         * modules/isfinite: New file.
50928         * modules/isfinite-tests: New file.
50929         * tests/tests-isfinite.c: New file.
50930         * doc/functions/isfinite.texi: Mention isfinite module.
50931         * MODULES.html.sh: Mention new module.
50932
50933 2007-10-27  Ben Pfaff  <blp@gnu.org>
50934
50935         Ralf Wildenhues reported that Tru64 4.0D declares the round
50936         functions but does not have definitions.
50937         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
50938         cannot be found in any library, set the output variable to
50939         "missing" instead of "".
50940         * m4/round.m4: Also use our substitute if we cannot find round in
50941         any library, even if it is declared.
50942         * m4/roundf.m4: Likewise for roundf.
50943         * m4/roundl.m4: Likewise for roundl.
50944         * lib/math.in.h: Undefine roundf, round, roundl before defining
50945         their replacements, to allow for hypothetical systems where these
50946         may be defined as macros but not available in libraries.
50947
50948 2007-10-27  Bruno Haible  <bruno@clisp.org>
50949
50950         * doc/gnulib.texi: Invoke @firstparagraphindent.
50951         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
50952         changes in gnulib.
50953         (Source changes): New section.
50954
50955 2007-10-26  Bruno Haible  <bruno@clisp.org>
50956
50957         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
50958         borrowed from autoconf.
50959
50960 2007-10-26  Bruno Haible  <bruno@clisp.org>
50961
50962         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
50963         strerror returned the empty string. Needed on HP-UX 11.00.
50964
50965 2007-10-24  Micah Cowan  <micah@cowan.name>
50966
50967         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
50968         * build-aux/bootstrap: Remove support for now-unnecessary option,
50969         --cvs-user, and envvars CVS_USER, CVS_RSH.
50970
50971 2007-10-24  Jim Meyering  <meyering@redhat.com>
50972
50973         Avoid diagnostics from sha1sum when there is no cached checksum.
50974         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
50975         if the po.s1 file hasn't been created yet.
50976
50977         * build-aux/bootstrap: Sync from coreutils:
50978         2007-10-24  Jim Meyering  <meyering@redhat.com>
50979         Get gnulib from the git repository, not from an obsolete cvs one.
50980         * build-aux/bootstrap: Suggestion from Micah Cowan.
50981         2007-10-04  Jim Meyering  <jim@meyering.net>
50982         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
50983         (update_po_files): Work also when there are no .po files in po/.
50984
50985 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
50986
50987         * README: Append ".git" to git and cg examples.
50988         Problem reported by Benoit Sigoure.
50989
50990 2007-10-23  Micah Cowan  <micah@cowan.name>
50991
50992         * users.txt: Add wget.
50993
50994 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50995
50996         Fix linking of some unistdio tests on FreeBSD.
50997         * modules/unistdio/u16-vsnprintf-tests
50998         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
50999         * modules/unistdio/u16-vsprintf-tests
51000         (test_u16_vsnprintf1_LDADD): Likewise.
51001         * modules/unistdio/u32-vsnprintf-tests
51002         (test_u32_vsnprintf1_LDADD): Likewise.
51003         * modules/unistdio/u32-vsprintf-tests
51004         (test_u32_vsprintf1_LDADD): Likewise.
51005         * modules/unistdio/u8-vsnprintf-tests
51006         (test_u8_vsnprintf1_LDADD): Likewise.
51007         * modules/unistdio/u8-vsprintf-tests
51008         (test_u8_vsprintf1_LDADD): Likewise.
51009         * modules/unistdio/ulc-vsnprintf-tests
51010         (test_ulc_vsnprintf1_LDADD): Likewise.
51011         * modules/unistdio/ulc-vsprintf-tests
51012         (test_ulc_vsprintf1_LDADD): Likewise.
51013
51014         Fix linking of some uniconv tests on FreeBSD.
51015         * modules/uniconv/u16-conv-from-enc-tests
51016         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
51017         * modules/uniconv/u16-conv-to-enc-tests
51018         (test_u16_conv_to_enc_LDADD): Likewise.
51019         * modules/uniconv/u16-strconv-from-enc-tests
51020         (test_u16_strconv_from_enc_LDADD): Likewise.
51021         * modules/uniconv/u16-strconv-to-enc-tests
51022         (test_u16_strconv_to_enc_LDADD): Likewise.
51023         * modules/uniconv/u32-conv-from-enc-tests
51024         (test_u32_conv_from_enc_LDADD): Likewise.
51025         * modules/uniconv/u32-conv-to-enc-tests
51026         (test_u32_conv_to_enc_LDADD): Likewise.
51027         * modules/uniconv/u32-strconv-from-enc-tests
51028         (test_u32_strconv_from_enc_LDADD): Likewise.
51029         * modules/uniconv/u32-strconv-to-enc-tests
51030         (test_u32_strconv_to_enc_LDADD): Likewise.
51031         * modules/uniconv/u8-conv-from-enc-tests
51032         (test_u8_conv_from_enc_LDADD): Likewise.
51033         * modules/uniconv/u8-conv-to-enc-tests
51034         (test_u8_conv_to_enc_LDADD): Likewise.
51035         * modules/uniconv/u8-strconv-from-enc-tests
51036         (test_u8_strconv_from_enc_LDADD): Likewise.
51037         * modules/uniconv/u8-strconv-to-enc-tests
51038         (test_u8_strconv_to_enc_LDADD): Likewise.
51039
51040 2007-10-22  Bruno Haible  <bruno@clisp.org>
51041
51042         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
51043         size.
51044
51045 2007-10-22  Eric Blake  <ebb9@byu.net>
51046
51047         Tweak x*printf documentation.
51048         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
51049         variable name and comments.
51050         Suggested by Bruno Haible.
51051
51052 2007-10-22  Bruno Haible  <bruno@clisp.org>
51053
51054         * lib/acl.c (copy_acl): Fix file name in comment.
51055
51056 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
51057
51058         Fix Tru64 problem with stdbool.h.
51059         * lib/stdbool.in.h (false, true):
51060         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
51061         Don't declare as an enum in this situation; it runs afoul of Tru64.
51062         Problem reported by Steven M. Schweda in
51063         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
51064
51065 2007-10-22  Eric Blake  <ebb9@byu.net>
51066
51067         Also wrap vf?printf.
51068         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
51069         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
51070         (xvprintf, xvfprintf): New functions.
51071
51072 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51073
51074         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
51075         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
51076
51077         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
51078         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
51079
51080 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
51081
51082         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
51083         by Bruno Haible.
51084
51085 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51086
51087         * lib/getloadavg.c
51088         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
51089         Undef `sys' after including sys/table.h, for Tru64 4.0D.
51090
51091         * tests/test-i-ring.c: Work for C89.
51092
51093 2007-10-22  Bruno Haible  <bruno@clisp.org>
51094
51095         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
51096         -1u, in preprocessor expression, so that we don't test for the bug
51097         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
51098         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
51099
51100 2007-10-22  Eric Blake  <ebb9@byu.net>
51101
51102         * tests/test-yesno.sh: Silence stderr during test.
51103
51104 2007-10-22  Simon Josefsson  <simon@josefsson.org>
51105
51106         * modules/crypto/gc-camellia: New file.
51107
51108         * m4/gc-camellia.m4: New file.
51109
51110         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
51111
51112         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
51113
51114 2007-10-22  Simon Josefsson  <simon@josefsson.org>
51115
51116         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
51117         --help to stdout.  Reported by sms@antinode.org (Steven
51118         M. Schweda).
51119
51120 2007-10-22  Simon Josefsson  <simon@josefsson.org>
51121
51122         * users.txt: Fix link to libksba.
51123
51124 2007-10-21  Ben Pfaff  <blp@gnu.org>
51125
51126         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
51127         round.c roundf implementation that depends on floorf and ceilf to
51128         be tested unconditionally.
51129
51130 2007-10-21  Ben Pfaff  <blp@gnu.org>
51131
51132         * m4/check-libm-func.m4: Removed.
51133         * m4/check-math-lib.m4: New file.
51134         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
51135         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
51136         definition and lack of AC_LIBOBJ([roundf]).
51137         * m4/roundl.m4: Ditto, and similarly for roundl.
51138         * modules/round: Reference new m4 file.
51139         * modules/roundf: Ditto.
51140         * modules/roundl: Ditto.
51141         * tests/test-round2.c (main): Use ROUND instead of round.
51142         Bug report from Bruno Haible.
51143
51144 2007-10-21  Bruno Haible  <bruno@clisp.org>
51145
51146         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
51147         context.
51148
51149 2007-10-21  Bruno Haible  <bruno@clisp.org>
51150
51151         * tests/test-wcwidth.c (main): Allow negative result for some control
51152         characters.
51153
51154         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
51155         Needed on OSF/1 5.1.
51156
51157 2007-10-21  Bruno Haible  <bruno@clisp.org>
51158
51159         * tests/test-floorf1.c: Include isnanf.h.
51160         (main): Use isnanf() instead of isnan().
51161         * tests/test-ceilf1.c: Include isnanf.h.
51162         (main): Use isnanf() instead of isnan().
51163         * tests/test-truncf1.c: Include isnanf.h.
51164         (main): Use isnanf() instead of isnan().
51165         * tests/test-roundf1.c: Include isnanf.h.
51166         (main): Use isnanf() instead of isnan().
51167
51168 2007-10-21  Eric Blake  <ebb9@byu.net>
51169
51170         * users.txt: Update URL for m4.
51171
51172 2007-10-21  Bruno Haible  <bruno@clisp.org>
51173
51174         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
51175
51176 2007-10-21  Bruno Haible  <bruno@clisp.org>
51177
51178         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
51179         Git's management files if the CVS files are not present.
51180
51181 2007-10-20  Bruno Haible  <bruno@clisp.org>
51182
51183         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
51184         gcc-3.4.x.
51185
51186 2007-10-20  Ben Pfaff  <blp@gnu.org>
51187
51188         * lib/math.in.h: Declare round, roundf, roundl if we are providing
51189         implementations.
51190         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
51191         * lib/round.c: New file.
51192         * lib/roundf.c: New file.
51193         * lib/roundl.c: New file.
51194         * m4/round.m4: New file.
51195         * m4/roundf.m4: New file.
51196         * m4/roundl.m4: New file.
51197         * m4/check-libm-func-m4: New file.
51198         * modules/math: Replace round, roundf, roundl related @VARS@ in
51199         math.in.h.
51200         * modules/round: New file.
51201         * modules/round-tests: New file.
51202         * modules/roundf: New file.
51203         * modules/roundf-tests: New file.
51204         * modules/roundl: New file.
51205         * modules/roundl-tests: New file.
51206         * tests/test-round1.c: New file.
51207         * tests/test-round2.c: New file.
51208         * tests/test-roundf1.c: New file.
51209         * tests/test-roundf2.c: New file.
51210         * tests/test-roundl.c: New file.
51211         * doc/functions/round.texi: Mention round module.
51212         * doc/functions/roundf.texi: Mention roundf module.
51213         * doc/functions/roundl.texi: Mention roundl module.
51214         * MODULES.html.sh: Mention new modules.
51215         Thanks to Bruno Haible for suggestions.
51216
51217 2007-10-20  Jim Meyering  <meyering@redhat.com>
51218
51219         * lib/xprintf.c: Include <config.h> unconditionally.
51220
51221         Change xprintf's license to GPL.
51222         * modules/xprintf (License): s/LGPL/GPL/, since this module
51223         depends on modules (exit and exitfail) which are GPL.
51224         Suggestion from Bruno Haible.
51225
51226         xprintf fixes.
51227         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
51228         Use a clearer diagnostic.
51229         Patch from Bruno Haible.
51230
51231 2007-10-20  Bruno Haible  <bruno@clisp.org>
51232
51233         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
51234         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
51235         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51236
51237 2007-10-20  Bruno Haible  <bruno@clisp.org>
51238
51239         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
51240         precision in the comparison result > x - 1 or similar.
51241         * tests/test-ceilf2.c (correct_result_p): Likewise.
51242         * tests/test-truncf2.c (correct_result_p): Likewise.
51243         * tests/test-trunc2.c (correct_result_p): Likewise.
51244         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51245
51246 2007-10-20  Bruno Haible  <bruno@clisp.org>
51247
51248         * modules/ceil: New file.
51249         * m4/ceil.m4: New file.
51250         * doc/functions/ceil.texi: Mention the 'ceil' module.
51251
51252 2007-10-20  Bruno Haible  <bruno@clisp.org>
51253
51254         * modules/floor: New file.
51255         * m4/floor.m4: New file.
51256         * doc/functions/floor.texi: Mention the 'floor' module.
51257
51258 2007-10-20  Bruno Haible  <bruno@clisp.org>
51259
51260         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
51261         of %a.
51262         * modules/floorf-tests (Depends-on): Likewise.
51263         * modules/truncf-tests (Depends-on): Likewise.
51264         * modules/trunc-tests (Depends-on): Likewise.
51265         Reported by Ben Pfaff.
51266
51267 2007-10-19  Jim Meyering  <meyering@redhat.com>
51268
51269         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
51270         Don't bother testing specific errno values.  Just test ferror.
51271
51272         New module: xprintf
51273         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
51274
51275 2007-10-19  Bruno Haible  <bruno@clisp.org>
51276
51277         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
51278         syntax.
51279         * modules/javaexec (Makefile.am): Likewise.
51280         * modules/relocatable-prog (Makefile.am): Likewise.
51281         Suggested by Jim Meyering.
51282
51283 2007-10-18  Bruno Haible  <bruno@clisp.org>
51284
51285         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
51286         Reported by Jim Meyering.
51287
51288 2007-10-18  Eric Blake  <ebb9@byu.net>
51289
51290         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
51291
51292 2007-10-18  Bruno Haible  <bruno@clisp.org>
51293
51294         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
51295         the format string into writable memory. Needed in Fortify conditions.
51296
51297 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
51298             Bruno Haible  <bruno@clisp.org>
51299
51300         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
51301         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
51302         * modules/trim (Depends-on): Add mbchar.
51303         (configure.ac): Add gl_FUNC_MBRTOWC.
51304         (Makefile.am): Augment lib_SOURCES.
51305
51306 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
51307
51308         Modify glob.c to use fstatat and dirfd, to simplify it.
51309         Suggested by Eric Blake.
51310         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
51311         Don't include <stdbool.h>; not used.
51312         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
51313         (link_exists_p): Simplify implementation, since we can now assume
51314         dirfd and fstatat.
51315         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
51316
51317 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51318
51319         * gnulib-tool (func_get_dependencies): Fix sed script to
51320         match only tests.
51321
51322 2007-10-17  Bruno Haible  <bruno@clisp.org>
51323
51324         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
51325         allow locale names without encoding suffix.
51326         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
51327         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
51328
51329 2007-10-16  Bruno Haible  <bruno@clisp.org>
51330
51331         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
51332         * lib/getgroups.c (getgroups): Likewise.
51333         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
51334
51335 2007-10-16  Bruno Haible  <bruno@clisp.org>
51336
51337         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
51338         * modules/malloc-posix (License): Likewise.
51339         * modules/realloc-posix (License): Likewise.
51340         * modules/calloc-posix (License): Likewise.
51341         * modules/intprops (License): Change from GPL to LGPL, with
51342         Paul Eggert's approval.
51343
51344 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
51345
51346         Merge glibc changes into lib/glob.c.
51347
51348         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
51349         2007-10-15 04:59:03 UTC.  Here are the changes:
51350
51351         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
51352
51353         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
51354
51355         * lib/glob.c: Add some branch prediction throughout.
51356
51357         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
51358
51359         [BZ #5103]
51360         * lib/glob.c (glob): Recognize patterns starting \/.
51361
51362         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
51363
51364         [BZ #3996]
51365         * lib/glob.c (attribute_hidden): Define if not defined.
51366         (glob): Unescape dirname, filename or username when needed and not
51367         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
51368         is NULL.  Handle unescaped [ in pattern without closing ].
51369         Don't pass GLOB_CHECK down to recursive glob for directories.
51370         (__glob_pattern_type): New function.
51371         (__glob_pattern_p): Implement using __glob_pattern_type.
51372         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
51373         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
51374         Remove unreachable code.
51375
51376         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
51377
51378         * lib/glob.c (glob_in_dir): Add some comments and asserts to
51379         explain why there are no leaks.
51380
51381         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
51382
51383         [BZ #3253]
51384         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
51385         time, rather allocate increasingly bigger arrays of pointers, if
51386         possible with alloca, if too large with malloc.
51387
51388 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
51389
51390         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
51391         Problem reported by H.Merijn Brand in
51392         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
51393         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
51394         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
51395
51396 2007-10-15  Bruno Haible  <bruno@clisp.org>
51397
51398         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
51399         with explicit rpl_ prefix.
51400         * lib/fopen.c (fopen): Likewise.
51401         * lib/freopen.c (freopen): Likewise.
51402         * lib/iconv.c (iconv): Likewise.
51403         * lib/iconv_close.c (iconv_close): Likewise.
51404
51405 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51406
51407         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
51408
51409 2007-10-15  Bruno Haible  <bruno@clisp.org>
51410
51411         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
51412         <stddef.h> instead of <stdlib.h> since we only need NULL.
51413         Reported by Ben Pfaff <blp@cs.stanford.edu>.
51414
51415 2007-10-15  Bruno Haible  <bruno@clisp.org>
51416
51417         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
51418         Replace paragraph talking about LIBOBJS.
51419         Reported by Colin Watson <cjwatson@debian.org>.
51420
51421 2007-10-15  Bruno Haible  <bruno@clisp.org>
51422
51423         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
51424         <stdlib.h> before using NULL.
51425
51426 2007-10-15  Simon Josefsson  <simon@josefsson.org>
51427
51428         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
51429         Reported by Albert Chin <china@thewrittenword.com>.
51430
51431 2007-10-14  Bruno Haible  <bruno@clisp.org>
51432
51433         * modules/iconv_open-utf-tests: New file.
51434         * tests/test-iconv-utf.c: New file.
51435
51436         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
51437         * modules/iconv_open-utf: New file.
51438         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
51439         (iconv, iconv_close): New declarations.
51440         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
51441         be defined.
51442         (iconv_open): Add special handling of conversion between UTF-8 and
51443         UTF-{16,32}{BE,LE}.
51444         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
51445         * lib/iconv_close.c: New file.
51446         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
51447         gl_FUNC_ICONV_OPEN.
51448         (gl_FUNC_ICONV_OPEN): Use it.
51449         (gl_FUNC_ICONV_OPEN_UTF): New macro.
51450         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
51451         and REPLACE_ICONV_UTF.
51452         * modules/iconv_open (Depends-on): Add c-strcase.
51453         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
51454         ICONV_CONST.
51455         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
51456
51457 2007-10-13  Albert Chin  <china@thewrittenword.com>
51458             Bruno Haible  <bruno@clisp.org>
51459
51460         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
51461         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
51462
51463 2007-10-13  Bruno Haible  <bruno@clisp.org>
51464
51465         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
51466         defined, use the ISO C99 inline semantics.
51467         * lib/argp.h (ARGP_EI): Likewise.
51468
51469 2007-10-13  Bruno Haible  <bruno@clisp.org>
51470
51471         Handle 'inline' change in gcc 4.3.0.
51472         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
51473         argp_fmtstream_write, argp_fmtstream_set_lmargin,
51474         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
51475         argp_fmtstream_point): Disable 'extern' declaration if the function
51476         definition is going to be provided inline.
51477         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
51478         semantics, not the ISO C99 inline semantics.
51479         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
51480         'extern' declaration if the function definition is going to be provided
51481         inline.
51482         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
51483         the GNU C inline semantics, not the ISO C99 inline semantics. With
51484         GCC 4.2, avoid a warning.
51485
51486 2007-10-13  Bruno Haible  <bruno@clisp.org>
51487
51488         * lib/freading.h (freading): Enable the use of __freading for
51489         glibc >= 2.7.
51490         * lib/freading.c (freading): Likewise.
51491
51492 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
51493
51494         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
51495         "warning: C99 inline functions are not supported; using GNU89".
51496
51497 2007-10-12  Bruno Haible  <bruno@clisp.org>
51498
51499         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
51500         of 2.
51501         * tests/test-ceilf2.c: New file.
51502         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
51503
51504         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
51505         * modules/ceilf-tests: Update.
51506
51507 2007-10-12  Bruno Haible  <bruno@clisp.org>
51508
51509         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
51510         of 2.
51511         * tests/test-floorf2.c: New file.
51512         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
51513
51514         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
51515         * modules/floorf-tests: Update.
51516
51517 2007-10-12  Bruno Haible  <bruno@clisp.org>
51518
51519         * tests/test-trunc2.c: New file.
51520         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
51521
51522         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
51523         * modules/trunc-tests: Update.
51524
51525 2007-10-12  Bruno Haible  <bruno@clisp.org>
51526
51527         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
51528         of 2.
51529         * tests/test-truncf2.c: New file.
51530         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
51531
51532         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
51533         * modules/truncf-tests: Update.
51534
51535 2007-10-11  Eric Blake  <ebb9@byu.net>
51536
51537         Don't claim strerror is broken on Interix.
51538         * doc/functions/strerror.texi (strerror): Known broken systems are
51539         now Solaris 8, and not Interix.
51540         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
51541         Interix on cross-compile.
51542         Reported by Martin Koeppe in
51543         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
51544
51545 2007-10-11  Bruno Haible  <bruno@clisp.org>
51546
51547         * modules/i-ring-tests: New file.
51548         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
51549         instead of assert.
51550
51551 2007-10-11  Bruno Haible  <bruno@clisp.org>
51552
51553         * modules/filenamecat-tests: New file.
51554         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
51555         * lib/filenamecat.c: Remove test code.
51556
51557 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
51558
51559         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
51560
51561         * lib/strerror.c: Include <string.h> always, to test interface,
51562         and to remove the need for the dummy.
51563         Include intprops.h to compute width instead of doing it ourselves
51564         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
51565         (strerror): Define it to return NULL if there's no system strerror.
51566         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
51567         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
51568         ancient pre-strerror Unix systems well any more.  Saying "unknown
51569         system error" is enough.
51570         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
51571         simpler strerror.c implementation.
51572         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
51573         Simplify the tests to reflect the simpler strerror implementation.
51574         * modules/strerror (Depends-on): Add intprops.
51575
51576 2007-10-09  Eric Blake  <ebb9@byu.net>
51577
51578         Silence test-fpending.
51579         * modules/fpending-tests (Files): Add wrapper script.
51580         * tests/test-fpending.sh: New file.
51581
51582 2007-10-09  Bruno Haible  <bruno@clisp.org>
51583
51584         * MODULES.html.sh (func_module): Don't create a hyperlink for
51585         function names like 'printf_frexp'.
51586         (Misc): Add crc, memxor.
51587         (Characteristics of floating types): New section.
51588         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
51589         isnanf-nolibm, signbit, trunc, truncf, truncl.
51590         (Enhancements for ISO C 99 functions): New subsection Input/output.
51591         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
51592         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
51593         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
51594         (Compatibility checks for POSIX:2001 functions): Add clock-time.
51595         (Enhancements for POSIX:2001 functions): Add chdir-long.
51596         (File system functions): Add areadlink, chdir-safer, read-file.
51597         Remove cycle-check.
51598         (File system as inode set): New section.
51599         (Date and time): Add gethrxtime.
51600         (Multithreading): Add openmp.
51601         (Internationalization functions): Add localename.
51602         (Unicode string functions): Add unistr/u*-mbsnlen.
51603         (Support for maintaining and releasing projects): Add git-version-gen.
51604         (Lone files): Remove directories.
51605
51606 2007-10-08  Ben Pfaff  <blp@gnu.org>
51607
51608         * lib/xmalloca.h: Fix typo in comment.
51609
51610 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
51611
51612         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
51613         when avoiding problems with integer overflow.  Use a portable test
51614         instead.
51615
51616 2007-10-08  Simon Josefsson  <simon@josefsson.org>
51617
51618         * modules/dummy (License): Change to LGPLv2+.
51619         * modules/float (License): Likewise
51620         * modules/realloc (License): Likewise
51621         * modules/stdlib (License): Likewise
51622
51623 2007-10-07  Bruno Haible  <bruno@clisp.org>
51624
51625         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
51626         * floor.c (TWO_MANT_DIG): Likewise.
51627         * ceil.c (TWO_MANT_DIG): Likewise.
51628         Reported by Ben Pfaff.
51629
51630 2007-10-07  Bruno Haible  <bruno@clisp.org>
51631
51632         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
51633         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
51634         * lib/frexp.c (FUNC): Likewise.
51635         * lib/printf-frexp.h (printf_frexp): Likewise.
51636         * lib/printf-frexpl.h (printf_frexpl): Likewise.
51637         * lib/printf-frexp.c (FUNC): Likewise.
51638         Suggested by Jim Meyering.
51639
51640 2007-10-07  Jim Meyering  <meyering@redhat.com>
51641
51642         Make xnanosleep's integer overflow test more robust.
51643         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
51644         so that gcc-4.3.0 doesn't optimize away this test for overflow.
51645
51646 2007-10-07  Bruno Haible  <bruno@clisp.org>
51647
51648         * NEWS: Mention the license change.
51649
51650         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
51651         abbreviations in the modules files.
51652
51653         Change copyright notice from GPLv2+ to GPLv3+.
51654         * README: Change copyright notice.
51655         * MODULES.html.sh: Likewise.
51656         * build-aux/bootstrap.conf: Likewise.
51657         * build-aux/config.libpath: Likewise.
51658         * build-aux/csharpcomp.sh.in: Likewise.
51659         * build-aux/csharpexec.sh.in: Likewise.
51660         * build-aux/install-reloc: Likewise.
51661         * build-aux/javacomp.sh.in: Likewise.
51662         * build-aux/javaexec.sh.in: Likewise.
51663         * build-aux/ldd.sh.in: Likewise.
51664         * build-aux/reloc-ldflags: Likewise.
51665         * build-aux/relocatable.sh.in: Likewise.
51666         * build-aux/x-to-1.in: Likewise.
51667         * check-module: Likewise.
51668         * config/srclistvars.sh: Likewise.
51669         * gnulib-tool: Likewise.
51670         * lib/acl-internal.h: Likewise.
51671         * lib/acl.c: Likewise.
51672         * lib/acl.h: Likewise.
51673         * lib/acl_entries.c: Likewise.
51674         * lib/areadlink-with-size.c: Likewise.
51675         * lib/areadlink.c: Likewise.
51676         * lib/areadlink.h: Likewise.
51677         * lib/argmatch.c: Likewise.
51678         * lib/argmatch.h: Likewise.
51679         * lib/argp-ba.c: Likewise.
51680         * lib/argp-eexst.c: Likewise.
51681         * lib/argp-fmtstream.c: Likewise.
51682         * lib/argp-fmtstream.h: Likewise.
51683         * lib/argp-fs-xinl.c: Likewise.
51684         * lib/argp-help.c: Likewise.
51685         * lib/argp-namefrob.h: Likewise.
51686         * lib/argp-parse.c: Likewise.
51687         * lib/argp-pin.c: Likewise.
51688         * lib/argp-pv.c: Likewise.
51689         * lib/argp-pvh.c: Likewise.
51690         * lib/argp-xinl.c: Likewise.
51691         * lib/argp.h: Likewise.
51692         * lib/at-func.c: Likewise.
51693         * lib/atanl.c: Likewise.
51694         * lib/backupfile.c: Likewise.
51695         * lib/backupfile.h: Likewise.
51696         * lib/basename.c: Likewise.
51697         * lib/binary-io.h: Likewise.
51698         * lib/byteswap.in.h: Likewise.
51699         * lib/c-stack.c: Likewise.
51700         * lib/c-stack.h: Likewise.
51701         * lib/c-strcasestr.c: Likewise.
51702         * lib/c-strcasestr.h: Likewise.
51703         * lib/c-strstr.c: Likewise.
51704         * lib/c-strstr.h: Likewise.
51705         * lib/c-strtod.c: Likewise.
51706         * lib/calloc.c: Likewise.
51707         * lib/canon-host.c: Likewise.
51708         * lib/canon-host.h: Likewise.
51709         * lib/canonicalize-lgpl.c: Likewise.
51710         * lib/canonicalize.c: Likewise.
51711         * lib/canonicalize.h: Likewise.
51712         * lib/ceil.c: Likewise.
51713         * lib/ceilf.c: Likewise.
51714         * lib/ceill.c: Likewise.
51715         * lib/chdir-long.c: Likewise.
51716         * lib/chdir-long.h: Likewise.
51717         * lib/chdir-safer.c: Likewise.
51718         * lib/chdir-safer.h: Likewise.
51719         * lib/chown.c: Likewise.
51720         * lib/classpath.c: Likewise.
51721         * lib/classpath.h: Likewise.
51722         * lib/clean-temp.c: Likewise.
51723         * lib/clean-temp.h: Likewise.
51724         * lib/cloexec.c: Likewise.
51725         * lib/close-stream.c: Likewise.
51726         * lib/closein.c: Likewise.
51727         * lib/closein.h: Likewise.
51728         * lib/closeout.c: Likewise.
51729         * lib/closeout.h: Likewise.
51730         * lib/concat-filename.c: Likewise.
51731         * lib/copy-file.c: Likewise.
51732         * lib/copy-file.h: Likewise.
51733         * lib/count-one-bits.h: Likewise.
51734         * lib/crc.c: Likewise.
51735         * lib/crc.h: Likewise.
51736         * lib/creat-safer.c: Likewise.
51737         * lib/csharpcomp.c: Likewise.
51738         * lib/csharpcomp.h: Likewise.
51739         * lib/csharpexec.c: Likewise.
51740         * lib/csharpexec.h: Likewise.
51741         * lib/cycle-check.c: Likewise.
51742         * lib/cycle-check.h: Likewise.
51743         * lib/diacrit.c: Likewise.
51744         * lib/diacrit.h: Likewise.
51745         * lib/diffseq.h: Likewise.
51746         * lib/dirchownmod.c: Likewise.
51747         * lib/dirent.in.h: Likewise.
51748         * lib/dirfd.c: Likewise.
51749         * lib/dirfd.h: Likewise.
51750         * lib/dirname.c: Likewise.
51751         * lib/dirname.h: Likewise.
51752         * lib/dummy.c: Likewise.
51753         * lib/dup-safer.c: Likewise.
51754         * lib/dup2.c: Likewise.
51755         * lib/eealloc.h: Likewise.
51756         * lib/error.c: Likewise.
51757         * lib/error.h: Likewise.
51758         * lib/euidaccess.c: Likewise.
51759         * lib/exclude.c: Likewise.
51760         * lib/exclude.h: Likewise.
51761         * lib/execute.c: Likewise.
51762         * lib/execute.h: Likewise.
51763         * lib/exitfail.c: Likewise.
51764         * lib/exitfail.h: Likewise.
51765         * lib/expl.c: Likewise.
51766         * lib/fatal-signal.c: Likewise.
51767         * lib/fatal-signal.h: Likewise.
51768         * lib/fbufmode.c: Likewise.
51769         * lib/fbufmode.h: Likewise.
51770         * lib/fchdir.c: Likewise.
51771         * lib/fchmodat.c: Likewise.
51772         * lib/fchownat.c: Likewise.
51773         * lib/fcntl--.h: Likewise.
51774         * lib/fcntl-safer.h: Likewise.
51775         * lib/fcntl.in.h: Likewise.
51776         * lib/fd-safer.c: Likewise.
51777         * lib/fflush.c: Likewise.
51778         * lib/file-has-acl.c: Likewise.
51779         * lib/file-set.c: Likewise.
51780         * lib/file-type.c: Likewise.
51781         * lib/file-type.h: Likewise.
51782         * lib/fileblocks.c: Likewise.
51783         * lib/filemode.c: Likewise.
51784         * lib/filemode.h: Likewise.
51785         * lib/filename.h: Likewise.
51786         * lib/filenamecat.c: Likewise.
51787         * lib/filenamecat.h: Likewise.
51788         * lib/findprog.c: Likewise.
51789         * lib/findprog.h: Likewise.
51790         * lib/float.in.h: Likewise.
51791         * lib/floor.c: Likewise.
51792         * lib/floorf.c: Likewise.
51793         * lib/floorl.c: Likewise.
51794         * lib/fopen-safer.c: Likewise.
51795         * lib/fopen.c: Likewise.
51796         * lib/fpending.c: Likewise.
51797         * lib/fpending.h: Likewise.
51798         * lib/fprintf.c: Likewise.
51799         * lib/fprintftime.h: Likewise.
51800         * lib/fpucw.h: Likewise.
51801         * lib/fpurge.c: Likewise.
51802         * lib/fpurge.h: Likewise.
51803         * lib/freadable.c: Likewise.
51804         * lib/freadable.h: Likewise.
51805         * lib/freadahead.c: Likewise.
51806         * lib/freadahead.h: Likewise.
51807         * lib/freading.c: Likewise.
51808         * lib/freading.h: Likewise.
51809         * lib/free.c: Likewise.
51810         * lib/freopen.c: Likewise.
51811         * lib/frexp.c: Likewise.
51812         * lib/frexpl.c: Likewise.
51813         * lib/fseek.c: Likewise.
51814         * lib/fseterr.c: Likewise.
51815         * lib/fseterr.h: Likewise.
51816         * lib/fstatat.c: Likewise.
51817         * lib/fstrcmp.c: Likewise.
51818         * lib/fstrcmp.h: Likewise.
51819         * lib/fsusage.c: Likewise.
51820         * lib/fsusage.h: Likewise.
51821         * lib/ftell.c: Likewise.
51822         * lib/ftello.c: Likewise.
51823         * lib/fts-cycle.c: Likewise.
51824         * lib/fts.c: Likewise.
51825         * lib/fts_.h: Likewise.
51826         * lib/full-read.c: Likewise.
51827         * lib/full-read.h: Likewise.
51828         * lib/full-write.c: Likewise.
51829         * lib/full-write.h: Likewise.
51830         * lib/fwritable.c: Likewise.
51831         * lib/fwritable.h: Likewise.
51832         * lib/fwriteerror.c: Likewise.
51833         * lib/fwriteerror.h: Likewise.
51834         * lib/fwriting.c: Likewise.
51835         * lib/fwriting.h: Likewise.
51836         * lib/gcd.c: Likewise.
51837         * lib/gcd.h: Likewise.
51838         * lib/getcwd.c: Likewise.
51839         * lib/getdate.h: Likewise.
51840         * lib/getdate.y: Likewise.
51841         * lib/getdomainname.c: Likewise.
51842         * lib/getdomainname.h: Likewise.
51843         * lib/getgroups.c: Likewise.
51844         * lib/gethostname.c: Likewise.
51845         * lib/gethrxtime.c: Likewise.
51846         * lib/gethrxtime.h: Likewise.
51847         * lib/getloadavg.c: Likewise.
51848         * lib/getndelim2.c: Likewise.
51849         * lib/getndelim2.h: Likewise.
51850         * lib/getnline.c: Likewise.
51851         * lib/getnline.h: Likewise.
51852         * lib/getopt.c: Likewise.
51853         * lib/getopt.in.h: Likewise.
51854         * lib/getopt1.c: Likewise.
51855         * lib/getopt_int.h: Likewise.
51856         * lib/getpagesize.h: Likewise.
51857         * lib/getsubopt.c: Likewise.
51858         * lib/gettime.c: Likewise.
51859         * lib/getugroups.c: Likewise.
51860         * lib/getugroups.h: Likewise.
51861         * lib/getusershell.c: Likewise.
51862         * lib/gl_anyavltree_list1.h: Likewise.
51863         * lib/gl_anyavltree_list2.h: Likewise.
51864         * lib/gl_anyhash_list1.h: Likewise.
51865         * lib/gl_anyhash_list2.h: Likewise.
51866         * lib/gl_anylinked_list1.h: Likewise.
51867         * lib/gl_anylinked_list2.h: Likewise.
51868         * lib/gl_anyrbtree_list1.h: Likewise.
51869         * lib/gl_anyrbtree_list2.h: Likewise.
51870         * lib/gl_anytree_list1.h: Likewise.
51871         * lib/gl_anytree_list2.h: Likewise.
51872         * lib/gl_anytree_oset.h: Likewise.
51873         * lib/gl_anytreehash_list1.h: Likewise.
51874         * lib/gl_anytreehash_list2.h: Likewise.
51875         * lib/gl_array_list.c: Likewise.
51876         * lib/gl_array_list.h: Likewise.
51877         * lib/gl_array_oset.c: Likewise.
51878         * lib/gl_array_oset.h: Likewise.
51879         * lib/gl_avltree_list.c: Likewise.
51880         * lib/gl_avltree_list.h: Likewise.
51881         * lib/gl_avltree_oset.c: Likewise.
51882         * lib/gl_avltree_oset.h: Likewise.
51883         * lib/gl_avltreehash_list.c: Likewise.
51884         * lib/gl_avltreehash_list.h: Likewise.
51885         * lib/gl_carray_list.c: Likewise.
51886         * lib/gl_carray_list.h: Likewise.
51887         * lib/gl_linked_list.c: Likewise.
51888         * lib/gl_linked_list.h: Likewise.
51889         * lib/gl_linkedhash_list.c: Likewise.
51890         * lib/gl_linkedhash_list.h: Likewise.
51891         * lib/gl_list.c: Likewise.
51892         * lib/gl_list.h: Likewise.
51893         * lib/gl_oset.c: Likewise.
51894         * lib/gl_oset.h: Likewise.
51895         * lib/gl_rbtree_list.c: Likewise.
51896         * lib/gl_rbtree_list.h: Likewise.
51897         * lib/gl_rbtree_oset.c: Likewise.
51898         * lib/gl_rbtree_oset.h: Likewise.
51899         * lib/gl_rbtreehash_list.c: Likewise.
51900         * lib/gl_rbtreehash_list.h: Likewise.
51901         * lib/gl_sublist.c: Likewise.
51902         * lib/gl_sublist.h: Likewise.
51903         * lib/group-member.c: Likewise.
51904         * lib/group-member.h: Likewise.
51905         * lib/hard-locale.c: Likewise.
51906         * lib/hard-locale.h: Likewise.
51907         * lib/hash-pjw.c: Likewise.
51908         * lib/hash-pjw.h: Likewise.
51909         * lib/hash-triple.c: Likewise.
51910         * lib/hash.c: Likewise.
51911         * lib/hash.h: Likewise.
51912         * lib/human.c: Likewise.
51913         * lib/human.h: Likewise.
51914         * lib/i-ring.c: Likewise.
51915         * lib/i-ring.h: Likewise.
51916         * lib/idcache.c: Likewise.
51917         * lib/imaxabs.c: Likewise.
51918         * lib/imaxdiv.c: Likewise.
51919         * lib/inet_pton.c: Likewise.
51920         * lib/inet_pton.h: Likewise.
51921         * lib/intprops.h: Likewise.
51922         * lib/inttostr.c: Likewise.
51923         * lib/inttostr.h: Likewise.
51924         * lib/inttypes.in.h: Likewise.
51925         * lib/isapipe.c: Likewise.
51926         * lib/isdir.c: Likewise.
51927         * lib/isnan.c: Likewise.
51928         * lib/isnan.h: Likewise.
51929         * lib/isnanf.c: Likewise.
51930         * lib/isnanf.h: Likewise.
51931         * lib/isnanl-nolibm.h: Likewise.
51932         * lib/isnanl.c: Likewise.
51933         * lib/isnanl.h: Likewise.
51934         * lib/javacomp.c: Likewise.
51935         * lib/javacomp.h: Likewise.
51936         * lib/javaexec.c: Likewise.
51937         * lib/javaexec.h: Likewise.
51938         * lib/javaversion.c: Likewise.
51939         * lib/javaversion.h: Likewise.
51940         * lib/javaversion.java: Likewise.
51941         * lib/lbrkprop.h: Likewise.
51942         * lib/lchmod.h: Likewise.
51943         * lib/lchown.c: Likewise.
51944         * lib/ldexpl.c: Likewise.
51945         * lib/linebreak.c: Likewise.
51946         * lib/linebreak.h: Likewise.
51947         * lib/linebuffer.c: Likewise.
51948         * lib/linebuffer.h: Likewise.
51949         * lib/locale.in.h: Likewise.
51950         * lib/logl.c: Likewise.
51951         * lib/long-options.c: Likewise.
51952         * lib/long-options.h: Likewise.
51953         * lib/lstat.c: Likewise.
51954         * lib/lstat.h: Likewise.
51955         * lib/math.in.h: Likewise.
51956         * lib/mbchar.c: Likewise.
51957         * lib/mbchar.h: Likewise.
51958         * lib/mbfile.h: Likewise.
51959         * lib/mbiter.h: Likewise.
51960         * lib/mbscasecmp.c: Likewise.
51961         * lib/mbscasestr.c: Likewise.
51962         * lib/mbschr.c: Likewise.
51963         * lib/mbscspn.c: Likewise.
51964         * lib/mbslen.c: Likewise.
51965         * lib/mbsncasecmp.c: Likewise.
51966         * lib/mbsnlen.c: Likewise.
51967         * lib/mbspbrk.c: Likewise.
51968         * lib/mbspcasecmp.c: Likewise.
51969         * lib/mbsrchr.c: Likewise.
51970         * lib/mbssep.c: Likewise.
51971         * lib/mbsspn.c: Likewise.
51972         * lib/mbsstr.c: Likewise.
51973         * lib/mbstok_r.c: Likewise.
51974         * lib/mbswidth.c: Likewise.
51975         * lib/mbswidth.h: Likewise.
51976         * lib/mbuiter.h: Likewise.
51977         * lib/memcasecmp.c: Likewise.
51978         * lib/memcasecmp.h: Likewise.
51979         * lib/memchr.c: Likewise.
51980         * lib/memcmp.c: Likewise.
51981         * lib/memcoll.c: Likewise.
51982         * lib/memcoll.h: Likewise.
51983         * lib/memcpy.c: Likewise.
51984         * lib/memrchr.c: Likewise.
51985         * lib/mkancesdirs.c: Likewise.
51986         * lib/mkdir-p.c: Likewise.
51987         * lib/mkdir-p.h: Likewise.
51988         * lib/mkdir.c: Likewise.
51989         * lib/mkdirat.c: Likewise.
51990         * lib/mkdtemp.c: Likewise.
51991         * lib/mkstemp-safer.c: Likewise.
51992         * lib/mkstemp.c: Likewise.
51993         * lib/modechange.c: Likewise.
51994         * lib/modechange.h: Likewise.
51995         * lib/mountlist.c: Likewise.
51996         * lib/mountlist.h: Likewise.
51997         * lib/mpsort.c: Likewise.
51998         * lib/nanosleep.c: Likewise.
51999         * lib/obstack.c: Likewise.
52000         * lib/obstack.h: Likewise.
52001         * lib/open-safer.c: Likewise.
52002         * lib/open.c: Likewise.
52003         * lib/openat-die.c: Likewise.
52004         * lib/openat-priv.h: Likewise.
52005         * lib/openat-proc.c: Likewise.
52006         * lib/openat.c: Likewise.
52007         * lib/openat.h: Likewise.
52008         * lib/pagealign_alloc.c: Likewise.
52009         * lib/pagealign_alloc.h: Likewise.
52010         * lib/physmem.c: Likewise.
52011         * lib/physmem.h: Likewise.
52012         * lib/pipe-safer.c: Likewise.
52013         * lib/pipe.c: Likewise.
52014         * lib/pipe.h: Likewise.
52015         * lib/posixtm.c: Likewise.
52016         * lib/posixtm.h: Likewise.
52017         * lib/posixver.c: Likewise.
52018         * lib/printf-frexp.c: Likewise.
52019         * lib/printf-frexp.h: Likewise.
52020         * lib/printf-frexpl.c: Likewise.
52021         * lib/printf-frexpl.h: Likewise.
52022         * lib/printf.c: Likewise.
52023         * lib/progname.c: Likewise.
52024         * lib/progname.h: Likewise.
52025         * lib/progreloc.c: Likewise.
52026         * lib/putenv.c: Likewise.
52027         * lib/quote.c: Likewise.
52028         * lib/quote.h: Likewise.
52029         * lib/quotearg.c: Likewise.
52030         * lib/quotearg.h: Likewise.
52031         * lib/raise.c: Likewise.
52032         * lib/readline.c: Likewise.
52033         * lib/readline.h: Likewise.
52034         * lib/readlink.c: Likewise.
52035         * lib/readtokens.c: Likewise.
52036         * lib/readtokens.h: Likewise.
52037         * lib/readtokens0.c: Likewise.
52038         * lib/readtokens0.h: Likewise.
52039         * lib/readutmp.c: Likewise.
52040         * lib/readutmp.h: Likewise.
52041         * lib/realloc.c: Likewise.
52042         * lib/relocwrapper.c: Likewise.
52043         * lib/rename-dest-slash.c: Likewise.
52044         * lib/rename.c: Likewise.
52045         * lib/rmdir.c: Likewise.
52046         * lib/rpmatch.c: Likewise.
52047         * lib/safe-read.c: Likewise.
52048         * lib/safe-read.h: Likewise.
52049         * lib/safe-write.c: Likewise.
52050         * lib/safe-write.h: Likewise.
52051         * lib/same-inode.h: Likewise.
52052         * lib/same.c: Likewise.
52053         * lib/same.h: Likewise.
52054         * lib/save-cwd.c: Likewise.
52055         * lib/save-cwd.h: Likewise.
52056         * lib/savedir.c: Likewise.
52057         * lib/savedir.h: Likewise.
52058         * lib/savewd.c: Likewise.
52059         * lib/savewd.h: Likewise.
52060         * lib/search.in.h: Likewise.
52061         * lib/setenv.c: Likewise.
52062         * lib/setenv.h: Likewise.
52063         * lib/settime.c: Likewise.
52064         * lib/sh-quote.c: Likewise.
52065         * lib/sh-quote.h: Likewise.
52066         * lib/sig2str.c: Likewise.
52067         * lib/sig2str.h: Likewise.
52068         * lib/signal.in.h: Likewise.
52069         * lib/signbitd.c: Likewise.
52070         * lib/signbitf.c: Likewise.
52071         * lib/signbitl.c: Likewise.
52072         * lib/sigprocmask.c: Likewise.
52073         * lib/sincosl.c: Likewise.
52074         * lib/sleep.c: Likewise.
52075         * lib/sprintf.c: Likewise.
52076         * lib/sqrtl.c: Likewise.
52077         * lib/stat-time.h: Likewise.
52078         * lib/stdio--.h: Likewise.
52079         * lib/stdio-safer.h: Likewise.
52080         * lib/stdlib--.h: Likewise.
52081         * lib/stdlib-safer.h: Likewise.
52082         * lib/stdlib.in.h: Likewise.
52083         * lib/stpcpy.c: Likewise.
52084         * lib/stpncpy.c: Likewise.
52085         * lib/strchrnul.c: Likewise.
52086         * lib/strcspn.c: Likewise.
52087         * lib/strerror.c: Likewise.
52088         * lib/strftime.c: Likewise.
52089         * lib/strftime.h: Likewise.
52090         * lib/striconveh.c: Likewise.
52091         * lib/striconveh.h: Likewise.
52092         * lib/striconveha.c: Likewise.
52093         * lib/striconveha.h: Likewise.
52094         * lib/stripslash.c: Likewise.
52095         * lib/strnlen1.c: Likewise.
52096         * lib/strnlen1.h: Likewise.
52097         * lib/strtod.c: Likewise.
52098         * lib/strtoimax.c: Likewise.
52099         * lib/strtok_r.c: Likewise.
52100         * lib/strtol.c: Likewise.
52101         * lib/strtoll.c: Likewise.
52102         * lib/strtoul.c: Likewise.
52103         * lib/strtoull.c: Likewise.
52104         * lib/sysexits.in.h: Likewise.
52105         * lib/tempname.c: Likewise.
52106         * lib/tempname.h: Likewise.
52107         * lib/timespec.h: Likewise.
52108         * lib/tls.c: Likewise.
52109         * lib/tls.h: Likewise.
52110         * lib/tmpdir.c: Likewise.
52111         * lib/tmpdir.h: Likewise.
52112         * lib/tmpfile-safer.c: Likewise.
52113         * lib/tmpfile.c: Likewise.
52114         * lib/trigl.c: Likewise.
52115         * lib/trigl.h: Likewise.
52116         * lib/trim.c: Likewise.
52117         * lib/trim.h: Likewise.
52118         * lib/trunc.c: Likewise.
52119         * lib/truncf.c: Likewise.
52120         * lib/truncl.c: Likewise.
52121         * lib/tsearch.c: Likewise.
52122         * lib/unicodeio.c: Likewise.
52123         * lib/unicodeio.h: Likewise.
52124         * lib/unistd--.h: Likewise.
52125         * lib/unistd-safer.h: Likewise.
52126         * lib/unistdio/ulc-fprintf.c: Likewise.
52127         * lib/unistdio/ulc-vfprintf.c: Likewise.
52128         * lib/unlinkdir.c: Likewise.
52129         * lib/unlinkdir.h: Likewise.
52130         * lib/unlocked-io.h: Likewise.
52131         * lib/unsetenv.c: Likewise.
52132         * lib/userspec.c: Likewise.
52133         * lib/utime.c: Likewise.
52134         * lib/utimecmp.c: Likewise.
52135         * lib/utimecmp.h: Likewise.
52136         * lib/utimens.c: Likewise.
52137         * lib/verify.h: Likewise.
52138         * lib/verror.c: Likewise.
52139         * lib/verror.h: Likewise.
52140         * lib/version-etc-fsf.c: Likewise.
52141         * lib/version-etc.c: Likewise.
52142         * lib/version-etc.h: Likewise.
52143         * lib/vfprintf.c: Likewise.
52144         * lib/vprintf.c: Likewise.
52145         * lib/vsprintf.c: Likewise.
52146         * lib/w32spawn.h: Likewise.
52147         * lib/wait-process.c: Likewise.
52148         * lib/wait-process.h: Likewise.
52149         * lib/wcwidth.c: Likewise.
52150         * lib/write-any-file.c: Likewise.
52151         * lib/xalloc-die.c: Likewise.
52152         * lib/xalloc.h: Likewise.
52153         * lib/xasprintf.c: Likewise.
52154         * lib/xgetcwd.c: Likewise.
52155         * lib/xgetcwd.h: Likewise.
52156         * lib/xgetdomainname.c: Likewise.
52157         * lib/xgetdomainname.h: Likewise.
52158         * lib/xgethostname.c: Likewise.
52159         * lib/xmalloc.c: Likewise.
52160         * lib/xmalloca.c: Likewise.
52161         * lib/xmalloca.h: Likewise.
52162         * lib/xmemcoll.c: Likewise.
52163         * lib/xnanosleep.c: Likewise.
52164         * lib/xreadlink.c: Likewise.
52165         * lib/xreadlink.h: Likewise.
52166         * lib/xsetenv.c: Likewise.
52167         * lib/xsetenv.h: Likewise.
52168         * lib/xstriconv.c: Likewise.
52169         * lib/xstriconv.h: Likewise.
52170         * lib/xstrndup.c: Likewise.
52171         * lib/xstrndup.h: Likewise.
52172         * lib/xstrtod.c: Likewise.
52173         * lib/xstrtod.h: Likewise.
52174         * lib/xstrtol-error.c: Likewise.
52175         * lib/xstrtol.c: Likewise.
52176         * lib/xstrtol.h: Likewise.
52177         * lib/xtime.h: Likewise.
52178         * lib/xvasprintf.c: Likewise.
52179         * lib/xvasprintf.h: Likewise.
52180         * lib/yesno.c: Likewise.
52181         * lib/yesno.h: Likewise.
52182         * posix-modules: Likewise.
52183         * tests/test-alloca-opt.c: Likewise.
52184         * tests/test-arcfour.c: Likewise.
52185         * tests/test-arctwo.c: Likewise.
52186         * tests/test-argmatch.c: Likewise.
52187         * tests/test-argp-2.sh: Likewise.
52188         * tests/test-argp.c: Likewise.
52189         * tests/test-arpa_inet.c: Likewise.
52190         * tests/test-array_list.c: Likewise.
52191         * tests/test-array_oset.c: Likewise.
52192         * tests/test-atexit.c: Likewise.
52193         * tests/test-avltree_list.c: Likewise.
52194         * tests/test-avltree_oset.c: Likewise.
52195         * tests/test-avltreehash_list.c: Likewise.
52196         * tests/test-base64.c: Likewise.
52197         * tests/test-binary-io.c: Likewise.
52198         * tests/test-byteswap.c: Likewise.
52199         * tests/test-c-ctype.c: Likewise.
52200         * tests/test-c-strcasecmp.c: Likewise.
52201         * tests/test-c-strcasestr.c: Likewise.
52202         * tests/test-c-strncasecmp.c: Likewise.
52203         * tests/test-c-strstr.c: Likewise.
52204         * tests/test-canonicalize-lgpl.c: Likewise.
52205         * tests/test-canonicalize.c: Likewise.
52206         * tests/test-carray_list.c: Likewise.
52207         * tests/test-ceilf.c: Likewise.
52208         * tests/test-ceill.c: Likewise.
52209         * tests/test-count-one-bits.c: Likewise.
52210         * tests/test-crc.c: Likewise.
52211         * tests/test-dirname.c: Likewise.
52212         * tests/test-fbufmode.c: Likewise.
52213         * tests/test-fcntl.c: Likewise.
52214         * tests/test-fflush.c: Likewise.
52215         * tests/test-floorf.c: Likewise.
52216         * tests/test-floorl.c: Likewise.
52217         * tests/test-fopen.c: Likewise.
52218         * tests/test-fprintf-posix.c: Likewise.
52219         * tests/test-fprintf-posix.h: Likewise.
52220         * tests/test-fpurge.c: Likewise.
52221         * tests/test-freadable.c: Likewise.
52222         * tests/test-freadahead.c: Likewise.
52223         * tests/test-freading.c: Likewise.
52224         * tests/test-freopen.c: Likewise.
52225         * tests/test-frexp.c: Likewise.
52226         * tests/test-frexpl.c: Likewise.
52227         * tests/test-fseek.c: Likewise.
52228         * tests/test-fseeko.c: Likewise.
52229         * tests/test-fseterr.c: Likewise.
52230         * tests/test-fstrcmp.c: Likewise.
52231         * tests/test-ftell.c: Likewise.
52232         * tests/test-ftello.c: Likewise.
52233         * tests/test-fwritable.c: Likewise.
52234         * tests/test-fwriting.c: Likewise.
52235         * tests/test-getaddrinfo.c: Likewise.
52236         * tests/test-getpass.c: Likewise.
52237         * tests/test-gettimeofday.c: Likewise.
52238         * tests/test-hmac-md5.c: Likewise.
52239         * tests/test-hmac-sha1.c: Likewise.
52240         * tests/test-iconv.c: Likewise.
52241         * tests/test-iconvme.c: Likewise.
52242         * tests/test-inttypes.c: Likewise.
52243         * tests/test-isnan.c: Likewise.
52244         * tests/test-isnanf.c: Likewise.
52245         * tests/test-isnanl-nolibm.c: Likewise.
52246         * tests/test-isnanl.c: Likewise.
52247         * tests/test-isnanl.h: Likewise.
52248         * tests/test-ldexpl.c: Likewise.
52249         * tests/test-linked_list.c: Likewise.
52250         * tests/test-linkedhash_list.c: Likewise.
52251         * tests/test-locale.c: Likewise.
52252         * tests/test-localename.c: Likewise.
52253         * tests/test-lock.c: Likewise.
52254         * tests/test-lseek.c: Likewise.
52255         * tests/test-malloca.c: Likewise.
52256         * tests/test-math.c: Likewise.
52257         * tests/test-mbscasecmp.c: Likewise.
52258         * tests/test-mbscasestr1.c: Likewise.
52259         * tests/test-mbscasestr2.c: Likewise.
52260         * tests/test-mbscasestr3.c: Likewise.
52261         * tests/test-mbscasestr4.c: Likewise.
52262         * tests/test-mbschr.c: Likewise.
52263         * tests/test-mbscspn.c: Likewise.
52264         * tests/test-mbsncasecmp.c: Likewise.
52265         * tests/test-mbspbrk.c: Likewise.
52266         * tests/test-mbspcasecmp.c: Likewise.
52267         * tests/test-mbsrchr.c: Likewise.
52268         * tests/test-mbsspn.c: Likewise.
52269         * tests/test-mbsstr1.c: Likewise.
52270         * tests/test-mbsstr2.c: Likewise.
52271         * tests/test-mbsstr3.c: Likewise.
52272         * tests/test-md5.c: Likewise.
52273         * tests/test-memmem.c: Likewise.
52274         * tests/test-netinet_in.c: Likewise.
52275         * tests/test-open.c: Likewise.
52276         * tests/test-printf-frexp.c: Likewise.
52277         * tests/test-printf-frexpl.c: Likewise.
52278         * tests/test-printf-posix.c: Likewise.
52279         * tests/test-printf-posix.h: Likewise.
52280         * tests/test-rbtree_list.c: Likewise.
52281         * tests/test-rbtree_oset.c: Likewise.
52282         * tests/test-rbtreehash_list.c: Likewise.
52283         * tests/test-read-file.c: Likewise.
52284         * tests/test-rijndael.c: Likewise.
52285         * tests/test-search.c: Likewise.
52286         * tests/test-signbit.c: Likewise.
52287         * tests/test-sleep.c: Likewise.
52288         * tests/test-snprintf-posix.c: Likewise.
52289         * tests/test-snprintf-posix.h: Likewise.
52290         * tests/test-snprintf.c: Likewise.
52291         * tests/test-sprintf-posix.c: Likewise.
52292         * tests/test-sprintf-posix.h: Likewise.
52293         * tests/test-stat-time.c: Likewise.
52294         * tests/test-stdbool.c: Likewise.
52295         * tests/test-stdint.c: Likewise.
52296         * tests/test-stdio.c: Likewise.
52297         * tests/test-stdlib.c: Likewise.
52298         * tests/test-stpncpy.c: Likewise.
52299         * tests/test-strcasestr.c: Likewise.
52300         * tests/test-striconv.c: Likewise.
52301         * tests/test-striconveh.c: Likewise.
52302         * tests/test-striconveha.c: Likewise.
52303         * tests/test-string.c: Likewise.
52304         * tests/test-sys_select.c: Likewise.
52305         * tests/test-sys_socket.c: Likewise.
52306         * tests/test-sys_stat.c: Likewise.
52307         * tests/test-sys_time.c: Likewise.
52308         * tests/test-sysexits.c: Likewise.
52309         * tests/test-time.c: Likewise.
52310         * tests/test-tls.c: Likewise.
52311         * tests/test-trunc.c: Likewise.
52312         * tests/test-truncf.c: Likewise.
52313         * tests/test-truncl.c: Likewise.
52314         * tests/test-unistd.c: Likewise.
52315         * tests/test-vasnprintf-posix.c: Likewise.
52316         * tests/test-vasnprintf-posix2.c: Likewise.
52317         * tests/test-vasnprintf.c: Likewise.
52318         * tests/test-vasprintf-posix.c: Likewise.
52319         * tests/test-vasprintf.c: Likewise.
52320         * tests/test-verify.c: Likewise.
52321         * tests/test-vfprintf-posix.c: Likewise.
52322         * tests/test-vprintf-posix.c: Likewise.
52323         * tests/test-vsnprintf-posix.c: Likewise.
52324         * tests/test-vsnprintf.c: Likewise.
52325         * tests/test-vsprintf-posix.c: Likewise.
52326         * tests/test-wchar.c: Likewise.
52327         * tests/test-wctype.c: Likewise.
52328         * tests/test-wcwidth.c: Likewise.
52329         * tests/test-xstrtol.c: Likewise.
52330         * tests/test-xvasprintf.c: Likewise.
52331         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
52332         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
52333         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
52334         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
52335         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
52336         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
52337         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
52338         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
52339         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
52340         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
52341         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
52342         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
52343         * tests/uniname/test-uninames.c: Likewise.
52344         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
52345         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
52346         * tests/unistdio/test-u16-printf1.h: Likewise.
52347         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
52348         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
52349         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
52350         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
52351         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
52352         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
52353         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
52354         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
52355         * tests/unistdio/test-u32-printf1.h: Likewise.
52356         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
52357         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
52358         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
52359         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
52360         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
52361         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
52362         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
52363         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
52364         * tests/unistdio/test-u8-printf1.h: Likewise.
52365         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
52366         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
52367         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
52368         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
52369         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
52370         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
52371         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
52372         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
52373         * tests/unistdio/test-ulc-printf1.h: Likewise.
52374         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
52375         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
52376         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
52377         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
52378         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
52379         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
52380         * tests/uniwidth/test-u16-strwidth.c: Likewise.
52381         * tests/uniwidth/test-u16-width.c: Likewise.
52382         * tests/uniwidth/test-u32-strwidth.c: Likewise.
52383         * tests/uniwidth/test-u32-width.c: Likewise.
52384         * tests/uniwidth/test-u8-strwidth.c: Likewise.
52385         * tests/uniwidth/test-u8-width.c: Likewise.
52386         * tests/uniwidth/test-uc_width.c: Likewise.
52387         * config/srclist-update: Likewise.
52388         (fixlicense): Update to GPLv3+.
52389
52390         Change copyright notice from LGPLv2.1+ to LGPLv3+.
52391         * tests/test-tsearch.c: Change copyright notice.
52392
52393         Change copyright notice from LGPLv2.0+ to LGPLv3+.
52394         * lib/c-strcaseeq.h: Change copyright notice.
52395         * lib/streq.h: Likewise.
52396         * lib/uniconv.h: Likewise.
52397         * lib/uniconv/u-conv-from-enc.h: Likewise.
52398         * lib/uniconv/u-conv-to-enc.h: Likewise.
52399         * lib/uniconv/u-strconv-from-enc.h: Likewise.
52400         * lib/uniconv/u-strconv-to-enc.h: Likewise.
52401         * lib/uniconv/u16-conv-from-enc.c: Likewise.
52402         * lib/uniconv/u16-conv-to-enc.c: Likewise.
52403         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
52404         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
52405         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
52406         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
52407         * lib/uniconv/u32-conv-from-enc.c: Likewise.
52408         * lib/uniconv/u32-conv-to-enc.c: Likewise.
52409         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
52410         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
52411         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
52412         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
52413         * lib/uniconv/u8-conv-from-enc.c: Likewise.
52414         * lib/uniconv/u8-conv-to-enc.c: Likewise.
52415         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
52416         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
52417         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
52418         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
52419         * lib/uniname.h: Likewise.
52420         * lib/uniname/uniname.c: Likewise.
52421         * lib/unistdio.h: Likewise.
52422         * lib/unistdio/u-asnprintf.h: Likewise.
52423         * lib/unistdio/u-asprintf.h: Likewise.
52424         * lib/unistdio/u-printf-args.c: Likewise.
52425         * lib/unistdio/u-printf-args.h: Likewise.
52426         * lib/unistdio/u-printf-parse.h: Likewise.
52427         * lib/unistdio/u-snprintf.h: Likewise.
52428         * lib/unistdio/u-sprintf.h: Likewise.
52429         * lib/unistdio/u-vasprintf.h: Likewise.
52430         * lib/unistdio/u-vsnprintf.h: Likewise.
52431         * lib/unistdio/u-vsprintf.h: Likewise.
52432         * lib/unistdio/u16-asnprintf.c: Likewise.
52433         * lib/unistdio/u16-asprintf.c: Likewise.
52434         * lib/unistdio/u16-printf-parse.c: Likewise.
52435         * lib/unistdio/u16-snprintf.c: Likewise.
52436         * lib/unistdio/u16-sprintf.c: Likewise.
52437         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
52438         * lib/unistdio/u16-u16-asprintf.c: Likewise.
52439         * lib/unistdio/u16-u16-snprintf.c: Likewise.
52440         * lib/unistdio/u16-u16-sprintf.c: Likewise.
52441         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
52442         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
52443         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
52444         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
52445         * lib/unistdio/u16-vasnprintf.c: Likewise.
52446         * lib/unistdio/u16-vasprintf.c: Likewise.
52447         * lib/unistdio/u16-vsnprintf.c: Likewise.
52448         * lib/unistdio/u16-vsprintf.c: Likewise.
52449         * lib/unistdio/u32-asnprintf.c: Likewise.
52450         * lib/unistdio/u32-asprintf.c: Likewise.
52451         * lib/unistdio/u32-printf-parse.c: Likewise.
52452         * lib/unistdio/u32-snprintf.c: Likewise.
52453         * lib/unistdio/u32-sprintf.c: Likewise.
52454         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
52455         * lib/unistdio/u32-u32-asprintf.c: Likewise.
52456         * lib/unistdio/u32-u32-snprintf.c: Likewise.
52457         * lib/unistdio/u32-u32-sprintf.c: Likewise.
52458         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
52459         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
52460         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
52461         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
52462         * lib/unistdio/u32-vasnprintf.c: Likewise.
52463         * lib/unistdio/u32-vasprintf.c: Likewise.
52464         * lib/unistdio/u32-vsnprintf.c: Likewise.
52465         * lib/unistdio/u32-vsprintf.c: Likewise.
52466         * lib/unistdio/u8-asnprintf.c: Likewise.
52467         * lib/unistdio/u8-asprintf.c: Likewise.
52468         * lib/unistdio/u8-printf-parse.c: Likewise.
52469         * lib/unistdio/u8-snprintf.c: Likewise.
52470         * lib/unistdio/u8-sprintf.c: Likewise.
52471         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
52472         * lib/unistdio/u8-u8-asprintf.c: Likewise.
52473         * lib/unistdio/u8-u8-snprintf.c: Likewise.
52474         * lib/unistdio/u8-u8-sprintf.c: Likewise.
52475         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
52476         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
52477         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
52478         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
52479         * lib/unistdio/u8-vasnprintf.c: Likewise.
52480         * lib/unistdio/u8-vasprintf.c: Likewise.
52481         * lib/unistdio/u8-vsnprintf.c: Likewise.
52482         * lib/unistdio/u8-vsprintf.c: Likewise.
52483         * lib/unistdio/ulc-asnprintf.c: Likewise.
52484         * lib/unistdio/ulc-asprintf.c: Likewise.
52485         * lib/unistdio/ulc-printf-parse.c: Likewise.
52486         * lib/unistdio/ulc-snprintf.c: Likewise.
52487         * lib/unistdio/ulc-sprintf.c: Likewise.
52488         * lib/unistdio/ulc-vasnprintf.c: Likewise.
52489         * lib/unistdio/ulc-vasprintf.c: Likewise.
52490         * lib/unistdio/ulc-vsnprintf.c: Likewise.
52491         * lib/unistdio/ulc-vsprintf.c: Likewise.
52492         * lib/unistr.h: Likewise.
52493         * lib/unistr/u-cpy-alloc.h: Likewise.
52494         * lib/unistr/u-cpy.h: Likewise.
52495         * lib/unistr/u-endswith.h: Likewise.
52496         * lib/unistr/u-move.h: Likewise.
52497         * lib/unistr/u-set.h: Likewise.
52498         * lib/unistr/u-startswith.h: Likewise.
52499         * lib/unistr/u-stpcpy.h: Likewise.
52500         * lib/unistr/u-stpncpy.h: Likewise.
52501         * lib/unistr/u-strcat.h: Likewise.
52502         * lib/unistr/u-strcpy.h: Likewise.
52503         * lib/unistr/u-strcspn.h: Likewise.
52504         * lib/unistr/u-strdup.h: Likewise.
52505         * lib/unistr/u-strlen.h: Likewise.
52506         * lib/unistr/u-strncat.h: Likewise.
52507         * lib/unistr/u-strncpy.h: Likewise.
52508         * lib/unistr/u-strnlen.h: Likewise.
52509         * lib/unistr/u-strpbrk.h: Likewise.
52510         * lib/unistr/u-strspn.h: Likewise.
52511         * lib/unistr/u-strstr.h: Likewise.
52512         * lib/unistr/u-strtok.h: Likewise.
52513         * lib/unistr/u16-check.c: Likewise.
52514         * lib/unistr/u16-chr.c: Likewise.
52515         * lib/unistr/u16-cmp.c: Likewise.
52516         * lib/unistr/u16-cpy-alloc.c: Likewise.
52517         * lib/unistr/u16-cpy.c: Likewise.
52518         * lib/unistr/u16-endswith.c: Likewise.
52519         * lib/unistr/u16-mblen.c: Likewise.
52520         * lib/unistr/u16-mbsnlen.c: Likewise.
52521         * lib/unistr/u16-mbtouc-aux.c: Likewise.
52522         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
52523         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
52524         * lib/unistr/u16-mbtouc.c: Likewise.
52525         * lib/unistr/u16-mbtoucr.c: Likewise.
52526         * lib/unistr/u16-move.c: Likewise.
52527         * lib/unistr/u16-next.c: Likewise.
52528         * lib/unistr/u16-prev.c: Likewise.
52529         * lib/unistr/u16-set.c: Likewise.
52530         * lib/unistr/u16-startswith.c: Likewise.
52531         * lib/unistr/u16-stpcpy.c: Likewise.
52532         * lib/unistr/u16-stpncpy.c: Likewise.
52533         * lib/unistr/u16-strcat.c: Likewise.
52534         * lib/unistr/u16-strchr.c: Likewise.
52535         * lib/unistr/u16-strcmp.c: Likewise.
52536         * lib/unistr/u16-strcpy.c: Likewise.
52537         * lib/unistr/u16-strcspn.c: Likewise.
52538         * lib/unistr/u16-strdup.c: Likewise.
52539         * lib/unistr/u16-strlen.c: Likewise.
52540         * lib/unistr/u16-strmblen.c: Likewise.
52541         * lib/unistr/u16-strmbtouc.c: Likewise.
52542         * lib/unistr/u16-strncat.c: Likewise.
52543         * lib/unistr/u16-strncmp.c: Likewise.
52544         * lib/unistr/u16-strncpy.c: Likewise.
52545         * lib/unistr/u16-strnlen.c: Likewise.
52546         * lib/unistr/u16-strpbrk.c: Likewise.
52547         * lib/unistr/u16-strrchr.c: Likewise.
52548         * lib/unistr/u16-strspn.c: Likewise.
52549         * lib/unistr/u16-strstr.c: Likewise.
52550         * lib/unistr/u16-strtok.c: Likewise.
52551         * lib/unistr/u16-to-u32.c: Likewise.
52552         * lib/unistr/u16-to-u8.c: Likewise.
52553         * lib/unistr/u16-uctomb-aux.c: Likewise.
52554         * lib/unistr/u16-uctomb.c: Likewise.
52555         * lib/unistr/u32-check.c: Likewise.
52556         * lib/unistr/u32-chr.c: Likewise.
52557         * lib/unistr/u32-cmp.c: Likewise.
52558         * lib/unistr/u32-cpy-alloc.c: Likewise.
52559         * lib/unistr/u32-cpy.c: Likewise.
52560         * lib/unistr/u32-endswith.c: Likewise.
52561         * lib/unistr/u32-mblen.c: Likewise.
52562         * lib/unistr/u32-mbsnlen.c: Likewise.
52563         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
52564         * lib/unistr/u32-mbtouc.c: Likewise.
52565         * lib/unistr/u32-mbtoucr.c: Likewise.
52566         * lib/unistr/u32-move.c: Likewise.
52567         * lib/unistr/u32-next.c: Likewise.
52568         * lib/unistr/u32-prev.c: Likewise.
52569         * lib/unistr/u32-set.c: Likewise.
52570         * lib/unistr/u32-startswith.c: Likewise.
52571         * lib/unistr/u32-stpcpy.c: Likewise.
52572         * lib/unistr/u32-stpncpy.c: Likewise.
52573         * lib/unistr/u32-strcat.c: Likewise.
52574         * lib/unistr/u32-strchr.c: Likewise.
52575         * lib/unistr/u32-strcmp.c: Likewise.
52576         * lib/unistr/u32-strcpy.c: Likewise.
52577         * lib/unistr/u32-strcspn.c: Likewise.
52578         * lib/unistr/u32-strdup.c: Likewise.
52579         * lib/unistr/u32-strlen.c: Likewise.
52580         * lib/unistr/u32-strmblen.c: Likewise.
52581         * lib/unistr/u32-strmbtouc.c: Likewise.
52582         * lib/unistr/u32-strncat.c: Likewise.
52583         * lib/unistr/u32-strncmp.c: Likewise.
52584         * lib/unistr/u32-strncpy.c: Likewise.
52585         * lib/unistr/u32-strnlen.c: Likewise.
52586         * lib/unistr/u32-strpbrk.c: Likewise.
52587         * lib/unistr/u32-strrchr.c: Likewise.
52588         * lib/unistr/u32-strspn.c: Likewise.
52589         * lib/unistr/u32-strstr.c: Likewise.
52590         * lib/unistr/u32-strtok.c: Likewise.
52591         * lib/unistr/u32-to-u16.c: Likewise.
52592         * lib/unistr/u32-to-u8.c: Likewise.
52593         * lib/unistr/u32-uctomb.c: Likewise.
52594         * lib/unistr/u8-check.c: Likewise.
52595         * lib/unistr/u8-chr.c: Likewise.
52596         * lib/unistr/u8-cmp.c: Likewise.
52597         * lib/unistr/u8-cpy-alloc.c: Likewise.
52598         * lib/unistr/u8-cpy.c: Likewise.
52599         * lib/unistr/u8-endswith.c: Likewise.
52600         * lib/unistr/u8-mblen.c: Likewise.
52601         * lib/unistr/u8-mbsnlen.c: Likewise.
52602         * lib/unistr/u8-mbtouc-aux.c: Likewise.
52603         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
52604         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
52605         * lib/unistr/u8-mbtouc.c: Likewise.
52606         * lib/unistr/u8-mbtoucr.c: Likewise.
52607         * lib/unistr/u8-move.c: Likewise.
52608         * lib/unistr/u8-next.c: Likewise.
52609         * lib/unistr/u8-prev.c: Likewise.
52610         * lib/unistr/u8-set.c: Likewise.
52611         * lib/unistr/u8-startswith.c: Likewise.
52612         * lib/unistr/u8-stpcpy.c: Likewise.
52613         * lib/unistr/u8-stpncpy.c: Likewise.
52614         * lib/unistr/u8-strcat.c: Likewise.
52615         * lib/unistr/u8-strchr.c: Likewise.
52616         * lib/unistr/u8-strcmp.c: Likewise.
52617         * lib/unistr/u8-strcpy.c: Likewise.
52618         * lib/unistr/u8-strcspn.c: Likewise.
52619         * lib/unistr/u8-strdup.c: Likewise.
52620         * lib/unistr/u8-strlen.c: Likewise.
52621         * lib/unistr/u8-strmblen.c: Likewise.
52622         * lib/unistr/u8-strmbtouc.c: Likewise.
52623         * lib/unistr/u8-strncat.c: Likewise.
52624         * lib/unistr/u8-strncmp.c: Likewise.
52625         * lib/unistr/u8-strncpy.c: Likewise.
52626         * lib/unistr/u8-strnlen.c: Likewise.
52627         * lib/unistr/u8-strpbrk.c: Likewise.
52628         * lib/unistr/u8-strrchr.c: Likewise.
52629         * lib/unistr/u8-strspn.c: Likewise.
52630         * lib/unistr/u8-strstr.c: Likewise.
52631         * lib/unistr/u8-strtok.c: Likewise.
52632         * lib/unistr/u8-to-u16.c: Likewise.
52633         * lib/unistr/u8-to-u32.c: Likewise.
52634         * lib/unistr/u8-uctomb-aux.c: Likewise.
52635         * lib/unistr/u8-uctomb.c: Likewise.
52636         * lib/unitypes.h: Likewise.
52637         * lib/uniwidth.h: Likewise.
52638         * lib/uniwidth/cjk.h: Likewise.
52639         * lib/uniwidth/u16-strwidth.c: Likewise.
52640         * lib/uniwidth/u16-width.c: Likewise.
52641         * lib/uniwidth/u32-strwidth.c: Likewise.
52642         * lib/uniwidth/u32-width.c: Likewise.
52643         * lib/uniwidth/u8-strwidth.c: Likewise.
52644         * lib/uniwidth/u8-width.c: Likewise.
52645         * lib/uniwidth/width.c: Likewise.
52646
52647 2007-10-07  Bruno Haible  <bruno@clisp.org>
52648
52649         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
52650         The file is still under LGPL (see modules/inttypes).
52651
52652 2007-10-06  Bruno Haible  <bruno@clisp.org>
52653
52654         * modules/trunc (Dependencies): Add 'extensions'.
52655         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
52656         Reported by Ben Pfaff <blp@gnu.org>.
52657
52658 2007-10-06  Bruno Haible  <bruno@clisp.org>
52659
52660         * modules/freopen-tests: New file.
52661         * tests/test-freopen.c: New file.
52662
52663         * modules/fopen-tests: New file.
52664         * tests/test-fopen.c: New file.
52665
52666         * modules/fopen: New file.
52667         * lib/fopen.c: New file.
52668         * m4/fopen.m4: New file.
52669         * modules/freopen: New file.
52670         * lib/freopen.c: New file.
52671         * m4/freopen.m4: New file.
52672         * lib/stdio.in.h (fopen, freopen): New declarations.
52673         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
52674         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
52675         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
52676         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
52677         * doc/functions/fopen.texi: Mention the 'fopen' module.
52678         * doc/functions/freopen.texi: Mention the 'freopen' module.
52679
52680 2007-10-06  Bruno Haible  <bruno@clisp.org>
52681
52682         * modules/open-tests: New file.
52683         * tests/test-open.c: New file.
52684
52685         * modules/open: New file.
52686         * lib/open.c: New file.
52687         * m4/open.m4: New file.
52688         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
52689         lib/open.c does.
52690         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
52691         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
52692         macros.
52693         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
52694         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
52695         REPLACE_OPEN.
52696         * doc/functions/open.texi: Mention the 'open' module.
52697
52698 2007-10-04  Bruno Haible  <bruno@clisp.org>
52699
52700         * modules/ceill-tests: New file.
52701         * tests/test-ceill.c: New file.
52702
52703         * modules/ceill: New file.
52704         * lib/ceill.c: Replace entire file.
52705         * m4/ceill.m4: New file.
52706         * lib/math.in.h (ceill): Replace declaration.
52707         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
52708         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
52709         * doc/functions/ceill.texi: Mention the 'ceill' module.
52710         * modules/mathl (Files): Remove lib/ceill.c.
52711         (Depends-on): Add ceill.
52712
52713 2007-10-04  Bruno Haible  <bruno@clisp.org>
52714
52715         * modules/ceilf-tests: New file.
52716         * tests/test-ceilf.c: New file.
52717
52718         * modules/ceilf: New file.
52719         * lib/ceil.c: New file.
52720         * lib/ceilf.c: New file.
52721         * m4/ceilf.m4: New file.
52722         * lib/math.in.h (ceilf): New declaration.
52723         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
52724         HAVE_DECL_CEILF.
52725         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
52726         HAVE_DECL_CEILF.
52727         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
52728
52729 2007-10-04  Bruno Haible  <bruno@clisp.org>
52730
52731         * modules/floorl-tests: New file.
52732         * tests/test-floorl.c: New file.
52733
52734         * modules/floorl: New file.
52735         * lib/floorl.c: Replace entire file.
52736         * m4/floorl.m4: New file.
52737         * lib/math.in.h (floorl): Replace declaration.
52738         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
52739         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
52740         * doc/functions/floorl.texi: Mention the 'floorl' module.
52741         * modules/mathl (Files): Remove lib/floorl.c.
52742         (Depends-on): Add floorl.
52743
52744 2007-10-04  Bruno Haible  <bruno@clisp.org>
52745
52746         * modules/floorf-tests: New file.
52747         * tests/test-floorf.c: New file.
52748
52749         * modules/floorf: New file.
52750         * lib/floor.c: New file.
52751         * lib/floorf.c: New file.
52752         * m4/floorf.m4: New file.
52753         * lib/math.in.h (floorf): New declaration.
52754         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
52755         HAVE_DECL_FLOORF.
52756         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
52757         HAVE_DECL_FLOORF.
52758         * doc/functions/floorf.texi: Mention the 'floorf' module.
52759
52760 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
52761             Bruno Haible  <bruno@clisp.org>
52762
52763         Advertise for the Git server instead of the CVS server.
52764         * doc/gnulib-intro.texi (Steady Development): Mention the Git
52765         repository instead of the CVS one.
52766         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
52767         about all VCS systems generically.
52768         * doc/gnulib.texi (Introduction): Capitalize `Git'.
52769
52770 2007-10-04  Bruno Haible  <bruno@clisp.org>
52771
52772         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
52773         means.
52774         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
52775
52776 2007-10-04  Bruno Haible  <bruno@clisp.org>
52777
52778         * modules/truncl-tests: New file.
52779         * tests/test-truncl.c: New file.
52780
52781         * modules/truncl: New file.
52782         * lib/truncl.c: New file.
52783         * m4/truncl.m4: New file.
52784         * lib/math.in.h (truncl): New declaration.
52785         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
52786         HAVE_DECL_TRUNCL.
52787         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
52788         HAVE_DECL_TRUNCL.
52789         * doc/functions/truncl.texi: Mention the 'truncl' module.
52790
52791 2007-10-04  Bruno Haible  <bruno@clisp.org>
52792
52793         * modules/truncf-tests: New file.
52794         * tests/test-truncf.c: New file.
52795
52796         * modules/truncf: New file.
52797         * lib/trunc.c: Make paramerizable through USE_* macros.
52798         * lib/truncf.c: New file.
52799         * m4/truncf.m4: New file.
52800         * lib/math.in.h (truncf): New declaration.
52801         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
52802         HAVE_DECL_TRUNCF.
52803         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
52804         HAVE_DECL_TRUNCF.
52805         * doc/functions/truncf.texi: Mention the 'truncf' module.
52806
52807 2007-10-03  Bruno Haible  <bruno@clisp.org>
52808
52809         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
52810         augmentation also for tests modules.
52811         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
52812         * modules/atexit-tests (Makefile.am): Likewise.
52813         * modules/binary-io-tests (Makefile.am): Likewise.
52814         * modules/c-strcase-tests (Makefile.am): Likewise.
52815         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
52816         * modules/canonicalize-tests (Makefile.am): Likewise.
52817         * modules/closein-tests (Makefile.am): Likewise.
52818         * modules/fprintf-posix-tests (Makefile.am): Likewise.
52819         * modules/freadahead-tests (Makefile.am): Likewise.
52820         * modules/fseek-tests (Makefile.am): Likewise.
52821         * modules/fseeko-tests (Makefile.am): Likewise.
52822         * modules/ftell-tests (Makefile.am): Likewise.
52823         * modules/ftello-tests (Makefile.am): Likewise.
52824         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
52825         * modules/isnanl-tests (Makefile.am): Likewise.
52826         * modules/lseek-tests (Makefile.am): Likewise.
52827         * modules/mbscasecmp-tests (Makefile.am): Likewise.
52828         * modules/mbscasestr-tests (Makefile.am): Likewise.
52829         * modules/mbschr-tests (Makefile.am): Likewise.
52830         * modules/mbscspn-tests (Makefile.am): Likewise.
52831         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
52832         * modules/mbspbrk-tests (Makefile.am): Likewise.
52833         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
52834         * modules/mbsrchr-tests (Makefile.am): Likewise.
52835         * modules/mbsspn-tests (Makefile.am): Likewise.
52836         * modules/mbsstr-tests (Makefile.am): Likewise.
52837         * modules/printf-posix-tests (Makefile.am): Likewise.
52838         * modules/snprintf-posix-tests (Makefile.am): Likewise.
52839         * modules/sprintf-posix-tests (Makefile.am): Likewise.
52840         * modules/tsearch-tests (Makefile.am): Likewise.
52841         * modules/uniname/uniname-tests (Makefile.am): Likewise.
52842         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
52843         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
52844         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
52845         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
52846         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
52847         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
52848         * modules/vprintf-posix-tests (Makefile.am): Likewise.
52849         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
52850         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
52851         * modules/xstrtoimax-tests (Makefile.am): Likewise.
52852         * modules/xstrtol-tests (Makefile.am): Likewise.
52853         * modules/xstrtoumax-tests (Makefile.am): Likewise.
52854         * modules/yesno-tests (Makefile.am): Likewise.
52855
52856 2007-10-03  Bruno Haible  <bruno@clisp.org>
52857
52858         * modules/trunc-tests: New file.
52859         * tests/test-trunc.c: New file.
52860
52861         * modules/trunc: New file.
52862         * lib/trunc.c: New file.
52863         * m4/trunc.m4: New file.
52864         * lib/math.in.h (trunc): New declaration.
52865         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
52866         HAVE_DECL_TRUNC.
52867         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
52868         HAVE_DECL_TRUNC.
52869         * doc/functions/trunc.texi: Mention the 'trunc' module.
52870
52871 2007-10-03  Bruno Haible  <bruno@clisp.org>
52872
52873         * tests/test-fpending.c: New file, mostly copied
52874         from coreutils/lib/t-fpending.c.
52875         * modules/fpending-tests: New file.
52876
52877 2007-10-03  Bruno Haible  <bruno@clisp.org>
52878
52879         Port the stdio extensions to QNX (untested).
52880         * lib/fseterr.c (fseterr): Add support for QNX.
52881         * lib/fbufmode.c (fbufmode): Likewise.
52882         * lib/freadable.c (freadable): Likewise.
52883         * lib/fwritable.c (fwritable): Likewise.
52884         * lib/freading.c (freading): Likewise.
52885         * lib/fwriting.c (fwriting): Likewise.
52886         * lib/freadahead.c (freadahed): Likewise.
52887         * lib/fpurge.c (fpurge): Likewise.
52888         * lib/fseeko.c (rpl_fseeko): Likewise.
52889
52890 2007-10-03  Bruno Haible  <bruno@clisp.org>
52891             Jim Meyering  <jim@meyering.net>
52892             Eric Blake  <ebb9@byu.net>
52893
52894         * doc/relocatable.texi: Use @command instead of @program.
52895
52896 2007-10-02  Jim Meyering  <jim@meyering.net>
52897
52898         Perform one more "_.h" -> ".in.h" substitution.
52899         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
52900         instead of unistd_.h here, too.
52901
52902 2007-10-01  Bruno Haible  <bruno@clisp.org>
52903
52904         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
52905         Needed for the alloca-opt module.
52906
52907 2007-09-30  Bruno Haible  <bruno@clisp.org>
52908
52909         * lib/alloca.in.h: Renamed from lib/alloca_.h.
52910         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
52911         alloca_.h.
52912         * lib/argz.in.h: Renamed from lib/argz_.h.
52913         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
52914         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
52915         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
52916         byteswap_.h.
52917         * lib/dirent.in.h: Renamed from lib/dirent_.h.
52918         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
52919         dirent_.h.
52920         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
52921         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
52922         fcntl_.h.
52923         * lib/float.in.h: Renamed from lib/float_.h.
52924         * modules/float (Files, Makefile.am): Use float.in.h instead of
52925         float_.h.
52926         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
52927         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
52928         fnmatch_.h.
52929         * lib/getopt.in.h: Renamed from lib/getopt_.h.
52930         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
52931         getopt_.h.
52932         * lib/glob.in.h: Renamed from lib/glob_.h.
52933         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
52934         * lib/iconv.in.h: Renamed from lib/iconv_.h.
52935         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
52936         iconv_.h.
52937         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
52938         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
52939         inttypes_.h.
52940         * lib/locale.in.h: Renamed from lib/locale_.h.
52941         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
52942         locale_.h.
52943         * lib/math.in.h: Renamed from lib/math_.h.
52944         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
52945         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
52946         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
52947         of netinet_in_.h. Add dependency.
52948         * lib/poll.in.h: Renamed from lib/poll_.h.
52949         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
52950         * lib/search.in.h: Renamed from lib/search_.h.
52951         * modules/search (Files, Makefile.am): Use search.in.h instead of
52952         search_.h.
52953         * lib/signal.in.h: Renamed from lib/signal_.h.
52954         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
52955         _signal.h.
52956         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
52957         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
52958         stdbool_.h.
52959         * lib/stdint.in.h: Renamed from lib/stdint_.h.
52960         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
52961         stdint_.h.
52962         * lib/stdio.in.h: Renamed from lib/stdio_.h.
52963         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
52964         stdio_.h.
52965         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
52966         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
52967         stdlib_.h.
52968         * lib/string.in.h: Renamed from lib/string_.h.
52969         * modules/string (Files, Makefile.am): Use string.in.h instead of
52970         string_.h.
52971         * doc/gnulib-tool.texi (Initial import): Update.
52972         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
52973         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
52974         of sys_select_.h. Add dependency.
52975         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
52976         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
52977         of sys_socket_.h.
52978         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
52979         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
52980         sys_stat_.h.
52981         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
52982         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
52983         sys_time_.h.
52984         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
52985         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
52986         sysexits_.h.
52987         * lib/time.in.h: Renamed from lib/time_.h.
52988         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
52989         * lib/unistd.in.h: Renamed from lib/unistd_.h.
52990         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
52991         unistd_.h.
52992         * lib/wchar.in.h: Renamed from lib/wchar_.h.
52993         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
52994         wchar_.h.
52995         * lib/wctype.in.h: Renamed from lib/wctype_.h.
52996         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
52997         wctype_.h.
52998         * build-aux/bootstrap (slurp): Update.
52999         * lib/.cppi-disable: Update.
53000
53001 2007-09-30  Bruno Haible  <bruno@clisp.org>
53002
53003         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
53004         Needed on BeOS.
53005
53006 2007-09-30  Bruno Haible  <bruno@clisp.org>
53007
53008         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
53009
53010 2007-09-29  Bruno Haible  <bruno@clisp.org>
53011
53012         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
53013
53014 2007-09-29  Bruno Haible  <bruno@clisp.org>
53015
53016         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
53017         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
53018         * build-aux/install-reloc: Compile also areadlink.c.
53019         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
53020
53021 2007-09-29  Bruno Haible  <bruno@clisp.org>
53022
53023         * gnulib-tool (func_emit_initmacro_done): Indentation.
53024
53025 2007-09-29  Bruno Haible  <bruno@clisp.org>
53026
53027         * README: Add CVS checkout update instructions.
53028         Info from Bob Proulx <bob@proulx.com>.
53029
53030 2007-09-28  Eric Blake  <ebb9@byu.net>
53031
53032         Provide move-if-change.
53033         * build-aux/move-if-change: New file, based on best practice
53034         rather than any canonical upstream location.
53035
53036 2007-09-28  Jim Meyering  <jim@meyering.net>
53037
53038         Fix canonicalize loop-detection corner case.
53039         Do not attempt to stat the symlink values stored via seen_triple.
53040         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
53041         on linux-2.6.18, (but not 2.6.22).
53042         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
53043         triple_compare.  The former compares dev,ino,filename, while the latter
53044         would actually stat dirname(filename) when dev and ino were equal.
53045         * lib/hash-triple.c: Install <string.h>.
53046         (STREQ): Define.
53047         (triple_compare_ino_str): New function.
53048         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
53049
53050 2007-09-28  Eric Blake  <ebb9@byu.net>
53051
53052         Enforce that AC_REPLACE_FUNCS files exist.
53053         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
53054         override check for typos.
53055
53056         Fix test-closein on Solaris 10.
53057         * tests/test-closein.c (main): Don't assume stdin can be inherited
53058         closed on all systems.
53059         * tests/test-closein.sh: Likewise.
53060         Reported by Piotr Tarnowski.
53061
53062 2007-09-28  Jim Meyering  <jim@meyering.net>
53063
53064         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
53065
53066 2007-09-27  Jim Meyering  <jim@meyering.net>
53067
53068         canonicalize: Avoid a false-positive cycle failure.
53069         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
53070         Sort.  Remove cycle-check.
53071         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
53072         not cycle-check.h.
53073         (seen_triple): New function.
53074         (canonicalize_filename_mode): Use it instead of cycle-check.
53075         * tests/test-canonicalize.c: Add a test for this bug.
53076         * tests/test-canonicalize.sh: Set up and run the test.
53077
53078         New module, file-set, from coreutils.
53079         * modules/file-set: Define it.
53080         * lib/file-set.c, lib/file-set.h: Implement.
53081
53082         New module, hash-triple, from coreutils.
53083         * modules/hash-triple: Define it.
53084         * lib/hash-triple.c, lib/hash-triple.h: Implement.
53085
53086 2007-09-25  Eric Blake  <ebb9@byu.net>
53087
53088         Fix strerror on Interix.
53089         * lib/string_.h (strerror): Declare replacement.
53090         * doc/functions/strerror.texi (strerror): Document the Interix
53091         shortcoming.
53092         * modules/string (Makefile.am): Support new hooks.
53093         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
53094         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
53095         gl_FUNC_STRERROR_SEPARATE.
53096         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
53097         * lib/strerror.c (rpl_strerror): Provide replacement.
53098         * modules/strerror (Depends-on): Add string.
53099         (configure.ac): Detect use of module.
53100         * tests/test-strerror.c: New file.
53101         * modules/strerror-tests: New test module.
53102         * modules/argp (Depends-on): Add strerror.
53103         * modules/error (Depends-on): Likewise.
53104         Reported by Martin Koeppe.
53105
53106 2007-09-24  Bruno Haible  <bruno@clisp.org>
53107
53108         * README: Update git instructions.
53109
53110 2007-09-24  Eric Blake  <ebb9@byu.net>
53111
53112         Revert fpending breakage from 2007-09-08.
53113         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
53114         __fpending.c.
53115
53116 2007-09-24  Jim Meyering  <jim@meyering.net>
53117
53118         filenamecat.c: Add a test.
53119         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
53120         showing how the function works when DIR is the empty string.
53121
53122 2007-09-21  Simon Josefsson  <simon@josefsson.org>
53123
53124         * tests/test-canonicalize.sh: Turn on executable bit.
53125
53126 2007-09-19  Eric Blake  <ebb9@byu.net>
53127
53128         * README: Update CVS instructions.
53129
53130 2007-09-18  Bruno Haible  <bruno@clisp.org>
53131
53132         * modules/areadlink: New file.
53133         * lib/areadlink.h (areadlink): New declaration.
53134         * lib/areadlink.c: New file, based on lib/xreadlink.c.
53135
53136 2007-09-17  Jim Meyering  <jim@meyering.net>
53137
53138         * lib/savewd.c (ESTALE) [!defined]: Define.
53139         Reported to be required on Interix by Martin Koeppe.
53140
53141 2007-09-17  Bruno Haible  <bruno@clisp.org>
53142
53143         * gnulib-tool (func_version): Use $version.
53144
53145 2007-09-16  Bruno Haible  <bruno@clisp.org>
53146
53147         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
53148         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
53149         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
53150         Reported by Greg Schafer <gschafer@zip.com.au>.
53151
53152 2007-09-15  Bruno Haible  <bruno@clisp.org>
53153
53154         * gnulib-tool (sed): Try a little harder to make bash understand the
53155         alias.
53156         Reported by Bruce Korb <bruce.korb@gmail.com>.
53157
53158 2007-09-13  Eric Blake  <ebb9@byu.net>
53159
53160         * ChangeLog: Remove conflict markers.
53161
53162 2007-09-13  Simon Josefsson  <simon@josefsson.org>
53163
53164         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
53165         Reported by Bruno Haible <bruno@clisp.org>.
53166
53167 2007-09-12  Bruno Haible  <bruno@clisp.org>
53168
53169         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
53170         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
53171         is not defined.
53172
53173 2007-09-12  Eric Blake  <ebb9@byu.net>
53174
53175         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
53176         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
53177         Autoconf definition.
53178         * modules/euidaccess (Depends-on): Add extensions, for
53179         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
53180         * modules/fnmatch (Depends-on): Likewise.
53181         * modules/getaddrinfo (Depends-on): Likewise.
53182         * modules/getdelim (Depends-on): Likewise.
53183         * modules/getline (Depends-on): Likewise.
53184         * modules/getsubopt (Depends-on): Likewise.
53185         * modules/gettext (Depends-on): Likewise.
53186         * modules/group-member (Depends-on): Likewise.
53187         * modules/mbchar (Depends-on): Likewise.
53188         * modules/memmem (Depends-on): Likewise.
53189         * modules/mempcpy (Depends-on): Likewise.
53190         * modules/memrchr (Depends-on): Likewise.
53191         * modules/pagealign_alloc (Depends-on): Likewise.
53192         * modules/readutmp (Depends-on): Likewise.
53193         * modules/stpcpy (Depends-on): Likewise.
53194         * modules/stpncpy (Depends-on): Likewise.
53195         * modules/strchrnul (Depends-on): Likewise.
53196         * modules/strndup (Depends-on): Likewise.
53197         * modules/strsep (Depends-on): Likewise.
53198         * modules/strverscmp (Depends-on): Likewise.
53199         * modules/vasprintf (Depends-on): Likewise.
53200         * modules/wcwidth (Depends-on): Likewise.
53201         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
53202         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
53203         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
53204         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
53205         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
53206         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
53207         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
53208         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
53209         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
53210         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
53211         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
53212         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
53213         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
53214         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
53215         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
53216         * m4/readutmp.m4 (gl_READUTMP): Likewise.
53217         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
53218         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
53219         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
53220         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
53221         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
53222         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
53223         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
53224         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
53225         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
53226         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
53227         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
53228         so that lock.m4 can be used in gettext without extensions module.
53229
53230 2007-09-11  Bruno Haible  <bruno@clisp.org>
53231
53232         * m4/isc-posix.m4: Remove file.
53233         Suggested by Eric Blake.
53234
53235 2007-09-11  Eric Blake  <ebb9@byu.net>
53236
53237         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
53238
53239 2007-09-10  Bruno Haible  <bruno@clisp.org>
53240
53241         * posix-modules: Fix typo in error message.
53242         Reported by Matt <mkraai@beckman.com>.
53243
53244 2007-09-09  Bruno Haible  <bruno@clisp.org>
53245
53246         * doc/functions/getdelim.texi: Update list of platforms lacking the
53247         function.
53248         * doc/functions/getline.texi: Likewise.
53249
53250 2007-09-09  Jim Meyering  <jim@meyering.net>
53251
53252         * lib/hash.c (hash_initialize): Detect calloc failure.
53253         Reported by Bruno Haible.
53254
53255 2007-09-09  Bruno Haible  <bruno@clisp.org>
53256
53257         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
53258         malloc or realloc fails.
53259
53260 2007-09-09  Bruno Haible  <bruno@clisp.org>
53261
53262         * modules/getcwd (Depends-on): Add malloc-posix.
53263         * modules/glob (Depends-on): Likewise.
53264         * modules/putenv (Depends-on): Likewise.
53265         * modules/strdup (Depends-on): Likewise.
53266         * modules/getdelim (Depends-on): Add realloc-posix.
53267         * modules/read-file (Depends-on): Likewise.
53268
53269 2007-09-09  Bruno Haible  <bruno@clisp.org>
53270
53271         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
53272         (gl_FUNC_MALLOC_POSIX): Require it.
53273         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
53274         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
53275         * modules/realloc (Files): Add m4/malloc.m4.
53276         * modules/calloc (Files): Likewise.
53277
53278 2007-09-09  Bruno Haible  <bruno@clisp.org>
53279
53280         * modules/malloc-posix: New file.
53281         * modules/malloc (Depends-on): Add malloc-posix.
53282         * lib/malloc.c: Include errno.h.
53283         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
53284         and a POSIX-compatible malloc into a single function. Set ENOMEM
53285         when returning NULL.
53286         * m4/malloc.m4: New file.
53287         * doc/functions/malloc.texi: Mention the malloc-posix module.
53288         * lib/stdlib_.h (malloc): New declaration.
53289         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
53290         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
53291         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
53292         and HAVE_MALLOC_POSIX.
53293
53294 2007-09-09  Bruno Haible  <bruno@clisp.org>
53295
53296         * modules/realloc-posix: New file.
53297         * modules/realloc (Depends-on): Add realloc-posix.
53298         * lib/realloc.c: Include errno.h.
53299         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
53300         and a POSIX-compatible realloc into a single function. Set ENOMEM
53301         when returning NULL.
53302         * m4/realloc.m4: New file.
53303         * doc/functions/realloc.texi: Mention the realloc-posix module.
53304         * lib/stdlib_.h (realloc): New declaration.
53305         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
53306         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
53307         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
53308         and HAVE_REALLOC_POSIX.
53309
53310 2007-09-09  Bruno Haible  <bruno@clisp.org>
53311
53312         * modules/calloc-posix: New file.
53313         * modules/calloc (Depends-on): Add calloc-posix.
53314         * lib/calloc.c: Include errno.h.
53315         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
53316         and a POSIX-compatible calloc into a single function. Set ENOMEM
53317         when returning NULL.
53318         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
53319         * doc/functions/calloc.texi: Mention the calloc-posix module.
53320         * lib/stdlib_.h (calloc): New declaration.
53321         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
53322         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
53323         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
53324         and HAVE_CALLOC_POSIX.
53325
53326 2007-09-09  Bruno Haible  <bruno@clisp.org>
53327
53328         Allow for modules to show an arbitrary notice.
53329         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
53330         * gnulib-tool: New option --extract-notice.
53331         (func_usage): Document it.
53332         (sed_extract_prog): Update.
53333         (func_get_notice): New function.
53334         (func_modules_notice): New function.
53335         (func_import, func_create_testdir): Invoke it.
53336         Suggested by Jim Meyering.
53337
53338 2007-09-09  Bruno Haible  <bruno@clisp.org>
53339
53340         * gnulib-tool: New options --verbose, --quiet.
53341         (func_usage): Document them.
53342         (verbose): New variable.
53343         (func_execute_command): New function.
53344         (func_import): Don't show the module list and the file list if
53345         $verbose < 0.
53346         (func_create_testdir): Likewise. Use func_execute_command.
53347         (func_create_megatestdir): Use func_execute_command.
53348
53349 2007-09-08  Bruno Haible  <bruno@clisp.org>
53350
53351         * gnulib-tool (func_import): Prefer rsync over wget when available,
53352         for fetching the PO files.
53353
53354 2007-09-08  Bruno Haible  <bruno@clisp.org>
53355
53356         * posix-modules: New file. Portions copied from gnulib-tool.
53357         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
53358
53359 2007-09-08  Jim Meyering  <jim@meyering.net>
53360
53361         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
53362         * lib/fpending.h: Rename from __fpending.h.
53363         * lib/fpending.c: Rename from __fpending.c.
53364         Include "fpending.h", not "__fpending.h".
53365         * lib/__fpending.h, lib/__fpending.c: Remove files.
53366         * modules/fpending (Files): Reflect new file names.
53367         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
53368
53369 2007-09-08  Bruno Haible  <bruno@clisp.org>
53370
53371         * m4/inttypes-h.m4: Remove stub file.
53372
53373 2007-09-07  Simon Josefsson  <simon@josefsson.org>
53374
53375         * doc/headers/stdint.texi: Discuss #include_next issue.
53376
53377 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
53378
53379         * build-aux/bootstrap: Remove obsolete comment about wget --help.
53380
53381 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53382
53383         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
53384         in variable name.
53385
53386 2007-09-03  Jim Meyering  <jim@meyering.net>
53387
53388         New module: git-version-gen.
53389         * modules/git-version-gen: New file.
53390
53391         Import changes from coreutils for bootstrap script.
53392
53393         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
53394
53395         bootstrap: uses rsync to download the .po files
53396         * build-aux/bootstrap (po_download_command_format): New global.
53397         (download_po_files): Use rsync.
53398         (update_po_files): Don't remove .po files after download,
53399         so future rsync runs can take advantage of the copies.
53400
53401         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
53402
53403         Solve the unnecessary-.po-file-regeneration problem once and for all.
53404         * build-aux/bootstrap (download_po_files): New function, renamed from
53405         get_translations.  Now, downloads, but doesn't update LINGUAS.
53406         (update_po_files): New function.
53407
53408         bootstrap: Ignore more.
53409         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
53410         uniwidth to e.g., lib/.gitignore.
53411         (slurp): Handle the sys_stat_.h -> sys mapping, too.
53412
53413         * build-aux/bootstrap: New setting: vc_ignore.
53414         (insert_sorted_if_absent): Create $file if absent.
53415         Adapt to new, possibly empty, list: $vc_ignore.
53416
53417         bootstrap: generate more ignorable names
53418         * build-aux/bootstrap (slurp): When generating ignorable names,
53419         also map .sin to .sed, .gperf to .c, and .y to .c.
53420
53421 2007-09-03  Jim Meyering  <jim@meyering.net>
53422
53423         * build-aux/git-version-gen: New file, from coreutils.  For details, see
53424         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
53425
53426 2007-09-02  Bruno Haible  <bruno@clisp.org>
53427
53428         Fix mis-recognition of 'mcs' on QNX 6.
53429         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
53430         output contains the string "Mono".
53431         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
53432         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
53433
53434 2007-09-01  Bruno Haible  <bruno@clisp.org>
53435
53436         Fix collision between uniwidth/* and linebreak modules.
53437         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
53438         u32_width): Remove declarations.
53439         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
53440         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
53441         streq3, streq2, streq1, streq0): Remove functions.
53442         (STREQ): Remove macro.
53443         (is_cjk_encoding): Remove function.
53444         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
53445         (uc_width, u8_width, u16_width, u32_width): Remove functions.
53446         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
53447         * NEWS: Document the change.
53448
53449 2007-09-01  Bruno Haible  <bruno@clisp.org>
53450
53451         * lib/streq.h: Add double-inclusion guard.
53452
53453 2007-09-01  Karl Berry  <karl@gnu.org>
53454
53455         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
53456
53457 2007-08-28  Jim Meyering  <jim@meyering.net>
53458
53459         Rename mreadlink_with_size to areadlink_with_size.
53460         * NEWS: Document the change.
53461         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
53462         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
53463         * lib/mreadlink.h: Rename this to...
53464         * lib/areadlink.h: ...this.
53465         * modules/mreadlink-with-size: Rename this to...
53466         * modules/areadlink-with-size: ...this.
53467         * lib/canonicalize.c: Reflect the renaming.
53468         * modules/canonicalize: Likewise.
53469
53470 2007-08-26  Bruno Haible  <bruno@clisp.org>
53471
53472         * gnulib-tool (func_import): When deciding which files to remove,
53473         consider also dangling symbolic links.
53474         Reported by Eric Blake.
53475
53476 2007-08-26  Bruno Haible  <bruno@clisp.org>
53477
53478         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
53479
53480 2007-08-23  Simon Josefsson  <simon@josefsson.org>
53481
53482         * lib/readline.c: Don't include getline.h, the prototype is now
53483         found in stdio.h.
53484
53485 2007-08-23  Jim Meyering  <jim@meyering.net>
53486
53487         Getdelim touchup.
53488         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
53489         around the funlockfile call, since funlockfile never sets errno.
53490         Don't set errno upon failed realloc.
53491
53492 2007-08-22  Eric Blake  <ebb9@byu.net>
53493
53494         Getline touchups.
53495         * lib/getdelim.c (getdelim): Revert regression that required *n to
53496         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
53497         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
53498         getdelim, rather than whether implementation is missing.
53499         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
53500         * lib/stdio_.h (getline): Also declare if replacement is
53501         required.
53502         * doc/functions/getdelim.texi: New file.
53503         * doc/functions/getline.texi: Likewise.
53504         * doc/gnulib.texi (Function Substitutes): Add new files.
53505         Reported by Bruno Haible.
53506
53507 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
53508
53509         * users.txt: Add Guile.
53510
53511 2007-08-22  Eric Blake  <ebb9@byu.net>
53512
53513         * tests/test-getdelim.c (main): Use remove, not unlink.
53514         * tests/test-getline.c (main): Likewise.
53515
53516         Move getline and getdelim into stdio.h, per POSIX 200x.
53517         * modules/getline (Files): Remove getline.h.
53518         (Depends-on): Add stdio.
53519         (configure.ac): Add module indicator.
53520         * modules/getdelim (Files): Remove getdelim.h.
53521         (Depends-on): Add stdio.
53522         (configure.ac): Add module indicator.
53523         * modules/stdio (Makefile.am): Work with new indicators.
53524         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
53525         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
53526         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
53527         * lib/getdelim.h: Delete.
53528         * lib/getline.h: Delete.
53529         * lib/stdio_.h (getdelim, getline): Declare.
53530         * modules/getdelim-tests: New module.
53531         * modules/getline-tests: Likewise.
53532         * tests/test-getdelim.c: New file.
53533         * tests/test-getline.c: Likewise.
53534         * NEWS: Document the change.
53535         * lib/getline.c: Update choice of header.
53536         * lib/csharpcomp.c: Likewise.
53537         * lib/getpass.c: Likewise.
53538         * lib/javacomp.c: Likewise.
53539         * lib/javaversion.c: Likewise.
53540         * lib/yesno.c: Likewise.
53541         * lib/getdelim.c: Likewise.
53542         (getdelim): Set errno on failure, and avoid memory leak.
53543
53544 2007-08-19  Bruno Haible  <bruno@clisp.org>
53545
53546         * modules/closein (Depends-on): Add freadahead.
53547         * lib/closein.c: Include freadahead.h.
53548         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
53549         is zero.
53550
53551 2007-08-19  Bruno Haible  <bruno@clisp.org>
53552
53553         * modules/freadahead-tests: New file.
53554         * tests/test-freadahead.sh: New file.
53555         * tests/test-freadahead.c: New file.
53556
53557         * modules/freadahead: New file.
53558         * lib/freadahead.h: New file.
53559         * lib/freadahead.c: New file.
53560         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
53561         fbufmode, fpurge, freadable, fwritable.
53562
53563 2007-08-19  Eric Blake  <ebb9@byu.net>
53564
53565         Test yesno in combination with closein.
53566         * lib/yesno.c (yesno): Document use of stdin.
53567         * modules/yesno-tests (Files): New module.
53568         * tests/test-yesno.c (main): New file.
53569         * tests/test-yesno.sh: Likewise.
53570
53571 2007-08-19  Bruno Haible  <bruno@clisp.org>
53572
53573         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
53574         * lib/fseeko.c (rpl_fseeko): Likewise.
53575         * lib/fseterr.c (fseterr): Likewise.
53576
53577 2007-08-19  Bruno Haible  <bruno@clisp.org>
53578
53579         * tests/test-lseek.c (main): Disable a test for BeOS.
53580         * doc/functions/lseek.texi: Document the BeOS bug.
53581
53582 2007-08-19  Bruno Haible  <bruno@clisp.org>
53583             Eric Blake  <ebb9@byu.net>
53584
53585         * lib/lseek.c: Include <sys/stat.h>.
53586         (rpl_lseek): Add workaround code also for Unix platforms.
53587         Needed for BeOS.
53588         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
53589         * doc/functions/lseek.texi: Document BeOS definiency.
53590
53591 2007-08-18  Bruno Haible  <bruno@clisp.org>
53592
53593         * modules/fstrcmp-tests: New file.
53594         * tests/test-fstrcmp.c: New file.
53595
53596 2007-08-18  Bruno Haible  <bruno@clisp.org>
53597
53598         * modules/fstrcmp: New file, from GNU gettext with modifications.
53599         * lib/fstrcmp.h: New file, from GNU gettext.
53600         * lib/fstrcmp.c: New file, from GNU gettext.
53601         * MODULES.html.sh (String handling): Add fstrcmp.
53602
53603 2007-08-18  Bruno Haible  <bruno@clisp.org>
53604
53605         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
53606         'bool'.
53607         (diag, compareseq): Remove const from the ctxt argument.
53608         (USE_HEURISTIC): Undefine at the end.
53609
53610 2007-08-18  Jim Meyering  <jim@meyering.net>
53611
53612         New file: lib/idcache.h
53613         * NEWS: Mention the addition.
53614         * modules/idcache (Files): Add lib/idcache.h
53615         * lib/idcache.c: Include "idcache.h".
53616         Don't include <sys/types.h>.
53617         Add a FIXME comment.
53618         Move file-scoped "static" declarations to the top.
53619         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
53620
53621 2007-08-17  Bruno Haible  <bruno@clisp.org>
53622         and Paul Eggert  <eggert@cs.ucla.edu>
53623
53624         * MODULES.html.sh: Add diffseq.
53625         * modules/diffseq: New file.
53626         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
53627         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
53628
53629 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
53630
53631         Import changes from coreutils for bootstrap script.
53632
53633         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
53634
53635         * build-aux/bootstrap (slurp): Work even in environments where
53636         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
53637         current code does not slurp files whose names start with ".", and
53638         this looks like it might be a troublesome area.
53639
53640         2007-07-11  Jim Meyering  <jim@meyering.net>
53641
53642         If there's a GPL vN copyright comment, require that N == 3.
53643
53644         2007-07-08  Jim Meyering  <jim@meyering.net>
53645
53646         Run the coreutils-specific code only if tests/Makefile.am.in exists.
53647         * build-aux/bootstrap (mam_template): Move definition out of loop.
53648
53649         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
53650
53651         * build-aux/bootstrap (symlink_to_dir): Rename function from
53652         symlink_to_gnulib.  Add a directory parameter.  Update all
53653         callers.
53654         (cp_mark_as_generated): Also check for -- and link to -- files in
53655         gl/.
53656
53657         2007-07-08  Jim Meyering  <jim@meyering.net>
53658
53659         Adapt to deeper hierarchy in gnulib.
53660         * build-aux/bootstrap (symlink_to_dir): If the destination
53661         directory doesn't exist, create it. This is required at least for
53662         "lib/uniwidth/cjk.h".
53663
53664         2007-05-15  Jim Meyering  <jim@meyering.net>
53665
53666         * build-aux/bootstrap: Now that generated Makefile.am files
53667         are no longer under version control, they must be created at
53668         bootstrap time.
53669
53670 2007-08-14  Ben Pfaff  <blp@gnu.org>
53671
53672         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
53673
53674 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
53675
53676         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
53677         given the changes below.
53678         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
53679         even on hosts that have padding bits beyond the supported 64.
53680
53681 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
53682
53683         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
53684         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
53685         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
53686         depends on it.
53687         (xstrtol_error): Remove.
53688         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
53689         but with a different signature.
53690         (ATTRIBUTE_NORETURN, __attribute__): New macros.
53691         * lib/xstrtol-error.c: Include exitfail.h.
53692         (xstrtol_fatal): New function, with a different signature from the
53693         old xstrtol_error, so that the caller need not worry about passing
53694         in an exit status, or about storage management of the option argument.
53695         (xstrtol_error): Now a static function.  Redo signature to
53696         implement xstrtol_fatal.  Output the correct number of hyphens in
53697         front of the option so that the caller need not worry about
53698         storage management.
53699         (N_): New macro.
53700         (_): Remove; not used now.
53701         * modules/xstrtol: Depend on getopt.
53702         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
53703         of old STRTOL_FATAL_ERROR macro.
53704         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
53705         of test program.
53706         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
53707         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
53708
53709 2007-08-08  Eric Blake  <ebb9@byu.net>
53710
53711         * lib/xstrtol-error.c: Add missing include.
53712
53713         Move xstrtol messages into gnulib domain, when --pobase is used.
53714         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
53715         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
53716         * modules/xstrtol (Files): Distribute new file.
53717         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
53718         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
53719         * tests/test-xstrtol.c: ...into new file.
53720         * tests/test-xstrtoul.c: Also test xstrtoul.
53721         * tests/test-xstrtoimax.c: Also test xstrtoimax.
53722         * tests/test-xstrtoumax.c: Also test xstrtoumax.
53723         * tests/test-xstrtol.sh: Drive the tests.
53724         * tests/test-xstrtoimax.sh: Likewise.
53725         * tests/test-xstrtoumax.sh: Likewise.
53726         * modules/xstrtol-tests: New module.
53727         * modules/xstrtoimax-tests: Likewise.
53728         * modules/xstrtoumax-tests: Likewise.
53729
53730 2007-08-08  Jim Meyering  <jim@meyering.net>
53731
53732         New function: mfile_name_concat.
53733         * lib/filenamecat.c (mfile_name_concat): New function, just like
53734         file_name_concat, but return NULL upon failure rather than exiting
53735         with a diagnostic.
53736         * lib/filenamecat.h: Declare it.
53737
53738 2007-08-07  Bruno Haible  <bruno@clisp.org>
53739
53740         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
53741         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
53742         warning from gcc.
53743         Reported by Eric Blake.
53744
53745 2007-08-07  Simon Josefsson  <simon@josefsson.org>
53746
53747         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
53748         * modules/crypto/arcfour (License): Likewise.
53749         * modules/crypto/des-tests (License): Likewise.
53750         * modules/crypto/gc-arctwo-tests (License): Likewise.
53751         * modules/crypto/gc-des-tests (License): Likewise.
53752         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
53753         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
53754         * modules/crypto/gc-md2-tests (License): Likewise.
53755         * modules/crypto/gc-md4-tests (License): Likewise.
53756         * modules/crypto/gc-md5-tests (License): Likewise.
53757         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
53758         * modules/crypto/gc-rijndael-tests (License): Likewise.
53759         * modules/crypto/gc-sha1-tests (License): Likewise.
53760         * modules/crypto/gc-tests (License): Likewise.
53761         * modules/crypto/hmac-md5 (License): Likewise.
53762         * modules/crypto/hmac-sha1 (License): Likewise.
53763         * modules/crypto/md2-tests (License): Likewise.
53764         * modules/crypto/md4-tests (License): Likewise.
53765         * modules/crypto/md5 (License): Likewise.
53766         * modules/crypto/rijndael (License): Likewise.
53767         * modules/crypto/sha1 (License): Likewise.
53768         * modules/memxor (License): Likewise.
53769
53770 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
53771         and Bruno Haible  <bruno@clisp.org>
53772
53773         * NEWS: Describe interface changes to human, xstrtol.
53774         * lib/human.h: Include <xstrtol.h>.
53775         (human_options): Return enum strtol_error, not int.  Remove
53776         bool arg; take int * instead.
53777         * lib/human.c: Don't include "gettext.h".
53778         (_): Remove; no longer used.
53779         Don't include <xstrtol.h>, since human.h does it.
53780         (human_options): Adjust to abovementioned interface changes.
53781         Do not report error to stderr; that's now the caller's
53782         responsibility.
53783         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
53784         interface change.
53785         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
53786         Str, Argument_type_string.  All uses changed.  Put " argument"
53787         in diagnostics to make them clearer.  Change wording of suffix
53788         message for clarity.
53789         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
53790         Argument_type_string.
53791         (STRTOL_FATAL_WARN): Remove; no longer used.
53792         * modules/human (Depends-on): Remove gettext-h.
53793
53794 2007-08-06  Simon Josefsson  <simon@josefsson.org>
53795
53796         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
53797
53798 2007-07-31  Bruno Haible  <bruno@clisp.org>
53799
53800         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
53801         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
53802         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
53803
53804 2007-07-31  Bruno Haible  <bruno@clisp.org>
53805
53806         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
53807         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
53808
53809 2007-07-30  Bruno Haible  <bruno@clisp.org>
53810
53811         * modules/base64 (License): Use the synonymous term "LGPLv2+".
53812         * modules/c-ctype (License): Likewise.
53813         * modules/c-strcase (License): Likewise.
53814         * modules/check-version (License): Likewise.
53815         * modules/iconv (License): Likewise.
53816         * modules/iconv_open (License): Likewise.
53817         * modules/read-file (License): Likewise.
53818         * modules/striconv (License): Likewise.
53819         * modules/strverscmp (License): Likewise.
53820         * modules/vasprintf (License): Likewise.
53821         * modules/crypto/des (License): Likewise.
53822         * modules/crypto/gc (License): Likewise.
53823         * modules/crypto/gc-arcfour (License): Likewise.
53824         * modules/crypto/gc-arctwo (License): Likewise.
53825         * modules/crypto/gc-des (License): Likewise.
53826         * modules/crypto/gc-hmac-md5 (License): Likewise.
53827         * modules/crypto/gc-hmac-sha1 (License): Likewise.
53828         * modules/crypto/gc-md2 (License): Likewise.
53829         * modules/crypto/gc-md4 (License): Likewise.
53830         * modules/crypto/gc-md5 (License): Likewise.
53831         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
53832         * modules/crypto/gc-random (License): Likewise.
53833         * modules/crypto/gc-rijndael (License): Likewise.
53834         * modules/crypto/gc-sha1 (License): Likewise.
53835         * modules/crypto/md2 (License): Likewise.
53836         * modules/crypto/md4 (License): Likewise.
53837
53838 2007-07-30  Jim Meyering  <jim@meyering.net>
53839
53840         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
53841         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
53842         it has valid stat data.  This bug would cause du not to count the
53843         sizes of inaccessible directories.
53844         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
53845         in <http://bugzilla.redhat.com/250077>.
53846
53847 2007-07-25  Peter O'Gorman  <peter@pogma.com>
53848             Bruno Haible  <bruno@clisp.org>
53849
53850         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
53851         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
53852         #include_next, gives a diagnostic about it, but reports no error in
53853         the exit code.
53854         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
53855
53856 2007-07-24  Ben Pfaff  <blp@gnu.org>
53857
53858         Improve name: "count-one-bits" is better than "popcount".
53859         * MODULES.html.sh: Update name.
53860         * lib/popcount.h: Renamed lib/count-one-bits.h.
53861         (popcount): Renamed count_one_bits.
53862         (popcountl): Renamed count_one_bits_l.
53863         (popcountll): Renamed count_one_bits_ll.
53864         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
53865         * modules/popcount: Renamed module/count-one-bits.
53866         * modules/popcount-tests: Renamed module/count-one-bits-tests.
53867         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
53868
53869 2007-07-23  Ben Pfaff  <blp@gnu.org>
53870
53871         * lib/popcount.h (popcount32): Reduce size of constants, to allow
53872         better code generation, and add U to large constants to avoid
53873         warnings, in non-GCC case.
53874         Suggested by Bruno Haible.
53875
53876 2007-07-23  Ben Pfaff  <blp@gnu.org>
53877
53878         * lib/popcount.h: Use verify_true instead of if...abort.
53879         * modules/popcount: Depend on verify module.
53880         Suggested by Jim Meyering.
53881
53882 2007-07-23  Bruno Haible  <bruno@clisp.org>
53883
53884         * gnulib-tool (func_import): Create a .cvsignore file also when the
53885         directory is not yet in CVS but the toplevel directory is. When
53886         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
53887         Reported by Karl Berry.
53888
53889 2007-07-22  Ben Pfaff  <blp@gnu.org>
53890
53891         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
53892         case.
53893         Suggested by Eric Blake.
53894
53895 2007-07-22  Ben Pfaff  <blp@gnu.org>
53896
53897         New module: popcount.
53898         * MODULES.html.sh: Add popcount.
53899         * modules/popcount: New file.
53900         * modules/popcount-tests: New file.
53901         * tests/test-popcount.c: New file.
53902         * lib/popcount.h: New file.
53903         * m4/popcount.m4: New file.
53904
53905 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
53906
53907         * build-aux/announce-gen: Update to GPLv3.
53908
53909         * build-aux/config.guess: Update from config.
53910
53911 2007-07-21  Bruno Haible  <bruno@clisp.org>
53912
53913         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
53914         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
53915
53916 2007-07-20  Jim Meyering  <jim@meyering.net>
53917
53918         * check-module: Diagnose a self-dependency.
53919
53920 2007-07-19  Bruno Haible  <bruno@clisp.org>
53921
53922         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
53923         empty.
53924         Reported by Eric Blake.
53925
53926 2007-07-18  Bruno Haible  <bruno@clisp.org>
53927
53928         * gnulib-tool: New options --po-base, --po-domain.
53929         (func_usage): Document them.
53930         (pobase, po_domain): New variables.
53931         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
53932         DEFAULT_TEXT_DOMAIN.
53933         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
53934         (func_import): Consider pobase and po_domain. Create a po/ directory.
53935         (func_create_testdir): Set pobase and po_domain to empty.
53936         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
53937         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
53938
53939 2007-07-18  Bruno Haible  <bruno@clisp.org>
53940
53941         * gnulib-tool (func_get_automake_snippet): Synthesize also an
53942         EXTRA_DIST augmentation for files in build-aux/.
53943
53944 2007-07-16  Bruno Haible  <bruno@clisp.org>
53945
53946         * modules/lseek (License): Use the synonymous term "LGPLv2+".
53947         * modules/getdelim (License): Likewise.
53948
53949 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53950
53951         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
53952         * modules/d-type (License): Likewise.
53953         * modules/extensions (License): Likewise.
53954         * modules/fnmatch (License): Likewise.
53955         * modules/fseeko (License): Likewise.
53956         * modules/getaddrinfo (License): Likewise.
53957         * modules/getline (License): Likewise.
53958         * modules/getlogin_r (License): Likewise.
53959         * modules/getpass (License): Likewise.
53960         * modules/gettimeofday (License): Likewise.
53961         * modules/glob (License): Likewise.
53962         * modules/inet_ntop (License): Likewise.
53963         * modules/malloc (License): Likewise.
53964         * modules/malloca (License): Likewise.
53965         * modules/memmem (License): Likewise.
53966         * modules/mempcpy (License): Likewise.
53967         * modules/memset (License): Likewise.
53968         * modules/minmax (License): Likewise.
53969         * modules/mktime (License): Likewise.
53970         * modules/netinet_in (License): Likewise.
53971         * modules/pathmax (License): Likewise.
53972         * modules/poll (License): Likewise.
53973         * modules/regex (License): Likewise.
53974         * modules/snprintf (License): Likewise.
53975         * modules/stdbool (License): Likewise.
53976         * modules/stdint (License): Likewise.
53977         * modules/stdio (License): Likewise.
53978         * modules/strcase (License): Likewise.
53979         * modules/strcasestr (License): Likewise.
53980         * modules/strdup (License): Likewise.
53981         * modules/string (License): Likewise.
53982         * modules/strndup (License): Likewise.
53983         * modules/strnlen (License): Likewise.
53984         * modules/strpbrk (License): Likewise.
53985         * modules/strptime (License): Likewise.
53986         * modules/strsep (License): Likewise.
53987         * modules/sys_select (License): Likewise.
53988         * modules/sys_socket (License): Likewise.
53989         * modules/sys_stat (License): Likewise.
53990         * modules/sys_time (License): Likewise.
53991         * modules/time (License): Likewise.
53992         * modules/time_r (License): Likewise.
53993         * modules/timegm (License): Likewise.
53994         * modules/unistd (License): Likewise.
53995         * modules/vsnprintf (License): Likewise.
53996         * modules/wctype (License): Likewise.
53997
53998 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53999
54000         * modules/argz (License): LGPLv2+.
54001
54002 2007-07-15  Karl Berry  <karl@gnu.org>
54003
54004         * doc/gnulib.texi: revise node structure per new fdl.texi.
54005
54006 2007-07-14  Bruno Haible  <bruno@clisp.org>
54007
54008         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
54009         the output file.
54010         * lib/uniname/uninames.h: Regenerated.
54011
54012 2007-07-14  Karl Berry  <karl@gnu.org>
54013
54014         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
54015         omitting sectioning and index commands.
54016
54017 2007-07-13  Bruno Haible  <bruno@clisp.org>
54018
54019         New gnulib-tool option --more-symlinks.
54020         * gnulib-tool (func_usage): Document --more-symlinks.
54021         (do_copyrights): New variable.
54022         Recognize option --more-symlinks.
54023         (func_import): Don't add a copyright notice transform to
54024         sed_transform_lib_file if do_copyrights is empty.
54025
54026 2007-07-13  Bruno Haible  <bruno@clisp.org>
54027
54028         * lib/vasnprintf.c (decimal_point_char): Define also if
54029         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
54030         && !NEED_PRINTF_DIRECTIVE_A.
54031         Reported by Clemens Koller <clemens.koller@anagramm.de> via
54032         Gary V. Vaughan <gary@gnu.org>.
54033
54034 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
54035
54036         * lib/inttypes_.h: Undo previous change, since it was fixed
54037         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
54038
54039 2007-07-13  Bruno Haible  <bruno@clisp.org>
54040
54041         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
54042         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
54043
54044 2007-07-13  Jim Meyering  <jim@meyering.net>
54045
54046         df: Don't fail for Tru64's "file-on-file mount".
54047         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
54048         so we fall through and use statfs instead.  Details here:
54049         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
54050         Reported by Albert Chin.
54051
54052 2007-07-13  Bruno Haible  <bruno@clisp.org>
54053
54054         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
54055         * modules/configmake (License): Likewise.
54056         * modules/gettext (License): Likewise.
54057         * modules/gettext-h (License): Likewise.
54058         * modules/include_next (License): Likewise.
54059         * modules/link-warning (License): Likewise.
54060         * modules/localcharset (License): Likewise.
54061         * modules/localename (License): Likewise.
54062         * modules/lock (License): Likewise.
54063         * modules/relocatable-lib-lgpl (License): Likewise.
54064         * modules/size_max (License): Likewise.
54065         * modules/vasnprintf (License): Likewise.
54066         * modules/wchar (License): Likewise.
54067         * modules/xsize (License): Likewise.
54068
54069 2007-07-13  Bruno Haible  <bruno@clisp.org>
54070
54071         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
54072         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
54073
54074 2007-07-12  Bruno Haible  <bruno@clisp.org>
54075
54076         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
54077         in the modules files.
54078
54079 2007-07-11  Karl Berry  <karl@gnu.org>
54080
54081         * MODULES.html.sh (func_module): use
54082          sed -e '\|^'"${includefile}"'$|d'
54083          instead of /.../d, to avoid errors on $includefile's containing /.
54084
54085 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
54086
54087         * gnulib-tool (func_import): Avoid duplication of --avoid
54088         statements
54089         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
54090         names to `_' in variable names.
54091
54092 2007-07-10  Eric Blake  <ebb9@byu.net>
54093
54094         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
54095         * NEWS: Document this change.
54096
54097 2007-07-08  Bruno Haible  <bruno@clisp.org>
54098
54099         Update to Unicode 5.0.
54100         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
54101         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
54102         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
54103         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
54104         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
54105         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
54106         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
54107         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
54108         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
54109         U+10A3F, U+1D242..U+1D244.
54110         (nonspacing_table_ind): Update.
54111         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
54112         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
54113
54114 2007-07-08  Bruno Haible  <bruno@clisp.org>
54115
54116         Update to Unicode 5.0.
54117         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
54118         code transform. Extend the name index field of unicode_name_to_code and
54119         unicode_code_to_name from 16 to 24 bits.
54120         * lib/uniname/uniname.c (unicode_character_name,
54121         unicode_name_character): Add the range 0x12xxx to the code transform.
54122         * lib/uniname/uninames.h: Regenerated.
54123         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
54124
54125 2007-07-07  Bruno Haible  <bruno@clisp.org>
54126
54127         * modules/wcwidth-tests: New file.
54128         * tests/test-wcwidth.c: New file.
54129
54130         Work around MacOS X wcwidth() bug.
54131         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
54132         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
54133         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
54134         original wcwidth in non-UTF-8 locales.
54135         * modules/wcwidth (Depends-on): Add localcharset, streq,
54136         uniwidth/width.
54137         * doc/functions/wcwidth.texi: Update.
54138
54139 2007-07-07  Bruno Haible  <bruno@clisp.org>
54140
54141         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
54142         (wcwidth): New declaration.
54143         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
54144         macros.
54145         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
54146         here. Prepare for creating <wchar.h> unconditionally.
54147         * modules/wchar (Depends-on): Add link-warning.
54148         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
54149         REPLACE_WCWIDTH, and GL_LINK_WARNING.
54150         * lib/wcwidth.h: Remove file.
54151         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
54152         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
54153         * modules/wcwidth (Files): Remove lib/wcwidth.h.
54154         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
54155         (Include): Replace wcwidth.h with <wchar.h>.
54156         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
54157         * lib/mbchar.h: Don't include wcwidth.h.
54158         * lib/mbswidth.c: Likewise.
54159         * NEWS: Mention the change.
54160
54161 2007-07-07  Bruno Haible  <bruno@clisp.org>
54162
54163         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
54164         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
54165         definition with an external declaration.
54166         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
54167         defined as a function. Remove AC_C_INLINE requirement.
54168         * modules/wcwidth (Files): Add lib/wcwidth.c.
54169         (Makefile.am): Remove redundant statement.
54170
54171 2007-07-07  Bruno Haible  <bruno@clisp.org>
54172
54173         * MODULES.html.sh (Unicode string functions): Add the new modules.
54174
54175         * tests/uniwidth/test-u32-strwidth.c: New file.
54176         * modules/uniwidth/u32-strwidth-tests: New file.
54177
54178         * lib/uniwidth/u32-strwidth.c: New file.
54179         * modules/uniwidth/u32-strwidth: New file.
54180
54181         * tests/uniwidth/test-u16-strwidth.c: New file.
54182         * modules/uniwidth/u16-strwidth-tests: New file.
54183
54184         * lib/uniwidth/u16-strwidth.c: New file.
54185         * modules/uniwidth/u16-strwidth: New file.
54186
54187         * tests/uniwidth/test-u8-strwidth.c: New file.
54188         * modules/uniwidth/u8-strwidth-tests: New file.
54189
54190         * lib/uniwidth/u8-strwidth.c: New file.
54191         * modules/uniwidth/u8-strwidth: New file.
54192
54193         * tests/uniwidth/test-u32-width.c: New file.
54194         * modules/uniwidth/u32-width-tests: New file.
54195
54196         * lib/uniwidth/u32-width.c: New file.
54197         * modules/uniwidth/u32-width: New file.
54198
54199         * tests/uniwidth/test-u16-width.c: New file.
54200         * modules/uniwidth/u16-width-tests: New file.
54201
54202         * lib/uniwidth/u16-width.c: New file.
54203         * modules/uniwidth/u16-width: New file.
54204
54205         * tests/uniwidth/test-u8-width.c: New file.
54206         * modules/uniwidth/u8-width-tests: New file.
54207
54208         * lib/uniwidth/u8-width.c: New file.
54209         * modules/uniwidth/u8-width: New file.
54210
54211         * tests/uniwidth/test-uc_width.c: New file.
54212         * modules/uniwidth/width-tests: New file.
54213
54214         * lib/uniwidth/width.c: New file, from GNU libiconv.
54215         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
54216         * modules/uniwidth/width: New file.
54217
54218         * lib/uniwidth.h: New file, from GNU libiconv.
54219         * modules/uniwidth/base: New file.
54220
54221 2007-07-07  Bruno Haible  <bruno@clisp.org>
54222
54223         * lib/uniname.h: New file, from GNU gettext.
54224         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
54225         * lib/uniname/uninames.h: New file, from GNU gettext.
54226         * lib/uniname/uniname.c: New file, from GNU gettext.
54227         * tests/uniname/test-uninames.sh: New file.
54228         * tests/uniname/test-uninames.c: New file, from GNU gettext.
54229         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
54230         * modules/uniname/base: New file.
54231         * modules/uniname/uniname: New file.
54232         * modules/uniname/uniname-tests: New file.
54233         * MODULES.html.sh (Unicode string functions): Add the new modules.
54234
54235 2007-07-06  Bruno Haible  <bruno@clisp.org>
54236
54237         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
54238
54239 2007-07-06  Bruno Haible  <bruno@clisp.org>
54240
54241         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
54242         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
54243         includes <cygwin/sys_time.h> which includes <sys/select.h> which
54244         include <sys/time.h>.
54245         Reported by Eric Blake.
54246
54247 2007-07-06  Eric Blake  <ebb9@byu.net>
54248
54249         Fix testing canonicalize on cygwin.
54250         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
54251         Revert patch from 2007-06-19.
54252         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
54253         canonicalize module is also in use.
54254         * tests/test-canonicalize.c: New file.
54255         * tests/test-canonicalize.sh: Likewise.
54256         * modules/canonicalize-tests: Likewise.
54257
54258 2007-07-06  Jim Meyering  <jim@meyering.net>
54259
54260         * lib/getugroups.c (getugroups): Detect getgrent failure.
54261         Adjust comment to reflect reality: this function may return -1.
54262
54263 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
54264
54265         * build-aux/bootstrap (TP_URL,get_translations): Update to use
54266         the new TP address.
54267         (usage): Fix typo
54268         (gnulib_mk): New variable.
54269
54270 2007-07-05  Jim Meyering  <jim@meyering.net>
54271
54272         Don't let endgrent clobber errno, no matter how improbable.
54273         * lib/getugroups.c (getugroups): Save and restore errno around
54274         endgrent call.
54275
54276         Close the group DB even when failing with 2^31 or more members.
54277         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
54278
54279 2007-07-04  Jim Meyering  <jim@meyering.net>
54280
54281         * lib/getugroups.h: New file.
54282         * lib/getugroups.c: Include "getugroups.h".
54283         Remove uses of "register" keyword.
54284         Move local variable, "cp", down into scope where used.
54285         Give "username" parameter the "const" attribute.
54286         * modules/getugroups (Files): Add lib/getugroups.h
54287
54288 2007-07-04  Karl Berry  <karl@gnu.org>
54289
54290         * MODULES.html.sh (func_all_modules): Complete rename of
54291         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
54292
54293 2007-07-02  Bruno Haible  <bruno@clisp.org>
54294
54295         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
54296         mode, when inttypes.h comes from gnulib.
54297         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
54298
54299 2007-07-02  Simon Josefsson  <simon@josefsson.org>
54300
54301         * NEWS: Mention lgpl module name change.
54302
54303         * modules/lgpl-2.1: Renamed from lgpl.
54304
54305         * NEWS: Mention gpl module name change.
54306
54307         * modules/gpl-3.0: New file, based on gpl-2.0.
54308
54309         * modules/gpl-2.0: Renamed from gpl.
54310
54311         * modules/gpl: Fix filename, doc/gpl.texi is now found at
54312         doc/gpl-2.0.texi.
54313
54314 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
54315
54316         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
54317         #define __STDC_LIMIT_MACROS temporarily while including
54318         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
54319         Problem reported by Joel E. Denny in
54320         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
54321
54322 2007-07-01  Bruno Haible  <bruno@clisp.org>
54323
54324         * lib/unistdio.h: New file.
54325         * lib/unistdio/u-asnprintf.h: New file.
54326         * lib/unistdio/u-asprintf.h: New file.
54327         * lib/unistdio/u-printf-args.c: New file.
54328         * lib/unistdio/u-printf-args.h: New file.
54329         * lib/unistdio/u-printf-parse.h: New file.
54330         * lib/unistdio/u-snprintf.h: New file.
54331         * lib/unistdio/u-sprintf.h: New file.
54332         * lib/unistdio/u-vasprintf.h: New file.
54333         * lib/unistdio/u-vsnprintf.h: New file.
54334         * lib/unistdio/u-vsprintf.h: New file.
54335         * lib/unistdio/ulc-asnprintf.c: New file.
54336         * lib/unistdio/ulc-asprintf.c: New file.
54337         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
54338         * lib/unistdio/ulc-printf-parse.c: New file.
54339         * lib/unistdio/ulc-snprintf.c: New file.
54340         * lib/unistdio/ulc-sprintf.c: New file.
54341         * lib/unistdio/ulc-vasnprintf.c: New file.
54342         * lib/unistdio/ulc-vasprintf.c: New file.
54343         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
54344         * lib/unistdio/ulc-vsnprintf.c: New file.
54345         * lib/unistdio/ulc-vsprintf.c: New file.
54346         * lib/unistdio/u8-asnprintf.c: New file.
54347         * lib/unistdio/u8-asprintf.c: New file.
54348         * lib/unistdio/u8-printf-parse.c: New file.
54349         * lib/unistdio/u8-snprintf.c: New file.
54350         * lib/unistdio/u8-sprintf.c: New file.
54351         * lib/unistdio/u8-vasnprintf.c: New file.
54352         * lib/unistdio/u8-vasprintf.c: New file.
54353         * lib/unistdio/u8-vsnprintf.c: New file.
54354         * lib/unistdio/u8-vsprintf.c: New file.
54355         * lib/unistdio/u8-u8-asnprintf.c: New file.
54356         * lib/unistdio/u8-u8-asprintf.c: New file.
54357         * lib/unistdio/u8-u8-snprintf.c: New file.
54358         * lib/unistdio/u8-u8-sprintf.c: New file.
54359         * lib/unistdio/u8-u8-vasnprintf.c: New file.
54360         * lib/unistdio/u8-u8-vasprintf.c: New file.
54361         * lib/unistdio/u8-u8-vsnprintf.c: New file.
54362         * lib/unistdio/u8-u8-vsprintf.c: New file.
54363         * lib/unistdio/u16-asnprintf.c: New file.
54364         * lib/unistdio/u16-asprintf.c: New file.
54365         * lib/unistdio/u16-printf-parse.c: New file.
54366         * lib/unistdio/u16-snprintf.c: New file.
54367         * lib/unistdio/u16-sprintf.c: New file.
54368         * lib/unistdio/u16-vasnprintf.c: New file.
54369         * lib/unistdio/u16-vasprintf.c: New file.
54370         * lib/unistdio/u16-vsnprintf.c: New file.
54371         * lib/unistdio/u16-vsprintf.c: New file.
54372         * lib/unistdio/u16-u16-asnprintf.c: New file.
54373         * lib/unistdio/u16-u16-asprintf.c: New file.
54374         * lib/unistdio/u16-u16-snprintf.c: New file.
54375         * lib/unistdio/u16-u16-sprintf.c: New file.
54376         * lib/unistdio/u16-u16-vasnprintf.c: New file.
54377         * lib/unistdio/u16-u16-vasprintf.c: New file.
54378         * lib/unistdio/u16-u16-vsnprintf.c: New file.
54379         * lib/unistdio/u16-u16-vsprintf.c: New file.
54380         * lib/unistdio/u32-asnprintf.c: New file.
54381         * lib/unistdio/u32-asprintf.c: New file.
54382         * lib/unistdio/u32-printf-parse.c: New file.
54383         * lib/unistdio/u32-snprintf.c: New file.
54384         * lib/unistdio/u32-sprintf.c: New file.
54385         * lib/unistdio/u32-vasnprintf.c: New file.
54386         * lib/unistdio/u32-vasprintf.c: New file.
54387         * lib/unistdio/u32-vsnprintf.c: New file.
54388         * lib/unistdio/u32-vsprintf.c: New file.
54389         * lib/unistdio/u32-u32-asnprintf.c: New file.
54390         * lib/unistdio/u32-u32-asprintf.c: New file.
54391         * lib/unistdio/u32-u32-snprintf.c: New file.
54392         * lib/unistdio/u32-u32-sprintf.c: New file.
54393         * lib/unistdio/u32-u32-vasnprintf.c: New file.
54394         * lib/unistdio/u32-u32-vasprintf.c: New file.
54395         * lib/unistdio/u32-u32-vsnprintf.c: New file.
54396         * lib/unistdio/u32-u32-vsprintf.c: New file.
54397         * tests/unistdio/test-ulc-asnprintf1.c: New file.
54398         * tests/unistdio/test-ulc-asnprintf1.h: New file.
54399         * tests/unistdio/test-ulc-printf1.h: New file.
54400         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
54401         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
54402         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
54403         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
54404         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
54405         * tests/unistdio/test-ulc-vasprintf1.c: New file.
54406         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
54407         * tests/unistdio/test-ulc-vsprintf1.c: New file.
54408         * tests/unistdio/test-u8-asnprintf1.c: New file.
54409         * tests/unistdio/test-u8-asnprintf1.h: New file.
54410         * tests/unistdio/test-u8-printf1.h: New file.
54411         * tests/unistdio/test-u8-vasnprintf1.c: New file.
54412         * tests/unistdio/test-u8-vasnprintf2.c: New file.
54413         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
54414         * tests/unistdio/test-u8-vasnprintf3.c: New file.
54415         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
54416         * tests/unistdio/test-u8-vasprintf1.c: New file.
54417         * tests/unistdio/test-u8-vsnprintf1.c: New file.
54418         * tests/unistdio/test-u8-vsprintf1.c: New file.
54419         * tests/unistdio/test-u16-asnprintf1.c: New file.
54420         * tests/unistdio/test-u16-asnprintf1.h: New file.
54421         * tests/unistdio/test-u16-printf1.h: New file.
54422         * tests/unistdio/test-u16-vasnprintf1.c: New file.
54423         * tests/unistdio/test-u16-vasnprintf2.c: New file.
54424         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
54425         * tests/unistdio/test-u16-vasnprintf3.c: New file.
54426         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
54427         * tests/unistdio/test-u16-vasprintf1.c: New file.
54428         * tests/unistdio/test-u16-vsnprintf1.c: New file.
54429         * tests/unistdio/test-u16-vsprintf1.c: New file.
54430         * tests/unistdio/test-u32-asnprintf1.c: New file.
54431         * tests/unistdio/test-u32-asnprintf1.h: New file.
54432         * tests/unistdio/test-u32-printf1.h: New file.
54433         * tests/unistdio/test-u32-vasnprintf1.c: New file.
54434         * tests/unistdio/test-u32-vasnprintf2.c: New file.
54435         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
54436         * tests/unistdio/test-u32-vasnprintf3.c: New file.
54437         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
54438         * tests/unistdio/test-u32-vasprintf1.c: New file.
54439         * tests/unistdio/test-u32-vsnprintf1.c: New file.
54440         * tests/unistdio/test-u32-vsprintf1.c: New file.
54441         * modules/unistdio/base: New file.
54442         * modules/unistdio/u-printf-args: New file.
54443         * modules/unistdio/ulc-asnprintf: New file.
54444         * modules/unistdio/ulc-asprintf: New file.
54445         * modules/unistdio/ulc-fprintf: New file.
54446         * modules/unistdio/ulc-printf-parse: New file.
54447         * modules/unistdio/ulc-snprintf: New file.
54448         * modules/unistdio/ulc-sprintf: New file.
54449         * modules/unistdio/ulc-vasnprintf: New file.
54450         * modules/unistdio/ulc-vasprintf: New file.
54451         * modules/unistdio/ulc-vfprintf: New file.
54452         * modules/unistdio/ulc-vsnprintf: New file.
54453         * modules/unistdio/ulc-vsprintf: New file.
54454         * modules/unistdio/u8-asnprintf: New file.
54455         * modules/unistdio/u8-asprintf: New file.
54456         * modules/unistdio/u8-printf-parse: New file.
54457         * modules/unistdio/u8-snprintf: New file.
54458         * modules/unistdio/u8-sprintf: New file.
54459         * modules/unistdio/u8-vasnprintf: New file.
54460         * modules/unistdio/u8-vasprintf: New file.
54461         * modules/unistdio/u8-vsnprintf: New file.
54462         * modules/unistdio/u8-vsprintf: New file.
54463         * modules/unistdio/u8-u8-asnprintf: New file.
54464         * modules/unistdio/u8-u8-asprintf: New file.
54465         * modules/unistdio/u8-u8-snprintf: New file.
54466         * modules/unistdio/u8-u8-sprintf: New file.
54467         * modules/unistdio/u8-u8-vasnprintf: New file.
54468         * modules/unistdio/u8-u8-vasprintf: New file.
54469         * modules/unistdio/u8-u8-vsnprintf: New file.
54470         * modules/unistdio/u8-u8-vsprintf: New file.
54471         * modules/unistdio/u16-asnprintf: New file.
54472         * modules/unistdio/u16-asprintf: New file.
54473         * modules/unistdio/u16-printf-parse: New file.
54474         * modules/unistdio/u16-snprintf: New file.
54475         * modules/unistdio/u16-sprintf: New file.
54476         * modules/unistdio/u16-vasnprintf: New file.
54477         * modules/unistdio/u16-vasprintf: New file.
54478         * modules/unistdio/u16-vsnprintf: New file.
54479         * modules/unistdio/u16-vsprintf: New file.
54480         * modules/unistdio/u16-u16-asnprintf: New file.
54481         * modules/unistdio/u16-u16-asprintf: New file.
54482         * modules/unistdio/u16-u16-snprintf: New file.
54483         * modules/unistdio/u16-u16-sprintf: New file.
54484         * modules/unistdio/u16-u16-vasnprintf: New file.
54485         * modules/unistdio/u16-u16-vasprintf: New file.
54486         * modules/unistdio/u16-u16-vsnprintf: New file.
54487         * modules/unistdio/u16-u16-vsprintf: New file.
54488         * modules/unistdio/u32-asnprintf: New file.
54489         * modules/unistdio/u32-asprintf: New file.
54490         * modules/unistdio/u32-printf-parse: New file.
54491         * modules/unistdio/u32-snprintf: New file.
54492         * modules/unistdio/u32-sprintf: New file.
54493         * modules/unistdio/u32-vasnprintf: New file.
54494         * modules/unistdio/u32-vasprintf: New file.
54495         * modules/unistdio/u32-vsnprintf: New file.
54496         * modules/unistdio/u32-vsprintf: New file.
54497         * modules/unistdio/u32-u32-asnprintf: New file.
54498         * modules/unistdio/u32-u32-asprintf: New file.
54499         * modules/unistdio/u32-u32-snprintf: New file.
54500         * modules/unistdio/u32-u32-sprintf: New file.
54501         * modules/unistdio/u32-u32-vasnprintf: New file.
54502         * modules/unistdio/u32-u32-vasprintf: New file.
54503         * modules/unistdio/u32-u32-vsnprintf: New file.
54504         * modules/unistdio/u32-u32-vsprintf: New file.
54505         * modules/unistdio/ulc-asnprintf-tests: New file.
54506         * modules/unistdio/ulc-vasnprintf-tests: New file.
54507         * modules/unistdio/ulc-vasprintf-tests: New file.
54508         * modules/unistdio/ulc-vsnprintf-tests: New file.
54509         * modules/unistdio/ulc-vsprintf-tests: New file.
54510         * modules/unistdio/u8-asnprintf-tests: New file.
54511         * modules/unistdio/u8-vasnprintf-tests: New file.
54512         * modules/unistdio/u8-vasprintf-tests: New file.
54513         * modules/unistdio/u8-vsnprintf-tests: New file.
54514         * modules/unistdio/u8-vsprintf-tests: New file.
54515         * modules/unistdio/u16-asnprintf-tests: New file.
54516         * modules/unistdio/u16-vasnprintf-tests: New file.
54517         * modules/unistdio/u16-vasprintf-tests: New file.
54518         * modules/unistdio/u16-vsnprintf-tests: New file.
54519         * modules/unistdio/u16-vsprintf-tests: New file.
54520         * modules/unistdio/u32-asnprintf-tests: New file.
54521         * modules/unistdio/u32-vasnprintf-tests: New file.
54522         * modules/unistdio/u32-vasprintf-tests: New file.
54523         * modules/unistdio/u32-vsnprintf-tests: New file.
54524         * modules/unistdio/u32-vsprintf-tests: New file.
54525         * MODULES.html.sh (Unicode string functions): Add the new modules.
54526
54527 2007-07-01  Bruno Haible  <bruno@clisp.org>
54528
54529         * lib/sprintf.c (sprintf): Limit the available length estimation,
54530         to avoid address wraparound.
54531         * lib/vsprintf.c (vsprintf): Likewise.
54532         * modules/sprintf-posix (Dependencies): Add stdint.
54533         * modules/vsprintf-posix (Dependencies): Likewise.
54534
54535 2007-07-01  Bruno Haible  <bruno@clisp.org>
54536
54537         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
54538         Windows PATH as well. Conservative double-quoting. Comments.
54539
54540 2007-07-01  Bruno Haible  <bruno@clisp.org>
54541             Eric Blake  <ebb9@byu.net>
54542             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54543
54544         * gnulib-tool (self_abspathname): Fix algorithm to cope with
54545         empty components in $PATH, denoting '.'.
54546
54547 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54548
54549         * gnulib-tool: Fix indentation.
54550         (func_create_megatestdir): Likewise.
54551         Report by Bruno Haible.
54552
54553 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54554
54555         Sync from Automake.
54556         * build-aux/gnupload: Fix shell portability issues with for loops.
54557         Report by Karl Berry.
54558
54559 2007-06-29  Simon Josefsson  <simon@josefsson.org>
54560
54561         * build-aux/maint.mk (POURL): Use translationproject.org.
54562
54563 2007-06-27  Simon Josefsson  <simon@josefsson.org>
54564             Bruno Haible  <bruno@clisp.org>
54565
54566         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
54567         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
54568         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
54569         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
54570         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
54571
54572 2007-06-27  Bruno Haible  <bruno@clisp.org>
54573
54574         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
54575         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
54576
54577 2007-06-26  Karl Berry  <karl@gnu.org>
54578
54579         * MODULES.html.sh: remove xreadlink-with-size.
54580
54581 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
54582
54583         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
54584         method that I hope also handles the double-include problem noted
54585         by Bruno Haible in
54586         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
54587
54588 2007-06-23  Bruno Haible  <bruno@clisp.org>
54589
54590         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
54591         Don't let the 'mostlyclean' target fail if the last subdirectory could
54592         not be removed.
54593         Reported by Karl Berry.
54594
54595 2007-06-23  Bruno Haible  <bruno@clisp.org>
54596
54597         * gnulib-tool (echo): Add a speedier workaround for ksh.
54598         * tests/test-echo.sh: Likewise.
54599
54600 2007-06-23  Bruno Haible  <bruno@clisp.org>
54601
54602         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
54603         * tests/test-echo.sh: Likewise.
54604
54605 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54606
54607         * gnulib-tool (IFS): Initialize early, so we don't set it to
54608         empty later.
54609         (self_abspathname): Rewrite algorithm to set it, reindent.
54610         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
54611         (func_create_megatestdir): Merge some sed scripts.
54612
54613 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
54614
54615         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
54616         exposed by Sun Studio 11 cc on Solaris 8.
54617
54618 2007-06-22  Bruno Haible  <bruno@clisp.org>
54619
54620         * gnulib-tool (echo): Ensure the echo primitive does not interpret
54621         backslashes.
54622         * tests/test-echo.sh: New file.
54623
54624 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54625
54626         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
54627         simplify `sed_replace_build_aux' scripts, they are portable but
54628         echoing them with `echo' is not.
54629         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
54630
54631 2007-06-21  Karl Berry  <karl@gnu.org>
54632
54633         * config/srclist.txt: guess we can't handle the licenses via
54634         srclist at the moment.
54635
54636 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
54637
54638         * MODULES.html.sh: Add include_next.
54639         * modules/include_next: New file.
54640
54641 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
54642
54643         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
54644         INCLUDE_NEXT.
54645         (gl_CHECK_NEXT_HEADERS): New macro.
54646         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
54647         the obsolescent gl_ABSOLUTE_HEADER.
54648         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
54649         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
54650         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
54651         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
54652         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
54653         * m4/math_h.m4 (gl_MATH_H): Likewise.
54654         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
54655         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
54656         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
54657         * m4/stdint.m4 (gl_STDINT_H): Likewise.
54658         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
54659         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
54660         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
54661         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
54662         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
54663         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
54664         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
54665         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
54666         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
54667         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
54668         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
54669         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
54670         * m4/inttypes.m4 (gl_INTTYPES_H): Define
54671         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
54672         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
54673         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
54674         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
54675         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
54676         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
54677         * lib/float_.h: Likewise.
54678         * lib/inttypes_.h: Likewise.
54679         * lib/math_.h: Likewise.
54680         * lib/search_.h: Likewise.
54681         * lib/signal_.h: Likewise.
54682         * lib/stdint_.h: Likewise.
54683         * lib/stdio_.h: Likewise.
54684         * lib/stdlib_.h: Likewise.
54685         * lib/string_.h: Likewise.
54686         * lib/sys_stat_.h: Likewise.
54687         * lib/sys_time_.h: Likewise.
54688         * lib/time_.h: Likewise.
54689         * lib/unistd_.h: Likewise.
54690         * lib/wchar_.h: Likewise.
54691         * lib/wctype_.h: Likewise.
54692         * lib/dirent_.h: Likewise.
54693         * lib/iconv_.h: Likewise.
54694         * lib/locale_.h: Likewise.
54695         * lib/netinet_in_.h: Likewise.
54696         * lib/sys_select_.h: Likewise.
54697         * lib/sys_socket_.h: Likewise.
54698         * lib/sysexits_.h: Likewise.
54699         * modules/fcntl (Depends-on): Depend on include_next, not
54700         absolute_header.
54701         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
54702         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
54703         * modules/fchdir: Likewise.
54704         * modules/float: Likewise.
54705         * modules/iconv_open: Likewise.
54706         * modules/inttypes: Likewise.
54707         * modules/locale: Likewise.
54708         * modules/math: Likewise.
54709         * modules/netinet_in: Likewise.
54710         * modules/search: Likewise.
54711         * modules/signal: Likewise.
54712         * modules/stdint: Likewise.
54713         * modules/stdio: Likewise.
54714         * modules/stdlib: Likewise.
54715         * modules/string: Likewise.
54716         * modules/sys_select: Likewise.
54717         * modules/sys_socket: Likewise.
54718         * modules/sys_stat: Likewise.
54719         * modules/sys_time: Likewise.
54720         * modules/sysexits: Likewise.
54721         * modules/time: Likewise.
54722         * modules/unistd: Likewise.
54723         * modules/wchar: Likewise.
54724         * modules/wctype: Likewise.
54725         * modules/sys_stat: Change maintainer to "all".
54726         * modules/unistd: Likewise.
54727
54728 2007-06-20  Karl Berry  <karl@gnu.org>
54729
54730         * config/srclist.txt: track www changes in license files.
54731
54732 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
54733
54734         * build-aux/bootstrap: Remove stray dot.
54735         Make sure build_aux settings are honored when linking
54736         gnulib_extra_files.
54737
54738 2007-06-19  Eric Blake  <ebb9@byu.net>
54739
54740         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
54741         Allow compilation on cygwin.
54742
54743 2007-06-19  Jim Meyering  <jim@meyering.net>
54744
54745         xreadlink-with-size: Remove module.  No longer used.
54746         Ex-callers now use xreadlink or mreadlink-with-size.
54747         * modules/xreadlink-with-size: Remove module.
54748         * lib/xreadlink-with-size.c: Remove file.
54749         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
54750         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
54751         just before the function definition *is* accurate.
54752
54753         Eliminate one way canonicalize_filename_mode could exit.
54754         * lib/canonicalize.c (canonicalize_filename_mode):
54755         Use mreadlink_with_size, not xreadlink_with_size.
54756
54757 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
54758
54759         Detect porting problems to FreeBSD/arm, which has time_t wider than
54760         long int.  Original problem reported for GNU diff by Xin Li in
54761         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
54762         * modules/getdate (Depends-on): Add intprops, verify.
54763         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
54764         is an integer type no wider than long int.
54765
54766 2007-06-18  Jim Meyering  <jim@meyering.net>
54767
54768         New module: mreadlink-with-size.
54769         * MODULES.html.sh: Add mreadlink-with-size.
54770         * modules/mreadlink-with-size: New module
54771         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
54772         not xreadlink-with-size.
54773         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
54774
54775 2007-06-16  Bruno Haible  <bruno@clisp.org>
54776
54777         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
54778         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
54779         Reported by Gary V. Vaughan <gary@gnu.org>.
54780
54781 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
54782
54783         Revamp lchown so that it lives in unistd.h where it belongs.
54784         * lib/lchown.h: Remove.
54785         * lib/dirchownmod.c: Don't include lib/lchown.h.
54786         * lib/fchownat.c: Likewise.
54787         * lib/openat.c: Likewise.
54788         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
54789         does not follow symlinks.
54790         (EOPNOTSUPP): Define if not defined.
54791         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
54792         is defined to 0.
54793         (lchown): New decl.
54794         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
54795         Do not check for lchown decl.
54796         Set REPLACE_LCHOWN.
54797         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
54798         REPLACE_LCHOWN.
54799         * modules/chown: Make it clear it follows symlinks.
54800         * modules/lchown: Make it clear it doesn't follow symlinks.
54801         (Files): Remove lib/lchown.h
54802         (Depends-on): Add unistd.
54803         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
54804         (Include): Include <unistd.h>, not "lchown.h".
54805         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
54806         REPLACE_LCHOWN.
54807
54808 2007-06-15  Jim Meyering  <jim@meyering.net>
54809
54810         Change license (GPL to LGPL) of fsusage and dependents.
54811         * modules/fsusage (License): Change to LGPL.
54812         * modules/full-read (License): Likewise.
54813         * modules/full-write (License): Likewise.
54814         * modules/safe-read (License): Likewise.
54815         * modules/safe-write (License): Likewise.
54816
54817 2007-06-14  Ben Pfaff  <blp@gnu.org>
54818
54819         Missing part of allocsa -> malloca transition.
54820         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
54821         gl_MALLOCA.
54822
54823 2007-06-12  Bruno Haible  <bruno@clisp.org>
54824
54825         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
54826         to ia64, x86_64, i386.
54827         Reported by Eric Blake.
54828
54829 2007-06-12  Bruno Haible  <bruno@clisp.org>
54830
54831         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
54832         cross-compiling to x86_64.
54833
54834 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
54835
54836         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
54837         glitch reported by Ralf Wildenhues in
54838         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
54839
54840         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
54841         Vin Shelton.
54842
54843 2007-06-11  Bruno Haible  <bruno@clisp.org>
54844
54845         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
54846         replacement string.
54847         Reported by Eric Blake.
54848
54849 2007-06-10  Bruno Haible  <bruno@clisp.org>
54850
54851         Prepare vasnprintf code for use with Unicode strings.
54852         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
54853         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
54854         TYPE_U32_STRING.
54855         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
54856         a_u32_string variants.
54857         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
54858         * lib/printf-args.c: Don't include config.h and the specification
54859         header if PRINTF_FETCHARGS is already defined.
54860         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
54861         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
54862         TYPE_U16_STRING, TYPE_U32_STRING.
54863         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
54864         u16_directive, u16_directives, u32_directive, u32_directives): New
54865         types.
54866         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
54867         New declarations.
54868         * lib/printf-parse.c: Don't include config.h and the specification
54869         header if PRINTF_PARSE is already defined. Eliminate the set of
54870         parameters for WIDE_CHAR_VERSION; the user of this file must provide
54871         them now. Include c-ctype.h.
54872         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
54873         directive and CHAR_T_ONLY_ASCII.
54874         * lib/vasnprintf.c: Don't include config.h and the specification header
54875         if VASNPRINTF is already defined.
54876         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
54877         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
54878         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
54879         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
54880         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
54881         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
54882         code accordingly.
54883         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
54884         pad_ourselves also in this case, with the 'c' and 's' directives, and
54885         with a different notion of "width".
54886         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
54887
54888 2007-06-10  Bruno Haible  <bruno@clisp.org>
54889
54890         * modules/unistr/u32-mbsnlen: New file.
54891         * lib/unistr/u32-mbsnlen.c: New file.
54892
54893         * modules/unistr/u16-mbsnlen: New file.
54894         * lib/unistr/u16-mbsnlen.c: New file.
54895
54896         * modules/unistr/u8-mbsnlen: New file.
54897         * lib/unistr/u8-mbsnlen.c: New file.
54898
54899         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
54900         declarations.
54901
54902 2007-06-10  Bruno Haible  <bruno@clisp.org>
54903
54904         * lib/string_.h (mbsnlen): New declaration.
54905         * lib/mbsnlen.c: New file.
54906         * m4/mbsnlen.m4: New file.
54907         * modules/mbsnlen: New file.
54908         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
54909         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
54910         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
54911
54912 2007-06-10  Bruno Haible  <bruno@clisp.org>
54913
54914         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
54915
54916 2007-06-10  Bruno Haible  <bruno@clisp.org>
54917
54918         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
54919         * lib/mbuiter.h: Likewise.
54920
54921 2007-06-10  Bruno Haible  <bruno@clisp.org>
54922
54923         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
54924         declaration.
54925
54926 2007-06-10  Karl Berry  <karl@gnu.org>
54927
54928         * config/srclist.txt: remove gettext entries, Bruno prefers
54929         to update individually.
54930
54931 2007-06-10  Bruno Haible  <bruno@clisp.org>
54932
54933         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
54934         'maxlen'. Ensure only length + width bytes are allocated, not
54935         length + 1 + width.
54936
54937 2007-06-09  Bruno Haible  <bruno@clisp.org>
54938
54939         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
54940         (CHAR_T): Remove macro.
54941         (VASNPRINTF): Update.
54942
54943 2007-06-09  Bruno Haible  <bruno@clisp.org>
54944
54945         * MODULES.html.sh (Unicode string functions): Add the new modules.
54946
54947         * modules/uniconv/u32-conv-to-enc: New file.
54948         * lib/uniconv/u32-conv-to-enc.c: New file.
54949         * modules/uniconv/u32-conv-to-enc-tests: New file.
54950         * tests/uniconv/test-u32-conv-to-enc.c: New file.
54951
54952         * modules/uniconv/u16-conv-to-enc: New file.
54953         * lib/uniconv/u16-conv-to-enc.c: New file.
54954         * lib/uniconv/u-conv-to-enc.h: New file.
54955         * modules/uniconv/u16-conv-to-enc-tests: New file.
54956         * tests/uniconv/test-u16-conv-to-enc.c: New file.
54957
54958         * modules/uniconv/u8-conv-to-enc: New file.
54959         * lib/uniconv/u8-conv-to-enc.c: New file.
54960         * modules/uniconv/u8-conv-to-enc-tests: New file.
54961         * tests/uniconv/test-u8-conv-to-enc.c: New file.
54962
54963         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
54964         u32_conv_to_encoding): New declarations.
54965
54966 2007-06-09  Bruno Haible  <bruno@clisp.org>
54967
54968         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
54969
54970 2007-06-09  Bruno Haible  <bruno@clisp.org>
54971
54972         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
54973         * modules/malloca: Renamed from modules/allocsa, updated.
54974         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
54975         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
54976         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
54977         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
54978         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
54979         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
54980         * modules/xmalloca: Renamed from modules/xallocsa, updated.
54981         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
54982         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
54983         * modules/c-strcasestr (Depends-on): Update.
54984         * lib/c-strcasestr.c: Update.
54985         * modules/c-strstr (Depends-on): Update.
54986         * lib/c-strstr.c: Update.
54987         * modules/canonicalize-lgpl (Depends-on): Update.
54988         * lib/canonicalize-lgpl.c: Update.
54989         * modules/clean-temp (Depends-on): Update.
54990         * lib/clean-temp.c: Update.
54991         * modules/csharpcomp (Depends-on): Update.
54992         * lib/csharpcomp.c: Update.
54993         * modules/csharpexec (Depends-on): Update.
54994         * lib/csharpexec.c: Update.
54995         * modules/javacomp (Depends-on): Update.
54996         * lib/javacomp.c: Update.
54997         * modules/javaexec (Depends-on): Update.
54998         * lib/javaexec.c: Update.
54999         * modules/mbscasestr (Depends-on): Update.
55000         * lib/mbscasestr.c: Update.
55001         * modules/mbsstr (Depends-on): Update.
55002         * lib/mbsstr.c: Update.
55003         * modules/setenv (Depends-on): Update.
55004         * lib/setenv.c: Update.
55005         * modules/strcasestr (Depends-on): Update.
55006         * lib/strcasestr.c: Update.
55007         * modules/striconveha (Depends-on): Update.
55008         * lib/striconveha.c: Update.
55009         * modules/relocatable-prog-wrapper (Files): Update.
55010         * lib/relocwrapper.c: Update.
55011         * build-aux/install-reloc: Update.
55012         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
55013
55014 2007-06-08  Bruno Haible  <bruno@clisp.org>
55015
55016         Port to uClibc.
55017         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
55018         * lib/fpurge.c (fpurge): Likewise.
55019         * lib/freading.c (freading): Likewise.
55020         * lib/fseeko.c (rpl_fseeko): Likewise.
55021         * lib/fseterr.c (fseterr): Likewise.
55022         * lib/fwriting.c (fwriting): Likewise.
55023         * tests/test-fflush.c (main): Avoid a failure on uClibc.
55024
55025 2007-06-08  Bruno Haible  <bruno@clisp.org>
55026
55027         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
55028         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
55029         * modules/gettext (Files): Add m4/intlmacosx.m4.
55030
55031 2007-06-07  Bruno Haible  <bruno@clisp.org>
55032
55033         * modules/localename-tests: New file.
55034         * tests/test-localename.c: New file.
55035
55036         New module 'localename'.
55037         * lib/localename.h: New file.
55038         * lib/localename.c: New file, from GNU gettext.
55039         * m4/localename.m4: New file.
55040         * modules/localename: New file.
55041
55042 2007-06-07  Bruno Haible  <bruno@clisp.org>
55043
55044         Work around the lack of <wchar.h> on some builds of uClibc.
55045         * doc/headers/wchar.texi: Update.
55046         * lib/wchar_.h: Include <wchar.h> only if it exists.
55047         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
55048         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
55049         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
55050         doesn't exist.
55051         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
55052         * modules/mbfile (Depends-on): Add wchar.
55053         * modules/mbiter (Depends-on): Likewise.
55054         * modules/mbuiter (Depends-on): Likewise.
55055         Reported by Simon Josefsson.
55056
55057 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
55058
55059         Work around problem reported by Steven M. Schweda in
55060         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
55061         Tru64 5.1B with the Compaq compiler environment installed declares
55062         an 'isblank' function but does not define it in the C library.
55063         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
55064         * lib/regex_internal.h (isblank): Likewise.
55065         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
55066         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
55067
55068 2007-06-05  Bruno Haible  <bruno@clisp.org>
55069
55070         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
55071         ia64.
55072         * modules/printf-safe: New file.
55073         * modules/fprintf-posix (Depends-on): Add printf-safe.
55074         * modules/printf-posix (Depends-on): Likewise.
55075         * modules/snprintf-posix (Depends-on): Likewise.
55076         * modules/sprintf-posix (Depends-on): Likewise.
55077         * modules/vasnprintf-posix (Depends-on): Likewise.
55078         * modules/vasprintf-posix (Depends-on): Likewise.
55079         * modules/vfprintf-posix (Depends-on): Likewise.
55080         * modules/vprintf-posix (Depends-on): Likewise.
55081         * modules/vsnprintf-posix (Depends-on): Likewise.
55082         * modules/vsprintf-posix (Depends-on): Likewise.
55083         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
55084         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
55085         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
55086         "no" on i386, x86_64, ia64.
55087         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
55088         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
55089         on i386, x86_64, ia64.
55090         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
55091         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
55092         on i386, x86_64, ia64.
55093         * tests/test-vasnprintf-posix.c: Include float.h.
55094         (LDBL80_WORDS): New macro.
55095         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
55096         on i386, x86_64, ia64.
55097         * tests/test-vasprintf-posix.c: Include float.h.
55098         (LDBL80_WORDS): New macro.
55099         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
55100         on i386, x86_64, ia64.
55101         * tests/test-snprintf-posix.c: Include float.h.
55102         * tests/test-sprintf-posix.c: Likewise.
55103         * tests/test-vsnprintf-posix.c: Likewise.
55104         * tests/test-vsprintf-posix.c: Likewise.
55105
55106 2007-06-05  Bruno Haible  <bruno@clisp.org>
55107
55108         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
55109         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
55110         non-IEEE numbers on i386, x86_64, ia64.
55111         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
55112         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
55113         * tests/test-isnanl.h: Include float.h.
55114         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
55115
55116 2007-06-05  Bruno Haible  <bruno@clisp.org>
55117
55118         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
55119         also the %a / %A. Handle the %a / %A code before this extra handling.
55120
55121 2007-06-05  Bruno Haible  <bruno@clisp.org>
55122
55123         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
55124         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
55125
55126 2007-06-05  Bruno Haible  <bruno@clisp.org>
55127
55128         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
55129         typo in variable name.
55130
55131 2007-06-05  Eric Blake  <ebb9@byu.net>
55132
55133         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
55134         Reported by Simon Josefsson.
55135
55136 2007-06-04  Bruno Haible  <bruno@clisp.org>
55137
55138         Avoid test failures on some PowerPC platforms.
55139         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
55140         Define differently for PowerPC.
55141         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
55142         Reported by Gary V. Vaughan <gary@gnu.org>.
55143
55144 2007-06-02  Bruno Haible  <bruno@clisp.org>
55145
55146         Fix test-stdint failure on FreeBSD/ia64.
55147         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
55148         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
55149         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
55150         * doc/headers/stdint.texi: Update.
55151
55152 2007-06-01  Bruno Haible  <bruno@clisp.org>
55153
55154         * tests/test-binary-io.c (main): Pass a third argument to open().
55155         Reported by Gary V. Vaughan <gary@gnu.org>.
55156
55157 2007-06-01  Bruno Haible  <bruno@clisp.org>
55158
55159         * doc/functions/frexpl.texi: Update for mingw.
55160
55161 2007-06-01  Bruno Haible  <bruno@clisp.org>
55162
55163         * tests/test-lseek.c (main): Disable test of errno for invalid third
55164         argument.
55165         * doc/functions/lseek.texi: Update.
55166         Reported by Gary V. Vaughan <gary@gnu.org>.
55167
55168 2007-05-28  Bruno Haible  <bruno@clisp.org>
55169
55170         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
55171
55172 2007-05-31  Eric Blake  <ebb9@byu.net>
55173
55174         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
55175         cross compiling.
55176
55177 2007-05-30  Eric Blake  <ebb9@byu.net>
55178         and Bruno Haible  <bruno@clisp.org>
55179
55180         Work around mingw test failures exposed by m4-1.4.9b.
55181         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
55182         * tests/test-unistd.c: Disable uid_t and git_t tests for the
55183         moment.
55184
55185 2007-05-30  Bruno Haible  <bruno@clisp.org>
55186
55187         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
55188         assuming that they are closed. Needed on HP-UX 11.
55189
55190 2007-05-29  Bruno Haible  <bruno@clisp.org>
55191
55192         Fix a problem with #include_next.
55193         * lib/dirent_.h: Split the double-inclusion guard.
55194         * lib/fcntl_.h: Likewise.
55195         * lib/float_.h: Likewise.
55196         * lib/iconv_.h: Likewise.
55197         * lib/inttypes_.h: Likewise.
55198         * lib/locale_.h: Likewise.
55199         * lib/math_.h: Likewise.
55200         * lib/netinet_in_.h: Likewise.
55201         * lib/search_.h: Likewise.
55202         * lib/signal_.h: Likewise.
55203         * lib/stdint_.h: Likewise.
55204         * lib/stdio_.h: Likewise.
55205         * lib/stdlib_.h: Likewise.
55206         * lib/string_.h: Likewise.
55207         * lib/sys_select_.h: Likewise.
55208         * lib/sys_socket_.h: Likewise.
55209         * lib/sys_stat_.h: Likewise.
55210         * lib/sys_time_.h: Likewise.
55211         * lib/sysexits_.h: Likewise.
55212         * lib/time_.h: Likewise.
55213         * lib/unistd_.h: Likewise.
55214         * lib/wchar_.h: Likewise.
55215         * lib/wctype_.h: Likewise.
55216
55217 2007-05-29  Bruno Haible  <bruno@clisp.org>
55218
55219         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
55220         for the moment.
55221
55222 2007-05-29  Bruno Haible  <bruno@clisp.org>
55223
55224         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
55225         invocation.
55226         Reported by Eric Blake.
55227
55228 2007-05-29  Bruno Haible  <bruno@clisp.org>
55229
55230         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
55231         compiling case.
55232
55233 2007-05-29  Eric Blake  <ebb9@byu.net>
55234             Bruno Haible  <bruno@clisp.org>
55235
55236         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
55237         cross compiles.
55238
55239 2007-05-28  Eric Blake  <ebb9@byu.net>
55240
55241         * modules/closein-tests (test_closein_LDADD): Support test on
55242         cygwin with libtool.
55243
55244 2007-05-28  Bruno Haible  <bruno@clisp.org>
55245
55246         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
55247         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
55248         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
55249         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
55250         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
55251         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
55252         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
55253         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
55254         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
55255
55256 2007-05-28  Eric Blake  <ebb9@byu.net>
55257
55258         Unconditionally include <config.h> in unit tests.
55259         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
55260         * tests/test-allocsa.c, tests/test-arcfour.c,
55261         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
55262         tests/test-array_list.c, tests/test-array_oset.c,
55263         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
55264         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
55265         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
55266         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
55267         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
55268         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
55269         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
55270         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
55271         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
55272         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
55273         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
55274         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
55275         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
55276         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
55277         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
55278         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
55279         test-md5.c, test-memmem.c, test-printf-posix.c,
55280         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
55281         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
55282         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
55283         test-strcasestr.c, test-striconv.c, test-striconveh.c,
55284         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
55285         test-vasnprintf-posix2.c, test-vasnprintf.c,
55286         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
55287         test-vfprintf-posix.c, test-vprintf-posix.c,
55288         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
55289         test-xvasprintf.c: Likewise.
55290
55291 2007-05-28  Bruno Haible  <bruno@clisp.org>
55292
55293         * gnulib-tool (func_import): Remember the --with-tests command-line
55294         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
55295         Reported by Eric Blake.
55296
55297 2007-05-28  Bruno Haible  <bruno@clisp.org>
55298
55299         * modules/ftell-tests: New file.
55300         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
55301         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
55302
55303         * lib/ftell.c: New file.
55304         * modules/ftell: New file.
55305         * m4/ftell.m4: New file.
55306         * doc/functions/ftell.texi: Update.
55307         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
55308         REPLACE_FTELL.
55309         * lib/stdio_.h (rpl_ftell): New declaration.
55310         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
55311         REPLACE_FTELL.
55312
55313 2007-05-28  Eric Blake  <ebb9@byu.net>
55314
55315         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
55316
55317 2007-05-28  Bruno Haible  <bruno@clisp.org>
55318
55319         * modules/fseek-tests: New file.
55320         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
55321         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
55322
55323         * lib/fseek.c: New file.
55324         * modules/fseek: New file.
55325         * m4/fseek.m4: New file.
55326         * doc/functions/fseek.texi: Update.
55327         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
55328         REPLACE_FSEEK.
55329         * lib/stdio_.h (rpl_fseek): New declaration.
55330         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
55331         REPLACE_FSEEK.
55332
55333 2007-05-28  Bruno Haible  <bruno@clisp.org>
55334
55335         * lib/stdio_.h (fflush): More comments.
55336
55337 2007-05-28  Bruno Haible  <bruno@clisp.org>
55338
55339         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
55340         runtime test.
55341
55342 2007-05-28  Eric Blake  <ebb9@byu.net>
55343
55344         Improve lseek module.
55345         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
55346         * lib/unistd_.h (lseek): Scale back link warning message.
55347         * tests/test-lseek.c: Beef up test.
55348         * tests/test-lseek.sh: Exercise more facets of lseek.
55349         Reported by Bruno Haible.
55350
55351 2007-05-28  Bruno Haible  <bruno@clisp.org>
55352
55353         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
55354         to define.
55355
55356 2007-05-27  Bruno Haible  <bruno@clisp.org>
55357
55358         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
55359
55360 2007-05-27  Bruno Haible  <bruno@clisp.org>
55361
55362         * modules/openmp: New file.
55363         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
55364         Noah Misch.
55365
55366 2007-05-26  Bruno Haible  <bruno@clisp.org>
55367
55368         * modules/chdir-long (Depends-on): Add fchdir.
55369         * modules/chdir-safer (Depends-on): Likewise.
55370         * modules/fts (Depends-on): Likewise.
55371         * modules/fts-lgpl (Depends-on): Likewise.
55372         * modules/openat (Depends-on): Likewise.
55373         * modules/savewd (Depends-on): Likewise.
55374
55375 2007-05-24  Eric Blake  <ebb9@byu.net>
55376
55377         Fix lseek on mingw.
55378         * modules/lseek: New module.
55379         * m4/lseek.m4: New file.
55380         * lib/lseek.c: New file.
55381         * modules/lseek-tests: New file.
55382         * tests/test-lseek.c: New file.
55383         * tests/test-lseek.sh: New file.
55384         * MODULES.html.sh: Document lseek module.
55385         * modules/fflush (Depends-on): Add lseek, fseeko.
55386         * modules/fseeko (Depends-on): Likewise.
55387         * modules/ftello (Depends-on): Likewise.
55388         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
55389         broken.
55390         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
55391         broken.
55392         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
55393         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
55394         * lib/ftello.c (rpl_ftello): Likewise.
55395         * tests/test-fseeko.c (main): Test this.
55396         * tests/test-fseeko.sh: Likewise.
55397         * tests/test-ftello.c (main): Likewise.
55398         * tests/test-ftello.sh: Likewise.
55399         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
55400         implies replacing fseek.
55401         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
55402         HAVE_FTELLO.
55403         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
55404         * modules/unistd (Makefile.am): Likewise.
55405         * lib/unistd_.h (lseek): Declare a replacement.
55406         * doc/functions/lseek.texi (lseek): Document this fix.
55407         * doc/functions/fseek.texi (fseek): Likewise.
55408         * doc/functions/ftell.texi (ftell): Likewise.
55409
55410 2007-05-24  Bruno Haible  <bruno@clisp.org>
55411
55412         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
55413         in the printed representation of a NaN.
55414         * tests/test-vasprintf-posix.c (test_function): Likewise.
55415         * tests/test-snprintf-posix.h (test_function): Likewise.
55416         * tests/test-sprintf-posix.h (test_function): Likewise.
55417         Reported by Eric Blake.
55418
55419 2007-05-23  Eric Blake  <ebb9@byu.net>
55420
55421         Fix fseeko/ftello on cygwin 1.5.24.
55422         * doc/functions/fseeko.texi (fseeko): Document the fix.
55423         * doc/functions/ftello.texi (ftello): Document the fix.
55424         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
55425         * doc/functions/stdout.text (stdout): New file.
55426         * doc/functions/stderr.text (stderr): New file.
55427         * doc/gnulib.texi (Function Substitutes): Use new files.
55428         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
55429         prior to 1.7.0.
55430         * tests/test-ftello.c (main): Likewise for ftello.
55431         * tests/test-fseeko.sh: New file.
55432         * tests/test-ftello.sh: New file.
55433         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
55434         with seekable stdin.
55435         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
55436         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
55437         (gl_REPLACE_FSEEKO): New macro.
55438         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
55439         * modules/fseeko (Files): Distribute fseeko.c.
55440         * modules/ftello (Files): Distribute ftello.c.
55441         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
55442         mode.
55443         * lib/ftello.c (rpl_ftello): New file.
55444         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
55445         fseeko, ftello.
55446         (gl_STDIN_LARGE_OFFSET): New macro.
55447         * modules/stdio (Makefile.am): Perform the replacement.
55448         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
55449
55450 2007-05-23  Bruno Haible  <bruno@clisp.org>
55451
55452         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
55453         GNULIB_POSIXCHECK is defined.
55454
55455 2007-05-21  Bruno Haible  <bruno@clisp.org>
55456
55457         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
55458         Check also the output for NaN arguments. When cross-compiling, guess
55459         no on IRIX.
55460         * lib/vasnprintf.c: Update comments.
55461         * tests/test-vasnprintf-posix.c (strisnan): New function.
55462         (test_function): Use it.
55463         * tests/test-vasprintf-posix.c (strisnan): New function.
55464         (test_function): Use it.
55465         * tests/test-snprintf-posix.h (strisnan): New function.
55466         (test_function): Use it.
55467         * tests/test-sprintf-posix.h (strisnan): New function.
55468         (test_function): Use it.
55469         Reported by Eric Blake.
55470
55471 2007-05-20  Bruno Haible  <bruno@clisp.org>
55472
55473         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
55474         numbers that fails on BeOS.
55475         * doc/functions/frexpl.texi: Update.
55476
55477 2007-05-20  Jim Meyering  <jim@meyering.net>
55478
55479         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
55480         forced upon us by glibc-2.6.
55481
55482 2007-05-20  Bruno Haible  <bruno@clisp.org>
55483
55484         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
55485         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
55486         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
55487         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
55488         NEED_PRINTF_INFINITE.
55489         (is_infinitel): New function.
55490         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
55491         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
55492         gl_PREREQ_VASNPRINTF_INFINITE.
55493         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
55494         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55495         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
55496         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
55497         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
55498         gl_PREREQ_VASNPRINTF_INFINITE.
55499         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55500         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55501         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55502         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55503         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55504         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55505         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55506         * doc/functions/fprintf.texi: Update.
55507         * doc/functions/printf.texi: Update.
55508         * doc/functions/snprintf.texi: Update.
55509         * doc/functions/sprintf.texi: Update.
55510         * doc/functions/vfprintf.texi: Update.
55511         * doc/functions/vprintf.texi: Update.
55512         * doc/functions/vsnprintf.texi: Update.
55513         * doc/functions/vsprintf.texi: Update.
55514
55515 2007-05-20  Bruno Haible  <bruno@clisp.org>
55516
55517         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
55518         was not found in libc.
55519         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
55520
55521 2007-05-20  Bruno Haible  <bruno@clisp.org>
55522
55523         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
55524         printed as "-nan" instead of "nan".
55525         * tests/test-vasprintf-posix.c (test_function): Likewise.
55526         * tests/test-snprintf-posix.h (test_function): Likewise.
55527         * tests/test-sprintf-posix.h (test_function): Likewise.
55528         Needed for HP-UX 11.
55529
55530 2007-05-20  Jim Meyering  <jim@meyering.net>
55531
55532         Fix buggy test for the fchownat-deref bug.
55533         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
55534         symlink required for the run-test.  Without it, this test would
55535         always declare that fchownat doesn't work, and client code would
55536         unnecessarily use the replacement function with fixed libc.
55537         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
55538         Reported by Greg Schafer.
55539
55540 2007-05-19  Bruno Haible  <bruno@clisp.org>
55541
55542         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
55543         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
55544         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
55545         Needed for IRIX 6.5 and Solaris 2.5.1.
55546
55547 2007-05-19  Bruno Haible  <bruno@clisp.org>
55548
55549         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
55550         (test_function): Skip tests involving -0.0 on platforms where
55551         -0.0 = 0.0.
55552         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
55553         (test_function): Skip tests involving -0.0 on platforms where
55554         -0.0 = 0.0.
55555         * tests/test-snprintf-posix.h (have_minus_zero): New function.
55556         (test_function): Skip tests involving -0.0 on platforms where
55557         -0.0 = 0.0.
55558         * tests/test-sprintf-posix.h (have_minus_zero): New function.
55559         (test_function): Skip tests involving -0.0 on platforms where
55560         -0.0 = 0.0.
55561         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
55562         tests.
55563         * tests/test-printf-posix.h (test_function): Likewise.
55564         * tests/test-printf-posix.output: Remove all -0.0 related results.
55565         Needed for IRIX 6.5.
55566
55567 2007-05-19  Bruno Haible  <bruno@clisp.org>
55568
55569         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
55570         printed as "nan0x7fffffff" instead of "nan".
55571         * tests/test-vasprintf-posix.c (test_function): Likewise.
55572         * tests/test-snprintf-posix.h (test_function): Likewise.
55573         * tests/test-sprintf-posix.h (test_function): Likewise.
55574         * tests/test-fprintf-posix.h (NaN): Remove macro.
55575         (test_function): Remove all NaN related tests.
55576         * tests/test-printf-posix.h (NaN): Remove macro.
55577         (test_function): Remove all NaN related tests.
55578         * tests/test-printf-posix.output: Remove all NaN related results.
55579         Needed for IRIX 6.5.
55580
55581 2007-05-19  Bruno Haible  <bruno@clisp.org>
55582
55583         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
55584         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
55585
55586 2007-05-19  Bruno Haible  <bruno@clisp.org>
55587
55588         * lib/float_.h: New file.
55589         * m4/float_h.m4: New file.
55590         * modules/float: New file.
55591         * modules/isnanl (Dependencies): Add float.
55592         * modules/isnanl-nolibm (Dependencies): Likewise.
55593         * modules/mathl (Dependencies): Likewise.
55594         * modules/printf-frexpl (Dependencies): Likewise.
55595         * modules/signbit (Dependencies): Likewise.
55596         * modules/vasnprintf (Dependencies): Likewise.
55597         * doc/headers/float.texi: Update.
55598
55599 2007-05-19  Jim Meyering  <jim@meyering.net>
55600
55601         * lib/utimens.c (gl_futimens): Rename from futimens,
55602         now that glibc-2.6 declares futimens.
55603         * lib/utimens.h: Likewise.
55604
55605 2007-05-19  Bruno Haible  <bruno@clisp.org>
55606
55607         Avoid test failures on mingw.
55608         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
55609         * tests/test-printf-posix.sh: Likewise.
55610         * tests/test-vfprintf-posix.sh: Likewise.
55611         * tests/test-vprintf-posix.sh: Likewise.
55612
55613 2007-05-19  Bruno Haible  <bruno@clisp.org>
55614
55615         Fix *printf result for NaN, Inf, -0.0 on mingw.
55616         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
55617         * lib/vasnprintf.c: Include math.h and isnan.h.
55618         (is_infinite_or_zero): New function.
55619         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
55620         values in the %f, %F, %e, %E, %g, %G directives.
55621         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
55622         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55623         gl_PRINTF_INFINITE and test its result. Invoke
55624         gl_PREREQ_VASNPRINTF_INFINITE.
55625         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55626         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55627         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55628         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55629         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55630         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55631         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55632         * doc/functions/fprintf.texi: Update.
55633         * doc/functions/printf.texi: Update.
55634         * doc/functions/snprintf.texi: Update.
55635         * doc/functions/sprintf.texi: Update.
55636         * doc/functions/vfprintf.texi: Update.
55637         * doc/functions/vprintf.texi: Update.
55638         * doc/functions/vsnprintf.texi: Update.
55639         * doc/functions/vsprintf.texi: Update.
55640
55641 2007-05-19  Bruno Haible  <bruno@clisp.org>
55642
55643         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
55644         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
55645         Instead of multiplying with 10^k, set extra_zeroes to k.
55646         (scale10_round_long_double): Remove function.
55647
55648 2007-05-18  Bruno Haible  <bruno@clisp.org>
55649
55650         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
55651         introduced on 2007-05-06.
55652
55653 2007-05-18  Bruno Haible  <bruno@clisp.org>
55654
55655         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
55656         %g directives.
55657         * tests/test-vasprintf-posix.c (test_function): Likewise.
55658         * tests/test-snprintf-posix.h (test_function): Likewise.
55659         * tests/test-sprintf-posix.h (test_function): Likewise.
55660
55661 2007-05-18  Bruno Haible  <bruno@clisp.org>
55662
55663         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
55664         (strmatch): New function.
55665         (test_function): Test the %f directive on numbers of various exponents.
55666         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
55667         (strmatch): New function.
55668         (test_function): Test the %f directive on numbers of various exponents.
55669         * tests/test-snprintf-posix.h (strmatch): New function.
55670         (test_function): Test the %f directive on numbers of various exponents.
55671         * tests/test-sprintf-posix.h (strmatch): New function.
55672         (test_function): Test the %f directive on numbers of various exponents.
55673         * tests/test-snprintf-posix.c (SIZEOF): New macro.
55674         * tests/test-sprintf-posix.c (SIZEOF): New macro.
55675         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
55676         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
55677
55678 2007-05-18  Bruno Haible  <bruno@clisp.org>
55679
55680         Add support for 'long double' number output.
55681         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
55682         * lib/vasnprintf.c: Include math.h and float+.h.
55683         (mp_limb_t): New type.
55684         (GMP_LIMB_BITS): New macro.
55685         (mp_twolimb_t): New type.
55686         (GMP_TWOLIMB_BITS): New macro.
55687         (mpn_t): New type.
55688         (multiply, divide, convert_to_decimal, decode_long_double,
55689         scale10_round_long_double, scale10_round_decimal_long_double,
55690         floorlog10l): New functions.
55691         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
55692         for the %f, %F, %e, %E, %g, %G directives.
55693         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
55694         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55695         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
55696         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
55697         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55698         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55699         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55700         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55701         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55702         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55703         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55704         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
55705         * modules/snprintf-posix (Depends-on): Likewise.
55706         * modules/sprintf-posix (Depends-on): Likewise.
55707         * modules/vasnprintf-posix (Depends-on): Likewise.
55708         * modules/vasprintf-posix (Depends-on): Likewise.
55709         * modules/vfprintf-posix (Depends-on): Likewise.
55710         * modules/vsnprintf-posix (Depends-on): Likewise.
55711         * modules/vsprintf-posix (Depends-on): Likewise.
55712         * modules/vasnprintf (Files): Add lib/float+.h.
55713         * doc/functions/fprintf.texi: Update.
55714         * doc/functions/printf.texi: Update.
55715         * doc/functions/snprintf.texi: Update.
55716         * doc/functions/sprintf.texi: Update.
55717         * doc/functions/vfprintf.texi: Update.
55718         * doc/functions/vprintf.texi: Update.
55719         * doc/functions/vsnprintf.texi: Update.
55720         * doc/functions/vsprintf.texi: Update.
55721
55722 2007-05-18  Bruno Haible  <bruno@clisp.org>
55723
55724         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
55725
55726 2007-05-18  Bruno Haible  <bruno@clisp.org>
55727
55728         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
55729         for printing 64-bit integers. Needed for mingw.
55730
55731 2007-05-18  Bruno Haible  <bruno@clisp.org>
55732
55733         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
55734         gl_FUNC_FREXPL_WORKS.
55735         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
55736
55737 2007-05-18  Bruno Haible  <bruno@clisp.org>
55738
55739         * modules/frexpl-nolibm-tests: New file.
55740
55741         * modules/frexpl-nolibm: New file.
55742         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
55743
55744 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
55745
55746         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
55747         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
55748         GCC 4.2, which otherwise issues a lot of warnings.
55749         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
55750         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
55751         Likewise.
55752         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
55753         * modules/iconv_open (iconv.h): Likewise.
55754         * modules/locale (locale.h): Likewise.
55755         * modules/netinet_in (netinet/in.h): Likewise.
55756         * modules/sys_select (sys_select.h): Likewise.
55757         * modules/sys_socket (sys/socket.h): Likewise.
55758         * modules/sys_stat (sys/stat.h): Likewise.
55759         * modules/sysexits (sysexits.h): Likewise.
55760         * modules/unistd (unistd.h): Likewise.
55761
55762 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55763
55764         * modules/closein-tests (Makefile.am): Distribute
55765         `test-closein.sh'.
55766
55767 2007-05-17  Bruno Haible  <bruno@clisp.org>
55768
55769         * tests/test-printf-posix.output: Renamed from
55770         tests/test-fprintf-posix.out.
55771         * modules/fprintf-posix-tests: Update.
55772         * modules/printf-posix-tests: Update.
55773         * modules/vfprintf-posix-tests: Update.
55774         * modules/vprintf-posix-tests: Update.
55775         * tests/test-fprintf-posix.sh: Update.
55776         * tests/test-printf-posix.sh: Update.
55777         * tests/test-vfprintf-posix.sh: Update.
55778         * tests/test-vprintf-posix.sh: Update.
55779         Reported by Ralf Wildenhues.
55780
55781 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
55782
55783         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
55784         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
55785         GCC 4.2, which otherwise issues a lot of warnings.
55786         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
55787         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
55788         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
55789         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
55790         it should no longer be needed.
55791         * lib/string_.h: Likewise.
55792         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
55793         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
55794         * modules/inttypes (inttypes.h): Likewise.
55795         * modules/math (math.h): Likewise.
55796         * modules/search (search.h): Likewise.
55797         * modules/signal (signal.h): Likewise.
55798         * modules/stdint (stdint.h): Likewise.
55799         * modules/stdio (stdio.h): Likewise.
55800         * modules/stdlib (stdlib.h): Likewise.
55801         * modules/string (string.h): Likewise.
55802         * modules/sys_time (sys/time.h): Likewise.
55803         * modules/time (time.h): Likewise.
55804         * modules/wchar (wchar.h): Likewise.
55805         * modules/wctype (wtype.h): Likewise.
55806
55807 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
55808
55809         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
55810
55811 2007-05-13  Bruno Haible  <bruno@clisp.org>
55812
55813         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
55814         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
55815         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
55816         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
55817         (gl_PREREQ_STRTOK_R): Don't require it here.
55818
55819 2007-05-13  Bruno Haible  <bruno@clisp.org>
55820
55821         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
55822         when used in C++ mode.
55823
55824 2007-05-12  Bruno Haible  <bruno@clisp.org>
55825
55826         * lib/linebuffer.h: Tweak doc.
55827         * lib/linebuffer.c: Likewise.
55828
55829 2007-05-12  James Youngman  <jay@gnu.org>
55830
55831         * lib/linebuffer.c (readlinebuffer_delim): New function,
55832         like readlinebuffer, but use a caller-specified delimiter.
55833         (readlinebuffer): Just call readlinebuffer_delim with '\n'
55834         as the delimiter.
55835         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
55836
55837 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
55838
55839         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
55840         * modules/openat (Files): Remove openat-die.c.
55841         (Depends-on): Add openat-die.
55842         * modules/openat-die: New module.
55843
55844 2007-05-06  Bruno Haible  <bruno@clisp.org>
55845
55846         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
55847         Update with info about Cygwin.
55848         * doc/functions/fprintf.texi: Update.
55849         * doc/functions/printf.texi: Update.
55850         * doc/functions/snprintf.texi: Update.
55851         * doc/functions/sprintf.texi: Update.
55852         * doc/functions/vfprintf.texi: Update.
55853         * doc/functions/vprintf.texi: Update.
55854         * doc/functions/vsnprintf.texi: Update.
55855         * doc/functions/vsprintf.texi: Update.
55856         Reported by Eric Blake.
55857
55858 2007-05-06  Bruno Haible  <bruno@clisp.org>
55859
55860         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
55861         padding ourselves for the floating-point directives.
55862         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
55863         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
55864         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
55865         gl_PRINTF_FLAG_ZERO and test its result. Invoke
55866         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
55867         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55868         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
55869         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55870         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55871         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55872         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55873         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55874         * tests/test-snprintf-posix.h (test_function): Also check the width
55875         and some flags in the %f directive.
55876         * tests/test-sprintf-posix.h (test_function): Likewise.
55877         * tests/test-vasnprintf-posix.c (test_function): Likewise.
55878         * tests/test-vasprintf-posix.c (test_function): Likewise.
55879         * doc/functions/fprintf.texi: Update.
55880         * doc/functions/printf.texi: Update.
55881         * doc/functions/snprintf.texi: Update.
55882         * doc/functions/sprintf.texi: Update.
55883         * doc/functions/vfprintf.texi: Update.
55884         * doc/functions/vprintf.texi: Update.
55885         * doc/functions/vsnprintf.texi: Update.
55886         * doc/functions/vsprintf.texi: Update.
55887
55888 2007-05-06  Bruno Haible  <bruno@clisp.org>
55889
55890         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
55891         pass the ' flag character to sprintf or snprintf.
55892         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
55893         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
55894         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
55895         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
55896         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
55897         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55898         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
55899         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55900         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55901         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55902         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55903         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55904         * tests/test-snprintf-posix.h (test_function): Also check the grouping
55905         flag.
55906         * tests/test-sprintf-posix.h (test_function): Likewise.
55907         * tests/test-vasnprintf-posix.c (test_function): Likewise.
55908         * tests/test-vasprintf-posix.c (test_function): Likewise.
55909         * doc/functions/fprintf.texi: Update.
55910         * doc/functions/printf.texi: Update.
55911         * doc/functions/snprintf.texi: Update.
55912         * doc/functions/sprintf.texi: Update.
55913         * doc/functions/vfprintf.texi: Update.
55914         * doc/functions/vprintf.texi: Update.
55915         * doc/functions/vsnprintf.texi: Update.
55916         * doc/functions/vsprintf.texi: Update.
55917
55918 2007-05-01  Bruno Haible  <bruno@clisp.org>
55919
55920         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
55921
55922 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
55923
55924         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
55925         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
55926
55927 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
55928
55929         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
55930         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
55931         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
55932
55933 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
55934
55935         * lib/argp-help.c (struct hol_entry): New member `ord'.
55936         (HOL_ENTRY_PTRCMP): Use ord for comparison
55937         (hol_sort): Initialize ord.
55938
55939 2007-05-01  Bruno Haible  <bruno@clisp.org>
55940
55941         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
55942         Reported by Eric Blake.
55943         * doc/gnulib.texi (Function Substitutes): Update.
55944
55945 2007-05-01  Bruno Haible  <bruno@clisp.org>
55946
55947         * doc/functions.texi: Remove file, now redundant through
55948         doc/functions/*.texi.
55949
55950 2007-05-01  Bruno Haible  <bruno@clisp.org>
55951
55952         * modules/argp (Depends-on): Add sleep.
55953
55954 2007-05-01  Bruno Haible  <bruno@clisp.org>
55955
55956         * modules/sleep-tests: New file.
55957         * tests/test-sleep.c: New file.
55958
55959         * modules/sleep: New file.
55960         * lib/sleep.c: New file.
55961         * m4/sleep.m4: New file.
55962         * lib/unistd_.h (sleep): New declaration.
55963         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
55964         HAVE_SLEEP.
55965         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
55966         * doc/functions/sleep.texi: Document the sleep module.
55967
55968 2007-05-01  Bruno Haible  <bruno@clisp.org>
55969
55970         * lib/sigprocmask.h: Remove file.
55971         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
55972         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
55973         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
55974         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
55975         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
55976         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
55977         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
55978         HAVE_SIGSET_T as a shell variable.
55979         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
55980         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
55981         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
55982         (Depends-on): Add signal. Remove verify.
55983         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
55984         (Include): Mention <signal.h> instead of sigprocmask.h.
55985         * NEWS: Mention the change.
55986         * lib/fatal-signal.c: Don't include sigprocmask.h.
55987
55988 2007-05-01  Bruno Haible  <bruno@clisp.org>
55989
55990         * modules/signal: New file.
55991         * lib/signal_.h: New file.
55992         * m4/signal_h.m4: New file.
55993
55994 2007-05-01  Bruno Haible  <bruno@clisp.org>
55995
55996         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
55997         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
55998         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
55999         HAVE_WCTYPE_CTMP_BUG into wctype.h.
56000
56001 2007-05-01  Bruno Haible  <bruno@clisp.org>
56002
56003         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
56004         configure time.
56005         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
56006         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
56007         * modules/sys_stat (Makefile.am): Substitute their values into
56008         sys/stat.h.
56009
56010 2007-05-01  Bruno Haible  <bruno@clisp.org>
56011
56012         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
56013         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
56014         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
56015
56016 2007-05-01  Bruno Haible  <bruno@clisp.org>
56017
56018         * doc/header/assert.texi: Undo last change: don't mention the gnulib
56019         'assert' module here.
56020
56021 2007-05-01  Bruno Haible  <bruno@clisp.org>
56022
56023         * doc/functions/*.texi: New files.
56024         * doc/functions/google-ranking.txt: New file.
56025         * doc/gnulib.texi (Function Substitutes): New chapter.
56026         (ctime, inet_ntoa): Remove sections.
56027         * doc/ctime.texi: Remove file.
56028         * doc/inet_ntoa.texi: Remove file.
56029         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
56030         dependencies.
56031         (%.info): New rule, specifying a --reference-limit.
56032
56033 2007-05-01  Bruno Haible  <bruno@clisp.org>
56034
56035         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
56036
56037 2007-05-01  Bruno Haible  <bruno@clisp.org>
56038
56039         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
56040         the portability of 'mkdir' to mingw systems.
56041
56042 2007-05-01  Bruno Haible  <bruno@clisp.org>
56043
56044         * doc/headers/google-ranking.txt: New file.
56045
56046 2007-04-30  Eric Blake  <ebb9@byu.net>
56047
56048         Prefer fseeko to fseek.
56049         * modules/getpass (Depends-on): Add fseeko.
56050         * lib/getpass.c (getpass): Use fseeko, not fseek.
56051
56052 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
56053
56054         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
56055         assumes the sorting is stable, while most qsort implementations
56056         are not.  Use argument addresses to ensure they never compare as
56057         equal.
56058
56059         * tests/test-argp-2.sh (usage-indent test): Fix output
56060         (func_compare): Restore diff options
56061         * tests/test-argp.c: Restore #include "progname.h"
56062
56063 2007-04-29  Bruno Haible  <bruno@clisp.org>
56064
56065         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
56066         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56067         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
56068         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56069         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
56070         (configure.ac): Define CHECK_SNPRINTF_POSIX.
56071         (TESTS, check_PROGRAMS): Add test-snprintf.
56072         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
56073         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
56074         (TESTS, check_PROGRAMS): Add test-vsnprintf.
56075         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
56076         assertions that fail on HP-UX, OSF/1, or IRIX.
56077         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
56078
56079 2007-04-29  Bruno Haible  <bruno@clisp.org>
56080
56081         * MODULES.html.sh (posix_functions): Remove 'contents'.
56082
56083 2007-04-29  Karl Berry  <karl@gnu.org>
56084
56085         * config/srclist.txt (gendocs_template_min): new entry.
56086
56087 2007-04-29  Bruno Haible  <bruno@clisp.org>
56088
56089         Work around fpurge bug on BSD systems.
56090         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
56091         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
56092         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
56093         fpurge to rpl_fpurge if the system already has this function.
56094         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
56095         the case where the system already has this function. Correct invariants
56096         on BSD systems.
56097         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
56098         BSD systems.
56099
56100 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
56101
56102         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
56103         proposed by Sven Verdoolaege.
56104
56105         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
56106         options.
56107         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
56108         (usage and help tests): Update
56109
56110 2007-04-29  Bruno Haible  <bruno@clisp.org>
56111
56112         * tests/test-fflush.c (main): Use a file of size 17, not 10.
56113         Print more information in case of failure. Disable a test on BeOS.
56114
56115 2007-04-29  Bruno Haible  <bruno@clisp.org>
56116
56117         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
56118         This helps debugging on systems on which no gdb is available.
56119
56120 2007-04-29  Bruno Haible  <bruno@clisp.org>
56121
56122         * lib/freading.h: Improve comments.
56123         * lib/fwriting.h: Likewise.
56124         * tests/test-freading.c (main): Don't check freading immediately after
56125         repositioning. Needed for glibc.
56126
56127 2007-04-29  Bruno Haible  <bruno@clisp.org>
56128
56129         * lib/freading.c (freading): Trivial simplification.
56130
56131 2007-04-28  Bruno Haible  <bruno@clisp.org>
56132
56133         * tests/test-fwriting.c (main): Also test the interaction between
56134         fflush and fwriting.
56135         * modules/fwriting-tests (Depends-on): Add fflush.
56136
56137         * tests/test-freading.c (main): Also test the interaction between
56138         fflush and freading.
56139         * modules/freading-tests (Depends-on): Add fflush.
56140
56141 2007-04-28  Bruno Haible  <bruno@clisp.org>
56142
56143         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
56144         fseeko and ftello.
56145         Suggested by Eric Blake.
56146
56147 2007-04-28  Jim Meyering  <jim@meyering.net>
56148
56149         Avoid false-negative in gl_STDINT_H's C99 conformance test.
56150         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
56151         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
56152
56153 2007-04-27  Eric Blake  <ebb9@byu.net>
56154
56155         * doc/headers/assert.texi (assert.h): Document assert module use.
56156
56157 2007-04-27  Bruno Haible  <bruno@clisp.org>
56158
56159         * doc/headers/*.texi: New files.
56160         * doc/gnulib.texi (Header File Substitutes): New chapter.
56161         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
56162         dependencies.
56163         (standards.info ,standards.html, standards.dvi): Update dependencies.
56164         (mostlyclean, clean): New targets.
56165
56166 2007-04-27  Bruno Haible  <bruno@clisp.org>
56167
56168         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
56169         * modules/sysexits (Files, Makefile.am): Update.
56170
56171         * lib/sys_socket_.h: Renamed from lib/socket_.h.
56172         * modules/sys_socket (Files, Makefile.am): Update.
56173
56174         * lib/sys_stat_.h: Renamed from lib/stat_.h.
56175         * modules/sys_stat (Files, Makefile.am): Update.
56176
56177 2007-04-27  Eric Blake  <ebb9@byu.net>
56178
56179         * lib/freading.h: Improve comments.
56180         * lib/fwriting.h: Likewise.
56181         * lib/fflush.c: Likewise.
56182
56183         Fix closein for mingw.
56184         * modules/closein-tests: Add tests for closein.
56185         * tests/test-closein.c: New file.
56186         * tests/test-closein.sh: Likewise.
56187         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
56188         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
56189
56190 2007-04-27  Bruno Haible  <bruno@clisp.org>
56191
56192         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
56193         version is < 6.
56194         * lib/math_.h [__DECC]: Likewise.
56195         * lib/stdio_.h [__DECC]: Likewise.
56196         * lib/stdlib_.h [__DECC]: Likewise.
56197         * lib/string_.h [__DECC]: Likewise.
56198         * lib/time_.h [__DECC]: Likewise.
56199         * lib/wchar_.h [__DECC]: Likewise.
56200         * lib/wctype_.h [__DECC]: Likewise.
56201
56202 2007-04-27  Bruno Haible  <bruno@clisp.org>
56203
56204         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
56205
56206 2007-04-27  Bruno Haible  <bruno@clisp.org>
56207
56208         * lib/fflush.c: Add comments.
56209         * modules/fpurge-tests (Depends-on): Add fflush.
56210         * modules/freadable-tests (Depends-on): Likewise.
56211         * modules/fwritable-tests (Depends-on): Likewise.
56212
56213 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
56214
56215         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
56216         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
56217         Report by Bruno Haible <bruno@clisp.org>.
56218
56219 2007-04-26  Eric Blake  <ebb9@byu.net>
56220
56221         Fix fflush on mingw.
56222         * modules/fflush (Depends-on): Add freading.
56223         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
56224         but unread data.
56225
56226 2007-04-26  Eric Blake  <ebb9@byu.net>
56227         and Bruno Haible  <bruno@clisp.org>
56228
56229         Implement freading and fwriting.
56230         * lib/freading.c: New file.
56231         * lib/freading.h: Likewise.
56232         * m4/freading.m4: Likewise.
56233         * modules/freading: Likewise.
56234         * modules/freading-tests: Likewise.
56235         * tests/test-freading.c: Likewise.
56236         * lib/fwriting.c: New file.
56237         * lib/fwriting.h: Likewise.
56238         * m4/fwriting.m4: Likewise.
56239         * modules/fwriting: Likewise.
56240         * modules/fwriting-tests: Likewise.
56241         * tests/test-fwriting.c: Likewise.
56242         * MODULES.html.sh (File stream based Input/Output): Mention them.
56243
56244 2007-04-26  Bruno Haible  <bruno@clisp.org>
56245
56246         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
56247         'long' when we assume it.
56248         Suggested by Eric Blake.
56249
56250 2007-04-26  Bruno Haible  <bruno@clisp.org>
56251
56252         Ensure fseeko, ftello are declared on glibc systems.
56253         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
56254         * modules/fseeko (configure.ac-early): Likewise.
56255         * modules/ftello (configure.ac-early): Likewise.
56256         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
56257         AC_FUNC_FSEEKO for this.
56258         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
56259         (gl_CHECK_FSEEKO): Remove macro.
56260
56261 2007-04-26  Bruno Haible  <bruno@clisp.org>
56262
56263         * tests/test-fflush.c (main): Also check the ftell result after
56264         fflush and fseek/fseeko.
56265         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
56266         file descriptor position cache in the stream.
56267         * lib/fseeko.c (rpl_fseeko): Likewise.
56268
56269 2007-04-26  Bruno Haible  <bruno@clisp.org>
56270
56271         * modules/fflush-tests (Depends-on): Add fseeko.
56272
56273 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
56274             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56275
56276         * lib/argz_.h: ensure error_t definition is obtained in same
56277         mechanism system argz.h would have.
56278         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
56279         argz facilities are known bad.  Err on the side of caution if
56280         cross-compiling.
56281
56282 2007-04-25  Eric Blake  <ebb9@byu.net>
56283
56284         * lib/fpurge.c (includes): Use stdlib.h for free.
56285         * tests/test-fflush.c (main): Also test fflush-fseeko.
56286
56287 2007-04-25  Bruno Haible  <bruno@clisp.org>
56288
56289         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
56290         * lib/fseeko.c: New file.
56291         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
56292         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
56293         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
56294         gl_FUNC_FSEEKO.
56295         (gl_FUNC_FSEEKO): Invoke it.
56296         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
56297         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
56298         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
56299
56300 2007-04-25  Bruno Haible  <bruno@clisp.org>
56301
56302         * modules/fflush (Depends-on): Add ftello.
56303
56304 2007-04-25  Bruno Haible  <bruno@clisp.org>
56305
56306         * modules/ftello-tests: New file.
56307         * tests/test-ftello.c: New file.
56308
56309         * modules/ftello: New file.
56310         * m4/ftello.m4: New file.
56311         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
56312         HAVE_FTELLO.
56313         * lib/stdio_.h (ftello): New declaration.
56314         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
56315         HAVE_FTELLO.
56316
56317 2007-04-25  Bruno Haible  <bruno@clisp.org>
56318
56319         * modules/fseeko-tests: New file.
56320         * tests/test-fseeko.c: New file.
56321
56322         * modules/fseeko: New file.
56323         * m4/fseeko.m4: New file.
56324         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
56325         HAVE_FSEEKO.
56326         * lib/stdio_.h (fseeko): New declaration.
56327         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
56328         HAVE_FSEEKO.
56329
56330 2007-04-25  Bruno Haible  <bruno@clisp.org>
56331
56332         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
56333
56334 2007-04-25  Bruno Haible  <bruno@clisp.org>
56335
56336         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
56337         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
56338         * tests/test-unistd.c: Likewise.
56339         * tests/test-fcntl.c: Likewise.
56340
56341 2007-04-23  Eric Blake  <ebb9@byu.net>
56342
56343         * lib/fflush.c: Fix missing include.
56344         Reported by Bruno Haible.
56345
56346 2007-04-23  Bruno Haible  <bruno@clisp.org>
56347
56348         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
56349         Reported by Eric Blake.
56350
56351 2007-04-23  Bruno Haible  <bruno@clisp.org>
56352
56353         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
56354
56355 2007-04-23  Bruno Haible  <bruno@clisp.org>
56356
56357         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
56358
56359 2007-04-23  Bruno Haible  <bruno@clisp.org>
56360
56361         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
56362         Needed on HP-UX 11.
56363
56364 2007-04-16  Eric Blake  <ebb9@byu.net>
56365
56366         Make fflush rely on fpurge.
56367         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
56368         open coding all variants.
56369         * modules/fflush (Depends-on): Add fpurge and unistd.
56370         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
56371         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
56372
56373         Fix --with-tests compilation on cygwin.
56374         * modules/argmatch-tests (Makefile.am): List gnulib library first
56375         in LDADD.
56376         * modules/argp-tests (Makefile.am): Likewise.
56377         * modules/array-list-tests (Makefile.am): Likewise.
56378         * modules/array-oset-tests (Makefile.am): Likewise.
56379         * modules/avltree-list-tests (Makefile.am): Likewise.
56380         * modules/avltree-oset-tests (Makefile.am): Likewise.
56381         * modules/avltreehash-list-tests (Makefile.am): Likewise.
56382         * modules/carray-list-tests (Makefile.am): Likewise.
56383         * modules/dirname-tests (Makefile.am): Likewise.
56384         * modules/frexp-tests (Makefile.am): Likewise.
56385         * modules/isnanl-tests (Makefile.am): Likewise.
56386         * modules/linked-list-tests (Makefile.am): Likewise.
56387         * modules/linkedhash-list-tests (Makefile.am): Likewise.
56388         * modules/lock-tests (Makefile.am): Likewise.
56389         * modules/rbtree-list-tests (Makefile.am): Likewise.
56390         * modules/rbtree-oset-tests (Makefile.am): Likewise.
56391         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
56392         * modules/tls-tests (Makefile.am): Likewise.
56393         * modules/tsearch-tests (Makefile.am): Likewise.
56394         * modules/xvasprintf-tests (Makefile.am): Likewise.
56395
56396         Fix fpurge for cygwin.
56397         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
56398         value.
56399         * modules/fpurge-tests (Depends-on): Clean up trash.
56400
56401 2007-04-16  Simon Josefsson  <simon@josefsson.org>
56402
56403         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
56404
56405         * m4/autobuild.m4: Re-indent.
56406
56407 2007-04-13  Bruno Haible  <bruno@clisp.org>
56408
56409         * modules/fpurge-tests: New file.
56410         * tests/test-fpurge.c: New file.
56411
56412         * modules/fpurge: New file.
56413         * lib/fpurge.h: New file.
56414         * lib/fpurge.c: New file.
56415         * m4/fpurge.m4: New file.
56416
56417 2007-04-13  Bruno Haible  <bruno@clisp.org>
56418
56419         * modules/fbufmode-tests: New file.
56420         * tests/test-fbufmode.c: New file.
56421
56422         * modules/fbufmode: New file.
56423         * lib/fbufmode.h: New file.
56424         * lib/fbufmode.c: New file.
56425         * m4/fbufmode.m4: New file.
56426
56427 2007-04-13  Bruno Haible  <bruno@clisp.org>
56428
56429         * modules/fwritable-tests: New file.
56430         * tests/test-fwritable.c: New file.
56431
56432         * modules/fwritable: New file.
56433         * lib/fwritable.h: New file.
56434         * lib/fwritable.c: New file.
56435         * m4/fwritable.m4: New file.
56436
56437 2007-04-13  Bruno Haible  <bruno@clisp.org>
56438
56439         * modules/freadable-tests: New file.
56440         * tests/test-freadable.c: New file.
56441
56442         * modules/freadable: New file.
56443         * lib/freadable.h: New file.
56444         * lib/freadable.c: New file.
56445         * m4/freadable.m4: New file.
56446
56447 2007-04-13  Bruno Haible  <bruno@clisp.org>
56448
56449         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
56450         MOSTLYCLEANFILES.
56451
56452 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
56453
56454         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
56455         gzip bootstrap.conf to avoid dragging in i18n machinery.
56456         (gnulib_tool_option): Use it.
56457
56458 2007-04-13  Bruno Haible  <bruno@clisp.org>
56459
56460         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
56461         %F directives.
56462         * tests/test-vasprintf-posix.c (test_function): Likewise.
56463         * tests/test-snprintf-posix.h (test_function): Likewise.
56464         * tests/test-sprintf-posix.h (test_function): Likewise.
56465         * tests/test-fprintf-posix.h (test_function): Likewise.
56466         * tests/test-printf-posix.h (test_function): Likewise.
56467         * tests/test-fprintf-posix.out: Likewise.
56468
56469 2007-04-13  Bruno Haible  <bruno@clisp.org>
56470
56471         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
56472         * modules/tls-tests (configure.ac): Likewise.
56473         Reported by Arto C. Nirkko <anirkko@insel.ch>.
56474
56475 2007-04-13  Bruno Haible  <bruno@clisp.org>
56476
56477         * lib/tls.c (glthread_tls_get): Fix return type.
56478         Patch by Arto C. Nirkko <anirkko@insel.ch>.
56479
56480 2007-04-12  Eric Blake  <ebb9@byu.net>
56481
56482         * modules/gettime (Depends-on): Remove gettime.
56483         Reported by Dmitry V. Levin.
56484
56485 2007-04-12  Bruno Haible  <bruno@clisp.org>
56486
56487         * modules/fflush (Include): Mention <stdio.h>.
56488         * modules/strtoimax (Include): Mention <inttypes.h>.
56489         * modules/strtoumax (Include): Likewise.
56490
56491 2007-04-12  Eric Blake  <ebb9@byu.net>
56492
56493         * .cvsignore: New file.
56494         * .gitignore: Likewise.
56495
56496 2007-04-12  Bruno Haible  <bruno@clisp.org>
56497
56498         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
56499         not before, since $(LDADD) often contains libgnu.a.
56500         * modules/striconv-tests (test_striconv_LDADD): Likewise.
56501         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
56502         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
56503         Needed on Cygwin.
56504
56505 2007-04-12  Eric Blake  <ebb9@byu.net>
56506
56507         Work around glibc's failure to flush stdin on fclose.
56508         * lib/closein.c (close_stdin): Flush stdin before closing.
56509
56510         Work around glibc's failure to reset seekable stdin on exit.
56511         * modules/closein: New module.
56512         * lib/closein.c: New file.
56513         * lib/closein.h: Likewise.
56514         * m4/closein.m4: Likewise.
56515         * MODULES.html.sh (File stream based Input/Output): Document it.
56516
56517 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56518
56519         * gnulib-tool: Rename generated 'autobuild' script to
56520         'do-autobuild' in --create-megatestdir output.
56521
56522         * doc/gnulib.texi (Build robot for gnulib): Fix.
56523
56524 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56525
56526         * modules/sysexits (Depends-on): Add absolute-header.
56527
56528 2007-04-12  Eric Blake  <ebb9@byu.net>
56529
56530         No need to preserve errno on success.
56531         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
56532         Reported by Bruno Haible.
56533
56534 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56535
56536         * MODULES.html.sh (Support for maintaining and releasing
56537         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
56538
56539 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56540
56541         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
56542
56543 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56544
56545         * modules/autobuild: New module.
56546
56547         * m4/autobuild.m4: New file.
56548
56549 2007-04-11  Bruno Haible  <bruno@clisp.org>
56550
56551         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
56552         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
56553         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
56554         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
56555         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56556         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56557         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56558         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56559         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56560         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56561         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
56562         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56563         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56564         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
56565         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56566         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56567         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
56568         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56569         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56570         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
56571         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56572         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56573         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
56574         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56575         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56576         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
56577         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56578         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56579         Reported by Eric Blake.
56580
56581 2007-04-11  Bruno Haible  <bruno@clisp.org>
56582
56583         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
56584
56585 2007-04-10  Bruno Haible  <bruno@clisp.org>
56586
56587         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
56588         for NaN and Infinity. Needed on FreeBSD 6.1.
56589         * tests/test-vasnprintf-posix.c (test_function): Undo last change
56590         regarding results for "%010a" of Infinity and NaN.
56591         * tests/test-vasprintf-posix.c (test_function): Likewise.
56592         * tests/test-snprintf-posix.h (test_function): Likewise.
56593         * tests/test-sprintf-posix.h (test_function): Likewise.
56594         * tests/test-fprintf-posix.h (test_function): Likewise.
56595         * tests/test-printf-posix.h (test_function): Likewise.
56596         * tests/test-fprintf-posix.out: Likewise.
56597
56598 2007-04-10  Bruno Haible  <bruno@clisp.org>
56599
56600         * modules/locale-tests: New file.
56601         * tests/test-locale.c: New file.
56602
56603         * modules/locale: New file.
56604         * lib/locale_.h: New file.
56605         * m4/locale_h.m4: New file.
56606
56607 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
56608             Bruno Haible  <bruno@clisp.org>
56609
56610         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
56611         be determined, test for availability of the copysignf, copysign,
56612         copysignl functions.
56613         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
56614         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
56615         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
56616
56617 2007-04-09  Eric Blake  <ebb9@byu.net>
56618
56619         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
56620         * modules/stdio (Makefile.am): Support fflush.
56621         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
56622         * modules/fflush: New file.
56623         * lib/fflush.c: Likewise.
56624         * m4/fflush.m4: Likewise.
56625         * modules/fflush-tests: New test.
56626         * tests/test-fflush.c: Likewise.
56627         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
56628
56629 2007-04-06  Bruno Haible  <bruno@clisp.org>
56630
56631         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
56632         (VASNPRINTF): Use signbit for faster determination whether to print a
56633         minus sign.
56634         * modules/vasnprintf (Files): Remove lib/float+.h.
56635         * modules/fprintf-posix (Depends-on): Add signbit.
56636         * modules/snprintf-posix (Depends-on): Likewise.
56637         * modules/sprintf-posix (Depends-on): Likewise.
56638         * modules/vasnprintf-posix (Depends-on): Likewise.
56639         * modules/vasprintf-posix (Depends-on): Likewise.
56640         * modules/vfprintf-posix (Depends-on): Likewise.
56641         * modules/vsnprintf-posix (Depends-on): Likewise.
56642         * modules/vsprintf-posix (Depends-on): Likewise.
56643
56644 2007-04-06  Bruno Haible  <bruno@clisp.org>
56645
56646         * tests/test-frexp.c (main): Test also the sign bit of zero results.
56647         * tests/test-frexpl.c (main): Likewise.
56648         * tests/test-ldexpl.c (main): Likewise.
56649         * modules/frexp-tests (Depends-on): Add signbit.
56650         * modules/frexpl-tests (Depdends-on): Likewise.
56651         * modules/ldexpl-tests (Depdends-on): Likewise.
56652
56653 2007-04-06  Bruno Haible  <bruno@clisp.org>
56654
56655         * modules/signbit-tests: New file.
56656         * tests/test-signbit.c: New file.
56657
56658         * modules/signbit: New file.
56659         * lib/signbitf.c: New file.
56660         * lib/signbitd.c: New file.
56661         * lib/signbitl.c: New file.
56662         * m4/signbit.m4: New file.
56663         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
56664         (signbit): New macro.
56665         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
56666         REPLACE_SIGNBIT.
56667         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
56668         REPLACE_FREXPL into math.h.
56669
56670 2007-04-06  Bruno Haible  <bruno@clisp.org>
56671
56672         * modules/isnanf-nolibm-tests: New file.
56673         * tests/test-isnanf.c: New file.
56674
56675         * modules/isnanf-nolibm: New file.
56676         * lib/isnanf.h: New file.
56677         * lib/isnanf.c: New file.
56678         * lib/isnan.c: Consider the USE_FLOAT macro.
56679         * m4/isnanf.m4: New file.
56680
56681 2007-04-06  Bruno Haible  <bruno@clisp.org>
56682
56683         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
56684         (Link): New section.
56685
56686         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
56687
56688 2007-04-06  Bruno Haible  <bruno@clisp.org>
56689
56690         Assume the 'long double' type.
56691         * m4/longdouble.m4: Remove file.
56692         * config/srclist.txt: Don't mention longdouble.m4.
56693         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
56694         * lib/float+.h: Likewise.
56695         * lib/frexp.c: Likewise.
56696         * lib/printf-args.h: Likewise.
56697         * lib/printf-args.c: Likewise.
56698         * lib/printf-frexp.c: Likewise.
56699         * lib/printf-parse.c: Likewise.
56700         * lib/vasnprintf.c: Likewise.
56701         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
56702         * m4/intl.m4: Likewise.
56703         * m4/isnanl.m4: Likewise.
56704         * m4/printf.m4: Likewise.
56705         * m4/printf-frexpl.m4: Likewise.
56706         * m4/vasnprintf.m4: Likewise.
56707         * modules/allocsa (Files): Remove m4/longdouble.m4.
56708         * modules/gettext (Files): Likewise.
56709         * modules/relocatable-prog-wrapper (Files): Likewise.
56710         * modules/vasnprintf (Files): Likewise.
56711         * modules/isnanl (Files): Likewise.
56712         (Include): Simplify.
56713         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
56714         (Include): Simplify.
56715         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
56716         (Include): Simplify.
56717         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
56718         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56719         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
56720         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56721         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
56722         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56723         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
56724         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56725         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
56726         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56727         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
56728         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56729         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
56730         * tests/test-isnanl.c: Likewise.
56731         * tests/test-snprintf-posix.h: Likewise.
56732         * tests/test-sprintf-posix.h: Likewise.
56733         * tests/test-vasnprintf-posix.c: Likewise.
56734         * tests/test-vasnprintf-posix2.c: Likewise.
56735         * tests/test-vasprintf-posix.c: Likewise.
56736
56737 2007-04-06  Bruno Haible  <bruno@clisp.org>
56738
56739         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
56740         * lib/math_.h [__DECC]: Include the overridden include file through
56741         #include_next, outside the double-inclusion guard.
56742         * lib/stdio_.h [__DECC]: Likewise.
56743         * lib/stdlib_.h [__DECC]: Likewise.
56744         * lib/string_.h [__DECC]: Likewise.
56745         * lib/time_.h [__DECC]: Likewise.
56746         * lib/wchar_.h [__DECC]: Likewise.
56747         * lib/wctype_.h [__DECC]: Likewise.
56748         * lib/inttypes_.h [__DECC]: Likewise.
56749         Reported by Albert Chin <china@thewrittenword.com> in
56750         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
56751
56752 2007-04-04  Eric Blake  <ebb9@byu.net>
56753
56754         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
56755         1.5.x.
56756
56757 2007-04-04  Bruno Haible  <bruno@clisp.org>
56758
56759         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
56760         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
56761
56762 2007-04-04  Bruno Haible  <bruno@clisp.org>
56763
56764         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
56765         results for "%010a" of Infinity and NaN.
56766         * tests/test-vasprintf-posix.c (test_function): Likewise.
56767         * tests/test-snprintf-posix.h (test_function): Likewise.
56768         * tests/test-sprintf-posix.h (test_function): Likewise.
56769         * tests/test-fprintf-posix.h (test_function): Remove these tests.
56770         * tests/test-printf-posix.h (test_function): Likewise.
56771         * tests/test-fprintf-posix.out: Update.
56772         Needed for FreeBSD 6.1.
56773
56774 2007-04-04  Bruno Haible  <bruno@clisp.org>
56775
56776         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
56777         directly used by the gnulib modules nor by gnulib-tool.
56778
56779 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
56780
56781         * DEPENDENCIES: Give overall description of version dependency
56782         desirability.  Use more-typical names for apps.
56783         Add shell, coreutils, diffutils, grep, tar, gzip.
56784
56785 2007-04-04  Simon Josefsson  <simon@josefsson.org>
56786
56787         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
56788
56789 2007-04-04  Karl Berry  <karl@gnu.org>
56790
56791         * MODULES.html.sh (func_module): missing '.
56792
56793 2007-04-03  Bruno Haible  <bruno@clisp.org>
56794
56795         * modules/argmatch-tests (Makefile.am): New variable
56796         test_argmatch_LDADD.
56797         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
56798         * modules/array-list-tests (Makefile.am): New variable
56799         test_array_list_LDADD.
56800         * modules/array-oset-tests (Makefile.am): New variable
56801         test_array_oset_LDADD.
56802         * modules/avltree-list-tests (Makefile.am): New variable
56803         test_avltree_list_LDADD.
56804         * modules/avltree-oset-tests (Makefile.am): New variable
56805         test_avltree_oset_LDADD.
56806         * modules/avltreehash-list-tests (Makefile.am): New variable
56807         test_avltreehash_list_LDADD.
56808         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
56809         test_canonicalize_lgpl_LDADD.
56810         * modules/carray-list-tests (Makefile.am): New variable
56811         test_carray_list_LDADD.
56812         * modules/dirname-tests (Makefile.am): New variable
56813         test_dirname_LDADD.
56814         * modules/linked-list-tests (Makefile.am): New variable
56815         test_linked_list_LDADD.
56816         * modules/linkedhash-list-tests (Makefile.am): New variable
56817         test_linkedhash_list_LDADD.
56818         * modules/rbtree-list-tests (Makefile.am): New variable
56819         test_rbtree_list_LDADD.
56820         * modules/rbtree-oset-tests (Makefile.am): New variable
56821         test_rbtree_oset_LDADD.
56822         * modules/rbtreehash-list-tests (Makefile.am): New variable
56823         test_rbtreehash_list_LDADD.
56824         * modules/xvasprintf-tests (Makefile.am): New variable
56825         test_xvasprintf_LDADD.
56826         Reported by Eric Blake.
56827
56828 2007-04-03  Eric Blake  <ebb9@byu.net>
56829
56830         * DEPENDENCIES: Weaken m4 requirements.
56831
56832 2007-04-03  Bruno Haible  <bruno@clisp.org>
56833
56834         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
56835         * modules/isnanl-tests (configure.ac): Likewise.
56836
56837 2007-04-03  Ben Pfaff  <blp@gnu.org>
56838
56839         * modules/iconv_open: Add $(srcdir)/ to source directory
56840         references in Makefile fragments that call gperf, to fix VPATH
56841         builds.
56842
56843 2007-04-03  Bruno Haible  <bruno@clisp.org>
56844
56845         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
56846         * lib/ldexpl.c: Undo last change.
56847
56848 2007-04-03  Bruno Haible  <bruno@clisp.org>
56849
56850         * modules/printf-frexpl (Depends-on): Undo last change.
56851         (Files): Add m4/ldexpl.m4.
56852
56853 2007-04-03  Bruno Haible  <bruno@clisp.org>
56854
56855         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
56856         * modules/isnanl (Link): New section.
56857
56858         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
56859         * modules/frexp (Link): New section.
56860
56861         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
56862         * modules/frexpl (Link): New section.
56863
56864         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
56865         * modules/ldexpl (Link): New section.
56866
56867 2007-04-03  Bruno Haible  <bruno@clisp.org>
56868
56869         * modules/TEMPLATE-EXTENDED: New file.
56870         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
56871
56872 2007-04-03  Bruno Haible  <bruno@clisp.org>
56873
56874         * DEPENDENCIES: New file.
56875         Suggested by Simon Josefsson.
56876
56877 2007-04-03  Bruno Haible  <bruno@clisp.org>
56878
56879         * doc/gnulib.texi: Escape @.
56880
56881 2007-04-03  James Youngman  <jay@gnu.org>
56882         and Paul Eggert  <eggert@cs.ucla.edu>
56883
56884         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
56885         birthtime on all systems that have birthtime, not just those which
56886         use st_birthtimensec rather than st_birthtim.  Putting zero in
56887         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
56888         that the birth time is not available for files on an NFS mount.
56889
56890 2007-04-03  Simon Josefsson  <simon@josefsson.org>
56891
56892         * modules/memxor: Move back from crypto/, suggested by Bruno.
56893         * modules/crypto/hmac-sha1: Fix memxor dependency.
56894
56895         * modules/crypto/gc: Moved from ../.
56896
56897 2007-04-02  Eric Blake  <ebb9@byu.net>
56898
56899         * lib/ldexpl.c (includes): Avoid libm.
56900
56901         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
56902
56903 2007-04-02  Bruno Haible  <bruno@clisp.org>
56904
56905         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
56906         on IRIX.
56907
56908 2007-04-02  Bruno Haible  <bruno@clisp.org>
56909
56910         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
56911         x86 or x86_64 platforms running MacOS X.
56912         Reported by Ryan Schmidt <@ryandesign.com>.
56913
56914 2007-04-02  Bruno Haible  <bruno@clisp.org>
56915
56916         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
56917         i386.
56918
56919 2007-04-01  Simon Josefsson  <simon@josefsson.org>
56920
56921         * modules/crypto/arcfour: Moved from ../.
56922         * modules/crypto/arcfour-tests: Moved from ../.
56923         * modules/crypto/arctwo: Moved from ../.
56924         * modules/crypto/arctwo-tests: Moved from ../.
56925         * modules/crypto/des: Moved from ../.
56926         * modules/crypto/des-tests: Moved from ../.
56927         * modules/crypto/gc-arcfour: Moved from ../.
56928         * modules/crypto/gc-arcfour-tests: Moved from ../.
56929         * modules/crypto/gc-arctwo: Moved from ../.
56930         * modules/crypto/gc-arctwo-tests: Moved from ../.
56931         * modules/crypto/gc-des: Moved from ../.
56932         * modules/crypto/gc-des-tests: Moved from ../.
56933         * modules/crypto/gc-hmac-md5: Moved from ../.
56934         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
56935         * modules/crypto/gc-hmac-sha1: Moved from ../.
56936         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
56937         * modules/crypto/gc-md2: Moved from ../.
56938         * modules/crypto/gc-md2-tests: Moved from ../.
56939         * modules/crypto/gc-md4: Moved from ../.
56940         * modules/crypto/gc-md4-tests: Moved from ../.
56941         * modules/crypto/gc-md5: Moved from ../.
56942         * modules/crypto/gc-md5-tests: Moved from ../.
56943         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
56944         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
56945         * modules/crypto/gc-random: Moved from ../.
56946         * modules/crypto/gc-rijndael: Moved from ../.
56947         * modules/crypto/gc-rijndael-tests: Moved from ../.
56948         * modules/crypto/gc-sha1: Moved from ../.
56949         * modules/crypto/gc-sha1-tests: Moved from ../.
56950         * modules/crypto/gc-tests: Moved from ../.
56951         * modules/crypto/hmac-md5: Moved from ../.
56952         * modules/crypto/hmac-md5-tests: Moved from ../.
56953         * modules/crypto/hmac-sha1: Moved from ../.
56954         * modules/crypto/hmac-sha1-tests: Moved from ../.
56955         * modules/crypto/md2: Moved from ../.
56956         * modules/crypto/md2-tests: Moved from ../.
56957         * modules/crypto/md4: Moved from ../.
56958         * modules/crypto/md4-tests: Moved from ../.
56959         * modules/crypto/md5: Moved from ../.
56960         * modules/crypto/md5-tests: Moved from ../.
56961         * modules/crypto/memxor: Moved from ../.
56962         * modules/crypto/rijndael: Moved from ../.
56963         * modules/crypto/rijndael-tests: Moved from ../.
56964         * modules/crypto/sha1: Moved from ../.
56965
56966 2007-03-30  James Youngman  <jay@gnu.org>
56967
56968         * tests/test-stat-time.c (prepare_test): use chmod() rather than
56969         rename() to change the ctime of a file (because ctime is unaffected
56970         by rename on jfs2 on AIX 5.1).
56971         (main): Start by doing cleanup, in case a previous run failed leaving
56972         test files behind.
56973
56974 2007-03-31  Bruno Haible  <bruno@clisp.org>
56975
56976         Support old proprietary implementations of iconv.
56977         * modules/iconv_open: New file.
56978         * lib/iconv_.h: New file.
56979         * m4/iconv_h.m4: New file.
56980         * lib/iconv_open.c: New file.
56981         * lib/iconv_open-aix.gperf: New file.
56982         * lib/iconv_open-hpux.gperf: New file.
56983         * lib/iconv_open-irix.gperf: New file.
56984         * lib/iconv_open-osf.gperf: New file.
56985         * m4/iconv_open.m4: New file.
56986         * modules/linebreak (Depends-on): Add iconv_open.
56987         * modules/striconv (Depends-on): Likewise.
56988         * modules/striconveh (Depends-on): Likewise.
56989         * modules/unicodeio (Depends-on): Likewise.
56990         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
56991         (iconv_t)(-1).
56992         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
56993         conversion if cd is (iconv_t)(-1).
56994         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
56995         is not possible.
56996
56997 2007-03-31  Bruno Haible  <bruno@clisp.org>
56998
56999         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
57000         work on Solaris either. Protect also second use of "autodetect_jp".
57001
57002 2007-03-31  Bruno Haible  <bruno@clisp.org>
57003
57004         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
57005         the function is not present.
57006
57007 2007-03-31  Bruno Haible  <bruno@clisp.org>
57008
57009         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
57010         the function is not present.
57011
57012 2007-03-31  Bruno Haible  <bruno@clisp.org>
57013
57014         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
57015         a bug in HP-UX iconv_open().
57016
57017 2007-03-31  Bruno Haible  <bruno@clisp.org>
57018
57019         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
57020         (Mathematics <math.h>): New section, add fpieee.
57021         (Input/output <stdio.h>): Add fseterr.
57022         (Mathematics <math.h>): New section, add printf-frexp.
57023         (Container data structures): Add sublist.
57024         (Core language properties): Add fpucw, inline.
57025         (Functions for greatest-width integer types <inttypes.h>): Add
57026         imaxabs, imaxdiv, inttypes.
57027         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
57028         isnanl-nolibm, ldexp.
57029         (Mathematics <math.h>): New section, add printf-frexpl.
57030         (Support for systems lacking POSIX:2001): Add fprintf-posix,
57031         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
57032         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
57033         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
57034         (Unicode string functions): Add unistr/u*-mbtoucr.
57035         (Java): Add javacomp-script, javaexec-script.
57036         (C#): Add csharpcomp-script, csharpexec-script.
57037         (Support for building libraries and executables): Add havelib,
57038         relocatable-*.
57039         (Support for maintaining and releasing projects): Renamed from
57040         'Support for maintaining and release projects'. Add announce-gen.
57041
57042 2007-03-31  Bruno Haible  <bruno@clisp.org>
57043
57044         * README: Talk primarily about git.
57045         (git and CVS): Renamed from CVS.
57046         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
57047         gnulib is available through git.
57048         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
57049
57050 2007-03-30  Bruno Haible  <bruno@clisp.org>
57051
57052         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
57053         * lib/poll_.h: Likewise.
57054         * lib/stat_.h: Likewise.
57055         * lib/sys_time_.h: Likewise.
57056         * lib/sysexit_.h: Likewise.
57057         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
57058         * lib/stdbool_.h: Likewise.
57059         * lib/byteswap_.h: Add double-inclusion guard.
57060
57061 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
57062
57063         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
57064
57065 2007-03-30  Karl Berry  <karl@gnu.org>
57066
57067         * config/srclist-update: double space after USA in the license
57068         substitution, since that's how it's usually (?) written.
57069
57070 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
57071
57072         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
57073         reported by Bruno Haible.
57074
57075 2007-03-29  Bruno Haible  <bruno@clisp.org>
57076
57077         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
57078         a bug in AIX iconv().
57079
57080 2007-03-29  Bruno Haible  <bruno@clisp.org>
57081
57082         * modules/ldexpl-tests: New file.
57083         * tests/test-ldexpl.c: New file.
57084
57085 2007-03-29  Bruno Haible  <bruno@clisp.org>
57086
57087         * lib/ldexpl.c: Include fpucw.h.
57088         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
57089         multiplication.
57090         * modules/ldexpl (Depends-on): Add fpucw.
57091
57092 2007-03-29  Bruno Haible  <bruno@clisp.org>
57093
57094         * modules/ldexpl: New file.
57095         * m4/ldexpl.m4: New file.
57096         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
57097         set.
57098         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
57099         REPLACE_LDEXPL.
57100         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
57101         REPLACE_LDEXPL.
57102         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
57103         gl_FUNC_LDEXPL_WORKS.
57104         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
57105         * modules/mathl (Files): Remove lib/ldexpl.c.
57106         (Depends-on): Add ldexpl.
57107
57108 2007-03-29  Bruno Haible  <bruno@clisp.org>
57109
57110         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
57111
57112 2007-03-29  Bruno Haible  <bruno@clisp.org>
57113
57114         * tests/test-striconveh.c (main): Don't assume that a direct conversion
57115         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
57116         and possibly also HP-UX.
57117         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
57118         work on AIX, IRIX, HP-UX, OSF/1.
57119         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
57120         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
57121         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
57122         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
57123         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
57124         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
57125
57126 2007-03-29  Bruno Haible  <bruno@clisp.org>
57127
57128         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
57129
57130 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
57131
57132         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
57133         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
57134
57135 2007-03-29  Eric Blake  <ebb9@byu.net>
57136
57137         * lib/acl-internal.h: Remove redundant include.
57138         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
57139         Cygwin when a file is locked.
57140
57141 2007-03-29  Bruno Haible  <bruno@clisp.org>
57142
57143         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
57144         file.
57145         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
57146
57147 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
57148
57149         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
57150         try to remove a parent directory if the child couldn't be removed
57151         (except for the first rmdir, which could fail because the child
57152         doesn't exist).  Problem reported by Jeff Blaine in
57153         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
57154
57155 2007-03-28  Bruno Haible  <bruno@clisp.org>
57156
57157         * lib/striconveh.c (utf8conv_carefully): New function.
57158         (mem_cd_iconveh_internal): Invoke it.
57159
57160 2007-03-28  Bruno Haible  <bruno@clisp.org>
57161
57162         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
57163         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
57164         input.
57165         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
57166         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
57167         unistr/u8-uctomb.
57168
57169 2007-03-28  Bruno Haible  <bruno@clisp.org>
57170
57171         * modules/unistr/u8-mbtoucr: New file.
57172         * lib/unistr/u8-mbtoucr.c: New file.
57173         * modules/unistr/u16-mbtoucr: New file.
57174         * lib/unistr/u16-mbtoucr.c: New file.
57175         * modules/unistr/u16-mbtoucr: New file.
57176         * lib/unistr/u16-mbtoucr.c: New file.
57177         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
57178
57179 2007-03-27  Simon Josefsson  <simon@josefsson.org>
57180             Bruno Haible  <bruno@clisp.org>
57181
57182         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
57183         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
57184         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
57185
57186         * m4/stdio_h.m4: Add stubs for vasprintf too.
57187
57188         * modules/stdio: Support vasprintf in sed command.
57189
57190         * modules/vasprintf: Depend on stdio for prototypes.  Remove
57191         vasprintf.h.  Add stdio module indicator.
57192
57193         * lib/stdio_.h: Declare asprintf and vasprintf, based on
57194         vasprintf.h.
57195
57196         * lib/vasprintf.h: File removed.
57197
57198         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
57199         * lib/vasprintf.c: Ditto.
57200         * lib/xvasprintf.c: Ditto.
57201         * tests/test-vasprintf-posix.c: Ditto.
57202         * tests/test-vasprintf.c: Ditto.
57203
57204 2007-03-27  Bruno Haible  <bruno@clisp.org>
57205
57206         Make vasnprintf multithread-safe.
57207         * lib/vasnprintf.c (decimal_point_char): New function.
57208         (VASNPRINTF): Use it.
57209         Suggested by Simon Josefsson.
57210
57211 2007-03-27  Eric Blake  <ebb9@byu.net>
57212
57213         Support sub-second birthtime on cygwin.
57214         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
57215         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
57216         (get_stat_birthtime): Also work with st_birthtim.
57217
57218 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
57219
57220         * lib/stat-time.h (USE_BIRTHTIME): Remove.
57221         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
57222         (get_stat_birthtime_ns): Do not try to use "spare" fields.
57223         (get_stat_birthtime_ns): Simplify compile-time tests.
57224         (get_stat_birthtime): Change the API to look like
57225         get_stat_mtime etc., except return a negative tv_nsec on error.
57226         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
57227         Don't check for "spare" fields.
57228         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
57229         or for struct stat.st_birthtime, as these tests aren't used.
57230         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
57231
57232 2007-03-27  Bruno Haible  <bruno@clisp.org>
57233
57234         * lib/stat-time.h: Include <sys/stat.h>.
57235
57236 2007-03-27  James Youngman  <jay@gnu.org>
57237
57238         * lib/stat-time.h (get_stat_birthtime): New function for
57239           retrieving st_birthtime as provided by UFS2 (hence *BSD).
57240         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
57241           and its variants.
57242         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
57243         * modules/stat-time-test: New file.
57244         * tests/test-stat-time.c: New test, devised by Bruno Haible.
57245
57246 2007-03-26  Bruno Haible  <bruno@clisp.org>
57247
57248         Better support of signalling NaNs.
57249         * lib/atanl.c: Include isnanl.h.
57250         (atanl): Perform test for NaN at the beginning of the function and
57251         through a call to isnanl.
57252         * lib/cosl.c: Include isnanl.h.
57253         (cosl): Perform test for NaN at the beginning of the function and
57254         through a call to isnanl.
57255         * lib/ldexpl.c: Include isnanl.h.
57256         (ldexpl): Perform test for NaN through a call to isnanl.
57257         * lib/logl.c: Include isnanl.h.
57258         (logl): Perform test for NaN at the beginning of the function and
57259         through a call to isnanl.
57260         * lib/sinl.c: Include isnanl.h.
57261         (sinl): Perform test for NaN at the beginning of the function and
57262         through a call to isnanl.
57263         * lib/sqrtl.c: Include isnanl.h.
57264         (sqrtl): Perform test for NaN at the beginning of the function and
57265         through a call to isnanl.
57266         * lib/tanl.c: Include isnanl.h.
57267         (tanl): Perform test for NaN at the beginning of the function and
57268         through a call to isnanl.
57269         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
57270         * modules/mathl (Depends-on): Add isnanl.
57271
57272 2007-03-26  Eric Blake  <ebb9@byu.net>
57273
57274         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
57275         regression in logic sense of previous patch.
57276
57277 2007-03-26  Bruno Haible  <bruno@clisp.org>
57278
57279         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
57280         unportable shell command "if ! ...".
57281         Reported by Ralf Wildenhues.
57282
57283 2007-03-25  Bruno Haible  <bruno@clisp.org>
57284
57285         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
57286         <sysexits.h> file, and only add EX_CONFIG.
57287         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
57288         absolute file name and whether it is sufficient. Substitute also
57289         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
57290         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
57291         ABSOLUTE_SYSEXITS_H into sysexits.h.
57292
57293 2007-03-25  Bruno Haible  <bruno@clisp.org>
57294
57295         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
57296         hints is NULL.
57297
57298 2007-03-25  Bruno Haible  <bruno@clisp.org>
57299
57300         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
57301         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
57302
57303 2007-03-25  Bruno Haible  <bruno@clisp.org>
57304
57305         * lib/vasnprintf.c: Include langinfo.h.
57306         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
57307         multithread-safe.
57308         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
57309         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
57310         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
57311         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57312         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57313         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57314         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57315         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
57316         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57317         Reported by Simon Josefsson.
57318
57319 2007-03-25  Bruno Haible  <bruno@clisp.org>
57320
57321         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
57322         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
57323         * modules/vasnprintf (Depends-on): Add stdint.
57324
57325 2007-03-25  Bruno Haible  <bruno@clisp.org>
57326
57327         * modules/fpieee: New file.
57328         * m4/fpieee.m4: New file.
57329         * modules/isnan-nolibm (Depends-on): Add fpieee.
57330         * modules/isnanl-nolibm (Depends-on): Add fpieee.
57331         * modules/isnanl (Depends-on): Add fpieee.
57332
57333 2007-03-25  Bruno Haible  <bruno@clisp.org>
57334
57335         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
57336
57337 2007-03-25  Bruno Haible  <bruno@clisp.org>
57338
57339         Avoid test failures on IRIX 6.5.
57340         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
57341         (main): Use it.
57342         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
57343         macros.
57344         (main): Use them.
57345
57346 2007-03-25  Bruno Haible  <bruno@clisp.org>
57347
57348         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
57349         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
57350         exists but doesn't work.
57351         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
57352         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
57353         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
57354         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
57355         math.h.
57356
57357 2007-03-25  Bruno Haible  <bruno@clisp.org>
57358
57359         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
57360         returns inf. Needed on IRIX 6.5.
57361
57362 2007-03-25  Bruno Haible  <bruno@clisp.org>
57363
57364         * tests/test-frexpl.c: Include isnanl-nolibm.h.
57365         (main): Use isnanl instead of x != x idiom.
57366         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
57367
57368         * tests/test-frexp.c: Include isnan.h.
57369         (main): Use isnan instead of x != x idiom.
57370         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
57371
57372 2007-03-25  Bruno Haible  <bruno@clisp.org>
57373
57374         * tests/test-frexp.c (NaN): New function/macro.
57375         (main): Use it instead of 0.0 / 0.0.
57376         * tests/test-isnan.c (NaN): New function/macro.
57377         (main): Use it instead of 0.0 / 0.0.
57378         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
57379         (test_function): Use it instead of 0.0 / 0.0.
57380         * tests/test-vasprintf-posix.c (NaN): New function/macro.
57381         (test_function): Use it instead of 0.0 / 0.0.
57382         * tests/test-snprintf-posix.h (NaN): New function/macro.
57383         (test_function): Use it instead of 0.0 / 0.0.
57384         * tests/test-sprintf-posix.h (NaN): New function/macro.
57385         (test_function): Use it instead of 0.0 / 0.0.
57386         * tests/test-fprintf-posix.h (NaN): New function/macro.
57387         (test_function): Use it instead of 0.0 / 0.0.
57388         * tests/test-printf-posix.h (NaN): New function/macro.
57389         (test_function): Use it instead of 0.0 / 0.0.
57390
57391         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
57392
57393 2007-03-25  Bruno Haible  <bruno@clisp.org>
57394
57395         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
57396
57397 2007-03-25  Bruno Haible  <bruno@clisp.org>
57398
57399         * lib/regexec.c (merge_state_with_log): Make static.
57400
57401 2007-03-25  Bruno Haible  <bruno@clisp.org>
57402
57403         * lib/trigl.c (kernel_rem_pio2): Make static.
57404
57405 2007-03-25  Bruno Haible  <bruno@clisp.org>
57406
57407         * lib/sincosl.c (sincosl_table): Make static.
57408
57409 2007-03-25  Bruno Haible  <bruno@clisp.org>
57410
57411         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
57412         if the compiler does not support C99.
57413
57414 2007-03-25  Bruno Haible  <bruno@clisp.org>
57415
57416         * modules/time (Makefile.am): Ensure all rule action lines start with a
57417         tab.
57418
57419 2007-03-24  Bruno Haible  <bruno@clisp.org>
57420
57421         * modules/tsearch-tests: New file.
57422         * tests/test-tsearch.sh: New file.
57423         * tests/test-tsearch.c: New file, mostly copied from glibc.
57424
57425         * modules/search-tests: New file.
57426         * tests/test-search.c: New file.
57427
57428         * modules/search: New file.
57429         * lib/search_.h: New file, incorporating lib/tsearch.h.
57430         * m4/search_h.m4: New file.
57431         * lib/tsearch.h: Remove file.
57432         * lib/tsearch.c: Include search.h instead of tsearch.h.
57433         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
57434         HAVE_TSEARCH.
57435         * modules/tsearch (Files): Remove lib/tsearch.h.
57436         (Depends-on): Add search.
57437         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
57438         (Include): Change tsearch.h into search.h.
57439
57440 2007-03-24  Bruno Haible  <bruno@clisp.org>
57441
57442         * modules/fpucw: New file.
57443         * lib/fpucw.h: New file.
57444         * lib/frexp.c: Include fpucw.h.
57445         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
57446         (FUNC): Use them.
57447         * lib/printf-frexp.c: Include fpucw.h.
57448         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
57449         (FUNC): Use them.
57450         * lib/vasnprintf.c: Include fpucw.h.
57451         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
57452         'long double' calculations.
57453         * tests/test-frexpl.c: Include fpucw.h.
57454         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
57455         * tests/test-printf-frexpl.c: Include fpucw.h.
57456         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
57457         * modules/frexpl (Depends-on): Add fpucw.
57458         * modules/printf-frexpl (Depends-on): Likewise.
57459         * modules/fprintf-posix (Depends-on): Likewise.
57460         * modules/snprintf-posix (Depends-on): Likewise.
57461         * modules/sprintf-posix (Depends-on): Likewise.
57462         * modules/vasnprintf-posix (Depends-on): Likewise.
57463         * modules/vasprintf-posix (Depends-on): Likewise.
57464         * modules/vfprintf-posix (Depends-on): Likewise.
57465         * modules/vsnprintf-posix (Depends-on): Likewise.
57466         * modules/vsprintf-posix (Depends-on): Likewise.
57467         * modules/frexpl-tests (Depends-on): Likewise.
57468         * modules/printf-frexpl-tests (Depends-on): Likewise.
57469
57470 2007-03-24  Bruno Haible  <bruno@clisp.org>
57471
57472         * lib/float+.h: New file.
57473         * lib/isnan.c: Include float+.h.
57474         (SIZE): New macro.
57475         (FUNC): Compare only SIZE bytes of the value.
57476         * lib/vasnprintf.c: Include float+.h.
57477         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
57478         SIZEOF_LDBL or SIZEOF_DBL bytes.
57479         * modules/isnan-nolibm (Files): Add lib/float+.h.
57480         * modules/isnanl-nolibm (Files): Add lib/float+.h.
57481         * modules/isnanl (Files): Add lib/float+.h.
57482         * modules/vasnprintf (Files): Add lib/float+.h.
57483
57484 2007-03-24  Bruno Haible  <bruno@clisp.org>
57485
57486         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
57487         include isnanl-nolibm.h.
57488
57489 2007-03-24  Bruno Haible  <bruno@clisp.org>
57490
57491         * tests/test-read-file.c (main): Don't produce spurious output for
57492         expected situations. Make the test fail if it encountered unexpected
57493         results.
57494
57495 2007-03-24  Bruno Haible  <bruno@clisp.org>
57496
57497         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
57498         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
57499
57500 2007-03-24  Bruno Haible  <bruno@clisp.org>
57501
57502         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
57503
57504 2007-03-24  Bruno Haible  <bruno@clisp.org>
57505
57506         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
57507         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
57508
57509         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
57510         * modules/utf8-ucs4: Turn into a symbolic link to module
57511         unistr/u8-mbtouc.
57512
57513         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
57514         utf8-ucs4-unsafe.
57515         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
57516         unistr/u8-mbtouc-unsafe.
57517
57518         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
57519         * modules/utf16-ucs4: Turn into a symbolic link to module
57520         unistr/u16-mbtouc.
57521
57522         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
57523         utf16-ucs4-unsafe.
57524         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
57525         unistr/u16-mbtouc-unsafe.
57526
57527         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
57528         * modules/ucs4-utf8: Turn into a symbolic link to module
57529         unistr/u8-ubtomb.
57530
57531         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
57532         * modules/ucs4-utf16: Turn into a symbolic link to module
57533         unistr/u16-ubtomb.
57534
57535 2007-03-24  Bruno Haible  <bruno@clisp.org>
57536
57537         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
57538         Enable the function only if HAVE_INLINE.
57539         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
57540         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
57541         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
57542         Enable the function only if HAVE_INLINE.
57543         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
57544         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
57545         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
57546         Enable the function only if HAVE_INLINE.
57547         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
57548         Enable the function only if HAVE_INLINE.
57549         * modules/utf8-ucs4: Update.
57550         * modules/utf8-ucs4-unsafe: Update.
57551         * modules/utf16-ucs4: Update.
57552         * modules/utf16-ucs4-unsafe: Update.
57553         * modules/ucs4-utf8: Update.
57554         * modules/ucs4-utf16: Update.
57555
57556 2007-03-24  Bruno Haible  <bruno@clisp.org>
57557
57558         * lib/utf8-ucs4.h: Remove file.
57559         * lib/utf8-ucs4-unsafe.h: Remove file.
57560         * lib/utf16-ucs4.h: Remove file.
57561         * lib/utf16-ucs4-unsafe.h: Remove file.
57562         * lib/ucs4-utf8.h: Remove file.
57563         * lib/ucs4-utf16.h: Remove file.
57564         * lib/unistr.h: Include their previous contents.
57565         * m4/utf-ucs4.m4: Remove file.
57566         * m4/ucs4-utf.m4: Remove file.
57567         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
57568         (Depends-on): Add unistr/base.
57569         (configure.ac): Remove gl_UTF_UCS4.
57570         (Makefile.am): Update.
57571         (Include): Change to unistr.h.
57572         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
57573         (Depends-on): Add unistr/base.
57574         (configure.ac): Remove gl_UTF_UCS4.
57575         (Makefile.am): Update.
57576         (Include): Change to unistr.h.
57577         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
57578         (Depends-on): Add unistr/base.
57579         (configure.ac): Remove gl_UTF_UCS4.
57580         (Makefile.am): Update.
57581         (Include): Change to unistr.h.
57582         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
57583         (Depends-on): Add unistr/base.
57584         (configure.ac): Remove gl_UTF_UCS4.
57585         (Makefile.am): Update.
57586         (Include): Change to unistr.h.
57587         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
57588         (Depends-on): Add unistr/base.
57589         (configure.ac): Remove gl_UCS4_UTF.
57590         (Makefile.am): Update.
57591         (Include): Change to unistr.h.
57592         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
57593         (Depends-on): Add unistr/base.
57594         (configure.ac): Remove gl_UCS4_UTF.
57595         (Makefile.am): Update.
57596         (Include): Change to unistr.h.
57597         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
57598         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
57599         utf8-ucs4-unsafe.h.
57600         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
57601         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
57602         utf16-ucs4-unsafe.h.
57603         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
57604         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
57605         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
57606         * lib/unistr/u8-strchr.c: Likewise.
57607         * lib/unistr/u8-strrchr.c: Likewise.
57608         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
57609         * lib/unistr/u16-strchr.c: Likewise.
57610         * lib/unistr/u16-strrchr.c: Likewise.
57611         * lib/striconveh.c: Update.
57612         * lib/linebreak.c: Update.
57613
57614 2007-03-24  Bruno Haible  <bruno@clisp.org>
57615
57616         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
57617         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
57618
57619 2007-03-22  Bruno Haible  <bruno@clisp.org>
57620
57621         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
57622
57623 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
57624
57625         * MODULES.html.sh (File system functions): New module write-any-file.
57626         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
57627         * m4/write-any-file.m4: New files.
57628
57629 2007-03-23  Eric Blake  <ebb9@byu.net>
57630
57631         * gnulib-tool: Rearrange space-tab sequences, since some editors
57632         like to eat them.
57633
57634 2007-03-23  Eric Blake  <ebb9@byu.net>
57635
57636         * lib/version-etc.c (version_etc_va): Update license wording to
57637         be more concise.  Recommended by Richard Stallman.
57638
57639 2007-03-22  Bruno Haible  <bruno@clisp.org>
57640
57641         * lib/poll.c (MSG_PEEK): New fallback definition.
57642
57643 2007-03-22  Bruno Haible  <bruno@clisp.org>
57644
57645         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
57646         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
57647         (main): Update.
57648         Fixes a compilation error on BeOS.
57649
57650 2007-03-22  Bruno Haible  <bruno@clisp.org>
57651
57652         * modules/frexpl-tests: New file.
57653         * tests/test-frexpl.c: New file.
57654
57655         * modules/frexpl: New file.
57656         * m4/frexpl.m4: New file.
57657         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
57658         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
57659         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
57660         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
57661         (Depends-on): Add frexpl. Remove isnanl-nolibm.
57662         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
57663
57664 2007-03-22  Bruno Haible  <bruno@clisp.org>
57665
57666         * lib/frexpl.c: Share code with lib/frexp.c.
57667         * modules/mathl (Files): Add lib/frexp.c.
57668         (Depends-on): Add isnanl-nolibm.
57669
57670 2007-03-22  Bruno Haible  <bruno@clisp.org>
57671
57672         * modules/printf-frexp (Files): Add m4/frexp.m4.
57673         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
57674         only if the found frexp function actually works.
57675
57676 2007-03-22  Bruno Haible  <bruno@clisp.org>
57677
57678         * lib/frexp.c: Remove older implementation that uses divisions.
57679
57680 2007-03-21  Bruno Haible  <bruno@clisp.org>
57681
57682         * modules/frexp-tests: New file.
57683         * tests/test-frexp.c: New file.
57684
57685         * modules/frexp: New file.
57686         * lib/frexp.c: New file.
57687         * m4/frexp.m4: New file.
57688         * lib/math_.h (frexp): New declaration.
57689         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
57690         REPLACE_FREXP.
57691         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
57692
57693 2007-03-21  Bruno Haible  <bruno@clisp.org>
57694
57695         * modules/isnanl-tests: New file.
57696         * tests/test-isnanl.c: New file.
57697
57698         * modules/isnanl: New file.
57699         * lib/isnanl.h: New file.
57700         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
57701         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
57702         gl_FUNC_ISNANL_WORKS.
57703         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
57704         New macros.
57705
57706 2007-03-21  Bruno Haible  <bruno@clisp.org>
57707
57708         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
57709         lib/isnanl.h.
57710         (Include): Update.
57711         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
57712         * lib/vasnprintf.c: Update.
57713         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
57714         tests/test-isnanl.h, remove tests/test-isnanl.c.
57715         (Makefile.am): Update.
57716         * tests/test-isnanl-nolibm.c: New file.
57717         * tests/test-isnanl.h: New file.
57718         * tests/test-isnanl.c: Remove file.
57719
57720 2007-03-21  Jim Meyering  <jim@meyering.net>
57721
57722         When trying to open ".", treat ESTALE like EACCES.
57723         * lib/savewd.c (savewd_save): Resort to forking not just upon
57724         failure with EACCES, but also when errno is ESTALE.
57725
57726 2007-03-20  Bruno Haible  <bruno@clisp.org>
57727
57728         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
57729         Needed on AIX 5.1. Reported by Matthew Woehlke.
57730
57731 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
57732
57733         Suggestions by Bruno Haible:
57734         * lib/acl-internal.h: Include "gettext.h" rather than rolling
57735         our own.
57736         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
57737         * modules/acl (Depends-on): Add gettext.
57738
57739 2007-03-19  Bruno Haible  <bruno@clisp.org>
57740
57741         * modules/iconvme: Remove file.
57742         * lib/iconvme.h: Remove file.
57743         * lib/iconvme.c: Remove file.
57744         * m4/iconvme.m4: Remove file.
57745
57746 2007-03-19  Bruno Haible  <bruno@clisp.org>
57747
57748         * doc/relocatable-maint.texi: Break long shell script line.
57749         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
57750
57751 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
57752
57753         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
57754         handle file_has_acl.
57755         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
57756         * lib/acl.c: Move header inclusions and related macro defns into
57757         lib/acl-internal.h.
57758         (S_ISLNK): Remove defn, since that's now done for us.
57759         (file_has_acl): Move to lib/file-has-acl.c.
57760         Call acl_trivial if available.  This is the crucial part of the fix.
57761         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
57762         shared within the library.  Rewrite a bit, partly to make it compatible
57763         with the GNU coding style.
57764         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
57765         Remove unnecessary double-quotes.
57766         Don't test for acl_to_text; the build will catch that.
57767         Replace acl_entries if it doesn't exist and it is needed.
57768         Check for -lsec and acl_trivial (as used on Solaris 10).
57769         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
57770         lib/file-has-acl.c.
57771         (Depends-on): Add sys_stat, for S_ISLNK.
57772
57773 2007-03-19  Ben Pfaff  <blp@gnu.org>
57774
57775         * doc/gnulib.texi: Fix typos.
57776         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
57777
57778 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
57779
57780         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
57781         If size is zero here, buf must be zero.
57782
57783 2007-03-19  Simon Josefsson  <simon@josefsson.org>
57784
57785         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
57786         <bruno@clisp.org>.
57787
57788 2007-03-18  Bruno Haible  <bruno@clisp.org>
57789
57790         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
57791         Suggested by Eric Blake.
57792
57793 2007-03-18  Ben Pfaff  <blp@gnu.org>
57794
57795         * doc/relocatable.texi: Recommend using as prefix a directory
57796         that does not exist and will never be created.  Based on
57797         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
57798         and others.
57799
57800 2007-03-17  Bruno Haible  <bruno@clisp.org>
57801
57802         * lib/fchownat.c: Include lchown.h.
57803
57804 2007-03-17  Bruno Haible  <bruno@clisp.org>
57805
57806         Fix endless loop when the given allocated size was > INT_MAX.
57807         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
57808         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
57809         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
57810         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
57811         * lib/sprintf.c (sprintf): Likewise.
57812
57813 2007-03-17  Bruno Haible  <bruno@clisp.org>
57814
57815         * tests/test-argp-2.sh (func_compare): Output a context diff.
57816
57817 2007-03-17  Bruno Haible  <bruno@clisp.org>
57818
57819         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
57820         locale's decimal-point character.
57821
57822 2007-03-17  Bruno Haible  <bruno@clisp.org>
57823
57824         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
57825         before comparing it. Needed because on some platforms (e.g. x86) a
57826         'long double' occupies less bytes than sizeof (long double).
57827
57828 2007-03-17  Bruno Haible  <bruno@clisp.org>
57829
57830         * tests/test-crc.c (main): Make printf statements 64-bit clean.
57831         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
57832         * tests/test-getaddrinfo.c (simple): Likewise.
57833         * tests/test-read-file.c (main): Likewise.
57834
57835 2007-03-17  Bruno Haible  <bruno@clisp.org>
57836
57837         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
57838
57839 2007-03-17  Bruno Haible  <bruno@clisp.org>
57840
57841         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
57842         unused variable.
57843
57844 2007-03-17  Bruno Haible  <bruno@clisp.org>
57845
57846         * tests/test-c-strcasecmp.c: Include c-strcase.h.
57847         * tests/test-c-strncasecmp.c: Likewise.
57848
57849 2007-03-17  Bruno Haible  <bruno@clisp.org>
57850
57851         * modules/stdlib (Depends-on): Add unistd.
57852         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
57853         Needed for MacOS X 10.3.
57854
57855 2007-03-17  Bruno Haible  <bruno@clisp.org>
57856
57857         * lib/unistr/u-strdup.h: Include <stdlib.h>.
57858
57859 2007-03-17  Bruno Haible  <bruno@clisp.org>
57860
57861         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
57862
57863 2007-03-17  Bruno Haible  <bruno@clisp.org>
57864
57865         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
57866         to reflect files copied from gnulib (with or without modifications).
57867         Suggested by Jim Meyering.
57868
57869 2007-03-17  Eric Blake  <ebb9@byu.net>
57870
57871         * NEWS: Document stdlib change from 2007-02-18.
57872
57873 2007-03-17  Jim Meyering  <jim@meyering.net>
57874
57875         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
57876         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
57877         someone uses a name containing shell meta-characters.
57878         Reported by Alfred M. Szmidt.
57879
57880         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
57881
57882 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
57883
57884         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
57885         and copy gettext configuration files only if configure.ac contains
57886         a use of AM_GNU_GETTEXT_VERSION.
57887
57888 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
57889
57890         * build-aux/bootstrap (gnulib_name): New variable.
57891         (gnulib_tool_options): Use it.
57892
57893 2007-03-13  Simon Josefsson  <simon@josefsson.org>
57894
57895         * tests/test-des.c: Use new namespace.
57896
57897 2007-03-15  Bruno Haible  <bruno@clisp.org>
57898
57899         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
57900         Reported by James Youngman <jay@gnu.org>.
57901
57902 2007-03-15  Bruno Haible  <bruno@clisp.org>
57903
57904         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
57905         declared prototype. Needed with cc on OSF/1 5.1.
57906
57907 2007-03-15  Bruno Haible  <bruno@clisp.org>
57908
57909         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
57910         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
57911         (struct gl_list_implementation): Add dispose_fn argument to the
57912         'create_empty', 'create' methods.
57913         (struct gl_list_impl_base): Add field 'dispose_fn'.
57914         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
57915         argument.
57916         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
57917         dispose_fn argument.
57918         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
57919         dispose_fn on the dropped values.
57920         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
57921         dispose_fn argument.
57922         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
57923         dropped values.
57924         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
57925         (gl_tree_remove_node): Call dispose_fn on the dropped value.
57926         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
57927         (gl_tree_remove_node): Call dispose_fn on the dropped value.
57928         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
57929         argument.
57930         (gl_tree_list_free): Call dispose_fn on the dropped values.
57931         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
57932         the dropped values.
57933         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
57934         Add dispose_fn argument.
57935         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
57936         Call dispose_fn on the dropped values.
57937         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
57938         Add dispose_fn argument.
57939         (gl_sublist_create): Initialize the 'dispose_fn' field.
57940         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
57941         * tests/test-array_list.c (main): Update.
57942         * tests/test-carray_list.c (main): Update.
57943         * tests/test-avltree_list.c (main): Update.
57944         * tests/test-rbtree_list.c (main): Update.
57945         * tests/test-avltreehash_list.c (main): Update.
57946         * tests/test-rbtreehash_list.c (main): Update.
57947         * tests/test-linked_list.c (main): Update.
57948         * tests/test-linkedhash_list.c (main): Update.
57949         * tests/test-array_oset.c (main): Update.
57950
57951 2007-03-15  Bruno Haible  <bruno@clisp.org>
57952
57953         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
57954         (gl_oset_create_empty): Add dispose_fn argument.
57955         (struct gl_oset_implementation): Add dispose_fn argument to
57956         'create_empty' method.
57957         (struct gl_oset_impl_base): Add dispose_fn field.
57958         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
57959         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
57960         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
57961         values.
57962         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
57963         (gl_tree_oset_free): Call dispose_fn on the dropped values.
57964         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
57965         dropped value.
57966         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
57967         dropped value.
57968         * tests/test-array_oset.c (main): Update.
57969         * tests/test-avltree_oset.c (main): Update.
57970         * tests/test-rbtree_oset.c (main): Update.
57971         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
57972
57973 2007-03-13  Bruno Haible  <bruno@clisp.org>
57974
57975         * tests/test-stdbool.c (i): Update after last patch.
57976
57977 2007-03-12  Bruno Haible  <bruno@clisp.org>
57978
57979         * lib/quotearg.c: Include <wctype.h> early, before the definition of
57980         the iswprint macro. Needed on Solaris 2.5.1.
57981
57982 2007-03-12  Bruno Haible  <bruno@clisp.org>
57983
57984         * tests/test-printf-frexp.c (main): Declare x as volatile.
57985
57986 2007-03-12  Simon Josefsson  <simon@josefsson.org>
57987
57988         * doc/gnulib.texi (Build robot for gnulib): New section.
57989
57990 2007-03-12  Jim Meyering  <jim@meyering.net>
57991
57992         * build-aux/bootstrap: New file.
57993         * build-aux/bootstrap.conf: New file, from coreutils.
57994
57995 2007-03-11  Bruno Haible  <bruno@clisp.org>
57996
57997         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
57998
57999 2007-03-12  Simon Josefsson  <simon@josefsson.org>
58000
58001         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
58002         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
58003         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
58004
58005 2007-03-11  Bruno Haible  <bruno@clisp.org>
58006
58007         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
58008         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
58009
58010 2007-03-11  Bruno Haible  <bruno@clisp.org>
58011
58012         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
58013         formula. Needed for SunPRO C 5.0.
58014
58015 2007-03-11  Bruno Haible  <bruno@clisp.org>
58016
58017         * modules/long-options (Depends-on): Add getopt.
58018
58019 2007-03-11  Bruno Haible  <bruno@clisp.org>
58020
58021         * modules/modechange (Depends-on): Add stdbool.
58022
58023 2007-03-11  Bruno Haible  <bruno@clisp.org>
58024
58025         * modules/i-ring (Depends-on): Add stdbool.
58026
58027 2007-03-11  Bruno Haible  <bruno@clisp.org>
58028
58029         * modules/gc-des (Depends-on): Add stdbool.
58030
58031 2007-03-11  Bruno Haible  <bruno@clisp.org>
58032
58033         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
58034
58035 2007-03-11  Bruno Haible  <bruno@clisp.org>
58036
58037         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
58038
58039 2007-03-11  Bruno Haible  <bruno@clisp.org>
58040
58041         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
58042
58043 2007-03-11  Bruno Haible  <bruno@clisp.org>
58044
58045         * lib/vasnprintf.c (sprintf): Undefine.
58046
58047 2007-03-11  Bruno Haible  <bruno@clisp.org>
58048
58049         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
58050         initializers in SunPRO C and Compaq C compilers.
58051
58052 2007-03-11  Bruno Haible  <bruno@clisp.org>
58053
58054         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
58055         decrementing code ANSI C compliant.
58056
58057 2007-03-11  Bruno Haible  <bruno@clisp.org>
58058
58059         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
58060         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
58061
58062 2007-03-11  Bruno Haible  <bruno@clisp.org>
58063
58064         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
58065         <stdbool.h> substitute doesn't pass.
58066
58067 2007-03-11  Bruno Haible  <bruno@clisp.org>
58068
58069         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
58070
58071 2007-03-11  Bruno Haible  <bruno@clisp.org>
58072
58073         * gnulib-tool (func_create_megatestdir): Create also an autobuild
58074         script, for submission to autobuild.josefsson.org.
58075
58076 2007-03-10  Bruno Haible  <bruno@clisp.org>
58077
58078         * modules/canonicalize-lgpl-tests: New file.
58079         * tests/test-canonicalize-lgpl.sh: New file.
58080         * tests/test-canonicalize-lgpl.c: New file.
58081
58082         * modules/c-strcase-tests: New file.
58083         * tests/test-c-strcase.sh: New file.
58084         * tests/test-c-strcasecmp.c: New file.
58085         * tests/test-c-strncasecmp.c: New file.
58086
58087         * modules/atexit-tests: New file.
58088         * tests/test-atexit.sh: New file.
58089         * tests/test-atexit.c: New file.
58090
58091 2007-03-10  Bruno Haible  <bruno@clisp.org>
58092
58093         * tests/test-binary-io.sh: Use temporary filenames that are not so
58094         likely to clash with those of other tests (in a parallel make).
58095         * tests/test-binary-io.c: Likewise.
58096
58097 2007-03-10  Bruno Haible  <bruno@clisp.org>
58098
58099         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
58100         fallback; use #error instead.
58101         Suggested by Simon Josefsson.
58102
58103 2007-03-10  Bruno Haible  <bruno@clisp.org>
58104
58105         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
58106         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
58107         first and the last.
58108
58109 2007-03-10  Bruno Haible  <bruno@clisp.org>
58110
58111         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
58112
58113 2007-03-10  Bruno Haible  <bruno@clisp.org>
58114
58115         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
58116         "make distcheck".
58117         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
58118         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
58119         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
58120
58121 2007-03-10  Bruno Haible  <bruno@clisp.org>
58122
58123         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
58124         variable.
58125         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
58126         variable.
58127
58128 2007-03-09  Eric Blake  <ebb9@byu.net>
58129         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
58130
58131         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
58132         types are not being provided by gnulib.
58133         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
58134         types are supported.
58135
58136 2007-03-10  Bruno Haible  <bruno@clisp.org>
58137
58138         * lib/stdio_.h (__attribute__): New macro.
58139         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
58140         vsprintf): Specify __attribute__ __format__ for GCC.
58141         Suggested by Eric Blake.
58142
58143 2007-03-09  Bruno Haible  <bruno@clisp.org>
58144
58145         * modules/printf-posix-tests: New file.
58146         * tests/test-printf-posix.sh: New file.
58147         * tests/test-printf-posix.c: New file.
58148
58149         * modules/printf-posix: New file.
58150         * lib/printf.c: New file.
58151         * m4/printf-posix-rpl.m4: New file.
58152         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
58153         REPLACE_PRINTF.
58154         * lib/stdio_.h (printf): New declaration.
58155         (format, __format__, ____printf____, ____scanf____, ____strftime____,
58156         ____strfmon____): New macros.
58157         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
58158         REPLACE_PRINTF.
58159
58160 2007-03-09  Bruno Haible  <bruno@clisp.org>
58161
58162         * tests/test-vasnprintf-posix2.sh: New file.
58163         * tests/test-vasnprintf-posix2.c: New file.
58164         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
58165         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
58166         (Makefile.am): Activate test-vasnprintf-posix2.sh.
58167
58168         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
58169         a locale dependent decimal point, rather than always '.'.
58170
58171 2007-03-09  Eric Blake  <ebb9@byu.net>
58172
58173         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
58174         spite of platforms like Tandem/NSK that define it to -1.
58175
58176 2007-03-08  Bruno Haible  <bruno@clisp.org>
58177
58178         * modules/vprintf-posix-tests: New file.
58179         * tests/test-vprintf-posix.sh: New file.
58180         * tests/test-vprintf-posix.c: New file.
58181         * tests/test-printf-posix.h: New file.
58182
58183         * modules/vprintf-posix: New file.
58184         * lib/vprintf.c: New file.
58185         * m4/vprintf-posix.m4: New file.
58186         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
58187         REPLACE_VPRINTF.
58188         * lib/stdio_.h (vprintf): New declaration.
58189         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
58190         REPLACE_VPRINTF.
58191
58192 2007-03-08  Bruno Haible  <bruno@clisp.org>
58193
58194         * modules/fprintf-posix-tests: New file.
58195         * tests/test-fprintf-posix.sh: New file.
58196         * tests/test-fprintf-posix.c: New file.
58197
58198         * modules/fprintf-posix: New file.
58199         * lib/fprintf.c: New file.
58200         * m4/fprintf-posix.m4: New file.
58201         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
58202         REPLACE_FPRINTF.
58203         * lib/stdio_.h (fprintf): New declaration.
58204         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
58205         REPLACE_FPRINTF.
58206
58207 2007-03-08  Bruno Haible  <bruno@clisp.org>
58208
58209         * modules/vfprintf-posix-tests: New file.
58210         * tests/test-vfprintf-posix.sh: New file.
58211         * tests/test-vfprintf-posix.c: New file.
58212         * tests/test-fprintf-posix.h: New file.
58213         * tests/test-fprintf-posix.out: New file.
58214
58215         * modules/vfprintf-posix: New file.
58216         * lib/vfprintf.c: New file.
58217         * m4/vfprintf-posix.m4: New file.
58218         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
58219         REPLACE_VFPRINTF.
58220         * lib/stdio_.h (vfprintf): New declaration.
58221         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
58222         REPLACE_VFPRINTF.
58223
58224 2007-03-08  Bruno Haible  <bruno@clisp.org>
58225
58226         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
58227
58228 2007-03-08  Bruno Haible  <bruno@clisp.org>
58229
58230         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
58231         instead of 'expr' invocations.
58232         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58233         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58234         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58235         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58236         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58237         Suggested by Paul Eggert.
58238
58239 2007-03-08  Bruno Haible  <bruno@clisp.org>
58240
58241         * modules/fseterr-tests: New file.
58242         * tests/test-fseterr.c: New file.
58243
58244         * modules/fseterr: New file.
58245         * lib/fseterr.h: New file.
58246         * lib/fseterr.c: New file.
58247
58248 2007-03-08  Bruno Haible  <bruno@clisp.org>
58249
58250         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
58251         * lib/getopt_.h: Likewise.
58252         * lib/mbswidth.h: Likewise.
58253         * lib/setenv.h: Likewise.
58254         * lib/vasnprintf.h: Likewise.
58255         * lib/vasprintf.h: Likewise.
58256         * lib/verror.h: Likewise.
58257         * lib/xsetenv.h: Likewise.
58258         * lib/xvasprintf.h: Likewise.
58259
58260 2007-03-08  Jim Meyering  <jim@meyering.net>
58261
58262         * users.txt: Add parted.
58263
58264         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
58265
58266 2007-03-07  Bruno Haible  <bruno@clisp.org>
58267
58268         * m4/printf.m4: Make the shell script snippets copy&pastable.
58269
58270 2007-03-02  Bruno Haible  <bruno@clisp.org>
58271
58272         * lib/netinet_in_.h: New file.
58273         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
58274         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
58275         * modules/netinet_in (Files): Add lib/netinet_in_.h.
58276         (Depends-on): Add absolute-header.
58277         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
58278         into netinet/in.h.
58279
58280 2007-03-03  Bruno Haible  <bruno@clisp.org>
58281
58282         * lib/sys_select_.h: New file.
58283         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
58284         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
58285         * modules/sys_select (Files): Add lib/sys_select_.h.
58286         (Depends-on): Add absolute-header.
58287         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
58288         into sys/select.h.
58289
58290 2007-03-02  Bruno Haible  <bruno@clisp.org>
58291
58292         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
58293         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
58294         values.
58295         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
58296         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
58297         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
58298         * modules/sys_socket (Depends-on): Add absolute-header.
58299         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
58300         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
58301         (Include): Remove requirement of inclusion of <sys/types.h>.
58302
58303 2007-03-02  Bruno Haible  <bruno@clisp.org>
58304
58305         * lib/byteswap_.h (bswap_32): Fix formula.
58306
58307 2007-03-06  Bruno Haible  <bruno@clisp.org>
58308
58309         * modules/sprintf-posix-tests: New file.
58310         * tests/test-sprintf-posix.c: New file.
58311
58312         * modules/sprintf-posix: New file.
58313         * lib/sprintf.c: New file.
58314         * m4/sprintf-posix.m4: New file.
58315         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
58316         REPLACE_SPRINTF.
58317         * lib/stdio_.h (sprintf): New declaration.
58318         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
58319         REPLACE_SPRINTF.
58320
58321 2007-03-06  Bruno Haible  <bruno@clisp.org>
58322
58323         * modules/vsprintf-posix-tests: New file.
58324         * tests/test-vsprintf-posix.c: New file.
58325         * tests/test-sprintf-posix.h: New file.
58326
58327         * modules/vsprintf-posix: New file.
58328         * lib/vsprintf.c: New file.
58329         * m4/vsprintf-posix.m4: New file.
58330         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
58331         REPLACE_VSPRINTF.
58332         * lib/stdio_.h (vsprintf): New declaration.
58333         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
58334         REPLACE_VSPRINTF.
58335
58336 2007-03-06  Bruno Haible  <bruno@clisp.org>
58337
58338         * modules/vsnprintf (Depend-on): Remove minmax.
58339
58340 2007-03-06  Bruno Haible  <bruno@clisp.org>
58341
58342         * modules/snprintf-posix-tests: New file.
58343         * tests/test-snprintf-posix.c: New file.
58344
58345         * modules/snprintf-posix: New file.
58346         * m4/snprintf-posix.m4: New file.
58347         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
58348         gl_FUNC_SNPRINTF.
58349         (gl_FUNC_SNPRINTF): Invoke it.
58350         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
58351         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
58352         is set.
58353         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
58354
58355 2007-03-06  Bruno Haible  <bruno@clisp.org>
58356
58357         * modules/vsnprintf-posix-tests: New file.
58358         * tests/test-vsnprintf-posix.c: New file.
58359         * tests/test-snprintf-posix.h: New file.
58360
58361         * modules/vsnprintf-posix: New file.
58362         * m4/vsnprintf-posix.m4: New file.
58363         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
58364         gl_FUNC_VSNPRINTF.
58365         (gl_FUNC_VSNPRINTF): Invoke it.
58366         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
58367         * lib/stdio_.h (vsnprintf): Define as a replacement if
58368         REPLACE_VSNPRINTF is set.
58369         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
58370
58371 2007-03-06  Bruno Haible  <bruno@clisp.org>
58372
58373         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
58374         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
58375
58376 2007-03-06  Bruno Haible  <bruno@clisp.org>
58377
58378         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
58379         (asinl): Declare also if HAVE_DECL_ASINL is set.
58380         (atanl): Declare also if HAVE_DECL_ATANL is set.
58381         (ceill): Declare also if HAVE_DECL_CEILL is set.
58382         (cosl): Declare also if HAVE_DECL_COSL is set.
58383         (expl): Declare also if HAVE_DECL_EXPL is set.
58384         (floorl): Declare also if HAVE_DECL_FLOORL is set.
58385         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
58386         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
58387         (logl): Declare also if HAVE_DECL_LOGL is set.
58388         (sinl): Declare also if HAVE_DECL_SINL is set.
58389         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
58390         (tanl): Declare also if HAVE_DECL_TANL is set.
58391         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
58392         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
58393         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
58394         declaration of frexpl, ldexpl.
58395         * modules/printf-frexpl (Depends-on): Add math.
58396         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
58397
58398 2007-03-05  Bruno Haible  <bruno@clisp.org>
58399
58400         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
58401         frexpl and ldexpl are declared.
58402         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
58403
58404 2007-03-05  Bruno Haible  <bruno@clisp.org>
58405
58406         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
58407         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
58408
58409 2007-03-05  Bruno Haible  <bruno@clisp.org>
58410
58411         * lib/stdio_.h: Include <stddef.h>.
58412
58413 2007-03-05  Bruno Haible  <bruno@clisp.org>
58414
58415         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
58416
58417 2007-03-05  Bruno Haible  <bruno@clisp.org>
58418
58419         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
58420         NetBSD 4, from Ralf Wildenhues.
58421
58422 2007-03-04  Bruno Haible  <bruno@clisp.org>
58423
58424         * lib/vasprintf.h: Update #if logic for the case when the functions
58425         exist but are overridden.
58426
58427 2007-03-04  Bruno Haible  <bruno@clisp.org>
58428
58429         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
58430         implementations: glibc-2.4 and MacOS X 10.3.
58431         * tests/test-vasnprintf-posix.c (test_function): Test also the case
58432         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
58433         * tests/test-vasprintf-posix.c (test_function): Likewise.
58434
58435 2007-03-04  Bruno Haible  <bruno@clisp.org>
58436
58437         * modules/vasprintf-posix-tests: New file.
58438         * tests/test-vasprintf-posix.c: New file.
58439
58440         * modules/vasprintf-posix: New file.
58441         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
58442         defined.
58443         * m4/vasprintf-posix.m4: New file.
58444         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
58445         gl_FUNC_VASPRINTF.
58446         (gl_FUNC_VASPRINTF): Invoke it.
58447         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
58448         here.
58449         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
58450
58451 2007-03-04  Bruno Haible  <bruno@clisp.org>
58452
58453         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
58454         REPLACE_GETTIMEOFDAY.
58455         * modules/sys_time (Makefile.am): Likewise.
58456         * m4/sys_time_h.m4: Likewise.
58457         * m4/gettimeofday.m4: Likewise.
58458
58459 2007-03-04  Bruno Haible  <bruno@clisp.org>
58460
58461         * modules/vasnprintf-posix-tests: New file.
58462         * tests/test-vasnprintf-posix.c: New file.
58463
58464         * modules/vasnprintf-posix: New file.
58465         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
58466         printf-frexpl.h.
58467         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
58468         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
58469         REPLACE_VASNPRINTF is defined.
58470         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
58471         gl_FUNC_VASNPRINTF.
58472         (gl_FUNC_VASNPRINTF): Invoke it.
58473         * m4/vasnprintf-posix.m4: New file.
58474         * m4/printf.m4: New file.
58475
58476 2007-03-04  Bruno Haible  <bruno@clisp.org>
58477
58478         Compile progreloc.c only if --enable-relocatable is specified.
58479         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
58480         if --enable-relocatable was specified.
58481         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
58482         lib_SOURCES.
58483
58484 2007-03-04  Jim Meyering  <jim@meyering.net>
58485
58486         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
58487         Use it consistently, rather than enumerating errno constants.
58488
58489 2007-03-04  Bruno Haible  <bruno@clisp.org>
58490
58491         * modules/xvasprintf-tests: New file.
58492         * tests/test-xvasprintf.c: New file.
58493
58494         * modules/vasprintf-tests: New file.
58495         * tests/test-vasprintf.c: New file.
58496
58497         * modules/vasnprintf-tests: New file.
58498         * tests/test-vasnprintf.c: New file.
58499
58500         * modules/vsnprintf-tests: New file.
58501         * tests/test-vsnprintf.c: New file.
58502
58503         * modules/snprintf-tests: New file.
58504         * tests/test-snprintf.c: New file.
58505
58506 2007-03-04  Bruno Haible  <bruno@clisp.org>
58507
58508         Compile relocatable.c only if --enable-relocatable is specified.
58509         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
58510         gl_RELOCATABLE_LIBRARY.
58511         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
58512         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
58513         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
58514         gl_RELOCATABLE_LIBRARY.
58515         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
58516         (Makefile.am): Remove lib_SOURCES.
58517         * modules/relocatable-lib-lgpl (configure.ac): Invoke
58518         gl_RELOCATABLE_LIBRARY.
58519         (Makefile.am): Remove lib_SOURCES.
58520         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
58521         always.
58522         * modules/relocatable-prog-wrapper (configure.ac): Invoke
58523         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
58524
58525 2007-03-04  Bruno Haible  <bruno@clisp.org>
58526
58527         * modules/argmatch-tests: New file.
58528         * tests/test-argmatch.c: New file.
58529
58530         * tests/test-allocsa.c (main): Halve the number of loop runs.
58531
58532         * modules/alloca-opt-tests: New file.
58533         * tests/test-alloca-opt.c: New file.
58534
58535 2007-03-04  Jim Meyering  <jim@meyering.net>
58536
58537         Work around difference between Linux ACLs and Solaris 10 ZFS.
58538         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
58539         for EINVAL.
58540
58541 2007-03-03  Bruno Haible  <bruno@clisp.org>
58542
58543         * modules/relocatable-prog (Depends-on): Add back progreloc's
58544         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
58545
58546 2007-03-03  Bruno Haible  <bruno@clisp.org>
58547
58548         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
58549         * modules/relocatable-lib: New file.
58550
58551 2007-03-03  Bruno Haible  <bruno@clisp.org>
58552
58553         * modules/relocatable-prog: Renamed from modules/relocatable.
58554         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
58555
58556 2007-03-03  Bruno Haible  <bruno@clisp.org>
58557
58558         * modules/relocatable-script (Files): Add doc/relocatable.texi,
58559         m4/relocatable-lib.m4.
58560         (Depends-on): Remove 'relocatable'.
58561         (configure.ac): Add gl_RELOCATABLE_NOP.
58562
58563 2007-03-03  Bruno Haible  <bruno@clisp.org>
58564
58565         * modules/relocatable-prog-wrapper: New file.
58566         * modules/relocatable (Depends-on): Add it. Remove all other
58567         dependencies except progname.
58568         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
58569
58570         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
58571         (gl_FUNC_STRERROR): Nop.
58572         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
58573
58574         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
58575         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
58576
58577         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
58578         (gl_FUNC_READLINK): Update.
58579
58580         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
58581
58582 2007-03-03  Bruno Haible  <bruno@clisp.org>
58583
58584         * lib/xreadlink.c: Include <unistd.h> unconditionally.
58585         * modules/xreadlink (Depends-on): Add unistd.
58586         * modules/xreadlink-with-size (Depends-on): Likewise.
58587
58588 2007-03-03  Bruno Haible  <bruno@clisp.org>
58589
58590         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
58591         extracted from gt_FUNC_SETENV.
58592         (gt_FUNC_SETENV): Remove macro.
58593         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
58594         remove gt_FUNC_SETENV.
58595
58596 2007-03-03  Bruno Haible  <bruno@clisp.org>
58597
58598         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
58599         ENABLE_RELOCATABLE here.
58600         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
58601
58602 2007-03-03  Bruno Haible  <bruno@clisp.org>
58603
58604         * modules/rbtreehash-list-tests (Depends-on): Add progname.
58605         * tests/test-rbtreehash_list.c: Include progname.h.
58606         (main): Call set_program_name.
58607
58608         * modules/rbtree-oset-tests (Depends-on): Add progname.
58609         * tests/test-rbtree_oset.c: Include progname.h.
58610         (main): Call set_program_name.
58611
58612         * modules/rbtree-list-tests (Depends-on): Add progname.
58613         * tests/test-rbtree_list.c: Include progname.h.
58614         (main): Call set_program_name.
58615
58616         * modules/linked-list-tests (Depends-on): Add progname.
58617         * tests/test-linked_list.c: Include progname.h.
58618         (main): Call set_program_name.
58619
58620 2007-03-03  Bruno Haible  <bruno@clisp.org>
58621
58622         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
58623         All uses of __restrict changed to _Restrict_.
58624         * lib/glob_.h (__restrict): Remove macro.
58625
58626 2007-03-02  Bruno Haible  <bruno@clisp.org>
58627
58628         * modules/gettext (configure.ac): Require gettext infrastructure
58629         from version 0.16.1.
58630
58631 2007-03-02  Bruno Haible  <bruno@clisp.org>
58632
58633         * modules/linkedhash-list-tests (Depends-on): Add progname.
58634         * tests/test-linkedhash_list.c: Include progname.h.
58635         (main): Call set_program_name.
58636
58637         * modules/carray-list-tests (Depends-on): Add progname.
58638         * tests/test-carray_list.c: Include progname.h.
58639         (main): Call set_program_name.
58640
58641         * modules/avltreehash-list-tests (Depends-on): Add progname.
58642         * tests/test-avltreehash_list.c: Include progname.h.
58643         (main): Call set_program_name.
58644
58645         * modules/avltree-oset-tests (Depends-on): Add progname.
58646         * tests/test-avltree_oset.c: Include progname.h.
58647         (main): Call set_program_name.
58648
58649         * modules/avltree-list-tests (Depends-on): Add progname.
58650         * tests/test-avltree_list.c: Include progname.h.
58651         (main): Call set_program_name.
58652
58653         * modules/array-oset-tests (Depends-on): Add progname.
58654         * tests/test-array_oset.c: Include progname.h.
58655         (main): Call set_program_name.
58656
58657         * modules/array-list-tests (Depends-on): Add progname.
58658         * tests/test-array_list.c: Include progname.h.
58659         (main): Call set_program_name.
58660
58661         * modules/argp-tests (Depends-on): Add progname.
58662         * tests/test-argp.c: Include argp.h first. Include progname.h.
58663         (main): Call set_program_name.
58664
58665 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
58666
58667         * doc/gnulib-tool.texi (Initial import): Reword description of
58668         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
58669         limited effect even if defined after the first system include.
58670
58671 2007-03-01  Bruno Haible  <bruno@clisp.org>
58672
58673         * build-aux/config.libpath: Update to libtool-1.5.22.
58674         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
58675
58676 2007-03-01  Bruno Haible  <bruno@clisp.org>
58677
58678         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
58679         foo_CFLAGS.
58680         Reported by Ralf Wildenhues.
58681
58682 2007-03-01  Bruno Haible  <bruno@clisp.org>
58683
58684         * build-aux/install-reloc: Remove object files left over by some
58685         compilers.
58686         Reported by Ralf Wildenhues.
58687
58688 2007-03-01  Bruno Haible  <bruno@clisp.org>
58689
58690         * build-aux/install-reloc: Break long lines.
58691
58692 2007-03-01  Bruno Haible  <bruno@clisp.org>
58693
58694         * doc/relocatable.texi: Document that it may not work on OpenBSD.
58695         Reported by Ralf Wildenhues.
58696
58697 2007-03-01  Bruno Haible  <bruno@clisp.org>
58698
58699         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
58700         include ordering constraints.
58701
58702 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
58703
58704         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
58705         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
58706         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
58707         as another example.
58708         * lib/time_.h: Fix misspelling.
58709         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
58710         Require gl_HEADER_TIME_H_DEFAULTS.
58711         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
58712         * m4/time_r.m4 (gl_TIME_R): Likewise.
58713         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
58714
58715 2007-03-01  Bruno Haible  <bruno@clisp.org>
58716
58717         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
58718         * m4/utimens.m4 (gl_UTIMENS): Likewise.
58719
58720 2007-03-01  Jim Meyering  <jim@meyering.net>
58721
58722         * modules/xreadlink (Maintainer): Add my name.
58723         * modules/xreadlink-with-size (Depends-on): Alphabetize.
58724
58725 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
58726             Bruno Haible  <bruno@clisp.org>
58727
58728         * build-aux/install-reloc: Compile also c-ctype.c.
58729         * build-aux/relocatable.sh.in: New file.
58730         * doc/relocatable.texi: New file.
58731         * doc/relocatable-maint.texi: New file.
58732         * doc/gnulib.texi: Include relocatable-maint.texi.
58733         * lib/progreloc.c: Include unistd.h unconditionally.
58734         * lib/relocwrapper.c: Include unistd.h unconditionally.
58735         Include c-ctype.h.
58736         (add_dotbin): Use c_tolower.
58737         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
58738         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
58739         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
58740         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
58741         to m4/relocatable-lib.m4.
58742         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
58743         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
58744         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
58745         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
58746         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
58747         * modules/relocatable: New file.
58748         * modules/relocatable-lib: New file.
58749         * modules/relocatable-script: New file.
58750
58751 2007-02-28  Bruno Haible  <bruno@clisp.org>
58752
58753         Import --enable-relocatable infrastructure.
58754         * build-aux/config.libpath: New file, from GNU gettext.
58755         * build-aux/install-reloc: New file, from GNU gettext.
58756         * build-aux/reloc-ldflags: New file, from GNU gettext.
58757         * lib/relocatable.h: New file, from GNU gettext.
58758         * lib/relocatable.c: New file, from GNU gettext.
58759         * lib/relocwrapper.c: New file, from GNU gettext.
58760         * m4/relocatable.m4: New file, from GNU gettext.
58761
58762 2007-02-28  Bruno Haible  <bruno@clisp.org>
58763
58764         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
58765
58766         * modules/xreadlink: New file, from GNU gettext with modifications.
58767         * lib/xreadlink.c: New file, from GNU gettext.
58768         * lib/xreadlink.h: Add comments.
58769         (xreadlink): New declaration.
58770
58771         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
58772         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
58773         lib/xreadlink-with-size.c.
58774         (configure.ac): Remove gl_XREADLINK invocation.
58775         (Makefile.am): Augment lib_SOURCES.
58776         * m4/xreadlink.m4: Remove file.
58777         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
58778         (xreadlink_with_size): Renamed from xreadink.
58779         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
58780         * modules/canonicalize (Depends-on): Replace xreadlink with
58781         xreadlink-with-size.
58782         * lib/canonicalize.c (canonicalize_filename_mode): Update.
58783
58784 2007-02-25  Jim Meyering  <jim@meyering.net>
58785
58786         * build-aux/announce-gen: When complaining about excess arguments,
58787         list them.
58788
58789 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
58790
58791         * README: Document signed integer overflow situation more
58792         accurately.
58793
58794 2007-02-25  Bruno Haible  <bruno@clisp.org>
58795
58796         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
58797         'a' or 'A' conversion.
58798
58799 2007-02-25  Bruno Haible  <bruno@clisp.org>
58800
58801         * modules/filename: Renamed from modules/pathname.
58802         (Files): Replace lib/pathname.h with lib/filename.h. Replace
58803         lib/concatpath.c with lib/concat-filename.c.
58804         (Makefile.am): Update.
58805         (Include): Replace pathname.h with filename.h.
58806         * lib/filename.h: Renamed from lib/pathname.h.
58807         (concatenated_filename): Renamed from concatenated_pathname.
58808         * lib/concat-filename.c: Renamed from lib/concatpath.c.
58809         (concatenated_filename): Renamed from concatenated_pathname.
58810         * lib/findprog.c: Include filename.h instead of pathname.h.
58811         (find_in_path): Update.
58812         * lib/javacomp.c: Include filename.h instead of pathname.h.
58813         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
58814         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
58815         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
58816         is_oldgcj_14_13_usable, is_javac_usable): Update.
58817         * lib/javaexec.c: Include filename.h instead of pathname.h.
58818         (execute_java_class): Update.
58819         * modules/findprog: Update.
58820         * modules/javacomp: Update.
58821         * modules/javaexec: Update.
58822         * MODULES.html.sh (File system functions): Add 'filename', remove
58823         'pathname'.
58824
58825 2007-02-25  Bruno Haible  <bruno@clisp.org>
58826
58827         * modules/printf-frexpl-tests: New file.
58828         * tests/test-printf-frexpl.c: New file.
58829
58830         * modules/printf-frexpl: New file.
58831         * lib/printf-frexpl.h: New file.
58832         * lib/printf-frexpl.c: New file.
58833         * m4/printf-frexpl.m4: New file.
58834
58835 2007-02-25  Bruno Haible  <bruno@clisp.org>
58836
58837         * modules/printf-frexp-tests: New file.
58838         * tests/test-printf-frexp.c: New file.
58839
58840         * modules/printf-frexp: New file.
58841         * lib/printf-frexp.h: New file.
58842         * lib/printf-frexp.c: New file.
58843         * m4/printf-frexp.m4: New file.
58844
58845 2007-02-25  Bruno Haible  <bruno@clisp.org>
58846
58847         Assume automake >= 1.10 for the tests.
58848         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
58849         * modules/arctwo-tests: Likewise.
58850         * modules/argp-tests: Likewise.
58851         * modules/avltree-list-tests: Likewise.
58852         * modules/avltree-oset-tests: Likewise.
58853         * modules/avltreehash-list-tests: Likewise.
58854         * modules/carray-list-tests: Likewise.
58855         * modules/crc-tests: Likewise.
58856         * modules/des-tests: Likewise.
58857         * modules/gc-arcfour-tests: Likewise.
58858         * modules/gc-arctwo-tests: Likewise.
58859         * modules/gc-des-tests: Likewise.
58860         * modules/gc-hmac-md5-tests: Likewise.
58861         * modules/gc-hmac-sha1-tests: Likewise.
58862         * modules/gc-md2-tests: Likewise.
58863         * modules/gc-md4-tests: Likewise.
58864         * modules/gc-md5-tests: Likewise.
58865         * modules/gc-pbkdf2-sha1-tests: Likewise.
58866         * modules/gc-rijndael-tests: Likewise.
58867         * modules/gc-sha1-tests: Likewise.
58868         * modules/gc-tests: Likewise.
58869         * modules/getaddrinfo-tests: Likewise.
58870         * modules/hmac-md5-tests: Likewise.
58871         * modules/hmac-sha1-tests: Likewise.
58872         * modules/linked-list-tests: Likewise.
58873         * modules/linkedhash-list-tests: Likewise.
58874         * modules/lock-tests: Likewise.
58875         * modules/md2-tests: Likewise.
58876         * modules/md4-tests: Likewise.
58877         * modules/md5-tests: Likewise.
58878         * modules/rbtree-list-tests: Likewise.
58879         * modules/rbtree-oset-tests: Likewise.
58880         * modules/rbtreehash-list-tests: Likewise.
58881         * modules/read-file-tests: Likewise.
58882         * modules/rijndael-tests: Likewise.
58883         * modules/stdint-tests: Likewise.
58884         * modules/tls-tests: Likewise.
58885
58886 2007-02-24  Bruno Haible  <bruno@clisp.org>
58887
58888         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
58889         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
58890         function; instead check whether isnan with a double argument links.
58891         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
58892         function; instead check whether isnan with a 'long double' argument
58893         links.
58894         Reported by Eric Blake <ebb9@byu.net>.
58895
58896 2007-02-24  Bruno Haible  <bruno@clisp.org>
58897
58898         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
58899         defined.
58900         * lib/isnanl.c: Remove all code. Just include isnan.c.
58901         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
58902
58903 2007-02-25  Jim Meyering  <jim@meyering.net>
58904
58905         Avoid conflicting types for 'unsetenv' on FreeBSD.
58906         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
58907         conflicting with FreeBSD's (5.0 and 6.1) function declaration
58908         in stdlib.h.
58909
58910 2007-02-24  Bruno Haible  <bruno@clisp.org>
58911
58912         * modules/isnanl-nolibm-tests: New file.
58913         * tests/test-isnanl.c: New file.
58914
58915         * modules/isnanl-nolibm: New file.
58916         * lib/isnanl.h: New file.
58917         * lib/isnanl.c: New file.
58918         * m4/isnanl.m4: New file.
58919
58920 2007-02-24  Bruno Haible  <bruno@clisp.org>
58921
58922         * modules/isnan-nolibm-tests: New file.
58923         * tests/test-isnan.c: New file.
58924
58925         * modules/isnan-nolibm: New file.
58926         * lib/isnan.h: New file.
58927         * lib/isnan.c: New file.
58928         * m4/isnan.m4: New file.
58929
58930 2007-02-24  Bruno Haible  <bruno@clisp.org>
58931
58932         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
58933         assume that an exponent fits in 20 bits.
58934
58935 2007-02-24  Jim Meyering  <jim@meyering.net>
58936
58937         * m4/regex.m4: Update the description of the configure-time option,
58938         --without-included-regex, to state accurately what the defaults are,
58939         and perhaps to give people an idea why using this option is risky.
58940
58941 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
58942
58943         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
58944         loops on small arguments.  This attempts to avoid the problem
58945         Bruno Haible reported for AIX 4.3.2 in
58946         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
58947
58948 2007-02-23  Bruno Haible  <bruno@clisp.org>
58949
58950         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
58951         Needed for help2man.
58952
58953 2007-02-23  Karl Berry  <karl@gnu.org>
58954
58955         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
58956         exists, foo.h should be cvs-ignored, not committed.
58957
58958 2007-02-23  Eric Blake  <ebb9@byu.net>
58959
58960         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
58961         * lib/stat-time.h (includes): Likewise.
58962         * lib/utimecmp.c (includes): Likewise.
58963         * lib/utimens.h (includes): Likewise.
58964         * lib/getdate.y (includes): Also include "timespec.h" for use
58965         internal to the module.
58966         * modules/utimens (Depends-on): Revert yesterday's patch.
58967         * modules/nanosleep (Depends-on): Add missing dependency.
58968
58969 2007-02-22  Bruno Haible  <bruno@clisp.org>
58970
58971         * lib/glob.c: Don't include getlogin_r.h.
58972
58973 2007-02-22  Jim Meyering  <jim@meyering.net>
58974
58975         * modules/utimens (Depends-on): Add timespec, required for
58976         utimens.h's inclusion of timespec.h.
58977
58978 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
58979
58980         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
58981         long unreadable paths in GNU/Linux.  Problem reported by Andreas
58982         Schwab in
58983         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
58984         I'll try to think of a better way to fix the Solaris problem.
58985
58986         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
58987         like glibc; on Solaris 10, it fails with errno == EINVAL.
58988         POSIX says the behavior is unspecified if the first argument is NULL,
58989         so play it safe and never pass NULL to the system getcwd.
58990
58991 2007-02-21  Jim Meyering  <jim@meyering.net>
58992
58993         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
58994         of gettimeofday.  It would conflict with the one now always
58995         provided via sys_time_.h.  Reported by Matthew Woehlke, as
58996         an IRIX 6.5 build failure.
58997
58998 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
58999
59000         Minor fixups to port to Solaris 10 with Sun C 5.8.
59001         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
59002         * modules/getcwd (Depends-on): Add dirfd.
59003         * lib/putenv.c (putenv): #undef it.
59004         (rpl_putenv): New decl.
59005         (malloc, free): Include <stdlib.h> rather than prototyping separately.
59006
59007 2007-02-20  Bruno Haible  <bruno@clisp.org>
59008
59009         * modules/stdio-tests: New file.
59010         * tests/test-stdio.c: New file.
59011
59012         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
59013         (Depends-on): Add stdio.
59014         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
59015         (Include): Use <stdio.h> instead of vsnprintf.h.
59016         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
59017         HAVE_DECL_VSNPRINTF.
59018         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
59019
59020         * modules/snprintf (Files): Remove lib/snprintf.h.
59021         (Depends-on): Add stdio.
59022         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
59023         (Include): Use <stdio.h> instead of snprintf.h.
59024         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
59025         HAVE_DECL_SNPRINTF.
59026         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
59027         * lib/getaddrinfo.c: Likewise.
59028
59029         * modules/stdio: New file.
59030         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
59031         * lib/snprintf.h: Remove file.
59032         * lib/vsnprintf.h: Remove file.
59033         * lib/.cppi-disable: Remove snprintf.h.
59034         * m4/stdio_h.m4: New file.
59035         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
59036
59037 2007-02-20  Jim Meyering  <jim@meyering.net>
59038
59039         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
59040         used by e.g., mingw.  From Bruno Haible.
59041
59042 2007-02-19  Bruno Haible  <bruno@clisp.org>
59043
59044         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
59045         warnings.
59046         Reported by Ben Pfaff <blp@cs.stanford.edu>.
59047
59048 2007-02-19  Bruno Haible  <bruno@clisp.org>
59049
59050         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
59051         from mingw users.
59052
59053 2007-02-19  Bruno Haible  <bruno@clisp.org>
59054
59055         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
59056         warnings.
59057         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
59058
59059 2007-02-19  Jim Meyering  <jim@meyering.net>
59060
59061         Don't use FD after a successful "fdopendir (fd)".
59062         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
59063         Reset it by calling dirfd on the just-obtained DIR*.
59064
59065         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
59066         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
59067
59068 2007-02-18  Bruno Haible  <bruno@clisp.org>
59069
59070         * lib/readlink.c: Include <unistd.h>.
59071         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
59072         HAVE_READLINK.
59073         * modules/readlink (Depends-on): Add unistd.
59074         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59075         (Include): Add <unistd.h>.
59076
59077         * lib/getlogin_r.h: Remove file.
59078         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
59079         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
59080         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
59081         HAVE_DECL_GETLOGIN_R.
59082         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
59083         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59084         (Include): Use <unistd.h> instead of getlogin_r.h.
59085
59086         * lib/getcwd.h: Remove file.
59087         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
59088         * lib/xgetcwd.c: Likewise.
59089         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
59090         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
59091         * modules/getcwd (Files): Remove lib/getcwd.h.
59092         (Depends-on): Add unistd.
59093         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59094         (Include): Use <unistd.h> instad of getcwd.h.
59095
59096         * lib/ftruncate.c: Include <unistd.h> first.
59097         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
59098         Set HAVE_FTRUNCATE.
59099         * modules/ftruncate (Depends-on): Add unistd.
59100         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59101
59102         * lib/fchdir.c: Include <unistd.h> first.
59103         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
59104         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
59105         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
59106         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59107         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
59108
59109         * lib/dup2.c: Include <unistd.h> first.
59110         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
59111         HAVE_DUP2.
59112         * modules/dup2 (Depends-on): Add unistd.
59113         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59114
59115         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
59116         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
59117         REPLACE_CHOWN. Don't define chown as a macro here.
59118         * modules/chown (Depends-on): Add unistd.
59119         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59120
59121         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
59122         Add definition for GL_LINK_WARNING.
59123         (chown, dup2): New declarations.
59124         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
59125         link warning.
59126         (ftruncate): New declaration.
59127         (getcwd): New declaration, taken from old getcwd.h.
59128         (getlogin_r): New declaration, taken from old getlogin_r.h.
59129         (readlink): New declaration.
59130         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
59131         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
59132         (gl_PREREQ_UNISTD): Remove macro.
59133         (gl_UNISTD_MODULE_INDICATOR): New macro.
59134         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
59135         many new variables. Don't set UNISTD_H.
59136         * modules/unistd (Description): Change.
59137         (Depends-on): Add link-warning.
59138         (configure.ac): Update.
59139         (Makefile.am): Create unistd.h always. Substitute many new variables
59140         into it.
59141
59142 2007-02-18  Bruno Haible  <bruno@clisp.org>
59143
59144         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
59145         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
59146         HAVE_GETSUBOPT.
59147         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
59148         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
59149         * lib/getsubopt.h: Remove file.
59150         * modules/getsubopt (Files): Remove lib/getsubopt.h.
59151         (Depends-on): Add stdlib.
59152         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59153         (Includes): Use <stdlib.h> instead of getsubopt.h.
59154         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
59155         Set HAVE_GETSUBOPT.
59156         * lib/getsubopt.c: Don't include getsubopt.h.
59157
59158 2007-02-18  Bruno Haible  <bruno@clisp.org>
59159
59160         * modules/fchdir (Depends-on): Add dup2.
59161
59162 2007-02-18  Bruno Haible  <bruno@clisp.org>
59163
59164         * lib/stdlib_.h: Handle glibc's special invocation convention
59165         specially.
59166
59167 2007-02-18  Bruno Haible  <bruno@clisp.org>
59168
59169         * modules/stdlib-tests: New file.
59170         * tests/test-stdlib.c: New file.
59171
59172         * modules/mkstemp (Files): Remove lib/mkstemp.h.
59173         (Depends-on): Add stdlib.
59174         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59175         (Includes): Use <stdlib.h> instead of mkstemp.h.
59176         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
59177         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
59178         * lib/mkstemp.c: Don't include mkstemp.h.
59179         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
59180         * lib/stdlib--.h: Don't include mkstemp.h.
59181
59182         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
59183         (Depends-on): Add stdlib.
59184         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59185         (Includes): Use <stdlib.h> instead of mkdtemp.h.
59186         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
59187         HAVE_MKDTEMP.
59188         * lib/mkdtemp.c: Don't include mkdtemp.h.
59189         * lib/clean-temp.c: Don't include mkdtemp.h.
59190
59191         * modules/exit (Files): Remove lib/exit.h.
59192         (Depends-on): Add stdlib.
59193         (Makefile.am): Remove lib_SOURCES.
59194         (Include): Use <stdlib.h> instead of exit.h.
59195         * lib/argmatch.c: Don't include exit.h.
59196         * lib/execute.c: Likewise.
59197         * lib/pagealign_alloc.c: Likewise.
59198         * lib/pipe.c: Likewise.
59199         * lib/wait-process.c: Likewise.
59200         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
59201         * lib/exitfail.c: Likewise.
59202         * lib/savewd.c: Likewise.
59203         * lib/xsetenv.c: Likewise.
59204
59205         * modules/stdlib: New file.
59206         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
59207         and extra comments about mkstemp().
59208         * lib/exit.h: Remove file.
59209         * lib/mkdtemp.h: Remove file.
59210         * lib/mkstemp.h: Remove file.
59211         * m4/stdlib_h.m4: New file.
59212         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
59213
59214 2007-02-18  Bruno Haible  <bruno@clisp.org>
59215
59216         * modules/math-tests: New file.
59217         * tests/test-math.c: New file.
59218
59219         * modules/math: New file.
59220         * modules/mathl (Files): Remove lib/mathl.h.
59221         (Depends-on): Add math.
59222         (Makefile.am): Don't mention mathl.h.
59223         (Include): Use <math.h> instead of mathl.h.
59224         * lib/math_.h: New file.
59225         * lib/mathl.h: Remove file.
59226         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
59227         mathl.h.
59228         * lib/asinl.c: Likewise.
59229         * lib/atanl.c: Likewise.
59230         * lib/ceill.c: Likewise.
59231         * lib/cosl.c: Likewise.
59232         * lib/expl.c: Likewise.
59233         * lib/floorl.c: Likewise.
59234         * lib/frexpl.c: Likewise.
59235         * lib/ldexpl.c: Likewise.
59236         * lib/logl.c: Likewise.
59237         * lib/sincosl.c: Likewise.
59238         * lib/sinl.c: Likewise.
59239         * lib/sqrtl.c: Likewise.
59240         * lib/tanl.c: Likewise.
59241         * lib/trigl.c: Likewise.
59242         * m4/math_h.m4: New file.
59243         * MODULES.html.sh (Mathematics): Add math.
59244
59245 2007-02-17  Bruno Haible  <bruno@clisp.org>
59246
59247         * modules/wctype-tests: New file.
59248         * tests/test-wctype.c: New file.
59249
59250         * modules/wchar-tests: New file.
59251         * tests/test-wchar.c: New file.
59252
59253         * modules/unistd-tests: New file.
59254         * tests/test-unistd.c: New file.
59255
59256         * modules/time-tests: New file.
59257         * tests/test-time.c: New file.
59258
59259         * modules/sysexits-tests: New file.
59260         * tests/test-sysexits.c: New file.
59261
59262         * modules/sys_time-tests: New file.
59263         * tests/test-sys_time.c: New file.
59264
59265         * modules/sys_stat-tests: New file.
59266         * tests/test-sys_stat.c: New file.
59267
59268         * modules/sys_socket-tests: New file.
59269         * tests/test-sys_socket.c: New file.
59270
59271         * modules/sys_select-tests: New file.
59272         * tests/test-sys_select.c: New file.
59273
59274         * modules/string-tests: New file.
59275         * tests/test-string.c: New file.
59276
59277         * modules/stdbool-tests: New file.
59278         * tests/test-stdbool.c: New file.
59279
59280         * modules/netinet_in-tests: New file.
59281         * tests/test-netinet_in.c: New file.
59282
59283         * modules/inttypes-tests: New file.
59284         * tests/test-inttypes.c: New file.
59285
59286         * modules/fcntl-tests: New file.
59287         * tests/test-fcntl.c: New file.
59288
59289         * modules/byteswap-tests: New file.
59290         * tests/test-byteswap.c: New file.
59291
59292         * modules/arpa_inet-tests: New file.
59293         * tests/test-arpa_inet.c: New file.
59294
59295 2007-02-17  Bruno Haible  <bruno@clisp.org>
59296
59297         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
59298         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
59299         if the corresponding module is not enabled. Emit link warnings if
59300         the function is used nevertheless.
59301         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
59302         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
59303         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
59304         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
59305         * modules/inttypes (Depends-on): Add link-warning.
59306         (Makefile.am): Copy the contents of build-aux/link-warning.h into
59307         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
59308         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
59309         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
59310         * modules/imaxdiv (configure.ac): Likewise.
59311         * modules/strtoimax (configure.ac): Likewise.
59312         * modules/strtoumax (configure.ac): Likewise.
59313
59314 2007-02-17  Bruno Haible  <bruno@clisp.org>
59315
59316         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
59317         gl_STRING_MODULE_INDICATOR_DEFAULTS.
59318         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
59319         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
59320
59321 2007-02-17  Bruno Haible  <bruno@clisp.org>
59322
59323         * modules/link-warning: New file.
59324         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
59325         * lib/string_.h (GL_LINK_WARNING): Remove definition.
59326         * modules/string (Depends-on): Add link-warning.
59327         (Makefile.am): Copy the contents of build-aux/link-warning.h into
59328         string.h.
59329         * MODULES.html.sh (Support for building libraries and executables): Add
59330         link-warning.
59331
59332 2007-02-17  Bruno Haible  <bruno@clisp.org>
59333
59334         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
59335         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
59336         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
59337         long lines.
59338
59339 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
59340             Bruno Haible  <bruno@clisp.org>
59341
59342         * modules/tmpfile: New file.
59343         * lib/tmpfile.c: New file.
59344         * m4/tmpfile.m4: New file.
59345         * MODULES.html.sh (func_all_modules): New section "Input/output".
59346
59347 2007-02-15  Bruno Haible  <bruno@clisp.org>
59348
59349         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
59350         (supports_delete_on_close): New function.
59351         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
59352
59353 2007-02-14  Bruno Haible  <bruno@clisp.org>
59354
59355         * modules/mbspcasecmp-tests: New file.
59356         * tests/test-mbspcasecmp.sh: New file.
59357         * tests/test-mbspcasecmp.c: New file.
59358
59359         New module mbspcasecmp.
59360         * modules/mbspcasecmp: New file.
59361         * lib/mbspcasecmp.c: New file.
59362         * lib/string_.h (strncasecmp): Change warning message.
59363         (mbspcasecmp): New declaration.
59364         * m4/mbspcasecmp.m4: New file.
59365         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59366         GNULIB_MBSPCASECMP.
59367         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
59368         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
59369
59370 2007-02-14  Bruno Haible  <bruno@clisp.org>
59371
59372         * modules/mbsncasecmp-tests: New file.
59373         * tests/test-mbsncasecmp.sh: New file.
59374         * tests/test-mbsncasecmp.c: New file.
59375
59376         New module mbsncasecmp.
59377         * modules/mbsncasecmp: New file.
59378         * lib/mbsncasecmp.c: New file.
59379         * lib/string_.h (mbsncasecmp): New declaration.
59380         * m4/mbsncasecmp.m4: New file.
59381         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59382         GNULIB_MBSNCASECMP.
59383         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
59384         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
59385
59386 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
59387
59388         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
59389         Verify that it doesn't overlap with our flags.
59390         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
59391         do not have the desired effect in multibyte locales; instead, use
59392         mbscasecmp.
59393         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
59394         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
59395         we don't require GNU fnmatch ourselves (if our users require it, they
59396         should do so explicitly).
59397
59398         Fix regex code so it doesn't rely on strcasecmp.
59399         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
59400         Otherwise, include gnulib's langinfo.h.
59401         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
59402         undesirable behavior in non-C locales.  Instead, rely on localecharset.
59403         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
59404         * modules/regex (FILES): Remove m4/codeset.m4.
59405         (Depends-on): Add localcharset.  Remove strcase.
59406
59407 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59408
59409         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
59410         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
59411
59412 2007-02-13  Bruno Haible  <bruno@clisp.org>
59413
59414         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
59415         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59416
59417 2007-02-12  Bruno Haible  <bruno@clisp.org>
59418
59419         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
59420         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
59421         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
59422         time warning rather than a link error.
59423
59424 2007-02-12  Bruno Haible  <bruno@clisp.org>
59425
59426         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
59427         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
59428         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59429
59430 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
59431
59432         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
59433         args, not 2.
59434
59435 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
59436
59437         New module 'time', so that apps can include <time.h> as per
59438         POSIX and GNU instead of separate include files like time_r.h
59439         and timegm.h.  This implementation tries out a simpler approach
59440         for replacing decls in standard include files (as compared to
59441         the string module), somewhat as an experiment.
59442
59443         * config/srclist.txt: Comment out mktime.c for now.
59444         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
59445         since it doesn't apply any more.  Use generic wording instead.
59446         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
59447         'time'.
59448         * lib/time_.h, m4/time_h.m4, modules/time: New files.
59449         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
59450         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
59451         Don't include <sys/types.h>; no longer needed since we assume C89.
59452         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
59453         * lib/strftime.c: Likewise.
59454         * lib/time_r.c: Likewise.
59455         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
59456         * lib/nanosleep.c: Include <time.h> first, to check interface.
59457         * lib/strptime.c: Likewise.
59458         * lib/time_r.c: Likewise.
59459         * lib/timegm.c: Likewise.
59460         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
59461         needed.
59462         * lib/timegm.c: Don't include timegm.h; no longer needed.
59463         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
59464         time.h now handles any problems in that area.
59465         (struct timespec, nanosleep): Remove; time.h now arranges for these.
59466         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
59467         that time.h defines struct timespec.
59468         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
59469         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
59470         handles that.
59471         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
59472         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
59473         needed.  Set REPLACE_LOCALTIME.
59474         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
59475         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
59476         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
59477         nanosleep; time_h.m4 now does that.  Don't require
59478         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
59479         module handles this now.
59480         * modules/getdate (Depends-on): Remove timespec.  Add time.
59481         * modules/nanosleep (Depends-on): Likewise.
59482         * modules/stat-time (Depends-on): Likewise.
59483         * modules/nanosleep (Include): Include time.h, not timespec.h.
59484         * modules/strptime (Files): Remove lib/strptime.h.
59485         (Depends-on): Add extensions, time.
59486         (Include): Include time.h, not strptime.h.
59487         * modules/time_r (Files): Remove lib/time_r.h.
59488         (Depends-on): Add time.
59489         (Include): Include time.h, not time_r.h.
59490         * modules/timegm: Likewise.
59491         * modules/timespec (Description): Now does timespec-related decls
59492         of our own, instead of struct timespec itself.
59493         (Depends-on): Add time; remove extensions.
59494         (Maintainer): Add self.
59495         * modules/utimecmp (Depends-on): Add time; remove timespec.
59496         * modules/utimens (Depends-on): Likewise.
59497         * modules/xnanosleep (Depends-on): Likewise.
59498
59499 2007-02-11  Bruno Haible  <bruno@clisp.org>
59500
59501         * lib/c-strstr.c: Include allocsa.h.
59502         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
59503         * lib/c-strcasestr.c: Include allocsa.h.
59504         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
59505         * lib/strcasestr.c: Include allocsa.h.
59506         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
59507         * lib/mbsstr.c: Include allocsa.h.
59508         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
59509         allocsa/freesa instead of malloc/free.
59510         * lib/mbscasestr.c: Include allocsa.h.
59511         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
59512         allocsa/freesa instead of malloc/free.
59513         * modules/c-strstr (Depends-on): Add allocsa.
59514         * modules/c-strcasestr (Depends-on): Likewise.
59515         * modules/strcasestr (Depends-on): Likewise.
59516         * modules/mbsstr (Depends-on): Likewise.
59517         * modules/mbscasestr (Depends-on): Likewise.
59518
59519 2007-02-11  Bruno Haible  <bruno@clisp.org>
59520
59521         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
59522
59523         * modules/mbsspn-tests: New file.
59524         * tests/test-mbsspn.sh: New file.
59525         * tests/test-mbsspn.c: New file.
59526
59527 2007-02-11  Bruno Haible  <bruno@clisp.org>
59528
59529         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
59530
59531         * modules/mbspbrk-tests: New file.
59532         * tests/test-mbspbrk.sh: New file.
59533         * tests/test-mbspbrk.c: New file.
59534
59535 2007-02-11  Bruno Haible  <bruno@clisp.org>
59536
59537         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
59538         unneeded cast.
59539
59540         * modules/mbscspn-tests: New file.
59541         * tests/test-mbscspn.sh: New file.
59542         * tests/test-mbscspn.c: New file.
59543
59544 2007-02-11  Bruno Haible  <bruno@clisp.org>
59545
59546         * modules/mbscasecmp-tests: New file.
59547         * tests/test-mbscasecmp.sh: New file.
59548         * tests/test-mbscasecmp.c: New file.
59549
59550 2007-02-11  Bruno Haible  <bruno@clisp.org>
59551
59552         Ensure O(n) worst-case complexity of mbscasestr.
59553         * lib/mbscasestr.c: Include stdbool.h.
59554         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
59555         functions.
59556         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
59557         the bookkeeping indicates that it's worth it.
59558         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
59559
59560         * modules/mbscasestr-tests: New file.
59561         * tests/test-mbscasestr1.c: New file.
59562         * tests/test-mbscasestr2.sh: New file.
59563         * tests/test-mbscasestr2.c: New file.
59564         * tests/test-mbscasestr3.sh: New file.
59565         * tests/test-mbscasestr3.c: New file.
59566         * tests/test-mbscasestr4.sh: New file.
59567         * tests/test-mbscasestr4.c: New file.
59568         * m4/locale-tr.m4: New file.
59569
59570 2007-02-11  Bruno Haible  <bruno@clisp.org>
59571
59572         Ensure O(n) worst-case complexity of mbsstr.
59573         * lib/mbsstr.c: Include stdbool.h.
59574         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
59575         functions.
59576         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
59577         bookkeeping indicates that it's worth it.
59578         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
59579
59580         * modules/mbsstr-tests: New file.
59581         * tests/test-mbsstr1.c: New file.
59582         * tests/test-mbsstr2.sh: New file.
59583         * tests/test-mbsstr2.c: New file.
59584         * tests/test-mbsstr3.sh: New file.
59585         * tests/test-mbsstr3.c: New file.
59586         * m4/locale-fr.m4: New file.
59587
59588 2007-02-11  Bruno Haible  <bruno@clisp.org>
59589
59590         * lib/mbsrchr.c (mbsrchr): Fix bug.
59591
59592         * modules/mbsrchr-tests: New file.
59593         * tests/test-mbsrchr.sh: New file.
59594         * tests/test-mbsrchr.c: New file.
59595
59596 2007-02-11  Bruno Haible  <bruno@clisp.org>
59597
59598         * lib/mbschr.c (mbschr): Fix bug.
59599
59600         * modules/mbschr-tests: New file.
59601         * tests/test-mbschr.sh: New file.
59602         * tests/test-mbschr.c: New file.
59603         * m4/locale-zh.m4: New file.
59604
59605 2007-02-11  Bruno Haible  <bruno@clisp.org>
59606
59607         Support for copying multibyte string iterators.
59608         * lib/mbiter.h: Include <string.h>.
59609         (mbiter_multi_copy): New function.
59610         (mbi_copy): New macro.
59611         * lib/mbuiter.h: Include <string.h>.
59612         (mbuiter_multi_copy): New function.
59613         (mbui_copy): New macro.
59614
59615 2007-02-11  Bruno Haible  <bruno@clisp.org>
59616
59617         New module mbslen.
59618         * modules/mbslen: New file.
59619         * lib/mbslen.c: New file.
59620         * lib/string_.h (mbslen): New declaration.
59621         * m4/mbslen.m4: New file.
59622         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59623         GNULIB_MBSLEN.
59624         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
59625         * MODULES.html.sh (Internationalization functions): Add mbslen.
59626
59627 2007-02-11  Bruno Haible  <bruno@clisp.org>
59628
59629         Ensure O(n) worst-case complexity of strcasestr substitute.
59630         * lib/strcasestr.c: Include stdbool.h.
59631         (knuth_morris_pratt): New function.
59632         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
59633         bookkeeping indicates that it's worth it.
59634         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
59635
59636         * modules/strcasestr-tests: New file.
59637         * tests/test-strcasestr.c: New file.
59638
59639 2007-02-11  Bruno Haible  <bruno@clisp.org>
59640
59641         Ensure O(n) worst-case complexity of c_strcasestr.
59642         * lib/c-strcasestr.c: Include stdbool.h, string.h.
59643         (knuth_morris_pratt): New function.
59644         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
59645         the bookkeeping indicates that it's worth it.
59646         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
59647
59648         * modules/c-strcasestr-tests: New file.
59649         * tests/test-c-strcasestr.c: New file.
59650
59651 2007-02-11  Bruno Haible  <bruno@clisp.org>
59652
59653         Ensure O(n) worst-case complexity of c_strstr.
59654         * lib/c-strstr.c: Include stdbool.h, string.h.
59655         (knuth_morris_pratt): New function.
59656         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
59657         bookkeeping indicates that it's worth it.
59658         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
59659
59660         * lib/c-strstr.c: Complete rewrite for maintainability.
59661
59662         * modules/c-strstr-tests: New file.
59663         * tests/test-c-strstr.c: New file.
59664
59665 2007-02-11  Bruno Haible  <bruno@clisp.org>
59666
59667         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
59668         5.2.1 and earlier, whereby \055 was treated just like the range
59669         delimiter '-'.
59670         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
59671
59672 2007-02-08  Bruno Haible  <bruno@clisp.org>
59673
59674         * modules/regex (Depends-on): Add stdbool.
59675         Reported by Dalibor Topic <robilad@kaffe.org>.
59676
59677 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
59678
59679         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
59680         Prefer returning from main to exiting from it.
59681         Remove unnecessary parens after sizeof.
59682
59683 2007-02-05  Bruno Haible  <bruno@clisp.org>
59684
59685         New module mbssep.
59686         * modules/mbssep: New file.
59687         * lib/mbssep.c: New file.
59688         * lib/string_.h (strsep): Add a conditional link warning.
59689         (mbssep): New declaration.
59690         * m4/mbssep.m4: New file.
59691         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59692         GNULIB_MBSSEP.
59693         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
59694         * MODULES.html.sh (Internationalization functions): Add mbssep.
59695
59696 2007-02-05  Bruno Haible  <bruno@clisp.org>
59697
59698         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
59699         Optimize search in case of 1 delimiter.
59700
59701 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
59702
59703         * lib/acl.h: Include sys/types.h before sys/acl.h.
59704
59705 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
59706
59707         Merge upstream fix for glibc bugzilla #3957:
59708
59709         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
59710
59711         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
59712         bit for RE_HAT_LISTS_NOT_NEWLINE.
59713         (build_charclass_op): Remove bogus comment.
59714
59715 2007-02-05  Simon Josefsson  <simon@josefsson.org>
59716
59717         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
59718
59719 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
59720
59721         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
59722         * lib/memmem.c [!defined _LIBC]: Include config.h.
59723
59724 2007-02-04  Bruno Haible  <bruno@clisp.org>
59725
59726         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
59727         warning message.
59728
59729 2007-02-04  Bruno Haible  <bruno@clisp.org>
59730
59731         New module mbstok_r.
59732         * modules/mbstok_r: New file.
59733         * lib/mbstok_r.c: New file.
59734         * lib/string_.h (strtok_r): Change argument names to match the
59735         comments. Add a conditional link warning.
59736         (mbstok_r): New declaration.
59737         * m4/mbstok_r.m4: New file.
59738         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59739         GNULIB_MBSTOK_R.
59740         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
59741         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
59742
59743 2007-02-04  Bruno Haible  <bruno@clisp.org>
59744
59745         New module mbsspn.
59746         * modules/mbsspn: New file.
59747         * lib/mbsspn.c: New file.
59748         * lib/string_.h (strspn): Add a conditional link warning.
59749         (mbsspn): New declaration.
59750         * m4/mbsspn.m4: New file.
59751         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59752         GNULIB_MBSSPN.
59753         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
59754         * MODULES.html.sh (Internationalization functions): Add mbsspn.
59755
59756 2007-02-04  Bruno Haible  <bruno@clisp.org>
59757
59758         New module mbspbrk.
59759         * modules/mbspbrk: New file.
59760         * lib/mbspbrk.c: New file.
59761         * lib/string_.h (strpbrk): Add a conditional link warning.
59762         (mbspbrk): New declaration.
59763         * m4/mbspbrk.m4: New file.
59764         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59765         GNULIB_MBSPBRK.
59766         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
59767         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
59768
59769 2007-02-04  Bruno Haible  <bruno@clisp.org>
59770
59771         New module mbscspn.
59772         * modules/mbscspn: New file.
59773         * lib/mbscspn.c: New file.
59774         * lib/string_.h (strcspn): Add a conditional link warning.
59775         (mbscspn): New declaration.
59776         * m4/mbscspn.m4: New file.
59777         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59778         GNULIB_MBSCSPN.
59779         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
59780         * MODULES.html.sh (Internationalization functions): Add mbscspn.
59781
59782 2007-02-04  Bruno Haible  <bruno@clisp.org>
59783
59784         New module mbscasestr, reduced goal of strcasestr.
59785         * modules/mbscasestr: New file.
59786         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
59787         (mbscasestr): Renamed from strcasestr.
59788         * lib/strcasestr.c: Don't include mbuiter.h.
59789         (strcasestr): Remove support for multibyte locales.
59790         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
59791         Change the conditional link warning.
59792         (mbscasestr): New declaration.
59793         * m4/mbscasestr.m4: New file.
59794         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
59795         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
59796         REPLACE_STRCASESTR.
59797         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
59798         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
59799         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
59800         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
59801         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
59802         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
59803         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
59804         (Depends-on): Remove mbuiter.
59805         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
59806
59807 2007-02-04  Bruno Haible  <bruno@clisp.org>
59808
59809         Simplify handling of strncasecmp.
59810         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
59811         the conditional link warning.
59812         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
59813         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
59814         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
59815         * modules/strcase (configure.ac): Don't invoke
59816         gl_STRING_MODULE_INDICATOR.
59817         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
59818
59819 2007-02-04  Bruno Haible  <bruno@clisp.org>
59820
59821         New module mbscasecmp, reduced goal of strcasecmp.
59822         * modules/mbscasecmp: New file.
59823         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
59824         (mbscasecmp): Renamed from strcasecmp.
59825         * lib/strcasecmp.c: Don't include mbuiter.h.
59826         (strcasecmp): Remove support for multibyte locales.
59827         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
59828         Change the conditional link warning.
59829         (mbscasecmp): New declaration.
59830         * m4/mbscasecmp.m4: New file.
59831         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
59832         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
59833         REPLACE_STRCASECMP.
59834         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
59835         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59836         GNULIB_MBSCASECMP.
59837         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
59838         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
59839         * modules/strcase (Files): Remove m4/mbrtowc.m4.
59840         (Depends-on): Remove mbuiter.
59841         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
59842
59843 2007-02-04  Bruno Haible  <bruno@clisp.org>
59844
59845         New module mbsstr. Remove module strstr.
59846         * modules/mbsstr: New file.
59847         * modules/strstr: Remove file.
59848         * lib/mbsstr.c: Renamed from lib/strstr.c.
59849         (mbsstr): Renamed from strstr.
59850         * lib/string_.h (strstr): Remove declaration. Change the conditional
59851         link warning.
59852         (mbsstr): New declaration.
59853         * m4/mbsstr.m4: New file.
59854         * m4/strstr.m4: Remove file.
59855         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
59856         REPLACE_STRSTR.
59857         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
59858         Don't initialize GNULIB_STRSTR.
59859         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
59860         substitute GNULIB_STRSTR and REPLACE_STRSTR.
59861         * MODULES.html.sh (Internationalization functions): Add mbsstr.
59862         (Support for systems lacking ANSI C 89): Remove strstr.
59863
59864 2007-02-04  Bruno Haible  <bruno@clisp.org>
59865
59866         New module mbsrchr.
59867         * modules/mbsrchr: New file.
59868         * lib/mbsrchr.c: New file.
59869         * lib/string_.h (strrchr): Add a conditional link warning.
59870         (mbsrchr): New declaration.
59871         * m4/mbsrchr.m4: New file.
59872         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59873         GNULIB_MBSRCHR.
59874         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
59875         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
59876
59877 2007-02-04  Bruno Haible  <bruno@clisp.org>
59878
59879         New module mbschr.
59880         * modules/mbschr: New file.
59881         * lib/mbschr.c: New file.
59882         * lib/string_.h (strchr): Add a conditional link warning.
59883         (mbschr): New declaration.
59884         * m4/mbschr.m4: New file.
59885         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59886         GNULIB_MBSCHR.
59887         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
59888         * MODULES.html.sh (Internationalization functions): Add mbschr.
59889
59890 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
59891
59892         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
59893
59894         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
59895
59896 2007-02-04  Bruno Haible  <bruno@clisp.org>
59897
59898         New module description section 'configure.ac-early'.
59899         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
59900         (func_get_autoconf_early_snippet): New function.
59901         (func_import, func_create_testdir): Use it. Remove special cases for
59902         modules 'extensions' and 'lock'.
59903         * modules/extensions (configure.ac-early): Require
59904         gl_USE_SYSTEM_EXTENSIONS.
59905         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
59906
59907 2007-02-04  Bruno Haible  <bruno@clisp.org>
59908
59909         Make use of gcj-4.3's -fsource and -ftarget option.
59910         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
59911         and if so try the options -fsource and -ftarget.
59912         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
59913         source_version, ftarget_option, target_version arguments.
59914         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
59915         (is_envjavac_oldgcj_14_14_usable): Renamed from
59916         is_envjavac_gcj_14_14_usable.
59917         (is_envjavac_oldgcj_14_13_usable): Renamed from
59918         is_envjavac_gcj_14_13_usable.
59919         (is_gcj_present): Update.
59920         (is_gcj_43, is_gcj43_usable): New functions.
59921         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
59922         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
59923         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
59924         try the options -fsource and -ftarget.
59925
59926 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
59927
59928         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
59929         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
59930         larger value.
59931
59932 2007-02-03  Jim Meyering  <jim@meyering.net>
59933
59934         Give tools a better chance to allocate space for very large buffers.
59935         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
59936
59937         Make pwd and readlink work also when run with an unreadable parent dir
59938         on systems with openat support.
59939         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
59940         provided getcwd function, even when we have openat support.
59941         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
59942
59943 2007-02-02  Bruno Haible  <bruno@clisp.org>
59944
59945         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
59946         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
59947         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
59948         portability problems if one of these functions is only used on specific
59949         platforms.
59950         Reported by Paul Eggert.
59951
59952 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
59953
59954         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
59955         is causing more trouble than it's curing.
59956         * lib/regex_internal.h (__mempcpy): Remove.
59957         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
59958         (and make the code a tad smaller to boot).
59959         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
59960
59961 2007-02-02  Jim Meyering  <jim@meyering.net>
59962
59963         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
59964         section, not in the Makefile.am: one.
59965
59966 2007-02-02  Eric Blake  <ebb9@byu.net>
59967
59968         * lib/strchrnul.c: Always include config.h first.
59969
59970         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
59971         gnulib strstr is not necessary here.
59972
59973 2007-02-02  Simon Josefsson  <simon@josefsson.org>
59974
59975         * m4/socklen.m4: Fix typo.
59976
59977 2007-02-02  Eric Blake  <ebb9@byu.net>
59978
59979         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
59980         * modules/netinet_in (Makefile.am): Likewise.
59981
59982 2007-02-01  Bruno Haible  <bruno@clisp.org>
59983
59984         * lib/string_.h (GL_LINK_WARNING): New macro.
59985         (strcasecmp, strstr, strcasestr): If provided by the system,
59986         conditionally define as a macro that leads to a warning instead of to
59987         an error.
59988         (strncasecmp): Conditionally define as a macro that leads to a warning.
59989
59990 2007-02-01  Karl Berry  <karl@gnu.org>
59991
59992         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
59993
59994 2007-02-01  Bruno Haible  <bruno@clisp.org>
59995
59996         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
59997         renamings.
59998
59999 2007-02-01  Eric Blake  <ebb9@byu.net>
60000
60001         * modules/regex (Depends-on): Revert dependence on mempcpy.
60002         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
60003         module's definition of mempcpy.
60004         Reported by Paul Eggert.
60005
60006 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
60007
60008         * lib/string_.h: If the gnulib module XYZ is not present, undefine
60009         the symbol XYZ before redefining it.  This fixes a problem with
60010         programs that don't use XYZ, when compiled on systems that define
60011         XYZ to something else.
60012
60013 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
60014
60015         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
60016         occurs when "mkdir -m foo" creates a setgid directory that is (1)
60017         writeable to group or other and (2) is intended to have a special
60018         mode bit that is set or cleared.  In such a case, the directory
60019         should be neither group- nor other-writeable until the special
60020         mode bits are right.
60021
60022 2007-01-31  Eric Blake  <ebb9@byu.net>
60023
60024         * modules/mountlist (Depends-on): Add strstr.
60025
60026         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
60027         bug.
60028         * modules/string (Makefile.am): Remove redundant replacement.
60029         * modules/regex (Depends-on): Add mempcpy.
60030
60031 2007-01-31  Bruno Haible  <bruno@clisp.org>
60032
60033         New module description field 'Link'.
60034         * gnulib-tool (func_usage): Document --extract-link-directive.
60035         (sed_extract_prog): Recognize 'Link' directive.
60036         (func_get_link_directive): New function.
60037         (func_import): Show summary of link directives.
60038         Handle --extract-link-directive option.
60039         * modules/acl (Link): New section.
60040         * modules/clock-time (Link): New section.
60041         * modules/euidaccess (Link): New section.
60042         * modules/gettext (Link): New section.
60043         * modules/iconv (Link): New section.
60044         * modules/lock (Link): New section.
60045         * modules/nanosleep (Link): New section.
60046         * modules/readline (Link): New section.
60047
60048 2007-01-27  Bruno Haible  <bruno@clisp.org>
60049
60050         Enforce the use of gnulib modules for unportable <string.h> functions.
60051         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
60052         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
60053         (gl_HEADER_STRING_H_BODY): Require it.
60054         * lib/string_.h: If the gnulib module XYZ is not present, redefine
60055         the symbol XYZ to one that gives a link error.
60056         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
60057         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
60058         * modules/mempcpy (configure.ac): Likewise.
60059         * modules/memrchr (configure.ac): Likewise.
60060         * modules/stpcpy (configure.ac): Likewise.
60061         * modules/stpncpy (configure.ac): Likewise.
60062         * modules/strcase (configure.ac): Likewise.
60063         * modules/strcasestr (configure.ac): Likewise.
60064         * modules/strchrnul (configure.ac): Likewise.
60065         * modules/strdup (configure.ac): Likewise.
60066         * modules/strndup (configure.ac): Likewise.
60067         * modules/strnlen (configure.ac): Likewise.
60068         * modules/strpbrk (configure.ac): Likewise.
60069         * modules/strsep (configure.ac): Likewise.
60070         * modules/strstr (configure.ac): Likewise.
60071         * modules/strtok_r (configure.ac): Likewise.
60072
60073 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
60074
60075         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
60076
60077 2007-01-30  Jim Meyering  <jim@meyering.net>
60078
60079         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
60080
60081 2007-01-29  Bruno Haible  <bruno@clisp.org>
60082
60083         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
60084         * lib/execute.c: Likewise.
60085         * lib/pipe.c: Likewise.
60086         * lib/printf-args.h: Likewise.
60087         * lib/printf-args.c: Likewise.
60088         * lib/printf-parse.c: Likewise.
60089         * lib/vasnprintf.c: Likewise.
60090
60091 2007-01-29  Eric Blake  <ebb9@byu.net>
60092
60093         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
60094         declaration.
60095
60096 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
60097
60098         * lib/strptime.h (strptime): Use 'restrict' for args where
60099         POSIX requires this.
60100         * lib/strptime.c (strptime): Likewise.
60101         Change license notice from LGPL to GPL, since gnulib-tool will
60102         change this as needed.
60103         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
60104         defined.
60105         Include "strptime.h" first, to check interface.
60106         Do not #undef _LIBC and _NL_CURRENT.
60107         Do not include <stdlib.h>; no longer needed.
60108         Include "time_r.h" and declare ptime_locale_status
60109         only if _LIBC is not defined.
60110         (__P): Remove unused macro.
60111         (match_string): Bring back glibc version, but use it only if _LIBC
60112         is defined.
60113         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
60114         Remove unnecessary assertion and abort() call.
60115         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
60116         * m4/strptime.m4: Fix serial number comment.
60117         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
60118         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
60119         (Depends-on): Add time_r.
60120
60121 2007-01-29  Bruno Haible  <bruno@clisp.org>
60122
60123         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
60124         strptime.
60125         * modules/strptime (Depends-on): Add stdbool.
60126         * lib/strptime.h: Include <time.h> always. Add comments.
60127
60128 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
60129
60130         * modules/strptime: New file.
60131         * lib/strptime.h: New file.
60132         * lib/strptime.c: New file.
60133         * m4/strptime.m4: New file.
60134
60135 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
60136
60137         * MODULES.html.sh: New module mpsort.
60138         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
60139
60140         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
60141         a circularity problem with HP-UX ia64 reported by Bob Proulx in
60142         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
60143         All uses changed.
60144         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
60145         All uses changed.
60146         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
60147         to _Restrict_.
60148         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
60149         the parameter matches the prototype.
60150
60151 2007-01-28  Jim Meyering  <jim@meyering.net>
60152
60153         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
60154         sys/time.h here, reverting that part of the previous patch:
60155         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
60156
60157 2007-01-28  Bruno Haible  <bruno@clisp.org>
60158
60159         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
60160         value of $(SYS_TIME_H).
60161         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
60162         remove it conditionally, too. [added by Jim Meyering]
60163         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
60164         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
60165         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
60166         GETTIMEOFDAY_REPLACEMENT to 1.
60167
60168 2007-01-28  Bruno Haible  <bruno@clisp.org>
60169
60170         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
60171         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
60172         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
60173         Set UNISTD_H instead of UNISTD_H2.
60174         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
60175
60176 2007-01-28  Bruno Haible  <bruno@clisp.org>
60177
60178         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
60179         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
60180
60181 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60182
60183         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
60184         (func_create_testdir): Ensure C locale for `grep' and `tr'
60185         character ranges.
60186         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
60187         ACLOCAL_AMFLAGS parsing state machine.
60188
60189 2007-01-27  Bruno Haible  <bruno@clisp.org>
60190
60191         * modules/unistr/base: Update.
60192
60193 2007-01-27  Bruno Haible  <bruno@clisp.org>
60194
60195         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
60196         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
60197         * modules/unistr/u32-mbtouc-unsafe: Renamed from
60198         modules/unistr/u32-mbtouc.
60199         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
60200         * lib/unistr.h: Update.
60201         * lib/linebreak.c: Update.
60202         * modules/unistr/u32-mbtouc: Renamed from
60203         modules/unistr/u32-mbtouc-safe.
60204         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
60205         * lib/unistr.h: Update.
60206         * lib/unistr/u32-to-u8.c: Update.
60207         * lib/unistr/u32-to-u16.c: Update.
60208
60209 2007-01-27  Bruno Haible  <bruno@clisp.org>
60210
60211         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
60212         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
60213         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
60214         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
60215         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
60216         * modules/unistr/u16-mbtouc-unsafe: Renamed from
60217         modules/unistr/u16-mbtouc.
60218         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
60219         * lib/unistr.h: Update.
60220         * lib/linebreak.c: Update.
60221         * modules/linebreak: Update.
60222         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
60223         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
60224         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
60225         * modules/unistr/u16-mbtouc: Renamed from
60226         modules/unistr/u16-mbtouc-safe.
60227         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
60228         * lib/unistr.h: Update.
60229         * lib/unistr/u16-to-u8.c: Update.
60230         * modules/unistr/u16-to-u8: Update.
60231         * lib/unistr/u16-to-u32.c: Update.
60232         * modules/unistr/u16-to-u32: Update.
60233
60234 2007-01-27  Bruno Haible  <bruno@clisp.org>
60235
60236         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
60237         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
60238         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
60239         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
60240         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
60241         * modules/unistr/u8-mbtouc-unsafe: Renamed from
60242         modules/unistr/u8-mbtouc.
60243         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
60244         * lib/unistr.h: Update.
60245         * lib/striconveh.c: Update.
60246         * modules/striconveh: Update.
60247         * lib/linebreak.c: Update.
60248         * modules/linebreak: Update.
60249         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
60250         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
60251         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
60252         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
60253         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
60254         * lib/unistr.h: Update.
60255         * lib/striconveh.c: Update.
60256         * modules/striconveh: Update.
60257         * lib/unistr/u8-to-u16.c: Update.
60258         * modules/unistr/u8-to-u16: Update.
60259         * lib/unistr/u8-to-u32.c: Update.
60260         * modules/unistr/u8-to-u32: Update.
60261
60262 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60263
60264         Sync from Libtool.
60265         * lib/argz.c: Do not include strings.h nor memory.h, include
60266         string.h unconditionally.  Patch by Simon Josefsson.
60267
60268 2007-01-27  Bruno Haible  <bruno@clisp.org>
60269
60270         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
60271         from gl_HEADER_STRING_H_BODY.
60272         (gl_HEADER_STRING_H_BODY): Require it.
60273         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
60274         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
60275         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
60276         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
60277         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
60278         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
60279         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
60280         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
60281         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
60282         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
60283         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
60284         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
60285         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
60286         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
60287         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
60288
60289 2007-01-27  Bruno Haible  <bruno@clisp.org>
60290
60291         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
60292         check_PROGRAMS into noinst_PROGRAMS.
60293         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
60294         check_PROGRAMS in this case.
60295         (func_import): Set for_test to false.
60296         (func_create_testdir): Set for_test to true.
60297
60298 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
60299             Bruno Haible  <bruno@clisp.org>
60300
60301         * modules/strcasestr (Files): Remove lib/strcasestr.h.
60302         (Depends-on): Add string.
60303         (Includes): Use <string.h> instead of strcasestr.h.
60304         * modules/string (Makefile.am): Also substitute the value of
60305         REPLACE_STRCASESTR.
60306         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
60307         assume strcasestr is declared in <string.h> not <strings.h>. Also
60308         set REPLACE_STRCASESTR.
60309         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
60310         REPLACE_STRCASESTR.
60311         * lib/strcasestr.h: Remove file.
60312         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
60313         * lib/string_.h (strcasestr): New declaration.
60314
60315 2007-01-27  Bruno Haible  <bruno@clisp.org>
60316
60317         * lib/string_.h: Use 'extern'.
60318
60319 2007-01-27  Jim Meyering  <jim@meyering.net>
60320
60321         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
60322         of set-but-not-used local, "q".
60323
60324         * lib/mempcpy.c: Include <config.h> before <string.h>.
60325         This fixes a compilation error on HP-UX, due to the system's
60326         "restrict"-using mempcpy prototype.
60327
60328 2007-01-26  Bruno Haible  <bruno@clisp.org>
60329
60330         Small optimization.
60331         * lib/javacomp.c: Include c-strstr.h.
60332          (is_envjavac_gcj): Use c_strstr instead of strstr.
60333         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
60334
60335 2007-01-26  Bruno Haible  <bruno@clisp.org>
60336
60337         * MODULES.html.sh (Unicode string functions): Add the new modules.
60338
60339         * modules/uniconv/u32-strconv-to-locale: New file.
60340         * lib/uniconv/u32-strconv-to-locale.c: New file.
60341
60342         * modules/uniconv/u16-strconv-to-locale: New file.
60343         * lib/uniconv/u16-strconv-to-locale.c: New file.
60344
60345         * modules/uniconv/u8-strconv-to-locale: New file.
60346         * lib/uniconv/u8-strconv-to-locale.c: New file.
60347
60348         * modules/uniconv/u32-strconv-from-locale: New file.
60349         * lib/uniconv/u32-strconv-from-locale.c: New file.
60350
60351         * modules/uniconv/u16-strconv-from-locale: New file.
60352         * lib/uniconv/u16-strconv-from-locale.c: New file.
60353
60354         * modules/uniconv/u8-strconv-from-locale: New file.
60355         * lib/uniconv/u8-strconv-from-locale.c: New file.
60356
60357         * modules/uniconv/u32-strconv-to-enc: New file.
60358         * lib/uniconv/u32-strconv-to-enc.c: New file.
60359         * modules/uniconv/u32-strconv-to-enc-tests: New file.
60360         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
60361
60362         * modules/uniconv/u16-strconv-to-enc: New file.
60363         * lib/uniconv/u16-strconv-to-enc.c: New file.
60364         * lib/uniconv/u-strconv-to-enc.h: New file.
60365         * modules/uniconv/u16-strconv-to-enc-tests: New file.
60366         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
60367
60368         * modules/uniconv/u8-strconv-to-enc: New file.
60369         * lib/uniconv/u8-strconv-to-enc.c: New file.
60370         * modules/uniconv/u8-strconv-to-enc-tests: New file.
60371         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
60372
60373         * modules/uniconv/u32-strconv-from-enc: New file.
60374         * lib/uniconv/u32-strconv-from-enc.c: New file.
60375         * modules/uniconv/u32-strconv-from-enc-tests: New file.
60376         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
60377
60378         * modules/uniconv/u16-strconv-from-enc: New file.
60379         * lib/uniconv/u16-strconv-from-enc.c: New file.
60380         * modules/uniconv/u16-strconv-from-enc-tests: New file.
60381         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
60382
60383         * modules/uniconv/u8-strconv-from-enc: New file.
60384         * lib/uniconv/u8-strconv-from-enc.c: New file.
60385         * lib/uniconv/u-strconv-from-enc.h: New file.
60386         * modules/uniconv/u8-strconv-from-enc-tests: New file.
60387         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
60388
60389         * modules/uniconv/u32-conv-from-enc: New file.
60390         * lib/uniconv/u32-conv-from-enc.c: New file.
60391         * modules/uniconv/u32-conv-from-enc-tests: New file.
60392         * tests/uniconv/test-u32-conv-from-enc.c: New file.
60393
60394         * modules/uniconv/u16-conv-from-enc: New file.
60395         * lib/uniconv/u16-conv-from-enc.c: New file.
60396         * lib/uniconv/u-conv-from-enc.h: New file.
60397         * modules/uniconv/u16-conv-from-enc-tests: New file.
60398         * tests/uniconv/test-u16-conv-from-enc.c: New file.
60399
60400         * modules/uniconv/u8-conv-from-enc: New file.
60401         * lib/uniconv/u8-conv-from-enc.c: New file.
60402         * modules/uniconv/u8-conv-from-enc-tests: New file.
60403         * tests/uniconv/test-u8-conv-from-enc.c: New file.
60404
60405         * modules/uniconv/base: New file.
60406         * lib/uniconv.h: New file.
60407
60408 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
60409
60410         * doc/gnulib-tool.texi (Initial import): Update to match current
60411         behavior with strdup module.
60412         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
60413         * lib/memmem.h: Remove; all uses removed.  This is now done
60414         by <string.h>.
60415         * lib/mempcpy.h: Likewise.
60416         * lib/memrchr.h: Likewise.
60417         * lib/stpcpy.h: Likewise.
60418         * lib/stpncpy.h: Likewise.
60419         * lib/strcase.h: Likewise.
60420         * lib/strchrnul.h: Likewise.
60421         * lib/strdup.h: Likewise.
60422         * lib/strndup.h: Likewise.
60423         * lib/strnlen.h: Likewise.
60424         * lib/strpbrk.h: Likewise.
60425         * lib/strsep.h: Likewise.
60426         * lib/strstr.h: Likewise.
60427         * lib/strtok_r.h: Likewise.
60428         * lib/string_.h: New file.
60429         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
60430         Rely on <string.h> instead.
60431         * lib/canon-host.c: Likewise.
60432         * lib/chdir-long.c: Likewise.
60433         * lib/concatpath.c: Likewise.
60434         * lib/exclude.c: Likewise.
60435         * lib/fchdir.c: Likewise.
60436         * lib/getaddrinfo.c: Likewise.
60437         * lib/getcwd.c: Likewise.
60438         * lib/getsubopt.c: Likewise.
60439         * lib/glob.c: Likewise.
60440         * lib/hard-locale.c: Likewise.
60441         * lib/iconvme.c: Likewise.
60442         * lib/javacomp.c: Likewise.
60443         * lib/mempcpy.c: Likewise.
60444         * lib/memrchr.c: Likewise.
60445         * lib/regex_internal.h: Likewise.
60446         * lib/stpncpy.c: Likewise.
60447         * lib/strcasecmp.c: Likewise.
60448         * lib/strchrnul.c: Likewise.
60449         * lib/strdup.c: Likewise.
60450         * lib/striconv.c: Likewise.
60451         * lib/striconveh.c: Likewise.
60452         * lib/striconveha.c: Likewise.
60453         * lib/strncasecmp.c: Likewise.
60454         * lib/strndup.c: Likewise.
60455         * lib/strnlen.c: Likewise.
60456         * lib/strsep.c: Likewise.
60457         * lib/strstr.c: Likewise.
60458         * lib/strtok_r.c: Likewise.
60459         * lib/userspec.c: Likewise.
60460         * lib/w32spawn.h: Likewise.
60461         * lib/xstrndup.c: Likewise.
60462         * lib/mountlist.c (strstr): Remove decl.
60463         * m4/string_h.m4: New file.
60464         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
60465         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
60466         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
60467         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
60468         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
60469         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
60470         Set REPLACE_STRCASECMP if necessary.
60471         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
60472         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
60473         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
60474         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
60475         HAVE_DECL_STRDUP if necessary.
60476         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
60477         since gl_FUNC_STRNDUP does that now.
60478         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
60479         Check for decl here...
60480         (gl_PREREQ_STRNLEN): ... not here.
60481         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
60482         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
60483         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
60484         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
60485         necessary.
60486         * modules/string: New file.
60487         * modules/memmem (Files): Remove special-purpose include file.
60488         (Depends-on): Add string.
60489         (Include): Include <string.h>, not the removed file.
60490         * modules/mempcpy: Likewise.
60491         * modules/memrchr: Likewise.
60492         * modules/stpcpy: Likewise.
60493         * modules/stpncpy: Likewise.
60494         * modules/strcase: Likewise.
60495         * modules/strchrnul: Likewise.
60496         * modules/strdup: Likewise.
60497         * modules/strndup: Likewise.
60498         * modules/strnlen: Likewise.
60499         * modules/strpbrk: Likewise.
60500         * modules/strsep: Likewise.
60501         * modules/strstr: Likewise.
60502         * modules/strtok_r: Likewise.
60503         * tests/test-dirname.c: Don't include "strdup.h", since
60504         <string.h> now suffices.
60505         * tests/test-memmem.c: Don't include "memmem.h", since
60506         <string.h> now suffices.
60507
60508 2007-01-25  Bruno Haible  <bruno@clisp.org>
60509
60510         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
60511         *resultp is 0.
60512
60513         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
60514         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
60515         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
60516         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
60517
60518         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
60519         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
60520         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
60521         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
60522         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
60523         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
60524
60525 2007-01-24  Bruno Haible  <bruno@clisp.org>
60526
60527         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
60528         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
60529         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
60530         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
60531         gl_FUNC_FTS_CORE.
60532         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
60533         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
60534         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
60535         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
60536         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
60537         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
60538         gl_FUNC_FCHOWNAT.
60539         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
60540         gl_FUNC_STRFTIME.
60541         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
60542         Reported by Ralf Wildenhues.
60543
60544 2007-01-24  Bruno Haible  <bruno@clisp.org>
60545
60546         Drop AC_REQUIRE calls that are redundant with the module dependencies.
60547         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
60548         gl_GETADDRINFO.
60549         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
60550         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
60551         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
60552
60553 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
60554
60555         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
60556         Don't use 'exit'; just return from 'main'.
60557         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
60558
60559         * lib/fnmatch_.h: Readjust white space and comments to match
60560         glibc, to avoid spurious diffs.
60561
60562 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
60563
60564         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
60565         2004-12-01 change by Jakub Jelinek, since this code won't compile
60566         if !LIBC.  Problem reported by Bob Proulx.
60567
60568 2007-01-23  Bruno Haible  <bruno@clisp.org>
60569
60570         * lib/striconveh.c: Include c-strcaseeq.h.
60571         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
60572         * modules/striconveh (Depends-on): Add c-strcaseeq.
60573
60574 2007-01-23  Bruno Haible  <bruno@clisp.org>
60575
60576         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
60577
60578         * modules/c-strcaseeq: New file.
60579         * lib/c-strcaseeq.h: New file.
60580
60581         * modules/streq: New file.
60582         * lib/streq.h: New file.
60583
60584 2007-01-23  Bruno Haible  <bruno@clisp.org>
60585
60586         * modules/striconveha-tests: New file.
60587         * tests/test-striconveha.c: New file.
60588
60589         * lib/striconveha.h: Include <stdbool.h>.
60590         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
60591         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
60592         (mem_iconveha_notranslit): Renamed from mem_iconveha.
60593         (mem_iconveha): New function.
60594         (str_iconveha_notranslit): Renamed from str_iconveha.
60595         (str_iconveha): New function.
60596         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
60597         c-strcase.
60598
60599 2007-01-23  Bruno Haible  <bruno@clisp.org>
60600
60601         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
60602         encodings without forgiving before trying any encoding with handler.
60603         (str_iconveha): Try all encodings without forgiving before trying any
60604         encoding with handler.
60605
60606 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
60607
60608         Import the following changes from libc.
60609
60610         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
60611
60612         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
60613
60614         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
60615
60616         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
60617         normal_bracket label.
60618
60619         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
60620
60621         [BZ #361]
60622         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
60623         to normal_bracket after fetching the next character.
60624
60625 2007-01-22  Bruno Haible  <bruno@clisp.org>
60626
60627         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
60628         argument.
60629         * lib/striconveh.c (iconv_carefully_1): New function.
60630         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
60631         argument.
60632         (str_cd_iconveh): Update.
60633         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
60634         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
60635         * tests/test-striconveh.c (MAGIC): New macro.
60636         (new_offsets): New function.
60637         (main): Test call with and without offsets.
60638
60639 2007-01-22  Bruno Haible  <bruno@clisp.org>
60640
60641         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
60642         * modules/sys_select (Makefile.am): Likewise.
60643         * modules/sys_socket (Makefile.am): Likewise.
60644         * modules/sys_time (Makefile.am): Likewise.
60645
60646 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
60647
60648         * modules/gettimeofday (License): Change from GPL to LGPL, since
60649         gettimeofday is a library function.
60650
60651 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60652
60653         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
60654
60655 2007-01-21  Bruno Haible  <bruno@clisp.org>
60656
60657         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
60658
60659 2007-01-21  Bruno Haible  <bruno@clisp.org>
60660
60661         * modules/striconveha: New file.
60662         * lib/striconveha.h: New file.
60663         * lib/striconveha.c: New file.
60664         * MODULES.html.sh (Internationalization functions): Add striconveha.
60665         * lib/striconv.c (str_iconv): Optimize the case of an empty input
60666         string.
60667         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
60668
60669 2007-01-21  Bruno Haible  <bruno@clisp.org>
60670
60671         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
60672         * lib/striconveh.c (str_iconveh): Likewise.
60673
60674 2007-01-21  Bruno Haible  <bruno@clisp.org>
60675
60676         * lib/striconveh.h (mem_iconveh): New declaration.
60677         * lib/striconveh.c (mem_iconveh): New function.
60678         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
60679
60680 2007-01-21  Bruno Haible  <bruno@clisp.org>
60681
60682         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
60683
60684         * lib/striconveh.h (mem_cd_iconveh): Change specification.
60685         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
60686         original result buffer.
60687         (str_cd_iconveh): Update.
60688         * tests/test-striconveh.c (main): Update.
60689
60690         * lib/striconv.h (mem_cd_iconv): Change specification.
60691         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
60692         result buffer.
60693         (str_cd_iconv): Update.
60694         * tests/test-striconv.c (main): Update.
60695
60696 2007-01-21  Bruno Haible  <bruno@clisp.org>
60697
60698         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
60699
60700 2007-01-20  Jim Meyering  <jim@meyering.net>
60701
60702         * lib/userspec.c (parse_with_separator): If a user or group string
60703         starts with "+", skip the corresponding name-to-ID look-up, since
60704         such a look-up must fail: user and group names may not include "+".
60705
60706 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
60707
60708         * lib/poll.c: Include sys/time.h and time.h unconditionally,
60709         since we now assume the sys_time module.
60710         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
60711         check for sys/time.h; no longer needed.
60712         * modules/poll (Depends-on): Depend on sys_time.
60713
60714 2007-01-18  Bruno Haible  <bruno@clisp.org>
60715
60716         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
60717         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
60718
60719         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
60720         gettimeofday.
60721
60722         * tests/test-gettimeofday.c: Include <time.h>.
60723         (dummy): Remove variable.
60724
60725         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
60726         gl_HEADER_SYS_TIME_H.
60727         (gl_HEADER_SYS_TIME_H): New macro.
60728
60729         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
60730         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60731         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
60732         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
60733         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60734         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
60735         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
60736         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60737         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
60738         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
60739         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60740
60741         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
60742         last change; it caused a compilation error when cross-compiling to
60743         Cygwin.
60744
60745 2007-01-18  Jim Meyering  <jim@meyering.net>
60746
60747         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
60748         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
60749         than the race-prone "test -d sys || mkdir sys".
60750         (configure.ac): Use AC_PROG_MKDIR_P.
60751         * modules/sys_select: Likewise.
60752         * modules/sys_socket: Likewise.
60753         * modules/sys_time: Likewise.
60754
60755 2007-01-18  Eric Blake  <ebb9@byu.net>
60756
60757         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
60758         replace gettimeofday.
60759         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
60760         name, to avoid infinite recursion.
60761
60762 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
60763
60764         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
60765         module sys_time.
60766         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
60767         assume timespec.h defines struct timeval.
60768         * lib/settime.c: Likewise.
60769         * lib/utimens.c: Likewise.
60770         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
60771         since we now assume the gettimeofday module.
60772         * lib/tempname.c (__gen_tempname): Likewise.
60773         * lib/gettimeofday.h: Remove.
60774         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
60775         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
60776         Include <time.h>, for 'time()'.
60777         (localtime_buffer_addr): Also use this workaround if
60778         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
60779         to simplify the uses.  All uses changed.
60780         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
60781         that #undef is inside {}, and 'const' follows type name consistently.
60782         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
60783         (gettimeofday): Do not use the maximum possible value for
60784         tv->tv_usec, since that might break usages other than ls.c.
60785         Instead, we'll leave ls.c alone.  This undoes today's patch
60786         by Bruno.  Add a compile-time warning for 1s-clock resolution;
60787         we've never observed the problem but might as well keep the
60788         canary.
60789         * lib/nanosleep.c: Include timespec.h first, for interface check.
60790         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
60791         now assume the sys_time module.
60792         * lib/tempname.c: Likewise.
60793         * lib/timespec.h: Likewise.
60794         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
60795         needed.
60796         * lib/strftime.c: Likewise.
60797         * lib/timespec.h: Likewise.
60798         * lib/posixtm.c: Include posixtm.h first, for interface check.
60799         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
60800         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
60801         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
60802         * lib/sys_time_.h: New file.
60803         * lib/timespec.h (struct timespec): Use long int, not long.
60804         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
60805         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
60806         Remove obsolescent call to AC_HEADER_TIME.
60807         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
60808         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
60809         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
60810         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
60811         Likewise.
60812         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
60813         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
60814         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
60815         into the sys_time module.  Check for gettimeofday just once.
60816         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
60817         for gettimeofday signature to just check the signature.  Merely
60818         compile it, since linking doesn't test signature.  Improve test for
60819         whether gettimeofday.o is actually needed.
60820         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
60821         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
60822         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
60823         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60824         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
60825         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
60826         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
60827         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
60828         than worrying about sys/time.h.
60829         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
60830         Don't bother worrying about TIME_WITH_SYS_TIME.
60831         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
60832         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
60833         * m4/sys_time_h.m4: New file.
60834         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
60835         Don't include sys/time.h.  Return from main rather than exiting.
60836         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
60837         all uses changed.
60838         * modules/gethrxtime (Depends-on): Add sys_time.
60839         * modules/gettime (Depends-on): Likewise.
60840         * modules/gettimeofday (Depends-on): Likewise.
60841         * modules/nanosleep (Depends-on): Likewise.
60842         * modules/settime (Depends-on): Likewise.
60843         * modules/tempname (Depends-on): Likewise.
60844         * modules/utimens (Depends-on): Likewise.
60845         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
60846         (Include): Change back to <sys/time.h>.
60847         (Maintainer): Add self.
60848         * modules/sys_time: New file.
60849         * modules/tempname (Depends-on): Add gettimeofday.
60850         * tests/test-gettimeofday.c: Include <sys/time.h>
60851         rather than gettimeofday.h.
60852
60853 2007-01-17  Bruno Haible  <bruno@clisp.org>
60854
60855         * gnulib-tool (func_get_license): Revert last patch. Instead, let
60856         the license default to GPL.
60857         (func_create_testdir): Don't complain if a module is LGPL and its
60858         tests module depends on GPLed modules.
60859
60860 2007-01-17  Bruno Haible  <bruno@clisp.org>
60861
60862         * lib/gettimeofday.c (gettimeofday): Add code for the case
60863         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
60864         maximum possible value for tv->tv_usec, rather than the minimum one.
60865
60866 2005-10-08  Martin Lambers  <marlam@marlam.de>
60867 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
60868 2007-01-16  Bruno Haible  <bruno@clisp.org>
60869
60870         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
60871         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
60872         gl_FUNC_GETTIMEOFDAY.
60873         (Include): Add gettimeofday.h.
60874         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
60875         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
60876         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
60877         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
60878         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
60879         * lib/gettimeofday.h: New file.
60880         * lib/gettimeofday.c: Include <sys/timeb.h>.
60881         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
60882         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60883         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
60884         fall back on time().
60885
60886         * tests/test-gettimeofday.c: New file.
60887         * modules/gettimeofday-tests: New file.
60888
60889 2007-01-16  Eric Blake  <ebb9@byu.net>
60890
60891         * modules/fnmatch (Depends-on): Depend on wchar.
60892         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
60893         * m4/fnmatch.m4: Likewise.
60894         * modules/mbchar (Makefile.am): Assume <wchar.h>.
60895         * m4/mbchar.m4: Likewise.
60896         * modules/mbswidth (Depends-on): Depend on wchar.
60897         * lib/mbswidth.c: Assume <wchar.h>.
60898         * m4/mbswidth.m4: Likewise.
60899         * modules/quotearg (Depends-on): Depend on wchar.
60900         * lib/quotearg.c: Assume <wchar.h>.
60901         * m4/quotearg.m4: Likewise.
60902         * modules/regex (Depends-on): Depend on wchar.
60903         * lib/regex_internal.h: Assume <wchar.h>.
60904         * m4/regex.m4: Likewise.
60905         * modules/stdint (Depends-on): Depend on wchar.
60906         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
60907         * m4/stdint.m4: Likewise.
60908         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
60909         * modules/strftime (Depends-on): Depend on wchar.
60910         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
60911         * modules/strtol (Depends-on): Depend on wchar.
60912         * lib/strtol.c: Assume <wchar.h>.
60913         * modules/wcwidth (Depends-on): Depend on wchar.
60914         * lib/wcwidth.h: Assume <wchar.h>.
60915         * m4/wcwidth.m4: Likewise.
60916
60917 2007-01-16  Bruno Haible  <bruno@clisp.org>
60918
60919         * modules/csharpexec-script: New, created from...
60920         * modules/csharpexec: ... this.
60921
60922 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
60923
60924         * modules/javaexec-script: New, created from...
60925         * modules/javaexec: ... this.
60926
60927 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60928
60929         * modules/poll (Dependencies): Add sys_select.
60930
60931 2007-01-15  Jim Meyering  <jim@meyering.net>
60932
60933         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
60934         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
60935         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
60936         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
60937
60938 2007-01-15  Bruno Haible  <bruno@clisp.org>
60939
60940         * modules/striconveh: New file.
60941         * lib/striconveh.h: New file.
60942         * lib/striconveh.c: New file.
60943         * MODULES.html.sh (Internationalization functions): Add striconveh.
60944
60945         * modules/striconveh-tests: New file.
60946         * tests/test-striconveh.c: New file.
60947
60948 2007-01-15  Bruno Haible  <bruno@clisp.org>
60949
60950         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
60951         not from GNU libiconv or GNU libc.
60952
60953 2007-01-15  Bruno Haible  <bruno@clisp.org>
60954
60955         * doc/gnulib-intro.texi (Copyright): Explain the different license
60956         terms for module descriptions, autoconf macros, tests, documentation.
60957
60958 2007-01-14  Bruno Haible  <bruno@clisp.org>
60959
60960         * modules/striconv-tests: New file.
60961         * tests/test-striconv.c: New file.
60962
60963 2007-01-14  Bruno Haible  <bruno@clisp.org>
60964
60965         * modules/iconv-tests: New file.
60966         * tests/test-iconv.c: New file.
60967
60968 2007-01-14  Bruno Haible  <bruno@clisp.org>
60969
60970         * gnulib-tool (func_get_license): For test modules, use the license of
60971         the main module.
60972
60973 2007-01-14  Bruno Haible  <bruno@clisp.org>
60974
60975         * modules/iconv (Include): Clarify that <iconv.h> can only be included
60976         if iconv is found to exist.
60977
60978 2007-01-14  Bruno Haible  <bruno@clisp.org>
60979
60980         * modules/c-ctype-tests: New file.
60981         * tests/test-c-ctype.c: New file.
60982
60983 2007-01-14  Bruno Haible  <bruno@clisp.org>
60984
60985         * modules/binary-io-tests: New file.
60986         * tests/test-binary-io.sh: New file.
60987         * tests/test-binary-io.c: New file.
60988
60989 2007-01-14  Bruno Haible  <bruno@clisp.org>
60990
60991         * modules/array-oset-tests: New file.
60992         * tests/test-array_oset.c: New file.
60993
60994 2007-01-14  Bruno Haible  <bruno@clisp.org>
60995
60996         * modules/array-list-tests: New file.
60997         * tests/test-array_list.c: New file.
60998
60999 2007-01-14  Bruno Haible  <bruno@clisp.org>
61000
61001         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
61002         and make.
61003         Reported by Simon Josefsson in
61004         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
61005
61006 2007-01-14  Bruno Haible  <bruno@clisp.org>
61007
61008         * modules/allocsa-tests: New file.
61009         * tests/test-allocsa.c: New file.
61010
61011 2007-01-14  Bruno Haible  <bruno@clisp.org>
61012
61013         * modules/fchdir (Depends-on): Add absolute-header.
61014         * modules/unistd (Depends-on): Likewise.
61015
61016 2006-12-30  Bruno Haible  <bruno@clisp.org>
61017
61018         * modules/fchdir: New file.
61019         * modules/unistd (Files): Add lib/unistd_.h.
61020         (Makefile.am): Generate unistd.h from unistd_.h.
61021         * lib/fchdir.c: New file.
61022         * lib/dirent_.h: New file.
61023         * lib/unistd_.h: New file.
61024         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
61025         * m4/fchdir.m4: New file.
61026         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
61027         (gl_HEADER_UNISTD): Invoke it.
61028         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
61029         function.
61030         * lib/backupfile.c (opendir, closedir): Undefine.
61031         * lib/chown.c (open, close): Undefine.
61032         * lib/clean-temp.c (open, close): Undefine.
61033         * lib/copy-file.c (open, close): Undefine.
61034         * lib/execute.c (open, close): Undefine.
61035         * lib/fsusage.c (open, close): Undefine.
61036         * lib/gc-gnulib.c (open, close): Undefine.
61037         * lib/getcwd.c (opendir, closedir): Undefine.
61038         * lib/glob.c (opendir, closedir): Undefine.
61039         * lib/javacomp.c (open, close): Undefine.
61040         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
61041         * lib/openat-proc.c (open, close): Undefine.
61042         * lib/pagealign_alloc.c (open, close): Undefine.
61043         * lib/pipe.c (open, close): Undefine.
61044         * lib/progreloc.c (open, close): Undefine.
61045         * lib/savedir.c (opendir, closedir): Undefine.
61046         * lib/utime.c (open, close): Undefine.
61047         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
61048
61049 2007-01-10  Bruno Haible  <bruno@clisp.org>
61050
61051         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
61052
61053 2007-01-12  Eric Blake  <ebb9@byu.net>
61054
61055         Provide a robust <wchar.h>.  Further simplifications are now
61056         possible in other modules, but not included here.
61057         * modules/wchar: New module.
61058         * m4/wchar.m4: New file.
61059         * lib/wchar_.h: Likewise.
61060         * modules/mbchar (Depends-on): Depend on wchar, as the first use
61061         of the new module.
61062         * MODULES.html.sh (Extended multibyte and wide character utilities):
61063         New section.
61064
61065 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
61066
61067         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
61068         to a reasonable default for memory allocation.
61069         (xreadlink): Don't allocate a huge buffer, to work around a buggy
61070         file system that reports garbage st_size values for symlinks.
61071         Problem reported by Liyang Hu.
61072
61073 2007-01-11  Simon Josefsson  <simon@josefsson.org>
61074
61075         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
61076         Emacs .#* auto-save files).
61077
61078 2007-01-11  Bruno Haible  <bruno@clisp.org>
61079
61080         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
61081         directory.
61082
61083 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
61084
61085         Use @...@ consistently in lib/wctype_.h.
61086         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
61087         on it being set to 1 or 0.
61088         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
61089         go back to AC_SUBSTing it.
61090         * modules/wctype (Makefile.am): Undo previous change.
61091
61092 2007-01-10  Eric Blake  <ebb9@byu.net>
61093
61094         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
61095         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
61096         * modules/wctype (Makefile.am): Likewise.
61097         Reported by Chris McGuire.
61098
61099 2007-01-10  Jim Meyering  <jim@meyering.net>
61100
61101         fts.c: a small readability/maintainability improvement
61102         * lib/fts.c (fts_read): Make this code slightly more readable and
61103         maintainable by hoisting the "sp->fts_cur = p" assignments to
61104         immediately follow the statements that set P.  Derived from
61105         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
61106
61107 2007-01-10  Eric Blake  <ebb9@byu.net>
61108
61109         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
61110         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
61111         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
61112         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
61113         Reported by Chris McGuire.
61114
61115 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61116
61117         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
61118         in sed script.
61119
61120 2007-01-09  Bruno Haible  <bruno@clisp.org>
61121
61122         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
61123         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
61124         variables.
61125         (func_module): Use them.
61126
61127 2007-01-09  Bruno Haible  <bruno@clisp.org>
61128
61129         * modules/unistr/base: New file.
61130         * lib/unistr.h: New file.
61131
61132         * modules/unistr/u8-to-u16: New file.
61133         * lib/unistr/u8-to-u16.c: New file.
61134
61135         * modules/unistr/u8-to-u32: New file.
61136         * lib/unistr/u8-to-u32.c: New file.
61137
61138         * modules/unistr/u16-to-u8: New file.
61139         * lib/unistr/u16-to-u8.c: New file.
61140
61141         * modules/unistr/u16-to-u32: New file.
61142         * lib/unistr/u16-to-u32.c: New file.
61143
61144         * modules/unistr/u32-to-u8: New file.
61145         * lib/unistr/u32-to-u8.c: New file.
61146
61147         * modules/unistr/u32-to-u16: New file.
61148         * lib/unistr/u32-to-u16.c: New file.
61149
61150         * modules/unistr/u8-check: New file.
61151         * modules/unistr/u16-check: New file.
61152         * modules/unistr/u32-check: New file.
61153         * lib/unistr/u8-check.c: New file.
61154         * lib/unistr/u16-check.c: New file.
61155         * lib/unistr/u32-check.c: New file.
61156
61157         * modules/unistr/u8-chr: New file.
61158         * modules/unistr/u16-chr: New file.
61159         * modules/unistr/u32-chr: New file.
61160         * lib/unistr/u8-chr.c: New file.
61161         * lib/unistr/u16-chr.c: New file.
61162         * lib/unistr/u32-chr.c: New file.
61163
61164         * modules/unistr/u8-cmp: New file.
61165         * modules/unistr/u16-cmp: New file.
61166         * modules/unistr/u32-cmp: New file.
61167         * lib/unistr/u8-cmp.c: New file.
61168         * lib/unistr/u16-cmp.c: New file.
61169         * lib/unistr/u32-cmp.c: New file.
61170
61171         * modules/unistr/u8-cpy: New file.
61172         * modules/unistr/u16-cpy: New file.
61173         * modules/unistr/u32-cpy: New file.
61174         * lib/unistr/u8-cpy.c: New file.
61175         * lib/unistr/u16-cpy.c: New file.
61176         * lib/unistr/u32-cpy.c: New file.
61177         * lib/unistr/u-cpy.h: New file.
61178
61179         * modules/unistr/u8-cpy-alloc: New file.
61180         * modules/unistr/u16-cpy-alloc: New file.
61181         * modules/unistr/u32-cpy-alloc: New file.
61182         * lib/unistr/u8-cpy-alloc.c: New file.
61183         * lib/unistr/u16-cpy-alloc.c: New file.
61184         * lib/unistr/u32-cpy-alloc.c: New file.
61185         * lib/unistr/u-cpy-alloc.h: New file.
61186
61187         * modules/unistr/u8-endswith: New file.
61188         * modules/unistr/u16-endswith: New file.
61189         * modules/unistr/u32-endswith: New file.
61190         * lib/unistr/u8-endswith.c: New file.
61191         * lib/unistr/u16-endswith.c: New file.
61192         * lib/unistr/u32-endswith.c: New file.
61193         * lib/unistr/u-endswith.h: New file.
61194
61195         * modules/unistr/u8-mblen: New file.
61196         * modules/unistr/u16-mblen: New file.
61197         * modules/unistr/u32-mblen: New file.
61198         * lib/unistr/u8-mblen.c: New file.
61199         * lib/unistr/u16-mblen.c: New file.
61200         * lib/unistr/u32-mblen.c: New file.
61201
61202         * modules/unistr/u8-mbtouc: New file.
61203         * modules/unistr/u16-mbtouc: New file.
61204         * modules/unistr/u32-mbtouc: New file.
61205         * lib/unistr/u8-mbtouc.c: New file.
61206         * lib/unistr/u16-mbtouc.c: New file.
61207         * lib/unistr/u32-mbtouc.c: New file.
61208
61209         * modules/unistr/u8-mbtouc-safe: New file.
61210         * modules/unistr/u16-mbtouc-safe: New file.
61211         * modules/unistr/u32-mbtouc-safe: New file.
61212         * lib/unistr/u8-mbtouc-safe.c: New file.
61213         * lib/unistr/u16-mbtouc-safe.c: New file.
61214         * lib/unistr/u32-mbtouc-safe.c: New file.
61215
61216         * modules/unistr/u8-move: New file.
61217         * modules/unistr/u16-move: New file.
61218         * modules/unistr/u32-move: New file.
61219         * lib/unistr/u8-move.c: New file.
61220         * lib/unistr/u16-move.c: New file.
61221         * lib/unistr/u32-move.c: New file.
61222         * lib/unistr/u-move.h: New file.
61223
61224         * modules/unistr/u8-next: New file.
61225         * modules/unistr/u16-next: New file.
61226         * modules/unistr/u32-next: New file.
61227         * lib/unistr/u8-next.c: New file.
61228         * lib/unistr/u16-next.c: New file.
61229         * lib/unistr/u32-next.c: New file.
61230
61231         * modules/unistr/u8-prev: New file.
61232         * modules/unistr/u16-prev: New file.
61233         * modules/unistr/u32-prev: New file.
61234         * lib/unistr/u8-prev.c: New file.
61235         * lib/unistr/u16-prev.c: New file.
61236         * lib/unistr/u32-prev.c: New file.
61237
61238         * modules/unistr/u8-set: New file.
61239         * modules/unistr/u16-set: New file.
61240         * modules/unistr/u32-set: New file.
61241         * lib/unistr/u8-set.c: New file.
61242         * lib/unistr/u16-set.c: New file.
61243         * lib/unistr/u32-set.c: New file.
61244         * lib/unistr/u-set.h: New file.
61245
61246         * modules/unistr/u8-startswith: New file.
61247         * modules/unistr/u16-startswith: New file.
61248         * modules/unistr/u32-startswith: New file.
61249         * lib/unistr/u8-startswith.c: New file.
61250         * lib/unistr/u16-startswith.c: New file.
61251         * lib/unistr/u32-startswith.c: New file.
61252         * lib/unistr/u-startswith.h: New file.
61253
61254         * modules/unistr/u8-stpcpy: New file.
61255         * modules/unistr/u16-stpcpy: New file.
61256         * modules/unistr/u32-stpcpy: New file.
61257         * lib/unistr/u8-stpcpy.c: New file.
61258         * lib/unistr/u16-stpcpy.c: New file.
61259         * lib/unistr/u32-stpcpy.c: New file.
61260         * lib/unistr/u-stpcpy.h: New file.
61261
61262         * modules/unistr/u8-stpncpy: New file.
61263         * modules/unistr/u16-stpncpy: New file.
61264         * modules/unistr/u32-stpncpy: New file.
61265         * lib/unistr/u8-stpncpy.c: New file.
61266         * lib/unistr/u16-stpncpy.c: New file.
61267         * lib/unistr/u32-stpncpy.c: New file.
61268         * lib/unistr/u-stpncpy.h: New file.
61269
61270         * modules/unistr/u8-strcat: New file.
61271         * modules/unistr/u16-strcat: New file.
61272         * modules/unistr/u32-strcat: New file.
61273         * lib/unistr/u8-strcat.c: New file.
61274         * lib/unistr/u16-strcat.c: New file.
61275         * lib/unistr/u32-strcat.c: New file.
61276         * lib/unistr/u-strcat.h: New file.
61277
61278         * modules/unistr/u8-strchr: New file.
61279         * modules/unistr/u16-strchr: New file.
61280         * modules/unistr/u32-strchr: New file.
61281         * lib/unistr/u8-strchr.c: New file.
61282         * lib/unistr/u16-strchr.c: New file.
61283         * lib/unistr/u32-strchr.c: New file.
61284
61285         * modules/unistr/u8-strcmp: New file.
61286         * modules/unistr/u16-strcmp: New file.
61287         * modules/unistr/u32-strcmp: New file.
61288         * lib/unistr/u8-strcmp.c: New file.
61289         * lib/unistr/u16-strcmp.c: New file.
61290         * lib/unistr/u32-strcmp.c: New file.
61291
61292         * modules/unistr/u8-strcpy: New file.
61293         * modules/unistr/u16-strcpy: New file.
61294         * modules/unistr/u32-strcpy: New file.
61295         * lib/unistr/u8-strcpy.c: New file.
61296         * lib/unistr/u16-strcpy.c: New file.
61297         * lib/unistr/u32-strcpy.c: New file.
61298         * lib/unistr/u-strcpy.h: New file.
61299
61300         * modules/unistr/u8-strcspn: New file.
61301         * modules/unistr/u16-strcspn: New file.
61302         * modules/unistr/u32-strcspn: New file.
61303         * lib/unistr/u8-strcspn.c: New file.
61304         * lib/unistr/u16-strcspn.c: New file.
61305         * lib/unistr/u32-strcspn.c: New file.
61306         * lib/unistr/u-strcspn.h: New file.
61307
61308         * modules/unistr/u8-strdup: New file.
61309         * modules/unistr/u16-strdup: New file.
61310         * modules/unistr/u32-strdup: New file.
61311         * lib/unistr/u8-strdup.c: New file.
61312         * lib/unistr/u16-strdup.c: New file.
61313         * lib/unistr/u32-strdup.c: New file.
61314         * lib/unistr/u-strdup.h: New file.
61315
61316         * modules/unistr/u8-strlen: New file.
61317         * modules/unistr/u16-strlen: New file.
61318         * modules/unistr/u32-strlen: New file.
61319         * lib/unistr/u8-strlen.c: New file.
61320         * lib/unistr/u16-strlen.c: New file.
61321         * lib/unistr/u32-strlen.c: New file.
61322         * lib/unistr/u-strlen.h: New file.
61323
61324         * modules/unistr/u8-strmblen: New file.
61325         * modules/unistr/u16-strmblen: New file.
61326         * modules/unistr/u32-strmblen: New file.
61327         * lib/unistr/u8-strmblen.c: New file.
61328         * lib/unistr/u16-strmblen.c: New file.
61329         * lib/unistr/u32-strmblen.c: New file.
61330
61331         * modules/unistr/u8-strmbtouc: New file.
61332         * modules/unistr/u16-strmbtouc: New file.
61333         * modules/unistr/u32-strmbtouc: New file.
61334         * lib/unistr/u8-strmbtouc.c: New file.
61335         * lib/unistr/u16-strmbtouc.c: New file.
61336         * lib/unistr/u32-strmbtouc.c: New file.
61337
61338         * modules/unistr/u8-strncat: New file.
61339         * modules/unistr/u16-strncat: New file.
61340         * modules/unistr/u32-strncat: New file.
61341         * lib/unistr/u8-strncat.c: New file.
61342         * lib/unistr/u16-strncat.c: New file.
61343         * lib/unistr/u32-strncat.c: New file.
61344         * lib/unistr/u-strncat.h: New file.
61345
61346         * modules/unistr/u8-strncmp: New file.
61347         * modules/unistr/u16-strncmp: New file.
61348         * modules/unistr/u32-strncmp: New file.
61349         * lib/unistr/u8-strncmp.c: New file.
61350         * lib/unistr/u16-strncmp.c: New file.
61351         * lib/unistr/u32-strncmp.c: New file.
61352
61353         * modules/unistr/u8-strncpy: New file.
61354         * modules/unistr/u16-strncpy: New file.
61355         * modules/unistr/u32-strncpy: New file.
61356         * lib/unistr/u8-strncpy.c: New file.
61357         * lib/unistr/u16-strncpy.c: New file.
61358         * lib/unistr/u32-strncpy.c: New file.
61359         * lib/unistr/u-strncpy.h: New file.
61360
61361         * modules/unistr/u8-strnlen: New file.
61362         * modules/unistr/u16-strnlen: New file.
61363         * modules/unistr/u32-strnlen: New file.
61364         * lib/unistr/u8-strnlen.c: New file.
61365         * lib/unistr/u16-strnlen.c: New file.
61366         * lib/unistr/u32-strnlen.c: New file.
61367         * lib/unistr/u-strnlen.h: New file.
61368
61369         * modules/unistr/u8-strpbrk: New file.
61370         * modules/unistr/u16-strpbrk: New file.
61371         * modules/unistr/u32-strpbrk: New file.
61372         * lib/unistr/u8-strpbrk.c: New file.
61373         * lib/unistr/u16-strpbrk.c: New file.
61374         * lib/unistr/u32-strpbrk.c: New file.
61375         * lib/unistr/u-strpbrk.h: New file.
61376
61377         * modules/unistr/u8-strrchr: New file.
61378         * modules/unistr/u16-strrchr: New file.
61379         * modules/unistr/u32-strrchr: New file.
61380         * lib/unistr/u8-strrchr.c: New file.
61381         * lib/unistr/u16-strrchr.c: New file.
61382         * lib/unistr/u32-strrchr.c: New file.
61383
61384         * modules/unistr/u8-strspn: New file.
61385         * modules/unistr/u16-strspn: New file.
61386         * modules/unistr/u32-strspn: New file.
61387         * lib/unistr/u8-strspn.c: New file.
61388         * lib/unistr/u16-strspn.c: New file.
61389         * lib/unistr/u32-strspn.c: New file.
61390         * lib/unistr/u-strspn.h: New file.
61391
61392         * modules/unistr/u8-strstr: New file.
61393         * modules/unistr/u16-strstr: New file.
61394         * modules/unistr/u32-strstr: New file.
61395         * lib/unistr/u8-strstr.c: New file.
61396         * lib/unistr/u16-strstr.c: New file.
61397         * lib/unistr/u32-strstr.c: New file.
61398         * lib/unistr/u-strstr.h: New file.
61399
61400         * modules/unistr/u8-strtok: New file.
61401         * modules/unistr/u16-strtok: New file.
61402         * modules/unistr/u32-strtok: New file.
61403         * lib/unistr/u8-strtok.c: New file.
61404         * lib/unistr/u16-strtok.c: New file.
61405         * lib/unistr/u32-strtok.c: New file.
61406         * lib/unistr/u-strtok.h: New file.
61407
61408         * modules/unistr/u8-uctomb: New file.
61409         * modules/unistr/u16-uctomb: New file.
61410         * modules/unistr/u32-uctomb: New file.
61411         * lib/unistr/u8-uctomb.c: New file.
61412         * lib/unistr/u16-uctomb.c: New file.
61413         * lib/unistr/u32-uctomb.c: New file.
61414
61415         * MODULES.html.sh (Unicode string functions): Add the new modules.
61416
61417 2007-01-08  Bruno Haible  <bruno@clisp.org>
61418
61419         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
61420         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
61421         subdirectories.
61422
61423 2007-01-08  Karl Berry  <karl@gnu.org>
61424
61425         * doc/error.texi: mention that main() fns must set program_name
61426         when progname is used.
61427
61428 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
61429
61430         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
61431         WCTYPE_H is empty, for the benefit of builds from non-distclean
61432         directories.  Problem reported by Eric Blake in
61433         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
61434
61435 2007-01-08  Bruno Haible  <bruno@clisp.org>
61436
61437         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
61438         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
61439         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
61440         PROVIDE_CANONICALIZE_FILENAME_MODE.
61441         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
61442
61443 2007-01-08  Bruno Haible  <bruno@clisp.org>
61444
61445         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
61446         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
61447         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
61448         * lib/fts.c: Likewise.
61449         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
61450
61451 2006-12-25  Bruno Haible  <bruno@clisp.org>
61452
61453         * modules/utf8-ucs4-safe: New file.
61454         * lib/utf8-ucs4-safe.h: New file.
61455         * lib/unistr/utf8-ucs4-safe.c: New file.
61456
61457         * modules/utf16-ucs4-safe: New file.
61458         * lib/utf16-ucs4-safe.h: New file.
61459         * lib/unistr/utf16-ucs4-safe.c: New file.
61460
61461         * MODULES.html.sh (Unicode string functions): Add the new modules.
61462
61463 2007-01-08  Bruno Haible  <bruno@clisp.org>
61464
61465         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
61466         (Depends-on): Add unitypes.
61467         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
61468         (u8_mbtouc_aux): Move out to separate file.
61469         (u8_mbtouc): Use ucs4_t, uint8_t types.
61470         * lib/unistr/utf8-ucs4.c: New file.
61471
61472         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
61473         (Depends-on): Add unitypes.
61474         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
61475         (u16_mbtouc_aux): Move out to separate file.
61476         (u16_mbtouc): Use ucs4_t, uint16_t types.
61477         * lib/unistr/utf16-ucs4.c: New file.
61478
61479         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
61480         (Depends-on): Add unitypes.
61481         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
61482         (u8_uctomb_aux): Move out to separate file.
61483         (u8_uctomb): Use ucs4_t, uint8_t types.
61484         * lib/unistr/ucs4-utf8.c: New file.
61485
61486         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
61487         (Depends-on): Add unitypes.
61488         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
61489         (u16_uctomb_aux): Move out to separate file.
61490         (u16_uctomb): Use ucs4_t, uint16_t types.
61491         * lib/unistr/ucs4-utf16.c: New file.
61492
61493 2006-12-25  Bruno Haible  <bruno@clisp.org>
61494
61495         * modules/unitypes: New file.
61496         * lib/unitypes.h: New file.
61497         * MODULES.html.sh (func_all_modules): New section "Unicode string
61498         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
61499         this section. Add unitypes.
61500
61501 2007-01-08  Bruno Haible  <bruno@clisp.org>
61502
61503         Avoid variable names that conflict with those from libtool.
61504         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
61505         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
61506         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
61507         library_names_spec to acl_library_names_spec, hardcode_* to
61508         acl_hardcode_*.
61509         Reported by Ralf Wildenhues.
61510
61511 2007-01-08  Bruno Haible  <bruno@clisp.org>
61512
61513         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
61514         definition.
61515         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
61516         definition.
61517         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
61518         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
61519         definition.
61520         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
61521         definition.
61522         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
61523         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
61524         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
61525         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
61526         definition.
61527         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
61528         definition.
61529         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
61530         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
61531         GC_USE_<algorithm>.
61532         * lib/gc-libgcrypt.c: Likewise.
61533         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
61534         * modules/gc-arctwo (configure.ac): Likewise.
61535         * modules/gc-des (configure.ac): Likewise.
61536         * modules/gc-hmac-md5 (configure.ac): Likewise.
61537         * modules/gc-hmac-sha1 (configure.ac): Likewise.
61538         * modules/gc-md2 (configure.ac): Likewise.
61539         * modules/gc-md4 (configure.ac): Likewise.
61540         * modules/gc-md5 (configure.ac): Likewise.
61541         * modules/gc-random (configure.ac): Likewise.
61542         * modules/gc-rijndael (configure.ac): Likewise.
61543         * modules/gc-sha1 (configure.ac): Likewise.
61544
61545 2007-01-08  Bruno Haible  <bruno@clisp.org>
61546
61547         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
61548         macro definition.
61549         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
61550         definition.
61551         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
61552         definition.
61553         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
61554         * modules/fcntl-safer (configure.ac): Likewise.
61555         * modules/fopen-safer (configure.ac): Likewise.
61556         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
61557         GNULIB_FWRITEERROR macro definition.
61558
61559 2007-01-08  Bruno Haible  <bruno@clisp.org>
61560
61561         * m4/gnulib-common.m4: New file.
61562         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
61563         (func_get_filelist): Add m4/gnulib-common.m4.
61564
61565 2007-01-08  Bruno Haible  <bruno@clisp.org>
61566
61567         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
61568         command.
61569
61570 2007-01-08  Jim Meyering  <jim@meyering.net>
61571
61572         Use a more robust test for a "can't happen" condition.
61573         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
61574         narrowed the st_size value.  Presuming the "can't happen" condition
61575         is true, that narrowing could conceivably convert an invalid st_size
61576         value into a valid one.  Instead, use a change based on Matthew
61577         Woehlke's original patch.
61578
61579         Slight readability improvement: use an assert-like macro
61580         in place of literal "abort ()" uses.
61581         * lib/fts.c (fts_assert): Define.
61582         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
61583         Use this macro instead of a bare 'abort'.
61584
61585 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
61586
61587         Don't worry about using IRIX 5.3's wctype.h broken definitions;
61588         simply work around them.
61589         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
61590         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
61591         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
61592         declaring.
61593         Don't bother to define as macros, since the standard doesn't require it.
61594         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
61595         longer worry about IRIX 5.3.
61596         (HAVE_WCTYPE_CTMP_BUG): Remove.
61597
61598 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
61599
61600         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
61601         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
61602         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
61603         Problems reported by Georg Schwarz for IRIX 5.3.
61604
61605         * gnulib-tool (autoconf_minversion): Take the maximum version number
61606         found, not the minimum.  Problem reported by James Youngman.
61607
61608 2007-01-03  Karl Berry  <karl@gnu.org>
61609
61610         * doc/error.texi: new file, explaining interaction with progname.
61611         * doc/gnulib.texi: include it.  Update copyright.
61612
61613 2007-01-03  Simon Josefsson  <simon@josefsson.org>
61614
61615         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
61616         AC_CANONICAL_HOST, to improve autobuild outputs.
61617
61618 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
61619             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
61620
61621         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
61622         sockets, server sockets, and other file descriptors.  Count errors
61623         to compute the return value.  Reorder the code a bit to be easier
61624         to follow.  Don't set event bits that were not requested (except
61625         POLLERR and POLLHUP).
61626
61627 2007-01-01  Bruno Haible  <bruno@clisp.org>
61628
61629         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
61630
61631 2007-01-03  Jim Meyering  <jim@meyering.net>
61632
61633         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
61634
61635 2007-01-02  Bruno Haible  <bruno@clisp.org>
61636
61637         * modules/settime (Include): Require timespec.h.
61638         * modules/nanosleep (Include): Likewise.
61639
61640 2007-01-01  Bruno Haible  <bruno@clisp.org>
61641
61642         * gnulib-tool (func_emit_copyright_notice): Bump year.
61643         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
61644
61645 2007-01-01  Bruno Haible  <bruno@clisp.org>
61646
61647         Improve support for OpenBSD.
61648         * build-aux/config.rpath (libname_spec): Export.
61649         (library_names_spec): New variable. Export.
61650         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
61651         library_names_spec from the config.rpath output. Locate shared library
61652         through the name pattern in library_names_spec.
61653
61654 2007-01-01  Eric Blake  <ebb9@byu.net>
61655
61656         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
61657
61658 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
61659
61660         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
61661         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
61662         assume the C locale, and avoid an "eval" that could cause trouble.
61663         Problem with SORT reported by Bob Proulx.
61664
61665         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
61666         Define.  Trivial patch from Henning Nielsen Lund, originally
61667         sent to bug-grep@gnu.org today.
61668
61669 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
61670
61671         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
61672         struct stat.  Problem reported by Henning Nielsen Lund.
61673         * lib/acl.c: Include acl.h first, to check interface.  Don't
61674         bother to include sys/types.h and sys/stat.h again.
61675
61676 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
61677
61678         Import the following change from libc; problem reported by
61679         Sven Verdoolaege.
61680
61681         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
61682
61683         [BZ #1373]
61684         * lib/argp.h: Remove __NTH for __argp_usage inline function.
61685
61686 2006-12-28  Jim Meyering  <jim@meyering.net>
61687
61688         * build-aux/announce-gen: Do not assume that the package
61689         builds any of tar.gz, tar.bz2, and .xdelta files.
61690         Suggestion from Simon Josefsson.
61691
61692 2006-12-28  Simon Josefsson  <simon@josefsson.org>
61693
61694         * modules/announce-gen: New file.
61695
61696 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
61697
61698         * lib/mbchar.h: Just include <wctype.h>; the wctype module
61699         handles its gotchas now.
61700         * lib/mbswidth.c: Likewise.
61701         * lib/wcwidth.h: Likewise.
61702         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
61703         and iswcntrl; the wctype module does this stuff now.
61704         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
61705         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
61706         * modules/mbchar (Depends-on): Add wctype.
61707         * modules/mbswidth (Depends-on): Likewise.
61708         * modules/wcwidth (Depends-on): Likewise.
61709
61710 2006-12-27  Eric Blake  <ebb9@byu.net>
61711
61712         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
61713         module uses more than what <wctype.h> is required to provide.
61714
61715 2006-12-26  Eric Blake  <ebb9@byu.net>
61716
61717         * gnulib-tool (sed_extract_prog): Avoid space-tab.
61718
61719 2006-12-26  Eric Blake  <ebb9@byu.net>
61720
61721         * modules/absolute-header: New module.
61722         * modules/fcntl (Depends-on): Depend on it.
61723         * modules/inttypes (Depends-on): Likewise.
61724         * modules/stdint (Depends-on): Likewise.
61725         * modules/sys_stat (Depends-on): Likewise.
61726         * modules/wctype (Depends-on): Likewise.
61727         * MODULES.html.sh (Support for building libraries and
61728         executables): Document it.
61729
61730 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
61731
61732         * gnulib-tool (SED): Remove, undoing previous change.
61733         The problem was that it broke coreutils on Solaris, because
61734         "sed --posix" leaked into a makefile.
61735         (sed): New alias, if 'alias' and GNU sed.
61736
61737 2006-12-24  Jim Meyering  <jim@meyering.net>
61738
61739         Work around an fchownat bug in glibc-2.4:
61740         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
61741         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
61742         in spite of the -P option.
61743         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
61744         New macros.
61745         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
61746         * modules/openat (Files): Add lib/fchownat.c.
61747         * lib/openat.c (fchownat): Don't define here.  Move to...
61748         * lib/fchownat.c: ...this new file.
61749
61750 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
61751
61752         Fix bug reported by Bruno Haible in
61753         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
61754         where quotearg.c didn't compile on Mac OS X 10.2 because it
61755         lacks <wchar.h> and wint_t.
61756         * lib/wctype_.h (__wctype_wint_t): New type.
61757         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
61758         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
61759         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
61760         Arg is now of type __wctype_wint_t, not wint_t.
61761         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
61762         substitute HAVE_WINT_T.
61763         * modules/wctype (Files): Add m4/wint_t.m4.
61764         (wctype.h): Substitute HAVE_WINT_T.
61765
61766 2006-12-23  Bruno Haible  <bruno@clisp.org>
61767
61768         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
61769
61770 2006-12-23  Bruno Haible  <bruno@clisp.org>
61771
61772         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
61773         S_ISLNK.
61774         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
61775         mingw.
61776
61777 2006-12-22  Bruno Haible  <bruno@clisp.org>
61778
61779         * lib/copy-file.c: Include acl.h.
61780         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
61781         Close the file descriptors only after being done with copy_acl.
61782         * modules/copy-file (Depends-on): Add acl.
61783
61784 2006-12-22  Bruno Haible  <bruno@clisp.org>
61785
61786         * gnulib-tool (SED): New variable.
61787         Use $SED instead of sed everywhere.
61788
61789 2006-12-22  Bruno Haible  <bruno@clisp.org>
61790
61791         * modules/no-c++: New file.
61792         * m4/no-c++.m4: New file.
61793         * MODULES.html.sh (Support for building libraries and executables):
61794         Add no-c++.
61795
61796 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
61797
61798         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
61799         Include <limits.h>, and use its INT_MAX to rewrite the
61800         j loop so that it does not overflow 'int'.  Problem reported by
61801         Ralf Wildenhues in
61802         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
61803         Play it safe by shifting left by 1 rather than multiplying by 2,
61804         as GCC is less likely to optimize this away when the value
61805         is signed (when it assumes overflow leads to undefined behavior).
61806         Also, don't assume time_t uses two's complement.
61807
61808 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
61809
61810         * MODULES.html.sh: New module wctype.
61811         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
61812         * lib/fnmatch.c: Don't bother to include <wchar.h> before
61813         <wctype.h>, since the new wctype module should fix this.
61814         * lib/quotearg.c: Include <wctype.h> unconditionally, since
61815         the wctype module should arrange for it.
61816         * lib/regex_internal.h: Likewise.
61817         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
61818         since the wctype module should handle this now.
61819         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
61820         * modules/fnmatch (Depends-on): Add wctype.
61821         * modules/quotearg (Depends-on): Likewise.
61822         * modules/regex (Depends-on): Likewise.
61823
61824 2006-12-19  Bruno Haible  <bruno@clisp.org>
61825
61826         * lib/strdup.h [C++]: Wrap definitions in extern "C".
61827         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
61828
61829 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61830
61831         * modules/savewd (Depends-on): Fix dependency on fcntl.
61832
61833 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
61834
61835         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
61836         conforms to C99, rather than relying on the user's environment
61837         setting of STDINT_H.
61838
61839 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
61840         and Eric Blake  <ebb9@byu.net>
61841
61842         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
61843         This is more consistent with the other defines here.
61844         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
61845         Port to z/OS.  Problem reported by Paul Gilmartin.
61846         Change local vars to use gl_ prefix rather than ac_.
61847         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
61848         with other defines.
61849         * modules/double-slash-root: New module.
61850         * modules/dirname (Files): Remove m4/double-slash-root.m4.
61851         (Depends-on): Add double-slash-root.
61852         * MODULES.html.sh (File system functions): Mention new module.
61853
61854 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
61855
61856         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
61857         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
61858         This is for the benefit of gzip, which doesn't do i18n.
61859
61860 2006-12-12  Jim Meyering  <jim@meyering.net>
61861
61862         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
61863         Reported by Andreas Schwab <schwab@suse.de>.
61864
61865 2006-12-12  Bruno Haible  <bruno@clisp.org>
61866
61867         Merge these changes.
61868         2006-09-05  Bruno Haible  <bruno@clisp.org>
61869         * lib/iconvme.c (iconv_string): No need to save and restore errno when
61870         iconv_alloc succeeded.
61871         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
61872         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
61873         test for " && dest " at the end - dest is always != NULL there. Call
61874         iconv with 4xNULL arguments initially, to reset the state. Call iconv
61875         with 2xNULL arguments, also to flush the state storage. Handle the
61876         IRIX iconv behaviour. Realloc the final result, to throw away unused
61877         memory.
61878
61879 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
61880
61881         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
61882         and fchmodat unconditionally, since glibc 2.4 has them.
61883         Problem reported by Arkadiusz Miskiewicz.
61884
61885 2006-12-10  Bruno Haible  <bruno@clisp.org>
61886
61887         * gnulib-tool (func_import): Show the include files only for those
61888         modules that are copied and specified.
61889         Reported by Karl Berry.
61890
61891 2006-12-08  Jim Meyering  <jim@meyering.net>
61892
61893         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
61894         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
61895
61896         * build-aux/announce-gen: Add two new options, both optional:
61897         --bootstrap-tools=TOOL_LIST
61898               a comma-separated list of tools, e.g.,
61899               autoconf,automake,bison,gnulib
61900         --gnulib-snapshot-date=DATE
61901               if gnulib is in the bootstrap tool list,
61902               then report this as the snapshot date.
61903               If not specified, use the current date/time.
61904               If you specify a date here, be sure it's UTC.
61905
61906 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61907
61908         * tests/test-argp-2.sh: Fix test to match actual output.
61909         (func_compare): Fix sed script to be portable.
61910
61911 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
61912
61913         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
61914         workaround for this case.  It is not autoconfigured now; offhand
61915         it's hard to see how to autoconfigure it.
61916
61917 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
61918
61919         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
61920         a directory that is about to be chowned.  Such a directory's
61921         initial file permissions should permit the owner only and this
61922         should not be changed until after the chown, since the group and
61923         other bits would be incorrect if they granted permission before
61924         the chown.
61925
61926         Fix porting problem for iswctype reported by Georg Schwarz in:
61927         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
61928         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
61929         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
61930         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
61931         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
61932
61933 2006-12-03  Jim Meyering  <jim@meyering.net>
61934
61935         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
61936         p->fts_statp may not yet be defined.
61937         (fts_read): Instead, set it in the caller, once p->fts_statp is
61938         sure to be defined, and corresponds to a top-level directory.
61939         This bug made du -x fail.  Here's the coreutils test case:
61940         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
61941         Reported by Mike Frysinger.
61942
61943 2006-12-01  Jim Meyering  <jim@meyering.net>
61944
61945         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
61946         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
61947         Reported by Simon Josefsson.
61948
61949 2006-11-30  Jim Meyering  <jim@meyering.net>
61950
61951         * m4/warning.m4: Use the all-permissive copyright notice
61952         recommended by RMS (rather than LGPL).
61953         * m4/vararrays.m4: Likewise.
61954         * m4/flexmember.m4: Likewise.
61955
61956 2006-11-29  Bruno Haible  <bruno@clisp.org>
61957
61958         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
61959         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
61960         using +=.
61961         Reported by Simon Josefsson <simon@josefsson.org>.
61962
61963 2006-11-28  James Youngman <jay@gnu.org>
61964
61965         * README: Advise users that they might find the bug-gnulib@gnu.org
61966         and autotools-announce@gnu.org mailing lists useful.
61967
61968 2006-11-28  Bruno Haible  <bruno@clisp.org>
61969
61970         * m4/ptrdiff_max.m4: Remove file.
61971
61972 2006-11-21  Bruno Haible  <bruno@clisp.org>
61973
61974         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
61975         _AC_COMPUTE_INT.
61976         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
61977         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
61978         _AC_COMPUTE_INT.
61979         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
61980         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
61981         _AC_COMPUTE_INT.
61982         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
61983
61984 2006-11-28  Jim Meyering  <jim@meyering.net>
61985
61986         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
61987         warning from "gcc -Wshadow" about shadowing the builtin.
61988
61989 2006-11-27  Bruno Haible  <bruno@clisp.org>
61990
61991         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
61992         _AC_COMPUTE_INT.
61993         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
61994
61995 2006-11-27  Bruno Haible  <bruno@clisp.org>
61996             Paul Eggert  <eggert@cs.ucla.edu>
61997
61998         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
61999
62000 2006-11-26  Bruno Haible  <bruno@clisp.org>
62001
62002         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
62003         noinst_LTLIBRARIES.
62004
62005 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
62006             Bruno Haible  <bruno@clisp.org>
62007
62008         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
62009         if compiling with "gcc -ansi".
62010
62011 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
62012
62013         Fix some incompatibilities with gcc -ansi -pedantic.
62014         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
62015         if compiling pedantically with GCC, unless it's C99 or later.
62016         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
62017         it mishandles gcc -ansi -pedantic as well.
62018         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
62019         if gcc -pedantic.
62020         * lib/regexec.c (check_node_accept_bytes): Don't use auto
62021         initializers for struct if -pedantic, unless it's C99 or later.
62022
62023 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
62024
62025         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
62026         Don't close an fd more than once. Identical atimes indicate
62027         success, not failure.
62028
62029 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
62030
62031         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
62032
62033 2006-11-23  Jim Meyering  <jim@meyering.net>
62034
62035         * build-aux/announce-gen: New file.  From coreutils.
62036
62037 2006-11-22  Jim Meyering  <jim@meyering.net>
62038
62039         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
62040         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
62041         (fts_read): Use a temporary to narrow the overused st_size member
62042         before using it in a switch statement.  Reported by Matthew Woehlke.
62043
62044         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
62045         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
62046
62047 2006-11-20  Bruno Haible  <bruno@clisp.org>
62048
62049         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
62050         changequote instead of pairs of brackets.
62051         Reported by Andreas Schwab <schwab@suse.de>.
62052
62053 2006-11-21  Jim Meyering  <jim@meyering.net>
62054
62055         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
62056         so as to remain compatible with older compilers.
62057         Patch from Michael Deutschmann.
62058
62059 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
62060
62061         * MODULES.html.sh (File system functions): Add openat.
62062
62063         * lib/openat.h (rpl_fstatat): New macro, if
62064         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
62065         (fstatat): Define to rpl_fstatat under the same conditions,
62066         unless COMPILING_FSTATAT.
62067         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
62068         seems to have the bug.
62069         * lib/fstatat.c: New file.
62070         * modules/openat (Files): Add it.
62071
62072 2006-11-20  Bruno Haible  <bruno@clisp.org>
62073
62074         * Makefile: New file.
62075
62076 2006-11-20  Jim Meyering  <jim@meyering.net>
62077
62078         The beginnings of syntax-related checks for gnulib.
62079         * lib/Makefile: New file.
62080         * lib/t-idcache: New script.  Ensure that the two halves of
62081         idcache.c stay in sync.
62082
62083         * lib/idcache.c: Adjust comments in user- and group- portions to
62084         be more accurate, and to be consistent with one another.
62085
62086 2006-11-20  Jim Meyering  <jim@meyering.net>
62087
62088         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
62089         continue using the flexible array member (thus, this module performs
62090         half as many malloc calls), with the addition that...
62091         (getgroup, getuser): Consistently record a non-match via an empty
62092         "name" string, and map an empty string match to a NULL return value.
62093         * modules/idcache (Depends-on): Re-add flexmember.
62094
62095         * lib/idcache.c (getuser): Remove all uses of the register keyword.
62096         (getuidbyname, getgroup, getgidbyname): Likewise.
62097
62098         Use cleaner syntax: NULL rather than 0.
62099         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
62100
62101 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
62102
62103         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
62104         It mishandled the case where the group was missing.
62105         Problem reported by Greg Schafer.
62106         * modules/idcache: Likewise.
62107
62108 2006-11-18  Jim Meyering  <jim@meyering.net>
62109
62110         * check-module (%exempt_header): Add exception for some
62111         conditionally-included headers.
62112
62113         * modules/i-ring (Depends-on): Add verify.
62114         (License): Change to LGPL.
62115
62116 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
62117
62118         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
62119         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
62120         and inttostr.h.  Use snprintf rather than uinttostr, so that
62121         LGPLed code doesn't depend on GPLed.
62122
62123 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
62124
62125         * modules/inline (License): Change from GPL to LGPL.
62126
62127 2006-11-17  Jim Meyering  <jim@meyering.net>
62128
62129         * modules/d-type (License): Switch to LGPL.
62130
62131 2006-11-15  Bruno Haible  <bruno@clisp.org>
62132
62133         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
62134
62135 2006-11-15  Eric Blake  <ebb9@byu.net>
62136
62137         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
62138         the module dependency.
62139
62140 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62141             Bruno Haible  <bruno@clisp.org>
62142
62143         * gnulib-tool (func_create_testdir): Add license consistency check.
62144
62145 2006-11-15  Eric Blake  <ebb9@byu.net>
62146
62147         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
62148         random "(cached)" in configure output.
62149
62150 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62151
62152         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
62153         test for conforming inttypes.h is both announced and cached.
62154
62155         * MODULES.html.sh (seen_modules, seen_files): New variables.
62156         (func_module): Rewrite to use a few less gnulib-tool and sed
62157         invocations.  Avoid a couple of quadratic algorithms for ...
62158         (missed_modules, missed_files): ... these, with ...
62159         (func_append, func_tmpdir): ... these new functions, from
62160         gnulib-tool.  Analogously, install traps for cleanup.
62161
62162         * tests/test-gc.c (main): Remove unused variables.
62163         * tests/test-read-file.c: Include stdlib.h, for 'free'.
62164
62165 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
62166
62167         * modules/inttostr (License): Change to LGPL.
62168
62169 2006-11-14  Eric Blake  <ebb9@byu.net>
62170
62171         * modules/tempname (License): Change to LGPL.
62172
62173 2006-11-14  Eric Blake  <ebb9@byu.net>
62174
62175         * doc/functions.texi (Function Portability): *printf functions on
62176         Cygwin now understand all POSIX size specifiers.
62177
62178 2006-11-14  Bruno Haible  <bruno@clisp.org>
62179
62180         * modules/c-ctype (License): Change to LGPL.
62181
62182 2006-11-12  Bruno Haible  <bruno@clisp.org>
62183
62184         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
62185         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
62186         for GNOME libraries, for which the include files are installed in
62187         subdirectories of $prefix/include.
62188
62189 2006-11-12  Bruno Haible  <bruno@clisp.org>
62190
62191         * m4/lib-link.m4: Require at least autoconf-2.54.
62192         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
62193         name to underscores for the --with option.
62194
62195 2006-11-13  Bruno Haible  <bruno@clisp.org>
62196
62197         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
62198         the tests directory.
62199         Reported by Ralf Wildenhues.
62200
62201 2006-11-13  Bruno Haible  <bruno@clisp.org>
62202
62203         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
62204         (func_emit_initmacro_end): Undo the override here.
62205         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
62206         Works around the famous automake error in coreutils.
62207
62208 2006-11-13  Eric Blake  <ebb9@byu.net>
62209
62210         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
62211         element, not its node.
62212
62213 2006-11-12  Bruno Haible  <bruno@clisp.org>
62214
62215         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
62216         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
62217
62218 2006-11-12  Bruno Haible  <bruno@clisp.org>
62219
62220         * gnulib-tool: New option --local-symlink.
62221         (func_usage): Document it.
62222         (lsymbolic): New variable.
62223         (func_import, func_create_testdir): If --symlink was not specified,
62224         test whether --local-symlink was specified and the file comes from
62225         the local_gnulib_dir.
62226
62227 2006-11-12  Bruno Haible  <bruno@clisp.org>
62228
62229         * gnulib-tool (func_ln): New function.
62230         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
62231
62232 2006-11-12  Bruno Haible  <bruno@clisp.org>
62233
62234         Finish support for source files in subdirectories.
62235         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
62236         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
62237         AUTOMAKE_OPTIONS.
62238         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
62239
62240 2006-11-12  Bruno Haible  <bruno@clisp.org>
62241
62242         * gnulib-tool (func_get_automake_snippet): Synthesize also an
62243         EXTRA_lib_SOURCES augmentation.
62244         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
62245
62246 2006-11-12  Jim Meyering  <jim@meyering.net>
62247
62248         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
62249         file descriptors.  This also averts a failure on systems with
62250         native openat support when a traversed directory lacks "x" access.
62251         * lib/fts_.h: Include "i-ring.h"
62252         (struct FTS) [fts_fd_ring]: New member.
62253         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
62254         (FCHDIR): Add parentheses.
62255         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
62256         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
62257         When descending, rather than simply closing the previous
62258         fts_cwd_fd value, push that file descriptor onto the ring.
62259         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
62260         (fts_open): Initialize the new fd_ring member.
62261         (fts_close): Clear the ring.
62262         (fts_safe_changedir): When possible, use our new fd_ring to skip
62263         the diropen and fstat and dev/ino comparison that would normally
62264         accompany a virtual `chdir ("..")'.
62265
62266         * modules/fts (Depends-on): Add i-ring.
62267         * modules/i-ring: New module.
62268         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
62269         * m4/i-ring.m4: New file.
62270
62271 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62272
62273         * gnulib-tool (func_create_testdir): Fix replacement of
62274         `build-aux' in configure.ac.  Run autotools in gltests
62275         subdirectory.
62276         (func_create_testdir, func_create_megatestdir, test): There is
62277         no need for '--force' in most autotool invocations in a new
62278         tree.  Actually fail the whole test if any of the tools, or the
62279         configure or make stages fail.
62280
62281         Sync from Automake.
62282         * build-aux/gnupload: Revert last change.  Add pointer to upload
62283         instructions of the GNU Maintenance Instructions.
62284         Suggestion by Karl Berry.
62285
62286 2006-11-10  Jim Meyering  <jim@meyering.net>
62287
62288         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
62289
62290 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
62291
62292         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
62293         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
62294         (bind_textdomain_codeset) [! ENABLE_NLS]:
62295         Evaluate all the arguments.  That way, callers get compatible behavior
62296         if the arguments have side effects.  Also, it avoids some GCC
62297         diagnostics in some cases; Joel E. Denny reported problems when Bison
62298         was configured with --enable-gcc-warnigs.
62299
62300 2006-11-10  Jim Meyering  <jim@meyering.net>
62301
62302         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
62303         relevant options in CFLAGS (like -O, -fno-inline) are taken into
62304         account.
62305
62306 2006-11-10  Jim Meyering  <jim@meyering.net>
62307
62308         * modules/inline: New file/module.
62309         * modules/xalloc (Files): Remove m4/inline.m4.
62310         (Depends-on): Add inline, instead.
62311         * modules/oset: Likewise.
62312         * modules/list: Likewise.
62313
62314 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
62315
62316         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
62317         Problem reported by Matthew Woehlke.
62318
62319 2006-11-09  Bruno Haible  <bruno@clisp.org>
62320
62321         * lib/tempname.c (gen_tempname): Remove variant that invokes
62322         __gen_tempname.
62323         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
62324         __gen_tempname.
62325
62326 2006-11-08  Bruno Haible  <bruno@clisp.org>
62327
62328         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
62329         to 'yes' instead of 'cross-compiling'.
62330
62331 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
62332
62333         * lib/quotearg.h (quotearg_free): New decl.
62334         * lib/quotearg.c (quotearg_free): New function.
62335         (slot0, nslots, slotvec0, slotvec):
62336         Now file-scope so that quotearg_free can get at them.
62337
62338 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62339
62340         Sync from Automake.
62341         * build-aux/gnupload: Add missing 'gnu' to example URL.
62342         Report by Karl Berry.
62343
62344 2006-11-08  Bruno Haible  <bruno@clisp.org>
62345
62346         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
62347         Suggested by Paul Eggert.
62348
62349 2006-11-08  Jim Meyering  <jim@meyering.net>
62350
62351         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
62352         It's already included if !_LIBC.
62353         (fts_safe_changedir): Add a comment.
62354
62355 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
62356
62357         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
62358         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
62359         Matthew Woehlke.
62360
62361         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
62362         definitions up, to avoid colliding with change below.
62363         (static_inline) [HAVE_INLINE]: New macro.
62364         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
62365         Provide extern decls when !HAVE_INLINE.  Do not define unless
62366         static_inline is defined, either by us or by xmalloc.c.  Use
62367         static_inline rather than static inline.
62368         (XCALLOC): Optimize sizeof(T) = 1 case.
62369         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
62370
62371 2006-11-07  Bruno Haible  <bruno@clisp.org>
62372
62373         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
62374         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
62375         AC_C_INLINE.
62376         * modules/xalloc (Files): Add m4/inline.m4.
62377
62378 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62379
62380         * README: Fix typo.
62381         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
62382         (Miscellanous Notes): ...from this.
62383
62384 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
62385
62386         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
62387         Mention that offsetof should be used instead of sizeof.
62388         From Bruno Haible.
62389
62390 2006-11-07  Bruno Haible  <bruno@clisp.org>
62391
62392         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
62393
62394 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
62395
62396         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
62397         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
62398         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
62399         (gl_tree_add_before, gl_tree_add_after):
62400         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
62401         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
62402         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
62403         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
62404         (gl_linked_add_after, gl_linked_add_at): Likewise.
62405         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
62406         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
62407         (gl_tree_add_before, gl_tree_add_after): Likewise.
62408         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
62409         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
62410         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
62411
62412 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62413
62414         * lib/gl_oset.h: Use C comment style, not C++ comment style.
62415
62416 2006-11-06  Bruno Haible  <bruno@clisp.org>
62417
62418         * m4/inline.m4: New file.
62419         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
62420         * modules/list (Files): Add m4/inline.m4.
62421         * modules/oset (Files): Likewise.
62422
62423 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
62424
62425         * lib/idcache.c: Include <stddef.h>, for offsetof.
62426         (struct userid.name): Change from char * to a flexible array member.
62427         All uses changed.
62428         * modules/idcache (Depends-on): Add flexmember.
62429
62430         * MODULES.html.sh (Core language properties): New module flexmember.
62431         * modules/flexmember, m4/flexmember.m4: New files.
62432
62433         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
62434         inline functions that are identical with the old xnmalloc_inline,
62435         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
62436         that we can avoid some unnecessary integer multiplications and
62437         divisions in the common case where the element size is known at
62438         compile time.
62439         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
62440         needed.
62441         (xnboundedmalloc): Remove.
62442         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
62443         arguments, for consistency with rest of this header.
62444         (xcharalloc): Rewrite using XNMALLOC.
62445         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
62446         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
62447         versions have been moved to lib/xalloc.h and renamed to be the
62448         non-*_inline versions.
62449         (xmalloc, xrealloc): Implement without reference to the xnmalloc
62450         and xnrealloc functions, since those functions are now inline and
62451         now call us.
62452         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
62453         renaming described above.
62454         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
62455         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
62456         captures the dependency in AC_C_INLINE.
62457
62458         New module canonicalize-lgpl, proposed by Charles Wilson in
62459         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
62460         with a few small changes afterwards.
62461         * MODULES.html.sh (File system functions): New module
62462         canonicalize-lgpl.
62463         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
62464         and canonicalize_file_name.
62465         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
62466         * modules/canonicalize-lgpl: New files.
62467
62468 2006-11-05  Bruno Haible  <bruno@clisp.org>
62469
62470         * gnulib-tool (func_import, func_create_testdir): Create directories
62471         also for files in subdirectories of lib/.
62472
62473 2006-11-05  Bruno Haible  <bruno@clisp.org>
62474
62475         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
62476         ANSI C compliant.
62477
62478 2006-11-03  Bruno Haible  <bruno@clisp.org>
62479
62480         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
62481         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
62482         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
62483         (xnboundedmalloc): New inline function.
62484         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
62485         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
62486         xmalloc.
62487         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
62488         xmalloc.
62489         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
62490         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
62491         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
62492         xmalloc.
62493         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
62494         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
62495         xmalloc.
62496         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
62497         gl_tree_add_after): Use XMALLOC instead of xmalloc.
62498         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
62499         xmalloc.
62500         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
62501         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
62502         gl_tree_add_after): Use XMALLOC instead of xmalloc.
62503         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
62504         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
62505         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
62506         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
62507
62508 2006-11-03  Bruno Haible  <bruno@clisp.org>
62509
62510         * lib/c-ctype.h [C++]: Define functions without name mangling.
62511         * lib/fwriteerror.h [C++]: Likewise.
62512         * lib/gcd.h [C++]: Likewise.
62513         * lib/linebreak.h [C++]: Likewise.
62514
62515 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
62516
62517         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
62518         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
62519         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
62520         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
62521         Check for functions and headers just once.
62522         Check for declaration of canonicalize_file_name.
62523         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
62524
62525 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
62526
62527         * gnulib-tool (func_import): Fix typo in actioncmd.
62528
62529 2006-11-02  Bruno Haible  <bruno@clisp.org>
62530
62531         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
62532         newline sequence in the Makefile.am snippet as a space, like "make"
62533         does.
62534         Reported by Roger Persson <perrog@gmail.com>.
62535
62536 2006-11-01  Bruno Haible  <bruno@clisp.org>
62537
62538         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
62539         already declared in <string.h>.
62540         * lib/strcase.h (strncasecmp): Don't declare it if yes.
62541
62542 2006-11-01  Bruno Haible  <bruno@clisp.org>
62543
62544         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
62545         * lib/strcase.h: Include <string.h>.
62546         (strcasecmp): Define to rpl_strcasecmp here.
62547
62548 2006-11-01  Bruno Haible  <bruno@clisp.org>
62549
62550         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
62551
62552 2006-11-01  Eric Blake  <ebb9@byu.net>
62553
62554         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
62555
62556         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
62557
62558 2006-10-29  Bruno Haible  <bruno@clisp.org>
62559
62560         Make it compile in C++ mode.
62561         * lib/full-write.c (full_rw): Add a cast.
62562
62563 2006-11-01  Bruno Haible  <bruno@clisp.org>
62564
62565         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
62566         be POSIX compliant.
62567         Reported by Roger Persson <perrog@gmail.com>.
62568
62569 2006-11-01  Eric Blake  <ebb9@byu.net>
62570
62571         * lib/getopt_.h: Fix comments.
62572
62573 2006-10-31  Eric Blake  <ebb9@byu.net>
62574
62575         * modules/tmpdir (Depends-on): Add sys_stat.
62576         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
62577         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
62578         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
62579         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
62580         tempname.
62581
62582 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
62583
62584         Avoid some C++ diagnostics reported by Bruno Haible.
62585         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
62586         xmalloc.
62587         (quotearg_alloc): Use xcharalloc rather than xmalloc.
62588         (struct slotvec): Move to top level.
62589         (quotearg_n_options): Rewrite to avoid xmalloc.
62590         * lib/xalloc.h (xcharalloc): New function.
62591         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
62592         [defined __cplusplus]: Add function template that provides result
62593         type propagation.  This part of the change is from Bruno Haible.
62594
62595 2006-10-29  Bruno Haible  <bruno@clisp.org>
62596
62597         Make it compile in C++ mode.
62598         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
62599         * lib/strnlen1.c (strnlen1): Cast memchr result.
62600         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
62601         * lib/clean-temp.c (string_equals, string_hash): Add casts.
62602         (create_temp_dir): Rename local variable 'template'.
62603         (compile_csharp_using_sscli): Add cast.
62604         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
62605         * lib/findprog.c (find_in_path): Likewise.
62606         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
62607         * lib/wait-process.c (register_slave_subprocess): Likewise.
62608
62609 2006-10-22  Bruno Haible  <bruno@clisp.org>
62610
62611         * modules/tsearch: New file.
62612         * lib/tsearch.h: New file.
62613         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
62614         * m4/tsearch.m4: New file.
62615         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
62616
62617 2006-10-29  Eric Blake  <ebb9@byu.net>
62618
62619         * lib/arcfour.c: Assume config.h.
62620         * lib/arctwo.c: Likewise.
62621         * lib/base64.c: Likewise.
62622         * lib/check-version.c: Likewise.
62623         * lib/crc.c: Likewise.
62624         * lib/des.c: Likewise.
62625         * lib/gc-gnulib.c: Likewise.
62626         * lib/gc-libgcrypt.c: Likewise.
62627         * lib/gc-pbkdf2-sha1.c: Likewise.
62628         * lib/getaddrinfo.c: Likewise.
62629         * lib/getdelim.c: Likewise.
62630         * lib/getline.c: Likewise.
62631         * lib/hmac-md5.c: Likewise.
62632         * lib/hmac-sha1.c: Likewise.
62633         * lib/iconvme.c: Likewise.
62634         * lib/md2.c: Likewise.
62635         * lib/md4.c: Likewise.
62636         * lib/memxor.c: Likewise.
62637         * lib/read-file.c: Likewise.
62638         * lib/readline.c: Likewise.
62639         * lib/rijndael-alg-fst.c: Likewise.
62640         * lib/rijndael-api-fst.c: Likewise.
62641         * lib/xgetdomainname.c: Likewise.
62642
62643 2006-10-28  Eric Blake  <ebb9@byu.net>
62644
62645         * lib/xstrndup.c: Assume config.h.
62646
62647 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
62648
62649         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
62650         stat-macros.h is now for our own macros, whereas stat_h is for
62651         macros in the <sys/stat.h> name space.
62652         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
62653         (STAT_MACROS_H): Remove.
62654         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
62655         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
62656         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
62657         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
62658         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
62659         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
62660         Move these macros to ...
62661         * lib/stat_.h: here.  Don't include stat-macros.h.
62662         * lib/canonicalize.c: Don't include stat-macros.h.
62663         * lib/chown.c: Likewise.
62664         * lib/euidaccess.c: Likewise.
62665         * lib/file-type.c: Likewise.
62666         * lib/filemode.c: Likewise.
62667         * lib/glob.c: Likewise.
62668         * lib/isapipe.c: Likewise.
62669         * lib/lchown.c: Likewise.
62670         * lib/lstat.c: Likewise.
62671         * lib/mkdir-p.c: Likewise.
62672         * lib/rmdir.c: Likewise.
62673         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
62674         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
62675         unless mkdir isn't declared, to speed up 'configure'.
62676         Always create sys/stat.h, since it's unlikely any real sys/stat.h
62677         would define all the S_* symbols.
62678         * modules/canonicalize (Depends-on):
62679         Depend on sys_stat, not stat-macros.
62680         * modules/chown: Likewise.
62681         * modules/euidaccess: Likewise.
62682         * modules/filemode: Likewise.
62683         * modules/file-type: Likewise.
62684         * modules/glob: Likewise.
62685         * modules/isapipe: Likewise.
62686         * modules/lchown: Likewise.
62687         * modules/lstat: Likewise.
62688         * modules/mkancesdirs: Likewise.
62689         * modules/rmdir: Likewise.
62690         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
62691         * modules/modechange: Likewise.
62692         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
62693         (configure.ac): Remove gl_STAT_MACROS.
62694         * modules/sys_stat (Depends-on): Remove stat-macros.
62695
62696 2006-10-27  Bruno Haible  <bruno@clisp.org>
62697
62698         * m4/signed.m4: Remove file.
62699         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
62700         invocation.
62701         * modules/vasnprintf (Files): Remove m4/signed.m4.
62702
62703 2006-10-27  Bruno Haible  <bruno@clisp.org>
62704
62705         Update to GNU gettext 0.16.
62706         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
62707         m4/inttypes-h.m4, m4/signed.m4.
62708         * m4/gettext.m4: Update to GNU gettext 0.16.
62709         * m4/intl.m4: New file, from GNU gettext.
62710         * m4/intldir.m4: New file, from GNU gettext.
62711         * config/srclist.txt: Update
62712
62713 2006-10-27  Eric Blake  <ebb9@byu.net>
62714
62715         * MODULES.html.sh: Document tempname.
62716         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
62717         dependencies.
62718         (Files): Move lib/tempname.c...
62719         * modules/tempname: ...to this new module.
62720         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
62721         (gl_PREREQ_TEMPNAME): Move...
62722         * m4/tempname.m4: ...to this new file.
62723         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
62724         * modules/sys_stat (Depends-on): Add stat-macros.
62725         * lib/stat_.h (includes): Pick up stat macros.
62726         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
62727         if stat macros are broken.
62728         * lib/tempname.c (includes): No need to include "stat-macros.h".
62729         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
62730         (direxists, __path_search) [!_LIBC]: Don't compile these in
62731         gnulib; the tmpdir module covers that.
62732         * lib/tempname.h: New file.
62733
62734 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
62735
62736         * COPYING: Explain how gnulib-tool converts licence headers.
62737         Almost all wording by Eric Blake.
62738
62739 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
62740
62741         * lib/mbchar.h (is_basic_table): Make read-only.
62742         * lib/mbchar.c (is_basic_table): Likewise.
62743         Reported by John Darrington.
62744
62745 2006-10-25  Bruno Haible  <bruno@clisp.org>
62746
62747         * lib/progname.h (set_program_name): Undefine before defining.
62748
62749 2006-10-25  Bruno Haible  <bruno@clisp.org>
62750
62751         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
62752         false for non-gcc C++ compilers.
62753         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
62754
62755 2006-10-24  Bruno Haible  <bruno@clisp.org>
62756
62757         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
62758         iconv implementations like Irix iconv.
62759
62760 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
62761
62762         * modules/vararrays: New file.
62763         * m4/vararrays.m4: New file, taken from diffutils.
62764         * MODULES.html.sh: New module vararrays.
62765
62766 2006-10-24  Karl Berry  <karl@gnu.org>
62767
62768         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
62769         Don't call GNU Unix.
62770
62771 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62772
62773         * users.txt: Add Libtool.
62774
62775         Sync from Libtool:
62776
62777         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
62778
62779         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
62780         to gnulib's policy of including config.h unconditionally.
62781
62782 2006-10-24  Bruno Haible  <bruno@clisp.org>
62783
62784         * modules/wcwidth (Files): Add m4/wint_t.m4.
62785         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
62786         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
62787
62788 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
62789
62790         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
62791         to pacify GCC with some -W flags enabled.  Problem reported by
62792         Bruno Haible.
62793
62794 2006-10-24  Jim Meyering  <jim@meyering.net>
62795
62796         * MODULES.html.sh: Remove uinttostr.  It's not a module.
62797         Reported by Karl Berry.
62798
62799 2006-10-23  Bruno Haible  <bruno@clisp.org>
62800
62801         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
62802
62803 2006-10-24  Bruno Haible  <bruno@clisp.org>
62804
62805         * lib/gl_list.h: Use C comment style, not C++ comment style.
62806
62807 2006-10-23  Eric Blake  <ebb9@byu.net>
62808
62809         * lib/getaddrinfo.c (includes): Add missing include.
62810
62811 2006-10-23  Bruno Haible  <bruno@clisp.org>
62812             Paul Eggert  <eggert@cs.ucla.edu>
62813
62814         Ability to rename obstack_free.
62815         * lib/obstack.h (__obstack_free): New macro. Declare instead of
62816         obstack_free.
62817         (obstack_free): Invoke the __obstack_free macro.
62818         * lib/obstack.c (obstack_free): Use __obstack_free macro.
62819
62820 2006-10-23  Bruno Haible  <bruno@clisp.org>
62821             Paul Eggert  <eggert@cs.ucla.edu>
62822
62823         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
62824         __argc, __argv from the declaration. (They are defined as macros on
62825         mingw.)
62826
62827 2006-10-22  Bruno Haible  <bruno@clisp.org>
62828
62829         * doc/gnulib-intro.texi: New file.
62830         * doc/gnulib.texi: Include it.
62831
62832 2006-10-21  Bruno Haible  <bruno@clisp.org>
62833
62834         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
62835         "Introduction", "Miscellanous Notes", "Particular Modules".
62836
62837 2006-10-21  Bruno Haible  <bruno@clisp.org>
62838
62839         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62840         Change mostlyclean-local rule to avoid sh syntax error from bash
62841         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
62842
62843 2006-10-23  Jim Meyering  <jim@meyering.net>
62844
62845         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
62846         in place of snprintf.
62847
62848         * modules/inttostr (Files): Add lib/uinttostr.c.
62849         * lib/uinttostr.c (inttostr): New file/function.
62850         * lib/inttostr.h (uinttostr): Declare.
62851         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
62852         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
62853         Add uinttostr.
62854         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
62855
62856 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
62857
62858         * lib/canonicalize.c (ELOOP): Define if not already defined.
62859         Problem reported by Bruno Haible in
62860         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
62861
62862 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
62863
62864         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
62865         Problem reported by Perry Smith and Ville Laurikari.
62866
62867         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
62868         uses.
62869
62870 2006-10-19  Bruno Haible  <bruno@clisp.org>
62871
62872         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
62873         for mingw.
62874
62875 2006-10-19  Bruno Haible  <bruno@clisp.org>
62876
62877         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
62878         Needed for mingw.
62879
62880 2006-10-19  Bruno Haible  <bruno@clisp.org>
62881
62882         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
62883
62884 2006-10-19  Bruno Haible  <bruno@clisp.org>
62885
62886         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
62887         it.
62888
62889 2006-10-19  Bruno Haible  <bruno@clisp.org>
62890
62891         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
62892         invocation.
62893
62894 2006-10-19  Bruno Haible  <bruno@clisp.org>
62895
62896         * gnulib-tool (func_create_testdir): Don't include ftruncate and
62897         mountlist by default.
62898
62899 2006-10-16  Bruno Haible  <bruno@clisp.org>
62900
62901         * lib/c-strstr.c: Include c-strstr.h.
62902
62903 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
62904
62905         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
62906         in a slash.
62907
62908 2006-10-18  Bruno Haible  <bruno@clisp.org>
62909
62910         * lib/lock.h [C++]: Wrap definitions in extern "C".
62911
62912 2006-10-18  Bruno Haible  <bruno@clisp.org>
62913
62914         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
62915         gl_LIBOBJS list.
62916
62917 2006-10-18  Bruno Haible  <bruno@clisp.org>
62918
62919         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
62920
62921 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
62922
62923         * lib/xstrtol.h: Include gettext.h.
62924         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
62925         Problem reported by Eric Blake.
62926         * modules/xstrtol (Depends-on): Add gettext-h.
62927
62928 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
62929
62930         * lib/strftime.c (advance): New macro.
62931         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
62932         incomplete type, so you can't add 0 to it.  Problem and patch
62933         reported by Eelco Dolstra for dietlibc.
62934
62935 2006-10-18  Jim Meyering  <jim@meyering.net>
62936
62937         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
62938         type for a local, and rename it: s/up/user_proc/.
62939
62940 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
62941
62942         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
62943         READ_UTMP_USER_PROCESS.
62944         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
62945
62946 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
62947
62948         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
62949         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
62950
62951 2006-10-17  Eric Blake  <ebb9@byu.net>
62952
62953         * lib/sigprocmask.c (sigprocmask): Fix typo.
62954
62955         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
62956
62957         * modules/clean-temp (Makefile.am): Don't add to make output...
62958         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
62959         config.h.
62960
62961 2006-10-17  Bruno Haible  <bruno@clisp.org>
62962
62963         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
62964         differently if DEFAULT_TEXT_DOMAIN is set.
62965
62966 2006-10-16  Bruno Haible  <bruno@clisp.org>
62967
62968         * lib/clean-temp.c: Include fwriteerror.h.
62969
62970 2006-10-16  Bruno Haible  <bruno@clisp.org>
62971
62972         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
62973
62974 2006-10-16  Bruno Haible  <bruno@clisp.org>
62975
62976         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
62977         * lib/sigprocmask.h: Include <sys/types.h>.
62978         (sigset_t): Use the system's definition if present.
62979
62980 2006-10-17  Eric Blake  <ebb9@byu.net>
62981
62982         * lib/xvasprintf.c (includes): Assume config.h.
62983         * lib/xasprintf.c (includes): Likewise.
62984
62985 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
62986
62987         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
62988         at least as wide as intmax_t.
62989
62990 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
62991
62992         (Imported from Automake.)
62993         * build-aux/gnupload: Update to version 1.1 of directive file.
62994
62995 2006-10-16  Eric Blake  <ebb9@byu.net>
62996
62997         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
62998         match Automake 1.10a.
62999
63000 2006-10-14  Bruno Haible  <bruno@clisp.org>
63001
63002         * modules/sigprocmask: New file.
63003         * lib/sigprocmask.h: New file.
63004         * lib/sigprocmask.c: New file.
63005         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
63006         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
63007         request sigprocmask.o.
63008         (gl_PREREQ_SIGPROCMASK): New macro.
63009         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
63010         (Depends-on): Add sigprocmask.
63011         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
63012         gt_SIGNALBLOCKING. Test for 'raise' only once.
63013         * lib/fatal-signal.c: Include sigprocmask.h.
63014         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
63015         unblock_fatal_signals): Define always.
63016         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
63017         sigprocmask.
63018
63019 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
63020
63021         Sync from Automake.
63022         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
63023         which incorrectly sets the mode of an existing destination
63024         directory.  In some cases the unpatched install-sh could do the
63025         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
63026         system.  We hope this is rare in practice, but it's clearly worth
63027         fixing.  Problem reported by Alex Unleashed in
63028         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
63029         Also, don't bother to check for -m bugs unless we're using -m;
63030         suggested by Stepan Kasal.
63031
63032 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63033
63034         Sync from Automake.
63035         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
63036         `-c' flag, so they appear at the same position as in %FASTDEP%
63037         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
63038         which ignores unknown options only after the first non-option.
63039         Bug report against M4 by Nelson H. F. Beebe.
63040
63041 2006-10-13  Jim Meyering  <jim@meyering.net>
63042
63043         Fix a bug in yesterday's change.
63044         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
63045         p->fts_statp->st_dev would be used uninitialized.
63046         Ensures that we always call fts_stat on the very first entry.
63047         Miklos Szeredi reported that find -xdev stopped working.
63048
63049 2006-10-12  Bruno Haible  <bruno@clisp.org>
63050
63051         * gnulib-tool (func_get_automake_snippet): Append an automatically
63052         computed EXTRA_DIST augmentation.
63053         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
63054         * modules/alloca-opt (Makefile.am): Likewise.
63055         * modules/allocsa (Makefile.am): Likewise.
63056         * modules/arcfour (Makefile.am): Likewise.
63057         * modules/arctwo (Makefile.am): Likewise.
63058         * modules/argmatch (Makefile.am): Likewise.
63059         * modules/argz (Makefile.am): Likewise.
63060         * modules/atexit (Makefile.am): Likewise.
63061         * modules/backupfile (Makefile.am): Likewise.
63062         * modules/byteswap (Makefile.am): Likewise.
63063         * modules/c-strtod (Makefile.am): Likewise.
63064         * modules/c-strtold (Makefile.am): Likewise.
63065         * modules/calloc (Makefile.am): Likewise.
63066         * modules/canon-host (Makefile.am): Likewise.
63067         * modules/canonicalize (Makefile.am): Likewise.
63068         * modules/chdir-long (Makefile.am): Likewise.
63069         * modules/chdir-safer (Makefile.am): Likewise.
63070         * modules/check-version (Makefile.am): Likewise.
63071         * modules/chown (Makefile.am): Likewise.
63072         * modules/cloexec (Makefile.am): Likewise.
63073         * modules/close-stream (Makefile.am): Likewise.
63074         * modules/closeout (Makefile.am): Likewise.
63075         * modules/crc (Makefile.am): Likewise.
63076         * modules/csharpexec (Makefile.am): Likewise.
63077         * modules/cycle-check (Makefile.am): Likewise.
63078         * modules/des (Makefile.am): Likewise.
63079         * modules/dev-ino (Makefile.am): Likewise.
63080         * modules/dirfd (Makefile.am): Likewise.
63081         * modules/dirname (Makefile.am): Likewise.
63082         * modules/dup2 (Makefile.am): Likewise.
63083         * modules/eealloc (Makefile.am): Likewise.
63084         * modules/error (Makefile.am): Likewise.
63085         * modules/euidaccess (Makefile.am): Likewise.
63086         * modules/exclude (Makefile.am): Likewise.
63087         * modules/exitfail (Makefile.am): Likewise.
63088         * modules/fcntl-safer (Makefile.am): Likewise.
63089         * modules/fcntl (Makefile.am): Likewise.
63090         * modules/file-type (Makefile.am): Likewise.
63091         * modules/fileblocks (Makefile.am): Likewise.
63092         * modules/filemode (Makefile.am): Likewise.
63093         * modules/filenamecat (Makefile.am): Likewise.
63094         * modules/fnmatch (Makefile.am): Likewise.
63095         * modules/fopen-safer (Makefile.am): Likewise.
63096         * modules/fpending (Makefile.am): Likewise.
63097         * modules/fprintftime (Makefile.am): Likewise.
63098         * modules/free (Makefile.am): Likewise.
63099         * modules/fsusage (Makefile.am): Likewise.
63100         * modules/ftruncate (Makefile.am): Likewise.
63101         * modules/fts (Makefile.am): Likewise.
63102         * modules/gc-arcfour (Makefile.am): Likewise.
63103         * modules/gc-des (Makefile.am): Likewise.
63104         * modules/gc-hmac-md5 (Makefile.am): Likewise.
63105         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
63106         * modules/gc-md4 (Makefile.am): Likewise.
63107         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
63108         * modules/gc-sha1 (Makefile.am): Likewise.
63109         * modules/gc (Makefile.am): Likewise.
63110         * modules/getaddrinfo (Makefile.am): Likewise.
63111         * modules/getcwd (Makefile.am): Likewise.
63112         * modules/getdelim (Makefile.am): Likewise.
63113         * modules/getdomainname (Makefile.am): Likewise.
63114         * modules/getgroups (Makefile.am): Likewise.
63115         * modules/gethostname (Makefile.am): Likewise.
63116         * modules/gethrxtime (Makefile.am): Likewise.
63117         * modules/getline (Makefile.am): Likewise.
63118         * modules/getloadavg (Makefile.am): Likewise.
63119         * modules/getlogin_r (Makefile.am): Likewise.
63120         * modules/getndelim2 (Makefile.am): Likewise.
63121         * modules/getopt (Makefile.am): Likewise.
63122         * modules/getpagesize (Makefile.am): Likewise.
63123         * modules/getpass-gnu (Makefile.am): Likewise.
63124         * modules/getpass (Makefile.am): Likewise.
63125         * modules/getsubopt (Makefile.am): Likewise.
63126         * modules/gettime (Makefile.am): Likewise.
63127         * modules/gettimeofday (Makefile.am): Likewise.
63128         * modules/getugroups (Makefile.am): Likewise.
63129         * modules/getusershell (Makefile.am): Likewise.
63130         * modules/glob (Makefile.am): Likewise.
63131         * modules/group-member (Makefile.am): Likewise.
63132         * modules/hard-locale (Makefile.am): Likewise.
63133         * modules/hash (Makefile.am): Likewise.
63134         * modules/hmac-md5 (Makefile.am): Likewise.
63135         * modules/hmac-sha1 (Makefile.am): Likewise.
63136         * modules/human (Makefile.am): Likewise.
63137         * modules/idcache (Makefile.am): Likewise.
63138         * modules/imaxabs (Makefile.am): Likewise.
63139         * modules/imaxdiv (Makefile.am): Likewise.
63140         * modules/inet_ntop (Makefile.am): Likewise.
63141         * modules/inet_pton (Makefile.am): Likewise.
63142         * modules/intprops (Makefile.am): Likewise.
63143         * modules/inttostr (Makefile.am): Likewise.
63144         * modules/inttypes (Makefile.am): Likewise.
63145         * modules/isapipe (Makefile.am): Likewise.
63146         * modules/javaversion (Makefile.am): Likewise.
63147         * modules/lchmod (Makefile.am): Likewise.
63148         * modules/lchown (Makefile.am): Likewise.
63149         * modules/localcharset (Makefile.am): Likewise.
63150         * modules/long-options (Makefile.am): Likewise.
63151         * modules/lstat (Makefile.am): Likewise.
63152         * modules/malloc (Makefile.am): Likewise.
63153         * modules/mathl (Makefile.am): Likewise.
63154         * modules/mbchar (Makefile.am): Likewise.
63155         * modules/md2 (Makefile.am): Likewise.
63156         * modules/md4 (Makefile.am): Likewise.
63157         * modules/md5 (Makefile.am): Likewise.
63158         * modules/memcasecmp (Makefile.am): Likewise.
63159         * modules/memchr (Makefile.am): Likewise.
63160         * modules/memcmp (Makefile.am): Likewise.
63161         * modules/memcoll (Makefile.am): Likewise.
63162         * modules/memcpy (Makefile.am): Likewise.
63163         * modules/memmem (Makefile.am): Likewise.
63164         * modules/memmove (Makefile.am): Likewise.
63165         * modules/mempcpy (Makefile.am): Likewise.
63166         * modules/memrchr (Makefile.am): Likewise.
63167         * modules/memset (Makefile.am): Likewise.
63168         * modules/memxor (Makefile.am): Likewise.
63169         * modules/mkancesdirs (Makefile.am): Likewise.
63170         * modules/mkdir-p (Makefile.am): Likewise.
63171         * modules/mkdir (Makefile.am): Likewise.
63172         * modules/mkdtemp (Makefile.am): Likewise.
63173         * modules/mkstemp (Makefile.am): Likewise.
63174         * modules/mktime (Makefile.am): Likewise.
63175         * modules/modechange (Makefile.am): Likewise.
63176         * modules/mountlist (Makefile.am): Likewise.
63177         * modules/nanosleep (Makefile.am): Likewise.
63178         * modules/obstack (Makefile.am): Likewise.
63179         * modules/openat (Makefile.am): Likewise.
63180         * modules/pagealign_alloc (Makefile.am): Likewise.
63181         * modules/pathmax (Makefile.am): Likewise.
63182         * modules/physmem (Makefile.am): Likewise.
63183         * modules/poll (Makefile.am): Likewise.
63184         * modules/posixtm (Makefile.am): Likewise.
63185         * modules/posixver (Makefile.am): Likewise.
63186         * modules/putenv (Makefile.am): Likewise.
63187         * modules/quote (Makefile.am): Likewise.
63188         * modules/quotearg (Makefile.am): Likewise.
63189         * modules/raise (Makefile.am): Likewise.
63190         * modules/read-file (Makefile.am): Likewise.
63191         * modules/readline (Makefile.am): Likewise.
63192         * modules/readlink (Makefile.am): Likewise.
63193         * modules/readtokens (Makefile.am): Likewise.
63194         * modules/readutmp (Makefile.am): Likewise.
63195         * modules/realloc (Makefile.am): Likewise.
63196         * modules/regex (Makefile.am): Likewise.
63197         * modules/rename-dest-slash (Makefile.am): Likewise.
63198         * modules/rename (Makefile.am): Likewise.
63199         * modules/rijndael (Makefile.am): Likewise.
63200         * modules/rmdir (Makefile.am): Likewise.
63201         * modules/rpmatch (Makefile.am): Likewise.
63202         * modules/safe-read (Makefile.am): Likewise.
63203         * modules/safe-write (Makefile.am): Likewise.
63204         * modules/same-inode (Makefile.am): Likewise.
63205         * modules/same (Makefile.am): Likewise.
63206         * modules/save-cwd (Makefile.am): Likewise.
63207         * modules/savedir (Makefile.am): Likewise.
63208         * modules/setenv (Makefile.am): Likewise.
63209         * modules/settime (Makefile.am): Likewise.
63210         * modules/sha1 (Makefile.am): Likewise.
63211         * modules/sig2str (Makefile.am): Likewise.
63212         * modules/snprintf (Makefile.am): Likewise.
63213         * modules/stat-macros (Makefile.am): Likewise.
63214         * modules/stat-time (Makefile.am): Likewise.
63215         * modules/stdbool (Makefile.am): Likewise.
63216         * modules/stdint (Makefile.am): Likewise.
63217         * modules/stdlib-safer (Makefile.am): Likewise.
63218         * modules/stpcpy (Makefile.am): Likewise.
63219         * modules/stpncpy (Makefile.am): Likewise.
63220         * modules/strcase (Makefile.am): Likewise.
63221         * modules/strcasestr (Makefile.am): Likewise.
63222         * modules/strchrnul (Makefile.am): Likewise.
63223         * modules/strcspn (Makefile.am): Likewise.
63224         * modules/strdup (Makefile.am): Likewise.
63225         * modules/strerror (Makefile.am): Likewise.
63226         * modules/strftime (Makefile.am): Likewise.
63227         * modules/strndup (Makefile.am): Likewise.
63228         * modules/strnlen (Makefile.am): Likewise.
63229         * modules/strpbrk (Makefile.am): Likewise.
63230         * modules/strsep (Makefile.am): Likewise.
63231         * modules/strstr (Makefile.am): Likewise.
63232         * modules/strtod (Makefile.am): Likewise.
63233         * modules/strtoimax (Makefile.am): Likewise.
63234         * modules/strtok_r (Makefile.am): Likewise.
63235         * modules/strtol (Makefile.am): Likewise.
63236         * modules/strtoll (Makefile.am): Likewise.
63237         * modules/strtoul (Makefile.am): Likewise.
63238         * modules/strtoull (Makefile.am): Likewise.
63239         * modules/strtoumax (Makefile.am): Likewise.
63240         * modules/strverscmp (Makefile.am): Likewise.
63241         * modules/sys_socket (Makefile.am): Likewise.
63242         * modules/sys_stat (Makefile.am): Likewise.
63243         * modules/sysexits (Makefile.am): Likewise.
63244         * modules/time_r (Makefile.am): Likewise.
63245         * modules/timegm (Makefile.am): Likewise.
63246         * modules/timespec (Makefile.am): Likewise.
63247         * modules/tmpfile-safer (Makefile.am): Likewise.
63248         * modules/trim (Makefile.am): Likewise.
63249         * modules/unistd-safer (Makefile.am): Likewise.
63250         * modules/unlinkdir (Makefile.am): Likewise.
63251         * modules/unlocked-io (Makefile.am): Likewise.
63252         * modules/userspec (Makefile.am): Likewise.
63253         * modules/utime (Makefile.am): Likewise.
63254         * modules/utimecmp (Makefile.am): Likewise.
63255         * modules/utimens (Makefile.am): Likewise.
63256         * modules/vasnprintf (Makefile.am): Likewise.
63257         * modules/vasprintf (Makefile.am): Likewise.
63258         * modules/vsnprintf (Makefile.am): Likewise.
63259         * modules/xalloc (Makefile.am): Likewise.
63260         * modules/xgetcwd (Makefile.am): Likewise.
63261         * modules/xnanosleep (Makefile.am): Likewise.
63262         * modules/xreadlink (Makefile.am): Likewise.
63263         * modules/xstrtod (Makefile.am): Likewise.
63264         * modules/xstrtol (Makefile.am): Likewise.
63265         * modules/xstrtold (Makefile.am): Likewise.
63266         * modules/yesno (Makefile.am): Likewise.
63267         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
63268
63269 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
63270
63271         * modules/error (Makefile.am): Distribute files through
63272         EXTRA_DIST, not lib_SOURCES.
63273
63274 2006-10-12  Eric Blake  <ebb9@byu.net>
63275
63276         * modules/error (Makefile.am): Distribute files in /lib.
63277         * modules/obstack (Makefile.am): Likewise.
63278
63279 2006-10-12  Bruno Haible  <bruno@clisp.org>
63280
63281         * modules/acl (Makefile.am): Distribute all files in lib/ through
63282         EXTRA_DIST.
63283         * modules/arcfour (Makefile.am): Likewise.
63284         * modules/arctwo (Makefile.am): Likewise.
63285         * modules/argmatch (Makefile.am): Likewise.
63286         * modules/argz (Makefile.am): Likewise.
63287         * modules/atexit (Makefile.am): Likewise.
63288         * modules/backupfile (Makefile.am): Likewise.
63289         * modules/c-strtod (Makefile.am): Likewise.
63290         * modules/c-strtold (Makefile.am): Likewise.
63291         * modules/calloc (Makefile.am): Likewise.
63292         * modules/canon-host (Makefile.am): Likewise.
63293         * modules/canonicalize (Makefile.am): Likewise.
63294         * modules/chdir-long (Makefile.am): Likewise.
63295         * modules/chdir-safer (Makefile.am): Likewise.
63296         * modules/check-version (Makefile.am): Likewise.
63297         * modules/chown (Makefile.am): Likewise.
63298         * modules/cloexec (Makefile.am): Likewise.
63299         * modules/close-stream (Makefile.am): Likewise.
63300         * modules/closeout (Makefile.am): Likewise.
63301         * modules/crc (Makefile.am): Likewise.
63302         * modules/cycle-check (Makefile.am): Likewise.
63303         * modules/des (Makefile.am): Likewise.
63304         * modules/dirfd (Makefile.am): Likewise.
63305         * modules/dirname (Makefile.am): Likewise.
63306         * modules/dup2 (Makefile.am): Likewise.
63307         * modules/euidaccess (Makefile.am): Likewise.
63308         * modules/exclude (Makefile.am): Likewise.
63309         * modules/exitfail (Makefile.am): Likewise.
63310         * modules/fcntl-safer (Makefile.am): Likewise.
63311         * modules/file-type (Makefile.am): Likewise.
63312         * modules/fileblocks (Makefile.am): Likewise.
63313         * modules/filemode (Makefile.am): Likewise.
63314         * modules/filenamecat (Makefile.am): Likewise.
63315         * modules/fnmatch (Makefile.am): Likewise.
63316         * modules/fopen-safer (Makefile.am): Likewise.
63317         * modules/fpending (Makefile.am): Likewise.
63318         * modules/fprintftime (Makefile.am): Likewise.
63319         * modules/free (Makefile.am): Likewise.
63320         * modules/fsusage (Makefile.am): Likewise.
63321         * modules/ftruncate (Makefile.am): Likewise.
63322         * modules/fts (Makefile.am): Likewise.
63323         * modules/gc (Makefile.am): Likewise.
63324         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
63325         * modules/getaddrinfo (Makefile.am): Likewise.
63326         * modules/getcwd (Makefile.am): Likewise.
63327         * modules/getdelim (Makefile.am): Likewise.
63328         * modules/getdomainname (Makefile.am): Likewise.
63329         * modules/getgroups (Makefile.am): Likewise.
63330         * modules/gethostname (Makefile.am): Likewise.
63331         * modules/gethrxtime (Makefile.am): Likewise.
63332         * modules/getline (Makefile.am): Likewise.
63333         * modules/getloadavg (Makefile.am): Likewise.
63334         * modules/getlogin_r (Makefile.am): Likewise.
63335         * modules/getopt (Makefile.am): Likewise.
63336         * modules/getpass (Makefile.am): Likewise.
63337         * modules/getpass-gnu (Makefile.am): Likewise.
63338         * modules/getsubopt (Makefile.am): Likewise.
63339         * modules/gettime (Makefile.am): Likewise.
63340         * modules/gettimeofday (Makefile.am): Likewise.
63341         * modules/getugroups (Makefile.am): Likewise.
63342         * modules/getusershell (Makefile.am): Likewise.
63343         * modules/glob (Makefile.am): Likewise.
63344         * modules/group-member (Makefile.am): Likewise.
63345         * modules/hard-locale (Makefile.am): Likewise.
63346         * modules/hash (Makefile.am): Likewise.
63347         * modules/hmac-md5 (Makefile.am): Likewise.
63348         * modules/hmac-sha1 (Makefile.am): Likewise.
63349         * modules/human (Makefile.am): Likewise.
63350         * modules/idcache (Makefile.am): Likewise.
63351         * modules/imaxabs (Makefile.am): Likewise.
63352         * modules/imaxdiv (Makefile.am): Likewise.
63353         * modules/inet_ntop (Makefile.am): Likewise.
63354         * modules/inet_pton (Makefile.am): Likewise.
63355         * modules/inttostr (Makefile.am): Likewise.
63356         * modules/isapipe (Makefile.am): Likewise.
63357         * modules/lchown (Makefile.am): Likewise.
63358         * modules/long-options (Makefile.am): Likewise.
63359         * modules/lstat (Makefile.am): Likewise.
63360         * modules/malloc (Makefile.am): Likewise.
63361         * modules/mathl (Makefile.am): Likewise.
63362         * modules/mbchar (Makefile.am): Likewise.
63363         * modules/md2 (Makefile.am): Likewise.
63364         * modules/md4 (Makefile.am): Likewise.
63365         * modules/md5 (Makefile.am): Likewise.
63366         * modules/memcasecmp (Makefile.am): Likewise.
63367         * modules/memchr (Makefile.am): Likewise.
63368         * modules/memcmp (Makefile.am): Likewise.
63369         * modules/memcoll (Makefile.am): Likewise.
63370         * modules/memcpy (Makefile.am): Likewise.
63371         * modules/memmem (Makefile.am): Likewise.
63372         * modules/memmove (Makefile.am): Likewise.
63373         * modules/mempcpy (Makefile.am): Likewise.
63374         * modules/memrchr (Makefile.am): Likewise.
63375         * modules/memset (Makefile.am): Likewise.
63376         * modules/memxor (Makefile.am): Likewise.
63377         * modules/mkancesdirs (Makefile.am): Likewise.
63378         * modules/mkdir (Makefile.am): Likewise.
63379         * modules/mkdir-p (Makefile.am): Likewise.
63380         * modules/mkdtemp (Makefile.am): Likewise.
63381         * modules/mkstemp (Makefile.am): Likewise.
63382         * modules/mktime (Makefile.am): Likewise.
63383         * modules/modechange (Makefile.am): Likewise.
63384         * modules/mountlist (Makefile.am): Likewise.
63385         * modules/nanosleep (Makefile.am): Likewise.
63386         * modules/openat (Makefile.am): Likewise.
63387         * modules/pagealign_alloc (Makefile.am): Likewise.
63388         * modules/physmem (Makefile.am): Likewise.
63389         * modules/poll (Makefile.am): Likewise.
63390         * modules/posixtm (Makefile.am): Likewise.
63391         * modules/posixver (Makefile.am): Likewise.
63392         * modules/putenv (Makefile.am): Likewise.
63393         * modules/quote (Makefile.am): Likewise.
63394         * modules/quotearg (Makefile.am): Likewise.
63395         * modules/raise (Makefile.am): Likewise.
63396         * modules/read-file (Makefile.am): Likewise.
63397         * modules/readline (Makefile.am): Likewise.
63398         * modules/readlink (Makefile.am): Likewise.
63399         * modules/readtokens (Makefile.am): Likewise.
63400         * modules/readutmp (Makefile.am): Likewise.
63401         * modules/realloc (Makefile.am): Likewise.
63402         * modules/regex (Makefile.am): Likewise.
63403         * modules/rename (Makefile.am): Likewise.
63404         * modules/rename-dest-slash (Makefile.am): Likewise.
63405         * modules/rijndael (Makefile.am): Likewise.
63406         * modules/rmdir (Makefile.am): Likewise.
63407         * modules/rpmatch (Makefile.am): Likewise.
63408         * modules/safe-read (Makefile.am): Likewise.
63409         * modules/safe-write (Makefile.am): Likewise.
63410         * modules/same (Makefile.am): Likewise.
63411         * modules/save-cwd (Makefile.am): Likewise.
63412         * modules/savedir (Makefile.am): Likewise.
63413         * modules/setenv (Makefile.am): Likewise.
63414         * modules/settime (Makefile.am): Likewise.
63415         * modules/sha1 (Makefile.am): Likewise.
63416         * modules/sig2str (Makefile.am): Likewise.
63417         * modules/snprintf (Makefile.am): Likewise.
63418         * modules/stdlib-safer (Makefile.am): Likewise.
63419         * modules/stpcpy (Makefile.am): Likewise.
63420         * modules/stpncpy (Makefile.am): Likewise.
63421         * modules/strcase (Makefile.am): Likewise.
63422         * modules/strcasestr (Makefile.am): Likewise.
63423         * modules/strchrnul (Makefile.am): Likewise.
63424         * modules/strcspn (Makefile.am): Likewise.
63425         * modules/strdup (Makefile.am): Likewise.
63426         * modules/strerror (Makefile.am): Likewise.
63427         * modules/strftime (Makefile.am): Likewise.
63428         * modules/strndup (Makefile.am): Likewise.
63429         * modules/strnlen (Makefile.am): Likewise.
63430         * modules/strpbrk (Makefile.am): Likewise.
63431         * modules/strsep (Makefile.am): Likewise.
63432         * modules/strstr (Makefile.am): Likewise.
63433         * modules/strtod (Makefile.am): Likewise.
63434         * modules/strtoimax (Makefile.am): Likewise.
63435         * modules/strtok_r (Makefile.am): Likewise.
63436         * modules/strtol (Makefile.am): Likewise.
63437         * modules/strtoll (Makefile.am): Likewise.
63438         * modules/strtoul (Makefile.am): Likewise.
63439         * modules/strtoull (Makefile.am): Likewise.
63440         * modules/strtoumax (Makefile.am): Likewise.
63441         * modules/strverscmp (Makefile.am): Likewise.
63442         * modules/time_r (Makefile.am): Likewise.
63443         * modules/timegm (Makefile.am): Likewise.
63444         * modules/tmpfile-safer (Makefile.am): Likewise.
63445         * modules/unistd-safer (Makefile.am): Likewise.
63446         * modules/unlinkdir (Makefile.am): Likewise.
63447         * modules/userspec (Makefile.am): Likewise.
63448         * modules/utime (Makefile.am): Likewise.
63449         * modules/utimecmp (Makefile.am): Likewise.
63450         * modules/utimens (Makefile.am): Likewise.
63451         * modules/vasnprintf (Makefile.am): Likewise.
63452         * modules/vasprintf (Makefile.am): Likewise.
63453         * modules/vsnprintf (Makefile.am): Likewise.
63454         * modules/xalloc (Makefile.am): Likewise.
63455         * modules/xgetcwd (Makefile.am): Likewise.
63456         * modules/xnanosleep (Makefile.am): Likewise.
63457         * modules/xreadlink (Makefile.am): Likewise.
63458         * modules/xstrtod (Makefile.am): Likewise.
63459         * modules/xstrtol (Makefile.am): Likewise.
63460         * modules/xstrtold (Makefile.am): Likewise.
63461         * modules/yesno (Makefile.am): Likewise.
63462
63463 2006-10-12  Jim Meyering  <jim@meyering.net>
63464
63465         * m4/getloadavg.m4: Revert the change below.
63466
63467         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
63468         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
63469         fail with a symlink, which is what coreutils' ./bootstrap now
63470         creates by default.
63471
63472 2006-10-12  Bruno Haible  <bruno@clisp.org>
63473
63474         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
63475         mingw.
63476         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
63477         MSVC and mingw explicitly.
63478
63479 2006-10-11  Simon Josefsson  <jas@extundo.com>
63480             Bruno Haible  <bruno@clisp.org>
63481
63482         Add support for multiple gnulib-tool invocations in the scope of a
63483         single configure.ac file.
63484         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
63485         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
63486         with the same contents as the _LIBADD variable.
63487         (func_emit_initmacro_start, func_emit_initmacro_end,
63488         func_emit_initmacro_done): New functions.
63489         (func_import, func_create_testdir): Invoke them. Allow the identifiers
63490         gl_LIBOBJS and gl_LTLIBOBJS.
63491
63492 2006-10-11  Bruno Haible  <bruno@clisp.org>
63493
63494         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
63495         (func_create_testdir): Don't create po/Makefile.am, don't invoke
63496         autoreconf. Instead, invoke autopoint explicitly but move back the
63497         *.m4 files from gnulib.
63498
63499 2006-10-11  Bruno Haible  <bruno@clisp.org>
63500
63501         * gnulib-tool (func_usage): Make module names after --create-testdir
63502         optional.
63503         (func_create_testdir): If no module was specified, use nearly all
63504         modules.
63505
63506 2006-10-12  Jim Meyering  <jim@meyering.net>
63507
63508         Big performance improvement for fts-based tools that use FTS_NOSTAT.
63509         Avoid spurious inode-mismatch problems on non-POSIX file systems.
63510         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
63511         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
63512         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
63513         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
63514         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
63515         (fts_set_stat_required): New function.
63516         (fts_open): Defer the calls to fts_stat, if possible or requested.
63517         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
63518         into fts_stat itself.
63519         (fts_read): Perform any required (deferred) fts_stat call.
63520         (fts_build): Likewise, for the directory we're about to open and read.
63521         In the readdir loop, carefully decide whether each entry will require
63522         an eventual call to fts_stat, using dirent.d_type info if available.
63523         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
63524         a command line argument into this function.  Update all callers.
63525         Map a return value of FTS_DOT to FTS_D for a command line argument.
63526         * modules/fts (Depends-on): Add d-type.  Alphabetize.
63527         Thanks to Miklos Szeredi for his tenacity and for the initial
63528         bug report about "find" failing on a FUSE-based file system.
63529
63530         * lib/fts.c (fts_open): Use consistent indentation.
63531
63532 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
63533
63534         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
63535         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
63536         reported by Jim Meyering.  All uses of cache variables renamed
63537         to match Autoconf's.
63538         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
63539         the other one.
63540
63541         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
63542         Fix misspelling in diagnostic.
63543
63544 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
63545
63546         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
63547         defined.  Problem reported by Matthew Woehlke.
63548
63549         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
63550         Add support for Tandem NonStop R series.
63551         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
63552         Use new macro.
63553
63554         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
63555         (has_trailing_slash): Omit size arg; all callers changed.
63556         Omit 'inline', since it doesn't help performance and we'd
63557         need to configure it.
63558         Don't count //, ///, etc. as having a trailing slash.
63559         As a side effect, this removes a C99ism reported by Matthew Woehlke.
63560         (rpl_rename_dest_slash): On failure, use rename's errno rather
63561         than (in some cases) an incorrect or junk errno.
63562         Simplify code by removing need to compute length; this does
63563         cause it to make two passes instead of one over the file name,
63564         but it's worth it.
63565
63566         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
63567         change, since Autoconf's version may no longer be appropriate now
63568         that we are using CVS Autoconf's version.  Add support for Tandem.
63569
63570 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
63571             Bruno Haible  <bruno@clisp.org>
63572
63573         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
63574         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
63575         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
63576         gl_AC_TYPE_LONG_LONG.
63577
63578         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
63579         instead of HAVE_LONG_LONG.
63580         * lib/printf-args.c (printf_fetchargs): Likewise.
63581         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
63582         * lib/vasnprintf.c (VASNPRINTF): Likewise.
63583         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
63584         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
63585         gl_AC_TYPE_LONG_LONG.
63586
63587 2006-10-11  Bruno Haible  <bruno@clisp.org>
63588
63589         * m4/longlong.m4: Add comments.
63590         * m4/ulonglong.m4: Likewise.
63591
63592 2006-10-10  Bruno Haible  <bruno@clisp.org>
63593
63594         Make it possible to #define stpcpy, strdup to aliases.
63595         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
63596         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
63597
63598 2006-10-10  Bruno Haible  <bruno@clisp.org>
63599
63600         Make it possible to #define gcd to an alias.
63601         * lib/gcd.c: Include config.h.
63602
63603 2006-10-10  Bruno Haible  <bruno@clisp.org>
63604
63605         Make it possible to #define c_isascii to an alias.
63606         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
63607         defined. Undefine the macros before defining them, to avoid gcc
63608         warnings.
63609         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
63610         define NO_C_CTYPE_MACROS early.
63611
63612 2006-10-10  Bruno Haible  <bruno@clisp.org>
63613
63614         Make it possible to #define set_program_name to an alias.
63615         * lib/progname.c: Don't undefine set_program_name; instead, undefine
63616         ENABLE_RELOCATABLE early.
63617
63618 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
63619
63620         Port to Tandem NSK OSS, which has 64-bit signed int but at most
63621         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
63622         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
63623         More generally, don't assume that 64-bit signed int is available
63624         if unsigned int is, and vice versa.
63625         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
63626         unsigned symbols, not on their signed counterparts.
63627         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
63628         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
63629         (UINT64_C, UINTMAX_C):
63630         Likewise.
63631         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
63632         unsigned counterparts.
63633         (Have_long_long, Unsigned): New macros.
63634         (Int): Renamed from INT.
63635         (strtoimax): Use the new macros.
63636         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
63637         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
63638         * modules/inttypes (inttypes.h): Substitute
63639         HAVE_UNSIGNED_LONG_LONG_INT.
63640         * modules/stdint (stdint.h): Likewise.
63641         (Files): Add m4/ulonglong.m4.
63642
63643 2006-10-10  Bruno Haible  <bruno@clisp.org>
63644
63645         Fix a gcc -Wshadow warning.
63646         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
63647         to 'bucket'.
63648         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
63649         gl_linked_indexof_from_to): Likewise.
63650         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
63651         Likewise.
63652         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
63653         Likewise.
63654         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
63655         Reported by Eric Blake.
63656
63657 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
63658
63659         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
63660         for NetBSD.  Problem reported by Bruno Haible.
63661
63662 2006-10-09  Jim Meyering  <jim@meyering.net>
63663
63664         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
63665         Patch from Bruno Haible.
63666
63667 2006-10-09  Jim Meyering  <jim@meyering.net>
63668
63669         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
63670         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
63671         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
63672
63673 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
63674
63675         Don't include <config.h> twice; this doesn't work in some cases,
63676         e.g., when config.h has "#define intmax_t long long int" and
63677         we include <config.h>, <inttypes.h>, <config.h> in that order.
63678         Problem reported by Matthew Woehlke in:
63679         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
63680         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
63681         * lib/fts-cycle.c: Don't include config.h.
63682         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
63683         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
63684         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
63685         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
63686         inttypes.h.
63687         * lib/xstrtoumax.c: Likewise.
63688         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
63689         __strtol and the like, so that this module is more like its siblings.
63690         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
63691         Remove; no longer needed now that we assume gnulib inttypes.h.
63692
63693 2006-10-08  Bruno Haible  <bruno@clisp.org>
63694
63695         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
63696         option.
63697
63698 2006-10-07  Jim Meyering  <jim@meyering.net>
63699
63700         * modules/inttypes (inttypes.h): Revert what seems to have been
63701         an inadvertent part of today's change: use "|", not "/" in the
63702         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
63703
63704 2006-10-07  Bruno Haible  <bruno@clisp.org>
63705
63706         * modules/sublist: New file.
63707
63708 2006-10-07  Bruno Haible  <bruno@clisp.org>
63709
63710         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
63711         * modules/argz (argz.h): Likewise.
63712         * modules/arpa_inet (arpa/inet.h): Likewise.
63713         * modules/byteswap (byteswap.h): Likewise.
63714         * modules/configmake (configmake.h): Likewise.
63715         * modules/fcntl (fcntl.h): Likewise.
63716         * modules/fnmatch (fnmatch.h): Likewise.
63717         * modules/getopt (getopt.h): Likewise.
63718         * modules/glob (glob.h): Likewise.
63719         * modules/inttypes (inttypes.h): Likewise.
63720         * modules/netinet_in (netinet/in.h): Likewise.
63721         * modules/poll (poll.h): Likewise.
63722         * modules/stdbool (stdbool.h): Likewise.
63723         * modules/stdint (stdint.h): Likewise.
63724         * modules/sys_select (sys/select.h): Likewise.
63725         * modules/sys_socket (sys/socket.h): Likewise.
63726         * modules/sys_stat (sys/stat.h): Likewise.
63727         * modules/sysexits (sysexits.h): Likewise.
63728         * modules/unistd (unistd.h): Likewise.
63729         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63730         Add a "DO NOT EDIT" comment to the generated file.
63731         (func_import): Likewise for gnulib-comp.m4.
63732
63733 2006-10-07  Bruno Haible  <bruno@clisp.org>
63734
63735         * lib/gl_sublist.h: New file.
63736         * lib/gl_sublist.c: New file.
63737
63738 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
63739
63740         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
63741         name (relative to the original working directory) and the file
63742         name component (relative to the temporary working directory).  All
63743         callers changed.
63744         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
63745         * lib/mkdir-p.c (make_dir_parents): Likewise.
63746         * lib/mkdir-p.h (make_dir_parents): Likewise.
63747
63748 2006-10-06  Eric Blake  <ebb9@byu.net>
63749
63750         Define several macros for use by the clean-temp module.
63751         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
63752         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
63753         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
63754
63755         * lib/clean-temp.h (close_stream_temp): New declaration.
63756         * lib/clean-temp.c (includes): Pull in headers according to what
63757         other modules are in use.
63758         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
63759
63760 2006-10-06  Bruno Haible  <bruno@clisp.org>
63761
63762         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
63763         instead of fopen, fwriteerror.
63764
63765 2006-10-06  Bruno Haible  <bruno@clisp.org>
63766
63767         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
63768         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
63769         int.
63770         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
63771         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
63772         Return an error indicator.
63773         Suggested by Eric Blake.
63774
63775 2006-10-06  Bruno Haible  <bruno@clisp.org>
63776
63777         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
63778         Reported by Eric Blake.
63779
63780 2006-10-06  Bruno Haible  <bruno@clisp.org>
63781
63782         * modules/closeout (Description): Mention stderr too.
63783
63784 2006-10-06  Bruno Haible  <bruno@clisp.org>
63785         and Paul Eggert  <eggert@cs.ucla.edu>
63786
63787         * lib/closeout.c (close_stdout): Also close stderr.
63788         * lib/closeout.h: Update comment.
63789
63790 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
63791
63792         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
63793         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
63794         * lib/dirchownmod.c: Include lchown.h.
63795         * lib/lchown.c: Don't include files that lchown.h now includes.
63796         Don't declare chown, since lchown.h now does that.
63797         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
63798         (lchown): Define to rpl_chown if lchown is declared but
63799         does not exist.  Declare using a prototype if lchown is not
63800         declared.  Add a copyright notice.
63801         * lib/mkstemp.h: Include <unistd.h>.
63802         * lib/openat.c: Include lchown.h.
63803
63804         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
63805         we now test for that separately.
63806         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
63807         rather than O_NOFOLLOW, when testing whether it's possible to
63808         avoid a race condition reliably.
63809         * lib/savewd.c (savewd_chdir): Likewise.
63810
63811         Remove macros that are no longer needed now that stdint.h is
63812         reliable.
63813         * lib/fsusage.c (UINTMAX_MAX): Remove.
63814         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
63815         * lib/utimecmp.c (SIZE_MAX): Remove.
63816
63817         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
63818
63819         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
63820         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
63821         O_NOATIME works.
63822
63823 2006-10-05  Bruno Haible  <bruno@clisp.org>
63824
63825         * lib/gl_list.h (gl_sortedlist_search_from_to,
63826         gl_sortedlist_indexof_from_to): New declarations.
63827         (gl_list_implementation): New fields sortedlist_search_from_to,
63828         sortedlist_indexof_from_to.
63829         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
63830         inline functions.
63831         * lib/gl_list.c (gl_sortedlist_search_from_to,
63832         gl_sortedlist_indexof_from_to): New functions.
63833         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
63834         function.
63835         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
63836         (gl_array_sortedlist_search_from_to): New function.
63837         (gl_array_list_implementation): Update.
63838         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
63839         function.
63840         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
63841         (gl_carray_sortedlist_search_from_to): New function.
63842         (gl_carray_list_implementation): Update.
63843         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
63844         gl_linked_sortedlist_indexof_from_to): New functions.
63845         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
63846         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
63847         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
63848         gl_tree_sortedlist_indexof_from_to): New functions.
63849         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
63850         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
63851         Update.
63852         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
63853         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
63854         Update.
63855
63856 2006-10-05  Bruno Haible  <bruno@clisp.org>
63857
63858         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
63859         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
63860         (struct gl_list_implementation): Add fields search_from_to,
63861         indexof_from_to. Remove fields search, indexof.
63862         (gl_list_search): Use the search_from_to method.
63863         (gl_list_search_from, gl_list_search_from_to): New functions.
63864         (gl_list_indexof): Use the indexof_from_to method.
63865         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
63866         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
63867         (gl_list_search_from, gl_list_search_from_to): New functions.
63868         (gl_list_indexof): Use the indexof_from_to method.
63869         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
63870         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
63871         gl_array_indexof. Add start_index, end_index arguments.
63872         (gl_array_search_from_to): Renamed from gl_array_search. Add
63873         start_index, end_index arguments.
63874         (gl_array_remove, gl_array_list_implementation): Update.
63875         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
63876         gl_carray_indexof. Add start_index, end_index arguments.
63877         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
63878         start_index, end_index arguments.
63879         (gl_carray_remove, gl_carray_list_implementation): Update.
63880         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
63881         gl_linked_search. Add start_index, end_index arguments.
63882         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
63883         start_index, end_index arguments.
63884         (gl_linked_remove): Update.
63885         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
63886         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
63887         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
63888         field to 'size_t'.
63889         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
63890         gl_tree_search. Add start_index, end_index arguments.
63891         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
63892         start_index, end_index arguments.
63893         (gl_tree_remove): Update.
63894         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
63895         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
63896         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
63897         function.
63898         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
63899         gl_tree_search. Add start_index, end_index arguments.
63900         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
63901         start_index, end_index arguments.
63902         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
63903         Update.
63904         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
63905
63906 2006-10-05  Bruno Haible  <bruno@clisp.org>
63907
63908         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
63909
63910         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
63911         fwriteerror_temp): New declarations.
63912         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
63913         (descriptors): New variable.
63914         (cleanup): First, close the descriptors.
63915         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
63916         fclose_temp, fwriteerror_temp): New functions.
63917
63918 2006-10-04  Jim Meyering  <jim@meyering.net>
63919
63920         * lib/fts.c (fts_open): Tiny comment change.
63921
63922 2006-10-04  Bruno Haible  <bruno@clisp.org>
63923
63924         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
63925         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
63926         gl_LOCK_BODY.
63927         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
63928         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
63929         gl_LOCK_EARLY_BODY.
63930         (gl_LOCK): Require gl_LOCK_BODY.
63931
63932 2006-10-04  Bruno Haible  <bruno@clisp.org>
63933
63934         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
63935         (gl_oset_search_atleast): New declaration.
63936         (struct gl_oset_implementation): Add field 'search_atleast'.
63937         (gl_oset_search_atleast): New inline function.
63938         * lib/gl_oset.c (gl_oset_search_atleast): New function.
63939         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
63940         (gl_array_oset_implementation): Update.
63941         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
63942         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
63943         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
63944
63945 2006-10-04  Bruno Haible  <bruno@clisp.org>
63946
63947         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
63948
63949 2006-10-03  Bruno Haible  <bruno@clisp.org>
63950
63951         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
63952         from gl_avltreehash_list_implementation.
63953
63954 2006-10-03  Bruno Haible  <bruno@clisp.org>
63955
63956         * lib/gl_oset.c (gl_oset_add): Fix return type.
63957
63958 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
63959
63960         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
63961
63962 2006-10-02  Eric Blake  <ebb9@byu.net>
63963
63964         * modules/strnlen (Depends-on): Add extensions.
63965
63966 2006-10-02  Eric Blake  <ebb9@byu.net>
63967
63968         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
63969         definition in 2.60+.
63970
63971 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
63972
63973         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
63974         checks.
63975
63976 2006-10-02  Bruno Haible  <bruno@clisp.org>
63977
63978         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
63979         to the AUTOMAKE_OPTIONS.
63980         Reported by Jim Meyering.
63981
63982 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
63983
63984         Work around bug in Solaris 10 /proc file system:
63985         /proc/self/fd/NNN/.. isn't the parent directory of
63986         the directory whose file descriptor is NNN.  This needs to
63987         be worked around at run time, not compile time, since a
63988         program might be built on Solaris 8, where things work, and
63989         run on Solaris 10.
63990         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
63991         to use the following interface instead:
63992         (OPENAT_BUFFER_SIZE): New macro.
63993         (openat_proc_name): New function.
63994         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
63995         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
63996         Likewise.
63997         * lib/openat-proc.c: New file.
63998         * modules/openat (Files): Add lib/openat-proc.c.
63999         (Depends-on): Add same-inode, stdbool.
64000         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
64001
64002 2006-09-29  Bruno Haible  <bruno@clisp.org>
64003
64004         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
64005         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
64006         argument. Set stdout_closed before testing for ferror, not after.
64007         (fwriteerror, fwriteerror_no_ebadf): New functions.
64008
64009 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64010
64011         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
64012
64013 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
64014
64015         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
64016         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
64017
64018 2006-09-28  Jim Meyering  <jim@meyering.net>
64019
64020         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
64021         Include <unistd.h>.
64022
64023 2006-09-28  Bruno Haible  <bruno@clisp.org>
64024
64025         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
64026         * modules/linkedhash-list (Depends-on): Likewise.
64027         * modules/rbtreehash-list (Depends-on): Likewise.
64028
64029 2006-09-28  Bruno Haible  <bruno@clisp.org>
64030
64031         * lib/strndup.h: Simplify the redefinition of strndup.
64032         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
64033         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
64034
64035 2006-09-28  Bruno Haible  <bruno@clisp.org>
64036
64037         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
64038         * lib/gl_linkedhash_list.c: Likewise.
64039         * lib/gl_rbtreehash_list.c: Likewise.
64040
64041 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
64042
64043         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
64044         getaddrinfo.
64045
64046         * lib/__fpending.h: Don't include <stdio_ext.h> unless
64047         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
64048         it causes <stdio_ext.h> to cause a compile-time error.
64049         Problem reported by Nelson H. F. Beebe.
64050         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
64051         of HAVE_DECL___PENDING.
64052
64053         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
64054         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
64055         declaration.
64056
64057 2006-09-27  Jim Meyering  <jim@meyering.net>
64058
64059         This file could end up with a definition for a function
64060         named __strndup, rather than rpl_strndup on a system with
64061         incomplete weak_alias support.
64062         * lib/strndup.c (strndup): Rename from __strndup.
64063         Remove #defines that used to map __strndup to strndup.
64064         Don't use K&R prototypes.
64065         Remove LIBC-related code, since this file is not sync'd with glibc.
64066         * lib/strndup.h: Revamp, accordingly.
64067         * m4/strndup.m4: Modernize.
64068
64069 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
64070
64071         * modules/savewd (Depends-on): Add 'raise'.
64072         * lib/savewd.c: Include <signal.h>, for 'raise'.
64073
64074 2006-09-26  Jim Meyering  <jim@meyering.net>
64075
64076         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
64077         when we detect Darwin 8.7.0's acl_get_file bug.
64078         Rearrange to perform the new (below) run-test while $LIBS
64079         contains any acl-related library.  Set USE_ACL at the end.
64080         (gl_ACL_GET_FILE): New function.
64081
64082 2006-09-26  Eric Blake  <ebb9@byu.net>
64083
64084         * lib/verror.c: Include <config.h> unconditionally.
64085
64086 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
64087
64088         * modules/clock-time (Maintainer): Add self.
64089         * modules/getlogin_r (Depends-on): Add extensions.
64090
64091 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64092
64093         * modules/clock-time: New module.
64094         * modules/nanosleep (Depends-on): Add clock-time.
64095         * modules/gethrxtime (Depends-on): Likewise.
64096         * modules/gettime (Depends-on): Likewise.
64097         * modules/settime (Depends-on): Likewise.
64098
64099         * modules/fts-lgpl: Depend on openat.
64100         * modules/mkancesdirs: Depend on savewd.
64101         * modules/mkdir-p: Likewise.
64102
64103 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64104
64105         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
64106
64107         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
64108         `gl_have_arbitrary_file_name_length_limit' to
64109         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
64110         actually works between configure runs.
64111
64112 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64113             Bruno Haible  <bruno@clisp.org>
64114
64115         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
64116
64117 2006-09-25  Jim Meyering  <jim@meyering.net>
64118
64119         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
64120         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
64121
64122 2006-09-25  Eric Blake  <ebb9@byu.net>
64123
64124         * gnulib-tool (func_import, func_create_testdir): Fix typos in
64125         exec's in 2006-09-18 patch when shuffling fds.
64126
64127 2006-09-25  Bruno Haible  <bruno@clisp.org>
64128
64129         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
64130         Reported by Jim Meyering.
64131
64132 2006-09-24  Jim Meyering  <jim@meyering.net>
64133
64134         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
64135         compare a pointer against a literal "0".  That caused failures with
64136         at least HP-UX's hpcc.
64137
64138 2006-09-22  Simon Josefsson  <jas@extundo.com>
64139
64140         * modules/gc-sha1:
64141         * modules/gc-md4:
64142         * modules/gc-hmac-sha1:
64143         * modules/gc-hmac-md5:
64144         * modules/gc-des:
64145         * modules/gc-arcfour: Distribute more files.
64146
64147 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64148
64149         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
64150         (gl_linked_iterator_from_to): Initialize struct completely.
64151         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
64152         (gl_tree_iterator_from_to): Likewise
64153         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
64154         * lib/gl_array_list.c [lint] (gl_array_iterator)
64155         (gl_array_iterator_from_to): Likewise.
64156         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
64157         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
64158         (gl_carray_iterator_from_to): Likewise.
64159
64160         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
64161         * lib/md4.c (md4_process_block): Remove unused variable.
64162         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
64163         parentheses for clarity.
64164
64165 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64166
64167         * modules/bison-i18n (Depends-on): Add gettext.
64168
64169 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64170
64171         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
64172         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
64173         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
64174         also add missing comma that caused broken test.
64175         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
64176         stdlib.h, for `abort'.
64177         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
64178         variables.
64179         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
64180         include unistd.h if present, for `rmdir'.
64181         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
64182         variables.
64183         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
64184         in the process include standard headers for prototypes.
64185         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
64186         gets declared on GNU/Linux.
64187         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
64188         unistd.h, for `rmdir'.
64189         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
64190
64191         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
64192         always true.
64193         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
64194
64195         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
64196
64197 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64198
64199         * gnulib-tool (func_version): Create output all at once.  This
64200         may help avoid triggering unnecessary SIGPIPEs, and at any
64201         rate it doesn't hurt.
64202
64203 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64204             Bruno Haible  <bruno@clisp.org>
64205
64206         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
64207         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
64208         * m4/signed.m4 (bh_C_SIGNED): Likewise.
64209
64210         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
64211         (gl_FUNC_VASPRINTF): Invoke it.
64212
64213 2006-09-22  Bruno Haible  <bruno@clisp.org>
64214
64215         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
64216         getloadavg.c as first argument.
64217
64218 2006-09-22  Bruno Haible  <bruno@clisp.org>
64219
64220         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
64221         at the beginning of the gl_INIT macro.
64222         * modules/getloadavg (configure.ac): Pass $gl_source_base to
64223         gl_GETLOADAVG.
64224
64225 2006-09-22  Bruno Haible  <bruno@clisp.org>
64226
64227         * gnulib-tool (func_create_megatestdir): Don't include the config-h
64228         module.
64229         Suggested by Ralf Wildenhues.
64230
64231 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
64232
64233         Import this patch from libc:
64234
64235         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
64236
64237         * lib/regex_internal.c (re_string_reconstruct): Handle
64238         offset < pstr->valid_raw_len && pstr->offsets_needed case.
64239         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
64240         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
64241         re_string_context_at.
64242
64243         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
64244         now requires it.
64245         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
64246         gl_REGEX now does it for us.
64247         (gl_REGEX): Add test taken from
64248         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
64249
64250         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
64251         Check that large offsets work.  Modernize Autoconf usages.
64252         Prefer "yes" to mean a good thing rather than a bad.
64253         Don't put "#define mkstemp" in config.h, as this might interfere
64254         with standard system headers that "#define mkstemp mkstemp64".
64255
64256         * modules/mkstemp (Depends-on): Add extensions, so that
64257         mkstemp is visible on some platforms.
64258         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
64259         (Include): Change to "mkstemp.h" from <stdlib.h>.
64260         (Files): Add mkstemp.h.
64261
64262         * lib/mkstemp.h: New file, since some standard headers
64263         #define mkstemp.
64264         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
64265         Include "mkstemp.h".
64266         Make the _LIBC code resemble glibc original more,
64267         e.g., use K&R style.
64268         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
64269         (mkstemp): Remove, since mkstemp.h does this for us.
64270         * lib/stdlib--.h: Include mkstemp.h.
64271
64272         Import this patch from libc:
64273
64274         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
64275
64276         * lib/tempname.c (__gen_tempname): Change attempts_min
64277         into a macro.  Use preprocessor to decide how to initialize
64278         attempts [Coverity CID 67].
64279
64280 2006-09-20  Bruno Haible  <bruno@clisp.org>
64281
64282         * lib/mkdtemp.c: Import from libc.
64283         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
64284                 * sysdeps/posix/tempname.c (__gen_tempname): Change
64285                 attempts_min into a macro.  Use preprocessor to decide how to
64286                 initialize attempts [Coverity CID 67].
64287         2001-11-27  Paul Eggert  <eggert@twinsun.com>
64288                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
64289                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
64290
64291 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64292
64293         * gnulib-tool (func_exit): New function, to allow to pass the
64294         exit status portably through the trap.  Use everywhere.
64295         (--help, --version): Signal a write error.
64296         (trap): catch SIGPIPE, for write errors.
64297         Exit at the end of the trap, with the correct exit status.
64298
64299 2006-09-19  Karl Berry  <karl@gnu.org>
64300
64301         * doc/gnulib.texi: note about the license texinfo files.
64302
64303 2006-09-19  Eric Blake  <ebb9@byu.net>
64304
64305         * gnulib-tool: Avoid space-tab.
64306
64307 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
64308
64309         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
64310         that prevented coreutils 6.1 from building.  Problem reported
64311         by Petter Reinholdtsen.
64312
64313 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
64314
64315         * gnulib-tool (avoidlist): Fix typo that broke options like
64316         --avoid=lock that are used by coreutils bootstrap.
64317
64318 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
64319
64320         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
64321         more systematically.
64322
64323 2006-09-18  Jim Meyering  <jim@meyering.net>
64324
64325         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
64326
64327 2006-09-18  Bruno Haible  <bruno@clisp.org>
64328
64329         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
64330
64331 2006-09-18  Bruno Haible  <bruno@clisp.org>
64332
64333         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
64334         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
64335         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
64336         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
64337         * m4/gettext.m4: Require autoconf >= 2.52.
64338         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
64339         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
64340         of gl_cv_header_inttypes_h.
64341
64342 2006-09-18  Bruno Haible  <bruno@clisp.org>
64343
64344         * lib/javaversion.c: Include configmake.h.
64345
64346 2006-09-18  Bruno Haible  <bruno@clisp.org>
64347
64348         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
64349         avoid that the while loops be executed in a subshell.
64350
64351 2006-09-18  Bruno Haible  <bruno@clisp.org>
64352
64353         * MODULES.html.sh (func_module): Break long lines.
64354         Suggested by Bruce Korb <bkorb@gnu.org>.
64355
64356 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64357
64358         Speed up by a factor of 1.12.
64359         * gnulib-tool (nl): New variable.
64360         (func_import): Rewrite include directive extraction to only read each
64361         directive once.
64362
64363 2006-09-17  Bruno Haible  <bruno@clisp.org>
64364
64365         * modules/javaversion (Makefile.am): Remove DEFS setting.
64366         (Depends-on): Add configmake, for PKGDATADIR definition.
64367
64368 2006-09-17  Bruno Haible  <bruno@clisp.org>
64369
64370         * gnulib-tool (func_create_testdir): Rewrite all files at once.
64371
64372 2006-09-17  Bruno Haible  <bruno@clisp.org>
64373
64374         * gnulib-tool (func_append): New function, stolen from libtool.m4.
64375         (func_modules_transitive_closure, func_modules_add_dummy,
64376         func_modules_to_filelist, func_import, func_create_testdir,
64377         func_create_megatestdir, ...): Use it wherever possible.
64378         Suggested by Ralf Wildenhues.
64379
64380 2006-09-16  Karl Berry  <karl@gnu.org>
64381
64382         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
64383         to avoid sectioning errors.
64384         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
64385         [ifinfo]: blank line after @center-ed titles.
64386         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
64387         Spell FSF address consistently with others.
64388         (These changes approved by rms.)
64389
64390 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64391
64392         Speed up by a factor of 1.61.
64393         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
64394         already checked module names again.
64395
64396 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64397
64398         Speed up by a factor of 1.13.
64399         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
64400         for new_files, and the input to func_add_or_update.
64401
64402 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64403
64404         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
64405         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
64406
64407 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
64408
64409         * modules/mkancesdirs (Depends-on): Add fcntl.
64410         * modules/savewd: New file.
64411         * MODULES.html.sh (File system functions): Add savewd.
64412
64413         * modules/configmake (Makefile.am): Add support for the
64414         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
64415
64416 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
64417
64418         * m4/savewd.m4: New file.
64419
64420 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
64421
64422         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
64423         (dirchownmod): New arg FD.  All callers changed.
64424         Use FD rather than opening the directory ourself, as opening is
64425         now the caller's responsibility.
64426         * lib/dirchownmod.h: Likewise.
64427         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
64428         hosts that require <sys/types.h> before <sys/stat.h>.  Include
64429         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
64430         (test_dir): Remove.
64431         (mkancesdirs): Return length of prefix of FILE that has already
64432         been made, or -2 if there is a child doing the work.  Redo
64433         algorithm so that it is O(N) rather than O(N**2).  Optimize away
64434         ".", and treat ".." specially since it might stray back into
64435         already-created areas.  Use a subprocess if necessary.  New arg
64436         WD; all users changed.  MAKE_DIR function should now return 1
64437         if it creates a directory that is not readable.  Return -2 if
64438         a child process is spun off.
64439         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
64440         Adjust signature to match code.
64441         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
64442         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
64443         all users changed.
64444         * lib/savewd.c, lib/savewd.h: New files.
64445
64446 2006-09-15  Jim Meyering  <jim@meyering.net>
64447
64448         * modules/rename-dest-slash: New module.
64449         * MODULES.html.sh (posix_compat): Add it here.
64450
64451         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
64452
64453 2006-09-15  Jim Meyering  <jim@meyering.net>
64454
64455         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
64456         file.
64457
64458         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
64459
64460 2006-09-15  Jim Meyering  <jim@meyering.net>
64461
64462         * lib/rename-dest-slash.c (has_trailing_slash): Use
64463         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
64464         (rpl_rename_dest_slash): Perform the cheaper trailing slash
64465         test before testing whether SRC is a directory.
64466         Suggestions from Bruno Haible.
64467
64468         Avoid a warning about an unused variable.
64469         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
64470         into the #ifdef block where it's used.
64471
64472         * lib/rename-dest-slash.c: New file.
64473
64474 2006-09-14  Bruno Haible  <bruno@clisp.org>
64475
64476         * lib/allocsa.c: Include <config.h> unconditionally.
64477         * lib/asnprintf.c: Likewise.
64478         * lib/asprintf.c: Likewise.
64479         * lib/c-strcasecmp.c: Likewise.
64480         * lib/c-strcasestr.c: Likewise.
64481         * lib/c-strncasecmp.c: Likewise.
64482         * lib/c-strstr.c: Likewise.
64483         * lib/classpath.c: Likewise.
64484         * lib/clean-temp.c: Likewise.
64485         * lib/concatpath.c: Likewise.
64486         * lib/copy-file.c: Likewise.
64487         * lib/csharpcomp.c: Likewise.
64488         * lib/csharpexec.c: Likewise.
64489         * lib/execute.c: Likewise.
64490         * lib/fatal-signal.c: Likewise.
64491         * lib/findprog.c: Likewise.
64492         * lib/fwriteerror.c: Likewise.
64493         * lib/gl_array_list.c: Likewise.
64494         * lib/gl_array_oset.c: Likewise.
64495         * lib/gl_avltree_list.c: Likewise.
64496         * lib/gl_avltree_oset.c: Likewise.
64497         * lib/gl_avltreehash_list.c: Likewise.
64498         * lib/gl_carray_list.c: Likewise.
64499         * lib/gl_linked_list.c: Likewise.
64500         * lib/gl_linkedhash_list.c: Likewise.
64501         * lib/gl_list.c: Likewise.
64502         * lib/gl_oset.c: Likewise.
64503         * lib/gl_rbtree_list.c: Likewise.
64504         * lib/gl_rbtree_oset.c: Likewise.
64505         * lib/gl_rbtreehash_list.c: Likewise.
64506         * lib/imaxabs.c: Likewise.
64507         * lib/imaxdiv.c: Likewise.
64508         * lib/javacomp.c: Likewise.
64509         * lib/javaexec.c: Likewise.
64510         * lib/javaversion.c: Likewise.
64511         * lib/linebreak.c: Likewise.
64512         * lib/localcharset.c: Likewise.
64513         * lib/lock.c: Likewise.
64514         * lib/mbchar.c: Likewise.
64515         * lib/mbswidth.c: Likewise.
64516         * lib/mkdtemp.c: Likewise.
64517         * lib/pipe.c: Likewise.
64518         * lib/printf-args.c: Likewise.
64519         * lib/printf-parse.c: Likewise.
64520         * lib/progname.c: Likewise.
64521         * lib/progreloc.c: Likewise.
64522         * lib/readlink.c: Likewise.
64523         * lib/sh-quote.c: Likewise.
64524         * lib/stpcpy.c: Likewise.
64525         * lib/stpncpy.c: Likewise.
64526         * lib/strcasecmp.c: Likewise.
64527         * lib/strcasestr.c: Likewise.
64528         * lib/strcspn.c: Likewise.
64529         * lib/striconv.c: Likewise.
64530         * lib/strncasecmp.c: Likewise.
64531         * lib/strnlen1.c: Likewise.
64532         * lib/strstr.c: Likewise.
64533         * lib/strtok_r.c: Likewise.
64534         * lib/tls.c: Likewise.
64535         * lib/tmpdir.c: Likewise.
64536         * lib/unicodeio.c: Likewise.
64537         * lib/unsetenv.c: Likewise.
64538         * lib/vasnprintf.c: Likewise.
64539         * lib/vasprintf.c: Likewise.
64540         * lib/wait-process.c: Likewise.
64541         * lib/xallocsa.c: Likewise.
64542         * lib/xsetenv.c: Likewise.
64543         * lib/xstriconv.c: Likewise.
64544
64545 2006-09-13  Simon Josefsson  <jas@extundo.com>
64546
64547         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
64548         that internally, suggested by Ralf Wildenhues
64549         <Ralf.Wildenhues@gmx.de>.
64550
64551 2006-09-13  Simon Josefsson  <jas@extundo.com>
64552
64553         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
64554         @LIBOBJS@.
64555         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64556
64557 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
64558
64559         * lib/_fpending.c: Include <config.h> unconditionally, since we no
64560         longer worry about uses that don't define HAVE_CONFIG_H.
64561         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
64562         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
64563         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
64564         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
64565         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
64566         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
64567         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
64568         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
64569         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
64570         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
64571         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
64572         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
64573         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
64574         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
64575         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
64576         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
64577         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
64578         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
64579         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
64580         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
64581         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
64582         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
64583         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
64584         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
64585         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
64586         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
64587         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
64588         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
64589         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
64590         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
64591         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
64592         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
64593         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
64594         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
64595         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
64596         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
64597         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
64598         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
64599         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
64600         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
64601         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
64602         Likewise.
64603
64604 2006-09-13  Eric Blake  <ebb9@byu.net>
64605
64606         * lib/getopt.c: Fix typo in last commit.
64607
64608 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
64609
64610         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
64611         dgettext.
64612
64613 2006-09-12  Jim Meyering  <jim@meyering.net>
64614
64615         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
64616         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
64617         Reported by Nelson H. F. Beebe.
64618
64619 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
64620
64621         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
64622         program_invocation_name and program_invocation_short_name are
64623         initialized.
64624         * lib/argp-namefrob.h: Move declarations of program_invocation_name
64625         and program_invocation_short_name to argp.h, so they are visible
64626         to user programs.
64627         * lib/argp.h: Likewise
64628
64629 2006-09-10  Bruno Haible  <bruno@clisp.org>
64630
64631         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
64632         m4/inttypes_h.m4, m4/uintmax_t.m4.
64633
64634 2006-09-10  Bruno Haible  <bruno@clisp.org>
64635
64636         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
64637         gl_AC_TYPE_UINTMAX_T.
64638
64639 2006-09-10  Bruno Haible  <bruno@clisp.org>
64640
64641         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
64642
64643 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64644
64645         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
64646         convention.  Text proposed by Bruno Haible.
64647         (struct argp_option): Document the use of N_() wrappers.
64648
64649         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
64650         '\v', and translate the two parts separately, instead of feeding
64651         the whole string to gettext.  This allows to exclude
64652         '\v' from the strings visible to the translator by writing doc
64653         strings as N_("..") "\v" N_("..").
64654
64655 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
64656
64657         * config/srclist.txt: Undo latest change; the bug was fixed.
64658
64659 2006-09-09  Bruno Haible  <bruno@clisp.org>
64660
64661         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
64662         assignments if building a library without libtool.
64663         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
64664         in func_emit_lib_Makefile_am.
64665         (func_import): When building a static library libfoo.a, arrange to
64666         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
64667         (func_create_testdir): Likewise.
64668         * modules/gc (configure.ac, Makefile.am): If building statically,
64669         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
64670         * modules/iconvme (configure.ac, Makefile.am): Likewise.
64671         * modules/striconv (configure.ac, Makefile.am): Likewise.
64672         Based on a suggestion by Ralf Wildenhues.
64673
64674 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64675
64676         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
64677         Check for unistd.h too, since Autoconf doesn't assume POSIX.
64678         Also:
64679
64680         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64681         Add year_2050_test to catch glibc bug 2821
64682         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
64683
64684         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
64685         Prefer #ifdef to #if.
64686
64687         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
64688         Return from 'main' instead of calling 'exit'.
64689
64690 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64691
64692         * lib/mktime.c (guess_time_tm): Fix bug where mktime
64693         returned the maximum time_t value rather than (time_t) -1.
64694         Problem originally reported by William Bardwell
64695         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
64696
64697         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
64698         Moved to here ...
64699         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
64700         ... from here.
64701
64702 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64703
64704         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
64705         2821 is fixed.
64706
64707 2006-09-08  Jim Meyering  <jim@meyering.net>
64708
64709         Don't make generated files read-only.  That would bother too many
64710         people.  However, do retain the ability to work when targets are
64711         read-only: remove the destination and temporary files before writing
64712         them (when generated via sed or echo), or by using the -f option for
64713         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
64714         * modules/alloca-opt, modules/argz, modules/arpa_inet:
64715         * modules/byteswap, modules/configmake, modules/fcntl:
64716         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
64717         * modules/localcharset, modules/netinet_in, modules/poll:
64718         * modules/stdbool, modules/stdint, modules/sys_select:
64719         * modules/sys_socket, modules/sys_stat, modules/sysexits:
64720
64721 2006-09-08  Jim Meyering  <jim@meyering.net>
64722
64723         Avoid new build failure on FreeBSD 6.0.
64724         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
64725         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
64726         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
64727
64728 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64729
64730         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
64731
64732 2006-09-07  Jim Meyering  <jim@meyering.net>
64733
64734         Fix global typo in last change: use chmod u-w, not chmod u-x.
64735         Spotted by Paul Eggert and Bruce Korb.
64736         * modules/alloca-opt, modules/argz, modules/arpa_inet:
64737         * modules/byteswap, modules/configmake, modules/fcntl:
64738         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
64739         * modules/localcharset, modules/netinet_in, modules/poll:
64740         * modules/stdbool, modules/stdint, modules/sys_select:
64741         * modules/sys_socket, modules/sys_stat, modules/sysexits:
64742
64743 2006-09-06  Jim Meyering  <jim@meyering.net>
64744
64745         Make generated files be read-only.
64746         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
64747         Ensure that each generated file is now read-only.
64748         * modules/argz: Likewise.
64749         * modules/arpa_inet: Likewise.
64750         * modules/byteswap: Likewise.
64751         * modules/configmake: Likewise.
64752         * modules/fcntl: Likewise.
64753         * modules/fnmatch: Likewise.
64754         * modules/getopt: Likewise.
64755         * modules/glob: Likewise.
64756         * modules/inttypes: Likewise.
64757         * modules/netinet_in: Likewise.
64758         * modules/poll: Likewise.
64759         * modules/stdbool: Likewise.
64760         * modules/stdint: Likewise.
64761         * modules/sys_select: Likewise.
64762         * modules/sys_socket: Likewise.
64763         * modules/sys_stat: Likewise.
64764         * modules/sysexits: Likewise.
64765         * modules/localcharset: Same as above, but continue using temporary
64766         file named "t-$@" (why different?) rather than the "$@-t" used
64767         everywhere else.
64768
64769         * modules/sysexits (Makefile.am): Replace literal occurrences
64770         of "sysexit.h" more readable, and more consistent, "$@".
64771
64772 2006-09-06  Bruno Haible  <bruno@clisp.org>
64773
64774         * modules/striconv: New file.
64775         * modules/xstriconv: New file.
64776         * MODULES.html.sh (Internationalization functions): Add striconv,
64777         xstriconv.
64778
64779 2006-09-06  Bruno Haible  <bruno@clisp.org>
64780
64781         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
64782         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
64783         not using libtool correctly.
64784
64785 2006-09-06  Bruno Haible  <bruno@clisp.org>
64786
64787         * lib/striconv.h: New file.
64788         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
64789         iconvstring.c.
64790         * lib/xstriconv.h: New file.
64791         * lib/xstriconv.c: New file.
64792
64793 2006-09-06  Bruno Haible  <bruno@clisp.org>
64794
64795         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
64796         lib_..._LDFLAGS.
64797
64798 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64799
64800         * lib/argz_.h: Sync from Libtool.
64801
64802         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
64803                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
64804
64805         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
64806
64807 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
64808
64809         * modules/trim: New file.
64810
64811 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
64812
64813         * lib/trim.h: New file.
64814         * lib/trim.c: New file.
64815
64816 2006-09-05  Bruno Haible  <bruno@clisp.org>
64817
64818         * MODULES.html.sh (String handling): Add trim.
64819
64820 2006-09-04  Karl Berry  <karl@gnu.org>
64821
64822         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
64823         until next release.
64824
64825 2006-09-03  Bruno Haible  <bruno@clisp.org>
64826
64827         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
64828         correctly.
64829
64830 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
64831
64832         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
64833         not gl_GETLOADAVG.  Omit unneeded semicolons.
64834         Problems reported by Ralf Wildenhues in
64835         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
64836         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
64837         at the end, which is the usual gnulib style.
64838
64839         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
64840         of doing all the work ourselves.
64841         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
64842         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
64843
64844 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
64845
64846         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
64847         Problem reported by Ralf Wildenhues in
64848         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
64849
64850         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
64851         HAVE_STRUCT_STATFS_F_FSTYPENAME.
64852
64853 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
64854
64855         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
64856         yesterday's patch by changing test -n to test -z.
64857
64858 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
64859
64860         * modules/getloadavg (Files): Add m4/getloadavg.m4.
64861         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
64862         the former is now obsolescent.
64863
64864         * modules/chdir-long (Depends-on): Add fcntl.
64865
64866 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
64867
64868         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
64869         obsolescent, and programs should use gnulib instead.
64870         * m4/getloadavg.m4: New file, with contents taken from Autoconf
64871         but with prefixes changed.
64872
64873 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
64874
64875         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
64876         or stdbool.h, because they might not exist while configuring.
64877
64878         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
64879         Don't include unistd.h or limits.h; not needed, since chdir-long.h
64880         does that for us.
64881         (O_DIRECTORY): Remove.
64882
64883 2006-08-31  Eric Blake  <ebb9@byu.net>
64884
64885         * gnulib-tool: Don't let emacs change spaces to TAB.
64886
64887 2006-08-31  Bruno Haible  <bruno@clisp.org>
64888
64889         * gnulib-tool: When calling func_import more than once, do it in a
64890         subshell.
64891         Reported by Eric Blake <ebb9@byu.net>.
64892
64893 2006-08-31  Bruno Haible  <bruno@clisp.org>
64894
64895         * gnulib-tool (nl): Remove variable.
64896         (sed_transform_lib_file): Use more robust test for config-h module.
64897         (func_import): Fix typo in 2006-08-25 patch.
64898
64899 2006-08-31  Bruno Haible  <bruno@clisp.org>
64900
64901         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
64902         specified, augment Makefile.am variables instead of assigning them.
64903
64904 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
64905
64906         Work around a bug in both the Linux and SunOS 64-bit kernels:
64907         nanosleep mishandles sleeps for longer than 2**31 seconds.
64908         Problem reported by Frank v Waveren in
64909         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
64910         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
64911         Check for nanosleep bug.
64912         (LIB_NANOSLEEP): Append clock_gettime library if needed.
64913
64914 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
64915
64916         Work around a bug in both the Linux and SunOS 64-bit kernels:
64917         nanosleep mishandles sleeps for longer than 2**31 seconds.
64918         Problem reported by Frank v Waveren in
64919         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
64920         * lib/nanosleep.c (BILLION): New constant.
64921         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
64922         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
64923         implementation.
64924
64925 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
64926
64927         * modules/nanosleep (Depends-on): Add gettime.
64928
64929 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
64930         and Simon Josefsson  <jas@extundo.com>
64931         and Oskar Liljeblad  <oskar@osk.mine.nu>
64932
64933         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
64934         * gnulib-tool (func_import): New license type 'unmodifiable license
64935         text'.
64936         * modules/fdl: Use it.  Longer description.
64937         * module/gpl, module/lgpl: New files.
64938
64939 2006-08-30  Jim Meyering  <jim@meyering.net>
64940
64941         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
64942         shadowing the parameter.
64943
64944 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64945
64946         Sync from Libtool:
64947
64948         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64949
64950         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
64951         sharing with gnulib.  Report by Eric Blake.
64952
64953 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
64954
64955         * modules/isapipe: New file.
64956         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
64957
64958 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
64959
64960         * modules/configmake (Makefile.am): Add a comment, and omit
64961         the CONFIGMAKE_ prefix from generated macro names.  Suggested
64962         by Bruno Haible.
64963
64964 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
64965
64966         * m4/isapipe.m4: New file.
64967
64968 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
64969
64970         * lib/isapipe.c, lib/isapipe.h: New files.
64971
64972 2006-08-29  Jim Meyering  <jim@meyering.net>
64973
64974         * modules/configmake (Makefile.am): Make configmake.h depend on
64975         Makefile.  Otherwise, a stale configmake.h could hang around.
64976
64977 2006-08-29  Eric Blake  <ebb9@byu.net>
64978
64979         * lib/error.c (error_at_line, print_errno_message): Match libc, after
64980         resolution of upstream bug 3044.
64981
64982 2006-08-29  Bruno Haible  <bruno@clisp.org>
64983
64984         * modules/localcharset (Depends-on): Add configmake.
64985         (Makefile.am): Remove setting of LIBDIR through DEFS.
64986
64987 2006-08-29  Bruno Haible  <bruno@clisp.org>
64988
64989         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
64990         defined.
64991
64992 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
64993
64994         * modules/fcntl: New file.
64995         * modules/chdir-safer (Depends-on): Add fcntl.
64996         * modules/fts: Likewise.
64997         * modules/mkdir-p: Likewise.
64998
64999         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
65000         This undoes the most recent change, since we're now addressing the
65001         problem in a different way.
65002
65003         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
65004         into output, since the output might be called Makefile.am even
65005         if $makefile_name is something different.
65006         (func_import): Use $makefile_am rather than
65007         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
65008         empty.
65009
65010         * modules/inttypes (Files): Add m4/inttypes-h.m4.
65011
65012 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
65013
65014         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
65015         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
65016         recent change to stdint.m4, since we're now addressing the problem in a
65017         different way.
65018
65019 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
65020
65021         * m4/fcntl_h.m4: New file.
65022
65023 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
65024
65025         * lib/fcntl_.h: New file.
65026         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
65027         the fcntl module.
65028         * lib/dirchownmod.c: Likewise.
65029         * lib/fts.c: Likewise.
65030
65031         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
65032         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
65033         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
65034         just before including <inttypes.h>, to avoid circular inclusion.
65035
65036 2006-08-28  Jim Meyering  <jim@meyering.net>
65037
65038         * doc/visibility.texi: Actually read and correct the grammar of the
65039         sentence affected by yesterday's change.
65040
65041 2006-08-28  Eric Blake  <ebb9@byu.net>
65042
65043         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
65044         needs wrapper.
65045
65046 2006-08-28  Eric Blake  <ebb9@byu.net>
65047
65048         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
65049
65050 2006-08-28  Eric Blake  <ebb9@byu.net>
65051
65052         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
65053
65054 2006-08-28  Bruno Haible  <bruno@clisp.org>
65055
65056         * modules/c-strstr: New file, from GNU gettext.
65057         * MODULES.html.sh (String handling): Add c-strstr.
65058
65059 2006-08-28  Bruno Haible  <bruno@clisp.org>
65060
65061         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
65062         macros.
65063         Reported by Eric Blake.
65064
65065 2006-08-28  Bruno Haible  <bruno@clisp.org>
65066
65067         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
65068         (VASNPRINTF): Return a string of length > INT_MAX without failing.
65069         * lib/vasprintf.c: Include errno.h, limits.h.
65070         (EOVERFLOW): New fallback definition.
65071         (vasprintf): Test here whether the string length is > INT_MAX.
65072         * lib/vsnprintf.c: Include errno.h, limits.h.
65073         (EOVERFLOW): New fallback definition.
65074         (vsnprintf): Fix bug when generated string was too long for the buffer.
65075         Test here whether the string length is > INT_MAX.
65076
65077 2006-08-28  Bruno Haible  <bruno@clisp.org>
65078
65079         * lib/inttypes_.h (SCNX*): Remove definitions.
65080         Reported by Eric Blake.
65081
65082 2006-08-28  Bruno Haible  <bruno@clisp.org>
65083
65084         * lib/c-strstr.h: New file, from GNU gettext.
65085         * lib/c-strstr.c: New file, from GNU gettext.
65086
65087 2006-08-28  Bruno Haible  <bruno@clisp.org>
65088
65089         * gnulib-tool: Reorder some statements.
65090
65091 2006-08-28  Bruno Haible  <bruno@clisp.org>
65092
65093         * gnulib-tool: New option --makefile-name.
65094         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
65095         $makefile_name.
65096         (func_import): Write $makefile_name to the cache file, and read it from
65097         there unless explicitly specified. Use $makefile_name as file name
65098         instead of Makefile.am. Adjust the recommendations accordingly.
65099
65100 2006-08-28  Bruno Haible  <bruno@clisp.org>
65101
65102         * gnulib-tool (func_verify_module): Check against misapplying patch.
65103
65104 2006-08-28  Bruno Haible  <bruno@clisp.org>
65105
65106         * gnulib-tool (func_relativize, func_relconcat): New functions.
65107         Give an error if --local-dir is given with --update.
65108         Remove trailing slashes from $local_gnulib_dir.
65109         (func_import): Store the relativized $local_gnulib_dir in
65110         gnulib-cache.m4, and read it from there if not specified explicitly.
65111
65112 2006-08-28  Bruno Haible  <bruno@clisp.org>
65113
65114         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
65115         is the current directory. Respect also $local_gnulib_dir.
65116
65117 2006-08-28  Bruno Haible  <bruno@clisp.org>
65118             Simon Josefsson  <jas@extundo.com>
65119
65120         BeOS portability.
65121         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
65122
65123 2006-08-27  Jim Meyering  <jim@meyering.net>
65124
65125         * doc/visibility.texi: Remove duplicate word: "pointer".
65126
65127 2006-08-26  Bruno Haible  <bruno@clisp.org>
65128
65129         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
65130         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
65131         (Makefile.am): Create inttypes.h from inttypes_.h.
65132         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
65133
65134         * modules/imaxabs: New file.
65135
65136         * modules/imaxdiv: New file.
65137
65138 2006-08-26  Bruno Haible  <bruno@clisp.org>
65139
65140         * m4/inttypes.m4: New file.
65141         * m4/_inttypes_h.m4: Remove file.
65142         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
65143         PRI_MACROS_BROKEN.
65144         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
65145
65146         * m4/imaxabs.m4: New file.
65147
65148         * m4/imaxdiv.m4: New file.
65149
65150 2006-08-26  Bruno Haible  <bruno@clisp.org>
65151
65152         * lib/inttypes_.h: New file.
65153         * lib/inttypes.h: Remove file.
65154         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
65155
65156         * lib/imaxabs.c: New file.
65157
65158         * lib/imaxdiv.c: New file.
65159
65160 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65161
65162         New config-h module, so that "make" output needn't be cluttered
65163         by -DHAVE_CONFIG_H.
65164         * MODULES.html.sh (Support for building libraries and executables):
65165         Add config-h.
65166         * modules/config-h: New file.
65167         * gnulib-tool (nl, sed_transform_lib_file): New vars.
65168         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
65169         the config-h module is used.
65170
65171         New configmake module, so that "make" output needn't be cluttered
65172         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
65173         * MODULES.html.sh (Support for building libraries and executables):
65174         Add configmake.
65175         * modules/configmake: New file.
65176
65177 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65178
65179         * m4/config-h.m4: New file.
65180
65181 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
65182
65183         * config/srclist.txt: Add elisp-comp.
65184
65185 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
65186
65187         * MODULES.html.sh (Support for building libraries and executables):
65188         Add elisp-comp.
65189         * build-aux/elisp-comp: New file.
65190         * modules/elisp-comp: New file.
65191
65192 2006-08-24  Bruno Haible  <bruno@clisp.org>
65193
65194         * gnulib-tool (func_create_testdir): Use non-default values of
65195         sourcebase and m4base.
65196
65197 2006-08-24  Bruno Haible  <bruno@clisp.org>
65198
65199         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
65200         HTML structure.
65201
65202 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
65203
65204         * modules/openat (Depends-on): Add lchown.
65205
65206 2006-08-23  Bruno Haible  <bruno@clisp.org>
65207
65208         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
65209         of gl_LOCK_EARLY instead of gl_LOCK.
65210
65211 2006-08-23  Bruno Haible  <bruno@clisp.org>
65212
65213         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
65214         on OSF/1 to no.
65215         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
65216
65217 2006-08-23  Bruno Haible  <bruno@clisp.org>
65218
65219         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
65220         as unusable.
65221
65222         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
65223         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
65224         (gl_LOCK): New macro.
65225
65226 2006-08-22  Simon Josefsson  <jas@extundo.com>
65227
65228         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
65229         to md5 module.
65230
65231 2006-08-22  Simon Josefsson  <jas@extundo.com>
65232
65233         * MODULES.html.sh: Add "Support for maintaining and release
65234         projects".
65235
65236         * build-aux/gnupload: New file, from coreutils.
65237
65238 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
65239
65240         Avoid the need for AC_LIBSOURCES in m4 macros.
65241         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
65242         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
65243         * modules/check-version (EXTRA_DIST): Add check-version.h.
65244         * modules/crc (EXTRA_DIST): Add crc.h.
65245         * modules/des (EXTRA_DIST): Add des.h.
65246         * modules/gc (EXTRA_DIST): Add gc.h.
65247         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
65248         * modules/getline (EXTRA_DIST): Add getline.h.
65249         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
65250         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
65251         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
65252         * modules/md2 (EXTRA_DIST): Add md2.h.
65253         * modules/md4 (EXTRA_DIST): Add md4.h.
65254         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
65255         * modules/read-file (EXTRA_DIST): Add read-file.h.
65256         * modules/readline (EXTRA_DIST): Add readline.h.
65257         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
65258         rijndael-api-fst.h.
65259
65260 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
65261
65262         * m4/rijndael.m4 (gl_ARCFOUR):
65263         * m4/arctwo.m4 (gl_ARCTWO):
65264         * m4/check-version.m4 (gl_CHECK_VERSION):
65265         * m4/crc.m4 (gl_CRC):
65266         * m4/des.m4 (gl_DES):
65267         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
65268         * m4/gc.m4 (gl_GC):
65269         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
65270         * m4/getline.m4 (gl_FUNC_GETLINE):
65271         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
65272         * m4/hmac-md5.m4 (gl_HMAC_MD5):
65273         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
65274         * m4/md2.m4 (gl_MD2):
65275         * m4/md4.m4 (gl_MD4):
65276         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
65277         * m4/read-file.m4 (gl_FUNC_READ_FILE):
65278         * m4/readline.m4 (gl_FUNC_READLINE):
65279         * m4/rijndael.m4 (gl_RIJNDAEL):
65280         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
65281         to get the necessary .h files and whatnot.
65282
65283 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
65284
65285         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
65286         gnulib rather than the other way around.
65287         * config/srclistvars.sh (COREUTILS): Remove.
65288
65289 2006-08-22  Jim Meyering  <jim@meyering.net>
65290
65291         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
65292
65293         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
65294
65295 2006-08-22  Eric Blake  <ebb9@byu.net>
65296
65297         * modules/regexprops-generic: New file.
65298         * MODULES.html.sh (Support for building documentation): List it.
65299
65300 2006-08-22  Eric Blake  <ebb9@byu.net>
65301
65302         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
65303         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
65304         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
65305         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
65306
65307 2006-08-22  Bruno Haible  <bruno@clisp.org>
65308
65309         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
65310         and lib_LTLIBRARIES like the other lib_* variables.
65311
65312 2006-08-22  Bruno Haible  <bruno@clisp.org>
65313
65314         * build-aux/x-to-1.in: New file, from GNU gettext.
65315
65316 2006-08-22  Bruno Haible  <bruno@clisp.org>
65317
65318         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
65319         <utmpx.h> exists.
65320
65321 2006-08-22  Bruno Haible  <bruno@clisp.org>
65322
65323         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
65324         <utmpx.h> exists.
65325
65326 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
65327
65328         BeOS portability.
65329         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
65330         exist.
65331         Problem reported by Bruno Haible.
65332
65333 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
65334
65335         Avoid the need for AC_LIBSOURCES in m4 macros.
65336         * modules/acl (EXTRA_DIST): Add acl.h.
65337         * modules/argmatch (Files): Add m4/argmatch.m4.
65338         (configure.ac): Add gl_ARGMATCH.
65339         (EXTRA_DIST): Renamed from lib_SOURCES, for
65340         consistency with the other modules.  Remove argmatch.c.
65341         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
65342         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
65343         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
65344         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
65345         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
65346         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
65347         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
65348         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
65349         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
65350         * modules/closeout (EXTRA_DIST): Add closeout.h.
65351         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
65352         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
65353         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
65354         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
65355         dirname.h; remove basename.c and stripslash.c.
65356         * modules/exclude (EXTRA_DIST): Add exclude.h.
65357         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
65358         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
65359         * modules/file-type (EXTRA_DIST): Add file-type.h.
65360         * modules/filemode (EXTRA_DIST): Add filemode.h.
65361         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
65362         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
65363         * modules/fpending (EXTRA_DIST): Add __fpending.h.
65364         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
65365         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
65366         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
65367         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
65368         * modules/getdate (EXTRA_DIST): Add getdate.c.
65369         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
65370         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
65371         * modules/getpass (EXTRA_DIST): Add getpass.h.
65372         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
65373         * modules/group-member (EXTRA_DIST): Add group-member.h.
65374         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
65375         * modules/hash (EXTRA_DIST): Add hash.h.
65376         * modules/human (EXTRA_DIST): Add human.h.
65377         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
65378         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
65379         * modules/lchown (EXTRA_DIST): Add lchown.h.
65380         * modules/long-options (EXTRA_DIST): Add long-options.h.
65381         * modules/lstat (EXTRA_DIST): Add lstat.h.
65382         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
65383         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
65384         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
65385         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
65386         * modules/memxor (EXTRA_DIST): Add memxor.h.
65387         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
65388         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
65389         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
65390         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
65391         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
65392         * modules/physmem (EXTRA_DIST): Add physmem.h.
65393         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
65394         * modules/posixver (EXTRA_DIST): Add posixver.h.
65395         * modules/quote (EXTRA_DIST): Add quote.h.
65396         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
65397         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
65398         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
65399         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
65400         regex_internal.h regexec.c.
65401         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
65402         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
65403         * modules/same (EXTRA_DIST): Add same.h.
65404         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
65405         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
65406         * modules/savedir (EXTRA_DIST): Add savedir.h.
65407         * modules/sha1 (EXTRA_DIST): Add sha1.h.
65408         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
65409         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
65410         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
65411         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
65412         * modules/strdup (EXTRA_DIST): Add strdup.h.
65413         * modules/strftime (EXTRA_DIST): Add strftime.h.
65414         * modules/strndup (EXTRA_DIST): Add strndup.h.
65415         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
65416         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
65417         * modules/time_r (EXTRA_DIST): Add time_r.h.
65418         * modules/timespec (EXTRA_DIST): Add timespec.h.
65419         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
65420         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
65421         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
65422         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
65423         * modules/userspec (EXTRA_DIST): Add userspec.h.
65424         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
65425         * modules/utimens (EXTRA_DIST): Add utimens.h.
65426         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
65427         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
65428         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
65429         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
65430         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
65431         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
65432         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
65433         * modules/yesno (EXTRA_DIST): Add yesno.h.
65434
65435 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
65436
65437         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
65438
65439         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
65440         * m4/dev-ino.m4, same-inode.m4: Remove.
65441
65442         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
65443         * m4/acl.m4 (AC_FUNC_ACL):
65444         * m4/backupfile.m4 (gl_BACKUPFILE):
65445         * m4/c-strtod.m4 (gl_C99_STRTOLD):
65446         * m4/canon-host.m4 (gl_CANON_HOST):
65447         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
65448         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
65449         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
65450         * m4/cloexec.m4 (gl_CLOEXEC):
65451         * m4/close-stream.m4 (gl_CLOSE_STREAM):
65452         * m4/closeout.m4 (gl_CLOSEOUT):
65453         * m4/dirfd.m4 (gl_FUNC_DIRFD):
65454         * m4/dirname.m4 (gl_DIRNAME):
65455         * m4/exclude.m4 (gl_EXCLUDE):
65456         * m4/exitfail.m4 (gl_EXITFAIL):
65457         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
65458         * m4/file-type.m4 (gl_FILE_TYPE):
65459         * m4/filemode.m4 (gl_FILEMODE):
65460         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
65461         * m4/fpending.m4 (gl_FUNC_FPENDING):
65462         * m4/fprintftime.m4 (gl_FPRINTFTIME):
65463         * m4/fts.m4 (gl_FUNC_FTS):
65464         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
65465         * m4/getdate.m4 (gl_GETDATE):
65466         * m4/gethrxtime.m4 (gl_GETHRXTIME):
65467         * m4/getpagesize.m4 (gl_GETPAGESIZE):
65468         * m4/getpass.m4 (gl_FUNC_GETPASS):
65469         * m4/gettime.m4 (gl_GETTIME):
65470         * m4/getugroups.m4 (gl_GETUGROUPS):
65471         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
65472         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
65473         * m4/hard-locale.m4 (gl_HARD_LOCALE):
65474         * m4/hash.m4 (gl_HASH):
65475         * m4/idcache.m4 (gl_IDCACHE):
65476         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
65477         * m4/lchown.m4 (gl_FUNC_LCHOWN):
65478         * m4/long-options.m4 (gl_LONG_OPTIONS):
65479         * m4/lstat.m4 (gl_FUNC_LSTAT):
65480         * m4/md5.m4 (gl_MD5):
65481         * m4/memcasecmp.m4 (gl_MEMCASECMP):
65482         * m4/memcoll.m4 (gl_MEMCOLL):
65483         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
65484         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
65485         * m4/memxor.m4 (gl_MEMXOR):
65486         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
65487         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
65488         * m4/modechange.m4 (gl_MODECHANGE):
65489         * m4/mountlist.m4 (gl_MOUNTLIST):
65490         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
65491         * m4/openat.m4 (gl_FUNC_OPENAT):
65492         * m4/pathmax.m4 (gl_PATHMAX):
65493         * m4/physmem.m4 (gl_PHYSMEM):
65494         * m4/posixtm.m4 (gl_POSIXTM):
65495         * m4/posixver.m4 (gl_POSIXVER):
65496         * m4/quote.m4 (gl_QUOTE):
65497         * m4/quotearg.m4 (gl_QUOTEARG):
65498         * m4/readtokens.m4 (gl_READTOKENS):
65499         * m4/readutmp.m4 (gl_READUTMP):
65500         * m4/regex.m4 (gl_REGEX):
65501         * m4/safe-read.m4 (gl_SAFE_READ):
65502         * m4/safe-write.m4 (gl_SAFE_WRITE):
65503         * m4/same.m4 (gl_SAME):
65504         * m4/save-cwd.m4 (gl_SAVE_CWD):
65505         * m4/savedir.m4 (gl_SAVEDIR):
65506         * m4/settime.m4 (gl_SETTIME):
65507         * m4/sha1.m4 (gl_SHA1):
65508         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
65509         * m4/stat-macros.m4 (gl_STAT_MACROS):
65510         * m4/stat-time.m4 (gl_STAT_TIME):
65511         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
65512         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
65513         * m4/strdup.m4 (gl_FUNC_STRDUP):
65514         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
65515         * m4/strndup.m4 (gl_FUNC_STRNDUP):
65516         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
65517         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
65518         * m4/time_r.m4 (gl_TIME_R):
65519         * m4/timespec.m4 (gl_TIMESPEC):
65520         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
65521         * m4/unlinkdir.m4 (gl_UNLINKDIR):
65522         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
65523         * m4/userspec.m4 (gl_USERSPEC):
65524         * m4/utimecmp.m4 (gl_UTIMECMP):
65525         * m4/utimens.m4 (gl_UTIMENS):
65526         * m4/xalloc.m4 (gl_XALLOC):
65527         * m4/xgetcwd.m4 (gl_XGETCWD):
65528         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
65529         * m4/xreadlink.m4 (gl_XREADLINK):
65530         * m4/xstrtod.m4 (gl_XSTRTOD):
65531         * m4/yesno.m4 (gl_YESNO):
65532         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
65533         to get the necessary .h files and whatnot.
65534
65535 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
65536             Bruno Haible  <bruno@clisp.org>
65537
65538         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
65539         /bin/sh understanding of '!' conditional negation.
65540
65541 2006-08-21  Jim Meyering  <jim@meyering.net>
65542
65543         * modules/openat (Depends-on): Really alphabetize.
65544
65545         * modules/acl (Depends-on): Add error and quote.
65546
65547         * check-module (find_included_lib_files): Add at-func.c to the
65548         ok-to-include-more-than-once white list.
65549
65550         * modules/openat (Depends-on): Add lstat.  Alphabetize.
65551
65552 2006-08-21  Bruno Haible  <bruno@clisp.org>
65553
65554         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65555         Emit a pkgdata_DATA variable only if some snippets add contents to it.
65556         Reported by Martin Lambers <marlam@marlam.de>.
65557
65558 2006-08-21  Bruno Haible  <bruno@clisp.org>
65559
65560         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
65561         specify an installation location, don't emit a noinst_LIBRARIES or
65562         noinst_LTLIBRARIES assignment.
65563
65564 2006-08-21  Bruno Haible  <bruno@clisp.org>
65565
65566         BeOS portability.
65567         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
65568         BeOS has mbrtowc() but no <wctype.h>.
65569
65570 2006-08-21  Bruno Haible  <bruno@clisp.org>
65571
65572         BeOS portability.
65573         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
65574         exist.
65575
65576 2006-08-21  Bruno Haible  <bruno@clisp.org>
65577
65578         BeOS portability.
65579         * lib/mbchar.h: Include <wctype.h> only if it exists.
65580
65581 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65582
65583         Remove files that are no longer needed by their respective modules.
65584         * m4/obstack.m4: Remove.
65585         * m4/strerror_r.m4: Remove.
65586         * m4/uint32_t.m4: Remove.
65587         * m4/uintptr_t.m4: Remove.
65588         * m4/ullong_max.m4: Remove.
65589         * m4/xstrtoimax.m4: Remove.
65590         * m4/xstrtoumax.m4: Remove.
65591
65592         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
65593         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
65594         dependencies now capture this.
65595
65596         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
65597         Do not use AC_LIBSOURCES, since gnulib modules now do this.
65598         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
65599         * m4/human.m4 (gl_HUMAN): Likewise.
65600         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
65601         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
65602
65603         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
65604
65605         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
65606         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
65607         stdint.
65608         * m4/human.m4 (gl_HUMAN): Likewise.
65609         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
65610         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
65611         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
65612         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
65613         * m4/xstrtol (gl_XSTRTOL): Likewise.
65614
65615         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
65616         AC_TYPE_LONG_LONG_INT.
65617         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
65618         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
65619         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
65620         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
65621
65622         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
65623         on stdbool.
65624
65625         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
65626         (gl_PREREQ_XSTRTOUL): Remove.
65627
65628         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
65629
65630         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
65631         mode.
65632
65633 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65634
65635         Add and change modules to make it easier for coreutils to use
65636         gnulib-tool.
65637         * modules/backupfile (Files): Remove m4/d-ino.m4.
65638         (Depends-on): Add d-ino.
65639         * modules/cycle-check (Depends-on): Add stdint.
65640         (lib_SOURCES): Add cycle-check.h.
65641         * modules/d-ino: New module.
65642         * modules/d-type: New module.
65643         * modules/error (Files): Remove m4/strerror_r.m4.
65644         * modules/filemode (Files): Add m4/st_dm_mode.m4.
65645         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
65646         m4/inttypes_h.m4, m4/uintmax_t.m4.
65647         (Depends-on): Add stdint.
65648         (lib_SOURCES): Add fsusage.h.
65649         * modules/getcwd (Files): Remove d-ino.m4.
65650         (Depends-on): Add d-ino.
65651         * modules/getndelim2 (Depends-on): Add stdint.
65652         * modules/glob (Files): Remove m4/d-type.m4.
65653         (Depends-on): Add d-type.
65654         * modules/host-os: New module.
65655         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
65656         m4/inttypes_h.m4, m4/uintmax_t.m4.
65657         * Depends-on: Add stdint.
65658         (lib_SOURCES): Add human.h.
65659         * modules/inttostr (Files): Remove m4/intmax_t.m4,
65660         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
65661         m4/uintmax_t.m4, m4/ulonglong.m4.
65662         (Depends-on): Add stdint.
65663         (EXTRA_DIST): Add inttostr.h.
65664         * modules/lchmod: New module.
65665         * modules/link-follow: New module.
65666         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
65667         (Depends-on): Add lchmod.
65668         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
65669         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
65670         (Depends-on): Add stdint.
65671         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
65672         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
65673         (Depends-on): Add stdint.
65674         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
65675         * modules/perl: New module.
65676         * modules/regex (Depends-on): Add stdint.
65677         * modules/rmdir-errno: New module.
65678         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
65679         m4/intmax_t.m4.
65680         (Depends-on): Add stdint.
65681         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
65682         m4/uintmax_t.m4.
65683         (Depends-on): Add stdint.
65684         * modules/unlink-busy: New module.
65685         * modules/utimecmp (Depends-on): Add stdint.
65686         * modules/uptime: New module.
65687         * modules/winsz-ioctl: New module.
65688         * modules/winsz-termios: New module.
65689         * modules/xnanosleep (Depends-on): Add nanosleep.
65690         * modules/ullong_max: Remove.
65691         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
65692         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
65693         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
65694         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
65695         (Depends-on): Add inttypes.
65696         (lib_SOURCES): Add xstrtol.h.
65697         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
65698         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
65699         * MODULES.html.sh: Move 'assert' into the assert section.
65700         Move 'dummy' into the linking section.
65701         Remove ullong_max.
65702         Add section for compatibility checks for POSIX:2001 functions,
65703         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
65704         winsz-ioctl, and winsz-termios into it.
65705         Add lchmod.
65706         Add top-level Misc section and put host-os, perl, and uptime
65707         into it.
65708
65709 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65710
65711         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
65712         now assume the stdint module.  Do not include inttypes.h.
65713         * lib/fsusage.h: Likewise.
65714         * lib/getndelim2.c: Likewise.
65715         * lib/human.h: Likewise.
65716         * lib/inttostr.h: Likewise.
65717         * lib/obstack.c: Likewise.
65718         * lib/regex_internal.h: Likewise.
65719         * lib/tempname.c: Likewise.
65720         * lib/utimecmp.c: Likewise.
65721         * lib/xstrtol.h: Likewise.
65722
65723         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
65724
65725         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
65726         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
65727         * lib/xtime.h: Likewise.
65728
65729 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65730
65731         * modules/openat (Files): Add lib/fchmodat.c.
65732         Fixes problem reported by Jay Youngman.
65733
65734 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65735
65736         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
65737         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
65738
65739 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
65740             Bruno Haible  <bruno@clisp.org>
65741
65742         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
65743         and is a script that invokes bison. Tighten the code. Add comments.
65744
65745 2006-08-18  Jim Meyering  <jim@meyering.net>
65746
65747         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
65748         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
65749         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
65750         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
65751
65752 2006-08-18  Bruno Haible  <bruno@clisp.org>
65753
65754         * modules/bison-i18n: New file.
65755         * MODULES.html.sh (Internationalization functions): Add it.
65756
65757 2006-08-18  Bruno Haible  <bruno@clisp.org>
65758
65759         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
65760         sys/statvfs.h. When getmntinfo was found, check its declaration and
65761         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
65762
65763 2006-08-18  Bruno Haible  <bruno@clisp.org>
65764
65765         * m4/bison-i18n.m4: New file, from bison.
65766
65767 2006-08-18  Bruno Haible  <bruno@clisp.org>
65768
65769         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
65770         (ME_DUMMY): Treat "kernfs" as a dummy.
65771         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
65772
65773 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
65774
65775         Update from coreutils.
65776
65777         2006-08-15  Jim Meyering  <jim@meyering.net>
65778
65779         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
65780
65781         2006-01-17  Jim Meyering  <jim@meyering.net>
65782
65783         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
65784
65785         2006-01-11  Jim Meyering  <jim@meyering.net>
65786
65787         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
65788         Check for the lchmod function.
65789
65790 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
65791
65792         Update from coreutils.
65793
65794         * lib/__fpending.h: Add copyright notice.
65795         * lib/fprintftime.h: Likewise.
65796         * lib/savedir.c: Use (C) in copyright notice.
65797         * lib/savedir.h: Likewise.
65798
65799         2006-08-15  Jim Meyering  <jim@meyering.net>
65800
65801         * lib/at-func.c: New file, with the logic of all emulated at-functions.
65802         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
65803         in support of the EXPECTED_ERRNO macro.
65804         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
65805         definitions.  Instead, define the appropriate symbols and include
65806         "at-func.c".
65807         * lib/mkdirat.c (mkdirat): Likewise.
65808         * lib/fchmodat.c (fchmodat): Likewise.
65809         (ENOSYS): Remove definition.
65810         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
65811         it.  Don't include "unistd--.h" -- it wasn't ever used.
65812
65813         2006-01-17  Jim Meyering  <jim@meyering.net>
65814
65815         Rewrite fts.c not to change the current working directory,
65816         by using openat, fstatat, fdopendir, etc..
65817
65818         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
65819         (HAVE_OPENAT_SUPPORT): Define.
65820         [_LIBC] (fchdir): Don't undef or define; no longer used.
65821         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
65822         Now, this `function' always succeeds, and consumes its file descriptor
65823         parameter -- so callers must not close such FDs.  Update callers.
65824         (diropen_fd, opendirat, cwd_advance_fd): New functions.
65825         (diropen): Add parameter, SP.  Adjust all callers.
65826         Implement using diropen_fd, rather than open.
65827         (fts_open): Initialize new member, fts_cwd_fd.
65828         Remove fts_rft-setting code.
65829         (fts_close): Close fts_cwd_fd, if necessary.
65830         (__opendir2): Define in terms of opendir or opendirat,
65831         depending on whether the FST_NOCHDIR flag is set.
65832         (fts_build): Since fts_safe_changedir consumes its FD, and since
65833         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
65834         and close the dup'd file descriptor upon failure.
65835         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
65836         (fts_safe_changedir): Tweak semantics to reflect that this function
65837         now calls cwd_advance_fd and hence consumes its FD argument.
65838         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
65839         [struct FTS] (fts_rft): Remove now-unused member.
65840         [struct FTS] (fts_cycle.state): Improve comment.
65841
65842         * lib/openat.c (openat_needs_fchdir): New function.
65843         * lib/openat.h (openat_needs_fchdir): Declare it.
65844
65845 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
65846
65847         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
65848         Problem and fix reported by Pádraig Brady in
65849         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
65850
65851 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65852
65853         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
65854
65855 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65856
65857         * lib/memcoll.c (memcoll): Optimize for the common case where the
65858         arguments are bytewise equal.
65859
65860 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65861
65862         * doc/regexprops-generic.texi: Add a copyright notice.
65863
65864 2006-08-15  Bruno Haible  <bruno@clisp.org>
65865
65866         * modules/tmpdir (License): Change to LGPL.
65867
65868 2006-08-15  Bruno Haible  <bruno@clisp.org>
65869
65870         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
65871         module.
65872
65873 2006-08-14  Simon Josefsson  <jas@extundo.com>
65874
65875         * config/srclist.txt: Add gnupload.
65876
65877 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
65878
65879         Change copyright notice from LGPL 2 to GPL 2, since that's the
65880         standard form used in the gnulib repository.
65881         * tests/test-lock.c: Likewise.
65882         * tests/test-stdint.c: Likewise.
65883         * tests/test-tls.c: Likewise.
65884
65885         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
65886         prelude-manager.  User shorter URLs for GNU projects, without '?'.
65887         Add copyright notice.
65888
65889         * check-module: Add copyright notice.  Output a copyright
65890         notice if "--version" is specified.
65891         * modules/COPYING: New file.
65892         * tests/test-getaddrinfo.c: Add copyright notice.
65893         * tests/test-verify.c: Likewise.
65894
65895 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
65896
65897         Change copyright notice from LGPL 2 to GPL 2, since that's the
65898         standard form used in the gnulib repository.
65899         * lib/lock.c: LGPL -> GPL.
65900         * lib/lock.h: Likewise.
65901         * lib/strnlen1.c: Likewise.
65902         * lib/strnlen1.h: Likewise.
65903         * lib/tls.c: Likewise.
65904         * lib/tls.h: Likewise.
65905         * lib/tmpdir.c: Likewise.
65906
65907         * lib/TODO: Remove; this belongs only in coreutils.
65908
65909 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
65910
65911         Add copyright notices to long-enough files that lack them, since
65912         otherwise the files aren't clearly free.  Use the same notice that
65913         getdate.texi already uses.
65914         * doc/alloca-opt.texi: Add copyright notice.
65915         * doc/alloca.texi: Likewise.
65916         * doc/ctime.texi: Likewise.
65917         * doc/functions.texi: Likewise.
65918         * doc/gcd.texi: Likewise.
65919         * doc/gnulib-tool.texi: Likewise.
65920         * doc/inet_ntoa.texi: Likewise.
65921         * doc/visibility.texi: Likewise.
65922
65923         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
65924         * doc/quote.texi: Add copyright notice.
65925
65926         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
65927         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
65928         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
65929         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
65930         is now obsolete, and give a pointer to the Sun list.
65931         Add copyright notice.
65932
65933 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
65934
65935         * config/srclistvars.sh: Add copyright notice.
65936
65937 2006-08-14  Eric Blake  <ebb9@byu.net>
65938
65939         Import the following change from libc:
65940
65941         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
65942
65943         Upstream bug 2997.
65944         * lib/misc/error.c: Add space between program name and message if file
65945         name is missing.
65946
65947 2006-08-12  Karl Berry  <karl@gnu.org>
65948
65949         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
65950         remove, these originate in gnulib now.
65951
65952 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65953
65954         * doc/Makefile (standards.info standards.html standards.dvi):
65955         Also depend on make-stds.texi.
65956
65957 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
65958
65959         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
65960         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
65961
65962         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
65963         in wchar_t.  Problem reported by Eric Blake.
65964
65965         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
65966         LEN is smaller than SIZE.  Suggested by Bruno Haible.
65967         Also, help the compiler to keep LEN in a register.
65968
65969 2006-08-11  Eric Blake  <ebb9@byu.net>
65970
65971         * users.txt: Sort.  Add tar.
65972
65973 2006-08-11  Bruno Haible  <bruno@clisp.org>
65974
65975         * users.txt: New file.
65976
65977 2006-08-11  Bruno Haible  <bruno@clisp.org>
65978
65979         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
65980         before <wchar.h>. Needed for OSF/1 and BSD/OS.
65981
65982 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
65983
65984         * modules/snprintf (Depends-on): Remove minmax.
65985         (Maintainer): Add self and Bruno.
65986
65987 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
65988
65989         * lib/.cppi-disable: Add snprintf.h, socket_.h.
65990         * lib/snprintf.c: Include <errno.h> and <limits.h>.
65991         (EOVERFLOW): Define if the system does not.
65992         Do not include "minmax.h"; it wasn't used.
65993         (snprintf): Don't assume size_t promotes to an unsigned type.
65994         Fix bug when generated string was too long for the buffer: the
65995         buffer's contents are supposed to be the initial prefix of the
65996         output.  Don't assume vasnprintf returns EOVERFLOW if the size
65997         exceeds INT_MAX; do the check ourselves.
65998
65999         Import the following changes from libc:
66000
66001         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
66002
66003         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
66004         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
66005         set wc to the byte which couldn't be converted.
66006         (re_string_reconstruct): Don't clear valid_raw_len before calling
66007         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
66008         tip_context using re_string_context_at.
66009
66010         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
66011
66012         * lib/posix/regex.h: g++ still cannot handled [restrict].
66013
66014         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
66015
66016         * lib/posix/regex.h: Remove special handling for VMS.
66017
66018 2006-08-10  Jim Meyering  <jim@meyering.net>
66019
66020         * modules/same-inode: New module.
66021         * modules/dev-ino: New module.
66022         * modules/cycle-check: Depend on these modules, rather than simply
66023         including their .h files.
66024         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
66025         required via m4/cycle-check.m4.
66026         * modules/same: Depend on new same-inode module, rather than
66027         including same-inode.h.
66028         * modules/chdir-safer: New file.
66029
66030         * modules/chown (Depends-on): Add stat-macros.
66031
66032 2006-08-10  Jim Meyering  <jim@meyering.net>
66033
66034         * m4/cycle-check.m4: New file.
66035         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
66036         * m4/dev-ino.m4, m4/same-inode.m4: New files.
66037
66038 2006-08-10  Eric Blake  <ebb9@byu.net>
66039
66040         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
66041         in from original proposal.
66042
66043 2006-08-10  Eric Blake  <ebb9@byu.net>
66044         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
66045
66046         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
66047         namespace.
66048
66049 2006-08-10  Bruno Haible  <bruno@clisp.org>
66050
66051         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
66052         as well.
66053
66054 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
66055
66056         Sync from coreutils.
66057
66058         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
66059
66060         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
66061         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
66062
66063 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
66064
66065         * modules/restrict: Remove; no longer needed now that we assume
66066         Autoconf 2.59 or later.
66067         * MODULES.html.sh: Remove 'restrict'.
66068         * modules/argp (Depends-on): Remove 'restrict'.
66069         * modules/base64 (Depends-on): Likewise.
66070         * modules/gc (Depends-on): Likewise.
66071         * modules/getaddrinfo (Depends-on): Likewise.
66072         * modules/glob (Depends-on): Likewise.
66073         * modules/inet_ntop (Depends-on): Likewise.
66074         * modules/inet_pton (Depends-on): Likewise.
66075         * modules/memxor (Depends-on): Likewise.
66076         * modules/regex (Depends-on): Likewise.
66077         * modules/strtok_r (Depends-on): Likewise.
66078         * modules/time_r (Depends-on): Likewise.
66079
66080 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
66081
66082         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
66083         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
66084         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
66085         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
66086         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
66087         * m4/memxor.m4 (gl_MEMXOR): Likewise.
66088         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
66089         gl_C_RESTRICT replaced by AC_C_RESTRICT.
66090
66091         Merge from coreutils.
66092         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
66093         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
66094         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
66095         * m4/time_r.m4 (gl_TIME_R): Likewise.
66096
66097 2006-08-09  Karl Berry  <karl@gnu.org>
66098
66099         * config/srclist.txt: no more gettext-tools, per Bruno.
66100
66101 2006-08-08  Eric Blake  <ebb9@byu.net>
66102
66103         * modules/verror: New module.
66104         * MODULES.html.sh: Document it.
66105
66106 2006-08-08  Eric Blake  <ebb9@byu.net>
66107
66108         * lib/verror.h, lib/verror.c: New files.
66109
66110 2006-08-08  Eric Blake  <ebb9@byu.net>
66111
66112         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
66113         verror_at_line output complies with GNU Coding Standards even when
66114         file is NULL.
66115
66116 2006-08-07  Bruno Haible  <bruno@clisp.org>
66117
66118         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
66119         versions of AIX.
66120         Reported by Ralf Wildenhues.
66121
66122 2006-08-07  Bruno Haible  <bruno@clisp.org>
66123
66124         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
66125         in an AC_DEFUN. Needed so that the autoconf snippets can use
66126         AC_REQUIRE.
66127
66128 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66129
66130         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66131         Initialize pkgdata_DATA.
66132         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
66133         overriding it.
66134
66135 2006-08-06  Eric Blake  <ebb9@byu.net>
66136
66137         * lib/error.h: Fold in some upstream changes from glibc.
66138         * lib/error.c: Likewise.
66139
66140 2006-08-04  Bruno Haible  <bruno@clisp.org>
66141
66142         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66143         Make the mostlyclean-local rule depend on mostlyclean-generic.
66144         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
66145
66146 2006-07-31  Bruno Haible  <bruno@clisp.org>
66147
66148         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
66149         <stdlib.h>, <string.h>.
66150
66151 2006-07-30  Bruno Haible  <bruno@clisp.org>
66152
66153         * modules/readlink (License): Change to LGPL.
66154
66155 2006-07-30  Bruno Haible  <bruno@clisp.org>
66156
66157         * modules/javaversion (Makefile.am): Distribute javaversion.java and
66158         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
66159         set PKGDATADIR to point to it.
66160
66161 2006-07-30  Bruno Haible  <bruno@clisp.org>
66162
66163         * modules/csharpexec (configure.ac): Comment out macro invocation.
66164         * modules/javaexec (configure.ac): Likewise.
66165         * modules/javacomp-script (configure.ac): Likewise.
66166
66167         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
66168
66169 2006-07-30  Bruno Haible  <bruno@clisp.org>
66170
66171         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
66172         linked-list.
66173
66174 2006-07-30  Bruno Haible  <bruno@clisp.org>
66175
66176         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
66177
66178 2006-07-30  Bruno Haible  <bruno@clisp.org>
66179
66180         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66181         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
66182         get removed.
66183
66184 2006-07-29  Bruno Haible  <bruno@clisp.org>
66185
66186         Make it possible for gnulib-tool to work with locally modified or
66187         augmented gnulib repositories.
66188         * gnulib-tool (func_usage): Document --local-dir option.
66189         (local_gnulib_dir): New variable.
66190         Handle --local-dir option.
66191         (func_lookup_file): New function.
66192         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
66193         (func_get_description, func_get_filelist, func_get_description,
66194         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
66195         func_get_automake_snippet, func_get_include_directive,
66196         func_get_license, func_get_maintainer): Use func_lookup_file.
66197         (func_import, func_create_testdir): Use func_lookup_file.
66198
66199 2006-07-29  Bruno Haible  <bruno@clisp.org>
66200
66201         * modules/setenv (Depends-on): Add unistd.
66202
66203 2006-07-29  Bruno Haible  <bruno@clisp.org>
66204
66205         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
66206
66207 2006-07-29  Bruno Haible  <bruno@clisp.org>
66208
66209         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
66210
66211 2006-07-29  Bruno Haible  <bruno@clisp.org>
66212
66213         * gnulib-tool (import, update): If there is no Makefile.am, look at
66214         aclocal.m4, instead of bailing out.
66215
66216 2006-07-29  Bruno Haible  <bruno@clisp.org>
66217
66218         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
66219         Categorize the options by when they are useful.
66220
66221 2006-07-29  Bruno Haible  <bruno@clisp.org>
66222
66223         * gnulib-tool (func_usage): Document option --no-libtool.
66224         Handle option --no-libtool.
66225         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
66226         for changed semantics of $libtool variable.
66227         (func_import): Likewise. If libtool is not used, show this through
66228         an option --no-libtool.
66229         (func_create_testdir): Update.
66230
66231 2006-07-29  Bruno Haible  <bruno@clisp.org>
66232
66233         * gnulib-tool (func_import): Extend error message about missing
66234         --doc-base.
66235
66236 2006-07-29  Bruno Haible  <bruno@clisp.org>
66237
66238         * gnulib-tool (func_import): Don't create the $docbase directory if
66239         there is no file to store there.
66240
66241 2006-07-29  Bruno Haible  <bruno@clisp.org>
66242
66243         * gnulib-tool (autoconf_minversion): If a --dir option is given and
66244         relevant, look for configure.ac there, not in the current directory.
66245         Also use a simple search for AC_PREREQ, not "autoconf --trace".
66246
66247 2006-07-29  Bruno Haible  <bruno@clisp.org>
66248
66249         * gnulib-tool (SORT): New variable.
66250         (func_usage): Undocument --assume-autoconf option.
66251         Remove --assume-autoconf option handling.
66252         (autoconf_minversion): Determine from the contents of configure.ac.
66253         (func_import): Remove autoconf_minversion handling.
66254         Suggested by Eric Blake.
66255
66256 2006-07-29  Bruno Haible  <bruno@clisp.org>
66257
66258         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
66259
66260 2006-07-29  Bruno Haible  <bruno@clisp.org>
66261
66262         * config/srclist.txt (*setenv.[ch]): Remove rules.
66263
66264 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66265
66266         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
66267
66268 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66269
66270         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
66271         arpa/inet.h.
66272
66273 2006-07-28  Simon Josefsson  <jas@extundo.com>
66274
66275         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
66276         * modules/inet_pton (Depends-on): Likewise.
66277
66278 2006-07-28  Simon Josefsson  <jas@extundo.com>
66279
66280         * m4/netinet_in_h.m4: New file.
66281
66282 2006-07-28  Simon Josefsson  <jas@extundo.com>
66283
66284         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
66285         #include's.
66286
66287 2006-07-28  Simon Josefsson  <jas@extundo.com>
66288
66289         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
66290         #include's.
66291
66292 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
66293
66294         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
66295         setgid on directories only if they set these bits.
66296         * lib/modechange.h: Remove obsolete comment about masks.
66297
66298 2006-07-28  Eric Blake  <ebb9@byu.net>
66299
66300         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
66301         macro expansion.
66302
66303 2006-07-28  Bruno Haible  <bruno@clisp.org>
66304
66305         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
66306
66307 2006-07-28  Bruno Haible  <bruno@clisp.org>
66308
66309         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
66310
66311 2006-07-28  Bruno Haible  <bruno@clisp.org>
66312
66313         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
66314         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
66315         Define fallbacks.
66316         Avoids link error on FreeBSD 4.x.
66317         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
66318
66319         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
66320         encoding.
66321         * lib/mbswidth.c (iswcntrl): Likewise.
66322
66323 2006-07-27  Bruno Haible  <bruno@clisp.org>
66324
66325         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
66326         test.
66327
66328 2006-07-27  Bruno Haible  <bruno@clisp.org>
66329
66330         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
66331         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
66332         defined.
66333
66334 2006-07-26  Eric Blake  <ebb9@byu.net>
66335
66336         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
66337
66338 2006-07-26  Eric Blake  <ebb9@byu.net>
66339
66340         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
66341         like mingw that lack mkstemp.
66342         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
66343         avoid compilation warning on mingw.
66344
66345 2006-07-26  Bruno Haible  <bruno@clisp.org>
66346
66347         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
66348         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
66349         INT_FAST*_MIN, INTPTR_MIN.
66350
66351 2006-07-25  Bruno Haible  <bruno@clisp.org>
66352
66353         * modules/version-etc (Depends-on): Add stdarg.
66354
66355 2006-07-25  Bruno Haible  <bruno@clisp.org>
66356
66357         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
66358         complex commands.
66359
66360 2006-07-25  Bruno Haible  <bruno@clisp.org>
66361
66362         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
66363         defined in <stdarg.h> or config.h.
66364
66365 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
66366
66367         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
66368         (gl_STDIO_SAFER): Remove.
66369
66370 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
66371
66372         * MODULES.html.sh (File stream based Input/Output):
66373         Add fopen-safer, tmpfile-safer; remove stdio-safer.
66374         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
66375         * modules/fopen-safer, modules/tmpfile-safer: New files.
66376         * modules/stdio-safer: Remove.
66377
66378 2006-07-24  Bruno Haible  <bruno@clisp.org>
66379
66380         * modules/tmpdir: New file.
66381         * MODULES.html.sh (File system functions): Add it.
66382
66383 2006-07-24  Bruno Haible  <bruno@clisp.org>
66384
66385         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
66386         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
66387
66388 2006-07-24  Bruno Haible  <bruno@clisp.org>
66389
66390         * modules/clean-temp: New file.
66391
66392 2006-07-24  Bruno Haible  <bruno@clisp.org>
66393
66394         * m4/tmpdir.m4: New file, from GNU gettext.
66395
66396 2006-07-24  Bruno Haible  <bruno@clisp.org>
66397
66398         * lib/tmpdir.h: New file, from GNU gettext.
66399         * lib/tmpdir.c: New file, from GNU gettext.
66400
66401 2006-07-24  Bruno Haible  <bruno@clisp.org>
66402
66403         * lib/clean-temp.h: New file, from GNU gettext.
66404         * lib/clean-temp.c: New file, from GNU gettext.
66405
66406 2006-07-23  Eric Blake  <ebb9@byu.net>
66407
66408         * modules/stdio-safer (Files): Add tmpfile-safer.c.
66409         (Depends-on): Add binary-io.
66410
66411 2006-07-23  Eric Blake  <ebb9@byu.net>
66412
66413         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
66414
66415 2006-07-23  Eric Blake  <ebb9@byu.net>
66416
66417         * lib/tmpfile-safer.c: New file.
66418         * lib/stdio-safer.h (fopen_safer): Add prototype.
66419         * lib/stdio--.h (tmpfile): Make safer.
66420
66421 2006-07-23  Bruno Haible  <bruno@clisp.org>
66422
66423         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
66424         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
66425         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
66426         gl_linked_remove_at): Use it.
66427
66428 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66429         and Simon Josefsson <jas@extundo.com>
66430
66431         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
66432
66433         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
66434
66435 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
66436
66437         * modules/close-stream: New file.
66438         * modules/closeout (Description): Make it clear that it exits
66439         with a diagnostic on error.
66440         (Depends-on): Add close-stream.  Remove fpending, stdbool.
66441         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
66442
66443 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
66444
66445         * m4/close-stream.m4: New file.
66446
66447 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
66448
66449         * lib/close-stream.c, lib/close-stream.h: New files.
66450
66451 2006-07-22  Bruno Haible  <bruno@clisp.org>
66452
66453         Merge from GNU gettext 0.15.
66454
66455         2006-05-01  Bruno Haible  <bruno@clisp.org>
66456
66457                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
66458
66459         2006-07-22  Bruno Haible  <bruno@clisp.org>
66460
66461                 * modules/javaversion: New file.
66462                 * MODULES.html.sh (Java): Add javaversion.
66463
66464         2006-03-12  Bruno Haible  <bruno@clisp.org>
66465
66466                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
66467
66468         2005-12-04  Bruno Haible  <bruno@clisp.org>
66469
66470                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
66471                 (untested).
66472
66473         2006-06-21  Bruno Haible  <bruno@clisp.org>
66474
66475                 Avoid warnings from recent versions of mcs.
66476                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
66477                 -o, -L, -r any more. Use options documented since mcs-1.0
66478                 instead. Similarly for -g.
66479
66480         2005-12-04  Bruno Haible  <bruno@clisp.org>
66481
66482                 * build-aux/csharpcomp.sh.in: Suffix for resources is
66483                 .resources, not .resource.
66484
66485         2005-07-09  Bruno Haible  <bruno@clisp.org>
66486
66487                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
66488                 add a .dll suffix.
66489                 Reported by Mark Junker <mjscod@gmx.de>.
66490
66491         2006-07-22  Bruno Haible  <bruno@clisp.org>
66492
66493                 * modules/gettext: Upgrade to gettext-0.15.
66494                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
66495                 m4/visibility.m4.
66496                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
66497
66498 2006-07-22  Bruno Haible  <bruno@clisp.org>
66499
66500         Merge from GNU gettext 0.15.
66501
66502         2006-03-25  Bruno Haible  <bruno@clisp.org>
66503
66504                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
66505
66506         2006-07-21  Bruno Haible  <bruno@clisp.org>
66507
66508                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
66509                 "1.1".
66510
66511         2006-05-09  Bruno Haible  <bruno@clisp.org>
66512
66513                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
66514                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
66515                 for the conftestver execution.
66516
66517         2006-05-01  Bruno Haible  <bruno@clisp.org>
66518
66519                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
66520                 optional target-version argument. Verify that the compiler
66521                 groks source of the specified source-version, or add -source
66522                 option as necessary. Verify that the compiler produces
66523                 bytecode in the specified target-version, or add -target and
66524                 -source options as necessary. Make the result of the test
66525                 available as variable CONF_JAVAC. Also log error output in
66526                 config.log.
66527
66528         2006-03-11  Bruno Haible  <bruno@clisp.org>
66529
66530                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
66531
66532         2006-05-09  Bruno Haible  <bruno@clisp.org>
66533
66534                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
66535                 CLASSPATH_SEPARATOR to a semicolon.
66536
66537         2006-03-12  Bruno Haible  <bruno@clisp.org>
66538
66539                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
66540                 available as variable CONF_JAVA, for subsequent autoconf
66541                 tests. Also log error output in config.log.
66542
66543         2006-07-19  Bruno Haible  <bruno@clisp.org>
66544
66545                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
66546                 that getline works on glibc2 systems. Needed to avoid trouble
66547                 in relocatable.c.
66548                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
66549
66550         2005-12-04  Bruno Haible  <bruno@clisp.org>
66551
66552                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
66553                 launcher (untested).
66554
66555         2005-12-04  Bruno Haible  <bruno@clisp.org>
66556
66557                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
66558
66559         2006-07-22  Bruno Haible  <bruno@clisp.org>
66560
66561                 * gettext.m4: Update from GNU gettext-0.15.
66562                 * nls.m4: Likewise.
66563                 * po.m4: Likewise.
66564                 * inttypes-pri.m4: Likewise.
66565                 * inttypes-h.m4: Renamed from inttypes.m4.
66566                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
66567
66568 2006-07-22  Bruno Haible  <bruno@clisp.org>
66569
66570         Merge from GNU gettext 0.15.
66571
66572         2005-07-05  Bruno Haible  <bruno@clisp.org>
66573
66574                 * printf-args.c (printf_fetchargs): Work around broken
66575                 definition of wint_t on mingw.
66576
66577         2005-02-12  Bruno Haible  <bruno@clisp.org>
66578
66579                 * xallocsa.h: Add extern "C" for C++.
66580
66581         2006-05-17  Bruno Haible  <bruno@clisp.org>
66582
66583                 Cygwin portability.
66584                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
66585
66586         2006-04-30  Bruno Haible  <bruno@clisp.org>
66587
66588                 * progreloc.c: Include <mach-o/dyld.h> if available.
66589                 (find_executable): Use _NSGetExecutablePath when possible.
66590
66591         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
66592
66593                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
66594                 function.
66595
66596         2005-12-29  Bruno Haible  <bruno@clisp.org>
66597
66598                 * progreloc.c (set_program_name_and_installdir): Fix
66599                 compilation error.
66600
66601         2005-12-04  Bruno Haible  <bruno@clisp.org>
66602
66603                 Cygwin portability.
66604                 * progreloc.c: Include <windows.h> also on Cygwin.
66605                 (find_executable): Add support for Cygwin.
66606                 (set_program_name_and_installdir): Handle also platforms with
66607                 nonempty EXEEXT.
66608
66609         2006-07-11  Bruno Haible  <bruno@clisp.org>
66610
66611                 * javacomp.c: Fix a comment.
66612                 Reported by Jim Meyering.
66613
66614         2006-04-30  Bruno Haible  <bruno@clisp.org>
66615
66616                 * javacomp.h (compile_java_class): Add source_version,
66617                 target_version arguments.
66618                 * javacomp.c: Rewritten to choose only a compiler that
66619                 respects the specified source_version and target_version.
66620
66621         2006-06-27  Bruno Haible  <bruno@clisp.org>
66622
66623                 Assume correct S_ISDIR macro.
66624                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
66625
66626         2006-07-22  Bruno Haible  <bruno@clisp.org>
66627
66628                 * javaversion.h: New file, from GNU gettext.
66629                 * javaversion.c: New file, from GNU gettext.
66630                 * javaversion.java: New file, from GNU gettext.
66631                 * javaversion.class: New file, from GNU gettext.
66632
66633         2006-05-17  Bruno Haible  <bruno@clisp.org>
66634
66635                 Cygwin portability.
66636                 * javaexec.c (execute_java_class): Test for jview program
66637                 also on Cygwin.
66638
66639         2006-04-09  Bruno Haible  <bruno@clisp.org>
66640
66641                 * fatal-signal.c: Don't include string.h.
66642                 (at_fatal_signal): Use a copying loop instead of memcpy.
66643
66644         2005-12-04  Bruno Haible  <bruno@clisp.org>
66645
66646                 * csharpexec.c: Add support for 'clix' launcher (untested).
66647                 (execute_csharp_using_sscli): New function.
66648                 (execute_csharp_program): Call it.
66649
66650         2006-06-21  Bruno Haible  <bruno@clisp.org>
66651
66652                 Avoid warnings from recent versions of mcs.
66653                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
66654                 -o, -L, -r any more. Use options documented since mcs-1.0
66655                 instead. Similarly for -g.
66656
66657         2005-07-09  Bruno Haible  <bruno@clisp.org>
66658
66659                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
66660                 add a .dll suffix.
66661                 Reported by Mark Junker <mjscod@gmx.de>.
66662
66663         2006-06-17  Bruno Haible  <bruno@clisp.org>
66664
66665                 * config.charset: Update for NetBSD 3.0.
66666
66667         2006-05-17  Bruno Haible  <bruno@clisp.org>
66668
66669                 Cygwin portability.
66670                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
66671
66672         2006-05-16  Bruno Haible  <bruno@clisp.org>
66673
66674                 * localcharset.c [CYGWIN]: Include <windows.h>.
66675                 (get_charset_aliases): For Cygwin, return the same CPxxx
66676                 aliases list as under WIN32.
66677                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
66678                 the environment variables. Fall back to GetACP().
66679
66680         2006-04-05  Bruno Haible  <bruno@clisp.org>
66681
66682                 * config.charset: Update Juan Manuel Guerrero's address.
66683
66684         2005-02-12  Bruno Haible  <bruno@clisp.org>
66685
66686                 * allocsa.h: Add extern "C" for C++.
66687
66688         2005-02-10  Bruno Haible  <bruno@clisp.org>
66689
66690                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
66691                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
66692
66693         2006-07-22  Bruno Haible  <bruno@clisp.org>
66694
66695                 * gettext.h: Update to GNU gettext-0.15.
66696
66697 2006-07-22  Bruno Haible  <bruno@clisp.org>
66698
66699         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
66700         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
66701         lib-prefix.m4, longdouble.m4, ssize_t.m4.
66702
66703 2006-07-21  Eric Blake  <ebb9@byu.net>
66704
66705         * modules/stdlib-safer: New file.
66706         * MODULES.html.sh (File stream based Input/Output): Add
66707         stdlib-safer.
66708
66709 2006-07-21  Eric Blake  <ebb9@byu.net>
66710
66711         * lib/stdlib-safer.h: New file from coreutils, required by
66712         stdlib--.h.
66713
66714 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
66715
66716         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
66717
66718 2006-07-20  Bruno Haible  <bruno@clisp.org>
66719
66720         * gnulib-tool: Recognize new option --assume-autoconf.
66721         (autoconf_minversion): New variable.
66722         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
66723
66724 2006-07-20  Bruno Haible  <bruno@clisp.org>
66725
66726         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
66727
66728 2006-07-19  Derek R. Price  <derek@ximbiot.com>
66729
66730         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
66731         Reindent and repaginate.
66732
66733 2006-07-19  Derek Price  <derek@ximbiot.com>
66734
66735         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
66736         Correct grammar.
66737
66738 2006-07-17  Bruno Haible  <bruno@clisp.org>
66739
66740         * modules/list: New file.
66741         * modules/array-list: New file.
66742         * modules/carray-list, modules/carray-list-tests: New files.
66743         * modules/linked-list, modules/linked-list-tests: New files.
66744         * modules/avltree-list, modules/avltree-list-tests: New files.
66745         * modules/rbtree-list, modules/rbtree-list-tests: New files.
66746         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
66747         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
66748         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
66749         * modules/oset: New file.
66750         * modules/array-oset: New file.
66751         * modules/avltree-oset, modules/avltree-oset-tests: New files.
66752         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
66753         * tests/test-carray_list.c: New file.
66754         * tests/test-linked_list.c: New file.
66755         * tests/test-avltree_list.c: New file.
66756         * tests/test-rbtree_list.c: New file.
66757         * tests/test-linkedhash_list.c: New file.
66758         * tests/test-avltreehash_list.c: New file.
66759         * tests/test-rbtreehash_list.c: New file.
66760         * tests/test-avltree_oset.c: New file.
66761         * tests/test-rbtree_oset.c: New file.
66762         * MODULES.html.sh (Container data structures): New section.
66763
66764 2006-07-17  Bruno Haible  <bruno@clisp.org>
66765
66766         * m4/gl_list.m4: New file.
66767
66768 2006-07-17  Bruno Haible  <bruno@clisp.org>
66769
66770         * lib/gl_list.h: New file.
66771         * lib/gl_list.c: New file.
66772         * lib/gl_array_list.h: New file.
66773         * lib/gl_array_list.c: New file.
66774         * lib/gl_carray_list.h: New file.
66775         * lib/gl_carray_list.c: New file.
66776         * lib/gl_linked_list.h: New file.
66777         * lib/gl_linked_list.c: New file.
66778         * lib/gl_anylinked_list1.h: New file.
66779         * lib/gl_anylinked_list2.h: New file.
66780         * lib/gl_avltree_list.h: New file.
66781         * lib/gl_avltree_list.c: New file.
66782         * lib/gl_anyavltree_list1.h: New file.
66783         * lib/gl_anyavltree_list2.h: New file.
66784         * lib/gl_rbtree_list.h: New file.
66785         * lib/gl_rbtree_list.c: New file.
66786         * lib/gl_anyrbtree_list1.h: New file.
66787         * lib/gl_anyrbtree_list2.h: New file.
66788         * lib/gl_anytree_list1.h: New file.
66789         * lib/gl_anytree_list2.h: New file.
66790         * lib/gl_linkedhash_list.h: New file.
66791         * lib/gl_linkedhash_list.c: New file.
66792         * lib/gl_anyhash_list1.h: New file.
66793         * lib/gl_anyhash_list2.h: New file.
66794         * lib/gl_avltreehash_list.h: New file.
66795         * lib/gl_avltreehash_list.c: New file.
66796         * lib/gl_rbtreehash_list.h: New file.
66797         * lib/gl_rbtreehash_list.c: New file.
66798         * lib/gl_anytreehash_list1.h: New file.
66799         * lib/gl_anytreehash_list2.h: New file.
66800
66801         * lib/gl_oset.h: New file.
66802         * lib/gl_oset.c: New file.
66803         * lib/gl_array_oset.h: New file.
66804         * lib/gl_array_oset.c: New file.
66805         * lib/gl_avltree_oset.h: New file.
66806         * lib/gl_avltree_oset.c: New file.
66807         * lib/gl_rbtree_oset.h: New file.
66808         * lib/gl_rbtree_oset.c: New file.
66809         * lib/gl_anytree_oset.h: New file.
66810
66811 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
66812
66813         * m4/mkancesdirs.m4: New file.
66814         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
66815         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
66816         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
66817         it.
66818
66819 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
66820
66821         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
66822         * lib/mkancesdirs.h: New files.
66823         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
66824         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
66825         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
66826         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
66827         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
66828         callers changed.  Revamp internals significantly, by not
66829         attempting to create directories that are temporarily more
66830         permissive than the final results.  Do not attempt to use
66831         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
66832         This removes some race conditions, fixes some bugs, and simplifies
66833         things.  Use new dirchownmod function to do owner and mode changes.
66834         * lib/mkdir-p.h: Likewise.
66835         * lib/modechange.c (octal_to_mode): New function.
66836         (struct mode_change): New member mentioned.
66837         (make_node_op_equals): New arg mentioned.  All callers changed.
66838         (mode_compile): Keep track of which mode bits the user has explicitly
66839         mentioned.
66840         (mode_adjust): New arg DIR, so that we implement the X op correctly.
66841         New arg PMODE_BITS, to keep track of which mode bits the user
66842         mentioned; it treats S_ISUID and S_ISGID speciall.
66843         All callers changed.
66844         * lib/modechange.h: Likewise.
66845
66846 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
66847
66848         * MODULES.html.sh: Add mkancestors.
66849         * modules/mkancesdirs: New module.
66850         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
66851         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
66852         The chdir-safer and afs files are now orphans; I'll remove them
66853         unless someone speaks up.
66854         Add lib/dirchownmod.c, lib/dirchownmod.h.
66855         (Depends-on): Remove alloca, chown, save-cwd, dirname.
66856         Add lchown, mkancesdirs.
66857         (Maintainer): Add self.
66858
66859 2006-07-15  Karl Berry  <karl@gnu.org>
66860
66861         * gnulib-tool: help message wording/arrangement.
66862
66863 2006-07-14  Simon Josefsson  <jas@extundo.com>
66864
66865         * doc/gnulib.texi (Libtool and Windows): New section.
66866
66867 2006-07-12  Simon Josefsson  <jas@extundo.com>
66868
66869         * modules/gendocs (License): Fix license, approved by Karl.
66870
66871 2006-07-12  Eric Blake  <ebb9@byu.net>
66872
66873         * MODULES.html.sh: Add gendocs.
66874
66875 2006-07-11  Eric Blake  <ebb9@byu.net>
66876
66877         * modules/fdl: New module, to install doc/fdl.texi.
66878         * MODULES.html.sh: Add new section for documentation modules.
66879         * gnulib-tool: Avoid space-tab.
66880         (--doc-base): New option, to manage files from doc.
66881
66882 2006-07-11  Eric Blake  <ebb9@byu.net>
66883
66884         * m4/absolute-header.m4: Fix comments to match recent change.
66885
66886 2006-07-11  Eric Blake  <ebb9@byu.net>
66887
66888         * gnulib-tool: List --doc-base before --tests-base.
66889
66890 2006-07-11  Derek R. Price  <derek@ximbiot.com>
66891
66892         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
66893
66894 2006-07-11  Bruno Haible  <bruno@clisp.org>
66895
66896         * README: Mention where to put documentation.
66897
66898 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66899
66900         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
66901
66902 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
66903
66904         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
66905         to stdint.m4.
66906
66907 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
66908
66909         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
66910         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
66911         "no/such/file/stdint.h" when there is no such file, so that
66912         the resulting C code can be parsed by dodgy compilers.
66913         Problems reported by Bob Proulx.
66914
66915 2006-07-10  Derek R. Price  <derek@ximbiot.com>
66916
66917         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
66918         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
66919         macros into the GNU _D_EXACT_NAMLEN.
66920         * lib/savedir.c:  Likewise.
66921         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
66922
66923 2006-07-10  Derek R. Price  <derek@ximbiot.com>
66924         and Paul Eggert  <eggert@cs.ucla.edu>
66925
66926         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
66927         * m4/savedir.m4:
66928         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
66929         macros into the GNU _D_EXACT_NAMLEN.
66930
66931 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
66932
66933         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
66934         around the absolute name, to work around a problem with the HP-UX
66935         11.23 native C compiler, reported by Bob Proulx.
66936
66937 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
66938
66939         * doc/maintain.texi, make-stds.texi: Sync from
66940         <http://savannah.gnu.org/projects/gnustandards>.
66941
66942 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
66943
66944         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
66945
66946 2006-07-09  Jim Meyering  <jim@meyering.net>
66947
66948         * m4/glob.m4: Remove a doubled word in a comment.
66949
66950 2006-07-09  Jim Meyering  <jim@meyering.net>
66951
66952         * lib/argp-pv.c: Remove a doubled word in a comment.
66953         * lib/check-version.c (check_version): Likewise.
66954         * lib/javacomp.c (compile_java_class): Likewise.
66955
66956 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
66957
66958         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
66959         for the benefit of people using Autoconf 2.60.  If you want to
66960         support older Autoconf versions you can copy m4/onceonly_2_57.m4
66961         (or m4/onceonly.m4, if pre-2.57) manually.
66962
66963 2006-07-08  Jim Meyering  <jim@meyering.net>
66964
66965         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
66966         comment.
66967         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
66968         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
66969         comment.
66970
66971 2006-07-08  Jim Meyering  <jim@meyering.net>
66972
66973         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
66974
66975 2006-07-07  Simon Josefsson  <jas@extundo.com>
66976
66977         * tests/test-crc.c: Change expected crc value, the test vector
66978         were probably computed using the old broken crc.c?
66979
66980 2006-07-06  Simon Josefsson  <jas@extundo.com>
66981
66982         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
66983         now the canonical place for the M4 file).
66984
66985         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
66986         from the sys_socket dependency now.
66987
66988         * modules/inet_pton (Files): Ditto.
66989
66990         * modules/inet_ntop (Files): Ditto.
66991
66992 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
66993
66994         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
66995         not gl_PREREQ_GETUSERSHELL.
66996
66997 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66998
66999         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
67000         with only one argument, for Autoconf 2.60.
67001         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
67002         expand to nothing, so add a shell command to avoid syntax error.
67003         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
67004
67005 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67006
67007         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
67008
67009 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
67010
67011         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
67012         no longer needed.  Check for isblank decl.
67013         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
67014         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
67015         of existence.
67016
67017 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
67018
67019         * lib/getloadavg.c: Use __VMS, not VMS.
67020         * lib/getopt.c: Likewise.
67021         * lib/getpagesize.h: Likewise.
67022         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
67023         and probably does not work.
67024
67025 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
67026
67027         * lib/.cppi-disable: Add wcwidth.
67028         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
67029         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
67030         (ISGRAPH): Remove.  All uses changed to isgraph.
67031         (FOLD) [!defined _LIBC]: Remove special case.
67032         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
67033         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
67034         HAVE_ISBLANK.
67035         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
67036         case.
67037
67038 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
67039
67040         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
67041         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
67042         brackets.  Other minor changes to suppress some compiler
67043         warnings.
67044
67045 2006-07-06  Derek R. Price  <derek@ximbiot.com>
67046         and Paul Eggert  <eggert@cs.ucla.edu>
67047
67048         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
67049         of invoking obsolescent AC_HEADER_DIRENT macro.
67050         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
67051         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
67052         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
67053         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
67054         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
67055         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
67056         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
67057         * m4/readdir.m4: Remove; no longer needed.
67058
67059 2006-07-06  Derek R. Price  <derek@ximbiot.com>
67060         and Paul Eggert  <eggert@cs.ucla.edu>
67061
67062         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
67063         Don't worry about this obsolete case any more.
67064         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
67065         directories.
67066         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
67067         worry about this obsolete case any more.
67068         * lib/fts.c: Likewise.
67069         * lib/getcwd.c: Likewise.
67070         * lib/glob.h: Likewise.
67071         * lib/savedir.c: Likewise.
67072
67073 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
67074
67075         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
67076         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
67077         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
67078         needed.
67079         All uses removed.
67080         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
67081         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
67082         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
67083         needed.
67084         * m4/getdate.m4 (gl_GETDATE): Likewise.
67085         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
67086         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
67087         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
67088         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
67089         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
67090         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
67091         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
67092         needed.
67093
67094 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
67095
67096         * lib/memcasecmp.c: Include <limits.h>.
67097         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
67098         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
67099         Don't assume isdigit succeeds only on '0' through '9'.
67100
67101 2006-07-05  Eric Blake  <ebb9@byu.net>
67102
67103         * modules/getaddrinfo (Depends-on): Add snprintf.
67104
67105 2006-07-05  Eric Blake  <ebb9@byu.net>
67106
67107         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
67108         to avoid 'header present but could not be compiled' on cygwin.
67109
67110 2006-07-05  Eric Blake  <ebb9@byu.net>
67111
67112         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
67113         missing from netdb.h.
67114         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
67115
67116 2006-07-05  Derek R. Price  <derek@ximbiot.com>
67117
67118         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
67119         no longer needed.
67120         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
67121         * m4/getdate.m4 (gl_GETDATE): Likewise.
67122         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
67123         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
67124         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
67125         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
67126         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
67127
67128 2006-07-05  Derek R. Price  <derek@ximbiot.com>
67129
67130         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
67131         All uses of is_space replaced by isspace.
67132         * lib/exit.h: Don't talk about STDC_HEADERS.
67133         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
67134         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
67135         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
67136         replaced by isprint etc.
67137         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
67138         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
67139         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
67140         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
67141         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
67142         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
67143
67144 2006-07-05  Bruno Haible  <bruno@clisp.org>
67145
67146         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
67147         the function exists, before testing against AIX.
67148         Reported by Martin Lambers <marlam@marlam.de>.
67149
67150 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
67151
67152         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
67153         From Mark D. Baushke.
67154
67155 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
67156
67157         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
67158         to the absolute name, not just one, to bypass Sun C 5.8's
67159         "warning: #include of /usr/include/... may be non-portable".
67160
67161 2006-07-04  Eric Blake  <ebb9@byu.net>
67162
67163         * modules/dirname-tests: New test module.
67164         * tests/test-dirname.c: New file, replacing dirname.c
67165         TEST_DIRNAME section that was recently deleted.
67166
67167 2006-07-04  Bruno Haible  <bruno@clisp.org>
67168
67169         Assume ANSI C header files and <ctype.h> functions.
67170         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
67171         (mbsnwidth): Use isprint, iscntrl instead.
67172
67173 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67174
67175         Merge from coreutils.
67176         * MODULES.html.sh: Add xstrtold.
67177         * modules/xstrtold: New file.
67178         * modules/cycle-check (Files): Add lib/same-inode.h.
67179         * modules/dirname (Files): Add m4/double-slash-root.m4.
67180         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
67181         * modules/mkdir-p (Files): Add lib/same-inode.h.
67182         * modules/same (Files): Add lib/same-inode.h.
67183
67184 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67185
67186         * m4/absolute-header.m4: Renamed from full-header-path.m4.
67187         This is to keep the terminology clean; POSIX talks about
67188         "absolute pathnames", not "full pathnames", but the GNU
67189         Coding Standards say to use "path" for something else;
67190         so use "absolute" to keep both sides happy.
67191         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
67192         Set gl_absolute_header, not gl_full_header_path.
67193         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
67194         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
67195         All uses changed.
67196
67197         Merge from coreutils.
67198
67199         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
67200
67201         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
67202         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
67203         want to require the building of c-strtod.o.
67204         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
67205         needs -lm directly.
67206         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
67207
67208         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
67209
67210         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
67211         --as-needed option if available.  Problem reported by Albert Chin in
67212         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
67213         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
67214         cc merely issues a bunch of annoying warnings for --as-needed
67215         (this problem was reported by Bob Proulx).  Also, try linking with
67216         -lm to detect a bug in binutils 2.16 (this problem was reported
67217         by Ralf Wildenhues).
67218
67219         2006-06-18  Jim Meyering  <jim@meyering.net>
67220
67221         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
67222         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
67223         macro.
67224         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
67225         also check for glibc-2.4's abort-inducing bug.
67226
67227         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
67228         Low-probability clean-up should be to use rmdir to get rid of
67229         the just-created directory, not unlink.
67230
67231         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
67232         configure fail, and request a bug report to inform us about it.
67233         Add a comment that, barring reports to the contrary, in 2007 we'll
67234         assume ftruncate is universally available.
67235
67236         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
67237
67238         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
67239
67240         2006-03-12  Jim Meyering  <jim@meyering.net>
67241
67242         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
67243         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
67244         * m4/same.m4 (gl_SAME): Likewise.
67245         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
67246
67247         2006-03-11  Eric Blake  <ebb9@byu.net>
67248
67249         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
67250         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
67251         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
67252         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
67253
67254 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67255
67256         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
67257         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
67258         reported by Mark D. Baushke, one in
67259         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
67260
67261         Merge from coreutils.
67262
67263         * lib/.cppi-disable: Add stdint_.h.
67264         * lib/.cvsignore: Add stdint.h.
67265
67266         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
67267
67268         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
67269         both double and long double versions.
67270         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
67271         * lib/xstrtold.c: New file.
67272         * lib/xstrtod.h (xstrtold): New decl.
67273
67274         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
67275
67276         * lib/filemode.c (setst): Remove.
67277         (strmode): Rewrite to avoid setst.  This makes the code shorter,
67278         (arguably) clearer, and the generated code is a bit smaller on my
67279         Debian GNU/Linux stable x86 host.
67280
67281         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
67282
67283         * lib/filemode.c: Include "filemode.h" first, to test the interface.
67284         Assume that filemode.h includes sys/types.h and sys/stat.h.
67285         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
67286         (ftypelet): Reorder to put common cases first, for efficiency.
67287         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
67288         to do 'M'.
67289         (strmode): Renamed from mode_string, and now stores 12 bytes instead
67290         of 10, for compatibility with FreeBSD.  All callers changed.
67291         (filemodestring): Now stores 12 bytes instead of 10, and sets file
67292         types that can't be deduced solely from st_mode.  First arg is now a
67293         const pointer.
67294         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
67295         (strmode): Renamed from mode_string.
67296         (filemodestring): New decl.
67297         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
67298         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
67299         needed.
67300         (S_ISPORT, S_ISWHT): New macros, if not already defined.
67301
67302         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
67303
67304         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
67305         fsusage.h now does that.  Include fsusage.h first, to test interface.
67306         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
67307         at most one method (the old code could have generated decls that
67308         didn't conform to C89, not that this was ever exercised).
67309         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
67310
67311         2006-03-19  Jim Meyering  <jim@meyering.net>
67312
67313         Work even in a chroot where d_ino values for entries in "/"
67314         don't match the stat.st_ino values for the same names.
67315         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
67316         number, iterate through all entries again, using lstat instead.
67317         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
67318         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
67319
67320         * lib/getcwd.c (__getcwd): Clarify a comment.
67321         Use memcpy in place of a call to strcpy.
67322
67323         2006-03-12  Jim Meyering  <jim@meyering.net>
67324
67325         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
67326         matches that of the current directory (which we're about to chdir ".."
67327         out of), then save the dev-ino of the parent, instead.
67328
67329         * lib/same-inode.h (SAME_INODE): New file/macro.
67330         * lib/chdir-safer.c (SAME_INODE): Remove definition.
67331         Include "same-inode.h", instead.
67332         * lib/same.c: Likewise.
67333         * lib/cycle-check.h: Include "same-inode.h".
67334         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
67335         * lib/cycle-check.c (SAME_INODE): Remove definition.
67336         * lib/root-dev-ino.h: Include "same-inode.h".
67337
67338         2006-03-11  Eric Blake  <ebb9@byu.net>
67339
67340         * lib/same.c (same_name): s/base_name/last_component/
67341         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
67342         * lib/filenamecat.c (file_name_concat): Likewise.
67343
67344         2006-03-11  Eric Blake  <ebb9@byu.net>,
67345                     Paul Eggert  <eggert@cs.ucla.edu>
67346
67347         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
67348         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
67349         drive prefix.
67350         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
67351         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
67352         (last_component): New method.
67353         * lib/dirname.c (dir_len): Determine when drive letters need a
67354         subsequent slash.  Preserve // when it is special.
67355         (dir_name): Don't append dot when drive letter is absolute.
67356         [TEST_DIRNAME]: Move into a full-blown gnulib test.
67357         * lib/basename.c (base_name): New semantics - malloc the result.
67358         Preserve // when it is special.  Preserve relative files that look
67359         like drive letters.
67360         (base_len): Preserve // when it is special.
67361         (last_component): New method, similar to old base_name semantics.
67362         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
67363         base_name.  Strip redundant slashes from ///.
67364
67365 2006-07-03  Jim Meyering  <jim@meyering.net>
67366
67367         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
67368         macro is used before the first cycle_check call.
67369
67370 2006-07-03  Eric Blake  <ebb9@byu.net>
67371
67372         * modules/dirname (Depends-on): Add xstrndup.
67373
67374 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
67375
67376         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
67377         test cases, so that config.log is a bit easier to follow.
67378
67379 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
67380
67381         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
67382         both are 64 bits, since this seems to be the tradition, and this
67383         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
67384         we ever run into a host that prefers long long to long in this
67385         case, we'll need another configure-time test.  Problem reported by
67386         Jim Meyering.
67387
67388 2006-07-02  Eric Blake  <ebb9@byu.net>
67389
67390         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
67391
67392 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
67393
67394         * modules/inttypes (Depends-on): No longer depends on stdint.
67395         * modules/stdint (Description): Say more about assumptions.
67396         Say that the fast types might differ.  Say macros are used.
67397         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
67398         (Makefile.am): Revise list of substituted symbols to match
67399         new stdint.m4.
67400         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
67401         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
67402         * tests/test-stdint.c (verify_same_types)
67403         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
67404         the code conforms to C99/C89.
67405         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
67406         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
67407
67408 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
67409
67410         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
67411         but fix a bug, by requiring at least 64 bits.
67412         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
67413         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
67414         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
67415         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
67416
67417         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
67418         changes.  Make 2.59 a prerequisite.  Check and substitute for
67419         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
67420         inttypes.h.  Do not use special include files; just use the
67421         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
67422         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
67423         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
67424         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
67425         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
67426         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
67427         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
67428         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
67429         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
67430         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
67431         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
67432         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
67433         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
67434         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
67435         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
67436         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
67437         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
67438         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
67439         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
67440         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
67441         WINT_MAX.  Check for C99 conformance more strictly, by detecting
67442         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
67443         not check for things that C99 does not require, e.g., int8_t.  If
67444         a test isn't needed unless <stdint.h> isn't working, and is
67445         unlikely to be needed for any other reason, then don't do it
67446         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
67447         size_t, since we assume C89 freestanding at least.  Do not check
67448         for sig_atomic_t, wchar_t, or wint_t, since the code now does
67449         the right thing even if the types are not defined.  Instead use:
67450         (gl_STDINT_TYPE_PROPERTIES): New macro.
67451         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
67452         testing whether <sys/types.h> clashes, as Autoconf does this for
67453         us now.  All uses removed.
67454         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
67455         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
67456         (gl_CHECK_TYPE_SAME):
67457         Remove; no longer needed.
67458         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
67459         exists, since we'll return 0 anyway in that case.
67460         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
67461
67462 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
67463
67464         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
67465         possible collision with system files.
67466         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
67467         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
67468         WCHAR_MIN and WCHAR_MAX in this case.
67469         (<stddef.h>): Do not include; no longer needed.
67470         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
67471         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
67472         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
67473         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
67474         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
67475         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
67476         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
67477         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
67478         !defined(__c99))]: Include in this case too, since it's harmless
67479         now.
67480         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
67481         dangerous to do so.
67482         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
67483         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
67484         (_STDINT_MIN, _STDINT_MAX): New macros.
67485         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
67486         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
67487         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
67488         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
67489         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
67490         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
67491         macros, not typedefs; this simplifies things quite a bit.
67492         Use long int for all types narrower than int64_t.
67493         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
67494         Define in terms of long long int or int64_t or long int,
67495         not int64_t or int32_t.  This saves some compile-time testing.
67496         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
67497         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
67498         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
67499         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
67500         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
67501         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
67502         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
67503         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
67504         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
67505         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
67506         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
67507         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
67508         undef any previous version and define our own version, for
67509         simplicity and consistency with the new macros for types.
67510         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
67511         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
67512         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
67513         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
67514         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
67515         @WINT_T_SUFFIX@ to keep things simple here.
67516         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
67517         Simplify by assuming typical 8/16/32/64 host, since we're
67518         already doing that elsewhere anyway.
67519         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
67520         and assume long long int is 64 bits if available.  This
67521         speeds up 'configure'.
67522
67523 2006-07-01  Eric Blake  <ebb9@byu.net>
67524
67525         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
67526         Reported by Andreas Buening.
67527
67528 2006-07-01  Eric Blake  <ebb9@byu.net>
67529
67530         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
67531
67532 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
67533
67534         * lib/getaddrinfo.c: fixed typo
67535
67536 2006-06-29  Jim Meyering  <jim@meyering.net>
67537
67538         * modules/strftime (Maintainer): Add my name, since with the
67539         FPRINTFTIME changes strftime.c has forked from glibc.
67540
67541 2006-06-29  Eric Blake  <ebb9@byu.net>
67542
67543         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
67544
67545 2006-06-29  Eric Blake  <ebb9@byu.net>
67546
67547         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
67548
67549 2006-06-29  Eric Blake  <ebb9@byu.net>
67550
67551         * lib/stat_.h: New file.
67552
67553 2006-06-29  Eric Blake  <ebb9@byu.net>
67554
67555         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
67556         unused static function.
67557
67558 2006-06-29  Eric Blake  <ebb9@byu.net>
67559
67560         * doc/functions.texi (Function Portability): Document missing lstat
67561         on mingw.
67562
67563 2006-06-29  Eric Blake  <ebb9@byu.net>
67564
67565         * MODULES.html.sh: Add sys_stat.
67566         * modules/sys_stat: New module.
67567         * modules/mkstemp (Depends-on): Add sys_stat.
67568
67569 2006-06-29  Derek R. Price  <derek@ximbiot.com>
67570
67571         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
67572
67573 2006-06-29  Derek R. Price  <derek@ximbiot.com>
67574
67575         * m4/c-bs-a.m4: Removed.
67576
67577 2006-06-29  Derek R. Price  <derek@ximbiot.com>
67578
67579         * lib/strftime.c: Assume strftime() exists.
67580
67581 2006-06-29  Derek Price  <derek@ximbiot.com>
67582
67583         * modules/c-bs-a: Removed - \a is C89.
67584         * MODULES.html.sh: Remove c-bs-a.
67585
67586 2006-06-29  Bruno Haible  <bruno@clisp.org>
67587
67588         * modules/wcwidth (License): Change to LGPL.
67589
67590 2006-06-28  Simon Josefsson  <jas@extundo.com>
67591
67592         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
67593         on _WIN32.
67594
67595         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
67596         getnameinfo.
67597
67598 2006-06-28  Simon Josefsson  <jas@extundo.com>
67599
67600         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
67601
67602 2006-06-28  Simon Josefsson  <jas@extundo.com>
67603
67604         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
67605         functions there.  It will succeed on Windows XP, but on Windows
67606         2000 and (presumably) earlier, it will fail, and use the internal
67607         re-implementation.
67608         (use_win32_p): New function.
67609         (getaddrinfo): Use strtoul on servname, to support numeric ports.
67610         Support AI_NUMERICSERV to disable getservbyname.
67611         (getnameinfo): New function, only supports
67612         NI_NUMERICHOST|NI_NUMERICSERV for now.
67613
67614         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
67615         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
67616         getnameinfo.
67617
67618 2006-06-28  Eric Blake  <ebb9@byu.net>
67619
67620         * modules/wcwidth: New file.
67621         * modules/mbchar (Depends-on): Add wcwidth.
67622         * modules/mbswidth (Depends-on): Add wcwidth.
67623         * MODULES.html.sh: Add wcwidth.
67624
67625 2006-06-28  Eric Blake  <ebb9@byu.net>
67626
67627         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
67628         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
67629
67630 2006-06-28  Eric Blake  <ebb9@byu.net>
67631
67632         * lib/xvasprintf.h: Fix comments.
67633
67634 2006-06-28  Eric Blake  <ebb9@byu.net>
67635
67636         * lib/mbchar.h (wcwidth): Include wcwidth.h.
67637         * lib/mbswidth.c (wcwidth): Move from here...
67638         * lib/wcwidth.h: ...to this new file.
67639
67640 2006-06-28  Derek R. Price  <derek@ximbiot.com>
67641
67642         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
67643
67644         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
67645         it's obsolete.
67646         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
67647
67648 2006-06-28  Derek R. Price  <derek@ximbiot.com>
67649
67650         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
67651         Autoconf 2.60 says this stuff was obsolete.
67652
67653 2006-06-28  Bruno Haible  <bruno@clisp.org>
67654
67655         * modules/wcwidth (Files): Add m4/wchar_t.m4.
67656
67657 2006-06-28  Bruno Haible  <bruno@clisp.org>
67658
67659         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
67660         gt_TYPE_WCHAR_T.
67661
67662 2006-06-28  Bruno Haible  <bruno@clisp.org>
67663
67664         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
67665         declaration for wcwidth.
67666         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
67667
67668 2006-06-28  Bruno Haible  <bruno@clisp.org>
67669
67670         * lib/mkdtemp.c [MINGW]: Include <io.h>.
67671         (mkdir): Define using _mkdir.
67672
67673 2006-06-28  Bruno Haible  <bruno@clisp.org>
67674
67675         * lib/getaddrinfo.h: Fix POSIX URL.
67676         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
67677         _WIN32.
67678         (use_win32_p): Make static.
67679         (getaddrinfo): Reject service name if it is empty or does not consist
67680         solely of decimal digits, or if its value is > 65535.
67681         (getnameinfo): Remove useless casts.
67682
67683 2006-06-27  Simon Josefsson  <jas@extundo.com>
67684
67685         * modules/sys_select: New file, suggested by Bruno Haible, Paul
67686         Eggert and Martin Lambers.
67687
67688 2006-06-27  Simon Josefsson  <jas@extundo.com>
67689
67690         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
67691         Eggert and Martin Lambers.
67692
67693 2006-06-27  Bruno Haible  <bruno@clisp.org>
67694
67695         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
67696         result to 0, not to empty.
67697         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
67698
67699 2006-06-27  Bruno Haible  <bruno@clisp.org>
67700
67701         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
67702
67703 2006-06-26  Simon Josefsson  <jas@extundo.com>
67704
67705         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
67706         present.
67707
67708 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
67709
67710         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
67711         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
67712         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
67713
67714 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
67715
67716         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
67717
67718 2006-06-26  Bruno Haible  <bruno@clisp.org>
67719
67720         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
67721
67722 2006-06-26  Bruno Haible  <bruno@clisp.org>
67723
67724         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
67725
67726 2006-06-26  Bruno Haible  <bruno@clisp.org>
67727
67728         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
67729         SGI C compiler in pre-C99 mode.
67730         Suggested by Mark D. Baushke and Larry Jones.
67731
67732 2006-06-26  Bruno Haible  <bruno@clisp.org>
67733
67734         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
67735         WCHAR_MAX.
67736         Reported by Mark D. Baushke and Larry Jones.
67737
67738 2006-06-26  Bruno Haible  <bruno@clisp.org>
67739
67740         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
67741         in pre-C99 mode.
67742         Suggested by Mark D. Baushke and Larry Jones.
67743
67744 2006-06-23  Simon Josefsson  <jas@extundo.com>
67745             Bruno Haible  <bruno@clisp.org>
67746
67747         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
67748         Emit mostlyclean-local rule.
67749         (func_emit_tests_Makefile_am): Likewise.
67750         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
67751
67752 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
67753
67754         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
67755
67756 2006-06-23  Bruno Haible  <bruno@clisp.org>
67757
67758         * tests/test-stdint.c: Update to match ISO C 99 Technical
67759         Corrigendum 1.
67760
67761 2006-06-23  Bruno Haible  <bruno@clisp.org>
67762
67763         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
67764
67765 2006-06-23  Bruno Haible  <bruno@clisp.org>
67766
67767         * lib/stdint_.h: Treat IRIX like OpenBSD.
67768
67769 2006-06-23  Bruno Haible  <bruno@clisp.org>
67770
67771         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
67772         ISO C 99 Technical Corrigendum 1.
67773
67774 2006-06-22  Simon Josefsson  <jas@extundo.com>
67775
67776         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
67777         MinGW.
67778
67779 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
67780
67781         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
67782         needed.  Some compiler complained about some of them.  Problem reported
67783         by Larry Jones in
67784         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
67785
67786 2006-06-21  Simon Josefsson  <jas@extundo.com>
67787
67788         * tests/test-getaddrinfo.c: New file.
67789
67790         * modules/getaddrinfo-tests: New file.
67791
67792         * MODULES.html.sh: Add inet_pton.
67793
67794         * modules/inet_pton: New file.
67795
67796 2006-06-21  Simon Josefsson  <jas@extundo.com>
67797
67798         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
67799         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
67800         of using the (limited) gnulib implementation on Windows XP.
67801
67802         * m4/inet_pton.m4: New file.
67803
67804 2006-06-21  Simon Josefsson  <jas@extundo.com>
67805
67806         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
67807         variable.
67808
67809         * lib/socket_.h: Don't define WINVER.
67810
67811         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
67812         slightly modified to work in gnulib.
67813
67814 2006-06-21  Simon Josefsson  <jas@extundo.com>
67815
67816         * doc/gnulib.texi (Windows sockets): Add.
67817
67818 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
67819
67820         * lib/read-file.c (fread_file): Start with buffer allocation of
67821         0 bytes rather than 1 byte; this simplifies the code.
67822         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
67823         code to free buffer and save/restore errno.
67824         (internal_read_file): Remove unused local.
67825
67826 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
67827
67828         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
67829         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
67830         Problem reported by Denis Excoffier in
67831         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
67832
67833 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67834
67835         * modules/sys_socket, modules/socklen: Include sys/types since
67836         FreeBSD 4.x's sys/socket.h needs it.
67837
67838 2006-06-19  Simon Josefsson  <jas@extundo.com>
67839
67840         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
67841
67842 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
67843
67844         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
67845
67846 2006-06-19  Bruno Haible  <bruno@clisp.org>
67847
67848         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
67849         and FULL_PATH_INTTYPES_H in angle brackets.
67850         Reported by Mark D. Baushke <mdb@gnu.org>.
67851
67852 2006-06-17  Eric Blake  <ebb9@byu.net>
67853
67854         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
67855         errno.
67856
67857 2006-06-17  Bruno Haible  <bruno@clisp.org>
67858
67859         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
67860         <sys/inttypes.h>.
67861
67862 2006-06-17  Bruno Haible  <bruno@clisp.org>
67863
67864         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
67865         whether errno is declared. Assume <errno.h> declares errno.
67866
67867 2006-06-17  Bruno Haible  <bruno@clisp.org>
67868
67869         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
67870
67871 2006-06-17  Bruno Haible  <bruno@clisp.org>
67872
67873         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
67874         problem on Solaris 2.5.1.
67875
67876 2006-06-16  Eric Blake  <ebb9@byu.net>
67877
67878         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
67879         * lib/unicodeio.c [!defined errno]: Likewise.
67880         * lib/strtol.c [!defined errno]: Likewise.
67881         * lib/strtod.c [!defined errno]: Likewise.
67882
67883 2006-06-15  Eric Blake  <ebb9@byu.net>
67884
67885         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
67886
67887 2006-06-15  Eric Blake  <ebb9@byu.net>
67888
67889         * config/srclist.txt (ssize_t.m4): Lose sync.
67890
67891 2006-06-15  Bruno Haible  <bruno@clisp.org>
67892
67893         * modules/stdint (Files): Include m4/full-header-path.m4,
67894         m4/size_max.m4, m4/wchar_t.m4.
67895         (Makefile.am): Many more substitutions.
67896         * modules/stdint-tests: New file.
67897         * tests/test-stdint.c: New file.
67898
67899 2006-06-15  Bruno Haible  <bruno@clisp.org>
67900
67901         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
67902         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
67903         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
67904         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
67905         gl_CHECK_TYPE_SAME): New macros.
67906
67907 2006-06-15  Bruno Haible  <bruno@clisp.org>
67908
67909         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
67910
67911 2006-06-15  Bruno Haible  <bruno@clisp.org>
67912
67913         * lib/stdint_.h: Rewritten to be fully auto-configured.
67914         Fixes bug on HP-UX/IA64.
67915
67916 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
67917
67918         * lib/getdate.y (__attribute__): Don't define if already defined.
67919         Problem reported by Larry Jones.
67920         * lib/utimens.c (__attribute__): Likewise.
67921
67922 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
67923
67924         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
67925         reported by Andreas Schwab.
67926
67927 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67928             Bruno Haible  <bruno@clisp.org>
67929
67930         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
67931         check for the declaration of strnlen and a run test that exposes the
67932         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
67933         rpl_strndup.
67934
67935 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67936             Bruno Haible  <bruno@clisp.org>
67937
67938         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
67939
67940 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67941
67942         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
67943         compile test, for Tru64 4.0D.
67944
67945 2006-05-28  Karl Berry  <karl@gnu.org>
67946
67947         * config/srclist.txt (printf-args.c): lose sync.
67948
67949 2006-05-26  Martin Lambers  <marlam@marlam.de>
67950
67951         * lib/getpass.c: Updates the test for the native W32 API, and adds
67952         missing includes, thus fixing compilation warnings.
67953
67954 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
67955
67956         * lib/exclude.c (exclude_fnmatch): New function.
67957         (excluded_file_name): Call exclude_fnmatch.
67958         * lib/exclude.h (excluded_file_name): New prototype
67959
67960 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
67961
67962         * lib/tempname.c (small_open, large_open): New macros.
67963         (__open, __open64) [!_LIBC]: Remove.
67964         (__gen_tempname): Use small_open and large_open instead of __open
67965         and __open64.  This fixes a portability bug on HP-UX 11.11i
67966         reported by Simon Wing-Tang in
67967         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
67968
67969 2006-05-24  Bruno Haible  <bruno@clisp.org>
67970
67971         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
67972         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
67973         Reported by Thorsten Maerz <torte@netztorte.de> via
67974         Aaron Stone <aaron@serendipity.cx>.
67975
67976 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
67977
67978         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
67979         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
67980         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
67981         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
67982         not really conditional on the cache.
67983         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
67984
67985 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
67986
67987         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
67988         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
67989         (my_usleep): Don't mishandle maximum value.
67990
67991 2006-05-19  Jim Meyering  <jim@meyering.net>
67992
67993         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
67994
67995 2006-05-17  Bruno Haible  <bruno@clisp.org>
67996
67997         Cygwin portability.
67998         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
67999
68000 2006-05-17  Bruno Haible  <bruno@clisp.org>
68001
68002         * lib/stdint_.h: Fix recognition of Cygwin.
68003
68004 2006-05-15  Bruno Haible  <bruno@clisp.org>
68005
68006         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
68007         on libtool patch by Ralf Wildenhues.
68008
68009 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
68010
68011         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
68012         test for C99 conformance; (bool) 0.5 is an integer constant
68013         expression, but (bool) -0.5 is not.  Problem reported by Fedor
68014         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
68015
68016 2006-05-11  Simon Josefsson  <jas@extundo.com>
68017
68018         * m4/xvasprintf.m4: Fix obvious typo.
68019
68020 2006-05-11  Jim Meyering  <jim@meyering.net>
68021
68022         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
68023         James Lemley.
68024
68025 2006-05-10  Simon Josefsson  <jas@extundo.com>
68026
68027         * lib/md4.c: Typo fix, update copyright years.
68028         (K1, K2): Don't use L because it turn computations into 64-bit on
68029         64-bit platforms.
68030
68031 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
68032
68033         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
68034         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
68035         unwanted sign propagation, e.g., on hosts with 64-bit int.
68036         There still are some problems with reeelly weird theoretical hosts
68037         (e.g., 33-bit int) but it's not worth worrying about now.
68038         * lib/sha1.c (rol): Likewise.
68039         (K1, K2, K3, K4): Remove unnecessary L suffix.
68040
68041 2006-05-10  Bruno Haible  <bruno@clisp.org>
68042
68043         * lib/des.c: Cast to avoid warnings.
68044
68045 2006-05-09  Bruno Haible  <bruno@clisp.org>
68046
68047         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
68048         (Depends-on): Depend also on xsize, stdarg.
68049         (configure.ac): Add gl_XVASPRINTF.
68050
68051 2006-05-09  Bruno Haible  <bruno@clisp.org>
68052
68053         * m4/xvasprintf.m4: New file.
68054
68055 2006-05-09  Bruno Haible  <bruno@clisp.org>
68056
68057         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
68058         (EOVERFLOW): Define fallback value.
68059         (xstrcat): New function.
68060         (xvasprintf): Recognize the special case of a string concatenation.
68061
68062 2006-05-08  Eric Blake  <ebb9@byu.net>
68063
68064         * gnulib-tool (func_version): Base copyright year on CVS date.
68065         (func_emit_copyright_notice): New function.
68066         (func_emit_lib_Makefile_am): Use it.
68067         (func_emit_tests_Makefile_am): Likewise.
68068         (func_import): Likewise.
68069
68070 2006-05-08  Bruno Haible  <bruno@clisp.org>
68071
68072         * modules/stdarg: New file.
68073         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
68074
68075 2006-05-08  Bruno Haible  <bruno@clisp.org>
68076
68077         * m4/stdarg.m4: New file, from GNU gettext.
68078
68079 2006-05-08  Bruno Haible  <bruno@clisp.org>
68080
68081         * config/srclist.txt (build-aux/config.rpath): different from latest
68082         release.
68083
68084 2006-05-08  Bruno Haible  <bruno@clisp.org>
68085
68086         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
68087
68088 2006-05-05  Jim Meyering  <jim@meyering.net>
68089
68090         * m4/warning.m4: New file, derived from bison's file by the same name.
68091
68092 2006-05-03  Bruno Haible  <bruno@clisp.org>
68093
68094         * lib/stdint_.h: Shorter URL.
68095         * lib/inttypes.h: Likewise.
68096
68097 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
68098
68099         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
68100
68101 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
68102
68103         * lib/verify.h: Document the internals better.  Most of this change
68104         was written by Bruno Haible.
68105
68106 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
68107
68108         * doc/verify.texi: New file, partly based on a proposal by
68109         Bruno Haible.
68110
68111 2006-05-02  Bruno Haible  <bruno@clisp.org>
68112
68113         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
68114         test from here...
68115         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
68116
68117 2006-04-29  Bruno Haible  <bruno@clisp.org>
68118
68119         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
68120         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
68121
68122 2006-04-29  Bruno Haible  <bruno@clisp.org>
68123
68124         * gnulib-tool: Make --update option actually work.
68125
68126 2006-04-29  Bruno Haible  <bruno@clisp.org>
68127
68128         * doc/gcd.texi: New file.
68129         * doc/gnulib.texi: Include it.
68130
68131 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
68132
68133         * lib/getdate.y (get_date): When adding relative date, start with the
68134         initial time, not with the result of the first mktime call.
68135
68136 2006-04-25  Bruno Haible  <bruno@clisp.org>
68137
68138         * gnulib-tool (func_import): Output the include directives in three
68139         blocks, sorted separately.
68140         Reported by Ben Pfaff <blp@cs.stanford.edu>.
68141
68142 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
68143
68144         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
68145         to define main with arguments, for C++.  Reported by Eric Blake.
68146         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
68147         Prefer 'int main ()' to 'int main (void)', for C++.
68148         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
68149         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
68150         for 'main', for C99 and C++.
68151
68152 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
68153
68154         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
68155         Don't assume that exit status -1 is valid.
68156         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
68157         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
68158         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
68159         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
68160         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
68161         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
68162         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
68163         functions can be used without declaring them, or that you can
68164         exit with status -1.
68165         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
68166
68167 2006-04-24  Karl Berry  <karl@gnu.org>
68168
68169         * config/srclist.txt (longdouble.m4): sync lost.
68170
68171 2006-04-24  Eric Blake  <ebb9@byu.net>
68172
68173         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
68174
68175 2006-04-24  Bruno Haible  <bruno@clisp.org>
68176
68177         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
68178         poll() implementation in AIX.
68179         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68180
68181 2006-04-24  Bruno Haible  <bruno@clisp.org>
68182
68183         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
68184         assigned exactly once.
68185
68186 2006-04-23  Claudio Fontana  <claudio@gnu.org>
68187             Bruno Haible  <bruno@clisp.org>
68188
68189         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
68190         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
68191         for AM_CPPFLAGS.
68192
68193 2006-04-23  Bruno Haible  <bruno@clisp.org>
68194
68195         * modules/copy-file: Depend on unistd.
68196         * modules/execute: Likewise.
68197         * modules/fatal-signal: Likewise.
68198         * modules/findprog: Likewise.
68199         * modules/mkdtemp : Likewise.
68200         * modules/pipe: Likewise.
68201         * modules/wait-process: Likewise.
68202
68203 2006-04-23  Bruno Haible  <bruno@clisp.org>
68204
68205         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
68206         condition was already detected.
68207         Reported by Ben Pfaff <blp@cs.stanford.edu>.
68208
68209 2006-04-23  Bruno Haible  <bruno@clisp.org>
68210
68211         * lib/copy-file.c: Include <unistd.h> unconditionally.
68212         * lib/execute.c: Likewise.
68213         * lib/fatal-signal.c: Likewise.
68214         * lib/findprog.c: Likewise.
68215         * lib/mkdtemp.c: Likewise.
68216         * lib/pipe.h: Likewise.
68217         * lib/pipe.c: Likewise.
68218         * lib/wait-process.h: Likewise.
68219
68220 2006-04-23  Bruno Haible  <bruno@clisp.org>
68221
68222         * gnulib-tool (func_usage): Fix --import description. Document
68223         --update.
68224         (func_import): Create temporary file in a temporary directory, if
68225         --dry-run is specified. Silence errors from 'grep' when there are no
68226         m4 files in $m4dir.
68227         (func_create_testdir): Silence errors from 'grep' when there are no
68228         m4 files in $m4dir.
68229         Reported by Karl Berry <karl@freefriends.org>.
68230
68231 2006-04-20  Bruno Haible  <bruno@clisp.org>
68232
68233         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
68234         one argument, so that the code will be portable to Autoconf 2.60.
68235         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
68236         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
68237         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
68238
68239 2006-04-19  Derek Price  <derek@ximbiot.com>
68240             Eric Blake  <ebb9@byu.net>
68241
68242         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
68243         rather than "/full/path.h".  Update comment to match.  Shorten &
68244         generalize m4_translit call via AS_TR_CPP.
68245
68246 2006-04-19  Derek Price  <derek@ximbiot.com>
68247             Eric Blake  <ebb9@byu.net>
68248
68249         * lib/inttypes.h: Correct grammar in comment.
68250
68251 2006-04-18  Derek Price  <derek@ximbiot.com>
68252             Paul Eggert  <eggert@cs.ucla.edu>
68253
68254         * modules/inttypes: New file.
68255         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
68256
68257 2006-04-18  Derek Price  <derek@ximbiot.com>
68258             Paul Eggert  <eggert@cs.ucla.edu>
68259
68260         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
68261         New files.
68262
68263 2006-04-18  Derek Price  <derek@ximbiot.com>
68264             Paul Eggert  <eggert@cs.ucla.edu>
68265
68266         * lib/inttypes.h: New file.
68267         * lib/strtoimax.c: Assume <inttypes.h>.
68268
68269 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
68270
68271         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
68272         isn't mounted.  Problem reported by Kir Kolyshkin.
68273
68274 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
68275
68276         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
68277         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
68278         Derek R. Price.
68279         * lib/regex.h (RE_DUP_MAX): Update comment to match current
68280         implementation.
68281
68282 2006-04-12  Eric Blake  <ebb9@byu.net>
68283
68284         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
68285         is now done automatically by the corresponding Autoconf macro.
68286
68287 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
68288
68289         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
68290         time_r.h.
68291
68292 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
68293
68294         Merge regex changes from libc, removing some of our
68295         POSIX-conformance changes that were rejected and redoing them in a
68296         less-intrusive way.
68297
68298         * lib/regcomp.c (re_compile_internal, init_dfa):
68299         Length arg is now size_t, not Idx.  All uses changed.
68300         (peek_token): Forward decl now says internal_function.
68301         (__re_error_msgid, __re_error_msgid_idx):
68302         Now static rather than extern with attribute_hidden.
68303         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
68304         For some reason libc prefers K&R style defns for external functions.
68305         (regerror) [!defined _LIBC]: Likewise.
68306         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
68307         (seek_collating_symbol_entry, lookup_collation_sequence_value):
68308         (build_range_exp, build_collating_symbol):
68309         Use K&R-style defn.
68310         (re_compile_fastmap): Use '\0' to memset, not 0.
68311         (utf8_sb_map): Make the calculations more obvious.
68312         (init_dfa, parse_bracket_exp, build_charclass_op):
68313         Call calloc and cast result, as glibc does.
68314         (init_word_char, fetch_token, peek_token, peek_token_bracket):
68315         (build_range_exp, build_collating_symbol):
68316         Now internal functions.
68317
68318         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
68319
68320         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
68321         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
68322         Don't depend on VMS; depend on __VMS instead, for POSIX
68323         namespace cleanness.
68324         (regoff_t): Define to ssize_t, not long int.
68325
68326         Remove the REG_ macros named below.  Instead, make the old names
68327         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
68328         __USE_GNU_REGEX.
68329         (REG_BACKSLASH_ESCAPE_IN_LISTS):
68330         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
68331         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
68332         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
68333         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
68334         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
68335         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
68336         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
68337         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
68338         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
68339         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
68340         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
68341         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
68342         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
68343         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
68344         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
68345         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
68346         (REG_NREGS):
68347         Remove.  All uses replaced by the old RE_* names.
68348         (RE_BACKSLASH_ESCAPE_IN_LISTS):
68349         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
68350         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
68351         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
68352         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
68353         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
68354         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
68355         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
68356         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
68357         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
68358         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
68359         Don't bother having these macros be independent of each others'
68360         values, since they no longer exist in the POSIX name space.
68361
68362         Rename the following member names back to their old names,
68363         unless !__USE_GNU_REGEX.  All uses changed back.
68364         (buffer): Renamed from re_buffer.
68365         (allocated): Renamed from re_allocated.
68366         (used): Renamed from re_used.
68367         (syntax): Renamed from re_syntax.
68368         (fastmap): Renamed from re_fastmap.
68369         (translate): Renamed from re_translate.
68370         (can_be_null): Renamed from re_can_be_null.
68371         (regs_allocated): Renamed from re_regs_allocated.
68372         (fastmap_accurate): Renamed from re_fastmap_accurate.
68373         (no_sub): Renamed from re_no_sub.
68374         (not_bol): Renamed from re_not_bol.
68375         (not_eol): Renamed from re_not_eol.
68376         (newline_anchor): Renamed from re_newline_anchor.
68377         (num_regs): Renamed from rm_num_regs.
68378         (start): Renamed from rm_start.
68379         (end): Renamed from rm_end.
68380
68381         (free_state): Move up a bit.
68382
68383         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
68384         #define to be empty.
68385         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
68386         when that is what is intended.
68387         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
68388         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
68389         (MAX): New macro.
68390         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
68391         All uses changed back to re_malloc, etc.  It's now the caller's
68392         responsibility to check for overflow; all callers changed.
68393         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
68394         (re_x2nrealloc): Remove.
68395         (free_state): Remove decl.
68396
68397         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
68398         (re_set_registers, re_exec):
68399         Use K&R-style defn.
68400
68401         2006-01-31  Roland McGrath  <roland@redhat.com>
68402
68403         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
68404         Reported by Mike Frysinger <vapier@gentoo.org>.
68405
68406         2006-01-15  Andreas Jaeger  <aj@suse.de>
68407
68408         [BZ #1950]
68409         * lib/regex_internal.c (re_string_reconstruct): Adjust for
68410         build_wcs_upper_buffer change.
68411         (build_wcs_upper_buffer): Change return type.
68412
68413         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
68414
68415         * lib/regex_internal.h: Include <stdint.h> if available.
68416
68417         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
68418
68419         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
68420
68421         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
68422
68423         * lib/regcomp.c: Adjust for changed secondary hash function.
68424
68425         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
68426
68427         * lib/regex.h: Pretty printing.
68428         Clean up namespace a bit.
68429
68430         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
68431
68432         * lib/regexec.c (update_cur_sifted_state, check_arrival,
68433         check_arrival_add_next_nodes): Avoid using uninitialized variable.
68434
68435         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
68436                     Ulrich Drepper  <drepper@redhat.com>
68437
68438         [BZ #1302]
68439         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
68440         changed.
68441         (bitset_word_t): Renamed from bitset_word.  All uses changed.
68442
68443         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
68444
68445         [BZ #281]
68446         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
68447         * lib/regcomp.c: Remove unnecessary uses of
68448         unsigned RE_TRANSLATE_TYPE.
68449         * lib/regex_internal.h: Likewise.
68450         * lib/regex_internal.c: Likewise.
68451         * lib/regexec.c: Likewise.
68452         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
68453
68454         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
68455
68456         * lib/regexec.c (find_recover_state): Remove unnecessary
68457         initialization.
68458         (transit_state_bkref): Make DFA a const pointer.
68459         (get_subexp): Likewise.
68460         (check_arrival): Likewise.
68461         (update_cur_sifted_state): Likewise.
68462         (re_search_internal): Likewise.
68463         (prune_impossible_nodes): Likewise.
68464         (acquire_init_state_context): Likewise.
68465         (proceed_next_node): Likewise.
68466         (set_regs): Likewise.
68467         (free_fail_stack_return): Likewise.
68468         (check_arrival_expand_ecl): Mark DFA parameter as const.
68469         (check_arrival_expand_ecl_sub): Likewise.
68470         (check_subexp_limits): Likewise.
68471         (sub_epsilon_src_nodes):  Likewise.
68472         (add_epsilon_src_nodes):  Likewise.
68473         (merge_state_array): Likewise.
68474         (update_regs): Likewise.
68475         (build_trtable): Likewise.
68476         (sift_states_backward): Mark MCTX parameter as const.
68477         (build_sifted_states): Likewise.
68478         (update_cur_sifted_state): Likewise.
68479         (sift_states_mkref): Likewise.
68480         (check_arrival_expand_ecl): Mark eclosure as const.
68481         (check_dst_limits_calc_pos_1): Likewise.
68482         * lib/regex_internal.h (re_match_context_t): Make dfa a const
68483         pointer.
68484
68485         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
68486
68487         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
68488         (transit_state_sb): Likewise.
68489         (transit_state_mb): Likewise.
68490         (sift_states_iter_mb): Likewise.
68491         (check_arrival_add_next_nodes): Likewise.
68492         (check_node_accept_bytes): Change first parameter to pointer-to-const.
68493         [_LIBC] (re_search_2_stub): Use mempcpy.
68494
68495         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
68496         mbrtowc for very simple UTF-8 case.
68497
68498         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
68499         a pointer-to-const.
68500         (re_acquire_state_context): Likewise.
68501         * lib/regex_internal.h: Adjust prototypes.
68502
68503         * lib/regex.c: Prevent using C++ compilers.
68504
68505         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
68506         (re_acquire_state_context): Likewise.
68507
68508 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
68509
68510         * modules/regex (Depends-on): Add ssize_t.
68511
68512 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
68513
68514         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
68515         translation table.
68516
68517 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
68518
68519         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
68520
68521 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
68522             Bruno Haible  <bruno@clisp.org>
68523
68524         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
68525         <sys/types.h> and <inttypes.h>.
68526
68527 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68528
68529         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
68530         `__error_t_defined', so argp.h will not typedef the former.
68531
68532 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
68533
68534         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
68535         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
68536         glibc names.  Even if glibc is changed to conform to POSIX, the
68537         traditional names will be available anyway, since regex depends on
68538         the extensions module.  Also, fix a longstanding typo in the
68539         implementation of Spencer ERE test #75 from grep 2.3.  Problems
68540         reported by Emanuele Giaquinta.  Also, change sense of cached
68541         variable, so that the message makes sense.
68542
68543 2006-03-24  Simon Josefsson  <jas@extundo.com>
68544
68545         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
68546         including some doc fixes.
68547         (base64_encode_alloc): Fix +1 bug on allocation failures.
68548
68549 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68550
68551         * lib/base64.c (base64_encode): Do not read past end of array with
68552         unsanitized input on systems with CHAR_BIT > 8.
68553
68554 2006-03-24  Eric Blake  <ebb9@byu.net>
68555
68556         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
68557
68558 2006-03-22  Karl Berry  <karl@gnu.org>
68559
68560         * config/srclist.txt (*setenv.[ch]): get from coreutils.
68561         * config/srclistvars.sh (COREUTILS): new var.
68562
68563 2006-03-17  Jim Meyering  <jim@meyering.net>
68564
68565         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
68566         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
68567
68568 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
68569
68570         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
68571         no longer needs it.  Instead, check that regoff_t is as least
68572         as wide as ptrdiff_t.
68573
68574         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
68575         so that our regex.h stays compatible with the installed regex.
68576         This is helpful for installers who configure --without-included-regex.
68577         Problem reported by Emanuele Giaquinta.
68578
68579 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
68580
68581         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
68582         Typedef to long int, not to off_, as POSIX will likely change
68583         in that direction.
68584
68585 2006-03-15  Eric Blake  <ebb9@byu.net>
68586
68587         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
68588
68589 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
68590
68591         * lib/argp-help.c (validate_uparams): Fix typo
68592         * lib/argp-parse.c (argp_default_options): Consistently begin help
68593         messages with a lowercase letter.
68594
68595 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
68596
68597         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
68598         overrun buffers and shouldn't be used (much as gets shouldn't be
68599         used).
68600         * lib/time_r.c (asctime_r, ctime_r): Likewise.
68601
68602 2006-03-08  Simon Josefsson  <jas@extundo.com>
68603
68604         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
68605         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68606
68607 2006-03-08  Simon Josefsson  <jas@extundo.com>
68608
68609         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
68610         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68611
68612 2006-03-08  Simon Josefsson  <jas@extundo.com>
68613
68614         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
68615         signal that configure disabled the device.
68616
68617 2006-03-08  Simon Josefsson  <jas@extundo.com>
68618
68619         * build-aux/maint.mk: Fix refresh-po, to handle no translated
68620         languages.
68621
68622 2006-03-07  Simon Josefsson  <jas@extundo.com>
68623
68624         * modules/getopt (Depends-on): Add unistd.
68625
68626         * modules/unistd: New file.
68627
68628 2006-03-07  Simon Josefsson  <jas@extundo.com>
68629
68630         * modules/gc-random: New file.
68631
68632 2006-03-07  Simon Josefsson  <jas@extundo.com>
68633
68634         * m4/unistd_h.m4: New file.
68635
68636 2006-03-07  Simon Josefsson  <jas@extundo.com>
68637
68638         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
68639         test to be side-effect free by storing the result in the cache
68640         variable gl_cv_lib_readline, and moving the assignment of
68641         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
68642         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68643
68644 2006-03-07  Simon Josefsson  <jas@extundo.com>
68645
68646         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
68647         error on missing devices (the functions will return an error).
68648
68649         * m4/gc.m4: Move random stuff to gc-random.m4
68650
68651 2006-03-07  Simon Josefsson  <jas@extundo.com>
68652
68653         * lib/unistd_.h: New file.
68654
68655 2006-03-07  Simon Josefsson  <jas@extundo.com>
68656
68657         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
68658
68659 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
68660
68661         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
68662         Problem reported by Juan Manuel Guerrero.
68663
68664 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
68665
68666         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
68667         the unistd module.
68668         * lib/getlogin_r.c: Likewise.
68669         * lib/getlogin_r.h: Likewise.
68670         * lib/glob.c: Likewise.
68671         * lib/pagealign_alloc.c: Likewise.
68672         * lib/unistd_.h: Remove; no longer needed.
68673
68674 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
68675
68676         * MODULES.html.sh (Support for systems lacking POSIX:2001):
68677         Add unistd.
68678         * modules/c-stack (Depends-on): Add unistd.
68679         * modules/getlogin_r: Likewise.
68680         * modules/glob: Likewise.
68681         * modules/pagealign_alloc: Likewise.
68682         * modules/unistd (Files): Remove lib/unistd_.h.
68683         (EXTRA_DIST): Remove.
68684         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
68685         need unistd_.h.
68686         (MOSTLYCLEANFILES): Remove unistd.h-t.
68687
68688 2006-03-03  Simon Josefsson  <jas@extundo.com>
68689
68690         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
68691
68692 2006-03-03  Simon Josefsson  <jas@extundo.com>
68693
68694         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
68695         libidn and bison.
68696
68697 2006-03-03  Simon Josefsson  <jas@extundo.com>
68698
68699         * build-aux/maint.mk: Add indent target.
68700
68701 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
68702
68703         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
68704         our replacement poll.h in any case, to avoid a differing
68705         declaration from a system header.  Seen on AIX.
68706
68707 2006-03-01  Simon Josefsson  <jas@extundo.com>
68708
68709         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
68710         <kasal@ucw.cz>.
68711
68712 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68713
68714         * modules/gettime (Depends-on): Add extensions module.
68715         * modules/nanosleep (Depends-on): Likewise.
68716         * modules/settime (Depends-on): Likewise.
68717
68718 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68719
68720         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
68721         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
68722         pedantically.
68723         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
68724         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
68725
68726         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
68727         not "==".  Reported by Ralf Wildenhues.
68728
68729 2006-03-01  Karl Berry  <karl@gnu.org>
68730
68731         * doc/Copyright/request-*: new files, synced from gnuorg.
68732
68733 2006-03-01  Karl Berry  <karl@gnu.org>
68734
68735         * config/srclist.txt (Copyright/*): new entries.
68736
68737 2006-02-28  Simon Josefsson  <jas@extundo.com>
68738
68739         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
68740
68741 2006-02-27  Simon Josefsson  <jas@extundo.com>
68742
68743         * lib/base64.h: Indent #define's.  From Jim Meyering
68744         <jim@meyering.net>.
68745
68746 2006-02-27  Jim Meyering  <jim@meyering.net>
68747
68748         Revert the change of 2006-02-24, so these files can continue
68749         to be sync'd from gettext.
68750         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
68751         of `config.h'.
68752
68753 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
68754
68755         * modules/intprops: New file.
68756         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
68757         Add intprops.
68758         * modules/getloadavg (Files): Remove lib/intprops.h.
68759         (Depends-on): Add intprops.
68760         * modules/human: Likewise.
68761         * modules/inttostr: Likewise.
68762         * modules/openat: Likewise.
68763         * modules/sig2str: Likewise.
68764         * modules/userspec: Likewise.
68765         * modules/utimecmp: Likewise.
68766         * modules/xnanosleep: Likewise.
68767         * modules/xstrtol: Likewise.
68768
68769 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
68770
68771         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
68772         * modules/lock-tests (TESTS): Use $(EXEEXT).
68773         * modules/tls-tests: Likewise.
68774         * modules/argp-tests: Likewise.
68775         (check_PROGRAMS): New var, replacing...
68776         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
68777
68778 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68779
68780         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
68781         `config.h'.
68782
68783 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
68784
68785         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
68786
68787 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68788
68789         Sync from coreutils.
68790         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
68791         gl_CHDIR_SAFER.
68792
68793 2006-02-22  Jim Meyering  <jim@meyering.net>
68794
68795         Sync from coreutils.
68796         * m4/chdir-safer.m4: New file.
68797
68798 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
68799
68800         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
68801         AT_FDCWD exceeds INT_MAX.
68802         * lib/openat.h (AT_FDCWD): Likewise.
68803
68804 2006-02-17  Eric Blake  <address@hidden>
68805
68806         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
68807
68808 2006-02-16  Simon Josefsson  <jas@extundo.com>
68809
68810         * modules/getaddrinfo (Depends-on): Add sys_socket.
68811
68812 2006-02-15  Simon Josefsson  <jas@extundo.com>
68813
68814         * build-aux/maint.mk: Add dsyntax-check rule.
68815
68816 2006-02-15  Eric Blake  <ebb9@byu.net>
68817
68818         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
68819         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
68820         'present but cannot compile' warnings on cygwin.
68821         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
68822         use ws2tcpip.h if sys/socket.h works.
68823         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
68824         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
68825
68826 2006-02-14  Simon Josefsson  <jas@extundo.com>
68827
68828         * modules/maintainer-makefile (Files): Rename.
68829
68830         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
68831         and (the local) Makefile.cfg to maint-cfg.mk.
68832
68833         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
68834         to the latter.
68835
68836         * modules/maintainer-makefile: New module.
68837
68838         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
68839         severaly stripped to make it possible to build it up from scratch
68840         with reliable tests.
68841
68842         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
68843         fixes to permit overriding the default actions when configure and
68844         makefile are not available.
68845
68846 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
68847
68848         Sync from coreutils.
68849         * modules/lstat (Depends-on): Don't depend on xalloc.
68850         (License): Change from GPL to LGPL, since this is now simply a
68851         replacement for a libc function.
68852
68853 2006-02-14  Jim Meyering  <jim@meyering.net>
68854
68855         Sync from coreutils.
68856
68857         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
68858         failure on deficient systems, and simplify gnulib lgpl dependencies.
68859         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
68860         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
68861
68862         * lib/xalloc-die.c: Remove unused definition of N_.
68863
68864 2006-02-14  Jim Meyering  <jim@meyering.net>
68865
68866         Sync from coreutils.
68867         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
68868         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
68869         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
68870         double-quote uses of that variable, to accommodate the rare case in
68871         which getmntent is available in none of the libraries checked.  This
68872         happens at least on FreeBSD 5.0.
68873
68874 2006-02-13  Simon Josefsson  <jas@extundo.com>
68875
68876         * gnulib-tool (Usage): Fix --import, from
68877         karl@freefriends.org (Karl Berry).
68878
68879 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
68880
68881         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
68882
68883 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
68884
68885         * lib/argp-namefrob.h: Restore changes accidentally lost during the
68886         "autoupdate" on 2005-12-12.
68887
68888 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
68889
68890         * modules/closeout (Depends-on): Remove atexit.
68891
68892 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
68893
68894         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
68895         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
68896
68897 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
68898
68899         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
68900         __EXTENSIONS__ if this causes compilation to fail.  Problem
68901         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
68902         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
68903
68904 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
68905
68906         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
68907         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
68908         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
68909         All uses changed.
68910
68911 2006-01-26  Simon Josefsson  <jas@extundo.com>
68912
68913         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
68914         prototype is visible on mingw32.
68915
68916         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
68917         for mingw32.
68918
68919         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
68920         mingw32).
68921
68922 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
68923
68924         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
68925         attempt to open for write; this always fails, at least on POSIX
68926         hosts.  This reinstates the 2006-01-09 change, which was
68927         inadvertently removed.
68928
68929 2006-01-26  Bruno Haible  <bruno@clisp.org>
68930
68931         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
68932         Reported by Paul Eggert.
68933
68934 2006-01-26  Bruno Haible  <bruno@clisp.org>
68935             Paul Eggert  <eggert@cs.ucla.edu>
68936
68937         * lib/stdbool_.h (_Bool)
68938         [(! (defined __cplusplus || defined __BEOS__)
68939           && !defined __GNUC__
68940           && !(defined __HP_cc || defined __xlc__
68941                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
68942                || defined __sgi))]:
68943         #define to signed char in these cases too; this simplifies
68944         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
68945         etc., separately) and makes it more conservative.
68946
68947 2006-01-25  Simon Josefsson  <jas@extundo.com>
68948
68949         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
68950         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
68951         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
68952
68953 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
68954
68955         * lib/argp-namefrob.h: Bugfix. Remove stray #
68956
68957 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
68958
68959         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
68960         so that we test the test.
68961         Check for yet another HP-UX cc bug involving *bool |= bool.
68962
68963 2006-01-25  Karl Berry  <karl@gnu.org>
68964
68965         * config/srclist.txt (vasnprintf.c): sync lost.
68966
68967 2006-01-25  Jim Meyering  <jim@meyering.net>
68968
68969         Sync from the stable (b5) branch of coreutils:
68970
68971         * lib/fts.c (fts_children): Don't let close() clobber errno from
68972         failed fchdir().
68973
68974         * lib/fts.c (fts_stat): When following a symlink-to-directory,
68975         don't necessarily interpret stat-fails+lstat-succeeds as indicating
68976         a dangling symlink.  That can also happen at least for ELOOP.
68977         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
68978         FYI, this bug predates the inclusion of fts.c in coreutils.
68979
68980         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
68981         in their own block, so pre-c99 compilers don't object.
68982
68983         Avoid the double-free (first in fts_read, second in fts_close) that
68984         would occur when an `active' directory is made inaccessible (e.g.,
68985         via chmod a-x) during a traversal.
68986         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
68987         before returning.  Reproduce this failure by
68988         mkdir -p a/b; cd a; chmod a-x . b
68989         Reported by Stavros Passas.
68990
68991 2006-01-25  Jim Meyering  <jim@meyering.net>
68992
68993         * lib/fileblocks.c: Remove more useless parentheses.
68994         * lib/readutmp.h: Likewise.
68995
68996 2006-01-25  Bruno Haible  <bruno@clisp.org>
68997
68998         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
68999         warnings.
69000         Reported by Paul Eggert.
69001
69002 2006-01-25  Bruno Haible  <bruno@clisp.org>
69003
69004         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
69005         rid of a trap command. For Solaris sh.
69006         Reported by Mark D. Baushke <mdb@gnu.org>.
69007
69008 2006-01-24  Simon Josefsson  <jas@extundo.com>
69009
69010         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
69011         Bruno.
69012
69013 2006-01-24  Karl Berry  <karl@gnu.org>
69014
69015         * config/srclist.txt (argp-namefrob.h): sync lost.
69016
69017 2006-01-24  Jim Meyering  <jim@meyering.net>
69018
69019         * modules/openat (Files): Add lib/intprops.h.
69020         From Mark D. Baushke.
69021
69022 2006-01-24  Jim Meyering  <jim@meyering.net>
69023
69024         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
69025         Reported by Mark D. Baushke.
69026
69027 2006-01-24  Jim Meyering  <jim@meyering.net>
69028
69029         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
69030
69031 2006-01-24  Bruno Haible  <bruno@clisp.org>
69032
69033         * modules/strnlen (Maintainer): Change from glibc to all.
69034
69035 2006-01-24  Bruno Haible  <bruno@clisp.org>
69036
69037         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
69038         Patch by Paul Eggert.
69039
69040 2006-01-24  Bruno Haible  <bruno@clisp.org>
69041
69042         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
69043         already has it.
69044         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
69045         2005-11-26.
69046
69047         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
69048         'signed char' to avoid problems with the built-in _Bool type.
69049         Reported by Paul Eggert on 2005-11-26.
69050
69051 2006-01-24  Bruno Haible  <bruno@clisp.org>
69052
69053         * gnulib-tool (func_import): Avoid constructing complicated sed
69054         expressions inside backquote.
69055         Report and solution by Mark D. Baushke <mdb@gnu.org>.
69056
69057 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
69058
69059         These changes imported from libc.
69060         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
69061         test and two separate function calls.
69062         * lib/strndup.c (__strndup): Add libc_hidden_def.
69063
69064 2006-01-23  Simon Josefsson  <jas@extundo.com>
69065
69066         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
69067         Remove the test_*_SOURCES variable: automake infers it by default.
69068         * modules/tls-tests: Likewise.
69069
69070 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69071
69072         Work around porting bugs reported by Dieter in
69073         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
69074         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
69075         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
69076         Include "getopt.h" first, to check interface.
69077         (getenv): Declare only if defined HAVE_DECL_GETENV &&
69078         !HAVE_DECL_GETENV.
69079         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
69080         (__strndup): Revert to K&R-style function dfns, the glibc style.
69081         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
69082         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
69083         Include strnlen.h first, to get prototype properly.
69084         (strnlen): Renamed from __strnlen.
69085         Remove weak alias.
69086
69087 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69088
69089         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
69090
69091 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69092
69093         * config/srclist.txt: Adjust to reflect glibc reorganization.
69094         This affects only comments.
69095
69096 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
69097
69098          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
69099          Reported by Bruce Korb <bkorb@gnu.org>.
69100
69101 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
69102
69103         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
69104         to pacify gcc -Wswitch-default.
69105
69106 2006-01-22  Bruno Haible  <bruno@clisp.org>
69107
69108         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
69109         temporary buffer for sprintf, take into account the precision also
69110         for 'd', 'i', 'u', 'o', 'x', 'X'.
69111
69112 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
69113
69114         * modules/argp-tests: New module
69115         * tests/test-argp.c: New file
69116         * tests/test-argp-2.sh: New file
69117
69118 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
69119
69120         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
69121         (__argp_base_name): Removed
69122         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
69123         typo.
69124         (__argp_base_name): Provide macro definition or extern declaration
69125         depending on the configuration
69126
69127 2006-01-20  Simon Josefsson  <jas@extundo.com>
69128
69129         * modules/inet_ntop (Depends-on): Depend on sys_socket.
69130
69131 2006-01-20  Simon Josefsson  <jas@extundo.com>
69132
69133         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
69134
69135 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
69136
69137         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
69138         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
69139         Suggested by Bruno Haible.
69140
69141 2006-01-20  Karl Berry  <karl@gnu.org>
69142
69143         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
69144         until changes propagate, I guess.
69145
69146 2006-01-19  Simon Josefsson  <jas@extundo.com>
69147
69148         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
69149
69150 2006-01-19  Simon Josefsson  <jas@extundo.com>
69151
69152         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
69153
69154 2006-01-19  Simon Josefsson  <jas@extundo.com>
69155
69156         * gnulib-tool: Set check_PROGRAMS.
69157
69158         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
69159         modules/des-tests, modules/gc-arcfour-tests,
69160         modules/gc-arctwo-tests, modules/gc-des-tests,
69161         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
69162         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
69163         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
69164         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
69165         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
69166         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
69167         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
69168         test_*_SOURCES.
69169
69170 2006-01-18  Simon Josefsson  <jas@extundo.com>
69171
69172         * modules/socklen (Depends-on): Depend on sys_socket.
69173
69174 2006-01-18  Simon Josefsson  <jas@extundo.com>
69175
69176         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
69177         modules/des-tests, modules/gc-arcfour-tests,
69178         modules/gc-arctwo-tests, modules/gc-des-tests,
69179         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
69180         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
69181         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
69182         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
69183         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
69184         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
69185         $(EXEEXT) to automake TESTS variable, for mingw32.
69186
69187 2006-01-17  Simon Josefsson  <jas@extundo.com>
69188
69189         * modules/socklen (Include): Need sys/socket.h.
69190
69191 2006-01-17  Bruno Haible  <bruno@clisp.org>
69192
69193         * modules/ssize_t (Include): Add <sys/types.h>.
69194
69195 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
69196
69197         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
69198         it's not portable and it doesn't work with cross-compiles.
69199         Problem reported by Bruno Haible.  Fix missing-$ typo in
69200         'test "gl_cv_ignore_unused_libraries" ...' that prevented
69201         -zignore from being used with Sun's C compiler.
69202
69203 2006-01-12  Simon Josefsson  <jas@extundo.com>
69204
69205         * lib/base64.c: Fix warning, reported by Bruno Haible
69206         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
69207
69208 2006-01-12  Bruno Haible  <bruno@clisp.org>
69209
69210         * modules/ldd: New file.
69211         * build-aux/ldd.sh.in: New file.
69212         * MODULES.html.sh (Support for building libraries and executables): Add
69213         ldd.
69214
69215 2006-01-12  Bruno Haible  <bruno@clisp.org>
69216
69217         * m4/ldd.m4: New file.
69218
69219 2006-01-12  Bruno Haible  <bruno@clisp.org>
69220
69221         * gnulib-tool (func_import, func_create_testdir): Don't go into an
69222         endless loop while replacing $auxdir with build-aux.
69223
69224 2006-01-11  Simon Josefsson  <jas@extundo.com>
69225
69226         * lib/stdint_.h (SIZE_MAX): Add missing (.
69227
69228 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
69229
69230         Sync from coreutils.
69231         * lib/md5.c: Fix commentary typos.
69232         (alignof, UNALIGNED_P): No need for a GCC-specific version.
69233         * lib/md5.h (__attribute__): Remove; unused.
69234         * lib/sha1.c: Fix commentary to match md5 better.
69235         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
69236         so that we don't need to worry about alignment.  All uses changed.
69237         This merges the 2005-10-28 md5 change into sha1.
69238
69239 2006-01-11  Jim Meyering  <jim@meyering.net>
69240
69241         Sync from coreutils.
69242         * lib/md5.c (OP): Fix spacing.
69243
69244 2006-01-11  Bruno Haible  <bruno@clisp.org>
69245
69246         Ensure automatic ordering between gl_LOCK and gl_ARGP.
69247         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
69248         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
69249
69250 2006-01-11  Bruno Haible  <bruno@clisp.org>
69251
69252         Ensure automatic ordering between gl_LOCK and gl_ARGP.
69253         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
69254         the "early" section as well.
69255
69256 2006-01-11  Bruno Haible  <bruno@clisp.org>
69257
69258         Avoid "ar: no archive members specified" error on MacOS X.
69259         * gnulib-tool (func_modules_add_dummy): New function.
69260         (func_import, func_create_testdir): Invoke it.
69261
69262 2006-01-11  Bruno Haible  <bruno@clisp.org>
69263
69264         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
69265         with $auxdir in AC_CONFIG_FILES statements.
69266
69267 2006-01-11  Bruno Haible  <bruno@clisp.org>
69268
69269         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69270         Initialize also noinst_HEADERS to empty.
69271
69272 2006-01-11  Bruno Haible  <bruno@clisp.org>
69273
69274         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
69275         variables.
69276         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
69277         autoreconf.
69278
69279 2006-01-11  Bruno Haible  <bruno@clisp.org>
69280
69281         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
69282         overridable by the user.
69283         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69284
69285 2006-01-10  Simon Josefsson  <jas@extundo.com>
69286
69287         * modules/sys_socket: New file.
69288
69289 2006-01-10  Simon Josefsson  <jas@extundo.com>
69290
69291         * m4/sys_socket_h.m4: New file.
69292
69293 2006-01-10  Simon Josefsson  <jas@extundo.com>
69294
69295         * lib/socket_.h: New file.
69296
69297 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
69298
69299         * modules/readutmp (Maintainer): Add myself.
69300
69301 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
69302
69303         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
69304         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
69305         People who are still concerned with buggy memcmp implementations
69306         can invoke gl_FUNC_MEMCMP themselves.
69307
69308 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
69309
69310         * lib/regex_internal.h (BITSET_WORD_BITS):
69311         Work around a bug in 64-bit PGC (before version 6.1-2), where the
69312         preprocessor mishandles large unsigned values as if they were signed.
69313         Problem reported by Claudio Fontana in
69314         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
69315
69316 2006-01-10  Jim Meyering  <jim@meyering.net>
69317
69318         Avoid the double-free (first in fts_read, second in fts_close) that
69319         would occur when an `active' directory is made inaccessible (e.g.,
69320         via chmod a-x) during a traversal.
69321         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
69322         before returning.  Reproduce this failure by
69323         mkdir -p a/b; cd a; chmod a-x . b
69324         Reported by Stavros Passas.
69325
69326         Sync from coreutils.
69327         * lib/sha1.c: Tweak grammar in a comment.
69328
69329 2006-01-10  Jim Meyering  <jim@meyering.net>
69330
69331         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
69332         Patch by Joerg Sonnenberger.
69333
69334 2006-01-10  Bruno Haible  <bruno@clisp.org>
69335
69336         * modules/readutmp: Depend on module free.
69337         * modules/strtok_r: Depend on module restrict.
69338
69339 2006-01-10  Bruno Haible  <bruno@clisp.org>
69340
69341         * modules/gettext (configure.ac): Add an invocation of
69342         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
69343
69344 2006-01-10  Bruno Haible  <bruno@clisp.org>
69345
69346         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
69347         Reported by Werner Lemberg <wl@gnu.org>.
69348
69349 2006-01-10  Bruno Haible  <bruno@clisp.org>
69350
69351         * lib/localcharset.c: Update from GNU gettext.
69352
69353 2006-01-10  Bruno Haible  <bruno@clisp.org>
69354
69355         * lib/argp.h (__const): Remove macro. Use const instead.
69356         * lib/argp-fmtstream.h (__const): Likewise.
69357         * lib/glob_.h (__const): Remove macro.
69358         * lib/glob-libc.h: Use const instead of __const.
69359
69360 2006-01-10  Bruno Haible  <bruno@clisp.org>
69361
69362         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
69363         variable.
69364         Needed to avoid an automake error regarding the 'gettext' module.
69365
69366 2006-01-09  Simon Josefsson  <jas@extundo.com>
69367
69368         * modules/inet_ntop (Depends-on): Add restrict.
69369
69370 2006-01-09  Simon Josefsson  <jas@extundo.com>
69371
69372         * modules/gc-rijndael-tests (License): Put under LGPL.
69373
69374         * modules/gc-des-tests (License): Likewise.
69375
69376         * modules/gc-arcfour-tests (License): Likewise.
69377
69378         * modules/gc-arctwo-tests (License): Likewise.
69379
69380         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
69381
69382         * modules/gc-hmac-sha1-tests (Files): Likewise.
69383
69384         * modules/gc-hmac-md5-tests (License): Likewise.
69385
69386         * modules/gc-sha1-tests (License): Likewise.
69387
69388         * modules/gc-md5-tests (License): Likewise.
69389
69390         * modules/gc-md4-tests (License): Likewise.
69391
69392         * modules/gc-md2-tests (License): Likewise.
69393
69394         * modules/gc-tests (License): Likewise.
69395
69396         * modules/des-tests (License): Likewise.
69397
69398         * modules/md4-tests (License): Likewise.
69399
69400         * modules/md2-tests (License): Likewise.
69401
69402 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69403
69404         Sync from coreutils:
69405
69406         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
69407         * modules/lib-ignore: New file.
69408         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
69409         chdir-safer.m4, lchmod.m4.
69410         * modules/openat: Add mkdirat.c, openat-priv.h.
69411
69412 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69413
69414         Sync from coreutils.
69415         * m4/lib-ignore.m4: New file.
69416         * m4/lchmod.m4: New file.
69417
69418 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69419
69420         Sync from coreutils.
69421         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
69422         for write access: POSIX says that must fail.
69423         * lib/fts.c (diropen): Likewise.
69424         * lib/save-cwd.c (save_cwd): Likewise.
69425         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
69426         well, for minor improvements on hosts that lack O_DIRECTORY.
69427         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
69428         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
69429         Fall back on chown if open failed with EACCES.
69430
69431         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
69432         Report an error at compile-time if only a 1-second nominal clock
69433         resolution is found.
69434
69435         * lib/lchmod.h: New file.
69436         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
69437         (make_dir_parents): Use lchown rather than chown, and
69438         lchmod rather than chmod.
69439
69440         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
69441         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
69442         "proc" reported by n0dalus.
69443
69444         * lib/mountlist.c: Include <limits.h>.
69445         (dev_from_mount_options)
69446         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
69447         New function.  It no longer assumes "dev=" has the System V meaning
69448         on Linux (since it doesn't).  It also parses "dev=" more carefully.
69449         (read_file_system_list)
69450         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
69451         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
69452         dev= in that case.
69453
69454         * lib/posixtm.h (PDS_PRE_2000): New macro.
69455         * lib/posixtm.c (year): Arg is now syntax_bits rather than
69456         allow_century.  All usages changed.  Reject dates outside the range
69457         1969-1999 if PDS_PRE_2000 is used.
69458
69459 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69460
69461         Sync from coreutils.
69462         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
69463         (Time of day items): Mention the possibility of leap seconds.
69464         Problem reported by Dr. David Alan Gilbert.
69465
69466 2006-01-09  Jim Meyering  <jim@meyering.net>
69467
69468         Sync from coreutils.
69469
69470         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
69471
69472         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
69473
69474         * lib/modechange.c (mode_compile): Reject an invalid mode string
69475         that starts with an octal digit.  From Andreas Gruenbacher.
69476
69477         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
69478         and dup to open_safer and dup_safer, respectively.
69479         (openat_permissive): Fix typo in comment.
69480
69481         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
69482         "gettext.h"; either no longer needed or are guaranteed by openat.h.
69483         (_): Remove; no longer needed.
69484         (openat): Renamed from rpl_openat; no need for rpl_openat
69485         since openat.h renames openat for us.
69486         Replace most of the body with a call to openat_permissive,
69487         to avoid duplicate code.
69488         Port to (probably hypothetical) environments were mode_t is
69489         wider than int.
69490         (openat_permissive): Require mode arg, so that we can check
69491         types better.  Put it just after flags.  Change cwd failure
69492         indicator from pointer-to-bool to pointer-to-errno-value.
69493         All callers changed.
69494         Invoke openat_save_fail and/or openat_restore_fail if
69495         cwd_errno is null, so that openat can call us.
69496         (openat_permissive, fdopendir, fstatat, unlinkat):
69497         Simplify errno handling to avoid some duplicate code,
69498         as it's OK to set errno on success.
69499         * lib/openat.h: Revamp code so that function macros depend on
69500         __OPENAT_PREFIX only, not also on AT_FDCWD.
69501         (openat_ro): Remove.  Caller changed to use openat_permissive.
69502         (openat_permissive): Now a macro, if not a function.
69503         (openat_restore_fail, openat_save_fail): Now always functions,
69504         since mkdirat needs them even if __OPENAT_PREFIX is defined.
69505
69506         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
69507         and openat.c.
69508         * lib/mkdirat.c: Include openat-priv.h.
69509         Remove definitions of macros defined therein.
69510         * lib/openat.c: Likewise.
69511
69512         * lib/mkdirat.c (mkdirat): New file and function.
69513         * lib/openat.h (mkdirat): Declare.
69514
69515         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
69516
69517         * lib/openat.h (openat_permissive): Declare.
69518         (openat_ro): Define.
69519
69520         * lib/openat.c (EXPECTED_ERRNO): New macro.
69521         (openat_permissive): New function -- used in remove.c rewrite.
69522         (all functions): Set errno just before returning, only if there
69523         was an actual failure.
69524         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
69525
69526         Emulate openat-family functions using Linux's procfs, if possible.
69527         Idea and some code based on Ulrich Drepper's glibc changes.
69528
69529         * lib/openat.c: (BUILD_PROC_NAME): New macro.
69530         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
69531         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
69532         before falling back on save_cwd and restore_cwd.
69533         (fdopendir, fstatat, unlinkat): Likewise.
69534
69535         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
69536         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
69537
69538         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
69539         as second argument to va_arg.  Otherwise, some versions of gcc
69540         warn that `if this code is reached, the program will abort'.
69541
69542 2006-01-09  Jim Meyering  <jim@meyering.net>
69543
69544         Sync from coreutils.
69545         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
69546         Require openat-priv.h.
69547
69548 2006-01-09  Bruno Haible  <bruno@clisp.org>
69549
69550         * modules/strnlen (Include): Use strnlen.h.
69551
69552 2006-01-09  Bruno Haible  <bruno@clisp.org>
69553
69554         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
69555
69556 2006-01-09  Bruno Haible  <bruno@clisp.org>
69557
69558         * lib/sysexit_.h (EX_OK): New macro.
69559         Suggested by Martin Lambers <marlam@marlam.de>.
69560
69561 2006-01-09  Bruno Haible  <bruno@clisp.org>
69562
69563         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
69564         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
69565
69566 2006-01-09  Bruno Haible  <bruno@clisp.org>
69567
69568         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
69569         numbers.
69570
69571 2006-01-09  Bruno Haible  <bruno@clisp.org>
69572
69573         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
69574         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
69575         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
69576         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
69577
69578 2006-01-09  Bruno Haible  <bruno@clisp.org>
69579
69580         * build-aux/javacomp.sh.in: New file, moved from lib/.
69581         * modules/javacomp-script (Files): Update.
69582         (configure.ac): Add AC_CONFIG_FILES invocation.
69583         (EXTRA_DIST): Remove variable.
69584
69585         * build-aux/javaexec.sh.in: New file, moved from lib/.
69586         * modules/javaexec (Files): Update.
69587         (configure.ac): Add AC_CONFIG_FILES invocation.
69588         (EXTRA_DIST): Remove javaexec.sh.in.
69589
69590         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
69591         * modules/csharpcomp-script (Files): Update.
69592         (configure.ac): Add AC_CONFIG_FILES invocation.
69593         (EXTRA_DIST): Remove variable.
69594
69595         * build-aux/csharpexec.sh.in: New file, moved from lib/.
69596         * modules/csharpexec (Files): Update.
69597         (configure.ac): Add AC_CONFIG_FILES invocation.
69598         (EXTRA_DIST): Remove csharpexec.sh.in.
69599
69600 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
69601
69602         Sync from coreutils.
69603
69604         Add POSIX ACL support
69605         * lib/acl.h (copy_acl, set_acl): Add declarations.
69606         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
69607         systems other than Linux.
69608         (chmod_or_fchmod): New function: use fchmod when possible,
69609         and chmod otherwise.
69610         (file_has_acl): Add a POSIX ACL implementation, with a
69611         Linux-specific subcase.
69612         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
69613         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
69614         acls are unsupported.
69615         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
69616         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
69617         are unsupported.
69618
69619 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
69620
69621         Sync from coreutils.
69622         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
69623
69624 2006-01-07  Bruno Haible  <bruno@clisp.org>
69625
69626         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
69627         gl_EARLY.
69628
69629 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
69630
69631         * lib/strftime.c (tzname): Don't declare if it is already #defined.
69632         Problem reported for Mingw by Mark Junker.
69633
69634 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
69635
69636         * README: Gnulib normally doesn't generate a tarball.
69637
69638 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
69639
69640         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
69641         long int, not int, for nanosecond counts, so that people who are
69642         used to POSIX struct timespec won't be surprised.  Reported by Jim
69643         Meyering.
69644
69645 2005-12-28  Bruno Haible  <bruno@clisp.org>
69646
69647         * build-aux/config.rpath: Update from GNU gettext.
69648
69649 2005-12-16  Jim Meyering  <jim@meyering.net>
69650
69651         * modules/fprintftime: New module.
69652         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
69653
69654 2005-12-16  Jim Meyering  <jim@meyering.net>
69655
69656         * m4/fprintftime.m4: New file.
69657
69658 2005-12-16  Jim Meyering  <jim@meyering.net>
69659
69660         * lib/fprintftime.c, lib/fprintftime.h: New files.
69661
69662 2005-12-15  Simon Josefsson  <jas@extundo.com>
69663
69664         * modules/socklen (configure.ac): Fix M4 macro name, to align with
69665         new m4/socklen.m4.
69666
69667 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
69668
69669         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
69670         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
69671
69672 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
69673
69674         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
69675         * lib/argp-help.c (fill_in_uparams): Check if the constructed
69676         struct uparams is valid. Fall back to the default values if it is
69677         not.
69678
69679 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69680
69681         * modules/argp (Files): Add argp-pin.c
69682         (Depends-on): dirname
69683         (lib_SOURCES): Add argp-pin.c
69684
69685 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69686
69687         * m4/argp.m4:  Check if program_invocation_name and
69688         program_invocation_short_name are declared and define appropriate
69689         macros if they are not.
69690
69691 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69692
69693         * lib/argp-help.c (__argp_base_name): New function
69694         (__argp_short_program_name): Rewrite using __argp_base_name
69695         * lib/argp-namefrob.h: Define program_invocation_name and
69696         program_invocation_short_name if requested
69697         (__argp_base_name): Add prototype
69698         * lib/argp-parse.c (argp_def): Use gettext wrappers
69699         (argp_default_parser): Use __argp_base_name
69700         * lib/argp-pin.c: New file. Defines program_invocation_name and
69701         program_invocation_short_name on systems that lack them.
69702
69703 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
69704
69705         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
69706         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
69707         porting problem reported by Georg Schwarz in
69708         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
69709
69710 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
69711
69712         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
69713         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
69714         porting problem reported by Georg Schwarz in
69715         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
69716
69717 2005-12-05  Bruno Haible  <bruno@clisp.org>
69718
69719         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
69720         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
69721         Reported by Mark Junker <mjscod@gmx.de>.
69722
69723 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
69724
69725         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
69726         Use implementation from Albert Chin, with some
69727         comments/corrections by Stepan Kasal and myself.
69728
69729 2005-12-02  Bruno Haible  <bruno@clisp.org>
69730
69731         * gnulib-tool (func_import): Accept GPLed build tool modules when
69732         --lgpl is given.
69733         * modules/csharpcomp-script: New file.
69734         * modules/csharpcomp: Depend on it.
69735         * modules/javacomp-script: New file.
69736         * modules/javacomp: Depend on it.
69737         Suggested by Simon Josefsson.
69738
69739 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
69740
69741         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
69742         statement, to work around an HP-UX 10.20 compiler bug reported by
69743         Peter O'Gorman.
69744
69745 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
69746
69747         * modules/savedir (Depends-on): Add openat.
69748
69749 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
69750
69751         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
69752         (uintmax_t) [defined uintmax_t]: Do not declare.
69753         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
69754         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
69755         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
69756         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
69757         sake of portability to weird hosts that C allows (though we don't
69758         know of any practical examples).
69759
69760         * lib/savedir.h (fdsavedir): New decl.
69761         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
69762         contains most of the former guts of savedir.
69763         (savedir): Use savedirstream.
69764         Include "openat.h".
69765
69766 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
69767
69768         * modules/obstack (Files): Add m4/ulonglong.m4.
69769         Problem reported by Davide Angelocola.
69770
69771 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
69772
69773         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
69774         coreutils no longer futzes with rounding modes.
69775
69776 2005-11-14  Jim Meyering  <jim@meyering.net>
69777
69778         * lib/mkstemp-safer.c: Include <config.h>, required for possible
69779         replacement of mkstemp.
69780
69781 2005-11-10  Simon Josefsson  <jas@extundo.com>
69782
69783         * lib/readline.c: Remove EOL.
69784
69785 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
69786
69787         * modules/gethrxtime (Depends-on): Add gettime.
69788
69789 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
69790
69791         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
69792         or gettimeofday; no longer needed.
69793
69794 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
69795
69796         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
69797         time business.
69798         (gethrxtime) [! (HAVE_NANOUPTIME
69799         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
69800         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
69801         our own approximation.
69802
69803 2005-11-08  Eric Blake  <ebb9@byu.net>
69804
69805         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
69806
69807 2005-11-08  Eric Blake  <ebb9@byu.net>
69808
69809         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
69810
69811 2005-11-04  Bruno Haible  <bruno@clisp.org>
69812
69813         * gnulib-tool: Implement --update mode.
69814
69815 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
69816
69817         Fix porting problem reported by Theodoros V. Kalamatianos.
69818         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
69819         Don't assume that futimes failing means we must fail.
69820
69821 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
69822
69823         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
69824         variables to suggest the intended function of the PATH_MAX check.
69825
69826 2005-10-30  Kean Johnston  <jkj@sco.com>
69827
69828         Trivial changes to support SCO systems.
69829         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
69830         as PATH_MAX.
69831         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
69832         where __ptr is null when no I/O is pending.
69833
69834 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
69835
69836         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
69837         leave errno alone.  Problem reported by Dmitry V. Levin.
69838
69839 2005-10-28  Simon Josefsson  <jas@extundo.com>
69840
69841         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
69842         Test more.
69843
69844         * tests/test-gc-md2.c, tests/test-md2.c: New files.
69845
69846         * modules/md2, modules/md2-tests: New files.
69847
69848 2005-10-28  Simon Josefsson  <jas@extundo.com>
69849
69850         * m4/inet_ntop.m4: More tests.
69851
69852         * m4/gc-md2.m4, md2.m4: New file.
69853
69854 2005-10-28  Simon Josefsson  <jas@extundo.com>
69855
69856         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
69857         "restrict" keywords, as per POSIX.  Protect the function
69858         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
69859         Don't use K&R prototypes.  Check the sprintf return values.
69860         Re-define EAFNOSUPPORT if not present.  Indent.
69861
69862         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
69863         suggested by Bruno Haible <bruno@clisp.org>.
69864
69865         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
69866
69867         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
69868
69869         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
69870         libgcrypt).
69871
69872         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
69873
69874         * lib/md2.h, lib/md2.c: New files.
69875
69876 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
69877
69878         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
69879         errno alone.  Problem reported by Frederic Jolliton.
69880
69881 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
69882
69883         * modules/verify (License): Change from GPL to LGPL.  This is a
69884         tiny module and there are apparently near-equivalents that are
69885         under the BSD license.
69886
69887 2005-10-24  Simon Josefsson  <jas@extundo.com>
69888
69889         * modules/sha1: Relicense to LGPL.
69890
69891 2005-10-24  Simon Josefsson  <jas@extundo.com>
69892
69893         * lib/md4.h: Shrink buffer size, now that we changed the type.
69894
69895 2005-10-23  Simon Josefsson  <jas@extundo.com>
69896
69897         * gnulib-tool (func_import): Fix --tests-base.
69898
69899 2005-10-22  Simon Josefsson  <jas@extundo.com>
69900
69901         * modules/arcfour (Depends-on): Need stdint.
69902
69903 2005-10-22  Simon Josefsson  <jas@extundo.com>
69904
69905         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
69906         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
69907
69908 2005-10-22  Simon Josefsson  <jas@extundo.com>
69909
69910         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
69911         suggested by Bruno Haible <bruno@clisp.org>.
69912
69913 2005-10-22  Simon Josefsson  <jas@extundo.com>
69914
69915         * lib/crc.h: Include stddef.h, for size_t.
69916
69917 2005-10-22  Simon Josefsson  <jas@extundo.com>
69918
69919         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
69920         arcfour_context struct (simplify test vector testing in GNU
69921         Shishi).
69922
69923 2005-10-21  Simon Josefsson  <jas@extundo.com>
69924
69925         * modules/des, modules/des-tests: New files.
69926
69927         * modules/gc-des, modules/gc-des-tests: New files.
69928
69929         * tests/test-des.c, tests/test-gc-des.c: New file.
69930
69931 2005-10-21  Simon Josefsson  <jas@extundo.com>
69932
69933         * modules/arctwo, modules/arctwo-tests: New files.
69934
69935         * tests/test-arctwo.c: New file.
69936
69937         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
69938
69939         * tests/test-gc-arctwo.c: New file.
69940
69941 2005-10-21  Simon Josefsson  <jas@extundo.com>
69942
69943         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
69944         Bruno Haible <bruno@clisp.org>.
69945
69946         * m4/gc-des.m4: New file.
69947
69948 2005-10-21  Simon Josefsson  <jas@extundo.com>
69949
69950         * m4/arctwo.m4: New file.
69951
69952         * m4/gc-arctwo.m4: New file.
69953
69954 2005-10-21  Simon Josefsson  <jas@extundo.com>
69955
69956         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
69957         block.
69958
69959 2005-10-21  Simon Josefsson  <jas@extundo.com>
69960
69961         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
69962         <bruno@clisp.org>.
69963
69964         * lib/hmac-sha1.c (hmac_sha1): Likewise.
69965
69966         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
69967         Bruno Haible <bruno@clisp.org>.
69968
69969         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
69970         <bruno@clisp.org>.
69971
69972 2005-10-21  Simon Josefsson  <jas@extundo.com>
69973
69974         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
69975
69976 2005-10-21  Simon Josefsson  <jas@extundo.com>
69977
69978         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
69979
69980 2005-10-21  Simon Josefsson  <jas@extundo.com>
69981
69982         * lib/des.h, lib/des.c: New files.
69983
69984         * lib/gc-gnulib.c: Support DES.c
69985
69986 2005-10-21  Simon Josefsson  <jas@extundo.com>
69987
69988         * lib/arctwo.h, lib/arctwo.c: New files.
69989
69990         * lib/gc-gnulib.c: Support ARCTWO.
69991
69992 2005-10-21  Simon Josefsson  <jas@extundo.com>
69993
69994         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
69995         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69996
69997 2005-10-21  Simon Josefsson  <jas@extundo.com>
69998
69999         * gnulib-tool (func_import, func_create_testdir): Define automake
70000         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
70001         Makefile.am snippet),
70002         suggested by Bruno Haible <bruno@clisp.org>.
70003
70004         * modules/gc (Makefile.am): Use it.
70005
70006 2005-10-21  Bruno Haible  <bruno@clisp.org>
70007
70008         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
70009         patch.
70010
70011 2005-10-19  Simon Josefsson  <jas@extundo.com>
70012
70013         * tests/test-gc-rijndael.c: New file.
70014
70015         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
70016
70017 2005-10-19  Simon Josefsson  <jas@extundo.com>
70018
70019         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
70020         interface too.
70021
70022 2005-10-19  Simon Josefsson  <jas@extundo.com>
70023
70024         * tests/test-gc-arcfour.c: New file.
70025
70026         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
70027
70028 2005-10-19  Simon Josefsson  <jas@extundo.com>
70029
70030         * modules/gc-md4, modules/gc-md4-tests: New file.
70031
70032         * tests/test-gc-md4.c: New file.
70033
70034 2005-10-19  Simon Josefsson  <jas@extundo.com>
70035
70036         * m4/gc-md4.m4: New file.
70037
70038 2005-10-19  Simon Josefsson  <jas@extundo.com>
70039
70040         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
70041         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
70042         <kasal@ucw.cz>.
70043
70044 2005-10-19  Simon Josefsson  <jas@extundo.com>
70045
70046         * m4/gc-arcfour.m4: New file.
70047
70048         * m4/gc-rijndael.m4: New file.
70049
70050 2005-10-19  Simon Josefsson  <jas@extundo.com>
70051
70052         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
70053
70054 2005-10-19  Simon Josefsson  <jas@extundo.com>
70055
70056         * lib/gc-gnulib.c: Support ARCFOUR.
70057
70058 2005-10-19  Simon Josefsson  <jas@extundo.com>
70059
70060         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
70061         support.
70062
70063         * lib/gc.h: Add ECB enum type.
70064
70065         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
70066
70067 2005-10-18  Simon Josefsson  <jas@extundo.com>
70068
70069         * tests/test-md5.c: New file.
70070
70071         * modules/md5-tests: New file.
70072
70073 2005-10-18  Simon Josefsson  <jas@extundo.com>
70074
70075         * tests/test-md4.c: New file.
70076
70077         * modules/md4, modules/md4-tests: New files.
70078
70079 2005-10-18  Simon Josefsson  <jas@extundo.com>
70080
70081         * m4/md4.m4: New file.
70082
70083 2005-10-18  Simon Josefsson  <jas@extundo.com>
70084
70085         * lib/md4.h, lib/md4.c: New files, based on md5.?.
70086
70087 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
70088
70089         * gnulib-tool (func_create_testdir): Omit the second check whether
70090         BUILT_SOURCES in nonempty.
70091
70092 2005-10-17  Simon Josefsson  <jas@extundo.com>
70093
70094         * tests/test-rijndael.c: New file.
70095
70096 2005-10-17  Simon Josefsson  <jas@extundo.com>
70097
70098         * modules/sha1: Depend on stdint instead of md5.
70099
70100         * modules/md5: Depend on stdint, remove uint32_t.
70101
70102 2005-10-17  Simon Josefsson  <jas@extundo.com>
70103
70104         * modules/gc-sha1-tests: New file.
70105
70106         * tests/test-gc-sha1.c: New file.
70107
70108 2005-10-17  Simon Josefsson  <jas@extundo.com>
70109
70110         * m4/md5.m4: Remove call to uint32_t.m4.
70111
70112 2005-10-17  Simon Josefsson  <jas@extundo.com>
70113
70114         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
70115
70116         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
70117         md5.h.
70118
70119         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
70120
70121         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
70122
70123 2005-10-17  Simon Josefsson  <jas@extundo.com>
70124
70125         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
70126
70127 2005-10-17  Simon Josefsson  <jas@extundo.com>
70128
70129         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
70130
70131 2005-10-17  Simon Josefsson  <jas@extundo.com>
70132
70133         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
70134
70135         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
70136
70137 2005-10-17  Bruno Haible  <bruno@clisp.org>
70138
70139         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
70140         that it can also be used in a test.
70141
70142 2005-10-16  Bruno Haible  <bruno@clisp.org>
70143
70144         * gnulib-tool (func_emit_tests_Makefile_am): Also define
70145         TESTS_ENVIRONMENT, so that individual tests can augment it.
70146
70147         * gnulib-tool (func_create_testdir): Use an intermediate target for
70148         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
70149         macros, like $(ALLOCA_H), which cannot be passed through the command
70150         line.
70151
70152 2005-10-15  Simon Josefsson  <jas@extundo.com>
70153
70154         * modules/rijndael-tests: New file.
70155
70156         * modules/rijndael: New file.
70157
70158 2005-10-15  Simon Josefsson  <jas@extundo.com>
70159
70160         * m4/rijndael.m4: New file.
70161
70162 2005-10-15  Simon Josefsson  <jas@extundo.com>
70163
70164         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
70165
70166         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
70167
70168 2005-10-14  Simon Josefsson  <jas@extundo.com>
70169
70170         * tests/test-arcfour.c: New file.
70171
70172         * modules/arcfour, modules/arcfour-tests: New files.
70173
70174 2005-10-14  Simon Josefsson  <jas@extundo.com>
70175
70176         * m4/arcfour.m4: New file.
70177
70178 2005-10-14  Simon Josefsson  <jas@extundo.com>
70179
70180         * lib/arcfour.h, lib/arcfour.c: New files.
70181
70182 2005-10-14  Roland McGrath  <roland@redhat.com>
70183
70184         Import from libc.  [BZ #1331]
70185         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
70186         macro argument.
70187         Reported by Matej Vela <vela@debian.org>.
70188
70189 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
70190
70191         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
70192         include <wchar.h>; no longer needed.
70193
70194 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
70195
70196         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
70197
70198 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
70199         and  Ulrich Drepper  <drepper@redhat.com>
70200
70201         Import from libc.
70202         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
70203         instead of inline stream orientation test and two separate
70204         function calls.  Pay no attention to USE_IN_LIBIO.
70205
70206 2005-10-13  Simon Josefsson  <jas@extundo.com>
70207
70208         * modules/gc-hmac-md5-tests: New file.
70209
70210         * tests/test-gc-hmac-sha1.c: New file.
70211
70212         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
70213
70214         * modules/gc-hmac-md5-tests: New file.
70215
70216         * tests/test-gc-md5.c: New file.
70217
70218         * modules/gc-md5-tests: New file.
70219
70220 2005-10-13  Simon Josefsson  <jas@extundo.com>
70221
70222         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
70223         Move memory allocation outside of loop.
70224
70225 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
70226
70227         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
70228         intermediate directory is in a read-only file system.  Problem
70229         reported by Eric Blake.
70230
70231 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
70232
70233         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
70234
70235 2005-10-12  Simon Josefsson  <jas@extundo.com>
70236
70237         * tests/test-hmac-sha1.c: New file.
70238
70239         * modules/hmac-sha1-tests: New file.
70240
70241         * modules/hmac-sha1: New file.
70242
70243 2005-10-12  Simon Josefsson  <jas@extundo.com>
70244
70245         * modules/gc-sha1: New file.
70246
70247 2005-10-12  Simon Josefsson  <jas@extundo.com>
70248
70249         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
70250
70251         * tests/test-gc-pbkdf2-sha1.c: New file.
70252
70253 2005-10-12  Simon Josefsson  <jas@extundo.com>
70254
70255         * modules/gc-md5, modules/gc-hmac-md5: New files.
70256
70257         * modules/gc (Files): Remove md5, memxor and hmac files.
70258
70259 2005-10-12  Simon Josefsson  <jas@extundo.com>
70260
70261         * m4/gc-pbkdf2-sha1.m4: New file.
70262
70263         * m4/gc-hmac-sha1.m4: New file.
70264
70265         * m4/gc-sha1: New file.
70266
70267         * m4/hmac-sha1.m4: New file.
70268
70269 2005-10-12  Simon Josefsson  <jas@extundo.com>
70270
70271         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
70272
70273         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
70274
70275 2005-10-12  Simon Josefsson  <jas@extundo.com>
70276
70277         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
70278         suggested by Bruno Haible <bruno@clisp.org>.
70279
70280 2005-10-12  Simon Josefsson  <jas@extundo.com>
70281
70282         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
70283
70284 2005-10-12  Simon Josefsson  <jas@extundo.com>
70285
70286         * lib/gc-pbkdf2-sha1.c: New file.
70287
70288         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
70289
70290 2005-10-12  Simon Josefsson  <jas@extundo.com>
70291
70292         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
70293
70294         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
70295
70296 2005-10-12  Simon Josefsson  <jas@extundo.com>
70297
70298         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
70299         GC_USE_HMAC_MD5, respectively.
70300
70301         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
70302         (gc_md5): Fix typo.
70303
70304         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
70305
70306         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
70307
70308         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
70309
70310 2005-10-12  Bruno Haible  <bruno@clisp.org>
70311
70312         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
70313         Reported by Stepan Kasal <kasal@ucw.cz>.
70314
70315 2005-10-11  Simon Josefsson  <jas@extundo.com>
70316
70317         * tests/test-crc.c: New file.
70318
70319         * modules/crc, modules/crc-tests: New files.
70320
70321 2005-10-11  Simon Josefsson  <jas@extundo.com>
70322
70323         * m4/crc.m4: New file.
70324
70325 2005-10-11  Simon Josefsson  <jas@extundo.com>
70326
70327         * lib/gc.h: Add gc_hash and gc_hash_buffer.
70328
70329         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
70330
70331         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
70332
70333 2005-10-11  Simon Josefsson  <jas@extundo.com>
70334
70335         * lib/crc.h, lib/crc.c: New files.
70336
70337         * lib/gc.h (gc_hash_buffer): Add doc.
70338
70339 2005-10-11  Bruno Haible  <bruno@clisp.org>
70340
70341         * modules/c-strcasestr: New file.
70342         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
70343
70344 2005-10-11  Bruno Haible  <bruno@clisp.org>
70345
70346         * modules/c-strcase: New file.
70347         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
70348
70349 2005-10-11  Bruno Haible  <bruno@clisp.org>
70350
70351         * lib/strcasecmp.c: Include limits.h.
70352         (strcasecmp): Avoid integer overflow on exotic platforms.
70353         * lib/strncasecmp.c: Include limits.h.
70354         (strncasecmp): Avoid integer overflow on exotic platforms.
70355         Reported by Paul Eggert.
70356
70357 2005-10-11  Bruno Haible  <bruno@clisp.org>
70358
70359         * lib/c-strcasestr.h: New file, from GNU gettext.
70360         * lib/c-strcasestr.c: New file, from GNU gettext.
70361
70362 2005-10-11  Bruno Haible  <bruno@clisp.org>
70363
70364         * lib/c-strcase.h: New file, from GNU gettext.
70365         * lib/c-strcasecmp.c: New file, from GNU gettext.
70366         * lib/c-strncasecmp.c: New file, from GNU gettext.
70367
70368 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
70369
70370         * modules/mempcpy (License): GPL -> LGPL.
70371         * modules/strchrnul (License): Likewise.
70372         * modules/sysexits (License): Likewise.
70373
70374 2005-10-08  Simon Josefsson  <jas@extundo.com>
70375
70376         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
70377
70378 2005-10-07  Simon Josefsson  <jas@extundo.com>
70379
70380         * m4/memxor.m4: Remove gl_C_RESTRICT call.
70381
70382 2005-10-06  Simon Josefsson  <jas@extundo.com>
70383
70384         * tests/test-hmac-md5.c: New file.
70385
70386         * modules/hmac-md5-tests: New file.
70387
70388         * modules/hmac-md5: New file.
70389
70390 2005-10-06  Simon Josefsson  <jas@extundo.com>
70391
70392         * m4/hmac-md5.m4: New file.
70393
70394         * m4/memxor.m4: Require gl_C_RESTRICT.
70395
70396 2005-10-06  Simon Josefsson  <jas@extundo.com>
70397
70398         * lib/memxor.c (memxor): Avoid casts and warnings.
70399
70400 2005-10-06  Simon Josefsson  <jas@extundo.com>
70401
70402         * lib/hmac-md5.c: New file.
70403
70404         * lib/hmac.h: New file.
70405
70406 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
70407
70408         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
70409         promotes to int, not unsigned int, to catch the AIX 5.3
70410         compiler bug.
70411
70412 2005-10-05  Simon Josefsson  <jas@extundo.com>
70413
70414         * modules/memxor: New file.
70415
70416         * modules/iconv (Files): Move config.rpath to havelib, it is used
70417         there.
70418
70419         * modules/havelib (Files): Add config.rpath.
70420
70421 2005-10-05  Simon Josefsson  <jas@extundo.com>
70422
70423         * m4/memxor.m4: New file.
70424
70425 2005-10-05  Simon Josefsson  <jas@extundo.com>
70426
70427         * lib/memxor.c (memxor): Fix compiler error.
70428
70429         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
70430         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
70431
70432         * lib/memxor.h, lib/memxor.c: New files.
70433
70434         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
70435         we assume all systems have it, suggested by Jim Meyering
70436         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
70437         any systems lack sys/socket.h; mingw32 is known to lack it, but we
70438         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
70439         same reasons.
70440
70441 2005-10-05  Simon Josefsson  <jas@extundo.com>
70442
70443         * config/srclist.txt: Add glibc bug 1423 for md5.h.
70444
70445 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
70446
70447         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
70448         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
70449         needed, since the source code now assumes these .h files.
70450
70451 2005-10-05  Derek Price  <derek@ximbiot.com>
70452
70453         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
70454
70455 2005-10-05  Bruno Haible  <bruno@clisp.org>
70456
70457         * modules/stdint (License): Change to LGPL.
70458
70459 2005-10-04  Simon Josefsson  <jas@extundo.com>
70460
70461         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
70462         D. Baushke" <mdb@gnu.org>.
70463
70464 2005-10-04  Bruno Haible  <bruno@clisp.org>
70465
70466         * lib/verify.h (verify_true): Provide alternative definition for C++.
70467
70468 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
70469
70470         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
70471         (SSIZE_MAX): New macro, if not already defined.
70472         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
70473         than 2 GiB.
70474
70475 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
70476
70477         Sync from coreutils.
70478         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
70479         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
70480         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
70481         ULLONG_MAX doesn't work with 2.7.2.1.
70482
70483 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
70484
70485         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
70486         From Ben Pfaff.
70487
70488         * modules/exclude (Depends-on): Depend on verify.
70489         * modules/strtoimax (Depends-on): Likewise.
70490         * modules/utimecmp (Depends-on): Likewise.
70491
70492 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
70493
70494         * lib/exclude.c: Include verify.h.
70495         (verify): Remove.  All callers changed to use verify.h's version.
70496         * lib/strtoimax.c: Likewise.
70497         * lib/utimecmp.c: Likewis.e
70498
70499         Sync from coreutils.
70500         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
70501         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
70502         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
70503         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
70504         bother returning ENOSYS if settimeofday or stime fails; just let
70505         them return whatever errno they want to return.
70506         * lib/utimens.c: Include unistd.h, for dup2.
70507         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
70508         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
70509
70510 2005-10-02  Jim Meyering  <jim@meyering.net>
70511
70512         Sync from coreutils.
70513         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
70514         from glibc-2.2.5 that fails for read-only files.
70515
70516 2005-10-02  Jim Meyering  <jim@meyering.net>
70517
70518         Sync from coreutils.
70519         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
70520         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
70521         `#if HAVE_CONFIG_H'.
70522         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
70523         Remove AT_FDCWD test.
70524         Do not consume the fd unless successful.
70525         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
70526         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
70527         block, so that we don't even try to compile it if settimeofday is
70528         available.  This works around a compilation failure on OSF1 V5.1,
70529         due to stime requiring a `long int*' while tv_sec is `int'.
70530
70531 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
70532
70533         Sync from coreutils.
70534         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
70535         against `yes', rather than just testing for nonempty.
70536
70537 2005-10-01  Simon Josefsson  <jas@extundo.com>
70538
70539         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
70540         and Darwin.
70541
70542         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
70543         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
70544         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
70545         freeaddrinfo and gai_strerror are declared by the POSIX headers.
70546         Check if struct addrinfo is declared.
70547
70548 2005-10-01  Simon Josefsson  <jas@extundo.com>
70549
70550         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
70551         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
70552         AI_* and EAI_* definitions.  Protect function declarations.
70553
70554 2005-10-01  Jim Meyering  <jim@meyering.net>
70555
70556         Sync from coreutils.
70557
70558         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
70559         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
70560         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
70561         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
70562         in the inet and nsl libraries.  Required on Solaris 5.7.
70563
70564 2005-10-01  Jim Meyering  <jim@meyering.net>
70565
70566         Sync from coreutils.
70567         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
70568         in the inet and nsl libraries.  Required on Solaris 5.7.
70569
70570 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
70571
70572         * lib/getdelim.c (getdelim): Remove unused variables.
70573
70574 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
70575
70576         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
70577         so that the code works even with ancient cpp.  Portability problem
70578         with GCC 2.7.2.1 reported by Thomas M.Ott.
70579
70580 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
70581
70582         * modules/regex (Depends-on): Add strcase.
70583
70584         * modules/gethostname (Licence): Change from GPL to LGPL, since
70585         gethostname.c is a trivial implementation of a standard library
70586         function.
70587         * modules/poll (License): Change from GPL to LGPL, since it's
70588         derived from LGPL code.
70589
70590 2005-09-27  Jim Meyering  <jim@meyering.net>
70591
70592         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
70593         HAVE_CONFIG_H.
70594
70595         * lib/intprops.h (signed_type_or_expr__): Define.
70596         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
70597         for unsigned types.
70598
70599 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
70600
70601         * lib/verify.h (verify_expr): Remove, replacing with:
70602         (verify_true): New macro that returns true instead of void.
70603         (verify_type__): Remove.
70604         (verify): Use verify_true rather than verify_type__.
70605
70606 2005-09-26  Bruno Haible  <bruno@clisp.org>
70607
70608         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
70609         is necessary.
70610         (lib_SOURCES): Remove mbchar.c.
70611         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
70612         (Files): Add m4/mbrtowc.m4.
70613         * modules/mbiter: Likewise.
70614         * modules/mbuiter: Likewise.
70615
70616 2005-09-26  Bruno Haible  <bruno@clisp.org>
70617
70618         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
70619         compile mbchar.c if they are not both present.
70620         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
70621         * m4/mbiter.m4 (gl_MBITER): Likewise.
70622         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
70623         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
70624         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
70625
70626 2005-09-25  Jim Meyering  <jim@meyering.net>
70627
70628         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
70629         also uses socklen_t.
70630
70631 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
70632
70633         * lib/utimens.c (ENOSYS): Define if not already defined.
70634         (futimens): Support having a null PATH if the file descriptor
70635         is nonnegative.
70636
70637         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
70638         Remove.
70639         (__attribute): Define to empty unless GCC 3.1 or later.
70640         This works around a core dump on OpenBSD 3.4, which has GCC
70641         2.95.3, which dumps core when given __attribute__(()).  It also
70642         simplifies other tests, since we really don't want to bother with
70643         worrying about which ancient version of GCC supported what.
70644         Original problem reported by Yoann Vandoorselaere, with part of
70645         the fix suggested by Derek Price.
70646
70647 2005-09-24  Jim Meyering  <jim@meyering.net>
70648
70649         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
70650         so we can once again use a positive bitfield width of 1 -- now we
70651         don't have to explain why we were using a bitfield width of 2.
70652
70653 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
70654
70655         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
70656         and similarly for the other external symbols.  Problem reported
70657         by James Gallager.
70658
70659         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
70660         bug reported by Jim Meyering.
70661
70662         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
70663         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
70664         not needed, since socklen is a prerequisite module.
70665
70666 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
70667
70668         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
70669         Problem reported by Eric Blake.
70670         (getaddrinfo): Initialize se so that it's not garbage.
70671         Redo internal storage allocation so that it doesn't make unportable
70672         assumptions about alignment.
70673         Fix a memory leak.
70674
70675         * lib/utimens.c (futimens): Use futimesat if available.
70676         Prefer it to futimes since it doesn't have the futimes bug.
70677
70678         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
70679         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
70680         Instead, declare a function that returns a pointer to an array,
70681         and use verify_type__ to declare the size of the array.
70682         Problem and germ of a solution reported by Bruno Haible.
70683         (verify_type__): Use 2, not 1, for bitfield size, to avoid
70684         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
70685
70686 2005-09-23  Jim Meyering  <jim@meyering.net>
70687
70688         Sync from coreutils.
70689         Correct build failure (socklen_t not defined) on at least
70690         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
70691         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
70692
70693 2005-09-23  Jim Meyering  <jim@meyering.net>
70694
70695         * modules/getaddrinfo (Depends-on): Add socklen.
70696
70697 2005-09-23  Bruno Haible  <bruno@clisp.org>
70698
70699         * tests/test-verify.c: New file.
70700
70701 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
70702
70703         Sync from coreutils.
70704
70705         * modules/argmatch (Depends-on): Add verify.
70706         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
70707         unistd-safer.
70708         * modules/save-cwd (Depends-on): Likewise.
70709
70710         * modules/openat (Files): Add lib/openat-die.c.
70711         (Depends-on): Remove error, exitfail.
70712         Add dirname.
70713
70714         * modules/verify: New file.
70715         * MODULES.html.sh (Diagnostics <assert.h>): New section,
70716         with "verify" module.
70717
70718 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
70719
70720         Sync from coreutils.
70721
70722         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
70723         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
70724         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
70725         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
70726         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
70727         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
70728         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
70729         Don't bother checking for string.h, stdlib.h, unistd.h.
70730         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
70731         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
70732         module's job.
70733         * m4/jm-macros.m4 (gl_MACROS): Likewise.
70734         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
70735
70736         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
70737         (gl_GETDATE): Use it.
70738
70739         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
70740
70741 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
70742
70743         Sync from coreutils.
70744
70745         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
70746         stat-time.h.
70747         * lib/argmatch.h: Include verify.h
70748         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
70749         (ARGMATCH_ASSERT): Remove; unused.
70750         * lib/canonicalize.c: Assume STDC_HEADERS.
70751         * lib/exclude.c: Include "strcase.h".
70752         * lib/regex_internal.h [!defined _LIBC]: Likewise.
70753         * lib/getusershell.c: Include stdio--.h rather than stdio.h
70754         and stdio-safer.h.
70755         (getusershell): Call fopen, not fopen_safer.
70756         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
70757         Do not include unistd-safer.h.
70758         (save_cwd): Don't call fd_safer; no longer needed
70759         now that we include fcntl--.h.
70760
70761         * lib/getdate.y (relative_time): New type.
70762         (RELATIVE_TIME_0): New constant.
70763         (parser_control): Use relative_time instead of doing it ourselves.
70764         (%union): Add new relative_time rel member.
70765         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
70766         Now typeless.
70767         (relunit, relunit_snumber): Now of type rel.
70768         (zone, rel, relunit, get_date): Adjust to above changes.
70769
70770         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
70771         Do not include unistd-safer.h.
70772         (getloadavg): Don't call fd_safer; no longer needed
70773         now that we include fcntl--.h.
70774
70775         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
70776         (make_dir_parents): Treat ENOSYS like EEXIST.
70777
70778         Improve quality of diagnostics on restore_cwd failure.
70779         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
70780         (make_dir_parents): Last arg is now int * (for errno), not bool *.
70781         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
70782         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
70783         each time through the loop.  Do not diagnose restore_cwd failure;
70784         that is the caller's job (and perhaps the caller does not care).
70785
70786         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
70787         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
70788         If the file already exists but is not a directory, don't bother
70789         to try to make its parents.
70790         Close potential file descriptor leak if we can't chdir("/") (!).
70791         Don't always return true if chdir($PWD) fails; return true only
70792         if the requested action was done successfully (except for the
70793         chdir($PWD)).
70794         Don't log final directory unless we actually made it.
70795         Refactor to avoid duplicate code to fix up permissions.
70796         Don't attempt to fix up parent permissions if chdir($PWD) fails.
70797
70798         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
70799         to make it a bit faster and (I hope) clearer.
70800         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
70801         Fix bug in formats like %2N.
70802
70803         * lib/verify.h: New file.
70804
70805 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
70806
70807         Sync from coreutils.
70808         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
70809
70810 2005-09-22  Jim Meyering  <jim@meyering.net>
70811
70812         Sync from coreutils.
70813
70814         * m4/lstat.m4 (gl_FUNC_LSTAT):
70815         Use AC_LIBSOURCES to require lstat.c and lstat.h.
70816         Remove obsolete comment.
70817         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
70818         * m4/xstrtod.m4: Likewise.
70819
70820         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
70821
70822 2005-09-22  Jim Meyering  <jim@meyering.net>
70823
70824         Sync from coreutils.
70825
70826         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
70827
70828         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
70829         the .tm_year member, since otherwise gcc-4.0 would now warn about
70830         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
70831
70832         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
70833         order to avoid an unsuppressible warning from gcc on 64-bit systems.
70834
70835         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
70836         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
70837         when run in a time zone for which daylight savings time is in effect
70838         for the starting date.
70839
70840         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
70841         stop us from restricting permissions of just-created absolute-named
70842         directories.
70843         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
70844         to restore initial working directory.
70845         * lib/mkdir-p.c (make_dir_parents): New parameter:
70846         different_working_dir, to tell caller if/when we change the working
70847         directory and are unable to return to the initial one.
70848         * lib/mkdir-p.h (make_dir_parents): Update prototype.
70849         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
70850         `return false'.  This fixes a bug introduced on 2004-07-30.
70851
70852         * lib/openat.c (fdopendir): Be sure to close the supplied
70853         file descriptor before returning.  This makes our replacement
70854         implementation a little closer to Solaris's, where fdopendir
70855         ties the file descriptor to the returned DIR* pointer.
70856         * lib/openat.c (unlinkat): New function.
70857         * lib/openat.h (unlinkat): Add prototype.
70858         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
70859         (openat_restore_fail): Rename from openat_restore_die.
70860         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
70861
70862         Provide an alternative to exiting immediately upon save_cwd or
70863         restore_cwd failure.  Now, an application can arrange e.g.,
70864         to perform a longjump in that case.
70865         * lib/openat.c: Include dirname.h.
70866         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
70867         (rpl_openat, fdopendir, fstatat): Call openat_save_die
70868         and openat_restore_die rather than calling error directly.
70869         Don't include "error.h" or "exitfail.h"; they're no longer needed.
70870
70871         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
70872         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
70873         define.
70874
70875         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
70876         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
70877                             int utc, int nanoseconds);
70878         Background:
70879         date should not have to allocate a megabyte of virtual memory to
70880         handle a format argument like +%1048575T.  When implemented with
70881         strftime, it must allocate such a buffer, use strftime to fill it
70882         in, print it, then free it.
70883         With fprintftime, it simply prints everything and exits.
70884         With no need for memory allocation, that's one fewer way to fail.
70885         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
70886         optional field width, not before, so we accept %9:z, not %:9z.
70887         (my_strftime): Be sure to use L_('x') for literals.
70888
70889         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
70890         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
70891         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
70892         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
70893         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
70894         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
70895         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
70896         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
70897         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
70898         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
70899         * lib/xgethostname.c, lib/xreadlink.c:
70900         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
70901
70902         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
70903         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
70904         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
70905         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
70906         and don't include <sys/file.h>).
70907
70908 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
70909
70910         Sync from coreutils.
70911
70912         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
70913         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
70914         [!LDAV_DONE]: Avoid unused variable warning.
70915
70916 2005-09-21  Bruno Haible  <bruno@clisp.org>
70917
70918         * lib/unicodeio.h (unicode_to_mb): New declaration.
70919
70920 2005-09-20  Derek Price  <derek@ximbiot.com>
70921
70922         * lib/getaddrinfo.c: Don't include <netdb.h> included from
70923         getaddrinfo.h.
70924
70925 2005-09-20  Bruno Haible  <bruno@clisp.org>
70926
70927         * gnulib-tool: Remove trailing slashes from the values specified for
70928         --source-base, --m4-base, --tests-base, --aux-dir.
70929         Suggested by Simon Josefsson <jas@extundo.com>.
70930
70931 2005-09-20  Bruno Haible  <bruno@clisp.org>
70932
70933         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
70934         func_modules_to_filelist, func_import, func_create_testdir): Make all
70935         sorting results locale-independent, so that gnulib-cache.m4 doesn't
70936         change when gnulib-tool is invoked in a different locale.
70937
70938 2005-09-19  Simon Josefsson  <jas@extundo.com>
70939
70940         * m4/socklen.m4: Fix typo.
70941
70942 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70943
70944         Use a consistent style for including <config.h>.
70945         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
70946         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
70947         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
70948         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
70949         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
70950         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
70951         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
70952         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
70953         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
70954         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
70955         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
70956         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
70957         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
70958         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
70959         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
70960         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
70961         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
70962         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
70963         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
70964         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
70965         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
70966         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
70967         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
70968         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
70969         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
70970         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
70971         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
70972         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
70973         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
70974         lib/xstrtoumax.c, lib/yesno.c:
70975         Standardize inclusion of config.h.
70976         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
70977         lib/inttostr.h:  Removed inclusion of config.h from header files.
70978         * lib/inttostr.c:  Adjusted in-tree users.
70979         * lib/timespec.h: Remove superfluous warning to include config.h.
70980         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
70981         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
70982         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
70983         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
70984         config.h with HAVE_CONFIG_H.
70985
70986 2005-09-19  Jim Meyering  <jim@meyering.net>
70987
70988         * modules/pathmax (License): Change to LGPL.
70989
70990 2005-09-19  Derek Price  <derek@ximbiot.com>
70991
70992         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
70993
70994 2005-09-19  Bruno Haible  <bruno@clisp.org>
70995
70996         * gnulib-tool (import): Provide default for --tests-base.
70997
70998 2005-09-19  Bruno Haible  <bruno@clisp.org>
70999
71000         * doc/quote.texi: New file, extracted from gnulib.texi.
71001         * doc/ctime.texi: New file, extracted from gnulib.texi.
71002         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
71003         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
71004         * doc/gnulib.texi: Include them.
71005
71006 2005-09-18  Bruno Haible  <bruno@clisp.org>
71007
71008         Portability fix.
71009         * gnulib-tool (func_readlink): New function.
71010         (func_ln_if_changed): Use it.
71011
71012 2005-09-18  Bruno Haible  <bruno@clisp.org>
71013
71014         * gnulib-tool: Support --with-tests also with --import.
71015         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
71016         (func_import): Use variables $testsbase and $inctests. Emit a
71017         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
71018         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
71019         SUBDIRS += $testsdir.
71020         (func_create_testdir): Update.
71021
71022 2005-09-18  Bruno Haible  <bruno@clisp.org>
71023
71024         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
71025         instead of $dry_run.
71026         (func_cp_if_changed, func_mv_if_changed): Remove functions.
71027         (func_ln_if_changed): Don't handle dry-run here.
71028         (func_import): In dry-run mode, detect more precisely which actions
71029         would be performed, and don't use "...ing" verbs.
71030
71031 2005-09-18  Bruno Haible  <bruno@clisp.org>
71032
71033         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
71034         (func_import): Use join on two temporary files instead of three nested
71035         loops, in order to determine which files are new or old.
71036
71037 2005-09-18  Bruno Haible  <bruno@clisp.org>
71038
71039         * gnulib-tool (func_import): Comment out code that spits out the
71040         new files with --dry-run.
71041
71042 2005-09-18  Bruno Haible  <bruno@clisp.org>
71043
71044         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
71045
71046 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
71047
71048         * lib/stat-time.h: New file.
71049         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
71050         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
71051         in a different way.
71052         (timespec_cmp): New function.
71053         * lib/utimecmp.c: Include stat-time.h.
71054         (SYSCALL_RESOLUTION): Depend on whether various struct stat
71055         members exist, not on the obsolescent ST_MTIM_NSEC.
71056         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
71057
71058 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
71059
71060         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
71061
71062 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
71063
71064         * MODULES.html.sh (File system functions): Add stat-time.
71065         * modules/stat-time: New file.
71066         * modules/timespec (Files): Remove m4/st_mtim.m4; this
71067         is now done in a different way, by the stat-time module.
71068         * modules/utimecmp (Depends-on): Add stat-time.
71069
71070 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
71071
71072         * m4/st_mtim.m4: Remove.  Superseded by...
71073         * m4/stat-time.m4: New file.
71074         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
71075         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
71076
71077 2005-09-15  Derek Price  <derek@ximbiot.com>
71078
71079         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
71080
71081 2005-09-15  Derek Price  <derek@ximbiot.com>
71082
71083         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
71084         * lib/regex_internal.c: Ditto, using this...
71085         (__GNUC_PREREQ): ...new macro.
71086         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
71087         using...
71088         (__GNUC_PREREQ): ...this new macro.
71089
71090         * lib/strstr.h: Include string.h. Define strstr as a macro here.
71091
71092 2005-09-15  Derek Price  <derek@ximbiot.com>
71093             Paul Eggert  <eggert@cs.ucla.edu>
71094
71095         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
71096         changes, consolidating in...
71097         * lib/regex_internal.h: ...this file.
71098
71099 2005-09-13  Jim Meyering  <jim@meyering.net>
71100
71101         * lib/canon-host.c: Filter through gnu indent and reword comments
71102         slightly.
71103         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
71104
71105 2005-09-13  Derek Price  <derek@ximbiot.com>
71106
71107         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
71108         failure.
71109         Reported by Jim Meyering  <jim@meyering.net>.
71110
71111 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
71112
71113         * lib/base64.c: Typo.
71114         (base64_encode): Put b64str in initialized data section.
71115
71116 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
71117
71118         Merge glibc and coreutils changes into gnulib, plus a few
71119         extra fixes.
71120         * lib/md5.c: Use #error rather than a string.
71121         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
71122         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
71123         (__attribute__): Define to empty for non recent-GCC.
71124         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
71125         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
71126         Renamed from their non-__ counterparts, with new macros replacing
71127         them if not _LIBC.  Add __THROW attribute.
71128         (rol): Remove.
71129         (struct md5_ctx): Align buffer if using GCC.
71130         * lib/sha1.h (struct sha1_ctx): Likewise.
71131         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
71132         The old name was backwards.
71133         (NOTSWAP): Remove; not used.
71134         (rol): New macro, moved here from md5.h.
71135         (sha1_process_block): Remove a FIXME that doesn't make sense.
71136
71137 2005-09-12  Derek Price  <derek@ximbiot.com>
71138
71139         Return usable errors from canon-host.
71140         * lib/canon-host.h: New file.
71141         * lib/canon-host.c (canon_host): Wrap...
71142         (canon_host_r): ...this new function, which now relies exclusively on
71143         getaddrinfo.
71144         (ch_strerror): New function.
71145         (last_cherror): New global.
71146         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
71147         interface.
71148         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
71149         void *.
71150         (freeaddrinfo): Free ai->ai_canonname when set.
71151
71152 2005-09-12  Derek Price  <derek@ximbiot.com>
71153
71154         Make canon-host require getaddrinfo.
71155         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
71156         AC_LIBSOURCE canon-host.h.  Call...
71157         (gl_PREREQ_CANON_HOST): ...this new function, which requires
71158         gl_GETADDRINFO.
71159         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
71160
71161 2005-09-12  Derek Price  <derek@ximbiot.com>
71162
71163         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
71164         LGPL.
71165         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
71166
71167 2005-09-12  Derek Price  <derek@ximbiot.com>
71168
71169         * lib/gai_strerror.c: Include config.h when available.  Include
71170         getaddrinfo.h before other headers to test interface.
71171         Reported by Larry Jones <lawrence.jones@ugs.com>.
71172
71173 2005-09-12  Derek Price  <derek@ximbiot.com>
71174             Paul Eggert  <eggert@cs.ucla.edu>
71175
71176         * modules/glob (Files): Add glob-libc.h.
71177
71178 2005-09-12  Derek Price  <derek@ximbiot.com>
71179             Paul Eggert  <eggert@cs.ucla.edu>
71180
71181         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
71182         glob_.h, glob-libc.h.
71183         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
71184
71185 2005-09-12  Derek Price  <derek@ximbiot.com>
71186             Paul Eggert  <eggert@cs.ucla.edu>
71187
71188         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
71189         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
71190         protecting things that should be done only in gnulib contexts.
71191         * lib/glob_.h: New file, containing only the glob things needed for
71192         gnulib.
71193         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
71194         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
71195         (glob, globfree, glob_pattern_p): Now defined simply in terms of
71196         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
71197         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
71198         and to respect the namespace rules better.
71199
71200 2005-09-08  Simon Josefsson  <jas@extundo.com>
71201
71202         * modules/socklen: New file.
71203
71204 2005-09-08  Simon Josefsson  <jas@extundo.com>
71205
71206         * m4/socklen.m4: New file.
71207
71208 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
71209
71210         * modules/utimens (Files): Add m4/utimbuf.m4, since
71211         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
71212         Reported by Sergey Poznyakoff.
71213
71214 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
71215
71216         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
71217         definitions, since that's the preferred style in glibc.
71218         Fix a minor spacing issue, and update copyright notice to match
71219         glibc's.
71220
71221 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
71222
71223         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
71224
71225 2005-09-06  Simon Josefsson  <jas@extundo.com>
71226
71227         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
71228         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
71229
71230 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
71231
71232         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
71233         warning.
71234
71235 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
71236
71237         * config/srclist.txt: Add glibc bug 1302.
71238
71239 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
71240
71241         Change bitset word type from unsigned int to unsigned long int,
71242         as this has better performance on typical 64-bit hosts.
71243         Port bitset code to hosts with unusual word sizes.
71244         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
71245         (build_collating_symbol):
71246         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
71247         argument is a bitset.  This is merely a style issue, but it makes
71248         it clearer that an entire array is expected.
71249         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
71250         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
71251         Port to the case where bitset_word is not the same as unsigned int.
71252         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
71253         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
71254         Likewise.
71255         * lib/regexec.c (check_dst_limits_calc_pos_1,
71256         check_subexp_matching_top):
71257         (build_trtable, group_nodes_into_DFAstates):
71258         Likewise.
71259         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
71260         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
71261         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
71262         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
71263         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
71264         * lib/regcomp.c (optimize_subexps, lower_subexp):
71265         Work even if bitset_word has holes in its bitwise representation.
71266         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
71267         * lib/regexec.c (check_dst_limits_calc_pos_1,
71268         check_subexp_matching_top):
71269         Likewise.
71270         * lib/regex_internal.c (re_string_reconstruct):
71271         Don't assume UCHAR_MAX == 255.
71272         * lib/regex_internal.h (bitset_set_all): Likewise.
71273         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
71274         All uses changed.
71275         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
71276         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
71277         All uses changed.
71278         (BITSET_WORD_MAX): New macro.
71279         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
71280         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
71281         (bitset_empty, bitset_copy):
71282         Prefer sizeof (bitset) to multiplying it out ourselves.
71283         (bitset_not_merge): Remove; unused.
71284         (bitset_contain): Return bool, not unsigned int with one bit on.
71285         All callers changed.
71286         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
71287         alignment than re_node_set; do this by defining a new internal
71288         type struct dests_alloc and using it to allocate memory.
71289
71290 2005-09-05  Bruno Haible  <bruno@clisp.org>
71291
71292         * gnulib-tool (func_import): Fix comparison in handling of symbolic
71293         links.
71294
71295 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
71296
71297         * modules/size_max (Makefile.am): Add size_max.h
71298
71299 2005-09-04  Derek Price  <derek@ximbiot.com>
71300
71301         * gnulib-tool (func_import): Fix reversed $symbolic logic.
71302
71303 2005-09-03  Simon Josefsson  <jas@extundo.com>
71304
71305         * gnulib-tool: Fix typo.
71306
71307 2005-09-03  Simon Josefsson  <jas@extundo.com>
71308
71309         * config/srclist.txt: Add glibc bug 1293.
71310
71311 2005-09-03  Derek Price  <derek@ximbiot.com>
71312
71313         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
71314         From Larry Jones <lawrence.jones@ugs.com>.
71315
71316 2005-09-02  Simon Josefsson  <jas@extundo.com>
71317
71318         * modules/socklen: New file.
71319
71320 2005-09-02  Simon Josefsson  <jas@extundo.com>
71321
71322         * modules/havelib: New module.
71323
71324         * modules/gettext, modules/iconv, modules/lock, modules/readline:
71325         Use havelib.
71326
71327 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
71328
71329         Check for arithmetic overflow when calculating sizes, to prevent
71330         some buffer-overflow issues.  These patches are conservative, in the
71331         sense that when I couldn't determine whether an overflow was possible,
71332         I inserted a run-time check.
71333         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
71334         macros.
71335         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
71336         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
71337         (re_xnrealloc, re_x2nrealloc): New inline functions.
71338         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
71339         parse_bracket_exp):
71340         (build_equiv_class, build_charclass): Check for arithmetic overflow
71341         in size expression calculations.
71342         * lib/regex_internal.c (re_string_realloc_buffers):
71343         (build_wcs_upper_buffer, re_node_set_add_intersect):
71344         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
71345         (re_dfa_add_node, register_state): Likewise.
71346         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
71347         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
71348         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
71349         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
71350
71351 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
71352
71353         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
71354         m4/ulonglong.m4.  Problem reported by Martin Lambers.
71355
71356 2005-09-02  Bruno Haible  <bruno@clisp.org>
71357
71358         Support for lib vs. lib64 distinction on biarch platforms.
71359         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
71360         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
71361         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
71362
71363 2005-09-02  Bruno Haible  <bruno@clisp.org>
71364
71365         * gnulib-tool (import): In the other first-use case, provide defaults
71366         as well.
71367
71368 2005-09-02  Bruno Haible  <bruno@clisp.org>
71369
71370         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
71371         patches not yet found in the latest gettext release.
71372
71373 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
71374
71375         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
71376         to avoid a collision with bits/local_lim.h in glibc.
71377         All uses changed.  Problem reported by Dmitry V. Levin in
71378         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
71379
71380         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
71381         bugs in int versus size_t comparisons.
71382         (re_string_context_at): Fix bug where the code assumed that
71383         Idx is signed.
71384
71385         Use bool where appropriate.
71386         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
71387         All callers changed.
71388         (calc_eclosure_iter): Likewise, for ROOT arg.
71389         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
71390         (build_charclass_op): Likewise, for NON_MATCH arg.
71391         * lib/regex_internal.c (re_string_allocate, re_string_construct):
71392         (re_string_construct_common): Likewise, for ICASE arg.
71393         * lib/regexec.c (re_search_2_stub, re_search_stub):
71394         Likewise, for RET_LEN arg.
71395         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
71396         (set_regs): Likewise, for FL_BACKTRACK arg.
71397         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
71398         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
71399         (calc_eclosure_iter, parse_bracket_exp):
71400         Use bool for internal variables that are booleans.
71401         * lib/regexec.c (re_search_internal, check_matching,
71402         proceed_next_node):
71403         (set_regs, build_sifted_states, sift_states_bkref):
71404         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
71405         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
71406         (find_collation_sequence_value):
71407         Likewise.
71408         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
71409         (re_node_set_compare):
71410         Return bool, not int. All callers changed.
71411         * lib/regexec.c (check_halt_node_context, check_dst_limits):
71412         (build_trtable, check_node_accept): Likewise.
71413         * lib/regex_internal.h: Include stdbool.h.
71414
71415         Fix bugs uncovered when converting to bool.
71416         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
71417         failure instead of charging ahead blindly.
71418         * lib/regex_internal.c (register_state): Likewise.
71419         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
71420         for freeing internal storage.
71421         (group_nodes_into_DFA_states): Use unsigned int, not int, for
71422         bitset pieces used as boolean, to avoid undefined behavior
71423         on hosts that do int overflow checking.
71424
71425 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
71426
71427         * config/srclist.txt: Add glibc bugs 1285-1287.
71428
71429 2005-09-01  Jim Meyering  <jim@meyering.net>
71430
71431         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
71432         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
71433         Require gl_STAT_MACROS, too.
71434
71435 2005-09-01  Bruno Haible  <bruno@clisp.org>
71436
71437         * gnulib-tool (import): In the first-use case, provide defaults.
71438
71439 2005-09-01  Bruno Haible  <bruno@clisp.org>
71440
71441         * gnulib-tool (func_import): Remove the .tmp files.
71442
71443 2005-09-01  Bruno Haible  <bruno@clisp.org>
71444
71445         * gnulib-tool (func_import): Fix handling of symbolic links.
71446
71447 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71448
71449         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
71450         old glibc regex code mishandles strings longer than 2**31 bytes.
71451         This patch fixes this when the regex code is used in gnulib
71452         (i.e., outside glibc).
71453
71454         This patch should not affect the use of the regex code inside
71455         glibc.  No doubt this problem also needs to be handled for glibc
71456         as well, but the result will be an incompatible change to the
71457         glibc ABI, and the old ABI will have to be supported too.  That
71458         can be the the subject for another patch.
71459
71460         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
71461         governing whether the rest of this patch is active.  By default,
71462         the macro is disabled and the patch has no effect.
71463         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
71464         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
71465         (struct re_pattern_buffer, re_search, re_search_2, re_match):
71466         (re_match_2, re_set_registers): Use the new types.
71467         * lib/regex_internal.h (Idx, re_hashval_t): New types.
71468         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
71469         New macros.
71470         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
71471         (re_string_context_at, bin_tree_t, re_dfastate_t):
71472         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
71473         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
71474         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
71475         (re_string_char_size_at, re_string_wchar_at):
71476         (re_string_elem_size_at):
71477         Use the new types and macros to port to 64-bit hosts.
71478         Use unsigned types for internal values, so that the code
71479         mostly works even for arrays larger than SSIZE_MAX.
71480         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
71481         (search_duplicated_node, calc_eclosure_iter, fetch_number):
71482         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
71483         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
71484         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
71485         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
71486         (calc_inveclosure, parse_dup_op, build_range_exp):
71487         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
71488         (fetch_number, create_token_tree, mark_opt_subexp):
71489         Likewise.
71490         * lib/regex_internal.c (re_string_construct_common,
71491         create_ci_newstate):
71492         (create_cd_newstate, re_string_allocate, re_string_construct):
71493         (re_string_realloc_buffers, build_wcs_upper_buffer):
71494         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
71495         (re_string_reconstruct, re_string_peek_byte_case):
71496         (re_string_fetch_byte_case, re_string_context_at):
71497         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
71498         (re_node_set_init_copy, re_node_set_add_intersect):
71499         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
71500         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
71501         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
71502         (re_acquire_state, re_acquire_state_context, register_state):
71503         Likewise.
71504         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
71505         search_cur_bkref_entry):
71506         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
71507         (re_search_internal, re_search_2_stub, re_search_stub)
71508         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
71509         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
71510         (update_cur_sifted_state, check_dst_limits):
71511         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
71512         (check_subexp_limits, sift_states_bkref, merge_state_array):
71513         (check_subexp_matching_top, get_subexp, get_subexp_sub):
71514         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
71515         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
71516         (expand_bkref_cache, check_node_accept_bytes):
71517         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
71518         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
71519         (acquire_init_state_context, check_halt_node_context):
71520         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
71521         (sift_states_backward, clean_state_log_if_needed):
71522         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
71523         (find_recover_state, transit_state_sb, transit_state_mb):
71524         (transit_state_bkref, build_trtable, match_ctx_clean):
71525         Likewise.
71526         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
71527         to work around an assumption that REG_MISSING is negative.
71528
71529         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
71530         (seek_collating_symbol_entry) [defined _LIBC]:
71531         (lookup_collation_sequence_value) [defined _LIBC]:
71532         (build_range_exp, build_collating_symbol) [defined _LIBC]:
71533         Use prototypes rather than old-style function definitions.
71534         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
71535         (transit_state_sb) [0]:
71536         (find_collation_sequence_value) [defined _LIBC]: Likewise.
71537
71538         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
71539         rm_eo.
71540
71541         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
71542         (optimize_subexps, lower_subexp):
71543         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
71544         since the signed shift might overflow.  Use 1u<<31 instead.
71545         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
71546         Likewise.
71547         * lib/regexec.c (check_dst_limits_calc_pos_1,
71548         check_subexp_matching_top): Likewise.
71549
71550         * lib/regcomp.c (optimize_subexps, lower_subexp):
71551         Use CHAR_BIT rather than 8, for clarity.
71552         * lib/regexec.c (check_dst_limits_calc_pos_1):
71553         (check_subexp_matching_top): Likewise.
71554         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
71555         have to worry about portability issues when shifting it left.
71556         Remove no-longer-needed test for table_size > 0.
71557         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
71558         in a word, as the resulting behavior is undefined.
71559         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
71560         in one case, a <= should have been an <, and in another case the
71561         whole test was missing.
71562         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
71563         the standard name CHAR_BIT.
71564         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
71565         this is not true on one's complement and signed-magnitude hosts.
71566
71567         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
71568         next_last_offset.
71569         (struct re_dfa_t): Remove unused member states_alloc.
71570         * lib/regcomp.c (init_dfa): Don't initialize unused members.
71571
71572 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71573
71574         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
71575         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
71576         and large-file glibc and in 32-bit large-file Solaris.
71577
71578 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71579
71580         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
71581         lengths fit in regoff_t; this isn't true if regoff_t is the same
71582         width as size_t.
71583         * lib/regex.c (re_search_internal): 5th arg is LAST_START
71584         (= START + RANGE) instead of RANGE.  This avoids overflow
71585         problems when regoff_t is the same width as size_t.
71586         All callers changed.
71587         (re_search_2_stub): Check for overflow when adding the
71588         sizes of the two strings.
71589         (re_search_stub): Check for overflow when adding START
71590         to RANGE; if it occurs, substitute the extreme value.
71591
71592 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71593
71594         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
71595
71596 2005-08-31  Jim Meyering  <jim@meyering.net>
71597
71598         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
71599         a pointer-to-const.
71600         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
71601         (register_state): Likewise.
71602         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
71603         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
71604         (group_nodes_into_DFAstates): Likewise.
71605
71606 2005-08-31  Jim Meyering  <jim@meyering.net>
71607
71608         * check-module: Add a FIXME comment.
71609
71610 2005-08-31  Eric Blake  <ebb9@byu.net>
71611
71612         * modules/unistd-safer (Files): Add unistd--.h.
71613         * modules/stdio-safer (Files): Add stdio--.h.
71614
71615 2005-08-31  Derek Price  <derek@ximbiot.com>
71616
71617         * lib/getdelim.c (getdelim): Return EOF on EOF.
71618         Reported by Larry Jones <lawrence.jones@ugs.com>.
71619
71620 2005-08-31  Bruno Haible  <bruno@clisp.org>
71621
71622         Avoid unnecessary diffs in the generated lib/Makefile.am.
71623         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
71624         the generated files.
71625         (func_import): Don't set cmd.
71626
71627 2005-08-31  Bruno Haible  <bruno@clisp.org>
71628
71629         * lib/strstr.c: Include <stddef.h>, for NULL.
71630         * lib/strcasestr.c: Likewise.
71631         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
71632
71633 2005-08-31  Bruno Haible  <bruno@clisp.org>
71634
71635         * gnulib-tool: New option --macro-prefix.
71636         (func_import): Use macro_prefix.
71637         (import): Handle option --macro-prefix.
71638
71639 2005-08-31  Bruno Haible  <bruno@clisp.org>
71640
71641         * gnulib-tool (import): Rename most ac_* variables to cached_*.
71642         Also use new variables cached_lgpl, cached_libtool.
71643
71644 2005-08-31  Bruno Haible  <bruno@clisp.org>
71645
71646         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
71647         always instantiating them.
71648
71649 2005-08-31  Bruno Haible  <bruno@clisp.org>
71650
71651         * gnulib-tool (func_import): Read the previous cached settings
71652         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
71653         earlier added by gnulib but are now dropped. Warn when a gnulib file
71654         overwrites a non-gnulib file.
71655
71656 2005-08-31  Bruno Haible  <bruno@clisp.org>
71657
71658         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
71659         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
71660         projects that don't keep autogenerated files in CVS. Put into
71661         actioncmd only the specified modules, not the transitive closure.
71662
71663 2005-08-31  Bruno Haible  <bruno@clisp.org>
71664
71665         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
71666         Create directories that shall be filled.
71667         (import): Don't look for gl_* macros in configure.ac. Recurse across
71668         all directories containing a gnulib-cache.m4 files, if meaningful.
71669
71670 2005-08-31  Bruno Haible  <bruno@clisp.org>
71671
71672         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
71673         (import): Set seen_libtool when we see gl_LIBTOOL.
71674
71675 2005-08-31  Bruno Haible  <bruno@clisp.org>
71676
71677         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
71678         declaration macro definitions from generated gnulib.m4.
71679
71680 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
71681
71682         * lib/iconvme.h: Add prototype for iconv_alloc.
71683
71684 2005-08-29  Simon Josefsson  <jas@extundo.com>
71685
71686         * lib/iconvme.c: Fix errno.
71687
71688 2005-08-29  Bruno Haible  <bruno@clisp.org>
71689
71690         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
71691         that it works when the directory contains spaces.
71692
71693 2005-08-29  Bruno Haible  <bruno@clisp.org>
71694
71695         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
71696
71697 2005-08-29  Bruno Haible  <bruno@clisp.org>
71698
71699         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
71700         Emit more advice.
71701
71702 2005-08-29  Bruno Haible  <bruno@clisp.org>
71703         and Stepan Kasal  <kasal@ucw.cz>
71704
71705         * check-module: If more parameters are given, check each of them
71706         separately; add more exceptions, as noted by Jim Meyering.
71707         (check_module): New procedure.
71708         (%exempt_header): Now contains all exceptions.
71709
71710 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
71711
71712         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
71713
71714 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
71715
71716         * lib/iconvme.c: Split iconv_string into iconv_alloc.
71717
71718 2005-08-28  Bruno Haible  <bruno@clisp.org>
71719
71720         * m4/gnulib-tool.m4: New file.
71721
71722 2005-08-27  Jim Meyering  <jim@meyering.net>
71723
71724         * modules/unistd-safer (Files): Add pipe-safer.c.
71725         * modules/fcntl-safer (Files): Add creat-safer.c.
71726
71727 2005-08-27  Jim Meyering  <jim@meyering.net>
71728
71729         * m4/stdlib-safer.m4: New file.  From coreutils.
71730         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
71731         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
71732         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
71733         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
71734         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
71735
71736 2005-08-27  Jim Meyering  <jim@meyering.net>
71737
71738         * lib/fopen-safer.c: Merge minor changes from coreutils.
71739         * lib/dup-safer.c: Likewise.
71740         * lib/fd-safer.c: Likewise.
71741
71742         Merge from coreutils.
71743         * lib/stdio--.h: New file.
71744         * lib/stdlib--.h: New file.
71745         * lib/mkstemp-safer.c: New file.
71746
71747         GNU tar needs these.
71748         * lib/pipe-safer.c: New file.
71749         * lib/creat-safer.c: New file.
71750         * lib/fcntl--.h (creat): Define to creat_safer.
71751         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
71752         * lib/unistd--.h (pipe): Define to pipe_safer.
71753         * lib/unistd-safer.h: Declare pipe_safer.
71754
71755 2005-08-26  Simon Josefsson  <jas@extundo.com>
71756
71757         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
71758         Haible <bruno@clisp.org>.
71759
71760 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
71761
71762         * lib/regex_internal.h: Remove all references to
71763         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
71764         or better.
71765         (bitset_not, bitset_merge, bitset_not_merge):
71766         (bitset_mask, re_string_allocate, re_string_construct):
71767         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
71768         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
71769         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
71770         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
71771         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
71772         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
71773         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
71774         (re_acquire_state_context):
71775         Remove unnecessary forward decls.
71776         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
71777         Put __attribute at function definition,
71778         now that the function decl has been removed.
71779         * lib/regex_internal.c (re_string_peek_byte_case):
71780         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
71781         Likewise.
71782
71783 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
71784
71785         * m4/regex.m4: Add AC_PREREQ(2.50).
71786         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
71787
71788 2005-08-25  Simon Josefsson  <jas@extundo.com>
71789
71790         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
71791         __fsetlocking.
71792
71793 2005-08-25  Simon Josefsson  <jas@extundo.com>
71794
71795         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
71796         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
71797         GLIBC specific code.
71798
71799 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71800
71801         Make regex safe for g++.  This fixes one real bug (an "err"
71802         that should have been "*err").  g++ problem reported by
71803         Sam Steingold.
71804         * lib/regex_internal.h (re_calloc): New macro, consistent with
71805         re_malloc etc.  All callers of calloc changed to use re_calloc.
71806         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
71807         not int.  All callers changed.
71808         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
71809         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
71810         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
71811         (find_recover_state): Change "err" to "*err"; this fixes what
71812         appears to be a real bug.
71813         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
71814         versus int.
71815
71816 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71817
71818         * modules/regex (Depends-on): Add malloc, since the code
71819         assumes that !malloc(0) means failure.
71820
71821 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71822
71823         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
71824
71825         alloca modernization/simplification for regex.
71826         * lib/regex.c: Remove portability cruft for alloca.  This no longer
71827         needs to be at the start of the file, and can be moved into
71828         regex_internal.h and simplified.
71829         * lib/regex_internal.h: Include <alloca.h>.
71830         (__libc_use_alloca) [!defined _LIBC]: New macro.
71831         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
71832         now works outside glibc.
71833
71834 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71835
71836         * config/srclist.txt: Add glibc bugs 1241, 1245.
71837
71838 2005-08-25  Jim Meyering  <jim@meyering.net>
71839
71840         * lib/open-safer.c: Include <config.h>.
71841         Otherwise, we'd lose LARGEFILE support in any file using
71842         e.g. "fcntl--.h"
71843
71844 2005-08-25  Bruno Haible  <bruno@clisp.org>
71845
71846         * m4/minmax.m4: Require autoconf 2.52.
71847         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
71848         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
71849         alternatives of translit over the alphabet.
71850         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
71851
71852 2005-08-24  Simon Josefsson  <jas@extundo.com>
71853
71854         * tests/test-getpass.c: New file.
71855
71856 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
71857
71858         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
71859         for GNU regex features.
71860
71861 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
71862
71863         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
71864         * lib/regex.h (regerror): Likewise.
71865
71866         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
71867         requires this.  (The code never needed it.)
71868
71869         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
71870         All uses of recently-renamed identifiers changed to use the new,
71871         POSIX-compliant names.  The code will build and run just fine
71872         without these changes, but it's better to eat our own dog food
71873         and use the standard-conforming names.
71874
71875         * lib/regex.h: Fix a multitude of POSIX name space violations.
71876         These changes have an effect only for programs that define
71877         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
71878         do not change anything for programs compiled in the normal way.
71879         Also, there is no effect on the ABI.
71880
71881         (_REGEX_SOURCE): New macro.
71882         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
71883         defined and _GNU_SOURCE is not; this fixes a name space violation.
71884
71885         Rename the following macros to obey POSIX requirements.
71886         The old names are still visible as macros if _REGEX_SOURCE is defined.
71887         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
71888         RE_BACKSLASH_ESCAPE_IN_LISTS.
71889         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
71890         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
71891         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
71892         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
71893         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
71894         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
71895         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
71896         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
71897         (REG_INTERVALS): renamed from RE_INTERVALS.
71898         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
71899         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
71900         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
71901         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
71902         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
71903         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
71904         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
71905         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
71906         RE_UNMATCHED_RIGHT_PAREN_ORD.
71907         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
71908         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
71909         (REG_DEBUG): renamed from RE_DEBUG.
71910         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
71911         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
71912         unusual, since we can't clash with the POSIX REG_ICASE.
71913         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
71914         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
71915         (REG_NO_SUB): renamed from RE_NO_SUB.
71916         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
71917         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
71918         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
71919         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
71920         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
71921         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
71922         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
71923         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
71924         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
71925         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
71926         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
71927         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
71928         RE_SYNTAX_POSIX_MINIMAL_BASIC.
71929         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
71930         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
71931         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
71932         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
71933         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
71934         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
71935         (REG_FIXED): Renamed from REGS_FIXED.
71936         (REG_NREGS): Renamed from RE_NREGS.
71937
71938         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
71939         of other REG_* macros, since POSIX says the user is allowed to
71940         #undef these macros selectively.
71941
71942         (reg_errcode_t): Update comment stating what other tables need
71943         to be consistent.
71944
71945         Rename the following enum values to obey POSIX requirements.
71946         The old names are still visible as macros.
71947         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
71948         is not defined, since GNU is supposed to be a superset of POSIX as
71949         much as possible, and since we want reg_errcode_t to be a signed
71950         type for implementation consistency.
71951         (_REG_NOERROR): Renamed from REG_NOERROR.
71952         (_REG_NOMATCH): Renamed from REG_NOMATCH.
71953         (_REG_BADPAT): Renamed from REG_BADPAT.
71954         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
71955         (_REG_ECTYPE): Renamed from REG_ECTYPE.
71956         (_REG_EESCAPE): Renamed from REG_EESCAPE.
71957         (_REG_ESUBREG): Renamed from REG_ESUBREG.
71958         (_REG_EBRACK): Renamed from REG_EBRACK.
71959         (_REG_EPAREN): Renamed from REG_EPAREN.
71960         (_REG_EBRACE): Renamed from REG_EBRACE.
71961         (_REG_BADBR): Renamed from REG_BADBR.
71962         (_REG_ERANGE): Renamed from REG_ERANGE.
71963         (_REG_ESPACE): Renamed from REG_ESPACE.
71964         (_REG_BADRPT): Renamed from REG_BADRPT.
71965         (_REG_EEND): Renamed from REG_EEND.
71966         (_REG_ESIZE): Renamed from REG_ESIZE.
71967         (_REG_ERPAREN): Renamed from REG_ERPAREN.
71968         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
71969         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
71970         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
71971         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
71972
71973         (_REG_RE_NAME, _REG_RM_NAME): New macros.
71974         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
71975         changed.  But support the old name if the new one is not defined
71976         and if _REGEX_SOURCE.
71977
71978         Change the following member names in struct re_pattern_buffer.
71979         The old names are still supported if !_REGEX_SOURCE.
71980         The new names are always supported, regardless of _REGEX_SOURCE.
71981         (re_buffer): Renamed from buffer.
71982         (re_allocated): Renamed from allocated.
71983         (re_used): Renamed from used.
71984         (re_syntax): Renamed from syntax.
71985         (re_fastmap): Renamed from fastmap.
71986         (re_translate): Renamed from translate.
71987         (re_can_be_null): Renamed from can_be_null.
71988         (re_regs_allocated): Renamed from regs_allocated.
71989         (re_fastmap_accurate): Renamed from fastmap_accurate.
71990         (re_no_sub): Renamed from no_sub.
71991         (re_not_bol): Renamed from not_bol.
71992         (re_not_eol): Renamed from not_eol.
71993         (re_newline_anchor): Renamed from newline_anchor.
71994
71995         Change the following member names in struct re_registers.
71996         The old names are still supported if !_REGEX_SOURCE.
71997         The new names are always supported, regardless of _REGEX_SOURCE.
71998         (rm_num_regs): Renamed from num_regs.
71999         (rm_start): Renamed from start.
72000         (rm_end): Renamed from end.
72001
72002         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
72003         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
72004         Prepend __ to parameter names.
72005
72006         Undo yesterday's changes.
72007
72008 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
72009
72010         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
72011         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
72012         lib/regex.c.
72013
72014 2005-08-24  Jim Meyering  <jim@meyering.net>
72015
72016         Sync from coreutils.
72017         * m4/fcntl-safer.m4: New file.
72018
72019         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
72020         and object files for this module.
72021
72022 2005-08-24  Jim Meyering  <jim@meyering.net>
72023
72024         Sync from coreutils.
72025         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
72026
72027 2005-08-24  Jim Meyering  <jim@meyering.net>
72028
72029         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
72030         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
72031
72032 2005-08-24  Jim Meyering  <jim@meyering.net>
72033
72034         * modules/fcntl-safer: New module.
72035         * modules/fts (Depends-on): Add fcntl-safer.
72036         * MODULES.html.sh (File descriptor based Input/Output):
72037         Add fcntl-safer.
72038
72039 2005-08-24  Bruno Haible  <bruno@clisp.org>
72040
72041         Support for unit test modules.
72042         * modules/README: Mention tests modules.
72043         * modules/TEMPLATE-TESTS: New file.
72044         * gnulib-tool: New options --extract-tests-module, --with-tests and
72045         --tests-base (unused for the moment).
72046         (testsbase, inctests): New variables.
72047         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
72048         (func_verify_module): Exclude TEMPLATE-TESTS.
72049         (func_verify_nontests_module, func_verify_tests_module): New functions.
72050         (func_get_dependencies): Add implicit dependency for tests modules.
72051         (func_get_tests_module): New function.
72052         (func_modules_transitive_closure): When --with-tests was specified,
72053         include the unit tests as well, unless explicitly avoided.
72054         (func_emit_lib_Makefile_am): Ignore the tests modules here.
72055         (func_emit_tests_Makefile_am): New function.
72056         (func_create_testdir): When --with-tests was specified, emit a
72057         tests/ directory.
72058         * MODULES.html.sh (Future developments): Update.
72059
72060 2005-08-24  Bruno Haible  <bruno@clisp.org>
72061
72062         * modules/tls-tests: New file.
72063         * tests/test-tls.c: New file, from GNU gettext.
72064
72065 2005-08-24  Bruno Haible  <bruno@clisp.org>
72066
72067         * modules/lock-tests: New file.
72068         * tests/test-lock.c: New file, from GNU gettext.
72069
72070 2005-08-24  Bruno Haible  <bruno@clisp.org>
72071
72072         * lib/lock.h: Add multiple inclusion guard.
72073         * lib/tls.h: Add multiple inclusion guard.
72074
72075 2005-08-24  Bruno Haible  <bruno@clisp.org>
72076
72077         * gnulib-tool: Add support for the --aux-dir option to
72078         --create-testdir, --create-megatestdir, --test, --megatest.
72079         (func_create_testdir, func_create_megatestdir): Optionally emit a
72080         AC_CONFIG_AUX_DIR directive.
72081         (create-testdir, create-megatestdir, test, megatest): Provide a
72082         default value for $auxdir.
72083
72084 2005-08-24  Bruno Haible  <bruno@clisp.org>
72085
72086         * gnulib-tool (import): Use compound statement instead of subshell
72087         where possible.
72088
72089 2005-08-24  Bruno Haible  <bruno@clisp.org>
72090
72091         * gnulib-tool (import): Change --aux-dir default to "build-aux".
72092
72093 2005-08-24  Bruno Haible  <bruno@clisp.org>
72094
72095         * gnulib-tool (func_version): Update.
72096
72097 2005-08-24  Bruno Haible  <bruno@clisp.org>
72098
72099         * gnulib-tool (func_import, func_create_testdir,
72100         func_create_megatestdir): Quote all autoconf macro arguments.
72101
72102 2005-08-24  Bruno Haible  <bruno@clisp.org>
72103
72104         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
72105         option --force, because --force causes the aclocal.m4 of each
72106         subdirectory to be newer than the corresponding config.h.in.
72107
72108 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
72109
72110         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
72111         All contents moved to gl_REGEX.
72112         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
72113         assume that it does.
72114
72115 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
72116
72117         * lib/regex.h (REG_NOSYS)
72118         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
72119         Define, since POSIX requires it as of 2001.
72120         (_REG_ENOSYS)
72121         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
72122         New private symbol, used to keep the enum signed in all cases.
72123         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
72124         Youngman in
72125         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
72126
72127         * lib/regex_internal.c (re_string_skip_chars, register_state):
72128         (calc_state_hash):
72129         Remove forward decls; no longer needed now that we use prototypes.
72130         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
72131         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
72132         (clean_state_log_if_needed): Likewise.
72133
72134 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
72135
72136         * config/srclist.txt: Add glibc bugs 1231-1233.
72137
72138 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
72139
72140         Fix problems reported by Sam Steingold in
72141         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
72142         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
72143         assumed that reg_errcode_t is a signed type, which is not
72144         necessarily true if _XOPEN_SOURCE is not defined.
72145         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
72146         since some compilers warn about it otherwise.
72147
72148 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
72149
72150         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
72151         (init_word_char, create_initial_state, duplicate_node_closure):
72152         (fetch_token, peek_token_bracket, build_range_exp):
72153         (build_collating_symbol): Remove forward decls; no longer needed
72154         now that we use prototypes.
72155
72156         * lib/regcomp.c:
72157         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
72158         (re_compile_fastmap_iter, regcomp, regerror, regfree):
72159         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
72160         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
72161         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
72162         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
72163         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
72164         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
72165         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
72166         (build_range_exp, build_collating_symbol, parse_bracket_exp):
72167         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
72168         (build_charclass, build_charclass_op, fetch_number, create_tree):
72169         (create_token_tree, mark_opt_subexp, duplicate_tree):
72170         Use prototypes rather than old-style definitions.
72171
72172         * lib/regex_internal.c:
72173         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
72174         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
72175         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
72176         (re_string_reconstruct, re_string_peek_byte_case):
72177         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
72178         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
72179         (re_node_set_init_copy, re_node_set_add_intersect):
72180         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
72181         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
72182         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
72183         (re_acquire_state, re_acquire_state_context, register_state):
72184         (create_ci_newstate, create_cd_newstate, free_state):
72185         Likewise.
72186         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
72187         re_search_2):
72188         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
72189         (re_search_internal, prune_impossible_nodes):
72190         (acquire_init_state_context, check_matching, static):
72191         (check_halt_node_context, check_halt_state_context, proceed_next_node):
72192         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
72193         (update_regs, sift_states_backward, build_sifted_states):
72194         (clean_state_log_if_needed, merge_state_array):
72195         (update_cur_sifted_state, add_epsilon_src_nodes):
72196         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
72197         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
72198         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
72199         (find_recover_state, check_subexp_matching_top, transit_state_mb):
72200         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
72201         (check_arrival, check_arrival_add_next_nodes):
72202         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
72203         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
72204         (check_node_accept_bytes, check_node_accept, extend_buffers):
72205         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
72206         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
72207         (sift_ctx_init):
72208         Likewise.
72209
72210         * lib/regex_internal.h:
72211         (re_string_allocate, re_string_construct, re_string_reconstruct):
72212         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
72213         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
72214         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
72215         (re_string_context_at, re_string_peek_byte_case):
72216         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
72217         is defined, since we now use prototypes always.
72218
72219         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
72220         C89 or better.  All uses removed.
72221
72222 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
72223
72224         * config/srclist.txt: Add glibc bugs 1220-1227.
72225
72226 2005-08-20  Jim Meyering  <jim@meyering.net>
72227
72228         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
72229         of unused local, dfa.
72230
72231 2005-08-20  Bruno Haible  <bruno@clisp.org>
72232
72233         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
72234
72235 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72236
72237         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
72238         (re_node_set_insert_last, re_dfa_add_node):
72239         Rename local variables to avoid GCC shadowing warnings.
72240
72241 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72242
72243         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
72244         [defined lint]: Suppress bogus uninitialized-variable warnings.
72245
72246         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
72247         and let the caller return REG_ESPACE if out of space.  This
72248         removes an uninitialied-variable warning with GCC 4.0.1, and also
72249         avoids taking the address of a local variable.  All callers
72250         changed.
72251
72252 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72253
72254         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
72255         $LIBCSRC/posix/regexec.c.
72256         Add glibc bug 1217 for regcomp.c.
72257
72258 2005-08-19  Jim Meyering  <jim@meyering.net>
72259
72260         * lib/regexec.c (proceed_next_node): Redo local variables to
72261         avoid GCC shadowing warnings.
72262
72263 2005-08-18  Bruno Haible  <bruno@clisp.org>
72264
72265         * lib/strstr.c (strstr): Fix return value in multibyte case.
72266         * lib/strcasestr.c (strcasestr): Likewise.
72267
72268 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
72269
72270         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
72271
72272 2005-08-17  Jim Meyering  <jim@meyering.net>
72273
72274         Make the %s format (seconds since the epoch) work for a negative
72275         number and when used with a zero-padded field width, e.g. %015s.
72276
72277         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
72278         label so that it precedes the code to set `digits'.  Otherwise,
72279         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
72280         print `00-22'.  Now, it prints `-0022', as it should.
72281
72282 2005-08-17  Bruno Haible  <bruno@clisp.org>
72283
72284         * modules/strstr (Files): Add m4/mbrtowc.m4.
72285         (Depends-on): Add mbuiter.
72286
72287 2005-08-17  Bruno Haible  <bruno@clisp.org>
72288
72289         * modules/strcasestr: New file.
72290         * MODULES.html.sh (String handling, based on ANSI C 89): Add
72291         strcasestr.
72292
72293 2005-08-17  Bruno Haible  <bruno@clisp.org>
72294
72295         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
72296
72297 2005-08-17  Bruno Haible  <bruno@clisp.org>
72298
72299         * modules/mbuiter: New file.
72300         * MODULES.html.sh (Extended multibyte and wide character utilities):
72301         Add mbuiter.
72302
72303 2005-08-17  Bruno Haible  <bruno@clisp.org>
72304
72305         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
72306         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
72307
72308 2005-08-17  Bruno Haible  <bruno@clisp.org>
72309
72310         * m4/strcasestr.m4: New file.
72311
72312 2005-08-17  Bruno Haible  <bruno@clisp.org>
72313
72314         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
72315         * lib/strstr.c: Completely rewritten, with multibyte locale support.
72316
72317 2005-08-17  Bruno Haible  <bruno@clisp.org>
72318
72319         * lib/strcasestr.h: New file.
72320         * lib/strcasestr.c: New file.
72321
72322 2005-08-17  Bruno Haible  <bruno@clisp.org>
72323
72324         * lib/strcasecmp.c: Use mbuiter.h.
72325
72326 2005-08-17  Bruno Haible  <bruno@clisp.org>
72327
72328         * lib/mbuiter.h: New file.
72329
72330 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
72331
72332         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
72333         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
72334         and gl_GETOPT are both invoked via different paths (as happens
72335         with GNU tar CVS because it uses both argp and getopt), the former
72336         wins.
72337
72338 2005-08-16  Bruno Haible  <bruno@clisp.org>
72339
72340         * modules/tls: New file.
72341         * MODULES.html.sh (Multithreading): Add tls.
72342
72343 2005-08-16  Bruno Haible  <bruno@clisp.org>
72344
72345         * modules/strnlen1: New file.
72346         * MODULES.html.sh (String handling): Add strnlen1.
72347
72348 2005-08-16  Bruno Haible  <bruno@clisp.org>
72349
72350         * modules/strcase (Files): Add m4/mbrtowc.m4.
72351         (Depends-on): Add strnlen1, mbchar.
72352
72353 2005-08-16  Bruno Haible  <bruno@clisp.org>
72354
72355         * modules/mbiter: New file.
72356         * MODULES.html.sh (Extended multibyte and wide character utilities):
72357         Add mbiter.
72358
72359 2005-08-16  Bruno Haible  <bruno@clisp.org>
72360
72361         * modules/mbfile: New file.
72362         * MODULES.html.sh (Extended multibyte and wide character utilities):
72363         Add mbfile.
72364
72365 2005-08-16  Bruno Haible  <bruno@clisp.org>
72366
72367         * modules/mbchar: New file.
72368         * MODULES.html.sh (Extended multibyte and wide character utilities):
72369         New section.
72370
72371 2005-08-16  Bruno Haible  <bruno@clisp.org>
72372
72373         * m4/tls.m4: New file, from GNU gettext.
72374
72375 2005-08-16  Bruno Haible  <bruno@clisp.org>
72376
72377         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
72378         always.
72379         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
72380
72381 2005-08-16  Bruno Haible  <bruno@clisp.org>
72382
72383         * m4/mbiter.m4: New file.
72384
72385 2005-08-16  Bruno Haible  <bruno@clisp.org>
72386
72387         * m4/mbfile.m4: New file.
72388
72389 2005-08-16  Bruno Haible  <bruno@clisp.org>
72390
72391         * m4/mbchar.m4: New file.
72392
72393 2005-08-16  Bruno Haible  <bruno@clisp.org>
72394
72395         * lib/tls.h: New file, from GNU gettext.
72396         * lib/tls.c: New file, from GNU gettext.
72397
72398 2005-08-16  Bruno Haible  <bruno@clisp.org>
72399
72400         * lib/strnlen1.h: New file.
72401         * lib/strnlen1.c: New file.
72402
72403 2005-08-16  Bruno Haible  <bruno@clisp.org>
72404
72405         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
72406         (mbi_init): Update.
72407         (mbi_avail, mbi_advance): Let the iteration end before the terminating
72408         NUL byte, not after it.
72409
72410 2005-08-16  Bruno Haible  <bruno@clisp.org>
72411
72412         * lib/strcase.h (strcasecmp): Add note in comments.
72413         * lib/strncasecmp.c: Use code from strcasecmp.c.
72414         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
72415         (strcasecmp): Work correctly in multibyte locales.
72416
72417 2005-08-16  Bruno Haible  <bruno@clisp.org>
72418
72419         * lib/mbiter.h: New file.
72420
72421 2005-08-16  Bruno Haible  <bruno@clisp.org>
72422
72423         * lib/mbfile.h: New file.
72424
72425 2005-08-16  Bruno Haible  <bruno@clisp.org>
72426
72427         * lib/mbchar.h: New file.
72428         * lib/mbchar.c: New file.
72429
72430 2005-08-16  Bruno Haible  <bruno@clisp.org>
72431
72432         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
72433         the valid ones. Makes the comparison operations transitive:
72434         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
72435         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
72436
72437 2005-08-15  Simon Josefsson  <jas@extundo.com>
72438
72439         * modules/ssize_t (License): Change to 'unlimited'.
72440
72441         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
72442
72443 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
72444
72445         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
72446         Add comments for each pending glibc patch.
72447
72448 2005-08-15  Bruno Haible  <bruno@clisp.org>
72449
72450         * lib/regex.h (__restrict_arr): Don't define to __restrict if
72451         __cplusplus is defined.
72452
72453 2005-08-14  Jim Meyering  <jim@meyering.net>
72454
72455         Sync from coreutils.
72456
72457         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
72458         Use the hash-table-based cycle-detection code not just when
72459         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
72460         Reported by James Youngman in
72461         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
72462         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
72463         FTS_TIGHT_CYCLE_CHECK.
72464         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
72465         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
72466         once again.
72467         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
72468         * lib/fts.c (fd_safer): Remove decl.
72469         Include fcntl--.h rather than unistd-safer.h
72470         (fts_safe_changedir): Don't call fd_safer; no longer needed
72471         now that we include fcntl--.h.
72472
72473 2005-08-12  Simon Josefsson  <jas@extundo.com>
72474
72475         * modules/getndelim2: Use ssize_t module.
72476         * modules/getnline: Likewise.
72477         * modules/safe-read: Likewise.
72478         * modules/xreadlink: Likewise.
72479
72480         * modules/ssize_t: New file.
72481
72482 2005-08-12  Simon Josefsson  <jas@extundo.com>
72483
72484         * m4/readline.m4: Look for termcap, curses or ncurses if required.
72485
72486 2005-08-12  Simon Josefsson  <jas@extundo.com>
72487
72488         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72489         ssize_t.
72490
72491 2005-08-12  Simon Josefsson  <jas@extundo.com>
72492
72493         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
72494         readline, getdelim and check_version.
72495         (Support for systems lacking ISO C 99: Sizes of integer types):
72496         Add size_max.
72497
72498 2005-08-12  Bruno Haible  <bruno@clisp.org>
72499
72500         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
72501
72502 2005-08-11  Simon Josefsson  <jas@extundo.com>
72503
72504         * modules/readline: New file.
72505
72506         * modules/strnlen (Files): Add strnlen.h.
72507
72508 2005-08-11  Simon Josefsson  <jas@extundo.com>
72509
72510         * m4/readline.m4: New file.
72511
72512 2005-08-11  Simon Josefsson  <jas@extundo.com>
72513
72514         * lib/readline.h, readline.c: New file.
72515
72516 2005-08-11  Simon Josefsson  <jas@extundo.com>
72517
72518         * doc/gnulib.texi (Initial import, Finishing touches): Mention
72519         gl_AVOID.
72520
72521 2005-08-11  Bruno Haible  <bruno@clisp.org>
72522
72523         * lib/strnlen.h (strnlen): Change parameter name to match comment.
72524
72525 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
72526
72527         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
72528
72529 2005-08-10  Simon Josefsson  <jas@extundo.com>
72530
72531         * tests/test-iconvme.c: New file.
72532
72533 2005-08-10  Simon Josefsson  <jas@extundo.com>
72534
72535         * m4/strnlen.m4: New file.
72536
72537         * m4/strndup.m4: Don't check for strnlen declaration, done in
72538         strnlen.m4.
72539
72540 2005-08-10  Simon Josefsson  <jas@extundo.com>
72541
72542         * lib/strndup.c: Use strnlen.h.
72543
72544         * lib/strnlen.h: New file.
72545
72546 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
72547
72548         * README: Typos.
72549
72550 2005-08-02  Simon Josefsson  <jas@extundo.com>
72551
72552         * modules/readline: New file.
72553
72554 2005-08-02  Simon Josefsson  <jas@extundo.com>
72555
72556         * modules/getdelim: New file.
72557
72558         * modules/getline: Rewrite, don't use getndelim2.
72559
72560 2005-08-02  Simon Josefsson  <jas@extundo.com>
72561
72562         * m4/getline.m4: Separate out getdelim stuff into separate module.
72563
72564         * m4/getdelim.m4: New file.
72565
72566 2005-08-02  Simon Josefsson  <jas@extundo.com>
72567
72568         * lib/getline.h, getline.c: Rewrite.
72569
72570         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
72571
72572 2005-07-31  Bruno Haible  <bruno@clisp.org>
72573
72574         * lib/lock.h (gl_lock_initializer): New macro.
72575         (gl_lock_define_initialized): Use it.
72576         (gl_rwlock_initializer): New macro.
72577         (gl_rwlock_define_initialized): Use it.
72578         (gl_recursive_lock_initializer): New macro.
72579         (gl_recursive_lock_define_initialized): Use it.
72580
72581 2005-07-30  Karl Berry  <karl@gnu.org>
72582
72583         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
72584         Report from Ben Pfaff, regarding getopt.
72585
72586 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
72587
72588         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
72589         normal way.
72590         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
72591         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
72592         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
72593         (gl_GETOPT): Use the new macros.  Most of the implementation
72594         is moved to the new macros.  This is for programs like Emacs
72595         that don't want all the functionality of gl_GETOPT.
72596
72597 2005-07-26  Bruno Haible  <bruno@clisp.org>
72598
72599         * m4/lock.m4: Update from GNU gettext.
72600
72601 2005-07-26  Bruno Haible  <bruno@clisp.org>
72602
72603         * lib/lock.h: Update from GNU gettext.
72604         * lib/lock.c: Update from GNU gettext.
72605
72606 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
72607
72608         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
72609         obsolescent AC_TRY_RUN.  Include the default includes files, for
72610         'exit'.
72611
72612 2005-07-24  Bruno Haible  <bruno@clisp.org>
72613
72614         * modules/visibility: New file.
72615         * MODULES.html.sh (Misc): Add visibility.
72616
72617 2005-07-24  Bruno Haible  <bruno@clisp.org>
72618
72619         * m4/visibility.m4: New file.
72620
72621 2005-07-24  Bruno Haible  <bruno@clisp.org>
72622
72623         * doc/visibility.texi: New file.
72624
72625 2005-07-22  Bruno Haible  <bruno@clisp.org>
72626
72627         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
72628         $(ALLOCA_H), redundant through BUILT_SOURCES.
72629         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
72630         redundant through BUILT_SOURCES.
72631         * modules/byteswap (Makefile.am): Remove explicit dependency on
72632         $(BYTESWAP_H), redundant through BUILT_SOURCES.
72633         * modules/fnmatch (Makefile.am): Remove explicit dependency on
72634         $(FNMATCH_H), redundant through BUILT_SOURCES.
72635         * modules/getopt (Makefile.am): Remove explicit dependency on
72636         $(GETOPT_H), redundant through BUILT_SOURCES.
72637         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
72638         redundant through BUILT_SOURCES.
72639         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
72640         redundant through BUILT_SOURCES.
72641         * modules/stdbool (Makefile.am): Remove explicit dependency on
72642         $(STDBOOL_H), redundant through BUILT_SOURCES.
72643         * modules/stdint (Makefile.am): Remove explicit dependency on
72644         $(STDINT_H), redundant through BUILT_SOURCES.
72645         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
72646         Remove explicit dependency on $(SYSEXITS_H).
72647         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
72648
72649 2005-07-18  Simon Josefsson  <jas@extundo.com>
72650
72651         * lib/check-version.c (check_version): Accept identical versions too.
72652
72653 2005-07-18  Bruno Haible  <bruno@clisp.org>
72654
72655         * modules/lock: New file.
72656         * MODULES.html.sh (Multithreading): New section.
72657
72658 2005-07-18  Bruno Haible  <bruno@clisp.org>
72659
72660         * m4/lock.m4: New file, from GNU gettext.
72661
72662 2005-07-18  Bruno Haible  <bruno@clisp.org>
72663
72664         * lib/lock.h: New file, from GNU gettext.
72665         * lib/lock.c: New file, from GNU gettext.
72666
72667 2005-07-18  Bruno Haible  <bruno@clisp.org>
72668
72669         * lib/lock.h (gl_once_t): New type.
72670         (gl_once_define, gl_once): New macros.
72671         * lib/lock.c (fresh_once): New variable.
72672         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
72673         functions.
72674
72675 2005-07-16  Simon Josefsson  <jas@extundo.com>
72676
72677         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
72678         workaround, suggested by Bruno.
72679
72680 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
72681
72682         * modules/xalloc (Depends-on): Add xalloc-die.
72683         * modules/xvasprintf (Depends-on): Add xalloc-die.
72684
72685 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
72686
72687         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
72688         with a minor change.
72689
72690 2005-07-15  Bruno Haible  <bruno@clisp.org>
72691
72692         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
72693         When using lib/poll.c, define poll as rpl_poll.
72694
72695 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
72696
72697         * modules/argp (Depends-on): Remove unlocked-io.
72698
72699 2005-07-14  Derek Price  <derek@ximbiot.com>
72700
72701         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
72702         for glob symlink bug.
72703
72704 2005-07-14  Bruno Haible  <bruno@clisp.org>
72705
72706         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
72707         Instead, test for *_unlocked function declarations directly.
72708
72709 2005-07-11  Simon Josefsson  <jas@extundo.com>
72710
72711         * modules/size_max: New file.
72712
72713         * modules/xsize: Depend on size_max module for size_max.m4.
72714
72715 2005-07-11  Simon Josefsson  <jas@extundo.com>
72716
72717         * lib/size_max.h: New file.
72718
72719 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
72720
72721         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
72722         copyright symbol and the year.
72723         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
72724         (version_etc_va): Use parameterized copyright notice.
72725         Reword to conform to the current GNU coding standards.
72726
72727 2005-07-11  Karl Berry  <karl@gnu.org>
72728
72729         * doc/gnulib.texi (Quoting): new node.
72730         (Initial import): more info, from Patrice.
72731
72732 2005-07-11  Bruno Haible  <bruno@clisp.org>
72733
72734         * gnulib-tool (func_usage): Document option --avoid.
72735         (Command line options): Handle --avoid.
72736         (func_acceptable): New function.
72737         (func_modules_transitive_closure): Use it.
72738
72739 2005-07-11  Bruno Haible  <bruno@clisp.org>
72740
72741         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
72742         Reported by Jim Meyering.
72743
72744 2005-07-10  Bruno Haible  <bruno@clisp.org>
72745
72746         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
72747         Needed when size_t is smaller than 'unsigned int'.
72748         Reported by Paul Eggert.
72749
72750 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
72751
72752         * modules/argp (Depends-on): Add unlocked-io
72753
72754 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
72755
72756         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
72757         block of defines.
72758
72759 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
72760
72761         * config/srclist.txt: Comment out regcomp.c, since we have a porting
72762         fix now.
72763
72764 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
72765         and Paul Eggert  <eggert@cs.ucla.edu>
72766
72767         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
72768         in wint_t, not wchar_t.  Remove now-unnecessary cast.
72769
72770 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
72771
72772         * modules/regex (Files): Add lib/regex_internal.c,
72773         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
72774         (Depends-on): Add extensions.
72775         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
72776
72777 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
72778
72779         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
72780         pathconf.
72781         * m4/same.m4 (gl_SAME): Likewise.
72782         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
72783
72784         * m4/regex.m4: Adjust to new libc regex implementation.
72785         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
72786         all the .c and .h parts of (the new) regex.
72787         Quote the m4 stuff better.
72788         Check for RE_ICASE bug of old gnulib.
72789         Check for REG_STARTEND of recent libc.
72790         Rename local variables from jm_* to gl_*.
72791         Quote operand of "test -f".
72792         Say "recent enough" version of libc, not "version 2".
72793         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
72794         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
72795         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
72796         Remove check for btowc, isascii.
72797         Require AM_LANGINFO_CODESET.
72798
72799 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
72800
72801         * lib/regex.c, regex.h: Sync from libc.
72802         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
72803         * lib/regexec.c:
72804         New files, synced from libc, except that regex_internal.h
72805         currently has a small porting fix.
72806
72807 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
72808
72809         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
72810         regex_internal.c, regexec.c.
72811         Add regex_internal.h too, but as a comment, since the libc version
72812         is currently broken in gnulib mode.
72813
72814 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
72815
72816         Support programs like Emacs that use gnulib but not gettext.
72817         * MODULES.html.sh (Internationalization functions): Add gettext-h.
72818         * modules/gettext-h: New file.
72819         * modules/gettext (Files): Remove lib/gettext.h.
72820         (Depends-on): Add gettext-h.
72821         (Makefile.am): Remove lib_SOURCES.
72822         * modules/argmatch, modules/c-stack, modules/closeout:
72823         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
72824         * modules/execute, modules/file-type, modules/getaddrinfo:
72825         * modules/getopt, modules/human, modules/javacomp:
72826         * modules/javaexec, modules/mkdir-p, modules/obstack:
72827         * modules/openat, modules/pagealign_alloc, modules/pipe:
72828         * modules/quotearg, modules/regex, modules/rpmatch:
72829         * modules/unicodeio, modules/userspec, modules/version-etc:
72830         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
72831         * modules/xsetenv:
72832         Depend on gettext-h, not gettext.
72833
72834 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
72835
72836         * gnulib-tool (func_import): Add support for 'public domain' license.
72837         * modules/alloca, modules/atexit, modules/memmove:
72838         Now public domain, not GPL.
72839         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
72840         * modules/realloc, modules/strerror, modules/strtod:
72841         Now LGPL, not GPL.
72842
72843 2005-07-05  Bruno Haible  <bruno@clisp.org>
72844
72845         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
72846         autoconf CVS. Needed for mingw.
72847
72848 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72849
72850         Remove the dependency of the strftime module on the tzset module.
72851         * modules/strftime (Depends-on): Remove dependency on tzset.
72852
72853 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72854
72855         Remove the dependency of the strftime module on the tzset module.
72856         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
72857         gl_FUNC_TZSET_CLOBBER.
72858
72859 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72860
72861         Remove the dependency of the strftime module on the tzset module.
72862         * lib/strftime.c (my_strftime)
72863         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
72864         Copy the input structure, to work around some of the bug with
72865         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
72866         Solaris releases, you should also use the tzset module, but we won't
72867         require it as a dependency any more since we don't want LGPLed code
72868         to depend on GPLed code.
72869
72870 2005-07-02  Jim Meyering  <jim@meyering.net>
72871
72872         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
72873         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
72874         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
72875         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
72876
72877 2005-07-02  Jim Meyering  <jim@meyering.net>
72878
72879         * lib/backupfile.c (backup_args): Change a `0' to NULL.
72880
72881 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
72882
72883         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
72884         declares only 'struct timespec;' (!).
72885
72886 2005-07-01  Jim Meyering  <jim@meyering.net>
72887
72888         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
72889         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
72890         * lib/save-cwd.c, tempname.c:
72891         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
72892         and don't include <sys/file.h>).
72893
72894 2005-06-29  Jim Meyering  <jim@meyering.net>
72895
72896         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
72897         type name.  Use the variable name instead.
72898         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
72899         Likewise.
72900
72901 2005-06-28  Simon Josefsson  <jas@extundo.com>
72902
72903         * modules/check-version (Files): Add check-version.m4.
72904
72905 2005-06-28  Simon Josefsson  <jas@extundo.com>
72906
72907         * m4/check-version.m4: New file, suggested by Jim Meyering
72908         <jim@meyering.net>.
72909
72910 2005-06-28  Simon Josefsson  <jas@extundo.com>
72911
72912         * lib/check-version.h, lib/check-version.c: New files.
72913
72914 2005-06-28  Simon Josefsson  <jas@extundo.com>
72915
72916         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
72917         collision with global variable.  Better indentation.  Don't
72918         increment buffer pointer beyond buffer end.  Based on comments
72919         from Paul Eggert <eggert@cs.ucla.edu>.
72920
72921         * lib/base64.h: Indent.
72922
72923 2005-06-28  Simon Josefsson  <jas@extundo.com>
72924
72925         * doc/gnulib.texi (Library version handling): New section.
72926
72927 2005-06-28  Jim Meyering  <jim@meyering.net>
72928
72929         * check-module (find_included_lib_files): Hard-code another
72930         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
72931         but modules/fts-lgpl (correctly) does not list those files.
72932
72933         * modules/canonicalize (Files): Add lib/pathmax.h.
72934
72935 2005-06-25  Simon Josefsson  <jas@extundo.com>
72936
72937         * modules/check-version: New file.
72938
72939 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
72940
72941         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
72942         initializer of struct addrinfo, as an indication that we don't
72943         care how many members the structure has.
72944
72945 2005-06-24  Derek Price  <derek@ximbiot.com>
72946         and Bruno Haible  <bruno@clisp.org>
72947
72948         Remove stat module & update lstat.
72949         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
72950         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
72951         * m4/stat.m4: Remove this file.
72952
72953 2005-06-24  Derek Price  <derek@ximbiot.com>
72954         and Bruno Haible  <bruno@clisp.org>
72955
72956         Remove stat module & update lstat.
72957         * lib/stat.c: Remove this file...
72958         (slash_aware_lstat): ...moving this content and its support...
72959         * lib/lstat.c (rpl_lstat): ...into here.
72960         * lib/lstat.h: New file.
72961
72962 2005-06-24  Derek Price  <derek@ximbiot.com>
72963         and Bruno Haible  <bruno@clisp.org>
72964
72965         Remove stat module & update lstat.
72966         * config/srclist.txt (libc sources): Remove stat.
72967
72968 2005-06-24  Derek Price  <derek@ximbiot.com>
72969         and Bruno Haible  <bruno@clisp.org>
72970
72971         Remove stat module & update lstat.
72972         * MODULES.html.sh (stat): Remove.
72973         * MODULES.html: Regenerated.
72974         * modules/lstat (Description): Correct function name.
72975         (Files): Add "lstat.h".
72976         (Depends-on): Remove stat, add xalloc, stat-macros.
72977         * modules/stat: Remove this file.
72978         (Include): Add "lstat.h", remove <sys/stat.h>.
72979
72980 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
72981
72982         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
72983         (ranged_convert): Don't save conversion in a temporary struct.
72984         This causes a warning with GCC 4.0.0, and anyway in the typical
72985         case it's not worth the extra 100 bytes or so of code.
72986         (ranged_convert, __mktime_internal): When calling a function via a
72987         pointer P, use P () rather than (*P) (), as we now assume C89 or
72988         better.
72989
72990 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72991
72992         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
72993         "who -r" failed to give output.  Problem reported by Tim Waugh.
72994
72995         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
72996         (xcalloc): Use it to avoid needless tests.
72997         Problem reported by Jim Meyering.
72998
72999 2005-06-20  Derek Price  <derek@ximbiot.com>
73000
73001         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
73002         unnecessary for Autoconfs > 2.59c.
73003
73004 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73005
73006         * lib/argp.h (__option_is_short): Check upper limit of
73007         __key. Isprint() requires its argument to have the value
73008         of an unsigned char or EOF.
73009
73010 2005-06-16  Jim Meyering  <jim@meyering.net>
73011
73012         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
73013         when either N or S is zero.
73014
73015 2005-06-16  Derek Price  <derek@ximbiot.com>
73016
73017         * m4/bison.m4: Declare YACC & YFLAGS precious.
73018
73019 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
73020
73021         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
73022         multibyte string or pattern, fall back on unibyte matching.
73023         Problem reported by James Youngman.
73024
73025 2005-06-08  Bruno Haible  <bruno@clisp.org>
73026
73027         * modules/csharpcomp: New file.
73028         * MODULES.html.sh (C#): Add csharpcomp.
73029
73030 2005-06-08  Bruno Haible  <bruno@clisp.org>
73031
73032         * m4/csharpcomp.m4: New file, from GNU gettext.
73033
73034 2005-06-08  Bruno Haible  <bruno@clisp.org>
73035
73036         * lib/csharpcomp.h: New file, from GNU gettext.
73037         * lib/csharpcomp.c: New file, from GNU gettext.
73038         * lib/csharpcomp.sh.in: New file, from GNU gettext.
73039
73040 2005-06-08  Bruno Haible  <bruno@clisp.org>
73041
73042         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
73043         warning on mingw.
73044
73045 2005-06-07  Derek Price  <derek@ximbiot.com>
73046
73047         Sync from CVS.
73048         * lib/glob_.h: Indent nested #ifdef.
73049
73050 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
73051
73052         Sync from coreutils.
73053         Use "file name" when talking about file names, instead of "filename"
73054         or "path", as per the GNU coding standards.
73055         * lib/mkdir-p.c: Renamed from makepath.c.
73056         (make_dir_parents): Renamed from make_path.  All callers changed.
73057         * lib/mkdir-p.h: Likewise.  All includers changed.
73058         * lib/filenamecat.c: Renamed from path-concat.c.
73059         (file_name_concat): Renamed from path_concat.  All callers changed.
73060         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
73061         * lib/filenamecat.h: Likewise.  All includers changed.
73062         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
73063         in comments or local variable names.
73064         * lib/basename.c: Likewise.
73065         * lib/canonicalize.c, canonicalize.h: Likewise.
73066         * lib/dirname.c, dirname.h: Likewise.
73067         * lib/euidaccess.c: Likewise.
73068         * lib/exclude.c: Likewise
73069         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
73070         * lib/fsusage.c, fsuage.h: Likewise.
73071         * lib/fts.c, fts_.h: Likewise.
73072         * lib/getcwd.c: Likewise.
73073         * lib/getloadavg.c: Likewise.
73074         * lib/mkstemp.c: Likewise.
73075         * lib/mountlist.c, mountlist.h: Likewise.
73076         * lib/openat.c, openat.h: Likewise.
73077         * lib/readlink-stub.c: Likewise.
73078         * lib/readutmp.c, readutmp.h: Likewise.
73079         * lib/rename.c: Likewise.
73080         * lib/rmdir.c: Likewise.
73081         * lib/same.c: Likewise.
73082         * lib/savedir.c: Likewise.
73083         * lib/stripslash.c: Likewise.
73084         * lib/tempname.c: Likewise.
73085         * lib/xreadlink.c: Likewise.
73086         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
73087         All uses changed.
73088         * lib/exclude.h: Likewise.
73089
73090         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
73091         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
73092         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
73093         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
73094         * lib/pathmax.h: Include <limits.h> unconditionally, since other
73095         files have been getting away with it for years (MORE/BSD 4.3
73096         is extinct now).
73097         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
73098         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
73099
73100         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
73101         Define to 256, not 255, as per modern POSIX.
73102
73103 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
73104
73105         Sync from coreutils.
73106         Use "file name" when talking about file names, instead of "filename"
73107         or "path", as per the GNU coding standards.
73108         * MODULES.html.sh: mkdir-p renamed from makepath.
73109         filenamecat renamed from path-concat.
73110         * modules/filenamecat: Renamed from modules/path-concat.
73111         (Files): filenamecat.h and filenamecat.c renamed from
73112         path-concat.h and path-concat.c.
73113         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
73114         (Include): filenamecat.h, not path-concat.h.
73115         * modules/mkdir-p: Renamed from modules/makepath.
73116         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
73117         makepath.c.
73118         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
73119         (Include): mkdir-p.h, not makepath.h.
73120
73121 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
73122
73123         Sync from coreutils.
73124         * m4/mkdir-p.m4: Renamed from makepath.m4.
73125         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
73126         Rename files from makepath.c to mkdir-p.c, and from
73127         makepath.h to mkdir-p.h.
73128         * m4/filenamecat.m4: Renamed from path-concat.m4.
73129         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
73130         Rename files from path-concat.c to filenamecat.c,
73131         and from path-concat.h to filenamecat.h.
73132         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
73133         "file name" in local variables or comments.
73134         * m4/rename.m4: Likewise.
73135
73136 2005-06-01  Bruno Haible  <bruno@clisp.org>
73137
73138         * modules/csharpexec: New file.
73139         * MODULES.html.sh (C#): New section.
73140
73141 2005-06-01  Bruno Haible  <bruno@clisp.org>
73142
73143         * m4/csharp.m4: New file, from GNU gettext.
73144         * m4/csharpexec.m4: New file, from GNU gettext.
73145
73146 2005-06-01  Bruno Haible  <bruno@clisp.org>
73147
73148         * lib/csharpexec.h: New file, from GNU gettext.
73149         * lib/csharpexec.c: New file, from GNU gettext.
73150         * lib/csharpexec.sh.in: New file, from GNU gettext.
73151
73152 2005-05-31  Derek Price  <derek@ximbiot.com>
73153             Paul Eggert  <eggert@cs.ucla.edu>
73154
73155         Sync from cvs.
73156         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
73157
73158 2005-05-31  Derek Price  <derek@ximbiot.com>
73159             Paul Eggert  <eggert@cs.ucla.edu>
73160
73161         Sync from cvs.
73162         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
73163
73164 2005-05-29  Derek Price  <derek@ximbiot.com>
73165
73166         * config/srclist.txt (glob_.h, glob.c): Add these files.
73167
73168 2005-05-29  Derek Price  <derek@ximbiot.com>
73169
73170         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
73171         * modules/glob: New file.
73172         * modules/getlogin_r: Add link to POSIX spec in description.
73173
73174 2005-05-29  Derek Price  <derek@ximbiot.com>
73175             Paul Eggert  <eggert@cs.ucla.edu>
73176
73177         * m4/glob.m4: New file.
73178
73179 2005-05-29  Derek Price  <derek@ximbiot.com>
73180             Paul Eggert  <eggert@cs.ucla.edu>
73181
73182         * lib/glob_.h, lib/glob.c: New files.
73183
73184 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
73185
73186         * modules/fts (Files): Remove m4/inttypes-pri.m4.
73187         * modules/fts-lgpl (Depends-on): Remove gettext.
73188
73189 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
73190
73191         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
73192         and don't require gt_INTTYPES_PRI.
73193
73194 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
73195
73196         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
73197
73198         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
73199         the configuration hassle isn't worth it.
73200         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
73201         (LONGEST_MODIFIER, PRIuMAX): Remove.
73202
73203 2005-05-27  Bruno Haible  <bruno@clisp.org>
73204
73205         * lib/getlogin_r.h: Remove second include of <stddef.h>.
73206
73207 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
73208
73209         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
73210         _POSIX_PTHREAD_SEMANTICS for Solaris.
73211
73212 2005-05-25  Derek Price  <derek@ximbiot.com>
73213
73214         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
73215
73216 2005-05-25  Derek Price  <derek@ximbiot.com>
73217             Paul Eggert  <eggert@cs.ucla.edu>
73218
73219         * modules/getlogin_r, m4/getlogin_r.m4: New files.
73220         * lib/getlogin_r.c, getlogin_r.h: New files.
73221
73222 2005-05-25  Bruno Haible  <bruno@clisp.org>
73223             Derek Price  <derek@ximbiot.com>
73224
73225         * lib/getlogin_r.h: Simplify API documentation.
73226
73227 2005-05-23  Derek Price  <derek@ximbiot.com>
73228
73229         * modules/minmax (Files): Add m4/minmax.m4.
73230         (configure.ac): Add gl_MINMAX.
73231
73232 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
73233
73234         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
73235         so that unistd-safer.h (GPL'ed code) need not be included.
73236
73237 2005-05-22  Bruno Haible  <bruno@clisp.org>
73238
73239         * m4/minmax.m4: New file.
73240         Based on a patch by Derek Price <derek@ximbiot.com>.
73241
73242 2005-05-22  Bruno Haible  <bruno@clisp.org>
73243
73244         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
73245         (INT64_MIN): Fix definition.
73246         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
73247
73248         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
73249         NEED_SIGNED_INT_TYPES.
73250
73251         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
73252         HAVE_SYSTEM_INTTYPES.
73253
73254 2005-05-22  Bruno Haible  <bruno@clisp.org>
73255
73256         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
73257         Also include <sys/param.h> if it defines MIN, MAX.
73258         Based on a patch by Derek Price <derek@ximbiot.com>.
73259
73260 2005-05-21  Jim Meyering  <jim@meyering.net>
73261
73262         * modules/fts (Files): Add m4/inttypes-pri.m4.
73263         (Depends-on): Add lstat and remove gettext.  Alphabetize.
73264
73265 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
73266
73267         New fts module.
73268         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
73269         (setup_dir, free_dir): New functions.
73270         (enter_dir, leave_dir): Define trivial
73271         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
73272         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
73273         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
73274         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
73275         Move to fts-cycle.c.
73276         (fts_open): Use setup_dir.
73277         (fts_close): Use free_dir.
73278         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
73279         This adds a label and some gotos, but the alternatives were messier.
73280         Check for memory allocation failure when entering a dir.
73281         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
73282         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
73283         (FTS): New member fts_cycle, that is a union that contains the
73284         old active_dir_ht and cycle_state.  All uses changed to mention
73285         fts_cycle.ht and fts_cycle.state.
73286         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
73287         fts.c, with the following changes:
73288         (setup_dir, free_dir): New functions.
73289         (enter_dir): Now returns bool.  Return true if successful, false
73290         if memory exhausted.  All callers changed.
73291         Do not bother partly cleaning up on
73292         memory allocation failure; that is free_dir's job.
73293         However, free ad if hash_insert fails, to avoid memory leak.
73294         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
73295         fts->fts_options to see which union member to use.
73296
73297 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
73298
73299         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
73300         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
73301
73302 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
73303
73304         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
73305
73306 2005-05-20  Jim Meyering  <jim@meyering.net>
73307
73308         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
73309         Now a macro, to pacify GCC.
73310
73311 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
73312
73313         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
73314         of -1.
73315
73316 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
73317
73318         * lib/chown.c (rpl_chown): Return -1 on failure.
73319
73320 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
73321
73322         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
73323         Don't check for stddef.h.
73324         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
73325         don't use its results.
73326         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
73327         since we include them unconditionally.  Don't require
73328         AM_STDBOOL_H, since stdbool is a prerequisite.
73329         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
73330         since we assume C89 or better.
73331         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
73332         as we don't use their results.
73333         Don't check for fchdir, memmove, memset, strrchr, as we use
73334         them unconditionally.
73335         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
73336         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
73337
73338 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
73339
73340         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
73341         Include <stddef.h> unconditionally, since we assume C89 now.
73342         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
73343         * lib/fts.c: Include fts_.h first, to check interface.
73344         Do not include intprops.h; no longer needed.
73345         Include cycle-check.h and hash.h, since fts_.h no longer does.
73346         Remove unnecessary casts of closedir to void.
73347         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
73348         decide whether to decrement nlinks.
73349         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
73350         (FTS): Use struct hash_table * instead of Hash_table, so that
73351         we no longer need to include hash.h here.
73352
73353 2005-05-18  Jim Meyering  <jim@meyering.net>
73354
73355         * modules/dirfd (License): Change to LGPL.  Most of the code
73356         is already in the public domain.
73357
73358 2005-05-18  Jim Meyering  <jim@meyering.net>
73359
73360         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
73361         Reported by Yoann Vandoorselaere.
73362
73363 2005-05-17  Jim Meyering  <jim@meyering.net>
73364
73365         * m4/fts.m4: New file, from coreutils.
73366
73367 2005-05-17  Jim Meyering  <jim@meyering.net>
73368
73369         * lib/fts.c, lib/fts_.h: New files, from coreutils.
73370
73371 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
73372
73373         Sync from coreutils.
73374         * m4/unlinkdir.m4: New file.
73375
73376 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
73377
73378         Sync from coreutils.
73379         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
73380         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
73381         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
73382         White space changes only.
73383         * lib/makepath.c (make_path): Port to hosts where leading "//" is
73384         special.
73385         * lib/yesno.c: Include getline.h, not ctype.h.
73386         (yesno): Don't remove leading white space; POSIX doesn't allow it.
73387         Use getline to remove arbitrary restriction on response length.
73388
73389 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
73390
73391         * config/srclist-update: Spell out "Street" in FSF postal
73392         mail address; this is the style the FSF seems to prefer.
73393
73394         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
73395         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
73396         this updates FSF postal mail address.
73397
73398         Sync from coreutils.
73399         * modules/unlinkdir: New file.
73400         * modules/yesno (Depends-on): Add getline.
73401         * MODULES.html.sh (File system functions): Add unlinkdir.
73402
73403 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
73404
73405         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
73406         lib/strsep.h:
73407         Change the initial comment to refer to GPL, not LGPL.
73408         gnulib-tool will change it to LGPL as needed.
73409
73410         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
73411         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
73412         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
73413         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
73414         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
73415         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
73416         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
73417         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
73418         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
73419         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
73420         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
73421         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
73422         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
73423         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
73424         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
73425         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
73426         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
73427         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
73428         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
73429         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
73430         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
73431         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
73432         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
73433         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
73434         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
73435         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
73436         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
73437         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
73438         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
73439         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
73440         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
73441         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
73442         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
73443         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
73444         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
73445         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
73446         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
73447         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
73448         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
73449         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
73450         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
73451         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
73452         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
73453         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
73454         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
73455         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
73456         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
73457         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
73458         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
73459         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
73460         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
73461         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
73462         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
73463         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
73464         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
73465         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
73466         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
73467         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
73468         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
73469         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
73470         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
73471         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
73472         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
73473         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
73474         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
73475         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
73476         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
73477         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
73478         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
73479         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
73480         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
73481         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
73482         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
73483         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
73484         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
73485         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
73486         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
73487         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
73488         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
73489         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
73490         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
73491         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
73492         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
73493         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
73494         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
73495         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
73496         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
73497         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
73498         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
73499         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
73500         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
73501         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
73502         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
73503         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
73504         lib/yesno.c, lib/yesno.h:
73505         Update FSF postal mail address.
73506
73507 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
73508
73509         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
73510         tests/test-memmem.c, tests/test-stpncpy.c:
73511         Update FSF postal mail address.
73512
73513 2005-05-13  Bruno Haible  <bruno@clisp.org>
73514
73515         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
73516         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
73517         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
73518         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
73519         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
73520         Add support for 64-bit integers in the MSVC compiler.
73521
73522 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73523
73524         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
73525
73526 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
73527
73528         * gnulib-tool (func_import): Sort and uniquify recommended includes.
73529
73530 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
73531
73532         * doc/getdate.texi (General date syntax): Don't say that date
73533         date --iso-8601=ns generates acceptable dates; it doesn't yet.
73534         Problem reported by Nic Ferrier.
73535
73536 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73537
73538         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
73539         specified in ai_socktype. Fix invalid ai_protocol
73540         check. ai_protocol is usually set to 0 or depending on
73541         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
73542         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
73543         ai_socktype / ai_protocol in the returned addrinfo structure.
73544
73545 2005-05-10  Simon Josefsson  <jas@extundo.com>
73546
73547         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
73548         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
73549
73550 2005-05-10  Karl Berry  <karl@gnu.org>
73551
73552         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
73553         (from http://www.gnu.org/licenses).
73554         * doc/COPYING.LIB: also rename to COPYING.LESSER.
73555         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
73556         fdl.texi suffices.
73557
73558 2005-05-10  Karl Berry  <karl@gnu.org>
73559
73560         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
73561         (COPYING.DOC): remove.
73562
73563         * config/srclist-update: new FSF address.
73564
73565 2005-05-10  Derek Price  <derek@ximbiot.com>
73566
73567         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
73568         possible.
73569
73570 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73571             Bruno Haible  <bruno@clisp.org>
73572
73573         * modules/inet_ntop: New file.
73574         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73575         inet_ntop.
73576
73577 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73578             Bruno Haible  <bruno@clisp.org>
73579
73580         * m4/inet_ntop.m4: New file.
73581
73582 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73583             Bruno Haible  <bruno@clisp.org>
73584
73585         * lib/inet_ntop.h: New file.
73586         * lib/inet_ntop.c: New file, from glibc with modifications.
73587
73588 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
73589
73590         * modules/time_r (License): Change to LGPL.
73591         * modules/extensions (License): Change to LGPL.  Actually,
73592         the license is more permissive than that, but currently gnulib-tool
73593         doesn't know how to handle more-permissive licenses.
73594
73595         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
73596         Problem reported by Dave Love.
73597
73598 2005-05-08  Jim Meyering  <jim@meyering.net>
73599
73600         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
73601         blank.
73602
73603 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
73604
73605         * modules/argmatch (Depends-on): Add stdbool.
73606         * modules/backupfile (Depends-on): Likewise.
73607         * modules/chdir-long (Depends-on): Likewise.
73608         * modules/closeout (Depends-on): Likewise.
73609         * modules/cycle-check (Depends-on): Likewise.
73610         * modules/dirname (Depends-on): Likewise.
73611         * modules/fnmatch (Depends-on): Likewise.
73612         * modules/fsusage (Depends-on): Likewise.
73613         * modules/fwriteerror (Depends-on): Likewise.
73614         * modules/getcwd (Depends-on): Likewise.
73615         * modules/getloadavg (Depends-on): Likewise.
73616         * modules/hard-locale (Depends-on): Likewise.
73617         * modules/makepath (Depends-on): Likewise.
73618         * modules/mountlist (Depends-on): Likewise.
73619         * modules/nanosleep (Depends-on): Likewise.
73620         * modules/posixtm (Depends-on): Likewise.
73621         * modules/quotearg (Depends-on): Likewise.
73622         * modules/readtokens (Depends-on): Likewise.
73623         * modules/readtokens0 (Depends-on): Likewise.
73624         * modules/readutmp (Depends-on): Likewise.
73625         * modules/save-cwd (Depends-on): Likewise.
73626         * modules/strftime (Depends-on): Likewise.
73627         * modules/userspec (Depends-on): Likewise.
73628         * modules/utimecmp (Depends-on): Likewise.
73629         * modules/xgetcwd (Depends-on): Likewise.
73630         * modules/xnanosleep (Depends-on): Likewise.
73631         * modules/xstrtod (Depends-on): Likewise.
73632         * modules/yesno (Depends-on): Likewise.
73633
73634 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
73635
73636         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
73637         needless checks.
73638
73639 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
73640
73641         Merge from coreutils.  Among other things,
73642         add bulletproofing for cases where stdin, stdout, or stderr are closed.
73643         * lib/fd-safer.c: New file.
73644         * lib/fcntl-safer.h, open-safer.c: Remove.
73645         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
73646         * lib/dup-safer.c: Include unistd-safer.h first.
73647         Don't include errno.h.
73648         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
73649         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
73650         * lib/file-type.c: Rely on file-type.h change.
73651         * lib/getloadavg.c: Include unistd-safer.h.
73652         (getloadavg): Use safer open.
73653         * lib/getusershell.c: Include "stdio-safer.h".
73654         (getusershell): Use safer fopen.
73655         * lib/long-options.c (long_options): Use NULL rather than 0.
73656         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
73657         'free'.
73658         * lib/modechange.c: Likewise.
73659         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
73660         (MODE_DONE): New constant.
73661         (struct mode_change): Remove 'next' member.
73662         (make_node_op_equals): New function; like the old one of the
73663         same name, except it allocates an array.
73664         (mode_compile, mode_create_from_ref): Use it.
73665         (mode_compile): Allocate result as an array, not a linked list.
73666         Parse octal string ourself, so that we catch mistakes like "+0".
73667         (mode_adjust): Arg is an array, not a linked list.
73668         * lib/modechange.c: Include stat-macros.h, xalloc.h.
73669         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
73670         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
73671         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
73672         Remove.  This is now stat-macros.h's job.
73673         (talloc): Remove.  All callers replaced by xalloc, so that
73674         our invokers don't have to worry about reporting memory failures.
73675         (make_node_op_equals): Remove.
73676         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
73677         New constants.
73678         (struct mode_change): Moved here from modechange.h.
73679         (mode_append_entry): Remove.
73680         (mode_compile): Remove MASKED_OPS arg, since it encouraged
73681         apps to have incorrect behavior.  Use simpler algorithm for head
73682         and tail.  Don't futz with umask; that's now the job of mode_adjust.
73683         Detect more invalid usages rather than having somewhat-random behavior.
73684         Don't insert an "a=" action, as that leads to incorrect behavior.
73685         (mode_compile, mode_create_from_ref): Return NULL on error instead
73686         of an enum, since now there's only one way to have an error.  All
73687         callers changed.
73688         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
73689         at the correct time.  Simplify calculation of "+u" and its ilk.
73690         Don't mishandle "+X".
73691         (mode_free): Remove "register" and localize decls.
73692         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
73693         (struct mode_change): Move to modechange.c; callers don't
73694         need to see this stuff.
73695         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
73696         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
73697         (mode_change, mode_adjust): Reflect the new signatures noted above.
73698         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
73699         that might redefine system include files.
73700         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
73701         (my_usleep): Use NULL rather than (void *) 0.
73702         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
73703         Use siginterrupt to specify that system calls should be interrupted.
73704         (rpl_nanosleep): Move initialization of suspended closer to call of
73705         my_usleep.
73706         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
73707         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
73708         (desirable_utmp_entry): New function.
73709         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
73710         using x2nrealloc, to simplify logic.
73711         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
73712         size calculation.  Do not assume utmp file is a regular file.
73713         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
73714         (READ_UTMP_CHECK_PIDS): New constant.
73715         * lib/save-cwd.c: Include unistd-safer.h.
73716         (save_cwd): Use fd_safer.
73717         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
73718         [!_LIBC] Include "stat-macros.h" instead.
73719         * lib/unistd-safer.h (fd_safer): New decl.
73720
73721 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
73722
73723         * modules/getloadavg (Depends-on): Add unistd-safer.
73724         * modules/getusershell (Depends-on): Add stdio-safer.
73725         * modules/lstat (Depends-on): Remove xalloc.
73726         * modules/mkstemp (Depends-on): Add stat-macros.
73727         * modules/modechange (Depends-on): Remove xstrtol.
73728         Add stat-macros, xalloc.
73729         * modules/save-cwd (Depends-on): Add unistd-safer.
73730         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
73731         * modules/unistd-safer (Files): Add lib/fd-safer.c
73732         (Makefile.am): Remove lib_SOURCES.
73733
73734         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
73735         Remove fcntl-safer; unistd-safer supersedes it.
73736
73737 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
73738
73739         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
73740         AC_HEADER_STAT.
73741         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
73742         (gl_PREREQ_CHOWN): Remove.
73743         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
73744         it.  Don't require AC_HEADER_STAT.
73745         (gl_PREREQ_LSTAT): Remove.
73746         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
73747         Don't require AC_HEADER_STAT.
73748         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
73749         (gl_PREREQ_RMDIR): Remove.
73750         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
73751         mention stat-macros.h or AC_HEADER_STAT, since we'll make
73752         the stat-macros module a prerequisite.
73753         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
73754         * m4/filemode.m4 (gl_FILEMODE): Likewise.
73755         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
73756         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
73757         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
73758         variable names.
73759         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
73760         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
73761         variable prefixes.
73762         * m4/fcntl-safer.m4: Remove.
73763         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
73764         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
73765         Invoke gl_PREREQ_FD_SAFER.
73766         (gl_PREREQ_FD_SAFER): New macro.
73767         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
73768         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
73769         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
73770         Remove duplicate call to AC_LIBOBJ(readutmp).
73771         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
73772
73773         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
73774         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
73775
73776 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
73777
73778         * MODULES.html.sh (Misc): Add byteswap.
73779
73780 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
73781
73782         * modules/getcwd (Depends-on): Add extensions.
73783         * modules/openat (Depends-on): Likewise.
73784
73785 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
73786
73787         * modules/byteswap: New file.
73788
73789 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
73790
73791         * m4/byteswap.m4: New file.
73792
73793 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
73794
73795         * lib/byteswap_.h: New file.
73796
73797 2005-04-25  Karl Berry  <karl@gnu.org>
73798
73799         * m4/gettext.m4: Update from GNU gettext 0.14.4.
73800
73801 2005-04-25  Albert Chin  <china@thewrittenword.com>
73802
73803         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
73804         Toolkit C bug.
73805
73806 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
73807
73808         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
73809         (func_ln_if_changed): Remove forcibly for no error message
73810         in case file does not exist.
73811
73812 2005-04-19  Simon Josefsson  <jas@extundo.com>
73813
73814         * gnulib-tool (Options): Make --symlink mean --symbolic.
73815
73816 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
73817
73818         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
73819
73820 2005-04-16  Simon Josefsson  <jas@extundo.com>
73821
73822         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
73823
73824 2005-04-15  Simon Josefsson  <jas@extundo.com>
73825
73826         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
73827
73828 2005-04-15  Simon Josefsson  <jas@extundo.com>
73829
73830         * gnulib-tool: Rename --symlink to --symbolic.
73831
73832 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
73833
73834         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
73835         symbolic links to files instead of copying/moving.  Add --aux-dir,
73836         specifying directory relative --dir where auxiliary build tools
73837         are placed.
73838
73839 2005-04-14  Bruno Haible  <bruno@clisp.org>
73840
73841         * modules/allocsa (License): Change to LGPL.
73842         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
73843
73844 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
73845
73846         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
73847         that "UTC +1 second" continues to work.  Problem reported
73848         by Dmitry V. Levin.
73849         (relunit_snumber): New rule.
73850         (relunit): Use it.
73851
73852 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
73853
73854         * lib/getdate.y (universal_time_zone_table): New constant.
73855         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
73856         universal_time_zone_table.
73857         (lookup_zone): Prefer universal_time_zone_table to
73858         local_time_zone_table, so that "GMT" time stamps are allowed in
73859         London during the summer.  Problem reported by Ian Abbott.
73860
73861 2005-04-12  Jim Meyering  <jim@meyering.net>
73862
73863         * lib/human.c (humblock): Set *options even when returning due to
73864         xstrtoumax conversion failure.  Thanks to a used-uninitialized
73865         warning from gcc-4.
73866
73867 2005-04-09  Jim Meyering  <jim@meyering.net>
73868
73869         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
73870         -Wuninitialized: initialize tm0.tm_year.
73871
73872 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
73873
73874         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
73875         count, since there's no maximum.  All uses changed.
73876         Add member dsts_seen.
73877         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
73878         not being INT_MAX.
73879         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
73880         Use pc_rels_seen to decide whther a date is absolute.
73881
73882         * lib/getdate.y (number): Don't overwrite year.
73883         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
73884         check.
73885
73886 2005-04-02  Simon Josefsson  <jas@extundo.com>
73887
73888         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
73889         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
73890
73891 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
73892
73893         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
73894         where no absolute path name can be longer than PATH_MAX.
73895
73896 2005-03-27  Jim Meyering  <jim@meyering.net>
73897
73898         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
73899
73900 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
73901
73902         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
73903         "one's complement" -> "ones' complement" in comment, as per Knuth.
73904         "value of type" -> "type or expression" in comment.
73905         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
73906
73907 2005-03-26  Jim Meyering  <jim@meyering.net>
73908
73909         Comment nits.
73910         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
73911         Correct typos: s/or/of/.
73912
73913 2005-03-26  Jim Meyering  <jim@meyering.net>
73914
73915         * modules/check-include-files: Move to ../ and rename to...
73916         * check-module: ...this.
73917
73918 2005-03-25  Jim Meyering  <jim@meyering.net>
73919
73920         * modules/xvasprintf (Files): Add xalloc.h.
73921
73922 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
73923
73924         * modules/gettext (Files): config/config.rpath ->
73925         build-aux/config.rpath
73926         * modules/iconv (Files): Likewise.
73927         Problem reported by Oskar Liljeblad.
73928
73929 2005-03-23  Jim Meyering  <jim@meyering.net>
73930
73931         * modules/check-include-files: New script to check for
73932         missing dependencies, multiple includes, etc.
73933
73934         * modules/c-strtold (Depends-on): Add xalloc.
73935         * modules/c-strtod (Depends-on): Add xalloc.
73936         * modules/hash (Depends-on): Add xalloc.
73937         (Files): Remove lib/xalloc.h.
73938
73939         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
73940         * modules/userspec (Files): Add lib/inttostr.h.
73941
73942 2005-03-23  Jim Meyering  <jim@meyering.net>
73943
73944         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
73945
73946 2005-03-22  Jim Meyering  <jim@meyering.net>
73947
73948         * modules/stat-macros: New module.
73949         * modules/canonicalize, modules/euidaccess, modules/file-type,
73950         * modules/filemode, modules/lchown, modules/makepath,
73951         * modules/rmdir, modules/stat: Depend on new stat-macros module
73952         rather than listing lib/stat-macros.h manually.
73953         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
73954
73955 2005-03-22  Jim Meyering  <jim@meyering.net>
73956
73957         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
73958
73959 2005-03-22  Bruno Haible  <bruno@clisp.org>
73960
73961         * config/srclist.txt: Replace target directory 'config' with
73962         'build-aux'.
73963         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
73964         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
73965         ../build-aux/.
73966
73967 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
73968
73969         * modules/chdir-long (Depends-on): Add mempcpy.
73970
73971         * modules/acl, modules/backupfile, modules/c-strtod,
73972         modules/c-strtold, modules/canon-host, modules/canonicalize,
73973         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
73974         modules/exclude, modules/exitfail, modules/file-type,
73975         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
73976         modules/getdate, modules/getline, modules/getpagesize,
73977         modules/getpass, modules/getugroups, modules/group-member,
73978         modules/hard-locale, modules/hash, modules/human, modules/idcache,
73979         modules/inttostr, modules/long-options, modules/makepath,
73980         modules/md5, modules/memcasecmp, modules/memcoll,
73981         modules/modechange, modules/mountlist, modules/path-concat,
73982         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
73983         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
73984         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
73985         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
73986         modules/strftime, modules/strndup, modules/strverscmp,
73987         modules/timespec, modules/unlocked-io, modules/userspec,
73988         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
73989         modules/yesno:
73990         Remove lib_SOURCES line from Makefile.am section, as this is now
73991         done automatically by the corresponding Autoconf macro.
73992
73993 2005-03-21  Jim Meyering  <jim@meyering.net>
73994
73995         Changes imported from coreutils.
73996
73997         * lib/cycle-check.c: Don't include xalloc.h.
73998
73999         * lib/path-concat.c: Don't include assert.h.
74000         (path_concat): Remove assertion that would have triggered
74001         for ABASE starting with more than one slash.
74002         Reported by Andreas Schwab.
74003
74004         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
74005         properly when ABASE is an absolute file name.
74006         Correct the description of this function.
74007         Include <assert.h>.
74008         Add an assertion and a test driver.
74009         This fixes a bug introduced on 2004-07-02.
74010         Andreas Schwab reported the resulting failure of cp --parents:
74011         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
74012
74013 2005-03-21  Jim Meyering  <jim@meyering.net>
74014
74015         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
74016         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
74017
74018 2005-03-21  Jim Meyering  <jim@meyering.net>
74019         and  Paul Eggert  <eggert@cs.ucla.edu>
74020
74021         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
74022         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
74023         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
74024         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
74025         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
74026         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
74027         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
74028         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
74029         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
74030         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
74031         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
74032         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
74033         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
74034         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
74035         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
74036         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
74037         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
74038         for these modules.
74039
74040 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
74041
74042         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
74043         (which shouldn't happen), generate nothing instead of returning 0
74044         immediately, so that nstrftime (NULL, ...) doesn't return 0.
74045
74046 2005-03-16  Bruno Haible  <bruno@clisp.org>
74047
74048         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
74049         HAVE_LONGLONG_64BIT.
74050
74051 2005-03-16  Bruno Haible  <bruno@clisp.org>
74052
74053         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
74054         HAVE_LONGLONG_64BIT.
74055
74056 2005-03-16  Bruno Haible  <bruno@clisp.org>
74057
74058         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
74059         HAVE_LONGLONG_64BIT.
74060
74061 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
74062
74063         * lib/strftime.c (my_strftime): Prepend space to format so that we can
74064         reliably distinguish strftime failure from empty output on POSIX
74065         hosts.
74066
74067 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
74068
74069         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
74070         (iconv_string): Don't guess a size-zero buffer, as that might cause
74071         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
74072         result would be 'too large', where 'too large' is (heuristically)
74073         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
74074         overflow concerns.  This will prevent some unwanted malloc failures
74075         when the inputs are very large.
74076
74077 2005-03-15  Karl Berry  <karl@gnu.org>
74078
74079         * config/srclist.txt (config.rpath): from gettext.
74080         * config/config.rpath: update.
74081
74082 2005-03-15  Bruno Haible  <bruno@clisp.org>
74083
74084         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
74085         to 'negate'.
74086
74087         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
74088         variable.
74089
74090         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
74091         results.
74092
74093 2005-03-14  Simon Josefsson  <jas@extundo.com>
74094
74095         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
74096         <fx@gnu.org>.
74097
74098 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
74099
74100         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
74101         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
74102         intprops.h.
74103         * lib/strtol.c: Likewise.
74104
74105 2005-03-14  Jim Meyering  <jim@meyering.net>
74106
74107         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
74108         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
74109         to be nonzero so that we (and caller) can detect the difference
74110         between a valid zero-length expansion and an error return, even
74111         when the underlying strftime fails before writing anything into
74112         that location.
74113
74114 2005-03-14  Bruno Haible  <bruno@clisp.org>
74115
74116         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
74117         Update from GNU gettext 0.14.3.
74118
74119 2005-03-10  Jim Meyering  <jim@meyering.net>
74120
74121         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
74122
74123 2005-03-10  Jim Meyering  <jim@meyering.net>
74124
74125         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
74126         so that this module works on systems without fchdir.
74127
74128 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
74129
74130         Factor int-properties macros into a single file, except for
74131         glibc-related files.
74132         * lib/intprops.h: New file.
74133         * lib/getloadavg.c: Include it instead of limits.h.
74134         (INT_STRLEN_BOUND): Remove.
74135         * lib/human.c: Include intprops.h.
74136         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
74137         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
74138         302/1000.
74139         * lib/inttostr.h: Include intprops.h instead of limits.h.
74140         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
74141         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
74142         for consistency with intprops.h.
74143         (time_t_is_integer, twos_complement_arithmetic): Use them.
74144         * lib/sig2str.h: Include <signal.h>, intprops.h.
74145         (INT_STRLEN_BOUND): Remove.
74146         * lib/strftime.c (TYPE_SIGNED): Remove.
74147         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
74148         * lib/strtol.c: Adjust comments to match intprops.h.
74149         * lib/userspec.c: Include intprops.h.
74150         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
74151         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
74152         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
74153         instead of rolling our own expressions.
74154         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
74155
74156         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
74157         instead of int.
74158         (my_strftime): Do not mishandle years close to INT_MAX, by doing
74159         the right thing even if adding 1900 would overflow.  Similarly
74160         for tm_mon + 1 and tm_yday + 1.
74161         Make %Y always equivalent to %C%y, and similarly for %G and %g.
74162         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
74163         (DO_SIGNED_NUMBER): New macro.
74164         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
74165
74166 2005-03-07  Bruno Haible  <bruno@clisp.org>
74167
74168         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
74169
74170 2005-03-07  Bruno Haible  <bruno@clisp.org>
74171
74172         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
74173
74174 2005-03-04  Derek R. Price  <derek@ximbiot.com>
74175
74176         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
74177         (func_import): Only replace files via --import when they have actually
74178         changed.
74179
74180 2005-03-03  Derek R. Price  <derek@ximbiot.com>
74181
74182         * m4/mmap-anon.m4: New file.
74183         * m4/pagealign_alloc.m4: New file.
74184
74185 2005-03-03  Derek R. Price  <derek@ximbiot.com>
74186             Bruno Haible  <bruno@clisp.org>
74187
74188         * modules/pagealign_alloc: New file.
74189         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
74190
74191 2005-03-03  Derek R. Price  <derek@ximbiot.com>
74192             Bruno Haible  <bruno@clisp.org>
74193
74194         * lib/pagealign_alloc.h: New file.
74195         * lib/pagealign_alloc.c: New file.
74196
74197 2005-03-03  Bruno Haible  <bruno@clisp.org>
74198
74199         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
74200         Use an all-permissive copyright notice, recommended by RMS.
74201
74202 2005-03-02  Bruno Haible  <bruno@clisp.org>
74203
74204         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
74205         of AIX, the replacement has to be done only after <string.h> is
74206         included, therefore not in config.h. stpncpy.h does the replacement,
74207         and stpncpy.c uses it.
74208
74209 2005-03-02  Bruno Haible  <bruno@clisp.org>
74210
74211         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
74212         stpncpy.c uses it.
74213
74214 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
74215
74216         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
74217         The workaround isn't strictly needed for POSIX conformance, and
74218         it's too much of a pain to configure and maintain.  We'll ask
74219         people to fix their kernels instead.
74220         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
74221         (NANOSLEEP_BUG_WORKAROUND): Remove.
74222         (xnanosleep): Remove the workaround.
74223
74224 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
74225
74226         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
74227         Reported by Derek Price.
74228         (Include): Add "timespec.h".
74229
74230         * modules/xnanosleep (Depends-on): Remove gethrxtime.
74231
74232 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
74233
74234         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
74235         to detect nanosleep bug.
74236
74237 2005-03-01  Bruno Haible  <bruno@clisp.org>
74238
74239         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
74240
74241 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
74242
74243         * modules/gethrxtime: New file.
74244         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
74245         (Depends-on): Add gethrxtime.
74246         (configure.ac): Add gl_XNANOSLEEP.
74247         (Makefile.am): Remove lib_SOURCES line.
74248
74249 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
74250
74251         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
74252         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
74253
74254 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
74255
74256         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
74257         * lib/timespec.h (gettime): Return void, since it always
74258         succeeds now.  All uses changed.
74259         * lib/gettime.c (gettime): Likewise.
74260         [HAVE_NANOTIME]: Prefer nanotime.
74261         Assume gettimeofday succeeds, as POSIX requires.
74262         Assime time () succeeds, since other code already does.
74263         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
74264         (timespec_subtract): Remove.
74265         (NANOSLEEP_BUG_WORKAROUND): New constant.
74266         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
74267         things considerably.  Use it only on GNU/Linux hosts, since the
74268         workaround shouldn't be needed elsewhere.
74269
74270 2005-02-24  Bruno Haible  <bruno@clisp.org>
74271
74272         * modules/gettext (Files): Add m4/glibc2.m4.
74273
74274 2005-02-24  Bruno Haible  <bruno@clisp.org>
74275
74276         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
74277         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
74278         * m4/progtest.m4:
74279         Update from GNU gettext 0.14.2.
74280         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
74281
74282 2005-02-24  Bruno Haible  <bruno@clisp.org>
74283
74284         * lib/localcharset.c: Update from GNU gettext 0.14.2.
74285         * lib/config.charset: Update from GNU gettext 0.14.2.
74286
74287 2005-02-24  Bruno Haible  <bruno@clisp.org>
74288
74289         * lib/gettext.h: Update from GNU gettext 0.14.2.
74290
74291 2005-02-23  Simon Josefsson  <jas@extundo.com>
74292
74293         * m4/iconvme.m4: New file.
74294
74295 2005-02-23  Jim Meyering  <jim@meyering.net>
74296
74297         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
74298         change.
74299         Thanks to Bruno Haible for catching it.
74300
74301 2005-02-22  Simon Josefsson  <jas@extundo.com>
74302
74303         * modules/iconvme: New file.
74304
74305         * MODULES.html.sh: Add iconvme.
74306
74307 2005-02-22  Simon Josefsson  <jas@extundo.com>
74308
74309         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
74310
74311 2005-02-22  Simon Josefsson  <jas@extundo.com>
74312
74313         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
74314
74315 2005-02-22  Jim Meyering  <jim@meyering.net>
74316
74317         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
74318         s/ifndef/ifdef/.
74319
74320 2005-02-20  Neil Conway  <neilc@samurai.com>
74321
74322         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
74323         returned by OSX/Darwin if the specified buffer is not large
74324         enough for the hostname.
74325
74326 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74327
74328         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
74329         pass it to _help, otherwise the latter coredumps trying to
74330         dereference state.root_argp.
74331
74332 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
74333
74334         * modules/chdir-long (Depends-on): Add memrchr.
74335         * modules/memrchr (Files): Add lib/memrchr.h.
74336         (Include): "memrchr.h".
74337
74338 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
74339
74340         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
74341
74342 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
74343
74344         * lib/memrchr.h: New file.
74345         * lib/chdir-long.c: Include it.
74346         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
74347         Don't bother including stddef.h.
74348
74349 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
74350
74351         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
74352         inclusion.
74353         Include <sys/types.h>, for dev_t.
74354         (ME_DUMMY, ME_REMOTE): Move from here....
74355         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
74356         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
74357         Dmitry V. Levin.
74358         Include mountlist.h first, to test the interface.
74359
74360 2005-01-29  Bruno Haible  <bruno@clisp.org>
74361
74362         * lib/progname.c (program_name): Initialize.
74363         Needed when linking statically on MacOS X.
74364
74365 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
74366
74367         Sync from coreutils.
74368         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
74369         (Depends-on): Add c-strtod.
74370         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
74371
74372 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
74373
74374         Sync from coreutils.
74375         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
74376
74377         Remove files that are specific to coreutils.
74378         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
74379
74380 2005-01-28  Bruno Haible  <bruno@clisp.org>
74381
74382         * modules/javacomp: New file.
74383         * MODULES.html.sh (Java): Add javacomp.
74384
74385 2005-01-28  Bruno Haible  <bruno@clisp.org>
74386
74387         * m4/javacomp.m4: New file, from GNU gettext.
74388
74389 2005-01-28  Bruno Haible  <bruno@clisp.org>
74390
74391         * lib/javacomp.sh.in: New file, from GNU gettext.
74392         * lib/javacomp.h: New file, from GNU gettext.
74393         * lib/javacomp.c: New file, from GNU gettext.
74394
74395 2005-01-26  Simon Josefsson  <jas@extundo.com>
74396
74397         * lib/gai_strerror.c: Use GPL in header.
74398
74399 2005-01-26  Bruno Haible  <bruno@clisp.org>
74400
74401         * modules/javaexec: New file.
74402         * MODULES.html.sh (Java): Add javaexec.
74403
74404 2005-01-26  Bruno Haible  <bruno@clisp.org>
74405
74406         * m4/javaexec.m4: New file, from GNU gettext.
74407
74408 2005-01-26  Bruno Haible  <bruno@clisp.org>
74409
74410         * lib/javaexec.sh.in: New file, from GNU gettext.
74411         * lib/javaexec.h: New file, from GNU gettext.
74412         * lib/javaexec.c: New file, from GNU gettext.
74413
74414 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74415
74416         * modules/lchown (Depends-on): Remove lchown.h
74417
74418 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74419
74420         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
74421         must be defined if the header file was not found, in order
74422         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
74423
74424 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74425
74426         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
74427         initializers for struct pentry_state.
74428         (__argp_error): Check return value of __asprintf
74429         (__argp_failure): Translate error message
74430
74431         * lib/argp-parse.c: Removed braces around the expansion of N_()
74432
74433 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74434
74435         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
74436         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
74437         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
74438         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
74439         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
74440         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
74441         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
74442         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
74443         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
74444         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
74445         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
74446         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
74447         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
74448         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
74449         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
74450         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
74451         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
74452         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
74453         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
74454         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
74455         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
74456         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
74457         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
74458         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
74459         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
74460         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
74461         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
74462         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
74463         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
74464         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
74465         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
74466         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
74467         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
74468         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
74469         xstrtol.m4, xstrtoumax.m4, yesno.m4:
74470         Use an all-permissive copyright notice, recommended by RMS.
74471
74472 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
74473
74474         * modules/chdir-long (Depends-on): Remove mempcpy.
74475
74476 2005-01-21  Jim Meyering  <jim@meyering.net>
74477
74478         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
74479         same value as for Solaris 9.
74480
74481         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
74482         component length.  This included changing the parameter to be
74483         of type `char *' rather than `char const *'.
74484         * lib/chdir-long.h (chdir_long): Update prototype.
74485
74486         * lib/openat.c (fdopendir, fstatat): New functions.
74487         * lib/openat.h: Include headers required for use of DIR and struct
74488         stat.
74489         [AT_SYMLINK_NOFOLLOW]: Define.
74490         (fdopendir, fstatat): Add prototypes.
74491
74492 2005-01-21  Bruno Haible  <bruno@clisp.org>
74493
74494         * modules/classpath: New file.
74495         * MODULES.html.sh (Java): Add classpath.
74496
74497 2005-01-21  Bruno Haible  <bruno@clisp.org>
74498
74499         * lib/classpath.h: New file, from GNU gettext.
74500         * lib/classpath.c: New file, from GNU gettext.
74501
74502 2005-01-20  Simon Josefsson  <jas@extundo.com>
74503
74504         * modules/version-etc-fsf: New file.
74505
74506 2005-01-20  Simon Josefsson  <jas@extundo.com>
74507
74508         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
74509         * lib/version-etc.c: Remove version_etc_copyright.
74510         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
74511         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
74512
74513 2005-01-20  Simon Josefsson  <jas@extundo.com>
74514
74515         * lib/base64.h (isbase64): Add.
74516
74517         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
74518         using a unsigned prototype, don't inline.
74519         (base64_decode): Use it.
74520
74521 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
74522
74523         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
74524         it.
74525
74526 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
74527
74528         * lib/save-cwd.c (save_cwd): Remove code to support the case
74529         where fchdir is missing or flaky.
74530
74531 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
74532
74533         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
74534
74535 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
74536
74537         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
74538         AC_LIBSOURCES now does this.
74539         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
74540         with new ullong_max module.
74541
74542 2005-01-19  Bruno Haible  <bruno@clisp.org>
74543
74544         * modules/sh-quote: New file.
74545         * MODULES.html.sh (Executing programs): Add sh-quote.
74546
74547 2005-01-19  Bruno Haible  <bruno@clisp.org>
74548
74549         * lib/sh-quote.h: New file, from GNU gettext.
74550         * lib/sh-quote.c: New file, from GNU gettext.
74551
74552 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
74553
74554         Merge from coreutils.
74555         * m4/ullong_max.m4: New file.
74556         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
74557         (gl_MACROS): Assume localeconv exists.
74558
74559 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
74560
74561         Merge changes from coreutils, as described below in several
74562         changelogs dated today.
74563
74564         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
74565         (O_DIRECTORY): Remove; not needed here, since "." must be
74566         a directory.  All uses removed.
74567         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
74568         universal on Suns, and we also need to test for IRIX.
74569         Revamp code to use 'if' rather than '#if'.
74570         Avoid unnecessary comparison of cwd->desc to 0.
74571
74572         * lib/utimens.c (futimens): Robustify the previous patch, by checking
74573         for known valid error numbers rather than observed invalid ones.
74574
74575 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
74576
74577         * modules/ullong_max: New file.
74578
74579         * modules/chdir-long, modules/openat: New files.
74580         * modules/save-cwd (Depends-on): Depend on chdir-long.
74581         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
74582
74583 2005-01-18  Jim Meyering  <jim@meyering.net>
74584
74585         Merge from coreutils.
74586         * m4/chdir-long.m4, m4/openat.m4: New files.
74587         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
74588         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
74589         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
74590         is sane and DOES follow symlinks.  Besides, testing 20 different
74591         systems found no broken chown implementations.
74592         Prompted by a change in rsync's copy of this macro.
74593         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
74594
74595         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
74596
74597         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
74598         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
74599         NULL-means-set-to-current-time semantics.
74600         Remove temporary file immediately, rather than waiting
74601         for configure's at-exit trap code to do it.
74602
74603 2005-01-18  Jim Meyering  <jim@meyering.net>
74604
74605         * lib/version-etc.c (version_etc_copyright): Update copyright date.
74606
74607         * lib/utimens.c (futimens): Account for the fact that futimes
74608         can also fail with errno == ENOSYS or errno == ENOENT.
74609         Patch from Dmitry V. Levin.
74610
74611         Change the name of the robust chdir function from chdir to chdir_long.
74612         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
74613         (restore_cwd): Use chdir_long, not chdir.
74614         * lib/chdir-long.c: Renamed from chdir.c.
74615         * lib/chdir-long.h: Renamed from chdir.h.
74616         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
74617         Hurd.
74618
74619 2005-01-18  Bruno Haible  <bruno@clisp.org>
74620
74621         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
74622         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
74623         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
74624         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
74625         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
74626         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
74627         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
74628         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
74629         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
74630         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
74631         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
74632         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
74633         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
74634         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
74635         Use an all-permissive copyright notice, recommended by RMS.
74636
74637 2005-01-18  Bob Proulx  <bob@proulx.com>
74638
74639         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
74640         simplify offsetof() macro construct to avoid compile failure with
74641         native HP-UX 11.0 ANSI C compiler.
74642
74643 2005-01-17  Bruno Haible  <bruno@clisp.org>
74644
74645         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
74646         redundant because stpncpy.m4 takes care of it.
74647
74648 2005-01-17  Bruno Haible  <bruno@clisp.org>
74649
74650         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
74651
74652 2005-01-17  Bruno Haible  <bruno@clisp.org>
74653
74654         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
74655         used.
74656
74657 2005-01-17  Bruno Haible  <bruno@clisp.org>
74658
74659         * lib/fwriteerror.h (fwriteerror): Change specification to include
74660         fclose.
74661         * lib/fwriteerror.c: Include <stdbool.h>.
74662         (fwriteerror): At the end, close the file stream. Record whether
74663         stdout was already closed.
74664
74665 2005-01-17  Bruno Haible  <bruno@clisp.org>
74666
74667         * lib/execute.c (environ): Declare if needed.
74668         * lib/pipe.c (environ): Likewise.
74669         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
74670
74671 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74672
74673         * modules/argp: Depend on vsnprintf
74674
74675 2005-01-10  Jim Meyering  <jim@meyering.net>
74676
74677         * modules/closeout (Depends-on): Add atexit.
74678
74679 2005-01-06  Bruno Haible  <bruno@clisp.org>
74680
74681         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
74682
74683 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
74684
74685         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
74686         definitions to be after all include files, to avoid collisions.
74687         Problem reported by Bob Proulx.
74688
74689 2005-01-04  Jim Meyering  <jim@meyering.net>
74690
74691         Changes imported from coreutils.
74692         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
74693         as the mkstemp template, use a temporary directory and an
74694         8.3-friendly template to avoid trouble on systems like DJGPP.
74695         Reported by Juan M. Guerrero via Stepan Kasal.
74696         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
74697         close. Remove the temporary directory right away, rather than waiting
74698         for configure's at-exit trap code to do it.
74699         Suggestion from Stepan Kasal.
74700
74701 2005-01-01  Simon Josefsson  <jas@extundo.com>
74702
74703         * gnulib-tool: Print #include directives when --import'ing.
74704
74705 2004-12-28  Simon Josefsson  <jas@extundo.com>
74706
74707         * tests/test-base64.c: Include required header files.  Remove
74708         unused variables.
74709
74710 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
74711
74712         * modules/error (Depends-on): Remove gettext.
74713
74714 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
74715
74716         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
74717         not needed.  This removes a dependency on the gettext module.
74718         [defined _LIBC]: Do not include <libintl.h>; not needed.
74719
74720 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
74721
74722         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
74723         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
74724
74725 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
74726
74727         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
74728         HAVE_DECL_STRTOLD.
74729
74730 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
74731
74732         * modules/getdate (Depends-on): Remove alloca-opt.
74733
74734 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
74735
74736         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
74737
74738 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
74739
74740         * lib/argp-parse.c: Include <stddef.h>.
74741         (alignof, alignto): New macros.
74742         (parser_init): Don't assume that void * is aligned sufficiently
74743         for struct option.
74744
74745         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
74746         need to extend the stack.
74747         (YYINITDEPTH): New macro, so that the initial stack isn't overly
74748         large.
74749
74750 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74751
74752         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
74753
74754 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
74755
74756         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
74757         (2004-10-24) change.  Apparently this was a false alarm.
74758
74759         * modules/getdate: Depend on alloca-opt, not alloca.
74760
74761 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
74762
74763         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
74764         Remove now-obsolete comment about AIX.
74765         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
74766         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
74767         (YYMAXDEPTH): New macro.
74768
74769 2004-12-18  Simon Josefsson  <jas@extundo.com>
74770
74771         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
74772
74773 2004-12-18  Bruno Haible  <bruno@clisp.org>
74774
74775         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
74776
74777 2004-12-18  Bruno Haible  <bruno@clisp.org>
74778
74779         * lib/fatal-signal.c (fatal_signals): Make non-const.
74780         (init_fatal_signals): New function.
74781         (uninstall_handlers, install_handlers): Ignore signals that were set to
74782         SIG_IGN.
74783         (at_fatal_signal): Call init_fatal_signals.
74784         (init_fatal_signal_set): Likewise. Ignore signals that were set to
74785         SIG_IGN.
74786         Reported by Paul Eggert.
74787
74788 2004-12-18  Bruno Haible  <bruno@clisp.org>
74789
74790         * doc/alloca.texi: New file.
74791         * doc/alloca-opt.texi: New file.
74792
74793 2004-12-17  Jim Meyering  <jim@meyering.net>
74794
74795         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
74796         Otherwise, install-sh could exit with improper exit status when
74797         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
74798
74799 2004-12-16  Simon Josefsson  <jas@extundo.com>
74800
74801         * tests/test-base64.c: Add license.
74802
74803 2004-12-15  Stepan Kasal  <address@hidden>
74804
74805         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
74806
74807 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
74808
74809         * modules/getcwd (Files): Add m4/d-ino.m4.
74810         Suggested by Mark D. Baushke.
74811
74812 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
74813
74814         * lib/getdate.y (textint): New member "negative".
74815         (time_zone_hhmm): New function.
74816         Expect 14 shift-reduce conflicts, not 13.
74817         (o_colon_minutes): New rule.
74818         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
74819         (yylex): Set the "negative" member of signed numbers.
74820
74821 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
74822
74823         * doc/getdate.texi (Time of day items, Time zone items):
74824         Describe new formats +00:00, UTC+00:00.
74825
74826 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
74827
74828         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
74829         spurious "-l"s.  Problem reported by Stepan Kasal.
74830
74831 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
74832
74833         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
74834         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
74835
74836 2004-12-04  Simon Josefsson  <jas@extundo.com>
74837
74838         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
74839         Vandoorselaere <yoann@prelude-ids.org>.
74840
74841 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
74842
74843         Changes imported from coreutils.
74844         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
74845         exist.
74846         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
74847
74848 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
74849
74850         Changes imported from coreutils.
74851         * lib/hard-locale.c: Assume <locale.h> exists.
74852         Include "strdup.h".
74853         (GLIBC_VERSION): New macro.
74854         (hard_locale): Assume setlocale exists.
74855         Rewrite to avoid #ifdef.
74856         Use strdup rather than malloc + strcpy.
74857         * lib/human.c: Assume <locale.h> exists.
74858         (human_readable): Assume localeconv exists.
74859
74860 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
74861
74862         * modules/hard-locale (Depends-on): Add strdup.
74863
74864 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
74865
74866         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
74867         convert T2, not T.  (Imported from libc.)
74868
74869 2004-11-30  Simon Josefsson  <jas@extundo.com>
74870
74871         * modules/restrict (License): Change to LGPL.
74872
74873 2004-11-30  Simon Josefsson  <jas@extundo.com>
74874
74875         * m4/restrict.m4: Add copyright and copying conditions.
74876
74877 2004-11-30  Simon Josefsson  <jas@extundo.com>
74878
74879         * m4/base64.m4: New file.
74880
74881 2004-11-30  Simon Josefsson  <jas@extundo.com>
74882
74883         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
74884         base64.
74885
74886         * tests/test-base64.c: New file.
74887
74888         * modules/base64: New file.
74889
74890 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
74891
74892         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
74893         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
74894
74895         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
74896
74897 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
74898
74899         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
74900         (__getcwd.c): Don't restore errno; glibc doesn't.
74901         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
74902         first, falling back to our code only if its results look suspicious.
74903         Ensure that the resulting buffer is only as large as necessary.
74904
74905         * lib/readutmp.c: Include readutmp.h first.
74906         Include <errno.h>, since readutmp.h no longer does that.
74907         * lib/readutmp.h: Don't include <errno.h>,
74908         <sys/param.h>, <time.h>; not needed to establish interface.
74909         (errno): Remove decl.
74910         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
74911         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
74912         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
74913
74914 2004-11-28  Simon Josefsson  <jas@extundo.com>
74915
74916         * lib/base64.h, base64.c: New file.
74917
74918 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
74919
74920         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
74921
74922 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
74923
74924         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
74925         (Depends-on): Remove pathmax, same.  Add mempcpy.
74926         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
74927         (Makefile.am): Append getcwd.h to lib_SOURCES.
74928         (Include): Add getcwd.h.
74929         (Maintainer): Change from Jim Meyering to "all, glibc",
74930         since getdate now uses intended-for-glibc code.
74931         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
74932         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
74933
74934 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
74935
74936         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
74937         HP's ANSI C compiler.
74938         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
74939         Declaring int functions causes warnings on some modern systems and
74940         shouldn't be needed to compile on ancient ones.
74941         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
74942         defined.
74943
74944         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
74945         with the following changes.
74946         (__set_errno): Parenthesize properly.
74947         Include <stdbool.h>.
74948         (MIN, MAX, MATCHING_INO): New macros.
74949         (__getcwd): Define with prototype, not K&R form.
74950         Use heuristics to allocate default buffer on stack if possible.
74951         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
74952         behavior, and to avoid the PATH_MAX limit when computing
74953         ../../../../...
74954         Use MATCHING_INO to compare inode number to file.
74955         Check for arithmetic overflow in size calculations.
74956         Fix bug in reallocation of dot array that caused getcwd to fail
74957         on directories nested deeper than 75.
74958         Be more careful about saving errno on error.
74959         Do not use realloc; use only free+malloc, as this is a bit
74960         more flexible and avoids a needless copy operation.
74961         Do not inspect st_dev and st_ino for symbolic links; POSIX
74962         doesn't specify the latter.
74963         Check for closedir errors.
74964         Avoid needless casts.
74965         Use "#ifdef weak_alias" around weak_alias, to be like other
74966         glibc code.
74967         The following changes to getcwd.c have effect only when used in
74968         gnulib; they have no effect inside glibc proper.
74969         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
74970         as alloca isn't used.
74971         (alloca, __alloca): Likewise.
74972         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
74973         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
74974         unconditionally, as gnulib assumes C89 or better.
74975         Do not include <sys/param.h>.
74976         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
74977         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
74978         better.
74979         (NULL) [!defined NULL]: Remove; we assume C89 or better.
74980         Include <dirent.h> in a way that is compatible with modern Autoconf.
74981         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
74982         New macros, if not already defined.
74983         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
74984         Use "_LIBC", not "defined _LIBC", for consistency.
74985         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
74986         a mempcpy module.
74987         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
74988         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
74989         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
74990         credit only to Jim Meyering and adjust the copyright dates.
74991         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
74992         <stdlib.h>, <unistd.h>, "pathmax.h".
74993         Instead, include "xgetcwd.h" (first) and "getcwd.h".
74994         (INITIAL_BUFFER_SIZE): Remove.
74995         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
74996
74997 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
74998
74999         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
75000         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
75001         Use the _ONCE methods, for efficiency.
75002         Check for fcntl.h.  In test program, include <errno.h>
75003         and <fcntl.h> if available.  Remove old K&R cruft from
75004         test program.  Check for common errors in GNU/Linux,
75005         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
75006         don't do AC_LIBOBJ, as that's getcwd.m4's job.
75007         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
75008         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
75009         name accordingly.
75010         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
75011         accommodate new getcwd.c.
75012         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
75013         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
75014         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
75015         that's all we need now.
75016
75017 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75018
75019         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
75020         argp-parse.c depends on getopt internals, that means we should
75021         always use our getopt, to be on the safe side.
75022         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
75023         order not to spoil the result of an eventual previous invocation
75024         of gl_GETOPT_SUBSTITUTE.
75025
75026 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75027
75028         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
75029         redefinition warnings. To avoid them, include the defines
75030         in `#if !defined __need_getopt ... #endif'. The only place
75031         where __getopt_argv_const is used is in definitions
75032         of getopt_long and getopt_long_only below, which are as well
75033         protected by `#ifndef __need_getopt'.
75034         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
75035         __need_getopt after including <stdio.h> and <unistd.h> These
75036         headers might have defined it.
75037
75038 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
75039
75040         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
75041
75042 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
75043
75044         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
75045         (futimens): New function, which uses futimes if available.
75046         (futimens, utimens): Support timespec==NULL, with same semantics
75047         as utime and utimens.
75048         * lib/utimens.h (futimens): New decl.
75049
75050 2004-11-23  Jim Meyering  <jim@meyering.net>
75051
75052         * lib/getopt_.h: Remove trailing blanks.
75053
75054 2004-11-23  Jim Meyering  <jim@meyering.net>
75055
75056         * lib/__fpending.c: Add comment.
75057
75058 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
75059
75060         * modules/canonicalize (Depends-on): Add xreadlink.
75061         Problem reported by James Youngman.
75062
75063 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
75064
75065         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
75066         New macros.
75067         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
75068         optopt): Use them instead of invoking ## directly; otherwise, the
75069         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
75070
75071 2004-11-19  Bruno Haible  <bruno@clisp.org>
75072
75073         * lib/strtok_r.c: Move comments from here...
75074         * lib/strtok_r.h: ... to here.
75075
75076 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
75077
75078         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
75079         implementations that mishandle size_t overflow.
75080
75081 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
75082
75083         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
75084         might fail.  Problem reported by Yoann Vandoorselaere.
75085         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
75086         implementations that mishandle size_t overflow.
75087
75088 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
75089
75090         * modules/canon-host (Depends-on): Add strdup.
75091
75092 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
75093
75094         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
75095
75096 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
75097
75098         * lib/canon-host.c: Include "strdup.h".
75099         (canon_host): Use getaddrinfo if available, so that IPv6 works.
75100         Use strdup instead of malloc/strcpy to duplicate strings.
75101
75102         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
75103         (human_space_before_unit): New constant.
75104         * lib/human.c (human_readable): Support it.
75105
75106         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
75107         (xgetcwd): Set errno correctly when failing.
75108         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
75109         the failure is actually due to a PATH_MAX problem.
75110
75111         Further getopt changes to make it more likely that glibc will
75112         buy the changes back.
75113         * lib/getopt.c (POSIXLY_CORRECT): New constant.
75114         (getopt): Use it, so to preserve glibc semantic
75115         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
75116         when compiling for libc.
75117         * lib/getopt_.h (__getopt_argv_const): Bring it back.
75118         (getopt_long, getopt_long_only): Use it.
75119
75120         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
75121         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
75122         (getopt): Argv is now char * const *, as per standard.
75123         (_getopt_internal_r, _getopt_internal): Argv is now char **,
75124         not char *__getopt_argv_const *.
75125         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
75126         _getopt_long_only_r): Likewise.
75127         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
75128         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
75129         _getopt_long_r, _getopt_long_only_r): Likewise.
75130         * lib/getopt_.h (__getopt_argv_const): Remove.
75131         (getopt): Argv is now char * const *, as per standard.
75132
75133         * lib/getdate.y (tORDINAL): New token.
75134         (day, relunit): Allow it for relative times.
75135         (relative_time_table): Use tORDINAL for ordinals.
75136
75137 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
75138
75139         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
75140         Document that "second" isn't allowed as an ordinal number.
75141
75142 2004-11-16  Jim Meyering  <jim@meyering.net>
75143
75144         * modules/closeout (Depends-on): Add fpending.
75145
75146 2004-11-15  Jim Meyering  <jim@meyering.net>
75147
75148         * lib/closeout.c: Include "__fpending.h" once again.
75149         Include <stdbool.h>.
75150         (close_stdout): Don't fail just because stdout was closed initially,
75151         since some programs don't write to stdout in the normal course of
75152         operation (other than --version and --help), and we don't want this
75153         function to make e.g. `touch file >&-' fail.
75154         But do fail if it was closed and someone has tried to write to it.
75155         E.g., `printf foo >&-' must fail.
75156
75157 2004-11-13  Jim Meyering  <jim@meyering.net>
75158
75159         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
75160
75161 2004-11-12  Simon Josefsson  <jas@extundo.com>
75162
75163         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
75164         small doc fix is still pending.
75165
75166 2004-11-11  Simon Josefsson  <jas@extundo.com>
75167
75168         * modules/strtok_r: New file.
75169
75170         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75171         strtok_r.
75172
75173 2004-11-11  Simon Josefsson  <jas@extundo.com>
75174
75175         * m4/strtok_r.m4: New file.
75176
75177         * m4/getopt.m4: Replace opterr.
75178
75179 2004-11-11  Simon Josefsson  <jas@extundo.com>
75180
75181         * lib/strtok_r.h, strtok_r.c: New file.
75182
75183 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
75184
75185         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
75186         of replacing opterr, getopt, etc.  This should handle the
75187         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
75188
75189 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
75190
75191         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
75192         we can stop lying to compilers about the constness of argv when we
75193         are compiled outside glibc.
75194         (getopt, getopt_long, getopt_long_only): Use it.
75195         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
75196         _getopt_internal, getopt): Likewise.
75197         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
75198         _getopt_long_only_r): Likewise.
75199         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
75200         _getopt_long_r, _getopt_long_only_r): Likewise.
75201
75202         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
75203         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
75204         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
75205         the other external symbols.
75206         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
75207         declaration, since the above renaming now works around collisions.
75208
75209 2004-11-11  Jim Meyering  <jim@meyering.net>
75210
75211         * lib/linebreak.c: Remove trailing blanks.
75212         * lib/alloca_.h: Likewise.
75213         * lib/acosl.c: Likewise.
75214         * lib/euidaccess.c: Likewise.
75215         * lib/allocsa.h: Likewise.
75216
75217 2004-11-10  Simon Josefsson  <jas@extundo.com>
75218
75219         * m4/getaddrinfo.m4: New file.
75220
75221 2004-11-10  Simon Josefsson  <jas@extundo.com>
75222
75223         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
75224
75225 2004-11-10  Simon Josefsson  <jas@extundo.com>
75226
75227         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75228         getaddrinfo.
75229
75230         * modules/getaddrinfo: New file.
75231
75232 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
75233
75234         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
75235
75236 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
75237
75238         * lib/mktime.c (SHR): New macro, which is a portable
75239         substitute for >> that should work even on Crays.
75240         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
75241         Problem reported by Mark D. Baushke in
75242         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
75243         * lib/getdate.y (SHR): Likewise.
75244         (tm_diff): Use it.
75245         * lib/strftime.c (SHR): Likewise.
75246         (tm_diff): Use it.
75247         * lib/quotearg.c (struct quoting_options): Use unsigned int for
75248         quote_these_too, so that right shifts are well defined.  All uses
75249         changed.
75250
75251 2004-11-10  Jim Meyering  <jim@meyering.net>
75252
75253         Ensure that no close failure goes unreported.
75254         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
75255         return early when it seems there's nothing to flush.
75256         Don't include __fpending.h.
75257
75258 2004-11-10  Jim Meyering  <jim@meyering.net>
75259
75260         * modules/closeout (Depends-on): Remove fpending.
75261
75262 2004-11-10  Jim Meyering  <jim@meyering.net>
75263
75264         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
75265
75266 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
75267
75268         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
75269         gl_FUNC_STRFTIME.
75270         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
75271         and AC_REQUIRE when possible, to avoid duplicate checks.
75272         Check for <wchar.h>.
75273
75274 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
75275
75276         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
75277
75278 2004-11-09  Bruno Haible  <bruno@clisp.org>
75279
75280         * m4/sockpfaf.m4: New file.
75281
75282 2004-11-05  Bruno Haible  <bruno@clisp.org>
75283
75284         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
75285         Reported by Mark D. Baushke <mdb@cvshome.org>.
75286
75287 2004-11-04  Bruno Haible  <bruno@clisp.org>
75288
75289         2004-09-11  Bruno Haible  <bruno@clisp.org>
75290                 * allocsa.valgrind: New file.
75291         2004-02-06  Bruno Haible  <bruno@clisp.org>
75292                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
75293                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
75294                 Reported by Christopher Seip <chris.seip@hp.com>.
75295
75296 2004-11-04  Bruno Haible  <bruno@clisp.org>
75297
75298         * modules/allocsa (Files): Add lib/allocsa.valgrind.
75299         (Makefile.am): Distribute it.
75300
75301 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
75302
75303         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
75304         with errno == ERANGE if the buffer is too small.
75305         Problem reported by Mark D. Baushke.
75306
75307 2004-11-03  Albert Chin  <china@thewrittenword.com>
75308             Paul Eggert  <eggert@cs.ucla.edu>
75309
75310         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
75311         equivalent, substitute $ac_type for equivalent type rather than
75312         blindly using uint32_t *always* which won't work if uint32_t is not
75313         available.  Define _UINT32_T to work around typedef of uint32_t if
75314         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
75315         2.5.1.
75316
75317 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
75318
75319         * m4/jm-macros.m4: Sync from coreutils.
75320         (gl_MACROS): Check for mbrlen, for pathchk.
75321         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
75322
75323 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
75324
75325         * lib/xreadlink.c (MAXSIZE): New macro.
75326         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
75327         size does not exceed MAXSIZE.  Avoid cast.
75328         As suggested by Mark D. Baushke in
75329         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
75330         if readlink fails with buffer size just under MAXSIZE, try again
75331         with MAXSIZE.
75332
75333 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
75334
75335         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
75336
75337 2004-11-02  Derek R. Price  <derek@ximbiot.com>
75338         and  Paul Eggert  <eggert@cs.ucla.edu>
75339
75340         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
75341         (get_date): Overparenthesize to avoid GCC warning.
75342
75343 2004-11-02  Bruno Haible  <bruno@clisp.org>
75344
75345         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
75346         returns void.
75347
75348 2004-11-02  Bruno Haible  <bruno@clisp.org>
75349
75350         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
75351         function returns void.
75352
75353 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
75354
75355         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
75356         fflush_unlocked, flockfile, funlockfile, funlockfile,
75357         fputs_unlocked, putc_unlocked.
75358
75359 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
75360
75361         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
75362         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
75363         already declared.
75364
75365 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
75366
75367         * modules/getdate (Files): Add doc/getdate.texi.
75368         (Depends-on): Add setenv, xalloc.
75369
75370 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
75371
75372         * lib/getdate.y: Add support for TZ="foo" within a date string.
75373         Fix some bugs near time_t boundaries.  Reject dates with
75374         out-of-range components, e.g., "Sept 31".
75375         Include <stdlib.h>, "setenv.h", "xalloc.h".
75376         (ISDIGIT_LOCALE): Remove; unused.
75377         Note that the TZ and time functions used here are not reentrant.
75378         (mktime_ok, get_tz): New functions.
75379         (TZBUFSIZE): New constant.
75380         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
75381         This requires that we sometimes generate our own TZ="XXX..." setting.
75382
75383 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
75384
75385         * doc/getdate.texi: New file, from coreutils with modifications for
75386         the new TZ parsing.
75387
75388 2004-10-27  Derek R. Price  <derek@ximbiot.com>
75389
75390         * lib/mktime.c (not_equal_tm): Remove redundant check.
75391
75392 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75393
75394         * modules/regex (lib_SOURCES): Add regex.c.
75395         Reported by James Youngman in
75396         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
75397
75398 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75399
75400         * lib/getdate.y: Use Bison 1.875 features, and some minor
75401         code cleanups.  This change does not affect semantics.
75402         Don't include <stdlib.h>; no longer needed.
75403         Don't include unlocked-io.h; only the "#if TEST" code uses
75404         stdio, and performance isn't crucial there.
75405         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
75406         Bison 1.875 features as described below.
75407         All uses of "PC." replaced by "pc->".
75408         (YYSTYPE): Add a forward declaration.
75409         (yylex, yyerror): Use full prototypes in forward decls.
75410         Use "%pure-parser" rather than obsolescent "%pure_parser".
75411         Use %parse-param and %lex-param instead of obsolescent
75412         YYPARSE_PARAM and YYLEX_PARAM.
75413         (meridian_table, month_and_day_table, time_units_table,
75414         relative_time_table, time_zone_table, military_table,
75415         lookup_zone, lookup_word, get_date):
75416         Use NULL instead of 0 where appropriate.
75417         (to_hour): Avoid abort (), to avoid a dependency on
75418         stdlib.h.
75419         (yyerror, yylex): Now accepts parser_control * arg.
75420         (main) [TEST]: Use '\0' rather than 0 for char.
75421
75422 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
75423
75424         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
75425
75426 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
75427
75428         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
75429         It's now the caller's responsibility to handle the case where
75430         !HAVE_GETPAGESIZE && !defined getpagesize.
75431
75432         * lib/mktime.c (leapyear): Arg is long int, not int.
75433
75434 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
75435
75436         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
75437
75438 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
75439
75440         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
75441         missing.  Problem reported by James Youngman.
75442
75443 2004-10-16  Simon Josefsson  <jas@extundo.com>
75444
75445         * gnulib-tool: Fix comments.  Fix parse problem.
75446         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
75447
75448 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
75449
75450         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
75451         implementation of getopt_long.  Problem reported by Alexander Taler in:
75452         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
75453
75454 2004-10-15  Bruno Haible  <bruno@clisp.org>
75455
75456         * gnulib-tool: Untabify. Initialize supplied_libname.
75457         (func_usage): More homogenous output.
75458         (func_modules_transitive_closure, func_modules_to_filelist,
75459         func_emit_lib_Makefile_am): New functions.
75460         (func_import): New function, extracted from big case statement. Use
75461         func_get_license, func_modules_transitive_closure,
75462         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
75463         opt_lgpl. Don't use test -a, as it's not portable.
75464         (func_create_testdir): Use func_modules_transitive_closure,
75465         func_modules_to_filelist, func_emit_lib_Makefile_am.
75466
75467 2004-10-15  Bruno Haible  <bruno@clisp.org>
75468
75469         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
75470
75471 2004-10-15  Bruno Haible  <bruno@clisp.org>
75472
75473         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
75474         the portions belonging to each module.
75475         Suggested by Derek Robert Price <derek@ximbiot.com>.
75476
75477 2004-10-12  Simon Josefsson  <jas@extundo.com>
75478
75479         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
75480         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
75481         to real functions.
75482
75483 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75484
75485         * modules/vsnprintf: New file.
75486
75487 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75488
75489         * m4/vsnprintf.m4: New file.
75490
75491 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75492
75493         * lib/vsnprintf.h: New file.
75494         * lib/vsnprintf.c: New file.
75495
75496 2004-10-11  Bruno Haible  <bruno@clisp.org>
75497
75498         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
75499         vsnprintf.
75500
75501 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
75502
75503         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
75504
75505 2004-10-07  Bruno Haible  <bruno@clisp.org>
75506
75507         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
75508         fits into the provided buffer.
75509
75510 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
75511
75512         * lib/diacrit.c, diacrit.h: Add GPL notice.
75513
75514         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
75515         notice.
75516         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
75517         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
75518         This avoids a potential constant-folding bug.
75519
75520 2004-10-05  Bruno Haible  <bruno@clisp.org>
75521
75522         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
75523         for the declaration of strsep.
75524
75525 2004-10-05  Bruno Haible  <bruno@clisp.org>
75526
75527         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
75528
75529 2004-10-04  Simon Josefsson  <jas@extundo.com>
75530
75531         * modules/memmem: New file.
75532         * tests/test-memmem.c: New file.
75533         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
75534
75535 2004-10-04  Simon Josefsson  <jas@extundo.com>
75536
75537         * m4/memmem.m4: New file.
75538
75539 2004-10-04  Simon Josefsson  <jas@extundo.com>
75540
75541         * lib/memmem.h: New file.
75542         * lib/memmem.c: New file, taken from glibc.
75543
75544 2004-10-04  Simon Josefsson  <jas@extundo.com>
75545
75546         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
75547         '#ifdef USE_UNLOCKED_IO'.
75548
75549 2004-10-04  Simon Josefsson  <jas@extundo.com>
75550
75551         * config/srclist.txt: Add memmem from glibc.
75552
75553 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
75554
75555         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
75556
75557         * modules/argmatch, modules/argp, modules/closeout, modules/error,
75558         modules/exclude, modules/getdate, modules/getline,
75559         modules/getndelim2, modules/getpass, modules/getpass-gnu,
75560         modules/getusershell, modules/linebuffer, modules/md5,
75561         modules/mountlist, modules/posixtm, modules/readtokens,
75562         modules/readutmp, modules/regex, modules/sha1,
75563         modules/version-etc, modules/yesno:
75564         Remove dependency on unlocked-io.
75565
75566 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
75567
75568         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
75569
75570         * m4/unlocked-io.m4: Add copyright notice.
75571         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
75572
75573 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
75574
75575         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
75576         * lib/xmalloc.c (xmemdup): Likewise.
75577         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
75578         XFREE): Remove these long-obsolescent macros.
75579         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
75580         * lib/xstrdup.c: Remove.
75581
75582         * lib/regex.c (re_comp): Cast gettext return value to char *,
75583         Problem reported by Martin Neitzel via Mark D. Baushke.
75584
75585 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
75586
75587         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
75588         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
75589         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
75590         regex.c, sha1.c, version-etc.c, yesno.c:
75591         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
75592         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
75593         the includer's responsibility.
75594
75595         Sync from coreutils.
75596
75597         * lib/modechange.c (mode_compile): Don't decrement a pointer that
75598         points to the start of a string, as the C Standard says the
75599         resulting behavior is undefined.
75600
75601         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
75602         simple -> simple_backups, numbered_existing ->
75603         numbered_existing_backups, numbered -> numbered_backups
75604         to avoid shadowing problems.  All uses changed.
75605         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
75606         * lib/backupfile.c (check_extension, numbered_backup):
75607         Rename locals to avoid shadowing 'basename'.
75608         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
75609         once.
75610
75611         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
75612         * lib/.cvsignore: Add getopt.h.
75613
75614 2004-10-04  Bruno Haible  <bruno@clisp.org>
75615
75616         * modules/README: New file.
75617         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
75618         not a module.
75619
75620 2004-10-02  Jim Meyering  <jim@meyering.net>
75621
75622         * lib/dirfd.h, getpagesize.h: Add copyright notice.
75623
75624 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75625
75626         * modules/strsep: New file.
75627
75628 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75629
75630         * m4/strsep.m4: New file.
75631
75632 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75633
75634         * lib/strsep.h: New file.
75635         * lib/strsep.c: New file.
75636
75637 2004-10-01  Simon Josefsson  <jas@extundo.com>
75638
75639         * lib/snprintf.c (snprintf): Handle size==0.
75640
75641 2004-10-01  Simon Josefsson  <jas@extundo.com>
75642             Bruno Haible  <bruno@clisp.org>
75643
75644         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
75645         (snprintf): Declare 'args'.
75646
75647 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
75648
75649         * lib/snprintf.c: Remove comments as to why each header is needed.
75650
75651 2004-10-01  Bruno Haible  <bruno@clisp.org>
75652
75653         * MODULES.html.sh: Add strsep.
75654
75655 2004-09-30  Simon Josefsson  <jas@extundo.com>
75656
75657         * modules/snprintf: New file.
75658
75659 2004-09-30  Simon Josefsson  <jas@extundo.com>
75660
75661         * m4/snprintf.m4: New file.
75662
75663 2004-09-30  Simon Josefsson  <jas@extundo.com>
75664
75665         * lib/snprintf.h, lib/snprintf.c: New files.
75666
75667 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75668
75669         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
75670         (hol_entry_help): Never translate an empty string.
75671         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
75672         * lib/argp.h (OPTION_NO_TRANS): New option.
75673
75674 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
75675
75676         * modules/argp (Maintainer): Replace Simon Josefsson
75677         by Sergey Poznyakoff.
75678
75679 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
75680
75681         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
75682         changes merged back into glibc.
75683
75684 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
75685
75686         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
75687
75688 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
75689
75690         * lib/xvasprintf.c: Include xalloc.h.
75691         (xvasprintf): Use xalloc_die, not xmalloc_die.
75692
75693 2004-09-29  Bruno Haible  <bruno@clisp.org>
75694
75695         * modules/alloca-opt: New file, derived from modules/alloca.
75696         * modules/allocsa: Depend on alloca-opt instead of alloca.
75697         * modules/setenv: Likewise.
75698         * modules/vasnprintf: Likewise.
75699         * MODULES.html.sh: Add alloca-opt.
75700
75701 2004-09-28  Simon Josefsson  <jas@extundo.com>
75702
75703         * gnulib-tool: New parameter --lgpl, to asseert that modules are
75704         LGPL, and to replace license template from GPL to LGPL.
75705
75706 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
75707
75708         * modules/dummy: Change license to LGPL.
75709
75710 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
75711
75712         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
75713
75714 2004-09-24  Simon Josefsson  <jas@extundo.com>
75715
75716         * modules/minmax (License): Change from GPL to LGPL.
75717
75718 2004-09-23  Simon Josefsson  <jas@extundo.com>
75719
75720         * gnulib-tool (--import): Typo.
75721
75722 2004-09-23  Simon Josefsson  <jas@extundo.com>
75723
75724         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
75725
75726 2004-09-22  Bruno Haible  <bruno@clisp.org>
75727
75728         * modules/*: Add 'License' field.
75729         * gnulib-tool: Accept --extract-license option.
75730         (func_get_license): New function.
75731
75732 2004-09-21  Bruno Haible  <bruno@clisp.org>
75733
75734         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
75735         Reported by Simon Josefsson.
75736
75737 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
75738
75739         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
75740         gl_AC_TYPE_LONG_LONG.
75741
75742 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
75743
75744         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
75745
75746 2004-09-18  Simon Josefsson  <jas@extundo.com>
75747         and  Paul Eggert  <eggert@cs.ucla.edu>
75748
75749         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
75750         calls with autoreconf.  Define GL_LIB.
75751
75752 2004-09-14  Karl Berry  <karl@gnu.org>
75753
75754         * config/srclist.txt: unsync setenv.c, sigh.
75755
75756 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
75757
75758         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
75759         Problem reported by Bruno Haible in:
75760         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
75761
75762 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
75763
75764         * config/srclist.txt: Comment out argp-pvh.c.
75765
75766 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
75767
75768         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
75769         in case some system header has #define'd it.  Problem reported by
75770         Soeren D. Schulze in
75771         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
75772
75773 2004-09-09  Karl Berry  <karl@gnu.org>
75774
75775         * regex.[ch]: delete from the root.  These were supposed to be
75776                 synced with emacs cvs, but this has not happened for about
75777                 a year, and anyway nothing else uses emacs regex.[ch].
75778                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
75779                 lib/regex[.ch] is untouched.
75780
75781 2004-09-09  Bruno Haible  <bruno@clisp.org>
75782
75783         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
75784
75785 2004-09-09  Bruno Haible  <bruno@clisp.org>
75786
75787         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
75788         modifications.
75789         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
75790
75791 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
75792
75793         * modules/xvasprintf: New file.
75794         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
75795
75796 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
75797
75798         * lib/xvasprintf.h: New file.
75799         * lib/xvasprintf.c: New file.
75800         * lib/xasprintf.c: New file.
75801
75802 2004-09-08  Bruno Haible  <bruno@clisp.org>
75803
75804         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
75805
75806 2004-09-08  Bruno Haible  <bruno@clisp.org>
75807
75808         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
75809         length is > INT_MAX.
75810         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
75811         more.
75812
75813 2004-09-08  Bruno Haible  <bruno@clisp.org>
75814
75815         * lib/stdint_.h: New file, taken from GNU clisp.
75816
75817 2004-09-08  Bruno Haible  <bruno@clisp.org>
75818             Oskar Liljeblad  <oskar@osk.mine.nu>
75819
75820         * modules/stdint: New file.
75821         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
75822
75823 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75824
75825         Import from coreutils.
75826         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
75827         strings on unbounded length.  alloca's performance benefits aren't
75828         that important here.
75829         (V_STRDUP): Remove.
75830         (parse_with_separator): New function, with most of the internals
75831         of the old parse_user_spec.  Allow user to omit both user and group,
75832         for compatibility with FreeBSD.
75833         Clone only the user name, not the entire spec.
75834         Do not set *uid, *gid unless entirely successful.
75835         Avoid memory leak in some failing cases.
75836         Fix regression for USER.GROUP reported by Dmitry V. Levin in
75837         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
75838         (parse_user_spec): Rewrite to use parse_with_separator.
75839
75840 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75841
75842         * modules/userspec: Don't depend on alloca.
75843
75844 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75845
75846         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
75847
75848 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
75849
75850         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
75851         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
75852         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
75853
75854 2004-08-16  Simon Josefsson  <jas@extundo.com>
75855
75856         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
75857         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
75858         Add --dry-run for --import.
75859         Let user provided command line parameters override configure.ac
75860         settings.
75861
75862 2004-08-12  Simon Josefsson  <jas@extundo.com>
75863
75864         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
75865         as discussed with Paul Eggert in threads rooted at
75866         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
75867         and
75868         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
75869         Before, the test was empty, and relied on ELIDE_CODE in source
75870         code.)
75871         (gl_PREREQ_GETOPT): New macro.
75872         (gl_GETOPT): Use them.
75873
75874 2004-08-12  Simon Josefsson  <jas@extundo.com>
75875
75876         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
75877         * lib/getopt_.h: Renamed from getopt.h.
75878
75879 2004-08-12  Simon Josefsson  <jas@extundo.com>
75880
75881         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
75882         Change default library name from libfoo to libgnu.
75883         Now, if you have a configure.ac that says:
75884                 gl_SOURCE_BASE(gl)
75885                 gl_M4_BASE(gl/m4)
75886                 gl_MODULES(error getopt etcetera)
75887                 gl_INIT
75888         you can import all you need by running:
75889                 ../gnulib/gnulib-tool --import
75890
75891         * modules/getopt (Files): Rename getopt.h to getopt_.h.
75892         (Makefile.am): Rewrite, use logic from argz.
75893         (Include): Use <getopt.h> instead of "getopt.h".
75894
75895 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
75896
75897         * modules/argp (Files): Add m4/unlocked-io.m4.
75898         (Depends-on): Add extensions.
75899
75900 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
75901
75902         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
75903         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
75904         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
75905         Check for program_invocation_name, program_invocation_short_name,
75906         flockfile, funlockfile, features.h, _getopt_long_only_r.
75907
75908 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
75909
75910         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
75911         its complicated substitute.
75912         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
75913         and program_invocation_name.
75914         (__argp_basename) [!_LIBC]: Remove; the only use was
75915         replaced by its body.
75916         (__argp_short_program_name): Change condition from
75917         !defined __argp_short_program_name to
75918         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
75919         to match argp-namefrob.h.
75920         (__argp_failure): Don't assume strerror_r returns char *.
75921         * lib/argp-parse.c (N_): Define unconditionally.
75922         (argp_default_options): Fill out initializers with 0 to avoid
75923         gcc warnings.
75924
75925 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
75926
75927         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
75928         getopt1.c.
75929
75930 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
75931
75932         Merge from coreutils.
75933
75934         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
75935
75936         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
75937         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
75938
75939 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
75940
75941         Merge from coreutils.
75942
75943         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
75944         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
75945         for Reliant Unix 5.43.
75946
75947         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
75948         (union fooround): Use uintmax_t, not long int.
75949         The rest is a merge from libc:
75950         [defined _LIBC]: Include <shlib-compat.h>.
75951         (_obstack) [defined _LIBC]: Remove after 2.3.4.
75952
75953         * lib/settime.c (settime): Recode to avoid warning with
75954         Sun Forte C 6U2.
75955
75956         * lib/strverscmp.c: Convert to UTF-8.
75957
75958 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
75959
75960         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
75961         m4/uintmax_t.m4.
75962
75963 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75964
75965         * modules/xalloc-die: New file.
75966         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
75967
75968         * modules/md5 (Files): Add m4/uint32_t.m4.
75969         * modules/sha1: Renamed from modules/sha.
75970         (Files):
75971         Rename lib/sha.h to lib/sha1.h.
75972         Rename lib/sha.c to lib/sha1.c.
75973         Rename m4/sha.m4 to m4/sha1.m4.
75974         (lib_SOURCES): Likewise.
75975         (configure.ac): Rename gl_SHA to gl_SHA1.
75976         (Include): sha.h -> sha1.h.
75977
75978 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75979
75980         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
75981         * m4/sha1.m4: Renamed from sha.m4.
75982         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
75983
75984 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75985
75986         * lib/obstack.h (obstack_empty_p):
75987         Don't assume that chunk->contents is suitably aligned.
75988         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
75989         Likewise. Problem reported by Benno in
75990         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
75991
75992         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
75993         readable.  This could be improved further but it'd take some work.
75994
75995 2004-08-08  Simon Josefsson  <jas@extundo.com>
75996
75997         * modules/xgethostname (Depends-on): Remove exit and error (not
75998         used).
75999
76000         * modules/getpass-gnu: Add getpass.h.
76001         (Depends-on): Add stdbool.
76002         * modules/getpass: Add getpass.h.
76003
76004 2004-08-08  Simon Josefsson  <jas@extundo.com>
76005
76006         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
76007         Check getpass declaration.
76008
76009 2004-08-08  Simon Josefsson  <jas@extundo.com>
76010
76011         * lib/xgethostname.c: Don't include error.h (not used).
76012
76013         * lib/getpass.h: Add.
76014         * lib/getpass.c: Include getpass.h first.
76015
76016 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
76017
76018         * lib/xalloc-die.c: New file.
76019         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
76020         All uses removed.
76021         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
76022         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
76023         xalloc-die.c.
76024         (_, N_, xalloc_die): Move to xalloc-die.c.
76025         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
76026         so that we needn't mess with xalloc_msg_memory_exhausted.
76027
76028         * lib/sha1.h: Renamed from sha.h.
76029         (SHA1_H): Renamed from _SHA_H.
76030         (sha1_ctx): Renamed from sha_ctx.
76031         (sha1_init_ctx): Renamed from sha_init_ctx.
76032         (sha1_process_block): Renamed from sha_process_block.
76033         (sha1_process_bytes): Renamed from sha_process_bytes.
76034         (sha1_finish_ctx): Renamed from sha_finish_ctx.
76035         (sha1_read_ctx): Renamed from sha_read_ctx.
76036         (sha1_stream): Renamed from sha_stream.
76037         (sha1_buffer): Renamed from sha_buffer.
76038         * lib/sha1.c: Likewise; renamed from sha.c.
76039         Do not include <sys/types.h>.
76040         Include <stddef.h> rather than <stdlib.h>.
76041
76042 2004-08-08  Bruno Haible  <bruno@clisp.org>
76043
76044         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
76045         FILESYSTEM_PREFIX_LEN.
76046         * lib/progreloc.c: Likewise.
76047         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
76048
76049 2004-08-06  Simon Josefsson  <jas@extundo.com>
76050
76051         * modules/progname (Depends-on): Don't depend on stdbool.
76052
76053 2004-08-06  Simon Josefsson  <jas@extundo.com>
76054
76055         * modules/getsubopt: New file.
76056         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76057         getsubopt.
76058
76059 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
76060
76061         More merge from coreutils.
76062
76063         * m4/utimens.m4, m4/utimecmp.m4: New files.
76064         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
76065         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
76066         prereq.m4, sha.m4: Import changes from coreutils.
76067
76068 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
76069
76070         More merge from coreutils.
76071         * modules/raise, modules/readtokens0, modules/utimens:
76072         * modules/utimecmp, module/xnanosleep: New files.
76073         * modules/strftime: Add lib/strftime.h.
76074         Change include from <time.h> to "strftime.h".
76075         * modules/yesno: Add lib/yesno.h.
76076         * modules/backupfile: Remove lib/addext.c.
76077         * modules/euidaccess: Add stat-macros.h.
76078         * modules/canonicalize, modules/euidaccess,
76079         modules/filemode, modules/lchown, modules/makepath,
76080         modules/rmdir, modules/stat: Likewise.
76081
76082 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
76083
76084         Merge from tar.
76085         * lib/argp-help.c (make_hol, hol_append): Don't assume that
76086         SIZE_MAX is a valid preprocessor constant.
76087         (__argp_basename): Change from "#ifndef _LIBC"
76088         to "#ifndef __argp_short_program_name", so that
76089         we don't compile these functions for tar.
76090
76091         More merges from coreutils.
76092         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
76093         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
76094         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
76095         * lib/addext.c: Remove; no longer needed.
76096         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
76097         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
76098         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
76099         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
76100         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
76101         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
76102         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
76103         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
76104         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
76105         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
76106         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
76107         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
76108         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
76109         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
76110         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
76111         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
76112         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
76113         Import changes from coreutils.
76114
76115 2004-08-05  Simon Josefsson  <jas@extundo.com>
76116
76117         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
76118
76119 2004-08-05  Simon Josefsson  <jas@extundo.com>
76120
76121         * m4/getsubopt.m4: New file.
76122
76123 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
76124
76125         Merge from coreutils.
76126
76127         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
76128         * m4/getcwd-path-max.m4: New files.
76129
76130         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
76131         FILESYSTEM_PREFIX_LEN ->
76132         FILE_SYSTEM_PREFIX_LEN.
76133         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
76134         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
76135         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
76136         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
76137
76138         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
76139         prerequisite modules now handle the DOS stuff.
76140         Don't check for unistd.h.
76141
76142 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
76143
76144         Merge from coreutils.
76145
76146         * lib/.gdb-history: Remove; this doesn't belong here.
76147
76148         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
76149         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
76150         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
76151         * lib/getcwd.c: New files.
76152
76153         * lib/dirname.h: Include <stdbool.h>.
76154         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
76155         for consistency with POSIX terminology.  All uses changed.
76156         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
76157         (strip_trailing_slashes): Use bool for booleans.
76158         * lib/stripslash.c (strip_trailing_slashes): Likewise.
76159
76160         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
76161         sometimes returns a positive errno value even when it succeeds.
76162         (print_errno_message) [!LIBC]: Fall back on strerror if
76163         __strerror_r fails.
76164
76165         * lib/path-concat.c (mempcpy): Don't define if a system header defines
76166         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
76167         (longest_relative_suffix): New function.
76168         (path_concat): Use it.  Assume first argument is not NULL.
76169         Port to DOS.  Omit redundant separators.
76170         Report an error instead of returning NULL.
76171         Use mempcpy instead of memcpy.
76172         (xpath_concat): Remove: not declared or used.
76173
76174         * lib/same.h: Include <stdbool.h>
76175         (same_name): Return bool, not int.
76176         * lib/same.c (same_name): Likewise.
76177         (errno): Don't declare; we assume C89 or better now.
76178
76179         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
76180         if not already defined.
76181
76182         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
76183         * lib/dup-safer.c (errno): Likewise.
76184
76185 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
76186
76187         Merge from coreutils.
76188         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
76189         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
76190         * modules/path-concat: Don't depend on strdup.
76191
76192 2004-08-03  Simon Josefsson  <jas@extundo.com>
76193
76194         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
76195         * lib/progname.h: Don't include stdbool.h.
76196
76197 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
76198
76199         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
76200         * MODULES.html.sh (func_all_modules): Remove fatal.
76201
76202 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
76203
76204         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
76205
76206 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
76207
76208         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
76209         working.
76210
76211 2004-08-02  Simon Josefsson  <jas@extundo.com>
76212
76213         * lib/getsubopt.h: New file, with comments from Bruno Haible.
76214         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
76215         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
76216
76217 2004-08-01  Simon Josefsson  <jas@extundo.com>
76218
76219         * lib/xgetdomainname.c: Include stdlib.h, for free().
76220
76221 2004-07-19  Bruno Haible  <bruno@clisp.org>
76222
76223         * MODULES.html.sh (func_all_modules): Add dummy.
76224
76225 2004-07-16  Simon Josefsson  <jas@extundo.com>
76226
76227         * modules/dummy: New file.
76228
76229 2004-07-16  Simon Josefsson  <jas@extundo.com>
76230
76231         * lib/dummy.c: New file.
76232
76233 2004-07-16  Bruno Haible  <bruno@clisp.org>
76234
76235         * lib/backupfile.h: Add extern "C" for C++.
76236         * lib/closeout.h: Likewise.
76237         * lib/copy-file.h: Likewise.
76238         * lib/findprog.h: Likewise.
76239         * lib/full-write.h: Likewise.
76240         * lib/pathname.h: Likewise.
76241         * lib/progname.h: Likewise.
76242         * lib/stpcpy.h: Likewise.
76243         * lib/stpncpy.h: Likewise.
76244         * lib/strcase.h: Likewise.
76245         * lib/strstr.h: Likewise.
76246         * lib/xalloc.h: Likewise.
76247
76248         * lib/mbswidth.h: Add extern "C" for C++.
76249         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
76250
76251 2004-07-13  Robert Millan  <robertmh@gnu.org>
76252
76253         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
76254
76255 2004-07-09  Simon Josefsson  <jas@extundo.com>
76256
76257         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
76258         failed without this.)
76259
76260 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76261
76262         * modules/chown (Files): Add lib/fchown-stub.c, since
76263         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
76264
76265 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76266
76267         * lib/fchown-stub.c: New file.
76268
76269 2004-06-24  Jim Meyering  <jim@meyering.net>
76270
76271         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
76272
76273 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76274
76275         * modules/argz: Omit "#include".
76276
76277         * MODULES.html.sh (func_all_modules): Add calloc, to match
76278         2004-06-01 addition of calloc module.
76279
76280 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76281
76282         * m4/argz.m4: New file, which is autoupdated from libtool.
76283
76284 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76285
76286         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
76287         libtool.
76288
76289 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76290
76291         * config/srclist-update: Don't insist on "USA." before the
76292         close-comment, as libtool omits the period and puts the */ on a
76293         separate line.
76294         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
76295         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
76296
76297 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
76298
76299         * modules/argz: New file.
76300         * MODULES.html.sh (func_all_modules): Add argz.
76301
76302 2004-06-12  Jim Meyering  <jim@meyering.net>
76303         and  Paul Eggert  <eggert@cs.ucla.edu>
76304
76305         * modules/hash (Files): Add lib/xalloc.h.
76306         * modules/pipe (Depends-on): Add wait-process.
76307         * modules/stat (Depends-on): Add xalloc.
76308         * modules/userspec (Files): Add lib/userspec.h.
76309         * modules/xstrto
76310
76311         Upgrade from gettext-0.13.
76312         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
76313         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
76314         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
76315
76316 2004-06-10  Jim Meyering  <jim@meyering.net>
76317
76318         * lib/calloc.c: New file.
76319
76320 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
76321
76322         * lib/getdate.y (yylex): Allow space between sign and number.
76323         Problem reported by Dan Jacobson.
76324
76325 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
76326
76327         Merge from coreutils CVS.
76328
76329         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
76330         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
76331         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
76332         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
76333         xstrtol.m4: Fix copyright date and/or serial number.
76334
76335         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
76336         See if we need an fchown replacement.
76337         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
76338         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
76339         and use the replacement function if we detect either defect.
76340
76341         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
76342         gl_UTIMECMP.
76343
76344 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
76345         and  Jim Meyering  <jim@meyering.net>
76346
76347         Merge from coreutils CVS.
76348
76349         * lib/stat-macros.h: New file, with contents from file-type.h
76350         and coreutils' system.h.
76351         * lib/file-type.c: Include "stat-macros.h".
76352         * lib/file-type.h (file_type): Move all macro definitions to new file,
76353         stat-macros.h.
76354
76355         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
76356         Wrap old code with this conditional.
76357         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
76358         function that does not dereference symlinks.
76359         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
76360
76361         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
76362         dependency problems.
76363         (xreadlink): Accept new arg SIZE, for efficiency.
76364         All decls and uses changed.
76365         * lib/xreadlink.h: Include <stddef.h>, for size_t.
76366
76367         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
76368         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
76369
76370         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
76371         sysexits.h.
76372
76373 2004-06-01  Jim Meyering  <jim@meyering.net>
76374
76375         * m4/calloc.m4: New file.
76376
76377 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
76378
76379         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
76380         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
76381         Also, fix a typo in a diagnostic.
76382
76383 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
76384
76385         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
76386         or AC_FUNC_REALLOC.
76387
76388 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
76389
76390         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
76391         macros to be defined.
76392         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
76393         the allocator returns NULL because the requested size is zero.
76394
76395 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
76396
76397         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
76398         var.  Add comment explaining why libc still defines it.  This
76399         merges the following patch from glibc:
76400         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
76401
76402 2004-05-20  Andreas Schwab  <schwab@suse.de>
76403
76404         * m4/free.m4: Replace free if it not known to work, not the other
76405         way round.
76406
76407 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
76408
76409         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
76410         present in glibc since revision 1.1 of this file.
76411         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
76412         obstack_alignment_mask, obstack_alloc, obstack_base,
76413         obstack_blank, obstack_blank_fast, obstack_chunk_size,
76414         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
76415         obstack_grow0, obstack_init, obstack_int_grow,
76416         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
76417         obstack_next_free, obstack_object_size, obstack_ptr_grow,
76418         obstack_ptr_grow_fast, obstack_room): Remove declarations of
76419         nonexistent functions.
76420
76421 2004-05-18  Karl Berry  <karl@gnu.org>
76422
76423         * config/srclist.txt: break link for vasnprintf.c.
76424
76425 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
76426
76427         Port obstack to the AS/400, where pointers are 16 bytes wide and
76428         you cannot cast an integer to a valid pointer.  This patch is
76429         currently waiting to be integrated into glibc; see
76430         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
76431
76432         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
76433         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
76434         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
76435         (struct obstack): temp member is now a union of a pointer and
76436         an integer, instead of an integer.  All integer uses changed.
76437         This does not affect the physical layout of struct obstack,
76438         except on hosts (like the AS/400) where the size or alignment of
76439         void * is greater than that of ptrdiff_t.
76440         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
76441         __STDC__)]: Store temporary in pointer member of union, not
76442         integer member.
76443         * lib/obstack.c: Include <stddef.h>, for offsetof.
76444         (struct fooalign): Remove; it doesn't need a name.
76445         (union fooround): Change double to long double, and add void *.
76446         (DEFAULT_ALIGNMENT): Use offsetof to compute.
76447         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
76448         not a macro.  Hence the values are always int; so remove all
76449         casts-to-int in uses.
76450
76451 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
76452
76453         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
76454         we can get this patch merged into glibc.
76455
76456 2004-05-17  Derek R. Price  <derek@ximbiot.com>
76457             Paul Eggert  <eggert@cs.ucla.edu>
76458
76459         * m4/argp: Depend on alloca.
76460
76461 2004-05-17  Derek R. Price  <derek@ximbiot.com>
76462             Paul Eggert  <eggert@cs.ucla.edu>
76463
76464         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
76465         freecoding.
76466
76467 2004-05-17  Bruno Haible  <bruno@clisp.org>
76468
76469         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
76470         precision that consists of a '.' followed by an empty digit string.
76471         Patch by Tor Lillqvist <tml@iki.fi>.
76472
76473 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
76474
76475         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
76476         for backward compatibility with older code.  We need our own
76477         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
76478         it under some other name, and our alloca.h will define it.
76479
76480 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
76481             Derek Price  <derek@ximbiot.com>
76482
76483         * lib/alloca.c: Include <alloca.h>, to get our interface.
76484         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
76485         include <alloca.h> first.  Use C89 prototype for alloca; this
76486         requires including <stddef.h> for size_t.  Use extern "C" if C++.
76487         Use #elif for simplicity, since we can assume C89 now.
76488         Don't try to source the system alloca.h since it will not be found
76489         and to prevent recursively including its replacement.
76490         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
76491         * lib/regex.c: Likewise.
76492
76493 2004-05-16  Derek Price  <derek@ximbiot.com>
76494             Paul Eggert  <eggert@cs.ucla.edu>
76495
76496         getline cleanup.  This changes the getndelim2 API: both order of
76497         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
76498         no delimiter).
76499
76500         * lib/getline.c: Don't include stddef.h or stdio.h, since our
76501         interface does that.
76502         (getline): Always use getdelim, so that we don't have two
76503         copies of this code.
76504         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
76505         if available.
76506         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
76507         (GETNDELIM2_MAXIMUM): New macro.
76508         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
76509         instead of the old practice of delim2==0.  All callers changed.
76510         Return -1 on overflow, instead of returning junk.
76511         Do not set *linesize unless allocation succeeds.
76512         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
76513         that we include sys/types.h.
76514         * lib/getnline.h: Likewise.
76515         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
76516         (getndelim2): Reorder arguments.
76517         * lib/getnline.c (getnline, getndelim):
76518         Don't discard the NMAX argument.
76519         (getnline): Invoke getndelim, to avoid code duplication.
76520         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
76521         of (size_t) -1 by callers of the getnline family.
76522
76523 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
76524
76525         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
76526         Check for gettimeofday.
76527         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
76528         Check for settimeofday, stime.
76529
76530 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
76531
76532         * lib/nanosleep.c (suspended): Change its type from int to
76533         sig_atomic_t volatile.
76534         (first_call): Make it private to rpl_nanosleep, and have it
76535         be zero initially as that's a bit faster.
76536         (my_usleep): Round up fractional times instead of truncating them,
76537         as this is the usual meaning for 'sleep'.
76538
76539         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
76540         doesn't work.
76541         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
76542         (ENOSYS): Define if not defined.
76543         (settime): Fall back on stime if it exists and settimeofday fails.
76544         But don't bother with fallbacks if a method fails with errno == EPERM.
76545
76546 2004-05-11  Jim Meyering  <jim@meyering.net>
76547
76548         Prior to this change, the save_cwd caller required read access to the
76549         current directory on most systems (ones with the fchdir function).
76550
76551         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
76552         fails, try write-only, and finally, resort to using xgetcwd.
76553
76554 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
76555
76556         * lib/obstack.c, obstack.h: Import changes from libc.
76557
76558 2004-04-28  Bruno Haible  <bruno@clisp.org>
76559
76560         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
76561         also implicitly appends .exe to executables.
76562         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
76563         accepts Windows pathnames.
76564         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
76565         Treat Cygwin like Windows, since it now accepts Windows pathnames.
76566         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
76567         Treat Cygwin like Windows, since it now accepts Windows pathnames.
76568         Reported by Derek Robert Price <derek@ximbiot.com>.
76569
76570 2004-04-21  Karl Berry  <karl@gnu.org>
76571
76572         * config/srclist.txt (localcharset.c): break sync.
76573
76574 2004-04-20  Paul Eggert  <eggert@twinsun.com>
76575
76576         * m4/host-os.m4: Add a copyright notice.
76577
76578 2004-04-20  Jim Meyering  <jim@meyering.net>
76579
76580         Change UTILS_ to gl_ in AC_DEFINE'd names.
76581         Change utils_- and jm_-prefixed variables, too.
76582         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
76583         UTILS_FUNC_MKDIR_TRAILING_SLASH.
76584         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
76585
76586         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
76587         Don't emit trailing blanks.
76588         Also rename jm_-prefixed variables to have gl_ prefix.
76589
76590         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
76591         Also rename jm_-prefixed variables to have gl_ prefix.
76592
76593         * m4/jm-macros.m4: Reflect the renamings.
76594         * m4/prereq.m4: Likewise.
76595
76596 2004-04-20  Jim Meyering  <jim@meyering.net>
76597
76598         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
76599         memory.
76600
76601 2004-04-20  Jim Meyering  <jim@meyering.net>
76602             Bruno Haible  <bruno@clisp.org>
76603
76604         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
76605         memory when realloc fails.
76606
76607 2004-04-19  Jim Meyering  <jim@meyering.net>
76608
76609         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
76610         now that readutmp.c may call `free (0)'.
76611
76612 2004-04-19  Bruno Haible  <bruno@clisp.org>
76613
76614         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
76615         * m4/inttypes_h.m4: Likewise.
76616         * m4/stdint_h.m4: Likewise.
76617         * m4/intmax_t.m4: Likewise.
76618         * m4/uintmax_t.m4: Likewise.
76619
76620 2004-04-18  Jim Meyering  <jim@meyering.net>
76621
76622         * m4/prereq.m4: Don't forbid jm_ prefix.
76623
76624         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
76625         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
76626         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
76627         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
76628         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
76629         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
76630         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
76631         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
76632         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
76633         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
76634         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
76635         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
76636         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
76637         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
76638         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
76639         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
76640         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
76641         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
76642         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
76643
76644 2004-04-18  Jim Meyering  <jim@meyering.net>
76645
76646         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
76647         failure, don't leak memory and do call END_UTMP_ENT.
76648
76649 2004-04-16  Jim Meyering  <jim@meyering.net>
76650
76651         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
76652         coreutils' stat program.
76653         (gl_PREREQ): Don't require jm_PREREQ_STAT.
76654
76655 2004-04-11  Paul Eggert  <eggert@twinsun.com>
76656
76657         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
76658         C89.
76659         (CHAR_BIT): Remove, since we assume C89.
76660         Include <stdint.h> if available, as per current Autoconf CVS advice.
76661
76662 2004-03-31  Jim Meyering  <jim@meyering.net>
76663
76664         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
76665         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
76666         * m4/xalloc.m4: Likewise.
76667
76668 2004-03-30  Paul Eggert  <eggert@twinsun.com>
76669
76670         Merge from coreutils.
76671
76672         * m4/inttostr.m4: New file.
76673         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
76674         Require AM_STDBOOL_H and gl_TIMESPEC instead.
76675         Require gl_CLOCK_TIME.
76676         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
76677
76678 2004-03-30  Paul Eggert  <eggert@twinsun.com>
76679
76680         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
76681         not bool, to be more consistent with Unix conventions.
76682         Suggested by Bruno Haible.
76683
76684         Merge from coreutils.
76685
76686         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
76687         * lib/umaxtostr.c: New files.
76688
76689         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
76690         the usual <time.h> dance.
76691         (get_date): Change signature to support fractional time stamps.
76692         All callers changed.
76693         * lib/getdate.y: Include "getdate.h" first, as we can now
76694         assume C89 and don't need to worry about 'const'.
76695         Similarly, include "unlocked-io.h" near start, not in middle.
76696         Include <limits.h>.
76697         (textint.value): Use long int rather than int.
76698         (textint.digits): Use size_t rather than int.
76699         (BILLION, LOG10_BILLION): New constants.
76700         (parser_control): New member rel_ns.  Members day_ordinal,
76701         time_zone, month, day, hour, minutes, rel_year, rel_month,
76702         rel_day, rel_hour, rel_minutes, rel_seconds
76703         are now long int, not int.  Member seconds is now struct timespec,
76704         not int.  New member timespec_seen.  Members dates_seen, days_seen,
76705         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
76706         not int.
76707         (%union.intval): Now long int, not int.
76708         New member timespec.
76709         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
76710         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
76711         (spec): Now is a timespec or an item list.
76712         (timespec, items): New nonterminals.
76713         (time, rel, relunit, number, get_date):
76714         Add support for fractional seconds.
76715         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
76716         (gmtime, localtime, mktime): Remove decls; not needed with C89.
76717         (to_hour): First arg is now long int, not int.
76718         (to_year): Returns long int, not int.
76719         Don't treat year -70 like 70.
76720         (tm_diff): Returns long int, not int.
76721         (lookup_word): Use bool instead of int when appropriate.
76722         (yylex): Use size_t for count, not int.
76723         Detect overflow when parsing large integer constants.
76724         Add support for fractions.
76725         (get_date): Make pointers 'const' if possible.
76726         Use more-portable code to detect integer overflow.
76727         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
76728         Don't use ctime; it's not reliable if the year has >4 digits.
76729
76730         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
76731         This is for compatibility with BSD.
76732
76733         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
76734         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
76735         From coreutils' system.h.
76736
76737         * lib/userspec.c: Don't include "posixver.h".
76738         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
76739         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
76740         compatible extension.  Simplify code by removing a boolean int
76741         that was always nonzero if a string was nonnull.
76742
76743 2004-03-30  Jim Meyering  <jim@meyering.net>
76744
76745         Merge from coreutils.
76746
76747         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
76748         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
76749         on some systems one must include <grp.h> before it.
76750         Reported by Christian Krackowizer.
76751
76752 2004-03-30  Jim Meyering  <jim@meyering.net>
76753
76754         Merge from coreutils.
76755
76756         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
76757
76758         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
76759         an empty input stream.
76760
76761         * lib/readtokens.c: Include <stdbool.h>.
76762         (readtoken): Use `size_t' rather than int/long.
76763         All callers adjusted.
76764         Use `bool' rather than `int' where appropriate.
76765         Use memset rather than an explicit loop.
76766         Use x2nrealloc rather than xrealloc.
76767         Allow the use of `\0' as a delimiter.
76768         (readtokens): Likewise.
76769         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
76770
76771 2004-03-30  Jim Meyering  <jim@meyering.net>
76772
76773         * m4/realloc.m4: Remove file, since now it does no more than
76774         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
76775         the `configure.ac' section of module/realloc.
76776         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
76777
76778 2004-03-30  Bruno Haible  <bruno@clisp.org>
76779
76780         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
76781         nonnull.
76782
76783 2004-03-29  Paul Eggert  <eggert@twinsun.com>
76784
76785         Merge changes to getloadavg.c from coreutils and Emacs.
76786
76787         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
76788         Define to an expression, not to the empty string.
76789         Include cloexec.h and xalloc.h.
76790         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
76791         Use set_cloexec_flag rather than rolling our own.
76792         * lib/cloexec.c, lib/cloexec.h: New files.
76793
76794 2004-03-29  Paul Eggert  <eggert@twinsun.com>
76795
76796         * m4/cloexec.m4: New file.
76797
76798 2004-03-18  Paul Eggert  <eggert@twinsun.com>
76799
76800         * lib/getopt.h: Sync with libc CVS.
76801
76802 2004-03-18  Paul Eggert  <eggert@twinsun.com>
76803             Bruno Haible  <bruno@clisp.org>
76804
76805         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
76806         mbswidth.
76807
76808 2004-03-18  Paul Eggert  <eggert@twinsun.com>
76809             Bruno Haible  <bruno@clisp.org>
76810
76811         * lib/mbswidth.h: Include <wchar.h> only if
76812         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
76813         <wchar.h>.
76814         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
76815
76816 2004-03-09  Paul Eggert  <eggert@twinsun.com>
76817
76818         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
76819         Sync with libc CVS.
76820         * lib/getopt_int.h: New file, also synced from libc.
76821
76822 2004-03-09  Paul Eggert  <eggert@twinsun.com>
76823
76824         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
76825         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
76826         Bring back getopt.c, getopt.h, getopt1.c.
76827
76828 2004-03-07  Paul Eggert  <eggert@twinsun.com>
76829
76830         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
76831         All uses changed.  Check for sa_sigaction member; this fixes
76832         a bug first reported by Jason Andrade in
76833         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
76834
76835 2004-03-07  Paul Eggert  <eggert@twinsun.com>
76836
76837         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
76838         '#if' expressions.  Unlike the code it replaces, it does not
76839         depend on (defined _SC_PAGESIZE).  However, it does depend on
76840         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
76841         first reported by Jason Andrade in
76842         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
76843
76844 2004-02-25  Simon Josefsson  <jas@extundo.com>
76845
76846         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
76847
76848 2004-02-25  Simon Josefsson  <jas@extundo.com>
76849
76850         * lib/strdup.h: New file.
76851         * lib/strdup.c: Include it.
76852         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
76853         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
76854
76855 2004-02-23  Karl Berry  <karl@gnu.org>
76856
76857         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
76858         (from fencepost.gnu.org:/gd/gnuorg).
76859
76860 2004-02-23  Karl Berry  <karl@gnu.org>
76861
76862         * config/srclistvars.sh (GNUORG) [karl]: redefine.
76863         * config/srclist.txt: add maintain/standards documents.
76864
76865 2004-02-18  Bruno Haible  <bruno@clisp.org>
76866
76867         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
76868         Reported by Derek Robert Price <derek@ximbiot.com>.
76869
76870 2004-02-16  Karl Berry  <karl@gnu.org>
76871
76872         * config/mkinstalldirs, install-sh: update from automake.
76873
76874 2004-02-06  Karl Berry  <karl@gnu.org>
76875
76876         * m4/po.m4: update from gettext 0.14.1.
76877
76878 2004-02-06  Karl Berry  <karl@gnu.org>
76879
76880         * lib/config.charset: update from gettext 0.14.1.
76881
76882 2004-02-05  Paul Eggert  <eggert@twinsun.com>
76883
76884         Add comments and code, prompted by suggestions from Bruno Haible
76885         for sh-quote.
76886         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
76887         describing the enum quoting_style values.
76888         * lib/quotearg.c (quotearg_alloc): New function.
76889         (quotearg_buffer_restyled): Treat lone { and } as special.
76890         Treat = as special.  Work around bug with older shells
76891         that "see" a '\' that is really the 2nd byte of a multibyte char.
76892         Quote empty string with shell_quoting_style.
76893
76894 2004-02-03  Bruno Haible  <bruno@clisp.org>
76895
76896         * m4/pipe.m4: New file, from GNU gettext.
76897
76898 2004-02-03  Bruno Haible  <bruno@clisp.org>
76899
76900         * lib/pipe.h: New file, from GNU gettext.
76901         * lib/pipe.c: New file, from GNU gettext.
76902
76903 2004-01-27  Bruno Haible  <bruno@clisp.org>
76904
76905         * m4/execute.m4: New file, from GNU gettext.
76906
76907 2004-01-27  Bruno Haible  <bruno@clisp.org>
76908
76909         * lib/execute.h: New file, from GNU gettext.
76910         * lib/execute.c: New file, from GNU gettext.
76911         * lib/w32spawn.h: New file, from GNU gettext.
76912
76913 2004-01-24  Paul Eggert  <eggert@twinsun.com>
76914
76915         Merge from diffutils.
76916
76917         * lib/file-type.c (file_type): Add typed memory objects.
76918         * lib/file-type.h (S_TYPEISTMO): New macro.
76919
76920         * lib/c-stack.h (c_stack_action): Remove argv argument.
76921         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
76922         (die): Don't calculate message unless segv_action returns.
76923         (get_stack_location, min_address_from_argv, max_address_from_argv,
76924         volatile stack_base, volatile_stack_size): Remove.
76925         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
76926         that every segmentation violation is a stack overflow.  (Ouch!)
76927         See Debian bug 136249 (still outstanding) for more info about why
76928         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
76929
76930 2004-01-24  Paul Eggert  <eggert@twinsun.com>
76931
76932         Exit-status fix from coreutils.
76933
76934         Use exit_failure consistently in place of EXIT_FAILURE,
76935         so that program exit statuses are consistent on failure.
76936
76937         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
76938         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
76939         * lib/argmatch.h: Comment fix to match the above.
76940         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
76941         Now a macro referring to exit_failure, instead of a separate
76942         variable.  Include "exitfail.h" to get it.
76943         * lib/xstrtol.h: Include "exitfail.h".
76944         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
76945
76946         * lib/long-options.c (parse_long_options): Use prototype
76947         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
76948         for clarity.
76949
76950 2004-01-21  Jim Meyering  <jim@meyering.net>
76951
76952         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
76953         so as not to conflict with a different-sized __mktime_internal
76954         function in GNU libc.
76955         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
76956         Problem building statically-linked `ls' reported by Michael Brunnbauer.
76957
76958 2004-01-20  Karl Berry  <karl@gnu.org>
76959
76960         * config/config.guess: update from config.
76961
76962         * config/srclistvars.sh: GNUWWWLICENSES for karl.
76963
76964 2004-01-20  Bruno Haible  <bruno@clisp.org>
76965
76966         Safer stack allocation.
76967         * lib/setenv.c: Include allocsa.h.
76968         (alloca): Remove fallback definition.
76969         (freea): Remove macro.
76970         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
76971         instead of freea.
76972
76973 2004-01-20  Bruno Haible  <bruno@clisp.org>
76974
76975         * m4/eealloc.m4: New file, from GNU gettext.
76976
76977 2004-01-20  Bruno Haible  <bruno@clisp.org>
76978
76979         * m4/allocsa.m4: New file, from GNU gettext.
76980
76981 2004-01-20  Bruno Haible  <bruno@clisp.org>
76982
76983         * lib/xallocsa.h: New file, from GNU gettext.
76984         * lib/xallocsa.c: New file, from GNU gettext.
76985
76986 2004-01-20  Bruno Haible  <bruno@clisp.org>
76987
76988         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
76989
76990 2004-01-20  Bruno Haible  <bruno@clisp.org>
76991
76992         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
76993         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
76994         specially.
76995
76996 2004-01-20  Bruno Haible  <bruno@clisp.org>
76997
76998         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
76999         patch.
77000
77001 2004-01-20  Bruno Haible  <bruno@clisp.org>
77002
77003         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
77004
77005 2004-01-20  Bruno Haible  <bruno@clisp.org>
77006
77007         * lib/eealloc.h: New file.
77008
77009 2004-01-20  Bruno Haible  <bruno@clisp.org>
77010
77011         * lib/binary-io.h: Avoid warnings on Cygwin.
77012
77013 2004-01-20  Bruno Haible  <bruno@clisp.org>
77014
77015         * lib/allocsa.h: New file, from GNU gettext.
77016         * lib/allocsa.c: New file, from GNU gettext.
77017
77018 2004-01-18  Karl Berry  <karl@gnu.org>
77019
77020         * doc/gpl.texi, doc/lgpl.texi: new files.
77021
77022 2004-01-18  Karl Berry  <karl@gnu.org>
77023
77024         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
77025         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
77026
77027 2004-01-15  Paul Eggert  <eggert@twinsun.com>
77028
77029         Merge from coreutils.
77030
77031         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
77032         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
77033         (gl_DEFAULT_POSIX2_VERSION): Move
77034         the documentation from 'configure' into 'config.hin',
77035         so that 'configure --help' isn't burdened by it and
77036         we don't have to worry about its formatting there.
77037         Reword the documentation so that it's more succinct
77038         and can be run together into a single paragraph.
77039         * m4/same.m4 (gl_SAME): Check for pathconf.
77040
77041 2004-01-15  Paul Eggert  <eggert@twinsun.com>
77042
77043         Merge from coreutils.
77044
77045         * lib/posixver.c: Include posixver.h.
77046
77047         * lib/same.c: Include <stdbool.h>, <limits.h>.
77048         (_POSIX_NAME_MAX): Define if not defined.
77049         (MIN): New macro.
77050         (same_name): If file names are silently truncated, report
77051         that the file names are the same if they are the same after
77052         the silent truncation.
77053
77054         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
77055         conversion function.
77056         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
77057         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
77058         longer needed.
77059
77060 2004-01-15  Jim Meyering  <jim@meyering.net>
77061
77062         Merge from coreutils.
77063
77064         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
77065         if no library is required.
77066         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
77067         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
77068         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
77069         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
77070         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
77071         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
77072         value, $ac_cv_search_crypt, if it's "none required".
77073         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
77074         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
77075         not gl_FUNC_GETLOADAVG.
77076         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
77077         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
77078
77079 2004-01-15  Jim Meyering  <jim@meyering.net>
77080
77081         Merge from coreutils.
77082
77083         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
77084         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
77085         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
77086
77087         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
77088         optional configure-time default.
77089
77090         * lib/version-etc.c (version_etc_copyright): Update copyright date.
77091
77092         * lib/xreadlink.c (xreadlink): Correct outdated comment.
77093
77094 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
77095
77096         Merge from coreutils.
77097
77098         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
77099         value, $ac_cv_search_nanosleep, if it's "none required".
77100
77101 2004-01-14  Paul Eggert  <eggert@twinsun.com>
77102
77103         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
77104         with like-named macro in fnmatch.c.
77105         (EXT): Use an internal constant instead.
77106
77107         Merge fnmatch patches from glibc.
77108         * lib/fnmatch.c (mbsinit): Remove define.
77109         Add libc_hidden_ver (__fnmatch, fnmatch).
77110         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
77111         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
77112
77113 2004-01-14  Karl Berry  <karl@gnu.org>
77114
77115         * config/install-sh: update from automake.
77116
77117 2004-01-13  Karl Berry  <karl@gnu.org>
77118
77119         * config/install-sh: update from automake.
77120
77121 2004-01-09  Karl Berry  <karl@gnu.org>
77122
77123         * config/install-sh: update from automake.
77124
77125 2004-01-05  Karl Berry  <karl@gnu.org>
77126
77127         * config/config.{sub,guess}: update from config.
77128
77129 2003-12-31  Karl Berry  <karl@gnu.org>
77130
77131         * config/depcomp: update from automake.
77132
77133 2003-12-14  Karl Berry  <karl@gnu.org>
77134
77135         * lib/config.charset: update from gettext-runtime.
77136
77137 2003-12-03  Paul Eggert  <eggert@twinsun.com>
77138
77139         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
77140         Bug reported by Alfred M. Szmidt.
77141
77142 2003-12-03  Bruno Haible  <bruno@clisp.org>
77143
77144         * m4/gettext.m4: Upgrade from gettext-0.13.
77145         * m4/po.m4: Upgrade from gettext-0.13.
77146         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
77147         * m4/intmax.m4: New file, from gettext-0.13.
77148         * m4/printf-posix.m4: New file, from gettext-0.13.
77149
77150 2003-11-29  Karl Berry  <karl@gnu.org>
77151
77152         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
77153
77154 2003-11-25  Paul Eggert  <eggert@twinsun.com>
77155             Bruno Haible  <bruno@clisp.org>
77156
77157         * lib/printf-parse.h: Don't include sys/types.h.
77158         (ARG_NONE): New macro.
77159         (char_directive): Change type of *arg_index fields to size_t.
77160         * lib/printf-parse.c: Don't include sys/types.h.
77161         (SSIZE_MAX): Remove macro.
77162         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
77163         Remove unnecessary overflow check.
77164         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
77165         fields.
77166
77167 2003-11-25  Bruno Haible  <bruno@clisp.org>
77168
77169         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
77170
77171 2003-11-25  Bruno Haible  <bruno@clisp.org>
77172
77173         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
77174         gt_TYPE_SSIZE_T.
77175
77176 2003-11-24  Paul Eggert  <eggert@twinsun.com>
77177
77178         * modules/alloca: Remove dependency on xalloc.
77179
77180 2003-11-24  Paul Eggert  <eggert@twinsun.com>
77181
77182         * lib/alloca.c: Remove dependency on xalloc module.
77183         (xalloc_die): Remove.
77184         (memory_full) [!defined emacs]: New macro.
77185         [!defined emacs]: Don't include xalloc.h.
77186         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
77187         address arithmetic overflows.  Change datatypes a bit to avoid
77188         unnecessary casts.
77189
77190 2003-11-22  Jim Meyering  <jim@meyering.net>
77191
77192         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
77193         s/size/size_t/.
77194
77195 2003-11-21  Karl Berry  <karl@gnu.org>
77196
77197         * config/config.{sub,guess}: update from config.
77198
77199 2003-11-18  Karl Berry  <karl@gnu.org>
77200
77201         * config/config.{sub,guess}: update from config.
77202
77203         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
77204
77205 2003-11-17  Paul Eggert  <eggert@twinsun.com>
77206
77207         * README: Mention that S+T cannot overflow if S is the size of
77208         an existing object and T is sufficiently small.
77209
77210 2003-11-17  Jim Meyering  <jim@meyering.net>
77211
77212         On systems without utime and without a utimes function capable of
77213         dealing with a NULL struct utimbuf* argument, this utime replacement
77214         could -- in unusual circumstances -- leak a file descriptor.
77215         * lib/utime.c: Include <unistd.h> and <errno.h>.
77216         (utime_null): Be sure to close `fd' and to preserve errno.
77217         Reported by Geoff Collyer via Arnold Robbins.
77218
77219 2003-11-17  Bruno Haible  <bruno@clisp.org>
77220
77221         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
77222         (Depends-on): Add xsize.
77223
77224 2003-11-17  Bruno Haible  <bruno@clisp.org>
77225
77226         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
77227
77228 2003-11-17  Bruno Haible  <bruno@clisp.org>
77229
77230         * lib/vasnprintf.c (alloca): Remove fallback definition.
77231         (freea): Remove definition.
77232         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
77233         Reported by Paul Eggert.
77234
77235 2003-11-16  Paul Eggert  <eggert@twinsun.com>
77236             Bruno Haible  <bruno@clisp.org>
77237
77238         Protect against address arithmetic overflow.
77239         * lib/printf-args.h: Include stddef.h.
77240         (arguments): Change type of field 'count' to size_t.
77241         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
77242         'unsigned int' where appropriate.
77243         * lib/printf-parse.h: Include sys/types.h.
77244         (char_directive): Change type of *arg_index fields to ssize_t.
77245         (char_directives): Change type of fields 'count', max_*_length to
77246         size_t.
77247         * lib/printf-parse.c: Include sys/types.h and xsize.h.
77248         (SSIZE_MAX): Define fallback value.
77249         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
77250         instead of 'int' where appropriate. Check a_allocated, d_allocated
77251         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
77252         * lib/vasnprintf.c: Include xsize.h.
77253         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
77254         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
77255         overflow. Avoid wraparound when converting a width or precision from
77256         decimal to binary.
77257
77258 2003-11-16  Bruno Haible  <bruno@clisp.org>
77259
77260         Update from GNU gettext.
77261         * lib/printf-parse.c: Generalize to it can be compiled for wide
77262         strings.
77263         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
77264         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
77265         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
77266         SNPRINTF): New macros.
77267         Don't include <alloca.h> if the file is used inside libintl.
77268         (local_wcslen): New function, for Solaris 2.5.1.
77269         (VASNPRINTF): Use it instead of wcslen.
77270
77271 2003-11-16  Bruno Haible  <bruno@clisp.org>
77272
77273         * lib/xsize.h (xmax): New function.
77274         (xsum, xsum3, xsum4): Declare as "pure" functions.
77275
77276 2003-11-12  Paul Eggert  <eggert@twinsun.com>
77277
77278         * modules/xalloc (Files): Undo latest change, since xalloc.h
77279         no longer needs SIZE_MAX or PTRDIFF_MAX.
77280
77281 2003-11-12  Paul Eggert  <eggert@twinsun.com>
77282
77283         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
77284         gl_PTRDIFF_MAX.
77285
77286 2003-11-12  Paul Eggert  <eggert@twinsun.com>
77287
77288         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
77289         "return", to pacify some unknown compiler.  Problem reported
77290         by Joerg Schilling.
77291
77292 2003-11-12  Paul Eggert  <eggert@twinsun.com>
77293
77294         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
77295         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
77296         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
77297         heuristic is just as accurate as far as we know, and it removes a
77298         dependency on size_max.m4 and ptrdiff_max.m4.
77299
77300 2003-11-11  Bruno Haible  <bruno@clisp.org>
77301
77302         * modules/xsize (Files): Add m4/size_max.m4.
77303         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
77304
77305 2003-11-11  Bruno Haible  <bruno@clisp.org>
77306
77307         * m4/size_max.m4: New file.
77308         * m4/ptrdiff_max.m4: New file.
77309         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
77310         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
77311         (gl_XALLOC): Invoke it.
77312
77313 2003-11-11  Bruno Haible  <bruno@clisp.org>
77314
77315         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
77316         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
77317         defined.
77318
77319 2003-11-10  Paul Eggert  <eggert@twinsun.com>
77320
77321         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
77322         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
77323         rejected some allocations of exactly SIZE_MAX - 2 bytes.
77324         From Bruno Haible.
77325         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
77326         not (size_t) -1, since it's defined here.
77327
77328 2003-11-09  Karl Berry  <karl@gnu.org>
77329
77330         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
77331
77332 2003-11-06  Paul Eggert  <eggert@twinsun.com>
77333
77334         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
77335         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
77336         Reject sizes of exactly SIZE_MAX bytes.
77337         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
77338         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
77339
77340 2003-11-05  Bruno Haible  <bruno@clisp.org>
77341
77342         * lib/xsize.h: Include limits.h, to avoid a possible collision with
77343         SIZE_MAX defined in <limits.h> on Solaris.
77344
77345 2003-11-04  Jim Meyering  <jim@meyering.net>
77346
77347         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
77348         variable names, rather than @VAR@.
77349         * modules/poll: Likewise.
77350
77351 2003-11-04  Bruno Haible  <bruno@clisp.org>
77352
77353         * modules/xsize: New file.
77354         * modules/linebreak: Depend on xsize.
77355         * MODULES.html.sh (func_all_modules): Add xsize.
77356
77357 2003-11-04  Bruno Haible  <bruno@clisp.org>
77358
77359         * m4/xsize.m4: New file.
77360
77361 2003-11-04  Bruno Haible  <bruno@clisp.org>
77362
77363         * lib/xsize.h: New file.
77364         * lib/linebreak.c: Include xsize.h.
77365         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
77366         argument for overflow.
77367         Suggested by Paul Eggert.
77368
77369 2003-11-03  Karl Berry  <karl@gnu.org>
77370
77371         * config/config.{guess,sub}: update from config.
77372
77373 2003-11-03  Jim Meyering  <jim@meyering.net>
77374
77375         * modules/userspec (lib_SOURCES): Add userspec.h.
77376         (Include): Add "userspec.h".
77377         Improve description.
77378
77379 2003-11-03  Jim Meyering  <jim@meyering.net>
77380
77381         * lib/userspec.c: Include "userspec.h".
77382         * lib/userspec.h: New file.
77383
77384 2003-11-03  Bruno Haible  <bruno@clisp.org>
77385
77386         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
77387
77388 2003-11-03  Bruno Haible  <bruno@clisp.org>
77389
77390         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
77391         available, to avoid (extremely rare) race condition.
77392         Suggested by Paul Eggert.
77393
77394 2003-11-02  Karl Berry  <karl@gnu.org>
77395
77396         * config/srclist.txt (vasprintf.c): sync broken, sigh.
77397
77398 2003-10-31  Paul Eggert  <eggert@twinsun.com>
77399
77400         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
77401         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
77402         (read_filesystem_list): Set and use me_type_malloced.
77403         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
77404         whatever the type happens to be), for brevity and consistency.
77405         Check for size calculation overflow on Alphas running OSF/1.
77406
77407 2003-10-31  Jim Meyering  <jim@meyering.net>
77408
77409         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
77410
77411         * lib/linebuffer.c: Include <string.h> for declaration of memset.
77412
77413 2003-10-30  Paul Eggert  <eggert@twinsun.com>
77414             Bruno Haible  <bruno@clisp.org>
77415
77416         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
77417         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
77418
77419 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
77420
77421         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
77422         netbsd*-gnu*.  Suggested by Robert Millan.
77423
77424 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77425
77426         * modules/group-member: Depend on stdbool.
77427
77428 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77429
77430         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
77431
77432 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77433
77434         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
77435         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
77436         after the 'gnu' in these cases.  This fixes some bugs in the
77437         previous change, and is based on suggestions by Robert Millan.
77438
77439 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77440
77441         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
77442         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
77443         no longer needed.
77444         * lib/quotearg.c (quotearg_n_options): Use it.
77445         * lib/group-member.c: Include <stdbool.h>.
77446         (free_group_info): Arg is now const *; don't free arg.
77447         (get_group_info): Now returns bool and accepts struct group_info *,
77448         rather than returning a malloc'ed struct group_info *.
77449         All uses changed.  Check for overflow in internal size calculation.
77450
77451         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
77452         rather than xmalloc/xrealloc.
77453         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
77454         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
77455         conformance bug: the old code used a pointer after freeing the
77456         storage that it addressed.
77457         * lib/hash.c (hash_initialize): Simplify the code by using
77458         xalloc_oversized rather than doing it by hand.
77459         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
77460         the buffer preserved.  Use free and xmalloc instead.
77461         * lib/quotearg.c (quotearg_n_options): Likewise.
77462         Use a simpler test for size overflow.  Don't use xalloc_oversized
77463         because unsigned int might be wider than size_t (!); this suggests
77464         that we should switch from unsigned int to size_t for slot numbers.
77465
77466 2003-10-28  Paul Eggert  <eggert@twinsun.com>
77467
77468         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
77469         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
77470         NetBSD kernels.  Requested by Richard Stallman.
77471
77472 2003-10-27  Paul Eggert  <eggert@twinsun.com>
77473
77474         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
77475         to allocate the returned structure.  Do not allocate a subarray,
77476         as x2nrealloc will do that.
77477         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
77478         instead of xnrealloc.
77479         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
77480
77481 2003-10-27  Bruno Haible  <bruno@clisp.org>
77482
77483         * lib/stdbool_.h: Better support for BeOS.
77484
77485 2003-10-26  Paul Eggert  <eggert@twinsun.com>
77486
77487         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
77488         now uses inline.
77489
77490 2003-10-26  Paul Eggert  <eggert@twinsun.com>
77491
77492         * lib/xalloc.h (xalloc_oversized): New static inline function, for
77493         callers that want to do their own size-overflow checking.  Include
77494         <stdbool.h>, since xalloc_oversized returns bool.
77495         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
77496         to use xalloc_oversized.
77497
77498         Add two functions x2realloc, x2nrealloc, for programs that grow
77499         arrays dynamically by doubling their sizes.
77500         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
77501         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
77502         New functions.
77503
77504         Port to C99 semantics for 'inline' of external functions.
77505         Bug reported by Bruno Haible.
77506         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
77507         with the old contents of xnmalloc.
77508         (xnmalloc, xmalloc): Use it.
77509         (xnrealloc_inline): New static inline function,
77510         with the old contents of xnrealloc.
77511         (xnrealloc, xrealloc): Use it.
77512
77513         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
77514         that.
77515
77516 2003-10-26  Karl Berry  <karl@gnu.org>
77517
77518         * config/srclist.txt (COPYING.DOC): no longer available from
77519         /gd/gnuorg; don't know where the ultimate source is.
77520
77521 2003-10-25  Paul Eggert  <eggert@twinsun.com>
77522
77523         Fix several address-calculation bugs in the hash modules,
77524         plus some minor code cleanup.
77525
77526         * lib/hash.h: Include <stdbool.h>, for bool.
77527         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
77528         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
77529         hash_get_n_entries, hash_get_max_bucket_length,
77530         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
77531         hash_rehash): Use size_t rather than unsigned.
77532         * lib/hash.c (struct hash_table, hash_get_n_buckets,
77533         hash_get_n_buckets_used, hash_get_n_entries,
77534         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
77535         hash_get_entries, hash_do_for_each, hash_string, is_prime,
77536         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
77537         Likewise.
77538         (SIZE_MAX): Define if not defined.
77539         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
77540         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
77541         hash_print):
77542         Use const * when possible.
77543         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
77544         (check_tuning): Fix bug: if tuning parameters were very close to
77545         0 or 1, rounding errors could have caused subscript violations.
77546         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
77547         (hash_initialize): Add 'fail:' label
77548         to free table and return NULL, and use it to simplify code.
77549         Use calloc rather than clearing the storage ourself.
77550         (hash_initialize, hash_rehash): Check for arithmetic overflow in
77551         buffer size calculations.
77552         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
77553         Include <stddef.h>, for size_t.
77554         * lib/hash-pjw.c (hash_pjw): Likewise.
77555         Switch to method described by Bruno Haible.
77556         Include <limits.h>, for CHAR_BIT.
77557         (SIZE_BITS): New macro.
77558
77559 2003-10-23  Paul Eggert  <eggert@twinsun.com>
77560
77561         * m4/getline.m4 (AM_FUNC_GETLINE):
77562         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
77563         hosts.  Problem reported by Derek Robert Price in
77564         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
77565         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
77566         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
77567
77568 2003-10-21  Paul Eggert  <eggert@twinsun.com>
77569
77570         * lib/getndelim2.c (getndelim2): When size calculation overflows,
77571         ceiling the allocation at NMAX bytes rather than silently
77572         discarding input bytes before NMAX is reached.  This makes
77573         a difference only if NMAX exceeds SIZE_MAX / 2.
77574
77575         * lib/obstack.c: Merge from glibc.
77576         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
77577         Add libc_hidden_def (_obstack_newchunk).
77578         (_obstack_free) [! defined _LIBC]: Remove.
77579         [defined _LIBC]: Make a strong alias from obstack_free, rather than
77580         a clone of the function body.
77581         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
77582         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
77583
77584         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
77585         glibc.
77586         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
77587         arg to memcpy.
77588
77589         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
77590         (obstack_ptr_grow_fast, obstack_int_grow_fast):
77591         Don't use lvalue casts, as GCC plans to remove support for them
77592         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
77593         was also present in the non-GCC version, indicating that this
77594         code had always been buggy and had never been widely used.
77595         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
77596         Use the fast variant of each macro, rather than copying the
77597         definiens of the fast variant; that way, we'll be more likely to
77598         catch future bugs in the fast variants.
77599
77600 2003-10-20  Bruno Haible  <bruno@clisp.org>
77601
77602         * modules/wait-process: New file.
77603         * MODULES.html.sh (func_all_modules): Add wait-process.
77604
77605 2003-10-20  Bruno Haible  <bruno@clisp.org>
77606
77607         * m4/wait-process.m4: New file.
77608
77609 2003-10-20  Bruno Haible  <bruno@clisp.org>
77610
77611         * lib/wait-process.h: New file, from GNU gettext.
77612         * lib/wait-process.c: New file, from GNU gettext.
77613
77614 2003-10-19  Jim Meyering  <jim@meyering.net>
77615
77616         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
77617         HPUX 10.20.
77618
77619 2003-10-18  Karl Berry  <karl@gnu.org>
77620
77621         * config/config.guess: update from config.
77622
77623 2003-10-16  Paul Eggert  <eggert@twinsun.com>
77624
77625         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
77626         (getgroups): First arg is int, not size_t.
77627         Don't let 'free' mangle errno.
77628
77629 2003-10-16  Paul Eggert  <eggert@twinsun.com>
77630
77631         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
77632
77633 2003-10-16  Karl Berry  <karl@gnu.org>
77634
77635         * config/config.{guess,sub}: update from config.
77636
77637 2003-10-16  Jim Meyering  <jim@meyering.net>
77638
77639         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
77640         memcpy.
77641
77642 2003-10-15  Paul Eggert  <eggert@twinsun.com>
77643
77644         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
77645         (SIZE_MAX): Remove.
77646         (new_exclude, add_exclude_file): Initial size no longer needs to
77647         be a power of 2.
77648         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
77649         our own address arithmetic overflow checking.
77650
77651         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
77652         (fnmatch): Do not alloca more than 2000 wide characters;
77653         instead, use malloc for large buffers.
77654         Check for address arithmetic overflow, and return -1
77655         with errno set to ENOMEM in that case.
77656         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
77657         (NEW_PATTERN): Do not alloca more than 8000 bytes;
77658         instead, return -1.  Check for address arithmetic overflow.
77659
77660 2003-10-14  Paul Eggert  <eggert@twinsun.com>
77661
77662         Handle invalid suffixes and overflow independently, so that
77663         callers can treat them independently as needed.  Fix some bugs in
77664         suffix handling, e.g., "100k@" was not diagnosed as an invalid
77665         suffix for a human-readable blocksize.  The major caller-visible
77666         change is the addition of a new
77667         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
77668         that both overflow and suffix chars were found.
77669
77670         * lib/human.c (humblock): Don't check separately for invalid suffix
77671         char; that is xstrtoumax's job (now that its bug is fixed).
77672         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
77673         INTMAX_MAX]: New macros.
77674         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
77675         TYPE_MAXIMUM): New macros.
77676         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
77677         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
77678         if overflow occurs, as it's what __strtol does and it's more useful
77679         in practice.
77680         (__xstrtol): If __strtol reports some error other than ERANGE,
77681         reflect it to the caller as LONGINT_INVALID.  If it reports
77682         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
77683         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
77684         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
77685         value.
77686         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
77687         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
77688         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
77689         [defined UINTMAX_MAX]: New macros.
77690
77691 2003-10-14  Bruno Haible  <bruno@clisp.org>
77692
77693         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
77694
77695 2003-10-14  Bruno Haible  <bruno@clisp.org>
77696
77697         * m4/sig_atomic_t: New file, from GNU gettext.
77698         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
77699
77700 2003-10-14  Bruno Haible  <bruno@clisp.org>
77701
77702         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
77703         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
77704         Also use volatile where needed.
77705
77706 2003-10-12  Paul Eggert  <eggert@twinsun.com>
77707
77708         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
77709         Change maintainer from Bruno Haible to 'all'.
77710
77711 2003-10-12  Paul Eggert  <eggert@twinsun.com>
77712
77713         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
77714
77715 2003-10-12  Paul Eggert  <eggert@twinsun.com>
77716
77717         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
77718         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
77719         and define in terms of the other primitives.
77720         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
77721         (SIZE_MAX): Define if not already defined.
77722         (array_size_overflow): New function.
77723         (xalloc_die): Abort instead of exiting if 'error' returns.
77724         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
77725         (xmalloc, xrealloc): Use them.
77726         (xcalloc): Check for address arithmetic overflow.
77727         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
77728         a bit faster than strcpy.
77729
77730 2003-10-10  Simon Josefsson  <jas@extundo.com>
77731
77732         * modules/argp (Depends-on): Add restrict and strcase.
77733
77734 2003-10-10  Simon Josefsson  <jas@extundo.com>
77735
77736         * m4/argp.m4: Add AC_C_INLINE.
77737
77738 2003-10-08  Paul Eggert  <eggert@twinsun.com>
77739
77740         Merge getpass from libc, plus a few fixes.
77741
77742         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
77743         Include <stdbool.h>.
77744         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
77745         __fsetlocking to empty.
77746         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
77747         do include <bits/libc-lock.h>.
77748         Do not include <fcntl.h>; not needed.
77749         [_LIBC]: Include <wchar.h>.
77750         (NOTCANCEL_MODE): New macro.
77751         (flockfile, funlockfile) [_LIBC]: New macros.
77752         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
77753         [!_LIBC]: New macros.
77754         (call_fclose): New function.
77755         (getpass): Use it.  Save tty stream separately; this simplifies the
77756         code and makes it more reliable if stdin happens to equal stdout.
77757         Invoke __fsetlocking on tty.
77758         Handle thread cancellation if needed.
77759         Namespace cleanup (use __tcgetattr, __getline).
77760         Use bool for Booleans.
77761         [USE_IN_LIBIO]: Handle wide streams.
77762         [!_LIBC]: Unconditionally do the fseek, since we don't know what
77763         stream might go where.
77764
77765         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
77766         doesn't have to include <stdio.h> before us.
77767         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
77768         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
77769         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
77770         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
77771         if not declared, so that we can use getpass.c code from libc without
77772         rewriting it.
77773         (flockfile, ftrylockfile, funlockfile): New macros.
77774
77775 2003-10-08  Paul Eggert  <eggert@twinsun.com>
77776
77777         * modules/getpass: Depend on stdbool.
77778
77779 2003-10-08  Paul Eggert  <eggert@twinsun.com>
77780
77781         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
77782
77783 2003-10-07  Karl Berry  <karl@gnu.org>
77784
77785         * config/config.{guess,sub}: update from config.
77786
77787 2003-10-06  Jim Meyering  <jim@meyering.net>
77788             Bruno Haible  <bruno@clisp.org>
77789
77790         This lets translators provide better translations for the
77791         "Written by ..." part of --version output.
77792         * lib/version-etc.h: Include stdarg.h.
77793         (version_etc_copyright): Declare as readonly.
77794         (version_etc): Make this function variadic with a NULL-terminated list
77795         of author name strings.
77796         (version_etc_va): New declaration.
77797         * lib/version-etc.c: Include stdarg.h, stdlib.h.
77798         (version_etc_copyright): Declare as readonly.
77799         (version_etc_va): New function. Provide a different translatable string
77800         for each possible number of authors < 10. Abbreviate when there are 10
77801         authors or more.
77802         (version_etc): Make this function variadic. Call version_etc_va.
77803         Suggestion from Gary V. Vaughan.
77804
77805         * lib/long-options.h (parse_long_options): Change prototype: the
77806         authors string is moved to the end and becomes variadic.
77807         * lib/long-options.c: Include stdarg.h.
77808         (parse_long_options): Make this function variadic, too.
77809         Call version_etc_va, not version_etc.
77810
77811 2003-10-06  Bruno Haible  <bruno@clisp.org>
77812
77813         * modules/version-etc-2: Remove file.
77814         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
77815
77816 2003-10-06  Bruno Haible  <bruno@clisp.org>
77817
77818         * modules/fatal-signal: New file.
77819         * MODULES.html.sh (func_all_modules): Add fatal-signal.
77820
77821 2003-10-06  Bruno Haible  <bruno@clisp.org>
77822
77823         * m4/fatal-signal.m4: New file.
77824         * m4/signalblocking.m4: New file, from GNU gettext.
77825
77826 2003-10-06  Bruno Haible  <bruno@clisp.org>
77827
77828         * lib/version-etc-2.h: Remove file.
77829         * lib/version-etc-2.c: Remove file.
77830
77831 2003-10-06  Bruno Haible  <bruno@clisp.org>
77832
77833         * lib/fatal-signal.h: New file, from GNU gettext.
77834         * lib/fatal-signal.c: New file, from GNU gettext.
77835
77836 2003-10-05  Paul Eggert  <eggert@twinsun.com>
77837
77838         * README: Rework advice for preventing empty .o files.
77839         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
77840         not <sys/types.h>.
77841
77842 2003-10-04  Karl Berry  <karl@gnu.org>
77843
77844         * lib/argp*: update from libc.
77845
77846 2003-10-04  Karl Berry  <karl@gnu.org>
77847
77848         * config/config.{guess,sub}: update from config.
77849
77850 2003-10-02  Bruno Haible  <bruno@clisp.org>
77851
77852         * modules/lchown (Include): Add lchown.h.
77853         * modules/time_r (Include): Use "..." syntax.
77854         * modules/xgetdomainname (Include): Add xgetdomainname.h.
77855
77856 2003-10-01  Simon Josefsson  <jas@extundo.com>
77857
77858         * MODULES.html.sh (func_all_modules): Move gethostname from section
77859         'based on' to section 'lacking' POSIX:2001.
77860
77861 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
77862
77863         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
77864         to output mode on the same stream.
77865
77866 2003-09-29  Paul Eggert  <eggert@twinsun.com>
77867
77868         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
77869         Fix arg typo in previous patch.
77870
77871 2003-09-28  Jim Meyering  <jim@meyering.net>
77872
77873         * lib/error.c: Correct cpp indentation.
77874
77875 2003-09-27  Paul Eggert  <eggert@twinsun.com>
77876
77877         * modules/free: New file.
77878
77879 2003-09-27  Paul Eggert  <eggert@twinsun.com>
77880
77881         * m4/free.m4: New file.
77882
77883 2003-09-27  Paul Eggert  <eggert@twinsun.com>
77884
77885         * lib/minmax.h (MIN, MAX)
77886         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
77887         Omit the special code that used __typeof__, since we worry that
77888         it could be more trouble than it's worth.  See:
77889         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
77890         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
77891
77892         * lib/free.c: New file.
77893
77894 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
77895
77896         Trivial fixes to Makefile.am parts of module listings.
77897         * modules/strstr: Append strstr.h to lib_SOURCES.
77898         * modules/strcase: Likewise, for strcase.h.
77899
77900 2003-09-27  Karl Berry  <karl@gnu.org>
77901
77902         * config/mkinstalldirs: update from automake.
77903
77904 2003-09-26  Paul Eggert  <eggert@twinsun.com>
77905
77906         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
77907         (error_tail): Do not loop, reallocating temporary buffer, since
77908         the output cannot contain more wide characters than the input
77909         contains bytes, the size must be big enough already.  This avoids
77910         one potential size overflow calculation.  Check for size overflow
77911         when calculating temporary buffer size.  Free temporary buffer
77912         when done, if it was allocated with malloc; this plugs a memory
77913         leak.  Remove casts from void * to pointers, that are no longer
77914         needed now that we're assuming C89 or better.
77915
77916         Merge error changes from glibc.
77917
77918         * lib/error.c, error.h: Update copyright notice header to match glibc.
77919         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
77920         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
77921         Disable cancellation while printing error.
77922         * lib/error.h: Prepend __ to parameter names.
77923
77924 2003-09-26  Jim Meyering  <jim@meyering.net>
77925
77926         * lib/error.c (error_tail): Move some declarations
77927         into inner scope where the local variables are used.
77928
77929 2003-09-26  Bruno Haible  <bruno@clisp.org>
77930
77931         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
77932         stpncpy().
77933         Don't define stpncpy through config.h; it's now done through stpncpy.h.
77934
77935 2003-09-26  Bruno Haible  <bruno@clisp.org>
77936
77937         * lib/stpncpy.h (gnu_stpncpy): New declaration.
77938         (stpncpy): Define as alias for gnu_stpncpy.
77939         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
77940
77941 2003-09-25  Simon Josefsson  <jas@extundo.com>
77942
77943         * lib/xgetdomainname.h: New file.
77944         * lib/xgetdomainname.c: New file.
77945
77946 2003-09-25  Simon Josefsson  <jas@extundo.com>
77947             Bruno Haible  <bruno@clisp.org>
77948
77949         * modules/getdomainname: New file.
77950         * modules/xgetdomainname: New file.
77951         * MODULES.html.sh (func_all_modules): Add getdomainname,
77952         xgetdomainname.
77953
77954 2003-09-25  Simon Josefsson  <jas@extundo.com>
77955             Bruno Haible  <bruno@clisp.org>
77956
77957         * m4/getdomainname.m4: New file.
77958
77959 2003-09-25  Simon Josefsson  <jas@extundo.com>
77960             Bruno Haible  <bruno@clisp.org>
77961
77962         * lib/getdomainname.h: New file.
77963         * lib/getdomainname.c: New file.
77964
77965 2003-09-25  Karl Berry  <karl@gnu.org>
77966
77967         * lib/argp-fmtstream.c, argp-help.c: update from libc.
77968
77969 2003-09-25  Karl Berry  <karl@gnu.org>
77970
77971         * config/install-sh: update from automake.
77972
77973 2003-09-25  Bruno Haible  <bruno@clisp.org>
77974
77975         * modules/version-etc-2: New file, from modules/version-etc with
77976         modifications.
77977         * MODULES.html.sh (func_all_modules): Add version-etc-2.
77978
77979 2003-09-25  Bruno Haible  <bruno@clisp.org>
77980
77981         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
77982         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
77983
77984 2003-09-24  Simon Josefsson  <jas@extundo.com>
77985
77986         * modules/xgethostname: Add xgethostname.h.
77987
77988 2003-09-24  Paul Eggert  <eggert@twinsun.com>
77989
77990         * lib/linebuffer.c (freebuffer): Don't free the argument, just
77991         the buffer associated with the argument.  Bug reported by
77992         Simon Josefsson.
77993
77994 2003-09-24  Paul Eggert  <eggert@twinsun.com>
77995
77996         * README: Document assumptions that 'int' is at least 32 bits
77997         wide, that integer arithmetic is 2's complement without overflow,
77998         that there are no holes in integer values, that adding sizes of
77999         two nonoverlapping objects can't overflow, and that all-bits-zero
78000         yields scalar zero.  Fix spelling and capitalization typos.
78001
78002 2003-09-19  Karl Berry  <karl@gnu.org>
78003
78004         * lib/argp.h: update from libc.
78005
78006 2003-09-17  Paul Eggert  <eggert@twinsun.com>
78007
78008         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
78009         to avoid spurious warnings like "AC_RUN_IFELSE was called before
78010         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
78011
78012 2003-09-17  Paul Eggert  <eggert@twinsun.com>
78013
78014         * gnulib-tool: Use "test -h", not "test -L", for portability
78015         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
78016         (tags_regexp): Remove, since \| doesn't conform to POSIX.
78017         (sed_extract_prog): Issue s commands one-by-one, rather than
78018         using \| in one s command.
78019
78020 2003-09-16  Paul Eggert  <eggert@twinsun.com>
78021
78022         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
78023         input error, instead of returning NULL the next time we are called
78024         (and therefore losing track of errno).
78025
78026 2003-09-16  Bruno Haible  <bruno@clisp.org>
78027
78028         * gnulib-tool (func_create_testdir): Warn about duplicated
78029         dependencies.
78030
78031 2003-09-15  Paul Eggert  <eggert@twinsun.com>
78032
78033         * modules/argmatch, modules/fatal, modules/obstack,
78034         modules/xalloc, modules/xgethostname: Sort dependencies by
78035         importance, not alphabetically.
78036
78037 2003-09-15  Paul Eggert  <eggert@twinsun.com>
78038
78039         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
78040         fails, so that the caller gets the proper errno.
78041
78042         * lib/readutmp.c (read_utmp): Likewise.
78043         Check for fstat error.  Close stream and free storage
78044         when failing.
78045
78046 2003-09-14  Karl Berry  <karl@gnu.org>
78047
78048         * config/srclist.txt (strdup.c): disable for c89 changes.
78049
78050 2003-09-14  Jim Meyering  <jim@meyering.net>
78051
78052         * lib/getloadavg.c: Correct cpp indentation.
78053         * lib/strdup.c: Likewise.
78054         * lib/vasnprintf.c: Likewise.
78055
78056 2003-09-14  Bruno Haible  <bruno@clisp.org>
78057
78058         * modules/fwriteerror: New file.
78059         * MODULES.html.sh (func_all_modules): Add fwriteerror.
78060
78061 2003-09-14  Bruno Haible  <bruno@clisp.org>
78062
78063         * lib/fwriteerror.h: New file.
78064         * lib/fwriteerror.c: New file.
78065
78066 2003-09-12  Paul Eggert  <eggert@twinsun.com>
78067
78068         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
78069         modules/xgethostname, modules/xalloc: Depend on exit.
78070
78071 2003-09-12  Paul Eggert  <eggert@twinsun.com>
78072
78073         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
78074
78075         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
78076         and AC_MINIX, too, so that their extensions are available.
78077
78078         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
78079         This macro has been superseded by gl_BACKUPFILE.
78080
78081         More patches to assume C89 or better.
78082
78083         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
78084
78085         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
78086         unconditionally.
78087         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
78088         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
78089         Include <string.h>, <stdlib.h> unconditionally.
78090         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
78091         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
78092         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
78093         headers or for string.h.
78094         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
78095         or strtoul.
78096
78097         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
78098         headers.
78099         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
78100         * m4/userspec.m4 (gl_USERSPEC): Likewise.
78101         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
78102         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
78103         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
78104         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
78105         memcpy, memset.
78106         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
78107         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
78108         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
78109         strtol.
78110         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
78111         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
78112         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
78113         strtoul.
78114
78115 2003-09-12  Paul Eggert  <eggert@twinsun.com>
78116
78117         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
78118         * lib/obstack.c [!defined _LIBC]: Likewise.
78119         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
78120         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
78121         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
78122
78123         More changes to assume C89 or better.
78124
78125         * lib/error.c (error_tail): Assume vprintf.
78126
78127         * lib/argmatch.c (getenv): Remove decl.
78128         * lib/progreloc.c (get_full_program_name): Define via prototype.
78129         * lib/setenv.c (clearenv): Likewise.
78130         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
78131         needed.
78132         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
78133         (malloc, memcpy): Remove decls.
78134         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
78135         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
78136         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
78137         (memcpy): Remove macro.
78138         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
78139         (__P): Remove.  All uses removed.
78140         (PTR): Remove.  All uses changed to void *.
78141         (CHAR_BIT, NULL): Remove.
78142         (spaces, zeros, memset_space, memset_zero)
78143         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
78144         Remove.
78145         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
78146         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
78147         Define with prototype.
78148         Remove now-unnecessary prototype decl.
78149         (extra_args_spec): Assume ANSI C.  All uses changed.
78150         (extra_args_spec_iso): Remove.
78151         (my_strftime, emacs_strftimeu): Define via prototype.
78152         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
78153         unconditionally.
78154         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
78155         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
78156         (strtoul, strtol): Remove decls.
78157         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
78158         LONG_MAX): Remove.
78159         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
78160         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
78161         (LOCALE_PARAM_PROTO): New macro.
78162         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
78163         (INTERNAL (strtol), strtol): Define with a prototype.
78164         (PARAMS): Remove.  All uses removed.
78165         * lib/tempname.c: Include <string.h> unconditionally.
78166         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
78167         * lib/xgethostname.c (main): Define with a prototype.
78168         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
78169         Include <stdlib.h> unconditionally.
78170         (calloc, malloc, realloc, free): Remove decls.
78171         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
78172         Include <stdlib.h> unconditionally.  Sort include file names.
78173         (strtod): Remove.
78174         (xstrtod): Define with a prototype.
78175         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
78176         (strtol, strtoul): Remove decls.
78177
78178 2003-09-11  Paul Eggert  <eggert@twinsun.com>
78179
78180         More patches to assume C89 or better.
78181         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
78182         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
78183         string.h, memchr, STDC_HEADERS.
78184
78185 2003-09-11  Paul Eggert  <eggert@twinsun.com>
78186
78187         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
78188         Include <stdlib.h>, <string.h> unconditionally.
78189         Remove now-unnecessary cast to char *.
78190         * lib/strnlen.c: Include <string.h> unconditionally.
78191         * lib/yesno.c (yesno): Define with a prototype.
78192
78193 2003-09-11  Bruno Haible  <bruno@clisp.org>
78194
78195         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
78196
78197 2003-09-10  Jim Meyering  <jim@meyering.net>
78198
78199         * lib/error.c: Correct indentation of cpp directives.
78200
78201 2003-09-10  Bruno Haible  <bruno@clisp.org>
78202
78203         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
78204         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
78205         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
78206         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
78207         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
78208         <stdlib.h> and <string.h> checks.
78209         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
78210         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
78211
78212 2003-09-10  Bruno Haible  <bruno@clisp.org>
78213
78214         * lib/strcspn.c: Include <string.h> unconditionally.
78215         * lib/strpbrk.c: Include <string.h> unconditionally.
78216         * lib/strstr.c: Include <string.h> unconditionally.
78217         * lib/unicodeio.c: Include <string.h> unconditionally.
78218         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
78219         * lib/unsetenv.c: Likewise.
78220         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
78221         * lib/yesno.c: Include <stdlib.h> unconditionally.
78222         (rpmatch): Add prototype.
78223
78224 2003-09-09  Paul Eggert  <eggert@twinsun.com>
78225
78226         More patches to assume C89 or better.
78227         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
78228         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
78229         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
78230         or for string.h.
78231         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
78232         stdlib.h.
78233         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
78234         C headers.
78235         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
78236         string.h.
78237         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
78238         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
78239         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
78240         or for string.h.
78241         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
78242         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
78243         C headers.
78244         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
78245         memcpy.
78246         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
78247         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
78248         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
78249         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
78250         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
78251         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
78252         string.h, free.
78253         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
78254         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
78255         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
78256         C headers, or for string.h.
78257         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
78258         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
78259         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
78260         headers, memory.h, stdlib.h, string.h, strings.h.
78261         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
78262         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
78263         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
78264         strchr.
78265         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
78266         headers, memory.h, string.h.
78267         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
78268         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
78269         free.
78270         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
78271         headers.
78272         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
78273         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
78274         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
78275         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
78276         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
78277
78278 2003-09-09  Paul Eggert  <eggert@twinsun.com>
78279
78280         More K&R removal.
78281
78282         * lib/acosl.c (main): Use a prototype.
78283         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
78284         tanl.c: Likewise.
78285
78286         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
78287
78288         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
78289         (getopt, etopt_long, getopt_long_only, _getopt_internal)
78290         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
78291         with a prototype.
78292         * lib/getopt.c (const): Remove macro.
78293         Include <string.h> unconditionally.
78294         (my_index): Remove; all uses changed to strchr.
78295         (strlen): Remove decl.
78296         (exchange): Remove forward decl; no longer needed.
78297         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
78298         Define with prototype.
78299         * lib/getopt1.c (const): Remove macro.
78300         (getopt_long, getopt_long_only, main): Define with prototype.
78301
78302         * lib/getugroups.c: Include <string.h> unconditionally.
78303
78304         * lib/getusershell.c: Include <stdlib.h> unconditionally.
78305         (getusershell, setusershell, endusershell, readname, main):
78306         Define with prototypes.
78307
78308         * lib/group-member.c: Include group-member.h first.
78309         Include <stdlib.h> unconditionally.
78310
78311         * lib/hard-locale.c: Include hard-locale.h first.
78312         Include <stdlib.h>, <string.h> unconditionally.
78313
78314         * lib/hash.c (free, malloc): Remove decls.
78315         Include <stdlib.h> unconditionally.
78316
78317         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
78318         (getenv): Do not declare.
78319
78320         * lib/idcache.c: Include <string.h> unconditionally.
78321
78322         * lib/long-options.c: Include long-options.h first, to test interface.
78323         Include <stdlib.h> unconditionally.
78324
78325         * lib/makepath.c: Include makepath.h first, to test interface.
78326         Include <stdlib.h> and <string.h> unconditionally.
78327
78328         * lib/linebuffer.c: Include <stdlib.h>.
78329         (free): Remove decl.
78330
78331         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
78332         stddef.h. rpl_malloc returns void *, not char *.
78333         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
78334         prototype.
78335
78336         * lib/md5.h: Include <limits.h> unconditionally.
78337         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
78338         (__P): Remove; all uses removed.
78339         * lib/md5.c: Include "md5.h" first.
78340         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
78341         md5_buffer, md5_process_bytes, md5_process_block):
78342         Define with prototypes.
78343         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
78344         * lib/sha.c: Include "sha.h" first.
78345         Include <stdlib.h>, <string.h> unconditionally.
78346
78347         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
78348         * lib/memcmp.c (__ptr_t): Likewise.
78349         * lib/memrchr.c (__ptr_t): Likewise.
78350         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
78351         Include <string.h> unconditionally.
78352         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
78353         * lib/memchr.c: Include <stdlib.h> unconditionally.
78354         * lib/memchr.c (LONG_MAX): Remove.
78355         * lib/memrchr.c (LONG_MAX): Likewise.
78356         * lib/memchr.c (__memchr): Define via a prototype.
78357         * lib/memrchr.c (__memrchr): Likewise.
78358         * lib/memcmp.c (__P): Remove, and remove all uses.
78359         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
78360         Remove forward decls; no longer needed.
78361         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
78362         Use types required by C89 in prototype.
78363
78364         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
78365         * lib/savedir.c: Likewise.
78366         * lib/mkdir.c (free): Remove decl.
78367         * lib/rmdir.c (rmdir): Define with a prototype.
78368         * lib/savedir.c: Include savedir.h first, to test interface.
78369
78370         * lib/mktime.c (STDC_HEADERS): Remove.
78371         Include <stdlib.h>, <string.h> unconditionally.
78372
78373         * lib/modechange.c: Include <stdlib.h> unconditionally.
78374         (malloc): Remove decl.
78375
78376         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
78377         (free): Remove decl.
78378
78379         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
78380         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
78381         (This type really should be intptr_t, but that's a C99ism.)
78382         (_obstack_memcpy): Remove: all uses changed to memcpy.
78383         Include <string.h> unconditionally.
78384         (struct obstack): Assume __STDC__ for types of members
78385         chunkfun, freefun, extra_arg.
78386         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
78387         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
78388         obstack_begin, obstack_specify_allocation,
78389         obstack_specify_allocation_with_arg, obstack_chunkfun,
78390         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
78391         Remove unprototyped decls and the macros that use them.
78392         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
78393         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
78394         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
78395         (defined __STDC__ && __STDC__)]:
78396         Remove nonprototyped code.
78397         Include <stdlib.h> unconditionally.
78398         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
78399         _obstack_allocated_p, _obstack_free, obstack_free,
78400         _obstack_memory_used, print_and_abort):
78401         Define using prototypes.
78402         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
78403         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
78404         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
78405         obstack_next_free, obstack_object_size, obstack_room) [0]:
78406         Remove unused, unprototyped code.
78407
78408         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
78409
78410         * lib/physmem.c (physmem_total, physmem_available, main): Define
78411         with prototypes.
78412
78413         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
78414         (main): Define with a prototype.
78415
78416         * lib/posixver.c (getenv): Remove decl.
78417
78418         * lib/putenv.c (malloc): Returns void *, not char *.
78419         Include <string.h> unconditionally.
78420         (strchr, memcpy, NULL): Do not define.
78421
78422         * lib/readtokens.c: Include readtokens.h first, to test interface.
78423         Include <stdlib.h>, <string.h> unconditionally.
78424         (init_tokenbuffer): Define with a prototype.
78425
78426         * lib/regex.c (PARAMS): Remove.  All uses removed.
78427         All uses of _RE_ARGS removed, too.
78428         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
78429         unconditionally.
78430         (bzero): Assume memset exists.
78431         (memcmp, memcpy, NULL): Remove.
78432         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
78433         char, or assignments to local vars of type signed char.
78434         (init_syntax_once, PREFIX(extract_number_and_incr),
78435         PREFIX(print_partial_compiled_pattern),
78436         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
78437         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
78438         PREFIX(regex_grow_registers), PREFIX(regex_compile),
78439         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
78440         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
78441         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
78442         wcs_compile_range, byte_compile_range, truncate_wchar,
78443         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
78444         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
78445         count_mbs_length, wcs_re_match_2_internal,
78446         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
78447         PREFIX(alt_match_null_string_p),
78448         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
78449         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
78450         regfree, PREFIX(extract_number)): Define with prototype.  Remove
78451         now-unnecessary declaration, if any.
78452         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
78453         regcomp, regexec):
78454         Remove now-unnecessary casts among pointer types.
78455         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
78456
78457         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
78458         (free): Remove decl.
78459
78460         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
78461
78462         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
78463         (free): Remove decl.
78464
78465         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
78466         * lib/xgetcwd.c: Likewise.
78467
78468         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
78469         (free): Remove decl.
78470
78471         * lib/strchrnul.c (strchrnul): Define with a prototype.
78472         Fix bug: c_in was not converted to char before searching.
78473
78474         The following changes are not K&R related:
78475
78476         * lib/group-member.h: Include <sys/types.h>, so that this file is
78477         self-contained.
78478         * lib/makepath.h: Likewise.
78479
78480         * lib/getusershell.c (readname, default_index, line_size, readname):
78481         Use size_t, not int, for sizes.
78482         (readname): If the size overflows, report an error instead of
78483         looping forever.
78484
78485 2003-09-09  Paul Eggert  <eggert@twinsun.com>
78486
78487         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
78488         libc.
78489
78490 2003-09-09  Paul Eggert  <eggert@twinsun.com>
78491
78492         * README: New section: portability guidelines.
78493
78494 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
78495
78496         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
78497         C89 spec.
78498
78499 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
78500
78501         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
78502
78503 2003-09-08  Paul Eggert  <eggert@twinsun.com>
78504
78505         Assume C89 or better; remove K&R cruft.
78506         A few of these changes were first proposed by Derek Robert Price
78507         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
78508
78509         * lib/addext.c: Include <string.h> unconditionally.
78510         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
78511         Don't declare getenv or malloc.
78512
78513         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
78514         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
78515         (NULL): Remove.
78516         (find_stack_direction, alloca): Use prototypes.
78517
78518         * lib/atexit.c (atexit): Define using a prototype.
78519
78520         * lib/basename.c, dirname.c, stripslash.c:
78521         Include <string.h> unconditionally.
78522
78523         * lib/bcopy.c: Include <stddef.h>.
78524         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
78525
78526         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
78527
78528         * lib/error.h (error, error_at_line, error_print_progname)
78529         [! (defined (__STDC__) && __STDC__)]: Remove decls.
78530         * lib/error.c: Include error.h first, to check interface.
78531         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
78532         (VA_START): Remove; all uses changeed to va_start.
78533         (exit, strerror): Remove decls.
78534         (error_print_progname): Prototype uncondionally.
78535         Don't include <errno.h>; no longer needed.
78536         (private_strerror): Remove.
78537         (error_tail): Always define.
78538         (error, error_at_line): Assume C89 or better; always use prototypes.
78539         * lib/fatal.c: Include "fatal.h" first, to test interface.
78540         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
78541         (VA_START): Remove; all uses changed to va_start.
78542         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
78543         this case.
78544         (exit): Remove decl.
78545         (fatal): Prototype unconditionally.  Assume va_start works.
78546         Abort at end, to pacify gcc.
78547
78548         * lib/euidaccess.c (main): Define with a prototype.
78549
78550         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
78551
78552         * lib/exitfail.c: Include <stdlib.h> unconditionally.
78553
78554         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
78555         prototypes.
78556         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
78557         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
78558         (getenv): Remove decl.
78559         (fnmatch): Define using a prototype.
78560         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
78561         (FCT): Define using a prototype.
78562
78563         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
78564
78565         * lib/gethostname.c: Include <stddef.h>.
78566         (gethostname): Define with prototype.  Length is size_t, not int.
78567
78568 2003-09-08  Paul Eggert  <eggert@twinsun.com>
78569
78570         Assume C89 or better; remove K&R cruft.
78571         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
78572         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
78573         string.h, getenv, malloc.
78574         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
78575         headers.
78576         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
78577         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
78578         do not check for strerror.
78579         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
78580         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
78581         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
78582         do not check for doprnt or vprintf.
78583         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
78584         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
78585
78586 2003-09-08  Paul Eggert  <eggert@twinsun.com>
78587
78588         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
78589         getversion.c should have been removed then, but was accidentally
78590         preserved.
78591
78592         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
78593         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
78594
78595 2003-09-08  Karl Berry  <karl@gnu.org>
78596
78597         * config/config.sub, config.guess, srclistvars.sh: update from savannah
78598                 config, forget about prep.
78599
78600         * config/depcomp, missing: update from automake.
78601
78602 2003-09-07  Paul Eggert  <eggert@twinsun.com>
78603
78604         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
78605         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
78606
78607 2003-09-07  Paul Eggert  <eggert@twinsun.com>
78608
78609         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
78610         copy_tm_result.  Bug reported by Simon Josefsson in
78611         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
78612
78613 2003-09-06  Paul Eggert  <eggert@twinsun.com>
78614
78615         * m4/time_r.m4: New file.
78616         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
78617         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
78618         is. Check for timegm declaration.
78619         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
78620         Do not check for gmtime_r.
78621         Replace mktime if __mktime_internal does not exist and if mktime
78622         hasn't been replaced already.
78623
78624 2003-09-06  Paul Eggert  <eggert@twinsun.com>
78625
78626         * lib/time_r.c, lib/time_r.h: New files.
78627
78628         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
78629         __localtime_r.
78630         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
78631         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
78632
78633         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
78634         __gmtime_r.
78635         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
78636         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
78637         Include <time_r.h>.
78638
78639         * lib/timegm.c: Switch to glibc implementation, with the following
78640         changes:
78641         [defined HAVE_CONFIG_H]: Include <config.h>.
78642         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
78643         (__mktime_internal) [!defined _LIBC]: New decl.
78644         (__gmtime_r) [!defined _LIBC]: New macro and function.
78645         (timegm): Use a prototype, since gnulib assumes C89.
78646         Do not bother declaring tmp to be const, as it's not really usefu.
78647         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
78648         (timegm): Declare only if HAVE_DECL_TIMEGM.
78649
78650 2003-09-06  Paul Eggert  <eggert@twinsun.com>
78651
78652         * MODULES.html.sh (func_all_modules): Add time_r.
78653         * modules/time_r: New file.
78654         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
78655         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
78656
78657 2003-09-03  Paul Eggert  <eggert@twinsun.com>
78658
78659         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
78660         Bug reported by Lute Kamstra in
78661         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
78662
78663         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
78664         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
78665         course with correspondingly smaller numbers for tomorrow and
78666         yesterday.  From Tadayoshi Funaba.  Originally installed into
78667         sh-utils on 1999-08-07, but the patch got lost (I guess during the
78668         coreutils merge?).
78669
78670 2003-08-31  Simon Josefsson  <jas@extundo.com>
78671
78672         * modules/timegm: New file.
78673         * MODULES.html.sh (func_all_modules): Add timegm.
78674
78675 2003-08-31  Simon Josefsson  <jas@extundo.com>
78676
78677         * m4/timegm.m4: New file.
78678
78679 2003-08-31  Simon Josefsson  <jas@extundo.com>
78680
78681         * lib/timegm.h: New file.
78682         * lib/timegm.c: New file.  Based on
78683         wget-1.8.2/src/http.c:mktime_from_utc.
78684
78685 2003-08-31  Karl Berry  <karl@gnu.org>
78686
78687         * lib/argp.h: update from libc.
78688
78689 2003-08-28  Bruno Haible  <bruno@clisp.org>
78690
78691         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
78692         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
78693         followed by '#define fnmatch fnmatch_posix' gives an error.
78694
78695 2003-08-28  Bruno Haible  <bruno@clisp.org>
78696
78697         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
78698         warning on QNX, which defines O_BINARY to 000000.
78699
78700 2003-08-27  Jim Meyering  <jim@meyering.net>
78701
78702         * m4/mkstemp.m4: Require that the system mkstemp be able to create
78703         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
78704         would fail after 32.  Reported by Danny Levinson.  Details here:
78705         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
78706
78707 2003-08-24  Bruno Haible  <bruno@clisp.org>
78708
78709         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
78710         MSVC7 <stdio.h> is included later.
78711
78712 2003-08-22  Simon Josefsson  <jas@extundo.com>
78713
78714         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
78715
78716 2003-08-20  Karl Berry  <karl@gnu.org>
78717
78718         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
78719
78720 2003-08-20  Bruno Haible  <bruno@clisp.org>
78721
78722         * modules/progname: New file.
78723         * MODULES.html.sh (func_all_modules): Add progname.
78724
78725 2003-08-20  Bruno Haible  <bruno@clisp.org>
78726
78727         * lib/progname.h: New file, from GNU gettext.
78728         * lib/progname.c: New file, from GNU gettext.
78729         * lib/progreloc.c: New file, from GNU gettext.
78730
78731 2003-08-19  Jim Meyering  <jim@meyering.net>
78732
78733         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
78734         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
78735
78736 2003-08-19  Bruno Haible  <bruno@clisp.org>
78737
78738         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
78739         more.
78740
78741 2003-08-19  Bruno Haible  <bruno@clisp.org>
78742
78743         * lib/xstrdup.c: Assume <string.h> exists.
78744
78745 2003-08-18  Paul Eggert  <eggert@twinsun.com>
78746
78747         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
78748         in makefile rules.
78749
78750 2003-08-18  Jim Meyering  <jim@meyering.net>
78751
78752         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
78753         * m4/lib-ld.m4: Likewise.
78754
78755 2003-08-18  Jim Meyering  <jim@meyering.net>
78756
78757         * lib/setenv.h: Indent nested cpp directive.
78758         * lib/vasnprintf.c: Remove trailing blanks.
78759
78760 2003-08-17  Simon Josefsson  <jas@extundo.com>
78761
78762         * modules/xstrndup: New file.
78763         * MODULES.html.sh (func_all_modules): Add xstrndup.
78764
78765 2003-08-17  Simon Josefsson  <jas@extundo.com>
78766
78767         * modules/argp: Fix autoconf macro name. Add more dependencies.
78768
78769 2003-08-17  Simon Josefsson  <jas@extundo.com>
78770
78771         * m4/xstrndup.m4: New file.
78772
78773 2003-08-17  Simon Josefsson  <jas@extundo.com>
78774
78775         * m4/argp.m4: New file.
78776
78777 2003-08-17  Simon Josefsson  <jas@extundo.com>
78778             Bruno Haible  <bruno@clisp.org>
78779
78780         * lib/xstrndup.h: New file.
78781         * lib/xstrndup.c: New file.
78782
78783 2003-08-17  Bruno Haible  <bruno@clisp.org>
78784
78785         * modules/strndup (Files, Include): Add lib/strndup.h.
78786
78787 2003-08-17  Bruno Haible  <bruno@clisp.org>
78788
78789         * modules/euidaccess (Files): Add lib/euidaccess.h.
78790
78791 2003-08-17  Bruno Haible  <bruno@clisp.org>
78792
78793         * lib/strndup.h: New file.
78794
78795 2003-08-17  Bruno Haible  <bruno@clisp.org>
78796
78797         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
78798         like AC_GNU_SOURCE.
78799         * modules/extensions (configure.ac): Comment out the invocation of
78800         gl_USE_SYSTEM_EXTENSIONS.
78801
78802 2003-08-16  Paul Eggert  <eggert@twinsun.com>
78803
78804         Merges from coreutils, etc.
78805         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
78806         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
78807         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
78808         fixing a typo.
78809         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
78810         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
78811
78812 2003-08-16  Paul Eggert  <eggert@twinsun.com>
78813
78814         Document merge from coreutils.
78815         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
78816         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
78817         * modules/utime: Add m4/utimes-null.m4.
78818
78819 2003-08-16  Paul Eggert  <eggert@twinsun.com>
78820
78821         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
78822         space, undoing this 2003-08-12 change:
78823         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
78824
78825 2003-08-16  Paul Eggert  <eggert@twinsun.com>
78826
78827         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
78828         strtoul.c from libc, undoing this 2003-08-12 change:
78829         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
78830
78831 2003-08-16  Jim Meyering  <jim@meyering.net>
78832
78833         Merges from coreutils.
78834         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
78835         prefix.  Adjust cache variables similarly.  Create 500 rather than
78836         just 300 files, to exercise bug on Darwin6.5, too.
78837         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
78838         $missing_dir.
78839         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
78840         AM_SYS_POSIX_TERMIOS.
78841         Reported by mkc@mathdogs.com.
78842         Also change use of $am_cv_sys_posix_termios
78843         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
78844         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
78845         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
78846         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
78847         in /proc/mounts until it finds one with matching device number.  This
78848         is unnecessary when the FILE argument *is* a mount point.  No stat call
78849         is necessary in that case.  So, disable the statvfs-testing code on
78850         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
78851         as RedHat bug# 84846.
78852         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
78853         to 1MB, so as not to render systems with no stack size limit (e.g.,
78854         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
78855         Include <unistd.h>.  On some systems,
78856         it is required for the definition of _SC_PAGESIZE.
78857
78858 2003-08-16  Jim Meyering  <jim@meyering.net>
78859
78860         Merge from coreutils.
78861         * lib/xstrtoimax.c: #else #if -> #elif.
78862         * lib/xstrtoumax.c: Likewise.
78863
78864 2003-08-16  Jim Meyering  <jim@meyering.net>
78865
78866         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
78867         * m4/utimes.m4: Removed.
78868         * m4/utimes-null.m4: Renamed from utimes.m4.
78869
78870         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
78871         to 1MB, so as not to render systems with no stack size limit (e.g.,
78872         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
78873         Include <unistd.h>.  On some systems,
78874         it is required for the definition of _SC_PAGESIZE.
78875
78876 2003-08-16  Jim Meyering  <jim@meyering.net>
78877         and Paul Eggert  <eggert@cs.ucla.edu>
78878
78879         Merges from coreutils, etc.
78880
78881         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
78882         using the latest version from cvs.  This avoids problems with #line
78883         directives using a vendor (Sun) compiler.
78884         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
78885         Don't set GETGROUPS_LIB here; now it's
78886         done via getgroups.m4's wrapper function.
78887         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
78888         rather than just in sh-util/configure.in, so that the
78889         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
78890         same.
78891         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
78892         AC_FUNC_GETLOADAVG where to find getloadavg.c.
78893         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
78894         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
78895         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
78896         Remove code that is now done by the newly-required macros.
78897         Append $(EXEEXT) to DF_PROG.
78898         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
78899         Do not invoke or require the following here,
78900         since prereq.m4 or some gnulib .m4 now does this for us:
78901         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
78902         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
78903         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
78904         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
78905         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
78906         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
78907         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
78908         AC_FUNC_OBSTACK.
78909         Do not replace the following functions, as this is now the job
78910         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
78911         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
78912         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
78913         atexit getpass, strdup, getpagesize.
78914         Replace 'raise'.
78915         Do not check for the following functions, as this is now the job
78916         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
78917         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
78918         setregid.
78919         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
78920         Check for sys/sysctl.h.
78921         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
78922         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
78923         of checking for ssize_t ourselves.
78924
78925         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
78926         Require every macro that gnulib/modules/* suggests for us.
78927         (jm_PREREQ_ADDEXT): New macro.
78928         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
78929         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
78930
78931         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
78932         (gl_PHYSMEM): Use it.
78933         Also check for `table' function.
78934         Check for new headers and functions.
78935         Add check for sys/sysmp.h.
78936         With suggestions from Kaveh Ghazi.
78937         Ignore headers that are present but cannot be compiled.  This
78938         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
78939         C 5.4.
78940
78941 2003-08-15  Paul Eggert  <eggert@twinsun.com>
78942
78943         Document merge from coreutils.
78944         * modules/userspec: Depend on posixver.
78945         * modules/strftime: Depend on tzset.
78946
78947 2003-08-15  Paul Eggert  <eggert@twinsun.com>
78948
78949         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
78950         rather than tab, after '#' in shell-script copyright notices.
78951         Suggested by Bruno Haible.
78952
78953 2003-08-15  Paul Eggert  <eggert@twinsun.com>
78954
78955         * config/srclist-update: Use three spaces, rather than tab, after '#'
78956         in shell-script copyright notices.  Suggested by Bruno Haible.
78957         Remove unnecessary parenthesization in regular expression.
78958
78959 2003-08-15  Jim Meyering  <jim@meyering.net>
78960
78961         Merge from coreutils.
78962         * lib/xgethostname.c: Include <stdlib.h>.
78963         (xghostname): Don't exit for anything other than memory-related
78964         failure; just return NULL.
78965         * lib/userspec.c: Include "posixver.h".
78966         (parse_user_spec): Accept `.' as a separator only
78967         in pre-POSIX-200112 mode.
78968         * lib/strtoimax.c: Use #elif rather than #else #if.
78969         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
78970         Remove function, now that we can rely on a working tzset function.
78971         [!_LIBC]: Ensure that the required autoconf test has been run.
78972         [!defined _NL_CURRENT && HAVE_STRFTIME]:
78973         Use underlying_strftime for %r.
78974         * lib/sha.c: Merge in some clean-up and optimization changes from
78975         glibc.
78976         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
78977         Ensure that it is a multiple of 64.
78978         Rearrange loop exit tests so as to avoid performing an
78979         additional fread after encountering an error or EOF.
78980         * lib/realloc.c: Update copyright date.
78981
78982 2003-08-15  Jim Meyering  <jim@meyering.net>
78983         and Paul Eggert  <eggert@twinsun.com>
78984
78985         Merge from coreutils.
78986         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
78987         member but strut utmpx does not.  Needed for AIX 4.3.3.
78988         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
78989
78990 2003-08-15  Jim Meyering  <jim@meyering.net>
78991         and Paul Eggert  <eggert@cs.ucla.edu>
78992
78993         Merges from coreutils, etc.
78994         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
78995         Require gl_FUNC_TZSET_CLOBBER.
78996         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
78997         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
78998         members.
78999
79000 2003-08-14  Paul Eggert  <eggert@twinsun.com>
79001
79002         Help the merge from coreutils.
79003         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
79004         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
79005         * m4/tzset.m4: Use it too.
79006
79007 2003-08-14  Paul Eggert  <eggert@twinsun.com>
79008
79009         * modules/tzset: New file.
79010
79011 2003-08-14  Jim Meyering  <jim@meyering.net>
79012
79013         Merges from coreutils.
79014         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
79015         variable names, rather than @FNMATCH_H@.
79016         * modules/alloca: Likewise for $(ALLOCA_H).
79017
79018         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
79019         the three copies of the literal target, `fnmatch.h'.
79020         * modules/alloca (alloca.h): Likewise.
79021
79022 2003-08-14  Jim Meyering  <jim@meyering.net>
79023
79024         Merge from coreutils.
79025         * m4/tzset.m4: New file.
79026         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
79027         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
79028         otherwise, AIX 5.1 systems would end up using the latter.
79029         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
79030         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
79031         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
79032         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
79033
79034 2003-08-14  Jim Meyering  <jim@meyering.net>
79035
79036         Merge from coreutils.
79037         * lib/obstack.h: Whitespace changes.
79038         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
79039         and xcalloc return values.
79040         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
79041         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
79042         hang on OSF/1 5.1 for DIR on both local and remote file systems.
79043         Reported by (and fix confirmed by) Nelson H. F. Beebe.
79044         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
79045         error from mntctl.
79046         Use mntctl's return value to drive the entry-processing loop, since
79047         we can't rely on the value of the vmt_length member in the last
79048         entry.  On some systems doing so could result in exhausting
79049         virtual memory.  Based in part on a patch from Mike Jetzer.
79050
79051 2003-08-14  Jim Meyering  <jim@meyering.net>
79052         and Paul Eggert  <eggert@twinsun.com>
79053
79054         Merges from coreutils, plus other fixes.
79055         * lib/physmem.c: Merge in portability changes from gcc/libiberty
79056         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
79057         for credits and details.  Thanks to Kaveh Ghazi for helping
79058         to keep these files in sync.
79059         (ARRAY_SIZE): Define it.
79060         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
79061         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
79062         (memcasecmp): Don't assume size_t fits in unsigned int.
79063         Remove casts and duplicate code.
79064         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
79065         (memcpy): Remove definition.
79066         Merge in some clean-up and optimization changes from glibc.
79067         [BLOCKSIZE]: Move definition to top of file.
79068         Ensure that it is a multiple of 64.
79069         Rearrange loop exit tests so as to avoid performing an
79070         additional fread after encountering an error or EOF.
79071         * lib/md5.h (md5_uintptr): Define.
79072         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
79073         return to the initial working directory.  Preserve errno
79074         for caller.
79075         * lib/idcache.c: Include "xalloc.h".
79076         (xmalloc, xrealloc): Remove decls.
79077         (getuser): Remove casts no longer required in C89.
79078         * lib/human.c: Include stdio.h, for sprintf.
79079         * lib/group-member.c: Include "xalloc.h".
79080         (xmalloc, xrealloc): Remove decls.
79081         (get_group_info): Remove casts no longer required in C89.
79082         * lib/getusershell.c (readname): Remove casts no longer required in
79083         C89.
79084         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
79085         * lib/getline.c: Whitespace fix, from coreutils.
79086
79087 2003-08-13  Paul Eggert  <eggert@twinsun.com>
79088
79089         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
79090         Check for isascii.
79091
79092         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
79093         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
79094         Undo previous (whitespace-only) change.
79095
79096 2003-08-13  Paul Eggert  <eggert@twinsun.com>
79097
79098         * lib/exclude.c: Include <ctype.h>
79099         (IN_CTYPE_DOMAIN): New macro.
79100         (is_space): New fn.
79101         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
79102         and empty lines.
79103
79104         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
79105         Undo previous (whitespace-only) change.
79106
79107 2003-08-13  Paul Eggert  <eggert@twinsun.com>
79108
79109         * config/srclist-update: Change update back to the old behavior,
79110         leaving whitespace alone.  Use one 'sed' command rather than a
79111         pipeline.
79112         (fixlicense): Now a variable, not a function.
79113         (remove_trailing_blanks): Remove.
79114         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
79115         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
79116         Undo previous (whitespace-only) change.
79117
79118 2003-08-12  Paul Eggert  <eggert@twinsun.com>
79119
79120         Merge from coreutils.
79121         * modules/euidaccess: Add lib_SOURCES, include for new
79122         file euidaccess.h
79123
79124 2003-08-12  Paul Eggert  <eggert@twinsun.com>
79125
79126         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
79127         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
79128         Normalize leading white space and remove trailing white space.
79129
79130         Merge from coreutils
79131         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
79132
79133         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
79134         0.12.1.  These files are now being upgraded automatically by
79135         ../config/srclist-update.
79136
79137 2003-08-12  Paul Eggert  <eggert@twinsun.com>
79138
79139         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
79140         Normalize leading white space and remove trailing white space.
79141         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
79142         notice, as per ../config/srclist-update.
79143
79144         Merge from coreutils.
79145         * lib/euidaccess.h: New file.
79146         * lib/euidaccess.c: Include it.
79147         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
79148         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
79149         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
79150
79151 2003-08-12  Paul Eggert  <eggert@twinsun.com>
79152
79153         * config/srclist-update: Add copyright notice.
79154         (remove_id_lines, remove_trailing_blanks): New constants.
79155         (fixfile): Use them to normalize spacing a bit in copied files.
79156         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
79157         Normalize leading white space and remove trailing white space.
79158
79159         * config/texinfo.tex: Sync with texinfo.
79160
79161         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
79162         strtoul.c from libc, to merge coreutils whitespace changes.
79163
79164         * config/srclist.txt: Get the following m4 files from gettext:
79165         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
79166         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
79167         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
79168         wint_t.m4.
79169
79170 2003-08-12  Karl Berry  <karl@gnu.org>
79171
79172         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
79173         been made.
79174
79175 2003-08-11  Paul Eggert  <eggert@twinsun.com>
79176
79177         * modules/gnu-source, m4/gnu-source.m4:
79178         Remove; we're assuming Autoconf 2.54 or later now.
79179         Suggested by Bruno Haible.
79180         * MODULES.html.sh (func_all_modules): Remove gnu-source.
79181
79182 2003-08-11  Bruno Haible  <bruno@clisp.org>
79183
79184         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
79185
79186 2003-08-11  Bruno Haible  <bruno@clisp.org>
79187
79188         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
79189         (vasnprintf): Use it instead of wcslen.
79190
79191 2003-08-11  Bruno Haible  <bruno@clisp.org>
79192
79193         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
79194         value to ensure that _Bool promotes to int. Use #define for _Bool when
79195         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
79196
79197 2003-08-10  Karl Berry  <karl@gnu.org>
79198
79199         * lib/regex.h: update from libc (whitespace fix).
79200
79201 2003-08-09  Paul Eggert  <eggert@twinsun.com>
79202
79203         Merge some files from coreutils.  These changes were
79204         originally made by Jim Meyering.
79205         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
79206         many older Unixes require this.
79207         * lib/alloca.c (alloca): Remove cast to argument of free;
79208         no longer needed in C89.
79209         * lib/alloca_.h, regex.h: Fix white space to match
79210         what GNU indent does.
79211
79212 2003-08-09  Paul Eggert  <eggert@twinsun.com>
79213
79214         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
79215         apparently Emacs's Unicode mode got confused before my 2003-08-05
79216         checkin.
79217
79218 2003-08-08  Paul Eggert  <eggert@twinsun.com>
79219
79220         * m4/extensions.m4: New file.
79221         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
79222         Require gl_USE_SYSTEM_EXTENSIONS.
79223         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
79224         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
79225
79226 2003-08-08  Paul Eggert  <eggert@twinsun.com>
79227
79228         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
79229         * modules/extensions, modules/gnu-source: New files.
79230         * modules/timespec, modules/unlocked-io: Depend on extensions.
79231
79232 2003-08-07  Paul Eggert  <eggert@twinsun.com>
79233
79234         * modules/restrict: New file.
79235         * MODULES.html.sh (func_all_modules): Add restrict.
79236         * modules/regex: Depend on restrict.
79237
79238 2003-08-07  Paul Eggert  <eggert@twinsun.com>
79239
79240         * m4/restrict.m4: New file.
79241         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
79242
79243 2003-08-07  Bruno Haible  <bruno@clisp.org>
79244
79245         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
79246         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
79247
79248 2003-08-07  Bruno Haible  <bruno@clisp.org>
79249
79250         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
79251         makes the module 'getndelim2' compatible with the module 'getline'.
79252
79253 2003-08-05  Paul Eggert  <eggert@twinsun.com>
79254
79255         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
79256         byte with "\201" to avoid glitches when editing that source file
79257         with multi-gnome-terminal.
79258
79259 2003-08-05  Paul Eggert  <eggert@twinsun.com>
79260
79261         * lib/bumpalloc.h: Remove.
79262
79263 2003-08-05  Paul Eggert  <eggert@twinsun.com>
79264
79265         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
79266         * modules/bumpalloc: Remove.
79267
79268 2003-08-04  Paul Eggert  <eggert@twinsun.com>
79269
79270         * lib/getloadavg.c: Change copyright notice and spacing to conform to
79271         GNU coding style.
79272
79273         Merge from coreutils.
79274         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
79275         1. From glibc.
79276         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
79277         from Karl Berry, implemented by Jim Meyering.
79278         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
79279         from Dmitry V. Levin.
79280         Remove anachronistic cast of xrealloc.
79281         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
79282         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
79283         type. Otherwise, it wouldn't compile with at least /bin/cc on
79284         ymp-cray-unicos9.0.2.X.
79285         Combine two mostly-identical uses of alloca into one.
79286         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
79287
79288 2003-08-04  Dave Love  <d.love@dl.ac.uk>
79289
79290         [From Emacs.]
79291
79292         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
79293         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
79294         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
79295         obsolete NLIST_NAME_UNION.
79296         [__GNU__]: Undef BSD and FSCALE.
79297         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
79298
79299 2003-08-03  Paul Eggert  <eggert@twinsun.com>
79300
79301         * lib/stdbool_.h (_Bool): Make it signed char, instead of
79302         an enum type, so that it's guaranteed to promote to int.  See:
79303         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
79304
79305 2003-08-03  Karl Berry  <karl@gnu.org>
79306
79307         * config/depcomp: update from automake.
79308
79309 2003-07-31  Paul Eggert  <eggert@twinsun.com>
79310
79311         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
79312         (strerror): Don't assume that a printable int fits in 14 bytes.
79313
79314 2003-07-31  Bruno Haible  <bruno@clisp.org>
79315
79316         * modules/getpass-gnu: New file.
79317         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
79318
79319 2003-07-31  Bruno Haible  <bruno@clisp.org>
79320
79321         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
79322
79323 2003-07-24  Karl Berry  <karl@gnu.org>
79324
79325         * config/missing: update from automake.
79326
79327 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
79328             Bruno Haible  <bruno@clisp.org>
79329
79330         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
79331         * lib/getline.c (getline, getdelim): Likewise.
79332         Remove _GNU_SOURCE define; now it's defined in config.h through
79333         m4/getline.m4.
79334
79335 2003-07-23  Karl Berry  <karl@gnu.org>
79336
79337         * config/config.sub: update from prep.
79338
79339 2003-07-22  Paul Eggert  <eggert@twinsun.com>
79340
79341         * modules/xalloc (Depends-on): Add exitfail.
79342         * modules/xmemcoll: Likewise.
79343
79344 2003-07-22  Paul Eggert  <eggert@twinsun.com>
79345
79346         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
79347         over-parenthesization in macros.
79348
79349         Sync with coreutils.
79350
79351         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
79352         required by C99.
79353
79354         Use `exit_failure' for xalloc and xmemcoll instead of their own
79355         private exit-failure variables.
79356         * lib/xalloc.h (xalloc_exit_failure): Remove.
79357         * lib/xmalloc.c: Likewise.  Include exitfail.h.
79358         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
79359         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
79360         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
79361         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
79362
79363 2003-07-20  Jim Meyering  <jim@meyering.net>
79364
79365         * modules/closeout (Depends-on): Add exitfail.
79366         Suggestion from Bruno Haible.
79367
79368 2003-07-19  Karl Berry  <karl@gnu.org>
79369
79370         * config/config.sub: update from prep.
79371
79372 2003-07-18  Paul Eggert  <eggert@twinsun.com>
79373
79374         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
79375         Remove.
79376         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
79377         to test that it can stand by itself.  Include "exitfail.h".
79378         Clients should set exit_failure instead.
79379         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
79380
79381 2003-07-18  Bruno Haible  <bruno@clisp.org>
79382
79383         * modules/getndelim2: New file.
79384         * modules/getline: Share files with module getndelim2.
79385         * modules/getnline: Depend on getndelim2 instead of sharing files with
79386         it. Add getnline.c to lib_SOURCES.
79387         * MODULES.html.sh (func_all_modules): Add getndelim2.
79388
79389 2003-07-18  Bruno Haible  <bruno@clisp.org>
79390
79391         * m4/getndelim2.m4: New file.
79392         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
79393         invoke gl_PREREQ_GETNDELIM2.
79394         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
79395         gl_PREREQ_GETNDELIM2.
79396         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
79397         gl_GETNDELIM2.
79398
79399 2003-07-18  Bruno Haible  <bruno@clisp.org>
79400
79401         * lib/getndelim2.h: New file.
79402         * lib/getndelim2.c: Make into a module of its own. Include config.h,
79403         getndelim2.h.
79404         (getndelim2): Make non-static. Change return type to ssize_t.
79405         * lib/getline.h: Change argument names.
79406         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
79407         * lib/getnline.c: Include getndelim2.h.
79408
79409 2003-07-18  Andreas Schwab  <schwab@suse.de>
79410
79411         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
79412
79413 2003-07-17  Karl Berry  <karl@gnu.org>
79414
79415         * config/config.sub: update from prep.
79416
79417 2003-07-17  Bruno Haible  <bruno@clisp.org>
79418
79419         * modules/getnline: New file.
79420         * modules/getline: Add lib/getndelim2.c to source file list.
79421         * MODULES.html.sh (func_all_modules): Add getnline.
79422
79423 2003-07-17  Bruno Haible  <bruno@clisp.org>
79424
79425         * m4/getnline.m4: New file.
79426
79427 2003-07-17  Bruno Haible  <bruno@clisp.org>
79428
79429         * m4/Makefile.am.in: Remove file.
79430         * m4/Makefile.am: Remove file.
79431         * m4/Makefile.in: Remove file.
79432
79433 2003-07-17  Bruno Haible  <bruno@clisp.org>
79434
79435         * lib/getnline.h: New file.
79436         * lib/getnline.c: New file.
79437         * lib/getndelim2.c: New file, extracted from getline.c.
79438         (getndelim2): Renamed from getdelim2, with added nmax argument.
79439         * lib/getline.c: Include getndelim2.c.
79440         (getdelim2): Moved out to getndelim2.c.
79441         (getline, getdelim): Update.
79442
79443 2003-07-17  Bruno Haible  <bruno@clisp.org>
79444
79445         * lib/Makefile.am: Remove file.
79446         * lib/Makefile.in: Remove file.
79447
79448 2003-07-17  Bruno Haible  <bruno@clisp.org>
79449
79450         * configure.in: Remove file.
79451         * Makefile.in: Remove file.
79452
79453 2003-07-17  Bruno Haible  <bruno@clisp.org>
79454
79455         * MODULES.html.sh: Put the </BODY> right before </HTML>.
79456
79457 2003-07-16  Karl Berry  <karl@gnu.org>
79458
79459         * config/srclist-update: was running fixlicense twice, which caused
79460                 texinfo.tex to be nullified for some reason.  Simplify,
79461                 $gplsrc is no longer needed as far as I can see?
79462
79463 2003-07-16  Jim Meyering  <jim@meyering.net>
79464
79465         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
79466
79467 2003-07-15  Paul Eggert  <eggert@twinsun.com>
79468
79469         * config/srclist.txt: Get the following files from gettext-runtime/intl
79470         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
79471         ref-del.sin.  From Bruno Haible.
79472         * config/srclist-update (fixfile): Change grep pattern again, since the
79473         previous fix didn't work (there was another trailing $).  Use
79474         '[$]' to escape the $s.
79475
79476 2003-07-15  Karl Berry  <karl@gnu.org>
79477
79478         * lib/vasnprintf.c: update from gettext.
79479
79480 2003-07-15  Karl Berry  <karl@gnu.org>
79481
79482         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
79483         gets expanded when surrounded by '$'.
79484
79485 2003-07-15  Jim Meyering  <jim@meyering.net>
79486
79487         * modules/save-cwd: Don't depend on error.  From Derek Price.
79488
79489 2003-07-15  Jim Meyering  <jim@meyering.net>
79490
79491         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
79492
79493 2003-07-14  Simon Josefsson  <jas@extundo.com>
79494
79495         * modules/mempcpy: New file.
79496         * MODULES.html.sh (func_all_modules): Add mempcpy.
79497
79498 2003-07-14  Simon Josefsson  <jas@extundo.com>
79499
79500         * m4/mempcpy.m4: New file.
79501
79502 2003-07-14  Simon Josefsson  <jas@extundo.com>
79503
79504         * lib/mempcpy.h: New file.
79505         * lib/mempcpy.c: New file.
79506
79507 2003-07-14  Paul Eggert  <eggert@twinsun.com>
79508
79509         * modules/getdate, modules/posixtm: Depend on mktime.
79510
79511 2003-07-14  Paul Eggert  <eggert@twinsun.com>
79512
79513         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
79514         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
79515         unicodeio.c, unicodeio.h, unlocked-io.h:
79516         Switch from LGPL to GPL.
79517
79518 2003-07-14  Paul Eggert  <eggert@twinsun.com>
79519
79520         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
79521         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
79522         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
79523         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
79524         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
79525         updated automatically by ../config/srclist-update.  This changes
79526         their license from LPGL to GPL.
79527
79528 2003-07-14  Paul Eggert  <eggert@twinsun.com>
79529
79530         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
79531         assumed to refer to the root of the most recent stable gettext version.
79532         * config/srclistvars.sh: Add defaults for eggert.
79533         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
79534         Match "This program" as well as "The program".  This is needed
79535         for gettext.
79536
79537 2003-07-14  Jim Meyering  <jim@meyering.net>
79538
79539         Don't emit diagnostics.  Let callers do that.
79540         * lib/save-cwd.c: Don't include "error.h".
79541         (save_cwd): Don't call error.  Ensure that errno is valid
79542         when returning nonzero.
79543
79544         * lib/save-cwd.h (restore_cwd): Update prototype.
79545         * lib/save-cwd.c (restore_cwd): Remove two parameters.
79546         Simplify.  Don't call error upon failure.  Let callers do that.
79547         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
79548         when auditing is enabled.  But don't bother updating the #if.
79549
79550 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
79551
79552         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
79553         it breaks C++ compilation.
79554         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
79555
79556 2003-07-10  Simon Josefsson  <jas@extundo.com>
79557
79558         * modules/strchrnul (Makefile.am): Add strchrnul.h.
79559
79560 2003-07-10  Jim Meyering  <jim@meyering.net>
79561
79562         * m4/clock_time.m4: Remove trailing blank.
79563         * m4/intmax_t.m4: Likewise.
79564
79565 2003-07-10  Jim Meyering  <jim@meyering.net>
79566
79567         * lib/vasnprintf.c: Remove trailing blanks.
79568         Make cpp indentation consistent.
79569
79570 2003-07-09  Paul Eggert  <eggert@twinsun.com>
79571
79572         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
79573         posixver.c, strftime.c, strnlen.c, strverscmp.c:
79574         Switch from LGPL to GPL.
79575
79576 2003-07-09  Paul Eggert  <eggert@twinsun.com>
79577
79578         * config/srclist.txt: Sort sublists.  Add
79579         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
79580         that differ from gnulib for one reason or another; we'd like this list
79581         to be smaller but for now let's document what we have.
79582
79583 2003-07-08  Paul Eggert  <eggert@twinsun.com>
79584
79585         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
79586         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
79587         and sweeter "eval x=$x".
79588         * config/srclist.txt: Get lib/argp* from glibc.
79589
79590 2003-07-07  Paul Eggert  <eggert@twinsun.com>
79591
79592         * lib/mktime.c: Fix some boundary cases and remove need for floating
79593         point.
79594
79595         Issue a compile-time diagnostic if time_t is floating point, or if
79596         two's complement arithmetic is not in effect, or if arithmetic
79597         right shift does not propagate the sign.  These assumptions were
79598         all in the original code but they weren't checked.
79599
79600         (TIME_T_MIDPOINT, verify): New macros.
79601         (__isleap): Remove; it has integer overflow problems.
79602         (leapyear): New function, without those problems.
79603         (ydhms_tm_diff): Remove; splitting into two parts.
79604         (ydhms_diff): New function, containing the arithmetic part of
79605         the old ydhms_tm_diff function.  Issue a compile-time
79606         diagnostic if we are not using C99 integer division.
79607         Avoid casts when possible.
79608         (guess_time_tm): New function, containing the checking part of
79609         the old ydhms_tm_diff function.  Return the new value, rather than
79610         the difference between it and the old.  Accept a new argument T
79611         so that *T specifies the old value.  Check for overflow in the result.
79612
79613         (__mktime_internal): Use a time_t offset, not a long int offset.
79614         This undoes the 2003-06-04 change, which is no longer needed now
79615         that we have better overflow checking.
79616         (localtime_offset): Likewise.
79617
79618         (__mktime_internal): Avoid harmful overflow on hosts where time_t
79619         and long are 64-bit but int is only 32-bit.
79620         (ydhms_diff): Use long int to store year1 and yday1.
79621         Issue a compile-time diagnostic if long int is not wide enough.
79622
79623         (__mktime_internal): Use long int to store adjusted year and yday.
79624         Use plain C rather than preprocessor commands, if that doesn't
79625         affect efficiency.
79626         Check for overflow (and try to repair) after each probe
79627         rather than checking only at the very end.  This avoids some bugs
79628         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
79629         does not equal GMT offset at maximum time).
79630         Use integer to check for overflow rather than floating point; this
79631         is more portable to non-IEEE hosts, and is a tad faster.
79632         When we detect that we are oscillating between two values,
79633         don't check whether tm_isdst has the requested value, since
79634         we already know the answer.  When tm_isdst has the wrong value,
79635         use a different heuristic to find the right one, based on the
79636         extreme values actually observed in practice in tz2003a,
79637         rather than the (overly optimistic) "previous 3 calendar quarters".
79638
79639         (not_equal_tm, print_tm, check_result): Use "const T" rather than
79640         "T const" to accommodate glibc style.
79641         (check_result): Use less-confusing report format.  "long" -> "long int.
79642         (main): Likewise.
79643         Don't loop if the iteration overflows time_t.
79644         Allow a negative step in the iteration.
79645
79646 2003-07-06  Karl Berry  <karl@gnu.org>
79647
79648         * config/depcomp: update from automake.
79649         * config/config.sub: update from prep.
79650
79651 2003-07-03  Karl Berry  <karl@gnu.org>
79652
79653         * config/config.guess: update from prep.
79654
79655 2003-07-01  Paul Eggert  <eggert@twinsun.com>
79656
79657         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
79658         xreadlink.c now includes it unconditionally.
79659
79660 2003-07-01  Paul Eggert  <eggert@twinsun.com>
79661
79662         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
79663         having it depend on HAVE_SYS_TYPES_H.
79664
79665 2003-07-01  Bruno Haible  <bruno@clisp.org>
79666
79667         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
79668         <sys/types.h> should be sufficient.
79669         Reported by Paul Eggert.
79670
79671 2003-06-26  Karl Berry  <karl@gnu.org>
79672
79673         * config/depcomp: update from automake.
79674
79675 2003-06-26  Bruno Haible  <bruno@clisp.org>
79676
79677         * modules/human: Depend on module stdbool.
79678
79679 2003-06-25  Bruno Haible  <bruno@clisp.org>
79680
79681         * modules/readlink: New file.
79682         * modules/xreadlink: Depend on it.
79683         * MODULES.html.sh (func_all_modules): Add readlink.
79684
79685 2003-06-25  Bruno Haible  <bruno@clisp.org>
79686
79687         * m4/readlink.m4: New file.
79688
79689 2003-06-25  Bruno Haible  <bruno@clisp.org>
79690
79691         * lib/readlink.c: New file.
79692
79693 2003-06-22  Karl Berry  <karl@gnu.org>
79694
79695         * config/srclist.txt: update mkinstalldirs from automake.
79696         * config/mkinstalldirs: update.
79697
79698 2003-06-22  Bruno Haible  <bruno@clisp.org>
79699
79700         Portability to mingw32.
79701         * m4/ssize_t.m4: New file, from GNU gettext.
79702         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
79703         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
79704
79705 2003-06-22  Bruno Haible  <bruno@clisp.org>
79706
79707         * modules/safe-read: Add m4/ssize_t.m4.
79708         * modules/xreadlink: Add m4/ssize_t.m4.
79709
79710 2003-06-20  Bruno Haible  <bruno@clisp.org>
79711
79712         Assume C89, so PARAMS isn't needed.
79713         * lib/unicodeio.h (PARAMS): Remove.
79714         * lib/unicodeio.c: Don't use PARAMS.
79715
79716 2003-06-18  Karl Berry  <karl@gnu.org>
79717
79718         * config/config.{guess,sub}: update from prep.
79719
79720 2003-06-18  Jim Meyering  <jim@meyering.net>
79721
79722         Merge changes from coreutils.
79723         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
79724         Remove explicit declarations of xmalloc and realloc.
79725         Include xalloc.h.
79726         (read_utmp): Remove anachronistic cast of xmalloc.
79727
79728 2003-06-17  Paul Eggert  <eggert@twinsun.com>
79729
79730         Assume C89, so PARAMS isn't needed.
79731         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
79732         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
79733         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
79734         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
79735         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
79736         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
79737         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
79738         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
79739         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
79740         lib/xstrtod.h, lib/xstrtol.h: Likewise.
79741         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
79742         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
79743         no longer needed. Anyway, config.h should always be included before any
79744         other file.
79745
79746 2003-06-11  Simon Josefsson  <jas@extundo.com>
79747
79748         * modules/sysexits: New file.
79749         * MODULES.html.sh (func_all_modules): Add sysexits.
79750
79751 2003-06-11  Simon Josefsson  <jas@extundo.com>
79752
79753         * lib/sysexit_.h: New file.
79754
79755 2003-06-11  Derek Price  <derek@ximbiot.com>
79756
79757         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
79758         necessary.
79759
79760 2003-06-11  Bruno Haible  <bruno@clisp.org>
79761
79762         * m4/sysexits.m4: New file.
79763
79764 2003-06-10  Simon Josefsson  <jas@extundo.com>
79765
79766         * lib/argp.h: New file, from glibc.
79767         * lib/argp-ba.c: New file, from glibc.
79768         * lib/argp-eexst.c: New file, from glibc.
79769         * lib/argp-fmtstream.c: New file, from glibc.
79770         * lib/argp-fmtstream.h: New file, from glibc.
79771         * lib/argp-fs-xinl.c: New file, from glibc.
79772         * lib/argp-help.c: New file, from glibc.
79773         * lib/argp-namefrob.h: New file, from glibc.
79774         * lib/argp-parse.c: New file, from glibc.
79775         * lib/argp-pv.c: New file, from glibc.
79776         * lib/argp-pvh.c: New file, from glibc.
79777         * lib/argp-xinl.c: New file, from glibc.
79778
79779 2003-06-10  Simon Josefsson  <jas@extundo.com>
79780
79781         * modules/strchrnul: New file.
79782
79783 2003-06-10  Simon Josefsson  <jas@extundo.com>
79784
79785         * modules/argp: New file.
79786
79787 2003-06-10  Simon Josefsson  <jas@extundo.com>
79788
79789         * m4/strchrnul.m4: New file.
79790
79791 2003-06-10  Simon Josefsson  <jas@extundo.com>
79792
79793         * lib/strchrnul.h: New file.
79794         * lib/strchrnul.c: New file.
79795
79796 2003-06-10  Bruno Haible  <bruno@clisp.org>
79797
79798         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
79799
79800 2003-06-07  Karl Berry  <karl@gnu.org>
79801
79802         * config/config.{guess,sub}: update from prep.
79803
79804 2003-06-07  Jim Meyering  <jim@meyering.net>
79805
79806         * modules/strtod: Use $(...) notation, not @...@ for
79807         AC_REPLACE'd variables.
79808         * modules/localcharset: Likewise.
79809
79810 2003-06-07  Jim Meyering  <jim@meyering.net>
79811
79812         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
79813         in place of my name in the copyright comment.
79814         Remove definition and uses of __P.
79815
79816         From coreutils.
79817         * lib/stat.c: Don't declare xmalloc explicitly.
79818         Instead, include "xalloc.h".
79819         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
79820         xrealloc, and xcalloc return values.
79821         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
79822         Improve comment.
79823         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
79824
79825 2003-06-07  Bruno Haible  <bruno@clisp.org>
79826
79827         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
79828         avoid AC_CONFIG_LINKS.
79829         * modules/fnmatch (Makefile.am): Use explicit creation rule for
79830         fnmatch.h, to avoid AC_CONFIG_LINKS.
79831         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
79832
79833 2003-06-07  Bruno Haible  <bruno@clisp.org>
79834
79835         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
79836         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
79837         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
79838         directory.
79839         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
79840         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
79841         directory.
79842
79843 2003-06-06  Jim Meyering  <jim@meyering.net>
79844
79845         Merge from coreutils.
79846         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
79847         Consolidate declarations and initializations of *_base* locals.
79848
79849         Merge from coreutils.
79850         This avoids a core dump on systems without GNU putenv,
79851         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
79852         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
79853         (unsetenv): New static function, from GNU libc.
79854         (rpl_putenv): Use it.
79855
79856         * lib/modechange.c: Remove trailing blanks.
79857
79858         Merge from coreutils.
79859         * lib/fsusage.c: Remove declaration of statfs.
79860         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
79861
79862         * lib/posixtm.c: Include <stdbool.h> unconditionally.
79863
79864 2003-06-06  Jim Meyering  <jim@meyering.net>
79865
79866         * lib/stdbool_.h: Renamed from stdbool.h.in.
79867
79868 2003-06-06  Jim Meyering  <jim@meyering.net>
79869             Bruno Haible  <bruno@clisp.org>
79870
79871         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
79872         Adjust Makefile.am snippet not to redirect directly to target.
79873         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
79874
79875 2003-06-05  Paul Eggert  <eggert@twinsun.com>
79876
79877         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
79878         mismatch, look in future quarters as well as past.  This fixes a
79879         bug when processing fall-backwards gaps immediately after a long
79880         period of daylight-saving time.
79881
79882         * lib/mktime.c: Assume freestanding C89 or better.
79883         (HAVE_LIMITS_H): Remove.  Assume it's 1.
79884         (__P): Remove; not used.
79885         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
79886         (mktime, not_equal_tm, print_tm, check_result,
79887         main): Use prototypes.  Use const * where appropriate.
79888         (main): Fix typo in testing code that uncovered by above changes.
79889         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
79890
79891 2003-06-04  Paul Eggert  <eggert@twinsun.com>
79892
79893         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
79894         locale.h, localeconv.  This merges changes from coreutils.
79895
79896         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
79897         It can be removed after the next Autoconf is released.
79898         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
79899         needed.
79900
79901 2003-06-04  Paul Eggert  <eggert@twinsun.com>
79902
79903         * lib/mktime.c: Fix Debian bug 177940
79904         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
79905         (localtime_offset): Now long int, not time_t, because we want it
79906         to be guaranteed to be signed.  All uses changed.
79907         (__mktime_internal): If overflow would occur when adding offset,
79908         don't add it.
79909
79910         Merge 'human' changes from coreutils.  Rewrite to support
79911         locale-specific notations like thousands separators.
79912         * lib/human.c: Simplify authorship notice.
79913         Include human.h immediately after config.h.
79914         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
79915         <limits.h>: Do not include, since human.h does.
79916         (SIZE_MAX, UINTMAX_MAX): New macros.
79917         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
79918         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
79919         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
79920         (power_letter): Renamed from suffixes.
79921         (generate_suffix_backwards): Remove.
79922         (adjust_value): Now takes int style (because of human.h changes)
79923         and long double value (for greater precision on some platforms).
79924         (group_number): New function.
79925         (human_readable): Use it.  Use integer options, not enum.
79926         Put the options before the sizes in the arg list.
79927         Support all the new options.
79928         The old human_readable function has been removed;
79929         use inttostr.h instead.
79930         (human_readable, default_block_size, humblock):
79931         Use uintmax_t, not int, for block sizes.
79932         (human_readable_inexact, block_size_types): Remove.
79933         (block_size_opts): New constant.
79934         (human_options): Renamed from human_block_size, with new signature
79935         that allows block sizes up to UINTMAX_MAX.  All callers changed.
79936         * lib/human.h: Add copyright and authorship notice.
79937         Include <limits.h> and <stdbool.h> unconditionally.
79938         (PARAMS): Remove.  All uses removed.
79939         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
79940         (enum human_inexact_style): Remove tag; now a nameless enum.
79941         (human_floor, human_ceiling, human_round_to_even): Now have
79942         values 2, 0, 1 rather than -1, 1, 0.
79943         (human_group_digits, human_suppress_point_zero, human_autoscale,
79944         human_base_1024, human_SI, human_B): New constants.
79945         (human_readable_inexact, human_block_size): Remove.
79946         (human_readable): Size args are now uintmax_t, not int.
79947         (human_options): New decl.
79948
79949         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
79950         unnecessary now that we assume C89 or better.  This change
79951         imported from coreutils.
79952
79953         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
79954         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
79955         in the 2003-05-30 sync from glibc.
79956
79957         .h files should stand alone, but we shouldn't include <sys/types.h>
79958         if we can get away with just <stddef.h>.
79959
79960         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
79961         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
79962         rather than <sys/types.h>, as we merely need size_t.
79963         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
79964         to get size_t.
79965         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
79966         Include <stdio.h>, to get FILE.
79967         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
79968         memcasecmp.h has included <stddef.h> and all we need is size_t.
79969         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
79970         our interface, instead of including <sys/types.h>
79971
79972 2003-06-04  Paul Eggert  <eggert@twinsun.com>
79973
79974         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
79975         now, as glibc mktime is buggy on non-glibc systems.
79976
79977 2003-06-03  Karl Berry  <karl@gnu.org>
79978
79979         * config/config.sub: update from prep.
79980
79981 2003-06-02  Paul Eggert  <eggert@twinsun.com>
79982
79983         [from coreutils]
79984         Fix some minor time-related bugs with POSIX time arguments.
79985         Some valid time stamps were being rejected (notably -1, and
79986         time stamps before 1900 on 64-bit hosts).  And some invalid
79987         time stamps were being accepted, e.g. September 31.
79988
79989         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
79990         that we can return (time_t) -1 successfully.
79991         * lib/posixtm.c: Likewise.
79992         [HAVE_STDBOOL_H]: Include <stdbool.h>.
79993         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
79994         (t): Remove static var.
79995         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
79996         of static var.  All uses changed.
79997         (year): Do not reject years before 1900; they can occur with
79998         64-bit time_t.
79999         (posix_time_parse): Do not check for out-of-range components;
80000         that is now the caller's responsibility, since our checks were
80001         only approximations.
80002         (posixtime): Use mktime to check for out-of-range components,
80003         since it knows them exactly.
80004         If mktime returns (time_t) -1, check whether an error actually occurred
80005         by invoking localtime on -1.
80006         (main) [TEST_POSIXTIME]: Check for input data errors, and report
80007         posixtime failures better.
80008         Improve the test data (in comments only).
80009
80010 2003-06-02  Karl Berry  <karl@gnu.org>
80011
80012         * config/mkinstalldirs (version): new variable.
80013         (--version): new option.
80014         (usage): improve message.
80015
80016 2003-05-30  Karl Berry  <karl@gnu.org>
80017
80018         * lib/mktime.c: update from libc.
80019
80020 2003-05-30  Bruno Haible  <bruno@clisp.org>
80021
80022         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
80023         * config/config.rpath: Upgrade to gettext-0.12.1.
80024
80025 2003-05-30  Bruno Haible  <bruno@clisp.org>
80026
80027         * m4/gettext.m4: Upgrade to gettext-0.12.1.
80028         * m4/nls.m4: New file, from gettext-0.12.1.
80029         * m4/po.m4: New file, from gettext-0.12.1.
80030         * m4/progtest.m4: Upgrade to gettext-0.12.1.
80031
80032 2003-05-30  Bruno Haible  <bruno@clisp.org>
80033
80034         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
80035         * lib/localcharset.h: Likewise.
80036         * lib/localcharset.c: Likewise.
80037
80038 2003-05-29  Karl Berry  <karl@gnu.org>
80039
80040         * config/config.rpath: update from gettext.
80041
80042 2003-05-28  Paul Eggert  <eggert@twinsun.com>
80043
80044         Assume the headers required for C89 freestanding compilers.
80045         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
80046         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
80047         * m4/human.m4 (gl_HUMAN): Likewise.
80048         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
80049         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
80050         * m4/userspec.m4 (gl_USERSPEC): Likewise.
80051         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
80052         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
80053         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
80054
80055 2003-05-28  Paul Eggert  <eggert@twinsun.com>
80056
80057         Assume the headers required for C89 freestanding compilers.
80058         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
80059         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
80060         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
80061         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
80062         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
80063         define, since <limits.h> is guaranteed to do that.
80064         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
80065         * lib/exclude.c: Include <stdbool.h> unconditionally.
80066         * lib/tempname.c: Include <stddef.h> unconditionally.
80067         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
80068         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
80069         <stddef.h> does that.
80070         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
80071         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
80072         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
80073         needed.
80074         * lib/xstrtol.c: Likewise.
80075         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
80076         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
80077
80078         * lib/addext.c (addext): Use assignment rather than cast, to avoid
80079         warnings on some platforms.
80080
80081         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
80082         arbitrarily.
80083
80084 2003-05-26  Jim Meyering  <jim@meyering.net>
80085
80086         Merge in a change from coreutils:
80087         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
80088         that is guaranteed to be `no'.  Use `no_such_member' to indicate
80089         that condition, rather than `-1' which is slightly misleading.
80090         Change the name of the cache variable to have the gl_ prefix.
80091         Prompted by a patch from Richard Dawe for DJGPP.
80092
80093 2003-05-24  Karl Berry  <karl@gnu.org>
80094
80095         * config/config.guess: update from prep.
80096
80097 2003-05-22  Karl Berry  <karl@gnu.org>
80098
80099         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
80100
80101 2003-05-20  Karl Berry  <karl@gnu.org>
80102
80103         * config/config.guess: update from prep.
80104
80105 2003-05-18  Karl Berry  <karl@gnu.org>
80106
80107         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
80108         might actually be set by the user.
80109
80110         * config/depcomp, install-sh, mdate-sh: update from automake.
80111
80112 2003-05-17  Bruno Haible  <bruno@clisp.org>
80113
80114         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
80115         invalid expansion for AC_EGREP_CPP.
80116         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
80117         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
80118         Suggested by Akim Demaille <akim@epita.fr> in
80119         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
80120
80121 2003-05-12  Jim Meyering  <jim@meyering.net>
80122
80123         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
80124         the space-padded-by-default conversion specifiers, %e, %k, %l.
80125
80126 2003-05-12  Bruno Haible  <bruno@clisp.org>
80127
80128         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
80129         the string is longer than 4 KB.
80130
80131 2003-05-11  Karl Berry  <karl@gnu.org>
80132
80133         * config/config.{guess,sub}: update from prep.
80134
80135 2003-05-09  Bruno Haible  <bruno@clisp.org>
80136
80137         * modules/error: Add m4/strerror_r.m4 to file list.
80138
80139 2003-05-03  Bruno Haible  <bruno@clisp.org>
80140
80141         Upgrade to Unicode-4.0.
80142         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
80143         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
80144         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
80145         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
80146         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
80147         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
80148         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
80149         Change width of U+E0100..U+E01EF from 1 to 0.
80150
80151 2003-04-25  Jim Meyering  <jim@meyering.net>
80152
80153         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
80154         of type size_t, not int.
80155
80156 2003-04-25  Bruno Haible  <bruno@clisp.org>
80157
80158         * lib/copy-file.c: Include <stddef.h>, for size_t.
80159
80160 2003-04-21  Paul Eggert  <eggert@twinsun.com>
80161
80162         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
80163         code which expansion is under static control.  Patch imported from
80164         Akim Demaille's patch to Bison; see
80165         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
80166
80167 2003-04-14  Bruno Haible  <bruno@clisp.org>
80168
80169         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
80170
80171 2003-04-11  Jim Meyering  <jim@meyering.net>
80172
80173         Merge changes from Coreutils.
80174
80175         2003-03-22  Jim Meyering  <jim@meyering.net>
80176
80177         * lib/strftime.c (widen): Cast alloca return value to proper type.
80178
80179         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
80180
80181         From GNU libc.
80182         * lib/strftime.c (my_strftime): Handle very large width
80183         specifications for numeric values correctly.  Improve checks for
80184         overflow.
80185
80186         2003-01-19  Jim Meyering  <jim@meyering.net>
80187
80188         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
80189         definitions.
80190         (nl_get_alt_digit) [! defined my_strftime]: Define.
80191         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
80192         _nl_get_alt_digit and _nl_get_walt_digit.
80193
80194         * lib/strftime.c (my_strftime): Merge in locale-related changes from
80195         libc. These changes have no effect outside of _LIBC.
80196
80197 2003-04-10  Bruno Haible  <bruno@clisp.org>
80198
80199         * modules/findprog: New file.
80200         * MODULES.html.sh (func_all_modules): Add it.
80201
80202 2003-04-10  Bruno Haible  <bruno@clisp.org>
80203
80204         * m4/findprog.m4: New file.
80205         * m4/eaccess.m4: New file.
80206
80207 2003-04-10  Bruno Haible  <bruno@clisp.org>
80208
80209         * lib/findprog.h: New file, from GNU gettext.
80210         * lib/findprog.c: New file, from GNU gettext.
80211
80212 2003-04-05  Jim Meyering  <jim@meyering.net>
80213
80214         Merge changes from Coreutils.
80215
80216         * lib/exclude.h (PARAMS): Remove definition and uses.
80217         * lib/exclude.c: Remove uses of `PARAMS'.
80218
80219         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
80220         Add test-cases for DOS filenames. Declare program_name.
80221         (main): Set up program_name.  Patch by Rich Dawe.
80222
80223         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
80224         error from mntctl.
80225         Use mntctl's return value to drive the entry-processing loop, since
80226         we can't rely on the value of the vmt_length member in the last
80227         entry.  On some systems doing so could result in exhausting
80228         virtual memory.  Based in part on a patch from Mike Jetzer.
80229
80230 2003-04-04  Bruno Haible  <bruno@clisp.org>
80231
80232         * modules/linebreak: New file.
80233         * MODULES.html.sh (func_all_modules): Add it.
80234
80235 2003-04-04  Bruno Haible  <bruno@clisp.org>
80236
80237         * m4/linebreak.m4: New file.
80238
80239 2003-04-04  Bruno Haible  <bruno@clisp.org>
80240
80241         * lib/linebreak.h: New file, from GNU gettext.
80242         * lib/linebreak.c: New file, from GNU gettext with slight
80243         modifications.
80244         * lib/lbrkprop.h: New file, from GNU gettext.
80245
80246 2003-04-03  Bruno Haible  <bruno@clisp.org>
80247
80248         * modules/utf8-ucs4: New file.
80249         * modules/utf16-ucs4: New file.
80250         * modules/ucs4-utf8: New file.
80251         * modules/ucs4-utf16: New file.
80252         * MODULES.html.sh (func_all_modules): Add them.
80253
80254 2003-04-03  Bruno Haible  <bruno@clisp.org>
80255
80256         * m4/utf-ucs4.m4: New file.
80257         * m4/ucs4-utf.m4: New file.
80258
80259 2003-04-03  Bruno Haible  <bruno@clisp.org>
80260
80261         * lib/utf8-ucs4.h: New file, from GNU gettext.
80262         * lib/utf16-ucs4.h: New file, from GNU gettext.
80263         * lib/ucs4-utf8.h: New file, from GNU gettext.
80264         * lib/ucs4-utf16.h: New file, from GNU gettext.
80265
80266 2003-04-02  Bruno Haible  <bruno@clisp.org>
80267
80268         * modules/binary-io: New file.
80269         * MODULES.html.sh (func_all_modules): Add it.
80270
80271 2003-04-02  Bruno Haible  <bruno@clisp.org>
80272
80273         * lib/binary-io.h: New file, from GNU gettext.
80274
80275 2003-04-01  Bruno Haible  <bruno@clisp.org>
80276
80277         * modules/pathname: New file.
80278         * MODULES.html.sh (func_all_modules): Add it.
80279
80280 2003-04-01  Bruno Haible  <bruno@clisp.org>
80281
80282         * lib/pathname.h: New file, from GNU gettext.
80283         * lib/concatpath.c: New file, from GNU gettext.
80284
80285 2003-03-30  Bruno Haible  <bruno@clisp.org>
80286
80287         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
80288
80289 2003-03-30  Bruno Haible  <bruno@clisp.org>
80290
80291         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
80292         function chown() doesn't exist.
80293
80294 2003-03-28  Bruno Haible  <bruno@clisp.org>
80295
80296         * modules/copy-file: New file.
80297         * MODULES.html.sh (func_all_modules): Add it.
80298
80299 2003-03-28  Bruno Haible  <bruno@clisp.org>
80300
80301         * m4/copy-file.m4: New file.
80302
80303 2003-03-28  Bruno Haible  <bruno@clisp.org>
80304
80305         * lib/copy-file.h: New file, from GNU gettext.
80306         * lib/copy-file.c: New file, from GNU gettext.
80307
80308 2003-03-18  Jim Meyering  <jim@meyering.net>
80309
80310         * lib/quote.c (quote_n): Fix typo in comment.
80311
80312 2003-03-18  Bruno Haible  <bruno@clisp.org>
80313
80314         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
80315         checking.
80316         * m4/onceonly_2_57.m4: Likewise.
80317
80318 2003-03-17  Bruno Haible  <bruno@clisp.org>
80319
80320         * m4/onceonly.m4: Require autoconf 2.54 or newer.
80321         (m4_quote): Remove macro.
80322         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
80323
80324 2003-03-14  Jim Meyering  <jim@meyering.net>
80325
80326         Merge changes from Coreutils.
80327         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
80328         to be const, in order to avoid warnings.
80329         (obstack_room): Likewise.
80330         (obstack_empty_p): Likewise.
80331
80332 2003-03-14  Bruno Haible  <bruno@clisp.org>
80333
80334         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
80335         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
80336
80337 2003-03-13  Paul Eggert  <eggert@twinsun.com>
80338
80339         Merge changes from Bison.
80340         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
80341         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
80342         when compiling Bison 1.875's `bitset bset = obstack_alloc
80343         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
80344         * lib/hash.c: Include <stdbool.h> unconditionally.
80345
80346 2003-03-13  Paul Eggert  <eggert@twinsun.com>
80347
80348         * m4/onceonly.m4 (m4_quote): New macro.
80349         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
80350         Quote AC_FOREACH variable-expansions properly.
80351
80352 2003-03-13  Paul Eggert  <eggert@twinsun.com>
80353
80354         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
80355
80356 2003-03-09  Paul Eggert  <eggert@twinsun.com>
80357
80358         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
80359         Reported by Bruce Becker; see:
80360         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
80361
80362 2003-03-03  Paul Eggert  <eggert@twinsun.com>
80363             Bruno Haible  <bruno@clisp.org>
80364
80365         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
80366         Reported by John Hughes, see
80367         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
80368
80369 2003-02-20  Bruno Haible  <bruno@clisp.org>
80370
80371         * MODULES.html.sh (func_all_modules): Add poll.
80372
80373 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
80374
80375         * modules/poll: New file.
80376
80377 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
80378
80379         * lib/poll_.h: New file.
80380         * lib/poll.c: New file.
80381
80382 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
80383
80384         * m4/poll.m4: New file.
80385
80386 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
80387
80388         * modules/mathl: New file.
80389
80390 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
80391
80392         * lib/mathl.h: New file.
80393         * lib/acosl.c: New file.
80394         * lib/asinl.c: New file.
80395         * lib/atanl.c: New file.
80396         * lib/ceill.c: New file.
80397         * lib/cosl.c: New file.
80398         * lib/expl.c: New file.
80399         * lib/floorl.c: New file.
80400         * lib/frexpl.c: New file.
80401         * lib/ldexpl.c: New file.
80402         * lib/logl.c: New file.
80403         * lib/sincosl.c: New file.
80404         * lib/sinl.c: New file.
80405         * lib/sqrtl.c: New file.
80406         * lib/tanl.c: New file.
80407         * lib/trigl.c: New file.
80408         * lib/trigl.h: New file.
80409
80410 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
80411
80412         * m4/mathl.m4: New file.
80413
80414 2003-02-18  Bruno Haible  <bruno@clisp.org>
80415
80416         * MODULES.html.sh (func_all_modules): Add mathl.
80417
80418 2003-02-17  Bruno Haible  <bruno@clisp.org>
80419
80420         * modules/mkdtemp: New module.
80421         * MODULES.html.sh (func_all_modules): Add it.
80422
80423 2003-02-17  Bruno Haible  <bruno@clisp.org>
80424
80425         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
80426
80427 2003-02-17  Bruno Haible  <bruno@clisp.org>
80428
80429         * lib/mkdtemp.h: New file, from GNU gettext.
80430         * lib/mkdtemp.c: New file, from GNU gettext.
80431
80432 2003-02-02  Jim Meyering  <jim@meyering.net>
80433
80434         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
80435         e.g. glibc-2.2.93.
80436
80437 2003-01-31  Bruno Haible  <bruno@clisp.org>
80438
80439         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
80440         'rpl_rename'.
80441         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
80442         'rpl_strnlen'.
80443         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
80444         'rpl_strtod'.
80445         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
80446         'rpl_utime'.
80447
80448 2003-01-31  Bruno Haible  <bruno@clisp.org>
80449
80450         * lib/rename.c: #undef rename before defining rpl_rename.
80451         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
80452
80453 2003-01-30  Bruno Haible  <bruno@clisp.org>
80454
80455         * modules/vasnprintf, modules/vasprintf: New modules.
80456         * MODULES.html.sh (func_all_modules): Add them.
80457
80458 2003-01-30  Bruno Haible  <bruno@clisp.org>
80459
80460         * m4/signed.m4: New file, from GNU gettext.
80461         * m4/longdouble.m4: New file, from GNU gettext.
80462         * m4/wchar_t.m4: New file, from GNU gettext.
80463         * m4/wint_t.m4: New file, from GNU gettext.
80464         * m4/vasnprintf.m4: New file.
80465         * m4/vasprintf.m4: New file.
80466
80467 2003-01-30  Bruno Haible  <bruno@clisp.org>
80468
80469         * lib/printf-args.h: New file, from GNU gettext.
80470         * lib/printf-args.c: New file, from GNU gettext.
80471         * lib/printf-parse.h: New file, from GNU gettext.
80472         * lib/printf-parse.c: New file, from GNU gettext.
80473         * lib/vasnprintf.h: New file, from GNU gettext.
80474         * lib/vasnprintf.c: New file, from GNU gettext.
80475         * lib/asnprintf.c: New file, from GNU gettext.
80476         * lib/vasprintf.h: New file, from GNU gettext with modifications.
80477         * lib/vasprintf.c: New file, from GNU gettext.
80478         * lib/asprintf.c: New file, from GNU gettext.
80479
80480 2003-01-29  Bruno Haible  <bruno@clisp.org>
80481
80482         * modules/stpncpy: New module.
80483         * MODULES.html.sh (func_all_modules): Add it.
80484
80485 2003-01-29  Bruno Haible  <bruno@clisp.org>
80486
80487         * m4/stpncpy.m4: New file.
80488
80489 2003-01-29  Bruno Haible  <bruno@clisp.org>
80490
80491         * lib/stpncpy.h: New file, from GNU gettext with modifications.
80492         * lib/stpncpy.c: New file, from GNU gettext with modifications.
80493
80494 2003-01-28  Bruno Haible  <bruno@clisp.org>
80495
80496         * modules/c-ctype: New module.
80497         * MODULES.html.sh (func_all_modules): Add it.
80498
80499 2003-01-28  Bruno Haible  <bruno@clisp.org>
80500
80501         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
80502         Paul Eggert.
80503         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
80504         Paul Eggert.
80505
80506 2003-01-27  Bruno Haible  <bruno@clisp.org>
80507
80508         * modules/xsetenv: New module.
80509         * MODULES.html.sh (func_all_modules): Add it.
80510
80511 2003-01-27  Bruno Haible  <bruno@clisp.org>
80512
80513         * lib/xsetenv.h: New file, from GNU gettext.
80514         * lib/xsetenv.c: New file, from GNU gettext.
80515
80516 2003-01-23  Jim Meyering  <jim@meyering.net>
80517
80518         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
80519         from working on systems without dirfd (at least Irix and OSF1/Tru64).
80520
80521 2003-01-23  Bruno Haible  <bruno@clisp.org>
80522
80523         * modules/minmax: New module.
80524         * MODULES.html.sh (func_all_modules): Add it.
80525
80526 2003-01-23  Bruno Haible  <bruno@clisp.org>
80527
80528         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
80529         Eggert.
80530
80531 2003-01-22  Bruno Haible  <bruno@clisp.org>
80532
80533         * modules/exit: New module.
80534         * MODULES.html.sh (func_all_modules): Add it.
80535
80536 2003-01-22  Bruno Haible  <bruno@clisp.org>
80537
80538         * lib/exit.h: New file, from GNU gettext.
80539
80540 2003-01-19  Bruno Haible  <bruno@clisp.org>
80541
80542         * gnulib-tool: Recognize option --extract-maintainer.
80543         (func_get_maintainer): New function.
80544         * modules/*: Add Maintainer entry.
80545
80546 2003-01-16  Jim Meyering  <jim@meyering.net>
80547
80548         * m4/regex.m4: The `regex' struct is both input and output.
80549         Initialize it before each use.  Patch by Tim Waugh.
80550
80551 2003-01-16  Bruno Haible  <bruno@clisp.org>
80552
80553         * MODULES.html.sh: Add a table of contents. Add the module name as
80554         leftmost column. Add hyperlinks.
80555
80556 2003-01-15  Bruno Haible  <bruno@clisp.org>
80557
80558         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
80559
80560 2003-01-15  Bruno Haible  <bruno@clisp.org>
80561
80562         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
80563         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
80564         suffix.
80565
80566 2003-01-15  Bruno Haible  <bruno@clisp.org>
80567
80568         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
80569
80570 2003-01-15  Bruno Haible  <bruno@clisp.org>
80571
80572         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
80573         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
80574
80575 2003-01-14  Jim Meyering  <jim@meyering.net>
80576
80577         * lib/same.c (same_name): Tweak a comment.
80578
80579 2003-01-14  Bruno Haible  <bruno@clisp.org>
80580
80581         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
80582         when a string comparison is sufficient.
80583
80584 2003-01-14  Bruno Haible  <bruno@clisp.org>
80585
80586         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
80587         'unsigned int'.
80588
80589 2003-01-14  Bruno Haible  <bruno@clisp.org>
80590
80591         * lib/hash-pjw.c: Add comment about low quality of this function.
80592
80593 2003-01-13  Bruno Haible  <bruno@clisp.org>
80594
80595         * modules/stpcpy: Distribute lib/stpcpy.h.
80596         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
80597
80598 2003-01-13  Bruno Haible  <bruno@clisp.org>
80599
80600         * modules/*: Add a description.
80601         * modules/strpbrk: Fix Makefile.am snippet.
80602         * modules/strtoimax: Fix dependencies.
80603         * modules/strtoumax: Likewise.
80604
80605 2003-01-13  Bruno Haible  <bruno@clisp.org>
80606
80607         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
80608         * modules/alloca (Makefile.am): All object files depend on alloca.h.
80609         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
80610
80611 2003-01-13  Bruno Haible  <bruno@clisp.org>
80612
80613         * gnulib-tool (func_create_testdir): Store config/* files in the main
80614         directory.
80615         * config.rpath: Move to ...
80616         * config/config.rpath: ... here.
80617         * modules/gettext: Contains config/config.rpath, not config.rpath.
80618         * modules/iconv: Likewise.
80619
80620 2003-01-12  Paul Eggert  <eggert@twinsun.com>
80621
80622         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
80623         to avoid collisions with libcurses and libreadline.
80624
80625         * m4/getstr.m4: Remove.
80626         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
80627
80628 2003-01-12  Paul Eggert  <eggert@twinsun.com>
80629
80630         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
80631         to avoid collisions with libcurses and libreadline.
80632
80633         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
80634         * lib/getstr.h, getstr.c: Remove.
80635         * lib/getline.c: Include "getline.h", to check interface.
80636         Move body of old getstr.c here: this defines MIN_CHUNK and
80637         declares getdelim2, which is renamed from getstr.
80638         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
80639
80640         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
80641         All uses changed.
80642         * lib/linebuffer.h: Likewise.
80643         (readline): Remove backward-compatibility macro.
80644
80645 2003-01-12  Paul Eggert  <eggert@twinsun.com>
80646
80647         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
80648         to avoid collisions with libcurses and libreadline.
80649         * getstr: Remove.
80650         * MODULES.html.sh: Remove getstr.
80651         * modules/getline: Depend on unlocked-io, not getstr.
80652
80653 2003-01-12  Jim Meyering  <jim@meyering.net>
80654
80655         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
80656
80657 2003-01-10  Bruno Haible  <bruno@clisp.org>
80658
80659         * modules/alloca: Change Makefile.am requirements. Simplify Include
80660         requirements. Add lib/alloca_.h to file list.
80661
80662 2003-01-10  Bruno Haible  <bruno@clisp.org>
80663
80664         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
80665
80666 2003-01-10  Bruno Haible  <bruno@clisp.org>
80667
80668         * lib/alloca_.h: New file.
80669         * lib/getdate.y: Unconditionally include alloca.h.
80670         * lib/makepath.c: Likewise.
80671         * lib/setenv.c: Likewise.
80672         * lib/userspec.c: Likewise.
80673
80674 2003-01-09  Karl Berry  <karl@gnu.org>
80675
80676         * MODULES.html.sh: include `dirname $0` in PATH, to find
80677         gnulib-tool.
80678
80679 2003-01-09  Bruno Haible  <bruno@clisp.org>
80680
80681         * modules/stdbool: Change configure.ac, Makefile.am requirements.
80682         Simplify Include requirements. Add lib/stdbool.h.in to file list.
80683
80684 2003-01-09  Bruno Haible  <bruno@clisp.org>
80685
80686         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
80687
80688 2003-01-09  Bruno Haible  <bruno@clisp.org>
80689
80690         * lib/stdbool.h.in: New file.
80691
80692 2003-01-09  Bruno Haible  <bruno@clisp.org>
80693
80694         * gnulib-tool (func_all_modules): Ignore files ending in ~.
80695         * MODULES.html.sh: Likewise.
80696
80697 2003-01-08  Jim Meyering  <jim@meyering.net>
80698
80699         * lib/full-write.c: Undefine and define-away `const' after inclusion
80700         of errno.h, not before.  Suggestion from Bruno Haible.
80701
80702 2003-01-08  Bruno Haible  <bruno@clisp.org>
80703
80704         * modules/full-read: Depend on full-write.
80705
80706 2003-01-08  Bruno Haible  <bruno@clisp.org>
80707
80708         * lib/safe-read.c: Include specification header first, to ensure its
80709         selfcontainedness.
80710         * lib/full-write.c: Likewise.
80711
80712 2003-01-07  Jim Meyering  <jim@meyering.net>
80713
80714         * lib/full-write.c: Rework so that it may serve to define full_read,
80715         too.
80716         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
80717
80718 2003-01-07  Bruno Haible  <bruno@clisp.org>
80719
80720         * lib/strtoimax.c: Include <stdint.h> as an alternative to
80721         <inttypes.h>.
80722         * lib/xstrtol.h: Likewise.
80723         * lib/xstrtoimax.c: Likewise.
80724         * lib/xstrtoumax.c: Likewise.
80725         * lib/human.h: Likewise.
80726
80727         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
80728         on systems that have <inttypes.h> but not <stdint.h>.
80729
80730 2003-01-07  Bruno Haible  <bruno@clisp.org>
80731
80732         * MODULES.html.sh: Add copyright notice.
80733         (missed_files): Omit CVS directory entries.
80734         (func_module): Make it work with sed-3.02.
80735         * MODULES.txt: Remove file.
80736
80737 2003-01-06  Jim Meyering  <jim@meyering.net>
80738
80739         * lib/version-etc.c: Update year in translatable copyright string.
80740
80741 2003-01-03  Karl Berry  <karl@gnu.org>
80742
80743         * config/config.{guess,sub}: update from prep.
80744
80745 2003-01-02  Karl Berry  <karl@gnu.org>
80746
80747         * doc/COPYING.DOC: belatedly updated to 1.2.
80748
80749 2003-01-01  Karl Berry  <karl@gnu.org>
80750
80751         * gnulib-tool (func_verify_module): report module name $module in
80752         error message, not $1.
80753         * gnulib-tool (create-testdir): don't complain if destdir couldn't
80754         be created, only if it doesn't exist.
80755         * gnulib-tool (last_checkin_date): don't expand the $Date here.
80756
80757 2002-12-31  Paul Eggert  <eggert@twinsun.com>
80758
80759         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
80760
80761 2002-12-31  Paul Eggert  <eggert@twinsun.com>
80762
80763         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
80764         memcmp if strcoll doesn't work.
80765
80766 2002-12-31  Bruno Haible  <bruno@clisp.org>
80767
80768         * lib/utime.c (utime_null): No need to call ftruncate if the file was
80769         nonempty.
80770
80771 2002-12-31  Bruno Haible  <bruno@clisp.org>
80772
80773         * lib/memcoll.c (STRCOLL): New macro.
80774         (memcoll): Use it.
80775
80776 2002-12-31  Bruno Haible  <bruno@clisp.org>
80777
80778         * lib/localcharset.h: New file.
80779         * lib/localcharset.c: Include it.
80780         * lib/unicodeio.c: Likewise.
80781
80782 2002-12-31  Bruno Haible  <bruno@clisp.org>
80783
80784         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
80785         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
80786
80787 2002-12-31  Bruno Haible  <bruno@clisp.org>
80788
80789         * lib/getline.h: Include <stddef.h>, for size_t.
80790
80791         * lib/unicodeio.h: Include <stddef.h>, for size_t.
80792         * lib/unicodeio.c: Don't include <stddef.h>.
80793
80794 2002-12-31  Bruno Haible  <bruno@clisp.org>
80795
80796         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
80797         HAVE_TM_ZONE.
80798
80799 2002-12-24  Karl Berry  <karl@gnu.org>
80800
80801         * config/config.guess: update from prep.
80802
80803 2002-12-24  Bruno Haible  <bruno@clisp.org>
80804
80805         General infrasructure.
80806         * m4/README: Rewritten.
80807         * m4/onceonly.m4: New file.
80808         * m4/onceonly_2_57.m4: New file.
80809
80810         Module atexit.
80811         * m4/atexit.m4: New file.
80812
80813         Module strtod.
80814         * m4/strtod.m4: New file.
80815
80816         Module strtol.
80817         * m4/strtol.m4: New file.
80818
80819         Module strtoul.
80820         * m4/strtoul.m4: New file.
80821
80822         Module memchr.
80823         * m4/memchr.m4: New file.
80824
80825         Module memcmp.
80826         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
80827         (jm_FUNC_MEMCMP): Invoke it.
80828
80829         Module memcpy.
80830         * m4/memcpy.m4: New file.
80831
80832         Module memmove.
80833         * m4/memmove.m4: New file.
80834
80835         Module memset.
80836         * m4/memset.m4: New file.
80837
80838         Module strcspn.
80839         * m4/strcspn.m4: New file.
80840
80841         Module strpbrk.
80842         * m4/strpbrk.m4: New file.
80843
80844         Module strstr.
80845         * m4/strstr.m4: New file.
80846
80847         Module strerror.
80848         * m4/strerror.m4: New file.
80849
80850         Module mktime.
80851         * m4/mktime.m4: Renamed from jm-mktime.m4.
80852         (gl_PREREQ_MKTIME): New macro.
80853         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
80854
80855         Module malloc.
80856         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
80857         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
80858         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
80859
80860         Module realloc.
80861         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
80862         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
80863         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
80864
80865         Module strftime.
80866         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
80867         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
80868         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
80869         gl_TM_GMTOFF.
80870         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
80871
80872         Module xalloc.
80873         * m4/xalloc.m4: New file.
80874
80875         Module alloca.
80876         * m4/alloca.m4: New file.
80877
80878         Module putenv.
80879         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
80880         (jm_FUNC_PUTENV): Invoke it.
80881
80882         Module setenv.
80883         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
80884         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
80885         when invoked twice.
80886         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
80887         gt_FUNC_SETENV.
80888
80889         Module memrchr.
80890         * m4/memrchr.m4: New file.
80891
80892         Module stpcpy.
80893         * m4/stpcpy.m4: New file.
80894
80895         Module strcase.
80896         * m4/strcase.m4: New file.
80897
80898         Module strdup.
80899         * m4/strdup.m4: New file.
80900
80901         Module strnlen.
80902         * m4/strnlen.m4: New file.
80903
80904         Module strndup.
80905         * m4/strndup.m4: New file.
80906
80907         Module xstrtod.
80908         * m4/xstrtod.m4: New file.
80909
80910         Module xstrtol.
80911         * m4/xstrtol.m4: New file.
80912
80913         Module getdate.
80914         * m4/getdate.m4: New file.
80915
80916         Module unlocked-io.
80917         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
80918         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
80919         * m4/jm-glibc-io.m4n: Remove file.
80920
80921         Module long-options.
80922         * m4/long-options.m4: New file.
80923
80924         Module md5.
80925         * m4/md5.m4: New file.
80926
80927         Module sha.
80928         * m4/sha.m4: New file.
80929
80930         Module getstr.
80931         * m4/getstr.m4: New file.
80932
80933         Module getline.
80934         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
80935         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
80936         <sys/types.h>, for size_t. Use the function name gnu_getline, not
80937         simply getline. Infoke gl_PREREQ_GETLINE.
80938
80939         Module obstack.
80940         * m4/obstack.m4: New file.
80941
80942         Module hash.
80943         * m4/hash.m4: New file.
80944
80945         Module readtokens.
80946         * m4/readtokens.m4: New file.
80947
80948         Module strverscmp.
80949         * m4/strverscmp.m4: New file.
80950
80951         Module stdbool.
80952         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
80953         OSF/1.
80954
80955         Module strtoll.
80956         * m4/strtoll.m4: New file.
80957
80958         Module strtoull.
80959         * m4/strtoull.m4: New file.
80960
80961         Module strtoimax.
80962         * m4/strtoimax.m4: New file.
80963
80964         Module strtoumax.
80965         * m4/strtoumax.m4: New file.
80966
80967         Module xstrtoimax.
80968         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
80969         jm_AC_PREREQ_XSTRTOIMAX.
80970         Moved the strtol prerequisites to strtol.m4.
80971         Moved the strtoll prerequisites to strtoll.m4.
80972         Moved the strtoimax prerequisites to strtoimax.m4.
80973
80974         Module xstrtoumax.
80975         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
80976         jm_AC_PREREQ_XSTRTOUMAX.
80977         Moved the strtoul prerequisites to strtoul.m4.
80978         Moved the strtoull prerequisites to strtoull.m4.
80979         Moved the strtoumax prerequisites to strtoumax.m4.
80980
80981         Module chown.
80982         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
80983         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
80984
80985         Module dup2.
80986         * m4/dup2.m4: New file.
80987
80988         Module ftruncate.
80989         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
80990         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
80991
80992         Module getgroups.
80993         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
80994         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
80995
80996         Module gettimeofday.
80997         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
80998         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
80999         gl_PREREQ_GETTIMEOFDAY.
81000
81001         Module mkdir.
81002         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
81003         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
81004
81005         Module mkstemp.
81006         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
81007         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
81008         jm_AC_TYPE_UINTMAX_T.
81009         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
81010
81011         Module stat.
81012         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
81013         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
81014
81015         Module lstat.
81016         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
81017         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
81018
81019         Module timespec.
81020         * m4/timespec.m4 (gl_TIMESPEC): New macro.
81021         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
81022         * m4/st_mtim.m4: Indentation.
81023
81024         Module nanosleep.
81025         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
81026         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
81027         gl_PREREQ_NANOSLEEP.
81028
81029         Module regex.
81030         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
81031         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
81032         (gl_REGEX): New macro.
81033
81034         Module rename.
81035         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
81036         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
81037
81038         Module rmdir.
81039         * m4/rmdir.m4: New file.
81040
81041         Module utime.
81042         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
81043         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
81044         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
81045
81046         Module dirname.
81047         * m4/dirname.m4: New file.
81048
81049         Module getopt.
81050         * m4/getopt.m4: New file.
81051
81052         Module unistd-safer.
81053         * m4/unistd-safer.m4: New file.
81054
81055         Module fnmatch.
81056         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
81057         declaration.
81058         (gl_PREREQ_FNMATCH_EXTRA): New macro.
81059         (gl_FUNC_FNMATCH_POSIX): New macro.
81060         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
81061         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
81062         simply fnmatch.
81063
81064         Module exclude.
81065         * m4/exclude.m4: New file.
81066
81067         Module human.
81068         * m4/human.m4: New file.
81069
81070         Module acl.
81071         * m4/acl.m4: Nop.
81072
81073         Module backupfile.
81074         * m4/backupfile.m4: New file.
81075         * m4/d-ino.m4: Indentation.
81076
81077         Module fsusage.
81078         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
81079         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
81080         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
81081
81082         Module dirfd.
81083         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
81084         requirements.
81085
81086         Module euidaccess.
81087         * m4/euidaccess.m4: New file.
81088
81089         Module file-type.
81090         * m4/file-type.m4: New file.
81091
81092         Module fileblocks.
81093         * m4/fileblocks.m4: New file.
81094
81095         Module filemode.
81096         * m4/filemode.m4: New file.
81097
81098         Module isdir.
81099         * m4/isdir.m4: New file.
81100
81101         Module lchown.
81102         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
81103         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
81104
81105         Module makepath.
81106         * m4/makepath.m4: New file.
81107
81108         Module modechange.
81109         * m4/modechange.m4: New file.
81110
81111         Module mountlist.
81112         * m4/mountlist.m4: New file.
81113         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
81114         Indentation.
81115
81116         Module path-concat.
81117         * m4/path-concat.m4: New file.
81118
81119         Module pathmax.
81120         * m4/pathmax.m4: New file.
81121
81122         Module same.
81123         * m4/same.m4: New file.
81124
81125         Module save-cwd.
81126         * m4/save-cwd.m4: New file.
81127
81128         Module savedir.
81129         * m4/savedir.m4: New file.
81130
81131         Module xgetcwd.
81132         * m4/xgetcwd.m4: New file.
81133         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
81134
81135         Module xreadlink.
81136         * m4/xreadlink.m4: New file.
81137
81138         Module safe-read.
81139         * m4/safe-read.m4: New file.
81140
81141         Module safe-write.
81142         * m4/safe-write.m4: New file.
81143
81144         Module closeout.
81145         * m4/closeout.m4: New file.
81146
81147         Module stdio-safer.
81148         * m4/stdio-safer.m4: New file.
81149
81150         Module getpass.
81151         * m4/getpass.m4: New file.
81152
81153         Module getugroups.
81154         * m4/getugroups.m4: New file.
81155
81156         Module group-member.
81157         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
81158         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
81159
81160         Module idcache.
81161         * m4/idcache.m4: New file.
81162
81163         Module userspec.
81164         * m4/userspec.m4: New file.
81165
81166         Module gettime.
81167         * m4/clock_time.m4: New file.
81168         * m4/gettime.m4: New file.
81169
81170         Module settime.
81171         * m4/settime.m4: New file.
81172
81173         Module posixtm.
81174         * m4/posixtm.m4: New file.
81175
81176         Module gethostname.
81177         * m4/gethostname.m4: New file.
81178
81179         Module canon-host.
81180         * m4/canon-host.m4: New file.
81181
81182         Module gettext.
81183         * m4/codeset.m4: New file, from gettext-0.11.5.
81184         * m4/gettext.m4: New file, from gettext-0.11.5.
81185         * m4/glibc21.m4: New file, from gettext-0.11.5.
81186         * m4/iconv.m4: New file, from gettext-0.11.5.
81187         * m4/intdiv0.m4: New file, from gettext-0.11.5.
81188         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
81189         * m4/inttypes.m4: New file, from gettext-0.11.5.
81190         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
81191         * m4/isc-posix.m4: New file, from gettext-0.11.5.
81192         * m4/lcmessage.m4: New file, from gettext-0.11.5.
81193         * m4/lib-ld.m4: New file, from gettext-0.11.5.
81194         * m4/lib-link.m4: New file, from gettext-0.11.5.
81195         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
81196         * m4/progtest.m4: New file, from gettext-0.11.5.
81197         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
81198         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
81199         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
81200
81201         Module localcharset.
81202         * m4/localcharset.m4: New file.
81203
81204         Module hard-locale.
81205         * m4/hard-locale.m4: New file.
81206
81207         Module mbswidth.
81208         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
81209         onceonly macros.
81210         * m4/mbrtowc.m4: Add comment.
81211
81212         Module memcasecmp.
81213         * m4/memcasecmp.m4: New file.
81214
81215         Module memcoll.
81216         * m4/memcoll.m4: New file.
81217
81218         Module unicodeio.
81219         * m4/unicodeio.m4: New file.
81220
81221         Module rpmatch.
81222         * m4/rpmatch.m4: New file.
81223
81224         Module yesno.
81225         * m4/yesno.m4: New file.
81226
81227         Module exitfail.
81228         * m4/exitfail.m4: New file.
81229
81230         Module c-stack.
81231         * m4/c-stack.m4 (gl_C_STACK): New macro.
81232         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
81233
81234         Module error.
81235         * m4/error.m4 (gl_ERROR): New macro.
81236         (jm_PREREQ_ERROR): Use onceonly macros.
81237
81238         Module fatal.
81239         * m4/fatal.m4: New file.
81240
81241         Module getloadavg.
81242         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
81243         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
81244
81245         Module getpagesize.
81246         * m4/getpagesize.m4: New file.
81247
81248         Module getusershell.
81249         * m4/getusershell.m4: New file.
81250
81251         Module physmem.
81252         * m4/physmem.m4: New file.
81253
81254         Module posixver.
81255         * m4/posixver.m4: New file.
81256
81257         Module quotearg.
81258         * m4/quotearg.m4: New file.
81259
81260         Module quote.
81261         * m4/quote.m4: New file.
81262
81263         Module readutmp.
81264         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
81265
81266         Module sig2str.
81267         * m4/sig2str.m4: New file.
81268
81269         Other.
81270         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
81271         ulonglong.m4.
81272         * m4/intmax_t.m4: New file.
81273         * m4/d-type.m4: Indentation.
81274         * m4/jm-macros.m4: Update.
81275         * m4/prereq.m4 (jm_PREREQ): Update.
81276         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
81277         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
81278         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
81279         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
81280         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
81281         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
81282         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
81283         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
81284         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
81285         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
81286         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
81287         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
81288         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
81289         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
81290         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
81291         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
81292         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
81293         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
81294         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
81295
81296 2002-12-24  Bruno Haible  <bruno@clisp.org>
81297
81298         * MODULES.txt: Update according to m4/ changes.
81299
81300         Module gettext.
81301         * config.rpath: New file, from gettext-0.11.5.
81302
81303         * modules/*: New module descriptions.
81304         * gnulib-tool: New file.
81305         * MODULES.html.sh: New file.
81306
81307 2002-12-21  Karl Berry  <karl@gnu.org>
81308
81309         * doc/fdl.texi: update to version 1.2.
81310
81311 2002-12-19  Karl Berry  <karl@gnu.org>
81312
81313         * config/config.guess: update from prep.
81314
81315 2002-12-18  Bruno Haible  <bruno@clisp.org>
81316
81317         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
81318         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
81319
81320 2002-12-17  Bruno Haible  <bruno@clisp.org>
81321
81322         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
81323         stdlib.h, string.h.
81324
81325 2002-12-17  Bruno Haible  <bruno@clisp.org>
81326
81327         * lib/canon-host.c (strdup): Remove unused declaration.
81328
81329         * lib/fsusage.c: Include full_read.h.
81330         (get_fs_usage): Use full_read instead of safe_read.
81331
81332         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
81333
81334 2002-12-12  Karl Berry  <karl@gnu.org>
81335
81336         * config/config.guess: update from prep.
81337
81338 2002-12-11  Bruno Haible  <bruno@clisp.org>
81339
81340         * m4/setenv.m4: New file, from gettext-0.11.5.
81341
81342 2002-12-11  Bruno Haible  <bruno@clisp.org>
81343
81344         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
81345         not unsetenv().
81346         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
81347         modifications:
81348
81349         2002-12-11  Bruno Haible  <bruno@clisp.org>
81350
81351                 * setenv.c (alloca): Fall back to malloc.
81352                 (freea): New macro.
81353                 (setenv): Use freea() to free memory allocated with alloca().
81354
81355         2002-11-13  Bruno Haible  <bruno@clisp.org>
81356
81357                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
81358                 function declarations.
81359                 * unsetenv.c (unsetenv): Likewise.
81360
81361         2002-03-04  Bruno Haible  <bruno@clisp.org>
81362
81363                 Portability to AIX 4.3.3.
81364                 * unsetenv.c: New file, extracted from setenv.c.
81365                 * setenv.c: Move the unsetenv() function to unsetenv.c.
81366
81367         2001-12-20  Bruno Haible  <bruno@clisp.org>
81368
81369                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
81370                 use malloc instead. For SunOS 4.
81371
81372         2001-12-11  Bruno Haible  <bruno@clisp.org>
81373
81374                 * setenv.c: Declare alloca.
81375                 (compar_fn_t): New typedef.
81376                 (KNOWN_VALUE, STORE_VALUE): Use it.
81377
81378         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
81379         setenv.h.
81380
81381 2002-12-10  Paul Eggert  <eggert@twinsun.com>
81382
81383         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
81384         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
81385         Choose values that are less likely to collide with system fnmatch
81386         options.
81387         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
81388         defined (e.g., a pure POSIX system).
81389         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
81390         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
81391
81392 2002-12-06  Paul Eggert  <eggert@twinsun.com>
81393
81394         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
81395         a pain in practice to deal with generated m4 files.  This change
81396         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
81397
81398         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
81399         and jm-glibc-io.m4, as they are no longer a special case.
81400         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
81401         kludge and the auto-generation stuff.  Check only whether the
81402         functions are declared, not whether they exist, since older hosts
81403         that don't declare the functions can't use the optimization anyway.
81404
81405 2002-12-06  Jim Meyering  <jim@meyering.net>
81406
81407         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
81408
81409         Merge in changes from libc's misc/error.c, in preparation
81410         for the merge of gnulib's changes back into libc.
81411
81412         * lib/error.c (_): Define only if not already defined.
81413         Move definition to follow all #include directives.
81414         Include unlocked-io.h only if !_LIBC.
81415         [_LIBC]: Include <libio/libioP.h>.
81416         [USE_IN_LIBIO]: Include <libio/iolibio.h>
81417         (fflush): Tweak definition to use INTUSE.
81418         (putc): Define.
81419
81420 2002-12-05  Paul Eggert  <eggert@twinsun.com>
81421
81422         * lib/alloca.c [defined emacs]: Include "lisp.h".
81423         (xalloc_die) [defined emacs]: New macro.
81424         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
81425         [! defined emacs]: Include <xalloc.h>.
81426         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
81427         (pointer): Typedef to POINTER_TYPE *.
81428         (malloc): Remove decl; we now always use xmalloc.
81429         (alloca): Use old-style definition, since Emacs needs this.
81430         Check for arithmetic overflow when computing combined size.
81431
81432 2002-12-04  Paul Eggert  <eggert@twinsun.com>
81433
81434         Do not generate unlocked-io.h automatically, since it's easier to
81435         maintain it by hand.
81436
81437         * lib/unlocked-io.h: New file, from GNU diffutils,
81438         but with proper copyright notice and attribution.
81439         * lib/gen-uio: Remove.
81440         * lib/Makefile.am: Add copyright notice.
81441         (libfetish_a_SOURCES): Add unlocked-io.h.
81442         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
81443         (DISTCLEANFILES, io_functions): Remove macros.
81444         (EXTRA_DIST): Remove gen_uio.
81445         (unlocked-io.h): Remove rule.
81446
81447 2002-12-04  Jim Meyering  <jim@meyering.net>
81448
81449         Reflect the fact that stat.c and lstat.c are no longer generated.
81450         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
81451         (DISTCLEANFILES): Likewise.
81452         (EXTRA_DIST): Likewise.
81453         (all_local): Don't depend on stat.c or lstat.c.
81454         (stat.c, lstat.c): Remove rules.
81455         (EXTRA_DIST): Remove xstat.in.
81456
81457         * lib/xstat.in: Remove file.  Contents moved into stat.c.
81458         * lib/stat.c: New file.  Contents mostly from xstat.in.
81459         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
81460         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
81461
81462         * lib/safe-read.c: Rework so that it may serve to define safe_write,
81463         too.
81464         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
81465
81466 2002-12-03  Jim Meyering  <jim@meyering.net>
81467
81468         * lib/safe-read.c, safe-write.c: Change variable names and comments,
81469         but not semantics, to minimize the differences between these two files.
81470         (safe_read): Change comment to mention SAFE_READ_ERROR.
81471
81472         * lib/safe-read.c (IS_EINTR): Define.
81473         (safe_read): Use IS_EINTR in place of in-function cpp directives.
81474
81475 2002-12-02  Jim Meyering  <jim@meyering.net>
81476
81477         * lib/safe-read.c (EINTR): Define.
81478         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
81479         (INT_MAX): Provide fallback.
81480         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
81481
81482         * lib/safe-read.h (SAFE_READ_ERROR): Define.
81483
81484 2002-12-02  Bruno Haible  <bruno@clisp.org>
81485
81486         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
81487         Define, taken from safe-read.c.
81488         (INT_MAX): Provide fallback.
81489         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
81490         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
81491
81492         * lib/safe-read.c (EINTR): Remove definition.
81493         (safe_read): Don't use EINTR if it is absent.
81494
81495 2002-12-01  Jim Meyering  <jim@meyering.net>
81496
81497         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
81498         zero.
81499         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
81500
81501 2002-11-27  Paul Eggert  <eggert@twinsun.com>
81502
81503         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
81504         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
81505         with `if (! (value < limit)) abort ();', for readability.
81506
81507 2002-11-26  Karl Berry  <karl@gnu.org>
81508
81509         * lib/strdup.c: copy from libc again, with jim's ok.
81510         * lib/.cppi-disable: re-add strdup.c
81511
81512 2002-11-25  Karl Berry  <karl@gnu.org>
81513
81514         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
81515         instead of "strtol.c".
81516
81517 2002-11-25  Karl Berry  <karl@gnu.org>
81518
81519         * config/install-sh: update from automake for variable quoting, $0 in
81520         error msgs, etc.
81521
81522         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
81523         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
81524         entry.
81525
81526 2002-11-25  Jim Meyering  <jim@meyering.net>
81527
81528         * lib/mktime.c: Sync from libc, now that it has the latest fix.
81529
81530 2002-11-24  Karl Berry  <karl@gnu.org>
81531
81532         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
81533         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
81534
81535 2002-11-24  Jim Meyering  <jim@meyering.net>
81536
81537         Update from coreutils:
81538
81539         * lib/mktime.c: Merge in changes from libc.
81540
81541         Avoid a link-time failure on some Linux systems.
81542         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
81543         (otherwise).
81544         (__mon_yday): Declare with the STATIC attribute.
81545         (__mktime_internal): Likewise.
81546         Based on a report from Greg Schafer.
81547
81548 2002-11-23  Jim Meyering  <jim@meyering.net>
81549
81550         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
81551         Use `unsigned', not `int', as type of index.
81552
81553         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
81554
81555         * lib/fsusage.c: Remove unneeded parentheses around operands of
81556         `defined'.
81557
81558 2002-11-22  Paul Eggert  <eggert@twinsun.com>
81559
81560         * lib/quotearg.h: Allow multiple inclusion by surrounding with
81561         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
81562         so that we can be included first.
81563         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
81564         * lib/quotearg.c: Include quotearg.h immediately after config.h.
81565         No need to include stddef.h or sys/types.h any more.
81566         Surround local include files with "", not "<>".
81567         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
81568         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
81569         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
81570         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
81571         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
81572         (ISPRINT): Remove; no longer needed now that we assume C89.
81573
81574         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
81575         Preserve errno.
81576
81577         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
81578         quotearg_char): Use SIZE_MAX rather than
81579         (size_t) -1 when we are talking about "infinity".
81580
81581         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
81582
81583 2002-11-22  Paul Eggert  <eggert@twinsun.com>
81584
81585         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
81586         hint that one should use `if (! x) abort ();' rather than `assert
81587         (x);', and anyway it's one less thing to worry about configuring.
81588         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
81589         hash_rehash, hash_insert): Use abort rather than assert.
81590
81591 2002-11-22  Bruno Haible  <bruno@clisp.org>
81592
81593         * lib/safe-read.h: Assume C89. Add comments.
81594         (safe_read): Change return type to size_t.
81595         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
81596         byte counts > SSIZE_MAX correctly.
81597         * lib/safe-write.h: New file.
81598         * lib/safe-write.c: New file.
81599         * lib/full-read.h: New file.
81600         * lib/full-read.c: New file.
81601         * lib/full-write.h: Assume C89. Add comments.
81602         * lib/full-write.c: Include safe-write.h.
81603         (full_write): Rewritten to use safe_write.
81604         Suggested by Jim Meyering and Paul Eggert.
81605
81606 2002-11-21  Jim Meyering  <jim@meyering.net>
81607
81608         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
81609
81610         Merge in changes from the coreutils.
81611
81612         2002-09-25  Paul Eggert  <eggert@twinsun.com>
81613         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
81614         <stdint.h>.
81615         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
81616         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
81617         int.  Work more efficiently if X is the same width as uintmax_t.
81618         Do not compare X to -1, to avoid bogus compiler warning.
81619         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
81620         Don't assume that f_frsize and f_bsize are the same type.
81621
81622         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
81623         warning on FreeBSD.
81624
81625         * lib/makepath.c (make_path): Restore umask *before* creating the final
81626         component.
81627         (make_path): Minor reformatting.
81628
81629         * lib/xmalloc.c: Adjust to work with new autoconf macros,
81630         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
81631         HAVE_MALLOC/HAVE_REALLOC.
81632
81633         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
81634         dummy ones.  At least on GNU/Linux systems, `auto' means something
81635         else.
81636         From Michael Stone.
81637
81638 2002-11-21  Bruno Haible  <bruno@clisp.org>
81639
81640         Remove case insensitive option matching.
81641         * lib/argmatch.h (argcasematch): Remove declaration.
81642         (ARGCASEMATCH): Remove macro.
81643         (__xargmatch_internal): Remove case_sensitive argument.
81644         (XARGMATCH): Update.
81645         (XARGCASEMATCH): Remove macro.
81646         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
81647         case_sensitive argument.
81648         (argcasematch): Remove function.
81649         (__xargmatch_internal): Remove case_sensitive argument.
81650         (main): Use XARGMATCH instead of XARGCASEMATCH.
81651
81652         * lib/xmalloc.c: Change compile-time error message. Add comment about
81653         required autoconf version.
81654
81655 2002-11-20  Paul Eggert  <eggert@twinsun.com>
81656
81657         Merge argmatch cleanups from Bison.  Assume C89.
81658
81659         * lib/argmatch.c: Include config.h here, not in argmatch.h.
81660         Include stdlib.h, for EXIT_FAILURE.
81661         Always include <string.h>, since we assume C89.
81662         (EXIT_FAILURE): Remove pre-C89 bug workaround.
81663         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
81664         Include <stddef.h> instead, since it's all we need for size_t.
81665         (PARAMS): Remove.  All uses removed.
81666         (ARRAY_CARDINALITY): Do not bother to #undef.
81667         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
81668         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
81669         Remove unnecessary parentheses.
81670         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
81671         Insert necessary parentheses.
81672         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
81673         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
81674
81675 2002-11-19  Bruno Haible  <bruno@clisp.org>
81676
81677         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
81678         * lib/mbswidth.h: Include <stddef.h>, for size_t.
81679
81680         * lib/mbswidth.h (PARAMS): Remove macro.
81681         (mbswidth, mbsnwidth): Use ANSI C function declarations.
81682         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
81683
81684         * lib/gcd.h (PARAMS): Remove macro.
81685         (gcd): Use ANSI C function declarations.
81686         * lib/gcd.c (gcd): Likewise.
81687
81688 2002-11-15  Bruno Haible  <bruno@clisp.org>
81689
81690         * lib/strcspn.c: Include <stddef.h>.
81691         (strcspn): Use ANSI C function declaration. Change return type to
81692         size_t. Use NULL.
81693         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
81694         (strpbrk): Use NULL.
81695         * lib/strpbrk.h (PARAMS): Remove macro.
81696         (strpbrk): Use ANSI C function declaration.
81697         * lib/strstr.c: Don't include <sys/types.h>.
81698         * lib/strstr.h (PARAMS): Remove macro.
81699         (strstr): Use ANSI C function declarations.
81700
81701 2002-11-14  Karl Berry  <karl@gnu.org>
81702
81703         * config/mkinstalldirs: `do' on separate line, instead of
81704         `for var; do'.
81705
81706 2002-11-06  Bruno Haible  <bruno@clisp.org>
81707
81708         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
81709         * lib/gcd.c (gcd): Likewise.
81710
81711 2002-11-05  Bruno Haible  <bruno@clisp.org>
81712
81713         * lib/gcd.h: New file, from gettext-0.11.5.
81714         * lib/gcd.c: New file, from gettext-0.11.5.
81715
81716 2002-11-05  Bruno Haible  <bruno@clisp.org>
81717
81718         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
81719         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
81720         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
81721         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
81722
81723         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
81724         <libintl.h>.
81725         * lib/makepath.c: Include gettext.h instead of <locale.h> and
81726         <libintl.h>.
81727
81728         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
81729         * lib/human.c: Include gettext.h instead of <libintl.h>.
81730         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
81731         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
81732         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
81733         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
81734         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
81735         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
81736         (textdomain): Remove definition.
81737         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
81738
81739         * lib/long-options.c: Remove include of <libintl.h> and definition of
81740         _.
81741         * lib/same.c: Remove include of <libintl.h> and definition of _.
81742
81743 2002-11-04  Owen Taylor  <otaylor@redhat.com>
81744
81745         * lib/config.charset: A few additions for Solaris.
81746
81747 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
81748
81749         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
81750         * lib/localcharset.c (locale_charset): Declare as extern "C".
81751
81752 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
81753
81754         * lib/config.charset: msdos in uk_UA uses CP1125.
81755
81756 2002-11-04  Bruno Haible  <bruno@clisp.org>
81757
81758         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
81759         * lib/strcase.h: New file, from GNU gettext-0.11.5.
81760         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
81761         * lib/strstr.h: New file, from GNU gettext-0.11.5.
81762         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
81763
81764 2002-11-04  Bruno Haible  <bruno@clisp.org>
81765
81766         * lib/localcharset.c (locale_charset): Don't return an empty string.
81767
81768 2002-11-04  Bruno Haible  <bruno@clisp.org>
81769
81770         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
81771         aliases.
81772
81773 2002-11-04  Bruno Haible  <bruno@clisp.org>
81774
81775         * lib/config.charset: Update for newest glibc. Add canonical names
81776         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
81777
81778 2002-11-04  Bruno Haible  <bruno@clisp.org>
81779
81780         * lib/config.charset: Add support for NetBSD.
81781
81782 2002-11-04  Bruno Haible  <bruno@clisp.org>
81783
81784         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
81785
81786 2002-11-01  Bruno Haible  <bruno@clisp.org>
81787
81788         * configure.in: Add AC_CONFIG_AUX_DIR call.
81789         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
81790         test/Makefile.
81791         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
81792
81793 2002-09-28  Karl Berry  <karl@gnu.org>
81794
81795         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
81796         installed automake until the next release, since changes have been
81797         made.
81798
81799 2002-09-25  Karl Berry  <karl@gnu.org>
81800
81801         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
81802         * lib/getopt*: copy from libc/posix.
81803         * lib/gettext.h: copy from gettext.
81804         * lib/.cppi-disable: add strdup.c, gettext.h.
81805
81806 2002-09-25  Karl Berry  <karl@gnu.org>
81807
81808         * config/srclist.txt: enable gettext.h check.
81809         * config/config.{guess,sub}: update from prep.
81810         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
81811                 from automake 1.6.3.
81812         See srclist*.
81813
81814 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
81815
81816         * regex.c (PATFETCH): Remove the translating fetch.
81817         (PATFETCH_RAW): Rename to PATFETCH.
81818         (set_image_of_range): New fun.
81819         (SET_RANGE_TABLE_WORK_AREA): Use it.
81820         (regex_compile): Don't translate the pattern chars so eagerly.
81821         Only do it when inserting an `exactn' bytecode or when handling
81822         a char-range.
81823         (mutually_exclusive_p): Avoid empty statement.
81824
81825 2002-07-06  Jim Meyering  <meyering@lucent.com>
81826
81827         * m4/README: Don't mention Makefile.am.in.
81828         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
81829
81830 2002-07-01  Jim Meyering  <meyering@lucent.com>
81831
81832         * lib/c-stack.c: Include sys/time.h.
81833         From Volker Borchert.
81834
81835 2002-06-26  Paul Eggert  <eggert@twinsun.com>
81836
81837         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
81838
81839 2002-06-26  Paul Eggert  <eggert@twinsun.com>
81840
81841         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
81842         New macro.  Use it uniformly instead of
81843         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
81844         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
81845         reported by Vin Shelton.
81846
81847 2002-06-22  Paul Eggert  <eggert@twinsun.com>
81848
81849         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
81850         Do not assume SA_SIGINFO behavior.
81851         Bug reported by Jim Meyering on NetBSD 1.5.2.
81852
81853 2002-06-22  Jim Meyering  <meyering@lucent.com>
81854
81855         * m4/c-stack.m4: New file, from diffutils-2.8.2.
81856         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
81857
81858         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
81859         now that configure.ac uses AC_GNU_SOURCE.
81860         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
81861         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
81862
81863         Update to latest tools.  Suggestions from Paul Eggert.
81864         * m4/stdbool.m4: New file, from diffutils-2.8.2.
81865         * m4/gnu-source.m4: Update from diffutils-2.8.2.
81866         * m4/fnmatch.m4: Likewise.
81867         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
81868         to AC_HEADER_STDBOOL
81869
81870 2002-06-22  Jim Meyering  <meyering@lucent.com>
81871
81872         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
81873         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
81874
81875 2002-06-22  Jim Meyering  <meyering@lucent.com>
81876
81877         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
81878
81879         * lib/exitfail.c, exitfail.h: Likewise.
81880         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
81881
81882         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
81883         of fnmatch.h.
81884         (EXTRA_DIST): Add fnmatch_loop.c.
81885         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
81886
81887         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
81888         * lib/fnmatch.c: Update from diffutils-2.8.2.
81889         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
81890         * lib/fnmatch.h: Remove file.
81891
81892 2002-06-21  Jim Meyering  <meyering@lucent.com>
81893
81894         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
81895         * m4/mbrtowc.m4: Likewise.
81896
81897         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
81898         * m4/mbswidth.m4: Reflect name change:
81899         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
81900         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
81901
81902         * m4/lib-link.m4: Update from gettext-0.11.2.
81903         * m4/gettext.m4: Likewise.
81904
81905         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
81906         From Alfred M. Szmidt.
81907
81908 2002-06-18  Paul Eggert  <eggert@twinsun.com>
81909
81910         * lib/file-type.h: Report an error if neither S_ISREG nor
81911         S_IFREG is defined, instead of using a test specific to glibc
81912         2.2.  This should be safe, since POSIX requires S_ISREG and
81913         Unix Version 7 had S_IFREG.  We don't need to check for
81914         <sys/types.h> since we don't use any symbols that it defines.
81915
81916 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
81917
81918         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
81919         $@-t, so that each temporary file name is unique and valid in the first
81920         8 characters, for operation under DOS.
81921
81922 2002-06-15  Paul Eggert  <eggert@twinsun.com>
81923
81924         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
81925
81926 2002-06-15  Jim Meyering  <meyering@lucent.com>
81927
81928         Work even with DJGPP 2.03, which lacks support for symlinks.
81929         From Richard Dawe.
81930         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
81931         is defined.
81932         * lib/lchown.c (S_ISLNK): Likewise.
81933
81934 2002-06-15  Jim Meyering  <meyering@lucent.com>
81935
81936         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
81937         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
81938         have been included before this file.
81939
81940 2002-06-14  Jim Meyering  <meyering@lucent.com>
81941
81942         * lib/file-type.h: Use the version from diffutils-2.8.2.
81943         * lib/file-type.c: Likewise.
81944
81945 2002-06-07  Jim Meyering  <meyering@lucent.com>
81946
81947         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
81948         They're needed at least for NetBSD 1.5.2.
81949         ($statxfs_includes): Include those same headers.
81950         ($statxfs_includes): Include sys/vfs.h if available.
81951         ($statxfs_includes): Likewise for sys/statvfs.h.
81952         Check for the following members in both structs statfs and statvfs:
81953         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
81954
81955 2002-06-01  Jim Meyering  <meyering@lucent.com>
81956
81957         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
81958         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
81959
81960 2002-05-28  Jim Meyering  <meyering@lucent.com>
81961
81962         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
81963         Reported by Volker Borchert.
81964
81965 2002-05-27  Jim Meyering  <meyering@lucent.com>
81966
81967         Fix a problem seen only on nonconforming systems whereby ls.c's
81968         use of localtime, and then of gettimeofday would cause trouble:
81969         the localtime call used to initialize rpl_gettimeofday's save
81970         mechanism would clobber ls's current local time information so
81971         that in any long listing the first file would always be listed
81972         with date 1970-01-01.  Analysis by Volker Borchert.
81973
81974         * lib/gettimeofday.c (localtime): Undefine.
81975         (rpl_localtime): New function.
81976
81977 2002-05-27  Jim Meyering  <meyering@lucent.com>
81978
81979         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
81980         localtime.
81981
81982         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
81983         use the replacement function; it wouldn't resolve at link time.
81984         Reported by Volker Borchert.
81985
81986 2002-05-22  Jim Meyering  <meyering@lucent.com>
81987
81988         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
81989         file-type.h.
81990         * lib/file-type.h: New file.
81991         * lib/file-type.c (file_type): New file/function.  Extracted from
81992         diffutils.
81993
81994 2002-04-30  Jim Meyering  <meyering@lucent.com>
81995
81996         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
81997
81998 2002-04-29  Paul Eggert  <eggert@twinsun.com>
81999
82000         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
82001
82002 2002-04-29  Paul Eggert  <eggert@twinsun.com>
82003
82004         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
82005         Do not check for alloca.h (no longer used) or stdbool.h (was never
82006         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
82007
82008 2002-04-29  Paul Eggert  <eggert@twinsun.com>
82009
82010         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
82011
82012 2002-04-29  Jim Meyering  <meyering@lucent.com>
82013
82014         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
82015         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
82016         Use AC_FUNC_STRNLEN here instead.
82017
82018         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
82019         With autoconf-2.53a, it's part of AC_PROG_CC.
82020
82021 2002-04-28  Paul Eggert  <eggert@twinsun.com>
82022
82023         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
82024         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
82025
82026 2002-04-28  Paul Eggert  <eggert@twinsun.com>
82027
82028         * lib/sig2str.h, lib/sig2str.c: New files.
82029         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
82030
82031 2002-04-28  Paul Eggert  <eggert@twinsun.com>
82032
82033         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
82034         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
82035         of 127, since 64 is the largest conceivable number for ancient
82036         nonstandard hosts.
82037         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
82038
82039 2002-04-28  Jim Meyering  <meyering@lucent.com>
82040
82041         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
82042
82043 2002-04-24  Jim Meyering  <meyering@lucent.com>
82044
82045         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
82046         (jm_PREREQ): Use it.
82047
82048         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
82049         mach/mach.h fcntl.h.
82050         Check for this function: setlocale.
82051
82052 2002-04-24  Jim Meyering  <meyering@lucent.com>
82053
82054         * lib/gettext.h: New file, from Gettext.
82055         * lib/Makefile.am (INCLUDES): Remove -I../intl.
82056         (libfetish_a_SOURCES): Add gettext.h.
82057
82058 2002-04-16  Jim Meyering  <meyering@lucent.com>
82059
82060         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
82061         ut_pid, ut_id, ut_exit.
82062
82063 2002-04-16  Jim Meyering  <meyering@lucent.com>
82064
82065         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
82066         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
82067         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
82068
82069 2002-04-12  Jim Meyering  <meyering@lucent.com>
82070
82071         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
82072         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
82073         existence of the getmntinfo function.  Needed for Darwin 5.3.
82074
82075         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
82076         This is necessary at least on Darwin 5.3.
82077
82078         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
82079         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
82080         strnlen.o in the library, and that makes some versions of ranlib
82081         object.
82082
82083 2002-04-12  Jim Meyering  <meyering@lucent.com>
82084
82085         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
82086
82087 2002-04-09  Jim Meyering  <meyering@lucent.com>
82088
82089         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
82090         to be more precise.  Rather than saying we're checking whether the
82091         function `works', say what we're testing.
82092         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
82093         Reported by Bruno Haible.
82094
82095 2002-03-10  Jim Meyering  <meyering@lucent.com>
82096
82097         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
82098         Suggestion from Santiago Vila.
82099
82100 2002-03-08  Jim Meyering  <meyering@lucent.com>
82101
82102         * lib/rename.c: Mention that this wrapper is needed also on
82103         mips-dec-ultrix4.4 systems.
82104
82105 2002-03-02  Jim Meyering  <meyering@lucent.com>
82106
82107         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
82108         not HAVE_CLOCK_SETTIME.
82109
82110 2002-02-27  Paul Eggert  <eggert@twinsun.com>
82111
82112         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
82113         Check for clock_settime.
82114
82115 2002-02-27  Paul Eggert  <eggert@twinsun.com>
82116
82117         * lib/nanosleep.h: Rename to....
82118         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
82119
82120         * lib/gettime.c: New file.
82121         * lib/settime.c: New file.
82122         * lib/stime.c: Remove.
82123
82124         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
82125         timespec.h.  Remove nanosleep.h.
82126
82127 2002-02-25  Paul Eggert  <eggert@twinsun.com>
82128
82129         * m4/acl.m4: New file.
82130         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
82131         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
82132
82133 2002-02-25  Paul Eggert  <eggert@twinsun.com>
82134
82135         * lib/acl.c, lib/acl.h: New files.
82136         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
82137
82138 2002-02-24  Jim Meyering  <meyering@lucent.com>
82139
82140         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
82141         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
82142         cause trouble.  Reported by Nelson Beebe.
82143
82144 2002-02-23  Paul Eggert  <eggert@twinsun.com>
82145
82146         * lib/path-concat.c (xpath_concat): Reorder code to pacify
82147         compilers that don't know that xalloc_die never returns.
82148
82149 2002-02-20  Jim Meyering  <meyering@lucent.com>
82150
82151         * lib/getdate.c: Regenerate using bison-1.33.
82152
82153 2002-02-17  Jim Meyering  <meyering@lucent.com>
82154
82155         * config/config.guess (main): Don't use `head -1'; it's no longer
82156         portable. Use `sed 1q' instead.
82157
82158 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
82159
82160         * m4/codeset.m4: Upgrade to gettext-0.11.
82161         * m4/gettext.m4: Upgrade to gettext-0.11.
82162         * m4/glibc21.m4: Upgrade to gettext-0.11.
82163         * m4/iconv.m4: Upgrade to gettext-0.11.
82164         * m4/isc-posix.m4: Upgrade to gettext-0.11.
82165         * m4/lcmessage.m4: Upgrade to gettext-0.11.
82166         * m4/lib-ld.m4: New file, from gettext-0.11.
82167         * m4/lib-link.m4: New file, from gettext-0.11.
82168         * m4/lib-prefix.m4: New file, from gettext-0.11.
82169         * m4/progtest.m4: Upgrade to gettext-0.11.
82170
82171 2002-02-15  Paul Eggert  <eggert@twinsun.com>
82172
82173         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
82174         (jm_PREREQ): Use it.
82175
82176 2002-02-15  Paul Eggert  <eggert@twinsun.com>
82177
82178         * lib/posixver.c, lib/posixver.h: New files.
82179         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
82180
82181 2002-02-02  Paul Eggert  <eggert@twinsun.com>
82182             Bruno Haible  <bruno@clisp.org>
82183
82184         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
82185         (fwrite_success_callback): New declaration.
82186         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
82187         print_unicode_char. Call failure callback instead of error.
82188         (fwrite_success_callback): New function.
82189         (exit_failure_callback): New function.
82190         (fallback_failure_callback): New function.
82191         (print_unicode_char): Call unicode_to_mb.
82192
82193 2002-01-26  Jim Meyering  <meyering@lucent.com>
82194
82195         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
82196         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
82197
82198 2002-01-26  Jim Meyering  <meyering@lucent.com>
82199
82200         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
82201
82202 2002-01-22  Paul Eggert  <eggert@twinsun.com>
82203
82204         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
82205
82206 2002-01-22  Jim Meyering  <meyering@lucent.com>
82207
82208         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
82209         Otherwise, some versions of automake would omit the rule that makes
82210         Makefile from Makefile.in.
82211
82212 2002-01-21  Paul Eggert  <eggert@twinsun.com>
82213
82214         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
82215         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
82216         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
82217         (memcoll): Set errno to zero if there is no error.
82218
82219         * lib/quotearg.c (quotearg_buffer_restyled):
82220         Fix bug with quoting buffers containing NUL when backslashing escapes.
82221         This bug was exposed by the other changes in this patch.
82222         (quotearg_n_options): New arg ARGSIZE.
82223         All callers changed.
82224         (quoting_options_from_style): New function.
82225         (quotearg_n_style): Use it.
82226         (quotearg_n_style_mem): New function.
82227
82228         * lib/quotearg.h (quotearg_n_style_mem): New function.
82229
82230 2002-01-19  Jim Meyering  <meyering@lucent.com>
82231
82232         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
82233         Remove useless quotes: DF_PROG="df".
82234         * m4/strnlen.m4: New file.
82235
82236 2002-01-16  Paul Eggert  <eggert@twinsun.com>
82237
82238         * lib/backupfile.c (ISDIGIT): Comment fix.
82239         * lib/getdate.y (ISDIGIT): Likewise.
82240         * lib/posixtm.c (ISDIGIT, year): Likewise.
82241         * lib/strverscmp.c (ISDIGIT): Likewise.
82242         * lib/userspec.c (ISDIGIT): Likewise.
82243
82244 2002-01-16  Jim Meyering  <meyering@lucent.com>
82245
82246         * lib/getdate.y: Add three semicolons, each just before a closing
82247         brace. Bison (as of version 1.31) no longer papers over that mistake.
82248
82249 2002-01-05  Jim Meyering  <meyering@lucent.com>
82250
82251         * lib/version-etc.c (version_etc_copyright): Update copyright year.
82252
82253 2001-12-19  Paul Eggert  <eggert@twinsun.com>
82254
82255         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
82256         not silently exit merely because the output buffer happens to
82257         have nothing pending.
82258
82259 2001-12-18  Paul Eggert  <eggert@twinsun.com>
82260
82261         See the big note in ../ChangeLog.
82262         * lib/human.c (suffixes): Prefer K to k for 1024.
82263         (generate_suffix_backwards): New function.
82264         (human_readable_inexact): Use it.
82265         * lib/xstrtol.c (__xstrtol): If there is no number but there
82266         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
82267         Accept 'K' as well as 'k'.
82268
82269 2001-12-15  Jim Meyering  <meyering@lucent.com>
82270
82271         * lib/regex.h (__restrict_arr): Update from libc.
82272
82273         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
82274         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
82275         (STREQ): Define.
82276
82277 2001-12-14  Jim Meyering  <meyering@lucent.com>
82278
82279         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
82280         Suggestion from Bruno Haible.
82281
82282 2001-12-10  Jim Meyering  <meyering@lucent.com>
82283
82284         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
82285         xrealloc, Instead, include "xalloc.h".
82286         (initbuffer): Don't cast xmalloc return value to char*.
82287         (readline): Reword comment.
82288         Don't cast xrealloc return value to char*
82289         Return NULL, not 0.
82290
82291 2001-12-09  Jim Meyering  <meyering@lucent.com>
82292
82293         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
82294         about `signed and unsigned type in conditional expression'.
82295         * lib/posixtm.c (posix_time_parse): Likewise.
82296
82297         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
82298
82299         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
82300         to avoid a pedantic warning.
82301
82302         * lib/getstr.c: Don't include assert.h.
82303         (getstr): Remove warning-evoking assertions.
82304         Return -1 if offset parameter is out of bounds.
82305         Change the type of a local from int to size_t.
82306
82307         * lib/strftime.c (my_strftime_localtime_r): Include this function
82308         definition in the `#if ! HAVE_TM_GMTOFF' block.
82309
82310         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
82311         Include xalloc.h instead.
82312
82313 2001-12-02  Jim Meyering  <meyering@lucent.com>
82314
82315         * lib/tempname.c: Don't declare getenv, thus reverting the change of
82316         2001-11-18.  It's no longer necessary, now that stdlib.h is always
82317         included.
82318
82319         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
82320         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
82321
82322 2001-11-30  Akim Demaille  <akim@epita.fr>
82323
82324         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
82325         before being defined.
82326
82327 2001-11-27  Paul Eggert  <eggert@twinsun.com>
82328
82329         * lib/quotearg.h (quotearg_n, quotearg_n_style):
82330         First arg is int, not unsigned.
82331         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
82332         (SIZE_MAX, UINT_MAX): New macros.
82333         (quotearg_n_options): Abort if N is negative.
82334         Avoid overflow check on hosts where size_t is 64 bits and int
82335         is 32 bits, as overflow is impossible there.
82336         Fix off-by-one typo that caused unnecessary reallocation.
82337
82338 2001-11-27  Jim Meyering  <meyering@lucent.com>
82339
82340         * lib/tempname.c: Merge with version from libc.
82341         * lib/regex.c: Likewise.
82342
82343         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
82344         systems for which STDC_HEADERS is 0, it was not included, resulting in
82345         a warning about an integer-to-pointer conversion problem with getenv.
82346         Reported by Volker Borchert.
82347
82348 2001-11-26  Jim Meyering  <meyering@lucent.com>
82349
82350         * lib/gtod.h: Remove file.
82351         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
82352         * lib/gettimeofday.c: Don't include gtod.h.
82353         (GTOD_init): Remove function.
82354         (rpl_gettimeofday): Do its job here instead, rather than aborting.
82355         Suggestion from Volker Borchert.
82356
82357 2001-11-23  Jim Meyering  <meyering@lucent.com>
82358
82359         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
82360         it.
82361         * lib/hash.c (struct hash_table): Define it here instead.
82362
82363 2001-11-22  Jim Meyering  <meyering@lucent.com>
82364
82365         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
82366
82367 2001-11-20  Jim Meyering  <meyering@lucent.com>
82368
82369         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
82370         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
82371
82372 2001-11-19  Jim Meyering  <meyering@lucent.com>
82373
82374         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
82375         directory.  Use "conftestXXXXXX" as the template.
82376         Suggestion from Paul Eggert.
82377
82378         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
82379         immediately, so the test doesn't mistakenly hit the max-open-files
82380         limit.
82381
82382 2001-11-18  Paul Eggert  <eggert@twinsun.com>
82383
82384         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
82385         (TEMPORARIES): New macro.
82386         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
82387         removes an artificial limitation (e.g. HP-UX 10.20, where
82388         TMP_MAX is 17576).
82389
82390 2001-11-18  Jim Meyering  <meyering@lucent.com>
82391
82392         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
82393
82394 2001-11-18  Jim Meyering  <meyering@lucent.com>
82395
82396         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
82397         on SunOS 4.
82398
82399         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
82400         files will be created before anything else.
82401
82402 2001-11-17  Paul Eggert  <eggert@twinsun.com>
82403
82404         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
82405         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
82406
82407 2001-11-17  Jim Meyering  <meyering@lucent.com>
82408
82409         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
82410         Prompted by a report from Bob Proulx.
82411
82412         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
82413         Instead, require UTILS_FUNC_MKSTEMP.
82414
82415 2001-11-17  Jim Meyering  <meyering@lucent.com>
82416
82417         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
82418         Now, that's done as part of AC_FUNC_STRTOD.
82419
82420 2001-11-17  Jim Meyering  <meyering@lucent.com>
82421
82422         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
82423         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
82424         rather than group writable.  Patch by Juan F. Codagnone.
82425
82426         * lib/readtokens.c: Remove explicit declarations of xmalloc and
82427         xrealloc, Instead, include "xalloc.h".
82428
82429         * lib/mountlist.c: Include unlocked-io.h after all system headers.
82430         Remove explicit declarations of xmalloc, xrealloc,
82431         and xstrdup.  Instead, include "xalloc.h".
82432
82433         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
82434         unlocked-io.h.
82435         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
82436         Likewise.
82437         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
82438
82439         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
82440         Reported by Padraig Brady.
82441
82442         * lib/mkstemp.c: #undef mkstemp.
82443         Include config.h.
82444         (rpl_mkstemp): Rename from mkstemp.
82445         Protoize.
82446
82447 2001-11-16  Jim Meyering  <meyering@lucent.com>
82448
82449         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
82450         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
82451         determine the amount of total physical memory, use pstat_getstatic.
82452         HPUX-11 doesn't define _SC_PHYS_PAGES.
82453         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
82454         If sysconf couldn't be used to determine the amount of available
82455         physical memory, use both pstat_getstatic and pstat_getdynamic.
82456         Based on a patch from Bob Proulx.
82457
82458 2001-11-10  Jim Meyering  <meyering@lucent.com>
82459
82460         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
82461         (jm_PREREQ): Use it.
82462
82463 2001-11-09  Jim Meyering  <meyering@lucent.com>
82464
82465         * m4/jm-macros.m4: Require autoconf-2.52f.
82466         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
82467         Use these AC_-prefixed names, not the AM_-prefixed ones.
82468
82469         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
82470
82471 2001-11-05  Jim Meyering  <meyering@lucent.com>
82472
82473         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
82474
82475 2001-11-04  Jim Meyering  <meyering@lucent.com>
82476
82477         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
82478         $DEFS.
82479
82480 2001-11-03  Jim Meyering  <meyering@lucent.com>
82481
82482         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
82483         of AC_DEFUN.
82484
82485         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
82486         know the name of the variable in the macro definition.
82487
82488 2001-11-03  Jim Meyering  <meyering@lucent.com>
82489
82490         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
82491         in argmatch_to_argument call.
82492
82493         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
82494         argument.
82495
82496         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
82497         e.g., a fault due to an attempt to free a NULL pointer.
82498
82499 2001-11-01  Jim Meyering  <meyering@lucent.com>
82500
82501         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
82502         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
82503
82504 2001-11-01  Jim Meyering  <meyering@lucent.com>
82505
82506         * lib/dirfd.c, lib/dirfd.h: New files.
82507         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
82508
82509         * lib/hash.c (hash_print) [TESTING]: Clean up.
82510
82511 2001-10-22  Paul Eggert  <eggert@twinsun.com>
82512
82513         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
82514         to avoid a warning if -Wall.
82515
82516 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
82517
82518         * README: New file
82519         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
82520         (per RMS's instructions, this is now the canonical source)
82521         * lgpl/, gpl/: New directories.
82522
82523 2001-10-21  Paul Eggert  <eggert@twinsun.com>
82524
82525         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
82526
82527 2001-10-21  Jim Meyering  <meyering@lucent.com>
82528
82529         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
82530         this code would end up calling gettext even in packages built
82531         with --disable-nls.
82532         * lib/getopt.c (_): Likewise.
82533         * lib/regex.c (_): Likewise.
82534
82535 2001-10-20  Paul Eggert  <eggert@twinsun.com>
82536
82537         * m4/error.m4 (jm_PREREQ_ERROR):
82538         Do not invoke AC_CHECK_FUNCS with strerror_r, as
82539         AC_FUNC_STRERROR_R does that.
82540         Check for strerror declaration.
82541
82542         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
82543         are supposed to have them these days.
82544         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
82545         Merge changes from latest Autoconf CVS.
82546         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
82547         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
82548         POSIX decided to standardize on the int flavor of strerror_r.
82549
82550 2001-10-20  Paul Eggert  <eggert@twinsun.com>
82551
82552         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
82553         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
82554         Use strerror_r that is only a macro, even if it is not a function.
82555         (strerror): Check for HAVE_DECL_STRERROR before declaring.
82556         (private_strerror): Use prototypes, not old-style function definition.
82557         (print_errno_message): New function.
82558         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
82559         char*-flavored one.
82560         (error_tail, error, error_at_line): Use it.
82561
82562 2001-10-11  Jim Meyering  <meyering@lucent.com>
82563
82564         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
82565         and quote_n (1, ... to avoid clobbering a buffer.
82566
82567 2001-10-05  Jim Meyering  <meyering@lucent.com>
82568
82569         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
82570         hash-pjw.h.
82571         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
82572         * lib/hash-pjw.h: New file.
82573
82574 2001-09-30  Jim Meyering  <meyering@lucent.com>
82575
82576         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
82577         `struct fsstat' has the `f_fstypename' member.
82578         Use that to define FS_TYPE, which is now used to make
82579         the getfsstat link test tighter.
82580
82581 2001-09-30  Jim Meyering  <meyering@lucent.com>
82582
82583         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
82584         Include <sys/ucred.h>, for Apple Darwin.
82585         Include sys/mount.h and sys/fs_types.h only if available.
82586         (FS_TYPE): Define.
82587         (read_filesystem_list): Use FS_TYPE.
82588
82589 2001-09-29  Paul Eggert  <eggert@twinsun.com>
82590
82591         * lib/exclude.c (excluded_filename): 0 -> false, since it's
82592         a boolean context.
82593
82594 2001-09-29  Jim Meyering  <meyering@lucent.com>
82595
82596         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
82597         [one-argument getmntent function]): Include stdio.h before mntent.h.
82598         SunOS 4.1.x needs it for the declaration of `FILE'.
82599         Patch by Volker Borchert.
82600
82601         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
82602         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
82603         sys/fs_types.h, and make the link-test for getfsstat guard #include
82604         directives with appropriate #if HAVE_*_H tests so that we can
82605         detect getfsstat on Apple Darwin1.3.7 systems.
82606         Reported by Nelson Beebe.
82607         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
82608
82609 2001-09-28  Paul Eggert  <eggert@twinsun.com>
82610
82611         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
82612         #defines strtoimax.  Also treat the other strto* functions
82613         like strtoimax.
82614
82615         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
82616         Check for strtoul and strtoumax,
82617         as those declarations are made even in the signed case.
82618         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
82619         Likewise, for strtol and strtoimax.
82620
82621 2001-09-28  Paul Eggert  <eggert@twinsun.com>
82622
82623         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
82624         #defines strtoimax.  Also treat the other strto* functions
82625         like strtoimax.
82626
82627         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
82628         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
82629         (strtoimax, strtoumax): Do not declare if already defined as a macro.
82630
82631 2001-09-26  Jim Meyering  <meyering@lucent.com>
82632
82633         Most macros in unlocked-io.h had the wrong number of arguments.
82634         * lib/gen-uio: New script.
82635         (USE_UNLOCKED_IO): Define to 1 if not already defined.
82636         * lib/unlocked-io.hin: Remove file.
82637         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
82638         rather than trying to embed it here.
82639         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
82640         Reported by Padraig Brady.
82641
82642 2001-09-25  Volker Borchert  <bt@teknon.de>
82643
82644         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
82645         `result'.
82646
82647 2001-09-24  Jim Meyering  <meyering@lucent.com>
82648
82649         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
82650
82651 2001-09-23  Jim Meyering  <meyering@lucent.com>
82652
82653         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
82654         instead of the mere test for existence of mntent.h.  The latter
82655         would get a false-positive on AIX 3.4 systems.
82656         In the outer getmntent if-block, don't die if neither of the getmntent
82657         tests succeeds.  Instead, just fall through and continue with the
82658         remaining tests.
82659
82660 2001-09-23  Jim Meyering  <meyering@lucent.com>
82661
82662         * lib/mountlist.c: Remove useless parentheses in #if directives.
82663         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
82664         the deprecated MOUNTED symbol is no longer defined in mntent.h.
82665
82666 2001-09-22  Jim Meyering  <meyering@lucent.com>
82667
82668         * m4/gettext.m4: New file.  From gettext.
82669         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
82670         * m4/progtest.m4: Likewise
82671         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
82672         * m4/glibc21.m4: Likewise.
82673
82674         * m4/libintl.m4: Remove.  No longer used.
82675
82676 2001-09-22  Jim Meyering  <meyering@lucent.com>
82677
82678         * lib/localcharset.c: Update from latest gettext.
82679         * lib/config.charset: Likewise.
82680
82681 2001-09-20  Jim Meyering  <meyering@lucent.com>
82682
82683         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
82684         strtoimax.
82685         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
82686         strtoumax.
82687
82688 2001-09-20  Jim Meyering  <meyering@lucent.com>
82689
82690         * lib/xstrtol.c (strtoimax): Guard declaration with
82691         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
82692         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
82693         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
82694         (strtoumax): Likewise, for completeness (it wasn't necessary).
82695
82696 2001-09-17  Paul Eggert  <eggert@twinsun.com>
82697
82698         * lib/strtoimax.c (HAVE_LONG_LONG):
82699         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
82700         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
82701         to work around bug in IBM C compiler.
82702
82703 2001-09-17  Jim Meyering  <meyering@lucent.com>
82704
82705         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
82706         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
82707         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
82708         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
82709         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
82710         whenever the right hand side need not be expanded by the shell.
82711
82712 2001-09-16  Paul Eggert  <eggert@twinsun.com>
82713
82714         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
82715         library.  It's not correct, as some older glibcs are buggy.
82716         fnmatch wasn't fixed until glibc 2.2.
82717
82718         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
82719         special shell magic here.
82720
82721 2001-09-16  Jim Meyering  <meyering@lucent.com>
82722
82723         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
82724         * m4/jm-macros.m4: Require it.
82725
82726 2001-09-16  Jim Meyering  <meyering@lucent.com>
82727
82728         * lib/mkdir.c: New file.
82729
82730 2001-09-15  Jim Meyering  <meyering@lucent.com>
82731
82732         * m4/jm-macros.m4: Check for help2man.
82733
82734 2001-09-11  Jim Meyering  <meyering@lucent.com>
82735
82736         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
82737         The body, by Paul Eggert, was moved here from configure.in.
82738         * m4/jm-macros.m4: Require UTILS_HOST_OS.
82739
82740 2001-09-04  Paul Eggert  <eggert@twinsun.com>
82741
82742         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
82743         (jm_PREREQ): Use it.
82744
82745 2001-09-04  Paul Eggert  <eggert@twinsun.com>
82746
82747         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
82748         Use ssize_t, not int, to store result of readlink.
82749         Check for ssize_t overflow as well as size_t overflow,
82750         as POSIX says the result of readlink is implementation-defined
82751         when ssize_t overflows.
82752         Remove unnecessary cast to char*.
82753         Use free+malloc instead of realloc, as the storage doesn't need
82754         to be preserved and it's clearer and can be more efficient that way.
82755         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
82756         * lib/xreadlink.h (xreadlink): Update prototype.
82757
82758 2001-09-04  Paul Eggert  <eggert@twinsun.com>
82759
82760         * lib/xgetcwd.c: Revert some of the previous change; intead,
82761         fix the HAVE_GETCWD_NULL code to behave more like the
82762         !HAVE_GETCWD_NULL code used to.
82763
82764         Include "xalloc.h".
82765         (xgetcwd): Do not return NULL when memory is exhausted; instead,
82766         invoke xalloc_die.
82767
82768 2001-09-03  Paul Eggert  <eggert@twinsun.com>
82769
82770         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
82771         sys/param.h, as pathmax.h includes them.
82772
82773 2001-09-03  Paul Eggert  <eggert@twinsun.com>
82774
82775         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
82776         (jm_PREREQ_XGETCWD): New macro.
82777
82778         * m4/getcwd.m4: New file.
82779
82780 2001-09-03  Paul Eggert  <eggert@twinsun.com>
82781
82782         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
82783         like the HAVE_GETCWD_NULL code.
82784         Include pathmax.h if not HAVE_GETCWD.
82785         Do not include xalloc.h.
82786         (INITIAL_BUFFER_SIZE): New symbol.
82787         Do not use xmalloc / xrealloc, since the caller is responsible for
82788         handling errors.  Preserve errno around `free' during failure.
82789         Do not overrun buffer when using getwd.
82790
82791 2001-09-03  Paul Eggert  <eggert@twinsun.com>
82792
82793         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
82794         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
82795         getcwd (NULL, 0).
82796
82797 2001-09-03  Paul Eggert  <eggert@twinsun.com>
82798
82799         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
82800         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
82801         spotted by Jim Meyering.
82802
82803 2001-09-03  Jim Meyering  <meyering@lucent.com>
82804
82805         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
82806         failure.
82807
82808 2001-09-02  Jim Meyering  <meyering@lucent.com>
82809
82810         * lib/error.c: Update from GNU libc.
82811
82812 2001-09-01  Jim Meyering  <meyering@lucent.com>
82813
82814         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
82815         Used by df.
82816
82817 2001-09-01  Jim Meyering  <meyering@lucent.com>
82818
82819         * lib/xreadlink.c: New file.
82820         * lib/xreadlink.h: New file.
82821         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
82822         xreadlink.h.
82823
82824         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
82825         doesn't conflict with sparc Solaris 7's definition in
82826         /usr/include/sys/int_types.h.
82827
82828         * lib/exclude.c: Use `""', not `<>' to #include non-system header
82829         files.
82830         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
82831         and strncasecmp as r-values.  Unixware didn't have declarations.
82832
82833 2001-08-31  Paul Eggert  <eggert@twinsun.com>
82834
82835         * lib/xstrtol.h: Add copyright notice.
82836         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
82837         LONGINT_INVALID_SUFFIX_CHAR.
82838
82839 2001-08-31  Paul Eggert  <eggert@twinsun.com>
82840
82841         * lib/xstrtol.c (strtoimax): New decl.
82842
82843 2001-08-31  Paul Eggert  <eggert@twinsun.com>
82844
82845         * lib/xgetcwd.c: Don't include pathmax.h.
82846         Include stdlib.h and unistd.h if available.
82847         Include xalloc.h.
82848         (xmalloc, xstrdup, free): Remove decls.
82849         (xgetcwd): Don't assume sizes fit in unsigned.
82850         Check for overflow when computing sizes.
82851         Simplify reallocation code.
82852
82853 2001-08-31  Paul Eggert  <eggert@twinsun.com>
82854
82855         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
82856         a directory's st_size can have an arbitrary value, so the old
82857         usage could waste an arbitrary amount of memory.  All uses
82858         changed.
82859         * lib/savedir.h: Update prototype.
82860
82861 2001-08-31  Paul Eggert  <eggert@twinsun.com>
82862
82863         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
82864
82865         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
82866         old strtoimax.c.
82867
82868         Also, make the following further changes to make this file's
82869         configuration more similar to that of strtol.c:
82870         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
82871         (strtoumax, uintmax_t, strtoull, strtol): Remove.
82872         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
82873         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
82874         changed to signed values.
82875
82876         And make the following changes as well:
82877         Fix copyright notice, as 1999 was missing.
82878         (verify): New macro.
82879         (strtoimax): Check sizes at compile-time, not run-time.
82880         Prefer strtol to strtoll if both work.
82881         (main): Remove; it was not that useful and was a pain to maintain.
82882
82883         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
82884
82885 2001-08-31  Jim Meyering  <meyering@lucent.com>
82886
82887         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
82888         Use an initial, malloc'd, buffer of length 128 rather than
82889         a statically allocated one of length 1024.
82890
82891 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82892
82893         Simplify code, partly by assuming autoconf 2.52 semantics.
82894
82895         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
82896
82897         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
82898         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
82899         All uses removed.
82900         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
82901         Move AC_REQUIRE to next-to-top level, to avoid confusion.
82902         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
82903         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
82904         jm_AC_HEADER_INTTYPES_H.
82905         * m4/jm-macros.m4 (jm_MACROS): Likewise.
82906
82907         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
82908
82909         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
82910         Quote first arg of AC_DEFUN.
82911         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
82912         since they are needed to parse the include file even if we need
82913         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
82914         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
82915         but with opposite signedness.
82916
82917 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82918
82919         Merge 'exclude' changes from tar 1.13.22.
82920         This fixes one or two unlikely storage allocation overflow bugs,
82921         but doesn't change user-visible behavior otherwise.
82922
82923 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82924
82925         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
82926         (jm_PREREQ_EXCLUDE): New macro.
82927
82928 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82929
82930         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
82931         tm to be declared.
82932
82933 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82934
82935         * lib/hash.c: Remove '2001' from copyright notice.
82936
82937 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82938
82939         * lib/full-write.h: New file.
82940         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
82941         * lib/full-write.c: Correct credits, as cccp.c no longer
82942         exists and anyway it was so heavily changed from the old cccp
82943         code as to be unrecognizable.  Include full-write.h.
82944         (full_write): Return size_t, with short writes meaning failure.
82945         All callers changed.  This fixes a bug with large buffers
82946         on 64-bit hosts.
82947         * lib/utime.c: Include full-write.h.
82948
82949 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82950
82951         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
82952         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
82953         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
82954         Include if available.
82955         (<xalloc.h>): Include
82956         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
82957         (verify): New macro.  Use it to verify that EXCLUDE macros do not
82958         collide with FNM macros.
82959         (struct patopts): New struct.
82960         (struct exclude): Use it, as exclude patterns now come with options.
82961         (new_exclude): Support above changes.
82962         (new_exclude, add_exclude_file):
82963         Initial size must now be a power of two to simplify overflow checking.
82964         (free_exclude, fnmatch_no_wildcards): New function.
82965         (excluded_filename): No longer requires options arg, as the options
82966         are determined by add_exclude.  Now returns bool, not int.
82967         (excluded_filename, add_exclude):
82968         Add support for the fancy new exclusion options.
82969         (add_exclude, add_exclude_file): Now takes int options arg.
82970         Check for arithmetic overflow when computing sizes.
82971         (add_exclude_file): xrealloc might modify errno, so don't
82972         realloc until after errno might be used.
82973
82974         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
82975         New macros.
82976         (free_exclude): New decl.
82977         (add_exclude, add_exclude_file): Now takes int options arg.
82978         (excluded_filename): No longer requires options arg, as the options
82979         are determined by add_exclude.  Now returns bool, not int.
82980
82981 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82982
82983         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
82984
82985 2001-08-27  Jim Meyering  <meyering@lucent.com>
82986
82987         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
82988
82989         * lib/version-etc.c (N_): Remove definition.
82990         Revert most of last change.
82991         Instead, simply don't mark the `Copyright...' string for translation.
82992         Based on advice from Paul Eggert.
82993
82994         * lib/strtoxmax.c: Tweak comment.
82995
82996 2001-08-26  Jim Meyering  <meyering@lucent.com>
82997
82998         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
82999
83000         * m4/xstrtoimax.m4: New file.
83001         * m4/xstrtoumax.m4: Add comments explaining why we
83002         AC_REPLACE_FUNCS(strtol).
83003
83004 2001-08-26  Jim Meyering  <meyering@lucent.com>
83005
83006         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
83007         of copyright with `%s' so translators don't get an untranslated
83008         message in 2002.
83009         (COPYRIGHT_YEAR): Define.
83010         (version_etc): Use fprintf rather than fputs.
83011         Suggestion from Ulrich Drepper.
83012
83013         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
83014
83015         * lib/strtoll.c: New file, from GNU libc.
83016         * lib/xstrtoimax.c: New file.
83017
83018         * lib/xstrtol.h: Add xstrtoimax.
83019         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
83020         * lib/strtoimax.c: New file.  Likewise, but first define
83021         STRTOUXMAX_SIGNED.
83022
83023         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
83024         ...
83025         * lib/strtoxmax.c: ... then renamed to this.
83026
83027 2001-08-18  Paul Eggert  <eggert@twinsun.com>
83028
83029         * m4/inttypes.m4: Add AC_PREREQ(2.13).
83030         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
83031         (jm_AC_TYPE_INTMAX_T): New macro.
83032         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
83033
83034         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
83035
83036         * m4/longlong.m4: Renamed from ulonglong.m4.
83037         * m4/inttypes.m4: Renamed from inttypes_h.m4.
83038         * m4/uintmax_t.m4: Removed.
83039
83040 2001-08-13  Paul Eggert  <eggert@twinsun.com>
83041
83042         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
83043         Port to Solaris 8, where 'sed' requires a space after the 'r'
83044         command, and where sh dislikes "$/".  Clean up the spacing a bit.
83045         Redirect output to $tmp just once.
83046
83047 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
83048
83049         * lib/addext.c (<errno.h>): Include.
83050         (errno): Declare if not defined.
83051         (addext): Work correctly when pathconf returns -1 and leaves
83052         errno alone because there is no limit.  Also, work even if
83053         pathconf returns a value greater than SIZE_MAX.
83054
83055 2001-08-12  Jim Meyering  <meyering@lucent.com>
83056
83057         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
83058         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
83059         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
83060         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
83061         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
83062         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
83063         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
83064         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
83065         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
83066         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
83067         utime.m4, utimes.m4, xstrtoumax.m4:
83068         Quote the first argument in each use of AC_DEFUN.
83069
83070 2001-08-12  Jim Meyering  <meyering@lucent.com>
83071
83072         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
83073         Simply `return getcwd (NULL, 0);'.
83074         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
83075         Use 1300 as initial value for length, not PATH_MAX.
83076
83077         * lib/pathmax.h: Clean up cpp syntax.
83078
83079 2001-08-12  Jim Meyering  <meyering@lucent.com>
83080
83081         * lib/gettimeofday.c: New file.
83082         * lib/gtod.h: New file.
83083         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
83084
83085 2001-08-05  Jim Meyering  <meyering@lucent.com>
83086
83087         * m4/jm-macros.m4: Require autoconf-2.52.
83088
83089 2001-08-04  Jim Meyering  <meyering@lucent.com>
83090
83091         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
83092         stmt, to get in sync with glibc.
83093
83094 2001-08-03  Paul Eggert  <eggert@twinsun.com>
83095
83096         The following changes are from gettext 0.10.39 as maintained by
83097         Bruno Haible.
83098
83099         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
83100         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
83101         with inverted sense.  All uses changed.
83102
83103         * lib/mbswidth.c: Don't include <limits.h>.
83104         Include <stdlib.h> and <string.h> unconditionally.
83105         (iswcntrl, mbsinit, ISCNTRL): New macros.
83106         (mbsnwidth): Use K&R style function declarations.
83107         Don't bother checking for MB_LEN_MAX == 1, since the compiler
83108         can optimize it when MB_CUR_MAX == 1.
83109         The width of control characters is zero, not 1.
83110
83111 2001-08-03  Paul Eggert  <eggert@twinsun.com>
83112
83113         The following changes are from gettext 0.10.39 as maintained by
83114         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
83115
83116         * m4/codeset.m4: Upgrade to serial AM1.
83117         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
83118         all uses changed.  Quote first arg of AC_DEFUN.
83119         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
83120
83121         * m4/iconv.m4: Upgrade to serial AM2.
83122         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
83123         Add --with-libconv-prefix.
83124         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
83125         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
83126         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
83127         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
83128         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
83129
83130         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
83131         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
83132         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
83133         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
83134         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
83135         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
83136         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
83137         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
83138         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
83139
83140         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
83141         string.h any more.
83142
83143         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
83144         not the default value.
83145
83146         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
83147         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
83148         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
83149         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
83150         Also check for iswcntrl, used for wcwidth fallback.
83151         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
83152         to Autoconf 2.13.
83153
83154 2001-08-03  Jim Meyering  <meyering@lucent.com>
83155
83156         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
83157         as it was in the original.  Reported by Paul Eggert.
83158
83159 2001-07-16  Jim Meyering  <meyering@lucent.com>
83160
83161         * m4/gettimeofday.m4: New file.
83162         Prompted by a report from Bernhard Baehr.
83163
83164 2001-07-15  Jim Meyering  <meyering@lucent.com>
83165
83166         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
83167         stuff. Now it's in ../Makefile.cfg.
83168
83169 2001-07-15  Jim Meyering  <meyering@lucent.com>
83170
83171         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
83172         (BUILT_SOURCES): Add unlocked-io.h.
83173         (io_functions): Define.
83174         (unlocked-io.h): New rule.
83175         (DISTCLEANFILES): Add unlocked-io.h.
83176         (all-local): Depend on unlocked-io.h, to ensure it is created.
83177
83178         * lib/unlocked-io.hin: New file
83179
83180         * lib/regex.c: Update from glibc.
83181
83182 2001-07-05  Jim Meyering  <meyering@lucent.com>
83183
83184         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
83185         recommendation.
83186         (libfetish_a_SOURCES): Put all .h files here instead.
83187         Remove a thus-exposed (better checks in automake) duplicate and
83188         two unnecessary .h files.
83189
83190 2001-07-04  Jim Meyering  <meyering@lucent.com>
83191
83192         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
83193         that generates jm-glibc-io.m4 so that it doesn't trigger any make
83194         distcheck failure.
83195
83196 2001-07-02  Jim Meyering  <meyering@lucent.com>
83197
83198         The following changes were prompted by suggestions from Bruno Haible.
83199
83200         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
83201         is now generated.
83202         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
83203         definition of EXTRA_DIST.
83204         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
83205         ensure that the generated file is created/updated whenever the list
83206         of $(unlocked_functions) is changed.
83207         (jm-glibc-io.m4): New rule.
83208         (unlocked-io.h): New rule -- currently unused.
83209
83210 2001-06-24  Jim Meyering  <meyering@lucent.com>
83211
83212         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
83213         unmatched right bracket, rather than kludging it with an extra,
83214         falsely-matching quote in a comment.  Patch by Akim Demaille.
83215
83216 2001-06-11  Jim Meyering  <meyering@lucent.com>
83217
83218         * lib/regex.c: Update from GNU libc.
83219
83220 2001-05-27  Jim Meyering  <meyering@lucent.com>
83221
83222         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
83223         Check for ut_type in struct utmp.
83224
83225 2001-05-27  Jim Meyering  <meyering@lucent.com>
83226
83227         * lib/readutmp.h (UT_TYPE): Define.
83228
83229 2001-05-24  Jim Meyering  <meyering@lucent.com>
83230
83231         * lib/argmatch.c: Include "quote.h".
83232         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
83233         quote function.  Reported by Göran Uddeborg.
83234
83235 2001-05-22  Jim Meyering  <meyering@lucent.com>
83236
83237         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
83238         now that we use the package-supplied version unconditionally.
83239         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
83240
83241 2001-05-21  Jim Meyering  <meyering@lucent.com>
83242
83243         * m4/regex.m4: Change a couple backticks to single quotes to avoid
83244         shell syntax errors.
83245
83246 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
83247
83248         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
83249
83250 2001-05-20  Paul Eggert  <eggert@twinsun.com>
83251
83252         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
83253         Don't bother to check library strftime, since
83254         we'll be using our own my_strftime function anyway.
83255         Define my_strftime instead of strftime.
83256
83257 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
83258
83259         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
83260         which is not yet declared.
83261
83262 2001-05-15  Jim Meyering  <meyering@lucent.com>
83263
83264         * m4/regex.m4: Use proper quoting so brackets appear in the test
83265         program.
83266         Reported by, and with help from, Bruno Haible.
83267
83268 2001-05-13  Jim Meyering  <meyering@lucent.com>
83269
83270         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
83271         undefined.
83272
83273 2001-05-11  Paul Eggert  <eggert@twinsun.com>
83274
83275         dirname code cleanup.  base_name now behaves more compatibly
83276         with POSIX basename when given file names that have trailing
83277         slashes, and similarly for dir_name.  Add new primitives
83278         base_len and dir_len.  Put the directory-name-related decls
83279         into dirname.h.
83280
83281         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
83282         * lib/backupfile.c (base_name): Likewise.
83283         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
83284         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
83285         * lib/makepath.c (strip_trailing_slashes): Likewise.
83286         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
83287         ISSLASH): Likewise.
83288         * lib/rename.c (strip_trailing_slashes): Likewise.
83289         * lib/same.c (base_name): Likewise.
83290         * lib/stripslash.c (ISSLASH): Likewise.
83291
83292         * lib/addext.c: Include <dirname.h> after size_t is defined.
83293         * lib/backupfile.c: Likewise.
83294
83295         * lib/addext.c (addext): Use base_len to trim redundant
83296         trailing slashes instead of doing it ourselves.
83297         But do not trim the last slash if it is not redundant.
83298
83299         * lib/backupfile.c (find_backup_file_name,
83300         max_backup_version): Use base_len instead of rolling it ourselves.
83301         Handle the case of "" and (on DOS) "C:" correctly.
83302
83303         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
83304         needed. Include <string.h>, <dirname.h>.
83305         (base_name): Allow file names ending in slashes, other than names
83306         that are all slashes.  In this case, return the basename followed
83307         by the slashes.  This is more general, and can be used in places
83308         where the original base_name purposely had an assertion failure.
83309         (base_len): New function.
83310
83311         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
83312         Do not include <assert.h>; no longer needed.
83313         Include xalloc.h.
83314         (memrchr): Remove decl.
83315         (dir_name_r): Remove.
83316         (dir_len): Renamed from dirlen.  All callers changed.
83317         Rewrite in terms of base_name, for simplicity and consistency.
83318         (dir_name): Never return NULL.  All callers changed.
83319         Do not include <stdlib.h> in test program; no longer needed.
83320         return 0; is fine for test program.
83321
83322         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
83323         New macros.
83324         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
83325
83326         * lib/path-concat.c (path_concat): Use base_len to compute
83327         base length, not strlen; this means we cannot rely on memcpy
83328         to null-terminate.
83329
83330         * lib/same.c (STREQ): Remove.
83331         (same_name): Handle the case where the basename ends in trailing '/'.
83332
83333         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
83334         a slash was stripped.  Do not strip the last slash after a
83335         file system prefix.
83336
83337 2001-05-11  Paul Eggert  <eggert@twinsun.com>
83338
83339         * lib/Makefile.am (libfetish_a_SOURCES):
83340         Add strftime.c, since we now compile it on all hosts.
83341
83342         * lib/strftime.c (my_strftime):
83343         Define to nstrftime if emacs, but only if my_strftime is not defined.
83344         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
83345         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
83346         Add one more extra argument: a nanoseconds value.
83347         All uses changed.
83348         (ns): New macro.
83349         (my_strftime function): Add %N format.
83350         (emacs_strftimeu): Renamed from emacs_strftime,
83351         with extra ut argument.
83352
83353 2001-05-09  Paul Eggert  <eggert@twinsun.com>
83354
83355         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
83356
83357 2001-04-21  Jim Meyering  <meyering@lucent.com>
83358
83359         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
83360         doesn't interfere.
83361
83362 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
83363
83364         * m4/ftruncate.m4: Check for chsize.
83365         Link with ftruncate.o unconditionally if ftruncate is missing.
83366         This was required when cross-compiling to i586-mingw32msvc.
83367
83368 2001-04-08  Jim Meyering  <meyering@lucent.com>
83369
83370         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
83371         recomputed; that's necessary when the offset spans a DST transition.
83372         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
83373
83374 2001-04-02  Jim Meyering  <meyering@lucent.com>
83375
83376         * lib/regex.h, regex.c: Update from GNU libc.
83377
83378 2001-03-24  Jim Meyering  <meyering@lucent.com>
83379
83380         * m4/jm-macros.m4: Require autoconf-2.49d.
83381
83382 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
83383
83384         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
83385
83386 2001-03-19  Paul Eggert  <eggert@twinsun.com>
83387
83388         * lib/version-etc.c (version_etc_copyright): Update to 2001.
83389
83390 2001-03-17  Jim Meyering  <meyering@lucent.com>
83391
83392         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
83393         now that the version in autoconf is equivalent.
83394         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
83395
83396         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
83397         Suggestion from Akim Demaille.
83398
83399         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
83400         (jm_PREREQ_TEMPNAME): New function.
83401
83402 2001-03-16  Paul Eggert  <eggert@twinsun.com>
83403
83404         * lib/tempname.c (uint64_t): Define to uintmax_t if
83405         not defined, and if UINT64_MAX is not defined.
83406         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
83407         Reported by John David Anglin.
83408
83409 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
83410
83411         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
83412         resolve alias if codeset is empty.
83413         * lib/config.charset (BeOS): Use wildcard syntax.
83414
83415 2001-03-13  Jim Meyering  <meyering@lucent.com>
83416
83417         * lib/path-concat.c (path_concat)
83418         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
83419         concatenating e.g., `C:' and `foo'.
83420         From Bruno Haible.
83421
83422 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
83423
83424         * lib/localcharset.c (locale_charset): Don't use
83425         setlocale(LC_CTYPE,NULL). Don't return NULL.
83426         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
83427
83428 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
83429
83430         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
83431         support for DOS/DJGPP.
83432
83433 2001-03-01  Paul Eggert  <eggert@twinsun.com>
83434
83435         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
83436         lacks mkstemp.  Compile our own tempname.c if we compile our own
83437         mkstemp.c, as mkstemp relies on tempname.
83438
83439 2001-03-01  Jim Meyering  <meyering@lucent.com>
83440
83441         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
83442         AH_VERBATIM really does output its argument verbatim.
83443
83444 2001-02-28  Paul Eggert  <eggert@twinsun.com>
83445
83446         * lib/Makefile.am (libfetish_a_SOURCES):
83447         Add dup-safer.c, fopen-safer.c.
83448         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
83449
83450         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
83451         * lib/unistd-safer.h: New files.
83452
83453 2001-02-25  Paul Eggert  <eggert@twinsun.com>
83454
83455         The mkstemp replacement is taken from glibc 2.2.2, with some
83456         portability fixes for use outside glibc, as follows:
83457
83458         * lib/tempname.c (struct_stat64): New macro.
83459         (direxists, __gen_tempname): Use it.
83460         This avoids a portability problem with Solaris 8.
83461
83462         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
83463         (<stddef.h>, <stdint.h>, <string.h>):
83464         Include only if STDC_HEADERS || _LIBC.
83465         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
83466         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
83467         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
83468         (__set_errno): Define this macro if <errno.h> doesn't.
83469         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
83470         Define these macros if <stdio.h> doesn't.
83471         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
83472         Define these macros if <sys/stat.h>
83473         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
83474         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
83475         __xstat64): Define if not _LIBC.
83476         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
83477         (__gen_tempname): Invoke gettimeofday only if
83478         HAVE_GETTIMEOFDAY || _LIBC;
83479         otherwise, fall back on plain "time".
83480         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
83481
83482         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
83483
83484         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
83485
83486 2001-02-18  Paul Eggert  <eggert@twinsun.com>
83487
83488         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
83489
83490 2001-02-17  Paul Eggert  <eggert@twinsun.com>
83491
83492         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
83493         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
83494         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
83495         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
83496
83497 2001-02-17  Paul Eggert  <eggert@twinsun.com>
83498
83499         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
83500         Remove workaround macros for hosts that have mbrtowc but not
83501         mbstate_t, as we now insist on proper declarations for both
83502         before using mbrtowc.
83503
83504 2001-02-17  Jim Meyering  <meyering@lucent.com>
83505
83506         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
83507         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
83508         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
83509         UnixWare 7.1.1.
83510
83511         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
83512         rather than AC_CACHE_VAL.
83513
83514 2001-02-17  Jim Meyering  <meyering@lucent.com>
83515
83516         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
83517         around included file name.
83518
83519         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
83520
83521         * lib/strftime.c: Update from GNU libc (the only changes were to
83522         comments).
83523
83524 2001-02-17  Jim Meyering  <meyering@lucent.com>
83525
83526         * lib/regex.c: Update from libc.
83527
83528 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
83529
83530         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
83531         clash.
83532
83533 2001-02-16  Paul Eggert  <eggert@twinsun.com>
83534
83535         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
83536         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
83537         Reported by Mark Hounschell via Paul Eggert.
83538
83539 2001-02-07  Jim Meyering  <meyering@lucent.com>
83540
83541         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
83542
83543 2001-02-05  Jim Meyering  <meyering@lucent.com>
83544
83545         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
83546         it includes the patch required for `large file' support with at least
83547         HP-UX's 10.20 /bin/cc.
83548
83549 2001-02-03  Jim Meyering  <meyering@lucent.com>
83550
83551         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
83552         AS_IF, now that it works once again (mysteriously).
83553         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
83554
83555 2001-01-30  Jim Meyering  <meyering@lucent.com>
83556
83557         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
83558         * m4/chown.m4: Rename conftestchown to conftest.chown.
83559         * m4/rename.m4: s/conftestdir/conftest.d1/ and
83560         s/conftestdir2/conftest.d2/.
83561         * m4/utimes.m4: s/conftestdata/conftest.data/
83562         Inspired by Pavel Roskin's change in autoconf.
83563
83564 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
83565
83566         * lib/config.charset: Update for FreeBSD 4.2.
83567
83568 2001-01-27  Jim Meyering  <meyering@lucent.com>
83569
83570         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
83571         a use of AS_IF.
83572         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
83573
83574 2001-01-26  Jim Meyering  <meyering@lucent.com>
83575
83576         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
83577         quotearg.c includes it.
83578
83579 2001-01-26  Jim Meyering  <meyering@lucent.com>
83580
83581         * lib/quotearg.c: Include stddef.h.
83582         * lib/quote.c: Include stddef.h.
83583         Reported by Axel Kittenberger.
83584
83585         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
83586         line in double quotes so that it evokes a better diagnostic.
83587         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
83588         Reported by Axel Kittenberger.
83589
83590 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
83591
83592         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
83593         as if it was a `charset'.
83594
83595 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
83596
83597         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
83598         has const.
83599
83600 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
83601
83602         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
83603         to avoid a warning.  Add back 'const' to inptr.
83604
83605 2001-01-20  Jim Meyering  <meyering@lucent.com>
83606
83607         Be sure that headers are checked before used in code compiled
83608         for the type checks.
83609         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
83610         In place of that, invoke jm_CHECK_ALL_TYPES.
83611         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
83612         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
83613         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
83614         The check for ssize_t was mistakenly run before the test for unistd.h.
83615
83616         The configure-time check for stdbool.h was missing.
83617         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
83618         (jm_PREREQ_HASH): New function.
83619
83620 2001-01-17  Jim Meyering  <meyering@lucent.com>
83621
83622         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
83623         for autoconf-2.49c.
83624         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
83625
83626 2001-01-16  Jim Meyering  <meyering@lucent.com>
83627
83628         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
83629         From Bruno Haible.
83630
83631 2001-01-14  Jim Meyering  <meyering@lucent.com>
83632
83633         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
83634         foo and bar.  Create conftestdir/ in the script, not in the C code.
83635         Remove directories in the script, not in the C code.
83636         Remove conftestdir{,2} before trying to create the directory.
83637         Make the entire configure script fail if the mkdir fails.
83638
83639 2001-01-14  Jim Meyering  <meyering@lucent.com>
83640
83641         * lib/rename.c: New file.  From Volker Borchert.
83642         Include stdlib.h, string.h or strings.h, and xalloc.h.
83643         Use strip_trailing_slashes rather than open-coding it.
83644
83645 2001-01-03  Paul Eggert  <eggert@twinsun.com>
83646
83647         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
83648
83649 2001-01-03  Jim Meyering  <meyering@lucent.com>
83650
83651         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
83652         of local `inptr' to avoid warning with some system declarations of
83653         iconv.
83654
83655 2001-01-02  Volker Borchert  <bt@teknon.de>
83656
83657         * m4/rename.m4: New file.
83658         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
83659
83660 2001-01-01  Jim Meyering  <meyering@lucent.com>
83661
83662         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
83663         even on systems with utmpx.h.  It's necessary for the declaration of
83664         utmp's ut_user member.  Reported by Andreas Jaeger.
83665
83666         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
83667         available. They are required for the declarations of getgrgid and
83668         getpwuid resp.
83669         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
83670         Reported by Andreas Jaeger.
83671
83672 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
83673
83674         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
83675         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
83676         so `make install' also works in VPATH builds.
83677
83678 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
83679
83680         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
83681         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
83682         can be used in subdirectories.
83683
83684 2000-12-29  Paul Eggert  <eggert@twinsun.com>
83685
83686         * lib/modechange.c: Do not assume that mode_t uses the
83687         traditional octal encoding.  E.g. "chmod 1 FOO" should set
83688         the other-execute bit of FOO even if S_IXOTH != 1.
83689
83690         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
83691         WOTH, XOTH, ALLM): New macros.
83692         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
83693          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
83694         Use them.
83695         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
83696         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
83697         (mode_compile):
83698         No need to use uintmax_t; unsigned long is long enough.
83699         Don't bother to get suffix since we don't use it.
83700
83701 2000-12-26  Jim Meyering  <meyering@lucent.com>
83702
83703         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
83704         better with autoheader.
83705
83706 2000-12-24  Jim Meyering  <meyering@lucent.com>
83707
83708         * lib/hash.c (is_prime): Return explicit boolean values.
83709         (hash_get_first): Return NULL to appease Irix5.6's 89.
83710         Reported by Nelson Beebe.
83711
83712 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
83713
83714         * lib/localcharset.c (locale_charset): Add support for Win32.
83715
83716 2000-12-18  Paul Eggert  <eggert@twinsun.com>
83717
83718         * lib/physmem.h, lib/physmem.c: New files.
83719
83720         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
83721         (noinst_HEADERS): Add physmem.h.
83722
83723         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
83724         't' for compatibility with Solaris 8 sort.
83725
83726 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
83727
83728         * lib/config.charset: Add support for BeOS.
83729
83730 2000-12-17  Jim Meyering  <meyering@lucent.com>
83731
83732         * m4/dos.m4 (jm_AC_DOS): New file and macro.
83733         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
83734
83735 2000-12-16  Jim Meyering  <meyering@lucent.com>
83736
83737         This bug had a serious impact on chown: `chown N:M FILE' (for integer
83738         N and M) would have treated it like `chown N:N FILE'.
83739
83740         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
83741
83742 2000-12-16  Jim Meyering  <meyering@lucent.com>
83743
83744         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
83745         SHELLS_FILE to a file name that's useful on djgpp systems.
83746         Include stdlib.h.
83747         (ADDITIONAL_DEFAULT_SHELLS): Define.
83748         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
83749         Based mostly on a patch from Prashant TR.
83750
83751 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
83752
83753         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
83754         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
83755         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
83756
83757 2000-12-08  Andreas Schwab  <schwab@suse.de>
83758
83759         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
83760         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
83761
83762 2000-12-07  Jim Meyering  <meyering@lucent.com>
83763
83764         * lib/stripslash.c (ISSLASH): Define.
83765         (strip_trailing_slashes): Use ISSLASH rather than comparing against
83766         `/'.
83767         From Prashant TR.
83768
83769         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
83770         (dir_name_r): Declare this function as static.
83771         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
83772         manifest itself on a name containing a mix of slashes and
83773         backslashes.
83774         Make this function work with names starting with a DOS-style
83775         drive letter and colon prefix.
83776         (dir_name): Append `.' if necessary.
83777         Based mostly on patches from Prashant TR and Eli Zaretskii.
83778
83779         * lib/dirname.h (dir_name_r): Remove prototype.
83780
83781 2000-12-06  Paul Eggert  <eggert@twinsun.com>
83782
83783         * m4/off_t-format.m4: Remove this file.
83784         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
83785
83786 2000-12-06  Jim Meyering  <meyering@lucent.com>
83787
83788         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
83789         replacement strtoull, we may well need the replacement strtoul, too.
83790         Check for declarations of strtoul and strtoull.
83791         Check for strtol.  Mainly as a cue to cause automake to include
83792         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
83793         Check for limits.h -- strtol.c needs it.
83794
83795 2000-12-05  Jim Meyering  <meyering@lucent.com>
83796
83797         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
83798
83799 2000-12-04  Jim Meyering  <meyering@lucent.com>
83800
83801         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
83802         Also include memory.h, stdlib.h, unistd.h if appropriate.
83803         Reported by Andreas Jaeger (conflicting declaration of malloc).
83804
83805 2000-12-02  Jim Meyering  <meyering@lucent.com>
83806
83807         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
83808         * m4/jm-macros.m4 (jm_MACROS): require it.
83809
83810 2000-12-02  Jim Meyering  <meyering@lucent.com>
83811
83812         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
83813
83814 2000-12-01  Paul Eggert  <eggert@twinsun.com>
83815
83816         * lib/memrchr.c: Include <config.h> before any system include file.
83817
83818 2000-11-30  Jim Meyering  <meyering@lucent.com>
83819
83820         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
83821
83822 2000-11-30  Jim Meyering  <meyering@lucent.com>
83823
83824         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
83825
83826 2000-11-29  Paul Eggert  <eggert@twinsun.com>
83827
83828         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
83829
83830 2000-11-26  Jim Meyering  <meyering@lucent.com>
83831
83832         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
83833
83834 2000-11-22  Paul Eggert  <eggert@twinsun.com>
83835
83836         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
83837         size of (size_t) -1; it's not portable.
83838
83839 2000-11-17  Jim Meyering  <meyering@lucent.com>
83840
83841         * lib/strstr.c: Update from GNU libc.
83842
83843 2000-11-17  Akim Demaille  <akim@epita.fr>
83844
83845         * lib/obstack.h: Formatting changes.
83846         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
83847         prevent type checking.
83848         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
83849         cast the value to (void *): assigning a `foo *' to a `void *'
83850         variable is valid.
83851         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
83852
83853 2000-11-16  Jim Meyering  <meyering@lucent.com>
83854
83855         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
83856
83857 2000-11-11  Jim Meyering  <meyering@lucent.com>
83858
83859         * lib/error.c: Add a couple #includes, merging from GNU libc version.
83860
83861 2000-11-10  Jim Meyering  <meyering@lucent.com>
83862
83863         * lib/obstack.h: Update from GNU libc.
83864         * lib/obstack.c: Likewise.
83865
83866 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
83867
83868         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
83869
83870 2000-11-06  Paul Eggert  <eggert@twinsun.com>
83871
83872         * lib/getusershell.c (setusershell): Use rewind rather than
83873         fseek/fseeko, to avoid configuration hassles with fseeko.
83874         Don't bother opening SHELLS_FILE if shellstream is NULL;
83875         it's not necessary.
83876
83877 2000-11-05  Jim Meyering  <meyering@lucent.com>
83878
83879         * lib/makepath.h (make_dir): Declare.
83880         * lib/makepath.c (make_dir): Remove `static' attribute.
83881         Tweak a comment.
83882
83883 2000-11-04  Jim Meyering  <meyering@lucent.com>
83884
83885         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
83886
83887 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
83888
83889         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
83890         last one in a bucket, advance to the next bucket.
83891
83892 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
83893
83894         * lib/fnmatch.c: Do not comment out all the code if we are using
83895         the GNU C library, because in some cases we are replacing buggy
83896         code in the GNU C library itself.
83897
83898 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
83899
83900         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
83901         (regex_compile): Catch bogus \(\1\).
83902
83903 2000-10-30  Paul Eggert  <eggert@twinsun.com>
83904
83905         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
83906         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
83907         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
83908
83909 2000-10-30  Paul Eggert  <eggert@twinsun.com>
83910
83911         * lib/error.h, getline.h, modechange.h:
83912         Remove "2000" from Copyright line, as the file hasn't been
83913         changed this year other than in the copyright notice.
83914
83915         * lib/xalloc.h: Add "2000" to Copyright line, as this file
83916         was changed this year.
83917
83918 2000-10-29  Jim Meyering  <meyering@lucent.com>
83919
83920         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
83921         renaming.
83922         * m4/ls-mntd-fs.m4: Likewise
83923
83924 2000-10-29  Jim Meyering  <meyering@lucent.com>
83925
83926         * lib/xstat.in: Fix grammar in comment.
83927
83928 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
83929
83930         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
83931         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
83932         doesn't define __restrict_arr.
83933
83934 2000-10-28  Jim Meyering  <meyering@lucent.com>
83935
83936         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
83937         (jm_PREREQ_MEMCHR): New function.
83938
83939 2000-10-28  Jim Meyering  <meyering@lucent.com>
83940
83941         * lib/memchr.c: Update from libc.
83942         Adjust for portability:
83943         [HAVE_STDLIB_H]: Include stdlib.h.
83944         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
83945         Undef __memchr, too.
83946         [!weak_alias]: Define __memchr to memchr.
83947
83948         * lib/regex.c: Update from libc.
83949         * lib/regex.h: Likewise.
83950         * lib/getopt1.c: Likewise.
83951         * lib/memcmp.c: Likewise.
83952
83953         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
83954         Avoid using fseek, when possible -- it's broken by design.
83955         Patch by Ulrich Drepper.
83956
83957 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
83958
83959         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
83960         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
83961         Giving in to popular pressure to shut up the compiler with casts.
83962
83963 2000-10-26  Jim Meyering  <meyering@lucent.com>
83964
83965         * lib/strftime.c: Update from libc.
83966
83967 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
83968
83969         * regex.c: More `unsigned char' -> `re_char' changes.
83970         Also change several `int' into `re_wchar_t'.
83971         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
83972         (PUSH_FAILURE_POINTER): Don't cast any more.
83973         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
83974         We want GCC to complain, since this piece of code makes
83975         re_match non-reentrant, which *should* be fixed.
83976         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
83977         (EXTEND_BUFFER): Use RETALLOC.
83978         (SET_LIST_BIT): Don't cast.
83979         (re_wchar_t): New type.
83980         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
83981         that those two functions will always properly return.
83982         (IMMEDIATE_QUIT_CHECK): Cast to void.
83983         (analyse_first): Use recursion rather than an explicit stack.
83984         (re_compile_fastmap): Can't fail anymore.
83985         (re_search_2): Don't check re_compile_fastmap for failure.
83986         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
83987         Now also sets the new value (passed in a new argument).
83988         (re_match_2_internal): Use it.
83989         Also, use a new var `reg' of type size_t when looping through regs
83990         rather than reuse the inappropriate `mcnt'.
83991
83992 2000-10-25  Jim Meyering  <meyering@lucent.com>
83993
83994         * lib/obstack.c: Update from libc.
83995
83996 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
83997
83998         * regex.c (regex_compile): Change the way of handling a range from
83999         a char less than 256 to a char not less than 256.
84000
84001 2000-10-24  Andrew Innes  <andrewi@gnu.org>
84002
84003         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
84004         NT-Emacs only.
84005         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
84006         so that re_search functions only quit when callers expect them to.
84007
84008 2000-10-23  Jim Meyering  <meyering@lucent.com>
84009
84010         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
84011         wrong.  That set_locale call must not have any side effects.
84012         From Paul Eggert.
84013
84014 2000-10-22  Jim Meyering  <meyering@lucent.com>
84015
84016         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
84017         [CYCLIC]: Remove now-unused definition.
84018
84019         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
84020         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
84021         Suggestion from Ulrich Drepper.
84022
84023 2000-10-21  Jim Meyering  <meyering@lucent.com>
84024
84025         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
84026         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
84027         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
84028
84029 2000-10-21  Jim Meyering  <meyering@lucent.com>
84030
84031         * lib/dirname.c (memrchr): Declare if necessary.
84032         (dir_name): Remove the restriction that there be no
84033         trailing slashes.  Now, this code skips past them, effectively
84034         ignoring them.
84035         [TEST_DIRNAME] (main): New unit tests.
84036
84037         * lib/memrchr.c: New file from GNU libc.
84038         Undef __memrchr, too.
84039         [!weak_alias]: Define __memrchr to memrchr.
84040         Guard weak_alias use with `#ifdef weak_alias'.
84041
84042 2000-10-21  Jim Meyering  <meyering@lucent.com>
84043
84044         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
84045         (dir_name): Use dir_name_r.
84046         * lib/dirname.h (dir_name_r): Declare it.
84047
84048 2000-10-17  Jim Meyering  <meyering@lucent.com>
84049
84050         * lib/quote.h (PARAMS): Define and use.
84051         Reported by Akim Demaille.
84052
84053         * lib/getopt.c: Update from libc.
84054
84055 2000-10-16  Jim Meyering  <meyering@lucent.com>
84056
84057         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
84058         setlocale.
84059         From Jan Fedak.
84060
84061 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
84062
84063         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
84064
84065 2000-09-25  Jim Meyering  <meyering@lucent.com>
84066
84067         * lib/md5.h (rol): Define (from GnuPG).
84068
84069         * lib/sha.c: Give credit (GnuPG) where due.
84070         (M): Use rol rather than open-coding it.
84071         Add a FIXME comment.
84072
84073 2000-09-21  Jim Meyering  <meyering@lucent.com>
84074
84075         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
84076         Reported by Michael Stone.
84077
84078 2000-09-20  Jim Meyering  <meyering@lucent.com>
84079
84080         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
84081         (noinst_HEADERS): Add sha.h.
84082         Based on code from Scott G. Miller and from GnuPG.
84083
84084 2000-09-18  Jim Meyering  <meyering@lucent.com>
84085
84086         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
84087         LIBS. Otherwise, everyone ends up linking with -lelf for some
84088         configurations.
84089         Reported by Mike Stone.
84090
84091 2000-09-15  Jim Meyering  <meyering@lucent.com>
84092
84093         * lib/regex.c: Update from libc.
84094
84095 2000-09-10  Jim Meyering  <meyering@lucent.com>
84096
84097         * lib/getopt.c (_getopt_internal): Update from glibc.
84098
84099 2000-09-09  Jim Meyering  <meyering@lucent.com>
84100
84101         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
84102         think it should be used as a general replacement for isascii.
84103         * lib/fnmatch.c: Likewise.
84104         * lib/mbswidth.c: Likewise
84105         * lib/regex.c: Likewise.
84106
84107         Don't use atoi.
84108         * lib/userspec.c: Include sys/param.h and limits.h.
84109         Include xstrtol.h.
84110         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
84111         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
84112         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
84113         UID, GID.  Check range.
84114
84115 2000-09-06  Jim Meyering  <meyering@lucent.com>
84116
84117         * lib/getopt.c (_getopt_internal): Update from glibc.
84118
84119 2000-08-30  Jim Meyering  <meyering@lucent.com>
84120
84121         * lib/strftime.c: Merge in changes from GNU libc.
84122
84123 2000-08-26  Jim Meyering  <meyering@lucent.com>
84124
84125         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
84126         * m4/fpending.m4: New file.
84127
84128 2000-08-26  Jim Meyering  <meyering@lucent.com>
84129
84130         * lib/closeout.c: Include "__fpending.h".
84131         (close_stdout_status): Return right away if there's nothing to flush.
84132
84133         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
84134         * lib/__fpending.c: New file.
84135         * lib/__fpending.h: New file.
84136
84137 2000-08-20  Jim Meyering  <meyering@lucent.com>
84138
84139         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
84140         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
84141         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
84142
84143 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
84144
84145         Improve fileutils installation on systems where running
84146         programs (like install) can't be unlinked.
84147         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
84148         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
84149
84150 2000-08-07  Paul Eggert  <eggert@twinsun.com>
84151
84152         Standardize on "memory exhausted" instead of "Memory exhausted"
84153         or "virtual memory exhausted".
84154         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
84155         "virtual memory exhausted".
84156         * lib/same.c (same_name): Invoke xalloc_die instead of printing
84157         our own message.
84158         * lib/userspec.c (parse_user_spec): Likewise.
84159         * lib/bumpalloc.h: comment fix
84160         * lib/same.c, userspec.c: Include xalloc.h.
84161
84162         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
84163         not char *const and pointing to a constant array.
84164         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
84165         (xrealloc): Comment fix.
84166
84167         * lib/userspec.c (parse_user_spec):
84168         Don't translate a message until just before returning,
84169         to avoid unnecessary translation.
84170
84171 2000-08-07  Jim Meyering  <meyering@lucent.com>
84172
84173         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
84174         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
84175         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
84176         getgroups.c, gethostname.c, getopt.h, group-member.c,
84177         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
84178         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
84179         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
84180         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
84181         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
84182         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
84183         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
84184         yesno.c: Back out Copyright date changes for each file with no change
84185         this year.  This eases coordination with other programs using the same
84186         source code modules.  From Paul Eggert.
84187
84188 2000-08-06  Paul Eggert  <eggert@twinsun.com>
84189
84190         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
84191         not char, for compatibility with glibc 2.1.3 strftime.c.
84192
84193 2000-08-03  Greg McGary  <greg@mcgary.org>
84194
84195         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
84196         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
84197         (EXTEND_BUFFER): Use them.
84198
84199 2000-08-01  Jim Meyering  <meyering@lucent.com>
84200
84201         * lib/dirname.c (ISSLASH): Define.
84202         (BACKSLASH_IS_PATH_SEPARATOR): Define.
84203         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
84204         both `\' and `/' may be use as path separators.
84205         Based on a patch from Prashant TR.
84206
84207 2000-07-31  Paul Eggert  <eggert@twinsun.com>
84208
84209         * lib/quotearg.c (quotearg_n_options): Don't make the initial
84210         slot vector a constant, since it might get modified.
84211
84212 2000-07-31  Jim Meyering  <meyering@lucent.com>
84213
84214         * lib/xmalloc.c: Use `virtual memory exhausted', not
84215         `Memory exhausted'.
84216         * lib/obstack.c (print_and_abort): Likewise.
84217
84218 2000-07-30  Paul Eggert  <eggert@twinsun.com>
84219
84220         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
84221         buffer, so that the caller can always quote one small
84222         component of a "memory exhausted" message in slot 0.
84223         From a suggestion by Jim Meyering.
84224
84225 2000-07-30  Jim Meyering  <meyering@lucent.com>
84226
84227         * lib/makepath.c (make_path): Quote the other instance, too.
84228
84229         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
84230         (STATIC_BUF_SIZE): Define.
84231         (quotearg_n_options): Use only statically allocated storage when
84232         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
84233         than STATIC_BUF_SIZE.
84234
84235 2000-07-29  Jim Meyering  <meyering@lucent.com>
84236
84237         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
84238         * lib/dirname.c (dir_name): Likewise.
84239
84240         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
84241         `/'.
84242
84243         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
84244         (dir_name): Assert that there are no trailing slashes.
84245
84246 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
84247
84248         * lib/mbswidth.h (mbswidth): Add a flags argument.
84249         (mbswidth): New declaration.
84250         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
84251         * lib/mbswidth.c (mbswidth): Add a flags argument.
84252         (mbsnwidth): New function.
84253
84254 2000-07-24  Jim Meyering  <meyering@lucent.com>
84255
84256         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
84257
84258 2000-07-23  Paul Eggert  <eggert@twinsun.com>
84259
84260         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
84261
84262 2000-07-23  Paul Eggert  <eggert@twinsun.com>
84263
84264         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
84265         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
84266         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
84267         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
84268         invoke multibyte primitives.
84269
84270 2000-07-23  Paul Eggert  <eggert@twinsun.com>
84271
84272         * lib/quotearg.c:
84273         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
84274         so that mbstate_t is always defined.
84275
84276         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
84277         be 1 in at least one GCC installation, and this configuration
84278         error is likely to be common.  Ignoring MB_LEN_MAX hurts
84279         performance on hosts that have mbrtowc but have only unibyte
84280         locales, but I assume these hosts are rare.
84281
84282 2000-07-23  Paul Eggert  <eggert@twinsun.com>
84283
84284         * lib/mbswidth.c (_XOPEN_SOURCE):
84285         Don't define; this causes problems on Solaris 7.
84286         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
84287
84288 2000-07-23  Jim Meyering  <meyering@lucent.com>
84289
84290         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
84291         too: getgrgid, getpwuid, getuid.
84292
84293 2000-07-23  Jim Meyering  <meyering@lucent.com>
84294
84295         * lib/basename.c (base_name): Add an assertion.
84296
84297 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
84298
84299         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
84300         shadow its mbsinit function.
84301
84302 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
84303
84304         * lib/mbswidth.h: New file.
84305         * lib/mbswidth.c: New file.
84306         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
84307         (noinst_HEADERS): Add mbswidth.h.
84308
84309 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
84310
84311         * lib/config.charset: Add support for FreeBSD. Improve support for
84312         HP-UX and IRIX 6.
84313
84314 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
84315
84316         * m4/mbswidth.m4: New file.
84317         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
84318
84319 2000-07-15  Jim Meyering  <meyering@lucent.com>
84320
84321         * lib/makepath.c: Include quote.h.
84322         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
84323         corresponding argument in a `quote (...)' call.
84324         Give better diagnostics.
84325
84326         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
84327         (noinst_HEADERS): Add quote.h.
84328
84329         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
84330         from tar's src/misc.c.
84331         * lib/quote.h: New file.  Prototypes for same.
84332
84333 2000-07-14  Paul Eggert  <eggert@twinsun.com>
84334
84335         From a suggestion by Bruno Haible.
84336         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
84337         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
84338         to decide whether to define the BeOS workaround macro;
84339         this adjusts to the change to AC_MBSTATE_T.
84340
84341 2000-07-14  Jim Meyering  <meyering@lucent.com>
84342
84343         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
84344         jm_AC_TYPE_UINTMAX_T.
84345
84346 2000-07-13  Paul Eggert  <eggert@twinsun.com>
84347
84348         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
84349
84350         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
84351         quotearg_buffer_restyled): Add support for
84352         clocale_quoting_style.  Undo previous change to
84353         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
84354         and "{RIGHT QUOTATION MARK}" msgids.
84355
84356 2000-07-10  Paul Eggert  <eggert@twinsun.com>
84357
84358         From a suggestion by Bruno Haible.
84359         * m4/mbstate_t.m4 (AC_MBSTATE_T):
84360         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
84361         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
84362         and mbstate_t, to a single-part test that simply defines mbstate_t.
84363         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
84364         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
84365
84366 2000-07-10  Jim Meyering  <meyering@lucent.com>
84367
84368         * m4/strerror_r.m4: Mirror the correction made in autoconf.
84369
84370         * m4/gnu-source.m4: Output to confdefs.h directly.
84371         Suggestion from Akim Demaille.
84372
84373 2000-07-09  Paul Eggert  <eggert@twinsun.com>
84374
84375         The old behavior of quoting `like this' doesn't look good with
84376         newer, ISO-style fonts.  See:
84377         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
84378
84379         Instead, quote "like this" by default.  Let the translator
84380         tailor the locale-specific quoting behavior by providing
84381         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
84382
84383         * lib/quotearg.c (N_): New macro.
84384         (gettext_default): New function.
84385         (quotearg_buffer_restyled): Use
84386         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
84387         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
84388
84389 2000-07-09  Jim Meyering  <meyering@lucent.com>
84390
84391         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
84392         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
84393
84394         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
84395         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
84396
84397 2000-07-09  Jim Meyering  <meyering@lucent.com>
84398
84399         * lib/Most files: Update copyright dates to include 2000.
84400
84401 2000-07-08  Jim Meyering  <meyering@lucent.com>
84402
84403         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
84404         if not defined.
84405         (xgethostname): Remove now-unnecessary #ifdef.
84406         Move declaration of `err' into loop where it's used.
84407
84408 2000-07-05  Paul Eggert  <eggert@twinsun.com>
84409         and Bruno Haible  <haible@clisp.cons.org>
84410
84411         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
84412         only if the test for an object-type mbstate_t fails.  This
84413         prevents us from mistakenly reporting that mbstate_t is a
84414         system object type after we "#define mbstate_t int" to work
84415         around its lack.
84416
84417 2000-07-05  Paul Eggert  <eggert@twinsun.com>
84418         and Bruno Haible  <haible@clisp.cons.org>
84419
84420         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
84421
84422 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
84423
84424         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
84425         to strerror_r.
84426         Include <ctype.h> for use of isalpha.
84427
84428 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
84429
84430         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
84431         by allocating a larger buffer. Test the gethostname return value for
84432         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
84433         returns an error and ENAMETOOLONG isn't defined.
84434
84435 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
84436
84437         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
84438         dimension.
84439
84440 2000-07-04  Jim Meyering  <meyering@lucent.com>
84441
84442         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
84443         of the deprecated AC_CHECKING.
84444
84445 2000-07-04  Jim Meyering  <meyering@lucent.com>
84446
84447         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
84448         Reported by Bruno Haible.
84449
84450 2000-07-04  Jim Meyering  <meyering@lucent.com>
84451
84452         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
84453         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
84454         lacks mbrtowc.
84455
84456 2000-07-03  Paul Eggert  <eggert@twinsun.com>
84457
84458         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
84459         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
84460
84461 2000-07-03  Paul Eggert  <eggert@twinsun.com>
84462         and Bruno Haible  <haible@clisp.cons.org>
84463
84464         * lib/quotearg.c (mbrtowc):
84465         Assign to *pwc, and return 1 only if result is nonzero.
84466         (iswprint): Use ISPRINT when substituting our own mbrtowc.
84467
84468 2000-07-03  Jim Meyering  <meyering@lucent.com>
84469
84470         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
84471
84472 2000-07-03  Jim Meyering  <meyering@lucent.com>
84473
84474         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
84475         This is necessary to get a definition of e.g., UTMP_FILE on
84476         HP-UX 10.20.
84477         From Bob Proulx.
84478
84479 2000-07-02  Jim Meyering  <meyering@lucent.com>
84480
84481         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
84482
84483         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
84484         AC_LIBOBJ(function_name).
84485         * m4/chown.m4: Likewise.
84486         * m4/fnmatch.m4: Likewise.
84487         * m4/ftruncate.m4: Likewise.
84488         * m4/getgroups.m4: Likewise.
84489         * m4/getline.m4: Likewise.
84490         * m4/group-member.m4: Likewise.
84491         * m4/jm-macros.m4: Likewise.
84492         * m4/lstat.m4: Likewise.
84493         * m4/malloc.m4: Likewise.
84494         * m4/memcmp.m4: Likewise.
84495         * m4/nanosleep.m4: Likewise.
84496         * m4/putenv.m4: Likewise.
84497         * m4/realloc.m4: Likewise.
84498         * m4/regex.m4: Likewise.
84499         * m4/stat.m4: Likewise.
84500         * m4/strftime.m4: Likewise.
84501
84502 2000-07-02  Jim Meyering  <meyering@lucent.com>
84503
84504         * lib/quotearg.c (mbstate_t): Don't define here.
84505
84506 2000-07-02  Jim Meyering  <meyering@lucent.com>
84507
84508         * lib/nanosleep.c (SIGCONT): Define if not already defined.
84509
84510 2000-07-01  Jim Meyering  <meyering@lucent.com>
84511
84512         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
84513
84514 2000-07-01  Jim Meyering  <meyering@lucent.com>
84515
84516         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
84517         problem.
84518
84519 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
84520
84521         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
84522         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
84523
84524 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
84525
84526         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
84527         per change in ../m4/ls-mntd-fs.m4.
84528         (read_filesystem_list): Ignore symbolic links.
84529
84530 2000-06-29  Jim Meyering  <meyering@lucent.com>
84531
84532         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
84533         for declaration of strcmp.
84534
84535         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
84536
84537         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
84538         Avoid warning by casting result to `char *' to remove `const'.
84539
84540 2000-06-28  Jim Meyering  <meyering@lucent.com>
84541
84542         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
84543         included by quotearg.c, for which we perform this test.  From
84544         Bruno Haible.
84545
84546 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
84547
84548         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
84549         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
84550         <utmpx.h> exists, put readutmp.o into LIBOBJS.
84551
84552 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
84553
84554         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
84555
84556 2000-06-26  Paul Eggert  <eggert@twinsun.com>
84557
84558         savedir now sets errno on failure and invokes xmalloc to get memory.
84559         Fix a couple of other minor bugs while we're at it.
84560
84561         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
84562         (NAMLEN): Remove macro.
84563         (malloc, realloc): Remove decls.
84564         (stpcpy): Likewise.
84565         ("xalloc.h"): Include.
84566         (NAME_SIZE_DEFAULT): New macro.
84567         (savedir): Use xmalloc / xrealloc to allocate memory.
84568         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
84569         Skip "" directory entries.
84570         Use strlen to calculate directory entry length, since the old method
84571         is rarely used these days and isn't worth supporting.
84572         Don't use a pointer after freeing it.
84573         Check for integer overflow when calculating allocation size.
84574         Use memcpy to copy entries, instead of stpcpy.
84575         Set errno properly when returning NULL.
84576         Check for readdir error.
84577
84578 2000-06-26  Jim Meyering  <meyering@lucent.com>
84579
84580         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
84581
84582 2000-06-25  Jim Meyering  <meyering@lucent.com>
84583
84584         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
84585         Linux header bug when _XOPEN_SOURCE is defined to 500.
84586
84587 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
84588
84589         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
84590         deficiency.
84591
84592 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
84593
84594         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
84595         Include xalloc.h.
84596         Don't include <stdlib.h>.  Don't declare malloc, realloc.
84597
84598 2000-06-24  Jim Meyering  <meyering@lucent.com>
84599
84600         * m4/strerror_r.m4: Revive this file -- to try out an experimental
84601         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
84602         for which strerror does return char*, but which lacks a conveniently
84603         accessible declaration of the function.  If the compile-test says
84604         strerror_r doesn't work, then resort to a `run'-test that works on
84605         BeOS and segfaults on DEC Unix.
84606
84607 2000-06-24  Jim Meyering  <meyering@lucent.com>
84608
84609         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
84610
84611 2000-06-23  Paul Eggert  <eggert@twinsun.com>
84612
84613         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
84614         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
84615
84616 2000-06-23  Paul Eggert  <eggert@twinsun.com>
84617
84618         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
84619         (mbrtowc, mbstate_t): Define substitutes if
84620         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
84621         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
84622         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
84623
84624 2000-06-23  Jim Meyering  <meyering@lucent.com>
84625
84626         * m4/afs.m4: Add missing AC_MSG_RESULT.
84627         Reported by Bruno Haible.
84628
84629         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
84630         Suggestion from Bruno Haible.
84631
84632 2000-06-23  Jim Meyering  <meyering@lucent.com>
84633
84634         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
84635
84636 2000-06-21  Jim Meyering  <meyering@lucent.com>
84637
84638         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
84639
84640 2000-06-21  Jim Meyering  <meyering@lucent.com>
84641
84642         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
84643         (noinst_HEADERS): Add getstr.h.
84644
84645         * lib/getline.c (getstr): Move into a separate file.
84646         * lib/getstr.c (getstr): New file, extracted from getline.c, with
84647         the following changes: new parameter, delim2; both delim[12]
84648         parameters have type `int', not `char'.  The latter would lose
84649         with 8-bit delimiters.
84650         * lib/getstr.h: New file.
84651
84652 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
84653
84654         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
84655         than 1024, return a memory chunk of least possible size, instead
84656         of size PATH_MAX + 2. In the loop, increment the size proportionally.
84657         Use free/xmalloc instead of xrealloc to avoid copying for very long
84658         paths.
84659
84660 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
84661
84662         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
84663         the empty string.
84664
84665 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
84666
84667         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
84668         address, not strdup.  Include <stdlib.h> and don't declare free().
84669
84670 2000-06-19  Jim Meyering  <meyering@lucent.com>
84671
84672         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
84673
84674 2000-06-18  Jim Meyering  <meyering@lucent.com>
84675
84676         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
84677
84678         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
84679         `checking whether...' message to be consistent with that of the
84680         lstat test.
84681
84682 2000-06-18  Jim Meyering  <meyering@lucent.com>
84683
84684         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
84685         Besides, these days every porting target provides a mkdir function.
84686
84687         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
84688         needed. (this snippet comes from src/system.h).
84689
84690 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
84691
84692         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
84693
84694 2000-06-15  Paul Eggert  <eggert@twinsun.com>
84695
84696         * lib/human.c (adjust_value): New function.
84697         (human_readable_inexact): Apply rounding style even when
84698         printing approximate values.
84699
84700 2000-06-14  Paul Eggert  <eggert@twinsun.com>
84701
84702         * lib/human.c (human_readable_inexact): Allow an input block
84703         size that is not a multiple of the output block size, and vice versa.
84704         Reported by Piergiorgio Sartor.
84705
84706 2000-06-14  Paul Eggert  <eggert@twinsun.com>
84707
84708         * lib/getdate.y (get_date): Apply relative times after time
84709         zone indicator, not before.  Reported by Todd A. Jacobs.
84710
84711 2000-06-13  Jim Meyering  <meyering@lucent.com>
84712
84713         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
84714
84715         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
84716
84717 2000-06-12  Paul Eggert  <eggert@twinsun.com>
84718
84719         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
84720
84721 2000-06-12  Jim Meyering  <meyering@lucent.com>
84722
84723         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
84724         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
84725         optional argument.
84726         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
84727         the optional argument, `lib'.
84728
84729 2000-06-08  Jim Meyering  <meyering@lucent.com>
84730
84731         * m4/largefile.m4: Remove file (now that it's part of autoconf).
84732
84733 2000-06-04  Paul Eggert  <eggert@twinsun.com>
84734
84735         Rewrite largefile configuration so that we don't need to run
84736         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
84737         AC_CANONICAL_HOST in configure.in -- jmm]
84738
84739         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
84740         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
84741         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
84742         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
84743         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
84744         All uses changed.
84745         Instead of inspecting the output of getconf, try to compile the
84746         test program without and with the macro definition.
84747         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
84748         for getconf.  Instead, check for the needed flags by compiling
84749         test programs.
84750
84751 2000-06-04  Paul Eggert  <eggert@twinsun.com>
84752
84753         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
84754
84755 2000-06-04  Jim Meyering  <meyering@lucent.com>
84756
84757         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
84758         SunOS 4.1.4 for which gid_t is an unsigned type.
84759
84760 2000-06-03  Jim Meyering  <meyering@lucent.com>
84761
84762         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
84763         now that autoconf requires that.
84764
84765         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
84766         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
84767         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
84768
84769 2000-06-03  Jim Meyering  <meyering@lucent.com>
84770
84771         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
84772
84773 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
84774
84775         * m4/glibc21.m4: New file.
84776         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
84777
84778 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
84779
84780         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
84781         newer, don't install charset.alias.
84782         * lib/config.charset: Change the Linux/glibc rules so they become empty
84783         on glibc-2.1 or newer.
84784
84785 2000-06-02  Jim Meyering  <meyering@lucent.com>
84786
84787         * lib/mountlist.c: Back out last change.  Instead, do this...
84788         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
84789         me_dummy member using the same `ignore'-testing code.
84790         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
84791         fs_type strings.
84792         From Mark D. Roth.
84793
84794 2000-05-29  Jim Meyering  <meyering@lucent.com>
84795
84796         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
84797         mounts with the `ignore' attribute.  Based on a patch from
84798         Mark D. Roth.
84799
84800 2000-05-28  Jim Meyering  <meyering@lucent.com>
84801
84802         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
84803         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
84804         * m4/stat.m4: Likewise.
84805         * m4/lstat.m4: Likewise.
84806         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
84807
84808         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
84809         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
84810
84811 2000-05-26  Jim Meyering  <meyering@lucent.com>
84812
84813         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
84814
84815 2000-05-24  Jim Meyering  <meyering@lucent.com>
84816
84817         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
84818         autoconf requires that.
84819         * m4/lib-check.m4: Likewise.
84820         * m4/jm-macros.m4: Likewise.
84821         * m4/strftime.m4: Likewise.
84822
84823         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
84824         AC_CHECK_DECLS, now that autoconf requires that.
84825
84826 2000-05-22  Jim Meyering  <meyering@lucent.com>
84827
84828         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
84829         * m4/lstat.m4: Likewise.
84830
84831 2000-05-22  Jim Meyering  <meyering@lucent.com>
84832
84833         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
84834
84835 2000-05-20  Jim Meyering  <meyering@lucent.com>
84836
84837         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
84838         (jm_PREREQ): Use it.
84839
84840 2000-05-18  Jim Meyering  <meyering@lucent.com>
84841
84842         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
84843         back, too, since it may have been modified by allocate_entry.
84844         (hash_delete): Rewrite to use neither the assignment operator
84845         nor the comma operator in an if-expression.
84846
84847 2000-05-15  Paul Eggert  <eggert@twinsun.com>
84848
84849         * lib/closeout.c:
84850         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
84851         Remove; no longer needed.
84852         "quotearg.h": Add include.
84853         (file_name): Do not bother to explicitly initialize to NULL; it's less
84854         efficient on some hosts.
84855         (close_stdout_status): Remove test as to whether stdout was already
84856         closed; it breaks for the case "echo x | sort >&-".
84857         Quote file name colons.
84858         Do not assume that _("write error") lacks format strings.
84859
84860 2000-05-15  Jim Meyering  <meyering@lucent.com>
84861
84862         * lib/version-etc.c (version_etc_copyright): Update the copyright
84863         string used in all --version output.
84864
84865 2000-05-14  Jim Meyering  <meyering@lucent.com>
84866
84867         * lib/closeout.c (close_stdout_set_file_name): New function.
84868         (close_stdout_status): Use new file-scoped global.
84869         Return right away if fstat says the stdout file descriptor is invalid.
84870         * lib/closeout.h (close_stdout_set_file_name): Declare.
84871
84872 2000-05-10  Jim Meyering  <meyering@lucent.com>
84873
84874         * lib/closeout.c [default_exit_status]: New file-scoped variable.
84875         (close_stdout_set_status): New function.
84876         * lib/closeout.h (close_stdout_set_status): Declare.
84877
84878 2000-05-09  Jim Meyering  <meyering@lucent.com>
84879
84880         * m4/gettext.m4: Rename this...
84881         * m4/libintl.m4: ...to this.
84882
84883 2000-05-08  Jim Meyering  <meyering@lucent.com>
84884
84885         * lib/long-options.c: Don't include closeout.h.
84886         (parse_long_options): Don't call close_stdout for --version.
84887
84888 2000-05-06  Paul Eggert  <eggert@twinsun.com>
84889
84890         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
84891         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
84892         2.1.3 bug.  This avoids a clash when files like regex.c define
84893         _GNU_SOURCE.
84894
84895 2000-05-06  Jim Meyering  <meyering@lucent.com>
84896
84897         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
84898         (AC_REPLACE_FUNCS): Add strnlen.
84899
84900         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
84901         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
84902
84903         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
84904         AC_SEARCH_LIBS call for nanosleep.
84905         (LIB_NANOSLEEP): Set and AC_SUBST.
84906
84907 2000-05-06  Jim Meyering  <meyering@lucent.com>
84908
84909         * lib/strnlen.c: Undefine __strnlen and strnlen.
84910         [!weak_alias]: Define __strnlen to strnlen.
84911
84912         * lib/atexit.c: New file, from libiberty.
84913
84914 2000-05-06  Jim Meyering  <meyering@lucent.com>
84915
84916         * lib/closeout.c (close_stdout_status): Also check for errors on the
84917         stderr stream.
84918
84919 2000-05-05  Jim Meyering  <meyering@lucent.com>
84920
84921         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
84922         AC_SEARCH_LIBS call for clock_gettime.
84923         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
84924
84925         * m4/search-libs.m4: Update from autoconf.
84926
84927         su doesn't work on Solaris 2.6.
84928         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
84929         <shadow.h>.  Reported by Dragos Harabor.
84930
84931 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
84932
84933         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
84934         memcpy instead of xmalloc, xrealloc, path_concat.
84935         (locale_charset): Treat empty environment variables as absent.
84936         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
84937
84938 2000-05-04  Jim Meyering  <meyering@lucent.com>
84939
84940         * lib/getopt.c: Update from glibc.
84941         * lib/obstack.c: Likewise.
84942         * lib/obstack.h: Likewise.
84943         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
84944         file
84945
84946         * lib/regex.h: Likewise.
84947         * lib/strndup.c: Likewise.
84948         * lib/strnlen.c: New file, from glibc.
84949
84950 2000-05-03  Jim Meyering  <meyering@lucent.com>
84951
84952         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
84953
84954 2000-05-02  Paul Eggert  <eggert@twinsun.com>
84955
84956         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
84957         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
84958         compile-time test, rather than inspecting host and OS, to
84959         decide whether to define _LARGEFILE_SOURCE.
84960
84961 2000-05-01  Jim Meyering  <meyering@lucent.com>
84962
84963         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
84964
84965         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
84966         Based on a patch from Bruno Haible.
84967
84968 2000-05-01  Jim Meyering  <meyering@lucent.com>
84969
84970         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
84971
84972 2000-04-29  Jim Meyering  <meyering@lucent.com>
84973
84974         * lib/path-concat.c: Declare strdup only if it's not defined.
84975         * lib/canon-host.c: Likewise.
84976
84977 2000-04-28  Jim Meyering  <meyering@lucent.com>
84978
84979         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
84980         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
84981         is included first, then limits.h is included by locale.h by libintl.h.
84982         From John David Anglin.
84983
84984 2000-04-25  Jim Meyering  <meyering@lucent.com>
84985
84986         * lib/makepath.c (S_IRWXUGO): Define.
84987         (make_path): Always perform explicit chmod if MODE specifies any
84988         of the `special' permission bits.  Prompted by a bug report against
84989         install from Mate Wierdl and Joost van Baal.
84990
84991 2000-04-18  Jim Meyering  <meyering@lucent.com>
84992
84993         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
84994         (jm_PREREQ): Use it.
84995
84996 2000-04-18  Jim Meyering  <meyering@lucent.com>
84997
84998         * lib/README: New file.
84999
85000         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
85001         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
85002
85003 2000-04-17  Jim Meyering  <meyering@lucent.com>
85004
85005         Get it right :-)
85006         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
85007         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
85008         Suggestion from Akim Demaille.
85009
85010 2000-04-17  Jim Meyering  <meyering@lucent.com>
85011
85012         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
85013         the definition of it to rpl_strftime also defined-away the system's
85014         declaration.
85015
85016 2000-04-15  Jim Meyering  <meyering@lucent.com>
85017
85018         Use `C' to denote so-called `contiguous' files, the same way
85019         that tar does.
85020         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
85021         (ftypelet): Use S_ISCTG.
85022         From Michael Deutschmann.
85023
85024 2000-04-14  Jim Meyering  <meyering@lucent.com>
85025
85026         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
85027         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
85028         clobbered.
85029
85030 2000-04-14  Jim Meyering  <meyering@lucent.com>
85031
85032         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
85033
85034 2000-04-13  Jim Meyering  <meyering@lucent.com>
85035
85036         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
85037         AH_VERBATIM to insert required #ifndef into config.h.in.
85038         Suggestion from Akim Demaille.
85039
85040 2000-04-12  Jim Meyering  <meyering@lucent.com>
85041
85042         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
85043         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
85044         Christian Krackowizer.
85045
85046         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
85047         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
85048         (AC_SYS_LARGEFILE): Require.
85049         (AM_C_PROTOTYPES): Require.
85050
85051 2000-04-08  Jim Meyering  <meyering@lucent.com>
85052
85053         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
85054         names don't conflict.  Reported by Eli Zaretskii.
85055
85056 2000-04-07  Jim Meyering  <meyering@lucent.com>
85057
85058         * lib/putenv.c: Move inclusion of errno.h so it follows that of
85059         sys/types.h, to work around system header problems on AIX 3.2.5.
85060         From Bruno Haible.
85061
85062 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
85063
85064         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
85065         bug.  Deal with the different error behavior of Irix iconv.
85066
85067 2000-04-05  Paul Eggert  <eggert@twinsun.com>
85068
85069         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
85070         IRIX if the installer said otherwise.
85071
85072 2000-04-05  Jim Meyering  <meyering@lucent.com>
85073
85074         Portability tweaks required for ultrix4.3.
85075         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
85076         (jm_CHECK_DECLS): Add getutent to the list of functions.
85077         (_jm_DECL_HEADERS): Add utmpx.h.
85078         From John David Anglin.
85079
85080         * m4/strftime.m4: Back out the 2000-04-02 change.
85081         Instead of that change, simply undefine putenv in the test program.
85082
85083 2000-04-05  Jim Meyering  <meyering@lucent.com>
85084
85085         Portability tweaks required for ultrix4.3.
85086         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
85087         getutent.
85088         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
85089         * lib/canon-host.c: Declare strdup.
85090         * lib/path-concat.c: Likewise.
85091         From John David Anglin.
85092
85093 2000-04-04  Jim Meyering  <meyering@lucent.com>
85094
85095         Be more DOS 8.3-friendly.
85096         * lib/ref-add.sin: Renamed from ref-add.sed.in.
85097         * lib/ref-del.sin: Renamed from ref-del.sed.in.
85098         * lib/Makefile.am: Reflect renaming.
85099         Reported by Eli Zaretskii.
85100
85101         Use a temporary file name that won't clash with `charset.alias'
85102         in the DOS 8.3 name space.
85103         * lib/Makefile.am (charset_tmp): Define.
85104         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
85105         (uninstall-local): Likewise.
85106         Reported by Eli Zaretskii.
85107
85108 2000-04-03  Jim Meyering  <meyering@lucent.com>
85109
85110         * m4/gettext.m4: Fix typo in comment.
85111
85112         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
85113         textutils/configure.in).  Suggestion from Paul Eggert.
85114         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
85115
85116 2000-04-02  Paul Eggert  <eggert@twinsun.com>
85117
85118         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
85119         variable in the shell rather than using putenv, which isn't
85120         portable.  This avoids the configure-time inter-test dependency
85121         on the potentially-renamed putenv function.
85122
85123 2000-03-30  Paul Eggert  <eggert@twinsun.com>
85124
85125         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
85126         before checking struct stat.st_blksize, so that
85127         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
85128
85129 2000-03-29  Paul Eggert  <eggert@twinsun.com>
85130
85131         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
85132         since strftime.c uses HAVE_STRFTIME to decide whether to use
85133         the underlying strftime.
85134
85135 2000-03-29  Paul Eggert  <eggert@twinsun.com>
85136
85137         * lib/time/strftime.c (my_strftime): Make sure we call the system
85138         strftime, not ourselves, when invoking the underlying strftime.
85139
85140 2000-03-24  Jim Meyering  <meyering@lucent.com>
85141
85142         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
85143         (charset_alias): Define.
85144         (install-exec-local): Factor out common code.
85145         (uninstall-local): Split lines longer than 80.
85146         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
85147         (SUFFIXES): Define.
85148         (.sed.in.sed): New rule.  Don't redirect directly to $@.
85149         (CLEANFILES): Add ref-add.sed and ref-del.sed.
85150
85151 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
85152
85153         * lib/config.charset: Output a line containing "Packages using this
85154         file".
85155         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
85156         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
85157         ref-del.sed): New rules.
85158
85159 2000-03-17  Jim Meyering  <meyering@lucent.com>
85160
85161         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
85162         Otherwise, include <strings.h>
85163
85164 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
85165
85166         * lib/unicodeio.c (utf8_wctomb): New function.
85167         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
85168         format instead of in UCS-4 with platform dependent endianness.
85169
85170 2000-03-10  Jim Meyering  <meyering@lucent.com>
85171
85172         * m4/lib-check.m4: Look for getspnam in -lgen, too.
85173         From Marco Franzen.
85174
85175 2000-03-07  Paul Eggert  <eggert@twinsun.com>
85176
85177         * lib/savedir.c (savedir): Work even if directory size is
85178         negative; this can happen with some screwy NFS configurations.
85179
85180 2000-03-06  Jim Meyering  <meyering@lucent.com>
85181
85182         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
85183         if it's NULL (because we ran out of memory).  From Bruno Haible.
85184
85185 2000-03-05  Jim Meyering  <meyering@lucent.com>
85186
85187         * lib/localcharset.c ("path-concat.h"): Include.
85188         (get_charset_aliases): Use path_concat instead of ANSI string
85189         concatenation.
85190
85191         * lib/unicodeio.h (PARAMS): Define.
85192         Use it to guard prototype.
85193
85194 2000-03-04  Jim Meyering  <meyering@lucent.com>
85195
85196         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
85197         for lib/localcharset.c.
85198
85199 2000-03-04  Jim Meyering  <meyering@lucent.com>
85200
85201         * lib/Makefile.am (install-exec-local): Create $(libdir) before
85202         installing into it.
85203         (uninstall-local): Uncomment this rule so `make distcheck' works
85204         once again.
85205
85206         * lib/unicodeio.c (<errno.h>): Include it.
85207         (errno): Declare if not defined.
85208
85209         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
85210
85211         * lib/config.charset: New version, incorporating remarks from a linux
85212         i18n mailing list.  From Bruno Haible.
85213
85214 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
85215
85216         * m4/codeset.m4: New file.
85217         * m4/iconv.m4: New file.
85218         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
85219
85220 2000-03-03  Jim Meyering  <meyering@lucent.com>
85221
85222         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
85223
85224 2000-03-02  Jim Meyering  <meyering@lucent.com>
85225
85226         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
85227         the messages come out on separate lines.
85228
85229         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
85230         rather than jm_CHECK_DECLARATIONS.
85231         * m4/decl.m4: Remove now-unused file.
85232
85233         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
85234         geteuid.
85235
85236 2000-03-02  Jim Meyering  <meyering@lucent.com>
85237
85238         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
85239
85240 2000-03-01  Jim Meyering  <meyering@lucent.com>
85241
85242         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
85243         * lib/unicodeio.c: Likewise.
85244
85245 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
85246
85247         * lib/config.charset: New file.
85248         * lib/localcharset.c: New file.
85249         * lib/unicodeio.h, lib/unicodeio.c: New files.
85250         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
85251         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
85252         (noinst_HEADERS): Add unicodeio.h.
85253         (all-local, install-exec-local, charset.alias): New targets.
85254
85255 2000-02-28  Paul Eggert  <eggert@twinsun.com>
85256
85257         * lib/quotearg.c (ALERT_CHAR): New macro.
85258         (quotearg_buffer_restyled): Use it.
85259
85260 2000-02-27  Jim Meyering  <meyering@lucent.com>
85261
85262         * m4/check-decl.m4: Add getenv to the list.
85263
85264 2000-02-27  Jim Meyering  <meyering@lucent.com>
85265
85266         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
85267         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
85268
85269         * lib/backupfile.c: Guard inclusion of stdlib.h with
85270         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
85271         Declare malloc if needed.
85272
85273         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
85274         `#ifndef HAVE_DECL..'
85275         now that autoconf always defines the HAVE_DECL_ symbols.
85276         * lib/human.c: Likewise.
85277         * lib/same.c: Likewise.
85278         * lib/strtoumax.c: Likewise.
85279
85280         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
85281         declaration check was not run.
85282         * lib/hash.c: Likewise.
85283         * lib/human.c: Likewise.
85284         * lib/same.c: Likewise.
85285         * lib/strtoumax.c: Likewise.
85286
85287         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
85288         `.', then first look up the entire `.'-containing string as a login
85289         name.
85290
85291 2000-02-23  Jim Meyering  <meyering@lucent.com>
85292
85293         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
85294         in place of my hack.
85295
85296 2000-02-18  Paul Eggert  <eggert@twinsun.com>
85297
85298         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
85299         (textint): New typedef.
85300         (parser_control): Member year changed from int to textint.
85301         All uses changed.
85302         (YYSTYPE): Removed; replaced by %union with int and textint members.
85303         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
85304         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
85305         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
85306         (tSNUMBER, tUNUMBER): Now of type <textintval>.
85307         (date, number, to_year): Use width of number in digits, not its value,
85308         to determine whether it's a 2-digit year, or a 2-digit time.
85309         (yylex): Store number of digits of numeric tokens.
85310         Reported by John Kendall.
85311
85312         (parser_control): Changed from struct parser_control to typedef (for
85313         consistency).  All uses changed.
85314
85315         (tID): Removed; not used.
85316         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
85317
85318 2000-02-14  Paul Eggert  <eggert@twinsun.com>
85319
85320         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
85321         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
85322
85323 2000-02-12  Jim Meyering  <meyering@lucent.com>
85324
85325         * lib/userspec.c (ISDIGIT): Define it.
85326         (isdigit): Remove definition.
85327         (is_number): Use ISDIGIT, not isdigit.
85328         <libintl.h>: Include.
85329         (_ and N_): Define.
85330         (parse_user_spec): Mark translatable strings.
85331
85332 2000-02-10  Jim Meyering  <meyering@lucent.com>
85333
85334         With these changes, nanosleep.[ch] are finally enough like the other
85335         lib/* replacement files to compile on a few more losing systems.
85336
85337         * lib/nanosleep.h: Don't include config.h.
85338         Remove prototype from declaration of nanosleep.
85339         (PARAMS): Remove now-unneeded definition.
85340         * lib/nanosleep.c: #undef nanosleep.
85341         (rpl_nanosleep): Rename from nanosleep.
85342
85343 2000-02-10  Jim Meyering  <meyering@lucent.com>
85344
85345         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
85346         gnu_nanosleep to rpl_nanosleep.
85347
85348 2000-02-09  Jim Meyering  <meyering@lucent.com>
85349
85350         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
85351         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
85352
85353 2000-02-08  Akim Demaille  <akim@epita.fr>
85354
85355         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
85356         `[' and `]' and remove uses of `changequote'.
85357         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
85358         (AC_SYS_LARGEFILE): Likewise.
85359         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
85360         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
85361         of changequote.
85362         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
85363         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
85364         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
85365         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
85366
85367 2000-02-05  Jim Meyering  <meyering@lucent.com>
85368
85369         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
85370         Remove explicit use of AC_HEADER_TIME.  It is required by
85371         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
85372         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
85373         in autoconf whereby the expansion of the latter ended up preceding
85374         the expansion of its prerequisite, AC_HEADER_TIME.
85375         Reported by Volker Borchert.
85376
85377 2000-02-03  Jim Meyering  <meyering@lucent.com>
85378
85379         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
85380
85381 2000-02-03  Jim Meyering  <meyering@lucent.com>
85382
85383         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
85384         rather than with `#if HAVE_UTMPNAME'.
85385
85386 2000-02-02  Jim Meyering  <meyering@lucent.com>
85387
85388         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
85389         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
85390         Reported by Eli Zaretskii.
85391
85392 2000-02-01  Jim Meyering  <meyering@lucent.com>
85393
85394         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
85395
85396 2000-01-31  Jim Meyering  <meyering@lucent.com>
85397
85398         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
85399         functions.  Add the time.h and sys/time.h headers along with the
85400         AC_REQUIRE'ment of AC_HEADER_TIME.
85401
85402 2000-01-31  Jim Meyering  <meyering@lucent.com>
85403
85404         * lib/nanosleep.h (nanosleep): Guard declaration with
85405         `#if ! HAVE_DECL_NANOSLEEP'.
85406         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
85407         the declaration in that vendor's sys/timers.h.
85408         Reported by Christian Krackowizer.
85409
85410         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
85411         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
85412         (ISPRINT): Likewise.
85413         Reported by Tom Tromey.
85414
85415 2000-01-30  Jim Meyering  <meyering@lucent.com>
85416
85417         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
85418
85419         * m4/prereq.m4 (utmp_includes): Define.
85420         Check for ut_user and ut_name members in both struct utmpx
85421         and struct utmp.
85422
85423 2000-01-30  Jim Meyering  <meyering@lucent.com>
85424
85425         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
85426         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
85427         header files where only utmpx.ut_user is declared.
85428
85429         * lib/readutmp.h (UT_USER): Define.
85430
85431 2000-01-29  Jim Meyering  <meyering@lucent.com>
85432
85433         * m4/lib-check.m4: New file containing library-related checks from
85434         fileutils and sh-utils (textutils had none).
85435
85436 2000-01-28  Jim Meyering  <meyering@lucent.com>
85437
85438         * m4/perl.m4: Change format of warning message to look more like that
85439         from the missing script.  Suggestion from François Pinard.
85440
85441 2000-01-25  Jim Meyering  <meyering@lucent.com>
85442
85443         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
85444         well as time.h in the compile check.
85445         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
85446         Fix typo in cross-compiling case: s/yes/no/.
85447
85448 2000-01-23  Jim Meyering  <meyering@lucent.com>
85449
85450         * m4/jm-macros.m4: Move df-related tests here from
85451         fileutils/configure.in
85452
85453         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
85454         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
85455
85456         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
85457         s/space/ac_fsusage_space/.
85458         (jm_FILE_SYSTEM_USAGE): Take two parameters.
85459
85460         * m4/ftruncate.m4: New file (derived from part of
85461         fileutils/configure.in).
85462         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
85463         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
85464
85465         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
85466         AC_SUBST these here, rather than just in sh-util/configure.in, so
85467         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
85468         all the same.
85469         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
85470         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
85471         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
85472         (AC_SUBST(POW_LIBM)): Likewise.
85473         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
85474
85475 2000-01-23  Jim Meyering  <meyering@lucent.com>
85476
85477         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
85478         obstack.c.
85479
85480 2000-01-22  Jim Meyering  <meyering@lucent.com>
85481
85482         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
85483
85484         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
85485
85486         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
85487         configure.in
85488         (AC_CHECK_HEADERS): Likewise for sh-utils.
85489         (AC_CHECK_HEADERS): Likewise for textutils.
85490         Merge the three lists of headers.
85491
85492         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
85493         from fileutils' configure.in.
85494
85495         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
85496         code. Moved tests into their own function (_jm_DECL_HEADERS) in
85497         check-decl.m4.
85498
85499         * m4/check-decl.m4: Use #if rather than #ifdef.
85500         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
85501         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
85502         (_jm_DECL_HEADERS): Define new function.
85503         (jm_CHECK_DECLARATIONS): Require it.
85504
85505 2000-01-22  Jim Meyering  <meyering@lucent.com>
85506
85507         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
85508         [! HAVE_DECL_STRTOULL]: Declare strtoull.
85509         Required for some AIX systems.  Reported by Christian Krackowizer.
85510         [TESTING] (main): New function.
85511
85512         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
85513         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
85514         letters.
85515
85516         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
85517         iswprint.
85518
85519         * lib/strverscmp.c (ISDIGIT): Define.
85520         (strverscmp): Use ISDIGIT, not isdigit.
85521
85522 2000-01-19  Jim Meyering  <meyering@lucent.com>
85523
85524         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
85525         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
85526         defines `struct timespec' in <sys/time.h>
85527
85528         * m4/c-bs-a.m4: Remove uses of changequote altogether.
85529         Thanks to Akim for explaining.
85530
85531 2000-01-17  Paul Eggert  <eggert@twinsun.com>
85532
85533         * lib/nanosleep.c (nanosleep):
85534         Don't use SA_INTERRUPT to decide whether to call sigaction, as
85535         POSIX.1 doesn't require SA_INTERRUPT and some systems
85536         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
85537         it's been part of POSIX.1 since day 1 (in 1988).
85538
85539 2000-01-17  Jim Meyering  <meyering@lucent.com>
85540
85541         * lib/interlock: Remove unused file.  Reported by François Pinard.
85542
85543 2000-01-16  Paul Eggert  <eggert@twinsun.com>
85544
85545         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
85546         alert, backslash, formfeed, and vertical tab unnecessarily in
85547         shell quoting style.
85548
85549 2000-01-16  Jim Meyering  <meyering@lucent.com>
85550
85551         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
85552         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
85553         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
85554         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
85555
85556 2000-01-16  Jim Meyering  <meyering@lucent.com>
85557
85558         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
85559         because the latter didn't work.
85560
85561 2000-01-15  Jim Meyering  <meyering@lucent.com>
85562
85563         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
85564         (AC_REPLACE_FUNCS): Add memcpy and memset.
85565         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
85566         Add strpbrk.
85567         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
85568
85569 2000-01-12  Jim Meyering  <meyering@lucent.com>
85570
85571         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
85572         (jm_PREREQ): Use it.
85573         (jm_PREREQ_READUTMP): New macro.
85574         (jm_PREREQ): Use it.
85575
85576 2000-01-11  Paul Eggert  <eggert@twinsun.com>
85577
85578         Quote multibyte characters correctly.
85579         * m4/c-bs-a.m4: New file.
85580         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
85581         (jm_PREREQ): Use it.
85582
85583 2000-01-11  Paul Eggert  <eggert@twinsun.com>
85584
85585         * m4/uintmax_t.m4: Port to autoconf 2.13.
85586
85587 2000-01-08  Jim Meyering  <meyering@ascend.com>
85588
85589         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
85590         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
85591
85592 2000-01-04  Jim Meyering  <meyering@ascend.com>
85593
85594         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
85595         jm_STRUCT_DIRENT_D_TYPE.
85596         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
85597         jm_STRUCT_DIRENT_D_INO.
85598         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
85599         jm_STRUCT_UTIMBUF.
85600         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
85601         renamings.
85602         * m4/utime.m4: Likewise.
85603
85604         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
85605         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
85606
85607 2000-01-03  Paul Eggert  <eggert@twinsun.com>
85608
85609         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
85610         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
85611
85612 2000-01-02  Jim Meyering  <meyering@ascend.com>
85613
85614         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
85615         remember if this is necessary.
85616
85617 1999-12-26  Jim Meyering  <meyering@ascend.com>
85618
85619         * m4/jm-macros.m4: Use it here.
85620         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
85621
85622 1999-12-23  Jim Meyering  <meyering@ascend.com>
85623
85624         * m4/jm-macros.m4: Check for clock_gettime (moved from
85625         fileutils/configure.in)
85626         Check for gettimeofday.
85627
85628 1999-12-20  Jim Meyering  <meyering@ascend.com>
85629
85630         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
85631         autoconf-2.14a-1999-12-20.
85632
85633 1999-12-19  Jim Meyering  <meyering@ascend.com>
85634
85635         * m4/lstat-slash.m4: New file.
85636         * m4/jm-macros.m4: Use the new macro:
85637         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
85638
85639 1999-12-07  Jim Meyering  <meyering@ascend.com>
85640
85641         * m4/perl.m4: Require that File::Compare be available, too.
85642         Too many systems seem to lack it.
85643
85644         * m4/strftime.m4: Add checks for most of the cpp macros tested in
85645         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
85646
85647 1999-11-18  Paul Eggert  <eggert@twinsun.com>
85648
85649         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
85650         problem with the QNX 4.25 shell, which doesn't propagate exit
85651         status of failed commands inside shell assignments.
85652
85653 1999-11-17  Jim Meyering  <meyering@ascend.com>
85654
85655         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
85656
85657 1999-11-07  Jim Meyering  <meyering@ascend.com>
85658
85659         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
85660
85661 1999-11-06  Jim Meyering  <meyering@ascend.com>
85662
85663         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
85664         * m4/jm-macros.m4 (jm_MACROS): Use it here.
85665
85666 1999-11-05  Jim Meyering  <meyering@ascend.com>
85667
85668         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
85669         configure.in of textutils, fileutils, and sh-utils into this one
85670         (shared between those packages) file.
85671         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
85672         AC_STRUCT_ST_BLKSIZE.
85673
85674 1999-11-03  Jim Meyering  <meyering@ascend.com>
85675
85676         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
85677         of AC_CHECK_TYPE checks includes unistd.h.
85678         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
85679         Suggestion from Akim Demaille.
85680
85681 1999-10-30  Jim Meyering  <meyering@ascend.com>
85682
85683         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
85684         m4-quoted string.
85685         * m4/ls-mntd-fs.m4: Likewise.
85686         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
85687         * m4/jm-winsz1.m4: Likewise.
85688
85689         * m4/const.m4: Remove file, since the fix made it into the experimental
85690         version of autoconf.
85691         * m4/mktime.m4: Likewise.
85692
85693         * m4/check-type.m4: Remove file, now that the latest version of
85694         AC_CHECK_TYPE takes a third arg to specify additional #includes.
85695
85696         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
85697         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
85698         AC_CHECK_TYPE.
85699
85700 1999-10-04  Jim Meyering  <meyering@ascend.com>
85701
85702         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
85703
85704 1999-09-22  Paul Eggert  <eggert@twinsun.com>
85705
85706         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
85707         2.95.1 bug with HP-UX 10.20.
85708
85709 1999-09-17  Jim Meyering  <meyering@ascend.com>
85710
85711         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
85712         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
85713         due to missing strdup (against sh-utils-2.0).
85714
85715 1999-08-29  Jim Meyering  <meyering@ascend.com>
85716
85717         * m4/jm-macros.m4: Require jm_BISON.
85718         * m4/bison.m4: New file.
85719
85720 1999-08-17  Paul Eggert  <eggert@twinsun.com>
85721
85722         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
85723         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
85724
85725 1999-08-05  Jim Meyering  <meyering@ascend.com>
85726
85727         * m4/getline.m4: Rename test file from conftestdata to conftest.data
85728         to avoid conflicts with `conftest' on 8+3 filesystems.
85729         Suggestion from Eli Zaretskii.
85730
85731 1999-08-04  Jim Meyering  <meyering@ascend.com>
85732
85733         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
85734         fileutils and sh-utils (textutils's getline test was inadequate).
85735         (AM_FUNC_GETLINE): Run this test.
85736         (AC_CHECK_FUNCS): Check for getdelim.
85737         Reported by Bob Proulx.
85738
85739 1999-08-02  Jim Meyering  <meyering@ascend.com>
85740
85741         * m4/jm-macros.m4: Add a comment.
85742
85743 1999-08-01  Paul Eggert  <eggert@twinsun.com>
85744
85745         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
85746         <inttypes.h> defines strtoumax as a macro (and not as a
85747         function).
85748
85749 1999-08-01  Paul Eggert  <eggert@twinsun.com>
85750
85751         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
85752         that we can shift, multiply and divide unsigned long long
85753         values; Ultrix cc can't do it.
85754
85755 1999-08-01  Paul Eggert  <eggert@twinsun.com>
85756
85757         * m4/mktime.m4: New file, which is a preview of what should appear
85758         in the next public autoconf release.
85759
85760 1999-08-01  Paul Eggert  <eggert@twinsun.com>
85761
85762         * m4/lfs.m4: Remove this file.
85763         * m4/largefile.m4: New file.  It contains the old contents of
85764         lfs.m4, except that all names with prefix AC_LFS have been
85765         changed to use the prefix AC_SYS_LARGEFILE instead, to be
85766         compatible with future autoconf versions.  Also, some minor m4
85767         quoting problems have been fixed.
85768
85769 1999-08-01  Paul Eggert  <eggert@twinsun.com>
85770
85771         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
85772         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
85773         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
85774         and simplify the shell code.
85775
85776 1999-08-01  Jim Meyering  <meyering@ascend.com>
85777
85778         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
85779         m4.
85780
85781 1999-07-20  Jim Meyering  <meyering@ascend.com>
85782
85783         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
85784
85785 1999-07-15  Jim Meyering  <meyering@ascend.com>
85786
85787         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
85788
85789 1999-05-22  Jim Meyering  <meyering@ascend.com>
85790
85791         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
85792
85793 1999-05-20  Jim Meyering  <meyering@ascend.com>
85794
85795         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
85796         Add a colon after each `then' in case $4 is empty.
85797
85798 1999-05-16  Jim Meyering  <meyering@ascend.com>
85799
85800         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
85801
85802 1999-05-10  Jim Meyering  <meyering@ascend.com>
85803
85804         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
85805
85806         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
85807         AC_FUNC_MKTIME.
85808
85809 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
85810
85811         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
85812
85813 1999-05-04  Paul Eggert  <eggert@twinsun.com>
85814
85815         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
85816         not CPPFLAGS, so that linking works correctly in IRIX.
85817
85818 1999-04-30  Paul Eggert  <eggert@twinsun.com>
85819
85820         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
85821
85822 1999-04-20  Paul Eggert  <eggert@twinsun.com>
85823
85824         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
85825         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
85826         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
85827         jm_AC_TYPE_UNSIGNED_LONG_LONG.
85828         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
85829
85830         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
85831
85832 1999-04-20  Jim Meyering  <meyering@ascend.com>
85833
85834         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
85835         AC_REPLACE xstroull if necessary.  From Paul Eggert.
85836         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
85837
85838 1999-04-18  Jim Meyering  <meyering@ascend.com>
85839
85840         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
85841         * m4/jm-macros.m4: Use it.
85842
85843 1999-04-06  Jim Meyering  <meyering@ascend.com>
85844
85845         * m4/strftime.m4: Remove test for %f.
85846
85847 1999-03-29  Jim Meyering  <meyering@ascend.com>
85848
85849         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
85850         superset of the AC_TYPE_* checks in the textutils, fileutils,
85851         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
85852         AC_TYPE_PID_T.
85853
85854 1999-03-28  Jim Meyering  <meyering@ascend.com>
85855
85856         * m4/jm-macros.m4: Define GNU_PACKAGE here.
85857         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
85858         replaced e.g., in the *.sh files of the sh-utils.
85859
85860 1999-03-20  Jim Meyering  <meyering@ascend.com>
85861
85862         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
85863         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
85864         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
85865
85866 1999-03-19  Jim Meyering  <meyering@ascend.com>
85867
85868         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
85869
85870 1999-03-12  Jim Meyering  <meyering@ascend.com>
85871
85872         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
85873
85874 1999-03-07  Jim Meyering  <meyering@ascend.com>
85875
85876         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
85877         declared.
85878
85879 1999-02-17  Jim Meyering  <meyering@ascend.com>
85880
85881         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
85882         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
85883
85884 1999-02-07  Jim Meyering  <meyering@ascend.com>
85885
85886         * m4/group-member.m4: New file -- extracted from sh-utils'
85887         configure.in.
85888
85889         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
85890         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
85891
85892 1999-02-06  Jim Meyering  <meyering@ascend.com>
85893
85894         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
85895         * m4/fnmatch.m4: Likewise.
85896         * m4/getgroups.m4: Likewise.
85897         * m4/lstat.m4: Likewise.
85898         * m4/malloc.m4: Likewise.
85899         * m4/putenv.m4: Likewise.
85900         * m4/realloc.m4: Likewise.
85901         * m4/regex.m4: Likewise.
85902         * m4/stat.m4: Likewise.
85903         * m4/strftime.m4: Likewise.
85904         Suggestion from Alain Magloire.
85905
85906         * m4/chown.m4: Use `.$ac_objext', not `.o'.
85907         * m4/fnmatch.m4: Likewise.
85908         * m4/getgroups.m4: Likewise.
85909         * m4/getline.m4: Likewise.
85910         * m4/lstat.m4: Likewise.
85911         * m4/malloc.m4: Likewise.
85912         * m4/memcmp.m4: Likewise.
85913         * m4/putenv.m4: Likewise.
85914         * m4/realloc.m4: Likewise.
85915         * m4/regex.m4: Likewise.
85916         * m4/stat.m4: Likewise.
85917         * m4/strftime.m4: Likewise.
85918         Suggestion from Alain Magloire.
85919
85920         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
85921         an argument.
85922
85923         * m4/regex.m4: Add a run-time Test for proper operation of
85924         re_compile_pattern.
85925
85926 1999-01-31  Jim Meyering  <meyering@ascend.com>
85927
85928         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
85929
85930 1999-01-30  Jim Meyering  <meyering@ascend.com>
85931
85932         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
85933
85934         * m4/jm-mktime.m4: Make this a wrapper around the official
85935         AM_FUNC_MKTIME rather than my private copy, now that the official one
85936         is up to date.
85937         * m4/mktime.m4: Remove file.
85938
85939         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
85940         * m4/uptime.m4: Likewise.
85941         * m4/uintmax_t.m4: Likewise.
85942
85943 1999-01-28  Jim Meyering  <meyering@ascend.com>
85944
85945         * m4/jm-macros.m4: Use jm_AFS.
85946         * m4/afs.m4: New file (from fileutils' configure.in).
85947
85948         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
85949         * m4/chown.m4: Likewise.
85950         * m4/d-ino.m4: Likewise.
85951         * m4/d-type.m4: Likewise.
85952         * m4/fnmatch.m4: Likewise.
85953         * m4/getgroups.m4: Likewise.
85954         * m4/gettext.m4: Likewise.
85955         * m4/jm-mktime.m4: Likewise.
85956         * m4/jm-winsz2.m4: Likewise.
85957         * m4/lcmessage.m4: Likewise.
85958         * m4/ls-mntd-fs.m4: Likewise.
85959         * m4/malloc.m4: Likewise.
85960         * m4/memcmp.m4: Likewise.
85961         * m4/putenv.m4: Likewise.
85962         * m4/realloc.m4: Likewise.
85963         * m4/st_mtim.m4: Likewise.
85964         * m4/strftime.m4: Likewise.
85965
85966 1999-01-16  Jim Meyering  <meyering@ascend.com>
85967
85968         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
85969         (ARGMATCH_DIE_DECL): Define.
85970
85971 1999-01-12  Jim Meyering  <meyering@ascend.com>
85972
85973         * m4/Makefile.am.in: Rewrite to avoid using fmt.
85974         Reported by Lars Hecking.
85975
85976 1999-01-10  Jim Meyering  <meyering@ascend.com>
85977
85978         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
85979         gross kludge.
85980         * m4/inttypes_h.m4: Likewise.
85981         * m4/lstat.m4: Likewise.
85982         * m4/malloc.m4: Likewise.
85983         * m4/readdir.m4: Likewise.
85984         * m4/realloc.m4: Likewise.
85985         * m4/st_dm_mode.m4: Likewise.
85986         * m4/stat.m4: Likewise.
85987         * m4/utimbuf.m4: Likewise.
85988         * m4/utimes.m4: Likewise.
85989
85990         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
85991         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
85992         comments in config.h.in are meaningful.
85993
85994         * m4/jm-macros.m4: Require autoconf-2.13 here.
85995
85996         * m4/regex.m4: By default, don't use the included regex.c on systems
85997         with glibc 2.  Suggestion from Uli Drepper.
85998
85999 1999-01-02  Jim Meyering  <meyering@ascend.com>
86000
86001         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
86002
86003 1998-12-18  Jim Meyering  <meyering@ascend.com>
86004
86005         * m4/Makefile.am.in (Makefile.am): Simplify rule.
86006         Based on a suggestion from Lars Hecking.
86007
86008 1998-11-16  Paul Eggert  <eggert@twinsun.com>
86009
86010         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
86011
86012 1998-11-16  Jim Meyering  <meyering@ascend.com>
86013
86014         * m4/lfs.m4: Double-quote the `uname...` expression.
86015
86016 1998-11-14  Jim Meyering  <meyering@ascend.com>
86017
86018         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
86019         * m4/stat.m4: Likewise.
86020
86021 1998-11-03  Jim Meyering  <meyering@ascend.com>
86022
86023         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
86024         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
86025
86026 1998-10-18  Jim Meyering  <meyering@ascend.com>
86027
86028         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
86029
86030 1998-10-17  Jim Meyering  <meyering@ascend.com>
86031
86032         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
86033         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
86034         calls for those previously hard-coded headers.  Instead, take a new
86035         parameter.
86036         (jm_CHECK_DECLARATIONS): Reflect interface change.
86037         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
86038         (jm_CHECK_DECL_LOCALTIME_R): New macro.
86039
86040         * m4/mktime.m4: Test for spring-forward gap before long-running test.
86041
86042 1998-10-14  Jim Meyering  <meyering@ascend.com>
86043
86044         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
86045         instead of "TZ=America/Vancouver".  From Paul Eggert.
86046
86047 1998-10-11  Jim Meyering  <meyering@ascend.com>
86048
86049         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
86050         This adds a test for a recently added compatibility fix for mktime.c.
86051         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
86052
86053 1998-09-27  Jim Meyering  <meyering@ascend.com>
86054
86055         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
86056
86057         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
86058         ../configure.in, including a change from Gordon Matzigkeit to allow
86059         cross-compiling for the Hurd.
86060
86061         * m4/glibc.m4: New file/macro to test for the GNU C Library
86062         versions 1 and 2.  From Gordon Matzigkeit.
86063         Indent.
86064
86065 1998-09-21  Jim Meyering  <meyering@ascend.com>
86066
86067         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
86068
86069 1998-08-18  Paul Eggert  <eggert@twinsun.com>
86070
86071         Port nanosecond-resolution times to UnixWare 2.1.2 and
86072         pedantic Solaris 2.6.
86073
86074         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
86075         AC_STRUCT_ST_MTIM.
86076         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
86077         Generate name of ns member, instead of just 1 or undef.
86078         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
86079
86080 1998-08-15  Jim Meyering  <meyering@ascend.com>
86081
86082         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
86083         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
86084         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
86085         instead of jm_TYPE_SSIZE_T.
86086
86087 1998-08-12  Jim Meyering  <meyering@ascend.com>
86088
86089         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
86090
86091 1998-08-02  Jim Meyering  <meyering@ascend.com>
86092
86093         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
86094         in acconfig.h manually.
86095
86096 1998-07-31  Paul Eggert  <eggert@twinsun.com>
86097
86098         * m4/st_mtim.m4: New file.
86099
86100 1998-07-28  Jim Meyering  <meyering@ascend.com>
86101
86102         * m4/utimes.m4: Undef stat.
86103
86104 1998-07-25  Jim Meyering  <meyering@ascend.com>
86105
86106         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
86107         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
86108
86109 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
86110
86111         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
86112         uid and gid actually remain unchanged.
86113
86114 1998-07-07  Jim Meyering  <meyering@ascend.com>
86115
86116         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
86117
86118 1998-07-04  Jim Meyering  <meyering@ascend.com>
86119
86120         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
86121         to prove that this macro can be used in packages without regex.c.
86122
86123 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
86124
86125         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
86126         is to be used.
86127
86128 1998-07-03  Jim Meyering  <meyering@ascend.com>
86129
86130         * m4/gettext.m4: Add -lintl if it's found to be necessary.
86131
86132         * m4/gettext.m4: New file -- from gettext-0.10.35.
86133         * m4/lcmessage.m4: Likewise.
86134         * m4/progtest.m4: Likewise.
86135
86136         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
86137         * m4/jm-macros.m4: Require the new macro.
86138
86139 1998-06-29  Jim Meyering  <meyering@ascend.com>
86140
86141         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
86142         for the definition of NGROUPS (used in a system header included
86143         by sys/mount.h).
86144
86145 1998-06-28  Jim Meyering  <meyering@ascend.com>
86146
86147         * m4/ls-mntd-fs.m4: New file.
86148         * m4/fstypename.m4: New file.
86149
86150         * m4/jm-macros.m4: Require the new macro.
86151         * m4/jm-glibc-io.m4: New file.
86152
86153 1998-05-19  Jim Meyering  <meyering@ascend.com>
86154
86155         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
86156         * m4/lchown.m4: New file.
86157
86158         * m4/Makefile.am.in: New file.
86159         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
86160
86161 1998-05-14  Jim Meyering  <meyering@ascend.com>
86162
86163         * m4/Makefile.am (EXTRA_DIST): Add them.
86164         * m4/jm-macros.m4: New file.
86165         * m4/utimbuf.m4: New file.
86166
86167 1998-05-12  Jim Meyering  <meyering@ascend.com>
86168
86169         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
86170
86171 1998-05-11  Jim Meyering  <meyering@ascend.com>
86172
86173         * m4/isc-posix.m4: New file.
86174
86175 1998-05-10  Jim Meyering  <meyering@ascend.com>
86176
86177         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
86178
86179 1998-05-09  Jim Meyering  <meyering@ascend.com>
86180
86181         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
86182         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
86183         with automake.
86184
86185         * m4/ssize_t.m4: New file.
86186         * m4/mktime.m4: Remove file -- the new automake has this now.
86187
86188 1998-04-26  Jim Meyering  <meyering@ascend.com>
86189
86190         * m4/assert.m4: New file.
86191         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
86192
86193 1998-04-05  Jim Meyering  <meyering@ascend.com>
86194
86195         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
86196         (jm_PREREQ): Use it here.
86197
86198 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
86199
86200         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
86201         in acconfig.h.
86202
86203 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
86204
86205         * m4/prereq.m4: New file.
86206         * m4/error.m4: New file.
86207         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
86208
86209 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
86210
86211         * m4/getline.m4: Don't set am_cv_func_working_getline before the
86212         cache-check for the same variable -- that defeated the purpose of
86213         the test; the test program was never run.  This was a problem only
86214         on systems with losing getline functions -- HP-UX 10.20 is one.
86215         Reported by Bjorn Helgaas.
86216
86217 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
86218
86219         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
86220
86221 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
86222
86223         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
86224
86225         * m4/const.m4: New file.  Use an initializer in this declaration
86226         typedef int charset[2]; const charset x;
86227         Reported by Bob Glickstein.
86228
86229 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
86230
86231         * m4/chown.m4: Fix reversed types on -1 args to chown.
86232         From Kaveh Ghazi.
86233
86234 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
86235
86236         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
86237         Add lseek and memchr.
86238
86239         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
86240         T.E.Dickey <dickey@clark.net> said that some older preprocessors
86241         have a 20-character limit on names.
86242
86243 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
86244
86245         * m4/inttypes_h.m4: New file.
86246         * m4/uintmax_t.m4: New file.
86247         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
86248
86249
86250         -----
86251
86252         Local Variables:
86253         coding: utf-8
86254         End:
86255
86256         Copyright (C) 1997-2011 Free Software Foundation, Inc.
86257
86258         Copying and distribution of this file, with or without
86259         modification, are permitted provided the copyright notice
86260         and this notice are preserved.