isnanl, isnand, isnanf: Work around MSVC bug.
[gnulib.git] / ChangeLog
1 2011-09-17  Bruno Haible  <bruno@clisp.org>
2
3         isnanl, isnand, isnanf: Work around MSVC bug.
4         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
5
6 2011-09-17  Bruno Haible  <bruno@clisp.org>
7
8         sys_socket tests: Fix recent mistake.
9         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
10
11 2011-09-17  Bruno Haible  <bruno@clisp.org>
12
13         putenv: Support for MSVC.
14         * modules/putenv (Depends-on): Add environ.
15         * lib/putenv.c (environ): Disable declaration.
16         * lib/unistd.in.h: Update comment.
17
18 2011-09-17  Bruno Haible  <bruno@clisp.org>
19
20         math: Avoid macro redefinition warnings on MSVC.
21         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
22         Undefine before redefining.
23
24 2011-09-17  Bruno Haible  <bruno@clisp.org>
25
26         doc: Mention functions which are declared as macros.
27         * doc/posix-functions/*[fl].texi: Mention that some functions are
28         defined as macros with arguments only.
29
30 2011-09-17  Bruno Haible  <bruno@clisp.org>
31
32         Add dependencies to new dirent related modules.
33         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
34         * modules/fts (Depends-on): Likewise.
35         * modules/glob (Depends-on): Likewise.
36         * modules/savedir (Depends-on): Likewise.
37         * modules/scandir (Depends-on): Likewise.
38         * modules/dirent-safer (Depends-on): Add opendir, closedir.
39         * modules/fdopendir (Depends-on): Add opendir.
40
41 2011-09-17  Bruno Haible  <bruno@clisp.org>
42
43         inet_pton: Support for MSVC on Windows Vista or newer.
44         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
45         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
46         HAVE_DECL_INET_PTON is defined.
47         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
48         On platforms with <winsock2.h>, test whether inet_pton is declared in
49         <ws2tcpip.h>. If so, arrange to replace it.
50         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
51         REPLACE_INET_PTON.
52         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
53         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
54         (Depends-on, configure.ac): Update condition.
55         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
56
57 2011-09-17  Bruno Haible  <bruno@clisp.org>
58
59         inet_ntop: Support for MSVC on Windows Vista or newer.
60         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
61         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
62         HAVE_DECL_INET_NTOP is defined.
63         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
64         On platforms with <winsock2.h>, test whether inet_ntop is declared in
65         <ws2tcpip.h>. If so, arrange to replace it.
66         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
67         REPLACE_INET_NTOP.
68         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
69         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
70         (Depends-on, configure.ac): Update condition.
71         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
72
73 2011-09-16  Eric Blake  <eblake@redhat.com>
74
75         test-fsync: yet another enhancement
76         * tests/test-fsync.c (main): Also test behavior on read-only text
77         file.
78
79 2011-09-16  Bruno Haible  <bruno@clisp.org>
80
81         Enhance fsync, fdatasync tests.
82         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
83         * tests/test-fdatasync.c (main): Likewise.
84
85 2011-09-16  Bruno Haible  <bruno@clisp.org>
86
87         Support for MSVC compiler: Ensure mode_t gets defined.
88         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
89         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
90         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
91         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
92         * tests/test-fcntl-h.c: Check that mode_t is defined.
93         * tests/test-sys_stat.c: Likewise.
94         * tests/test-sys_types.c: Likewise.
95         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
96         * doc/posix-headers/sys_stat.texi: Likewise.
97         * doc/posix-headers/sys_types.texi: Likewise.
98
99 2011-09-16  Bruno Haible  <bruno@clisp.org>
100
101         sys_stat: Support for MSVC.
102         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
103         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
104         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
105         MSVC.
106
107 2011-09-16  Bruno Haible  <bruno@clisp.org>
108
109         Support for MSVC compiler: Ensure off_t gets defined.
110         * lib/unistd.in.h: Include <sys/types.h>.
111         * tests/test-fcntl-h.c: Check that off_t is defined.
112         * tests/test-sys_stat.c: Likewise.
113         * tests/test-sys_types.c: Likewise.
114
115 2011-09-16  Eric Blake  <eblake@redhat.com>
116
117         fdatasync: port to Solaris
118         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
119         * modules/fdatasync (Link): Document it.
120         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
121
122         fdatasync: port to MacOS X 10.7
123         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
124         declared.
125         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
126         * modules/unistd (Makefile.am): Substitute it.
127         * lib/unistd.in.h (fdatasync): Declare on MacOS.
128         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
129
130         fdatasync: minor improvements
131         * modules/fdatasync (Depends-on): Add condition for fsync.
132         * lib/fdatasync.c (fdatasync): Add comment.
133         * tests/test-unistd-c++.cc: Test fdatasync.
134
135         unistd: update refs to newer POSIX
136         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
137         Suggested by Bruno Haible.
138
139         fdatasync: new module
140         * modules/fsync (Description): Document difference to fdatasync.
141         * modules/fdatasync: New module.
142         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
143         * lib/fdatasync.c (fdatasync): Likewise.
144         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
145         defaults.
146         * modules/unistd (Makefile.am): Set witnesses.
147         * lib/unistd.in.h (fdatasync): Declare.
148         * MODULES.html.sh: Document it.
149         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
150         * modules/fdatasync-tests: New test.
151         * tests/test-fdatasync.c: Likewise.
152
153 2011-09-16  Eric Blake  <eblake@redhat.com>
154
155         test-fsync: enhance tests
156         * modules/fsync-tests (Depends-on): Add errno, for mingw.
157         * tests/test-fsync.c (main): Enhance test.
158
159 2011-09-15  Bruno Haible  <bruno@clisp.org>
160
161         Support for MSVC compiler: Ensure ssize_t gets defined.
162         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
163         * doc/posix-headers/stdio.texi: Likewise.
164         * modules/stdio (Depends-on): Add ssize_t.
165         * modules/sys_socket (Depends-on): Likewise.
166         * modules/sys_types (Depends-on): Likewise.
167         * modules/sys_uio (Depends-on): Likewise.
168         * modules/unistd (Depends-on): Likewise.
169         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
170         * tests/test-sys_types.c: Check that ssize_t is defined.
171
172 2011-09-14  Bruno Haible  <bruno@clisp.org>
173
174         Avoid using #, the m4 comment starter character, near brackets.
175         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
176         delimiter character in sed expressions.
177         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
178         Suggested by Eric Blake.
179
180         Properly quote AC_CHECK_DECLS' 4th argument.
181         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
182         argument.
183         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
184         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
185         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
186         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
187         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
188         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
189         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
190         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
191         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
192         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
193         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
194         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
195         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
196         * m4/isinf.m4 (gl_ISINF): Likewise.
197         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
198         * m4/readutmp.m4 (gl_READUTMP): Likewise.
199         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
200         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
201         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
202         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
203         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
204         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
205         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
206         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
207         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
208         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
209         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
210         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
211         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
212         Reported by Eric Blake.
213
214         Properly quote AC_CHECK_DECL's 4th argument.
215         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
216         argument.
217         * m4/argp.m4 (gl_ARGP): Likewise.
218         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
219         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
220         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
221         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
222         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
223         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
224         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
225         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
226         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
227         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
228         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
229         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
230         Reported by Eric Blake.
231
232 2011-09-14  Eric Blake  <eblake@redhat.com>
233
234         opendir: avoid compile warning
235         * lib/opendir.c (includes): Always include errno.h.
236         Reported by Tatsuro MATSUOKA.
237
238 2011-09-14  Jim Meyering  <meyering@redhat.com>
239
240         maint.mk: sc_tight_scope: propagate failure from sub-make
241         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
242         Reported by Martin von Gagern.
243
244 2011-09-13  Bruno Haible  <bruno@clisp.org>
245
246         tempname: Support for MSVC.
247         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
248         MSVC.
249         * modules/tempname (Depends-on): Add fcntl-h.
250
251 2011-09-13  Bruno Haible  <bruno@clisp.org>
252
253         sys_time: Support for MSVC.
254         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
255         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
256         include <winsock2.h>.
257         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
258         function declarations that collide with POSIX.
259         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
260         (Makefile.am): Substitute HAVE_WINSOCK2_H.
261
262 2011-09-13  Bruno Haible  <bruno@clisp.org>
263
264         stat: Support for MSVC.
265         * lib/stat.c: Include pathmax.h.
266         * modules/stat (Depends-on): Add pathmax.
267
268         pathmax: Support for native Windows.
269         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
270
271 2011-09-12  Bruno Haible  <bruno@clisp.org>
272
273         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
274         * lib/dirent.in.h (struct dirent): New type.
275         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
276         DT_WHT): New macros.
277         (DIR): New type.
278         (opendir, closedir): Declare only if the module 'opendir' is enabled.
279         (readdir, rewinddir): New declarations.
280         * lib/dirent-private.h: New file.
281         * lib/opendir.c: New file.
282         * lib/readdir.c: New file.
283         * lib/rewinddir.c: New file.
284         * lib/closedir.c: New file.
285         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
286         * m4/opendir.m4: New file.
287         * m4/readdir.m4: New file.
288         * m4/rewinddir.m4: New file.
289         * m4/closedir.m4: New file.
290         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
291         REPLACE_CLOSEDIR here.
292         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
293         readdir, rewinddir are declared.
294         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
295         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
296         HAVE_REWINDDIR, HAVE_CLOSEDIR.
297         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
298         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
299         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
300         * modules/opendir: New file.
301         * modules/readdir: New file.
302         * modules/rewinddir: New file.
303         * modules/closedir: New file.
304         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
305         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
306         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
307         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
308         * NEWS: Mention the 'fchdir' change.
309
310 2011-09-11  Bruno Haible  <bruno@clisp.org>
311
312         asm-underscore.m4: Support for MSVC.
313         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
314         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
315
316 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
317
318         Doc about crypt functions.
319         * doc/posix-functions/crypt.texi: Expand range of glibc versions
320         needing for _GNU_SOURCE to get crypt.
321         * doc/posix-functions/encrypt.texi: Likewise.
322         * doc/posix-functions/setkey.texi: Likewise.
323
324 2011-09-11  Bruno Haible  <bruno@clisp.org>
325
326         doc: Update regarding MSVC 9.
327         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
328         tested".
329         * doc/posix-functions/*.texi: Update with info about MSVC 9.
330         * doc/posix-headers/*.texi: Likewise.
331         * doc/pastposix-functions/*.texi: Likewise.
332         * doc/glibc-functions/*.texi: Likewise.
333         * doc/glibc-headers/*.texi: Likewise.
334
335 2011-09-11  Bruno Haible  <bruno@clisp.org>
336
337         unistd et al.: Don't assume <unistd.h> exists.
338         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
339         does not exist.
340         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
341         exist. But include <stdlib.h>.
342         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
343         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
344         symlink() does not exist.
345         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
346         include <io.h> instead.
347         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
348         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
349         include <direct.h> instead.
350         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
351         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
352         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
353         <io.h> instead.
354         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
355         correctly if the system does not have hard links.
356         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
357         <direct.h> instead.
358         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
359         it when looking for function declarations.
360         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
361         <direct.h> and <io.h> instead.
362         * doc/posix-headers/unistd.texi: More details about MSVC problem.
363
364 2011-09-11  Bruno Haible  <bruno@clisp.org>
365
366         strcase: Support for MSVC.
367         * modules/strcase (Status, Notice): Remove obsoletion mark.
368         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
369         * doc/posix-functions/strncasecmp.texi: Likewise.
370
371         strings: Don't assume <strings.h> exists.
372         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
373         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
374         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
375         * doc/posix-headers/strings.texi: Mention the MSVC problem.
376
377 2011-09-11  Bruno Haible  <bruno@clisp.org>
378
379         dirent: Don't assume <dirent.h> exists.
380         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
381         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
382         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
383         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
384
385 2011-09-11  Bruno Haible  <bruno@clisp.org>
386
387         Fix wint_t on MSVC.
388         * lib/wchar.in.h (wint_t): On MSVC, override it.
389         * lib/wctype.in.h (wint_t): Likewise.
390         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
391         MSVC.
392         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
393         * doc/posix-headers/wctype.texi: Likewise.
394
395 2011-09-11  Bruno Haible  <bruno@clisp.org>
396
397         sys_types: Fix typo.
398         * lib/sys_types.in.h: Fix typo in comment.
399         Reported by Paul Eggert.
400
401         Support for MSVC compiler: Ensure size_t gets defined.
402         * modules/strings (Depends-on): Add 'sys_types'.
403         * modules/sys_uio (Depends-on): Likewise.
404         * lib/sys_uio.in.h: Update comment.
405
406         C++ tests for module 'sys_types'.
407         * modules/sys_types-c++-tests: New file.
408         * tests/test-sys_types-c++.cc: New file.
409
410         Tests for module 'sys_types'.
411         * modules/sys_types-tests: New file.
412         * tests/test-sys_types.c: New file.
413
414         New module 'sys_types'.
415         * lib/sys_types.in.h: New file.
416         * m4/sys_types_h.m4: New file.
417         * modules/sys_types: New file.
418         * doc/posix-headers/sys_types.texi: Mention the new module and the
419         size_t problem on MSVC 9.
420
421 2011-09-11  Bruno Haible  <bruno@clisp.org>
422
423         Support for MSVC compiler: Avoid division by a literal 0.
424         * lib/math.in.h (NAN): Define through a function call also on MSVC.
425         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
426         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
427         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
428         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
429         * tests/infinity.h: New file.
430         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
431         on MSVC.
432         * tests/test-ceilf1.c: Include infinity.h.
433         (main): Use Infinityf.
434         * tests/test-ceil1.c: Include infinity.h.
435         (main): Use Infinityd.
436         * tests/test-ceill.c: Include infinity.h.
437         (main): Use Infinityl.
438         * tests/test-dprintf-posix.c: Include infinity.h.
439         (test_function): Use Infinityd.
440         * tests/test-floorf1.c: Include infinity.h.
441         (main): Use Infinityf.
442         * tests/test-floor1.c: Include infinity.h.
443         (main): Use Infinityd.
444         * tests/test-floorl.c: Include infinity.h.
445         (main): Use Infinityl.
446         * tests/test-fprintf-posix.c: Include infinity.h.
447         (test_function): Use Infinityd.
448         * tests/test-frexp.c: Include infinity.h.
449         (main): Use Infinityd.
450         * tests/test-frexpl.c: Include infinity.h.
451         (main): Use Infinityl.
452         * tests/test-isfinite.c: Include infinity.h.
453         (test_isfinitef): Use Infinityf.
454         (test_isfinited): Use Infinityd.
455         (test_isfinitel): Use Infinityl.
456         * tests/test-isinf.c: Include infinity.h.
457         (test_isinff): Use Infinityf.
458         (test_isinfd): Use Infinityd.
459         (test_isinfl): Use Infinityl.
460         * tests/test-isnan.c: Include infinity.h.
461         (test_float): Use Infinityf.
462         (test_double): Use Infinityd.
463         (test_long_double): Use Infinityl.
464         * tests/test-isnanf.h: Include infinity.h.
465         (main): Use Infinityf.
466         * tests/test-isnand.h: Include infinity.h.
467         (main): Use Infinityd.
468         * tests/test-isnanl.h: Include infinity.h.
469         (main): Use Infinityl.
470         * tests/test-ldexpl.c: Include infinity.h.
471         (main): Use Infinityl.
472         * tests/test-printf-posix.h: Include infinity.h.
473         (test_function): Use Infinityd.
474         * tests/test-roundf1.c: Include infinity.h.
475         (main): Use Infinityf.
476         * tests/test-round1.c: Include infinity.h.
477         (main): Use Infinityd.
478         * tests/test-roundl.c: Include infinity.h.
479         (main): Use Infinityl.
480         * tests/test-signbit.c: Include infinity.h.
481         (test_signbitf): Use Infinityf.
482         (test_signbitd): Use Infinityd.
483         (test_signbitl): Use Infinityl.
484         * tests/test-snprintf-posix.h: Include infinity.h.
485         (test_function): Use Infinityd, Infinityl.
486         * tests/test-sprintf-posix.h: Include infinity.h.
487         (test_function): Use Infinityd, Infinityl.
488         * tests/test-truncf1.c: Include infinity.h.
489         (main): Use Infinityf.
490         * tests/test-trunc1.c: Include infinity.h.
491         (main): Use Infinityd.
492         * tests/test-truncl.c: Include infinity.h.
493         (main): Use Infinityl.
494         * tests/test-vasnprintf-posix.c: Include infinity.h.
495         (test_function): Use Infinityd, Infinityl.
496         * tests/test-vasprintf-posix.c: Include infinity.h.
497         (test_function): Use Infinityd, Infinityl.
498         * modules/ceilf-tests (Files): Add tests/infinity.h.
499         * modules/ceil-tests (Files): Likewise.
500         * modules/ceill-tests (Files): Likewise.
501         * modules/dprintf-posix-tests (Files): Likewise.
502         * modules/floorf-tests (Files): Likewise.
503         * modules/floor-tests (Files): Likewise.
504         * modules/floorl-tests (Files): Likewise.
505         * modules/fprintf-posix-tests (Files): Likewise.
506         * modules/frexp-tests (Files): Likewise.
507         * modules/frexp-nolibm-tests (Files): Likewise.
508         * modules/frexpl-tests (Files): Likewise.
509         * modules/frexpl-nolibm-tests (Files): Likewise.
510         * modules/isfinite-tests (Files): Likewise.
511         * modules/isinf-tests (Files): Likewise.
512         * modules/isnan-tests (Files): Likewise.
513         * modules/isnanf-tests (Files): Likewise.
514         * modules/isnanf-nolibm-tests (Files): Likewise.
515         * modules/isnand-tests (Files): Likewise.
516         * modules/isnand-nolibm-tests (Files): Likewise.
517         * modules/isnanl-tests (Files): Likewise.
518         * modules/isnanl-nolibm-tests (Files): Likewise.
519         * modules/ldexpl-tests (Files): Likewise.
520         * modules/printf-posix-tests (Files): Likewise.
521         * modules/roundf-tests (Files): Likewise.
522         * modules/round-tests (Files): Likewise.
523         * modules/roundl-tests (Files): Likewise.
524         * modules/signbit-tests (Files): Likewise.
525         * modules/snprintf-posix-tests (Files): Likewise.
526         * modules/sprintf-posix-tests (Files): Likewise.
527         * modules/truncf-tests (Files): Likewise.
528         * modules/trunc-tests (Files): Likewise.
529         * modules/truncl-tests (Files): Likewise.
530         * modules/vasnprintf-posix-tests (Files): Likewise.
531         * modules/vasprintf-posix-tests (Files): Likewise.
532         * modules/vdprintf-posix-tests (Files): Likewise.
533         * modules/vfprintf-posix-tests (Files): Likewise.
534         * modules/vprintf-posix-tests (Files): Likewise.
535         * modules/vsnprintf-posix-tests (Files): Likewise.
536         * modules/vsprintf-posix-tests (Files): Likewise.
537         * modules/xprintf-posix-tests (Files): Likewise.
538
539 2011-09-11  Bruno Haible  <bruno@clisp.org>
540
541         Ensure pid_t gets defined.
542         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
543         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
544         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
545         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
546         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
547         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
548         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
549         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
550         * tests/test-fcntl-h.c: Check that pid_t is defined.
551         * tests/test-sched.c: Likewise.
552         * tests/test-termios.c: Likewise.
553         * tests/test-time.c: Likewise.
554         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
555         * doc/posix-headers/signal.texi: Likewise.
556         * doc/posix-headers/sys_types.texi: Likewise.
557         * doc/posix-headers/time.texi: Likewise.
558
559 2011-09-11  Bruno Haible  <bruno@clisp.org>
560
561         acl: Fix compilation on Solaris 10 (older version).
562         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
563         of ACE_EVERYONE.
564         * lib/set-mode-acl.c (qset_acl): Likewise.
565         Reported by Christian Jullien <eligis@orange.fr>.
566
567 2011-09-10  Bruno Haible  <bruno@clisp.org>
568
569         iconv, unsetenv: Add support for MSVC compiler.
570         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
571         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
572
573 2011-09-10  Bruno Haible  <bruno@clisp.org>
574
575         *printf: Add support for MSVC compiler.
576         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
577         handles the exception caused by the %n directive. When cross-compiling,
578         guess no on native Windows.
579         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
580         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
581         emulate it through vsnprintf.
582         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
583         * doc/posix-functions/dprintf.texi: Update documentation regarding
584         MSVC 9.
585         * doc/posix-functions/fprintf.texi: Likewise.
586         * doc/posix-functions/printf.texi: Likewise.
587         * doc/posix-functions/snprintf.texi: Likewise.
588         * doc/posix-functions/sprintf.texi: Likewise.
589         * doc/posix-functions/swprintf.texi: Likewise.
590         * doc/posix-functions/vdprintf.texi: Likewise.
591         * doc/posix-functions/vfprintf.texi: Likewise.
592         * doc/posix-functions/vprintf.texi: Likewise.
593         * doc/posix-functions/vsnprintf.texi: Likewise.
594         * doc/posix-functions/vsprintf.texi: Likewise.
595         * doc/glibc-functions/asprintf.texi: Likewise.
596         * doc/glibc-functions/obstack_printf.texi: Likewise.
597         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
598         * doc/glibc-functions/vasprintf.texi: Likewise.
599
600 2011-09-10  Bruno Haible  <bruno@clisp.org>
601
602         nocrash: Add support for native Windows.
603         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
604
605 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
606             Bruno Haible  <bruno@clisp.org>
607
608         absolute-header, include-next: Add support for MSVC compiler.
609         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
610         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
611         directory separator in #line directives.
612         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
613         recognize also backslash as directory separator in #line directives.
614
615 2011-09-08  Jim Meyering  <meyering@redhat.com>
616
617         maint.mk: mark the post-release commit log with "maint: " prefix
618         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
619         one-line commit-log summary.
620
621 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
622             Bruno Haible  <bruno@clisp.org>
623
624         Doc about crypt functions.
625         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
626         systems.
627         * doc/posix-functions/encrypt.texi: Likewise.
628         * doc/posix-functions/setkey.texi: Likewise.
629
630 2011-09-08  Simon Josefsson  <simon@josefsson.org>
631
632         * lib/gc.h: Fix copyright header.
633
634 2011-09-07  Bruno Haible  <bruno@clisp.org>
635
636         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
637         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
638         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
639
640 2011-09-07  Bruno Haible  <bruno@clisp.org>
641
642         openat: Work around compilation error with OSF/1 5.1 DTK cc.
643         * lib/fopen.c: Use different syntax for include of <stdio.h>.
644         * lib/freopen.c: Likewise.
645         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
646         * lib/lstat.c: Likewise.
647         * lib/stat.c: Likewise.
648         * lib/open.c: Use different syntax for include of <fcntl.h>.
649         * lib/openat.c: Include fcntl.h again, explicitly.
650
651 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
652
653         parse-datetime: document the newly accepted format
654         * doc/parse-datetime.texi (Combined date and time of day items):
655         New section.
656
657 2011-09-06  Bruno Haible  <bruno@clisp.org>
658
659         acl: Fix a test failure on newer Solaris 10 with ZFS.
660         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
661         ENOSYS as no ACL.
662         Reported by Jim Meyering.
663
664 2011-09-06  Bruno Haible  <bruno@clisp.org>
665
666         acl: Update for AIX >= 5.3 with NFS.
667         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
668         ENOSYS as no ACL.
669
670         acl: Fix a test failure on AIX >= 5.3 with NFS.
671         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
672         as no ACL.
673
674 2011-09-06  Bruno Haible  <bruno@clisp.org>
675
676         acl: Fix a test failure on IRIX 6.5 with NFS.
677         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
678         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
679         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
680         * lib/copy-acl.c (qcopy_acl): Likewise.
681
682 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
683
684         openat: port to AIX 7.1 with large files
685         AIX 7.1 does a "#define openat open64at" if large files are in use,
686         so we can't simply #undef openat.  Use the orig_openat trick (similar
687         to orig_open in lib/open.c) to work around the problem.  Problem
688         reported by Kevin Brott for GNU tar, in the thread containing
689         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
690         * lib/openat.c (__need_system_fcntl_h): Define first.
691         Include <fcntl.h> and <sys/types.h> before undefining.
692         (orig_openat) [HAVE_OPENAT]: New inline function.
693         (openat) [HAVE_OPENAT]: Do not undef.
694         (rpl_openat): Use orig_openat, not openat.
695
696 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
697             Bruno Haible  <bruno@clisp.org>
698
699         acl: Avoid errors on NonStop Kernel.
700         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
701         ENOTSUP errors.
702
703 2011-09-05  Bruno Haible  <bruno@clisp.org>
704
705         acl: Clean up Solaris code.
706         * lib/acl-internal.h: Remove no-op #if.
707         * lib/file-has-acl.c: Likewise.
708         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
709         * lib/copy-acl.c (qcopy_acl): Likewise.
710
711 2011-09-05  Bruno Haible  <bruno@clisp.org>
712
713         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
714         binaries built on the original Solaris 10.
715         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
716         trivial.
717
718 2011-09-05  Bruno Haible  <bruno@clisp.org>
719
720         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
721         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
722         10.
723         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
724         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
725         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
726         instead of acl_get, facl_get, acl_set, facl_set.
727
728 2011-09-05  Bruno Haible  <bruno@clisp.org>
729
730         copy-file: Try unit tests on more file systems.
731         * tests/test-copy-file-1.sh: New file.
732         * tests/test-copy-file-2.sh: New file.
733         * modules/copy-file-tests (Files): Add them.
734         (Makefile.am): Add them to TESTS.
735
736         acl: Try unit tests on more file systems.
737         * tests/test-file-has-acl-1.sh: New file.
738         * tests/test-file-has-acl-2.sh: New file.
739         * tests/test-set-mode-acl-1.sh: New file.
740         * tests/test-set-mode-acl-2.sh: New file.
741         * tests/test-copy-acl-1.sh: New file.
742         * tests/test-copy-acl-2.sh: New file.
743         * modules/acl-tests (Files): Add them.
744         (Makefile.am): Add them to TESTS.
745
746 2011-09-04  Bruno Haible  <bruno@clisp.org>
747
748         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
749         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
750         10.
751         (OLD_ALLOW, OLD_DENY): New macros.
752         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
753         ACE_ACCESS_ALLOWED_ACE_TYPE.
754         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
755         ACE_ACCESS_DENIED_ACE_TYPE.
756         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
757         (NEW_ACE_EXECUTE): Fix value.
758         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
759         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
760         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
761         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
762         NEW_ACE_SYNCHRONIZE): New macros.
763         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
764         instead of acl_fromtext, acl_set, facl_set.
765         Fixes a coreutils/tests/cp/perm failure.
766
767 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
768
769         openat: test for fstatat (..., 0) bug
770         Further testing with tar suggests that fstatat (..., 0)
771         does not work in general, on AIX 7.1; see
772         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
773         So, give up entirely on AIX 7.1's fstatat, and fall back on our
774         replacement fstatat (which is what older AIX releases were using
775         anyway).
776         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
777         use is now changed to orig_fstatat.  This was probably the right
778         thing to do anyway.
779         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
780         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
781         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
782         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
783         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
784         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
785         if the bug is found.
786
787         openat: test for fstatat (AT_FDCWD, ..., 0) bug
788         This tests for another fstatat bug on AIX 7.1:
789         fstatat (AT_FDCWD, ..., 0) does not work.  See
790         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
791         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
792         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
793         (rpl_fstatat): Adjust so that it works around either (or both)
794         bugs if present.
795         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
796
797 2011-09-03  Karl Berry  <karl@gnu.org>
798
799         * doc/regex.texi (Character Class Operators): Avoid literal ":"
800         in index entries.
801
802 2011-09-02  Bruno Haible  <bruno@clisp.org>
803
804         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
805         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
806         values of AR, ARFLAGS, RANLIB.
807         Reported by John W. Eaton <jwe@gnu.org> for Octave.
808
809 2011-09-02  Bruno Haible  <bruno@clisp.org>
810
811         Find 'ar' program that fits with --host argument.
812         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
813
814 2011-09-02  Bruno Haible  <bruno@clisp.org>
815
816         tests: init.sh: Support any non-GNU diff.
817         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
818         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
819         Solaris 8.
820
821 2011-09-02  Bruno Haible  <bruno@clisp.org>
822
823         tests: init.sh: work also with any non-GNU diff that supports -u
824         * tests/init.sh: Relax check for diff -u support.
825         Rather than checking for GNU diff via --version, simply check
826         for support for -u itself.  Useful at least on OpenBSD 4.9,
827         AIX 7.1, IRIX 6.5, and Solaris 10.
828
829 2011-09-01  Bruno Haible  <bruno@clisp.org>
830
831         strtoimax, strtoumax: Document problem on HP-UX 11.
832         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
833         * doc/posix-functions/strtoumax.texi: Likewise.
834
835 2011-09-01  Bruno Haible  <bruno@clisp.org>
836
837         strtoumax: Avoid link error on OSF/1 with DTK cc.
838         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
839         defined as a function.
840         * modules/strtoumax (Depends-on, configure.ac): Test only whether
841         strtoumax is defined, not whether it is declared.
842
843 2011-09-01  Bruno Haible  <bruno@clisp.org>
844
845         strtoimax: Avoid link error on OSF/1 with DTK cc.
846         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
847         defined as a function.
848         * modules/strtoimax (Depends-on, configure.ac): Test only whether
849         strtoimax is defined, not whether it is declared.
850
851 2011-09-01  Bruno Haible  <bruno@clisp.org>
852
853         imaxdiv: Avoid link error on OSF/1 with DTK cc.
854         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
855         as a function.
856         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
857         whether it is declared.
858
859 2011-09-01  Bruno Haible  <bruno@clisp.org>
860
861         imaxabs: Avoid link error on OSF/1 with DTK cc.
862         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
863         as a function.
864         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
865         whether it is declared.
866
867 2011-09-01  Bruno Haible  <bruno@clisp.org>
868
869         Tests for module 'strtoumax'.
870         * modules/strtoumax-tests: New file.
871         * tests/test-strtoumax.c: New file.
872
873         Tests for module 'strtoimax'.
874         * modules/strtoimax-tests: New file.
875         * tests/test-strtoimax.c: New file.
876
877         Tests for module 'imaxdiv'.
878         * modules/imaxdiv-tests: New file.
879         * tests/test-imaxdiv.c: New file.
880
881         Tests for module 'imaxabs'.
882         * modules/imaxabs-tests: New file.
883         * tests/test-imaxabs.c: New file.
884
885 2011-09-01  Bruno Haible  <bruno@clisp.org>
886
887         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
888         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
889         pthread_create.
890
891 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
892
893         openat: work around AIX 7.1 fstatat issue
894         This should fix the problem that was not properly fixed
895         in the previous change, dated 2011-08-30.
896         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
897         __need_system_stat_h defined.
898         (orig_fstatat) [HAVE_FSTATAT]: New function.
899         (rpl_fstatat): Go back to the old way of doing things,
900         except call orig_fstatat instead of fstatat.
901         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
902         Remove unnecessary check whether fstatat fills in st_size etc.
903
904 2011-09-01  Bruno Haible  <bruno@clisp.org>
905
906         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
907         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
908         just include the system's header.
909
910 2011-08-31  Jim Meyering  <meyering@redhat.com>
911
912         tests: avoid spurious assertion failure in test-float.c on ppc64
913         * tests/test-float.c (test_long_double): Comment out an assertion,
914         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
915         with gcc-4.4.4.
916
917         maint: indent with spaces, not TABs
918         I need to get in the habit of running gnulib's "make check".
919         Both of these would have been caught.
920         * m4/largefile.m4: Indent with spaces, not TABs.
921         * lib/parse-datetime.y (iso_8601_time): Likewise.
922         Spotted by Pádraig Brady.
923
924         test-parse-datetime.c: accommodate a relatively strict gcc warning
925         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
926         to avoid a warning from gcc's -Werror=missing-declarations.
927         Insert a few spaces-before-funcall-parenthesis.
928
929 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
930
931         parse-datetime: accept ISO 8601 date and time rep with "T" separator
932         The parser now accepts ISO 8601 date-time strings with "T" as the
933         separator.  It has long parsed dates like "2004-02-29 16:21:42"
934         with a space between the date and time strings.  Now it also parses
935         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
936         variants like "2004-02-29T16:21:42.333-07:00"
937         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
938         of day representation using the 'T' separator character.
939         * doc/parse-datetime.texi (General date syntax): replace use of
940         deprecated --iso-8601 option with --rfc-3339 in example of date
941         command output formats that can be parsed.
942         * tests/test-parse-datetime.c (tm_diff): New function, taken from
943         lib/parse-datetime.y.
944         (gmt_offset): New function.
945         (main): Add additional test cases to validate ISO8601 extended
946         date and time of day parsing.
947
948 2011-08-31  Bruno Haible  <bruno@clisp.org>
949
950         freopen: Documentation.
951         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
952         name.
953         Reported by Claudio Bley <claudio.bley@gmail.com>.
954
955 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
956
957         freopen: Don't crash if the filename argument is NULL.
958         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
959         NULL.
960
961 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
962
963         openat: work around AIX 7.1 fstatat bug
964         Problem reported by Kevin Brott for GNU tar, in the thread containing
965         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
966         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
967         FSTATAT_ST_SIZE_ETC_BROKEN.
968         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
969         rpl_fstatat.
970         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
971         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
972         AC_CHECK_FUNCS_ONCE for fstatat.
973         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
974         fchmodat, mkdirat, openat and unlinkat.
975
976 2011-08-30  Bruno Haible  <bruno@clisp.org>
977
978         Avoid endless recursions if config.h includes some header files.
979         * lib/fopen.c (__need_FILE): Define already before including config.h.
980         * lib/freopen.c (__need_FILE): Likewise.
981         * lib/open.c (__need_system_fcntl_h): Likewise.
982         * lib/stat.c (__need_system_sys_stat_h): Likewise.
983         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
984         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
985
986 2011-08-25  Karl Berry  <karl@gnu.org>
987
988         * config/srclist.txt (ylwrap): new try.
989         * build-aux/ylwrap: new file.
990
991 2011-08-23  Bruno Haible  <bruno@clisp.org>
992
993         tmpdir: Use a good default directory on native Windows.
994         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
995         (P_tmpdir): Default to _P_tmpdir on native Windows.
996         (path_search): On native Windows, try the value returned by GetTempPath
997         before trying P_tmpdir.
998         * modules/tmpdir (Depends-on): Add pathmax.
999         Suggested by John Darrington <john@darrington.wattle.id.au>.
1000
1001 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
1002
1003         doc: fix typo in README-release
1004         * top/README-release: Capitalize first word of a sentence.
1005
1006 2011-08-19  Jim Meyering  <meyering@redhat.com>
1007
1008         fts: do not exhaust memory when processing million-entry directories
1009         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
1010         directory would require about 256*N bytes of memory.  Thus, it was
1011         easy to construct a directory too large to be processed by any of
1012         those tools.  With this change, fts' maximum memory utilization is
1013         now limited to around 30MB.
1014         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
1015         (fts_read): When we've processed the final entry (i.e., when
1016         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
1017         using the parent entry to read any remaining entries.  Dispatch
1018         depending on what fts_build returns:
1019         - NULL+stop, aka failure: stop
1020         - NULL otherwise: move up in the dir hierarchy
1021         - non-NULL: handle this new entry
1022         (fts_build): Declare and use new local, continue_readdir.
1023         Prepare to be called from fts_read, when the entries
1024         from a partially-read directory have just been exhausted.
1025         In that case, we'll skip the opendir and instead use the parent's
1026         fts_dirp and derive dir_fd from that.
1027         Finally, in the readdir loop, if we read max_entries entries,
1028         exit the loop ensuring *not* to call closedir.  This is required
1029         so that fts_dirp can be reused on a subsequent call.
1030         Prompted by Ben England's report of memory exhaustion in find
1031         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
1032
1033         maint: fts: move decl of `dp' down into while loop; split a long line
1034         * lib/fts.c (fts_build): No semantic change.
1035
1036         fts: add/use new struct member, fts_dirp
1037         We are about to use this to manage any directory with
1038         too many entries to read all of them into memory at once.
1039         To do that, we'll need to save the DIR* pointer in each
1040         affected FTSENT struct.
1041         * lib/fts_.h: Include <dirent.h>.
1042         (struct FTSENT) [fts_dirp]: New member.
1043         * lib/fts.c (closedir_and_clear): Define.
1044         Use it in place of closedir so that we are sure to
1045         clear the new fts_dirp member when done with it.
1046         (fts_alloc): Initialize the new member.
1047         (fts_lfree): Free, if needed.
1048
1049         maint: fts: give __opendir2 a new parameter and rename
1050         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
1051         than surreptitiously using sole caller's "dir_fd".
1052         (fts_opendir): Rename from __opendir2.
1053
1054         maint: fts.c: remove __opendir2's now-unused parameter, oflag
1055         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
1056
1057         maint: fts.c: correct off-by-one indentation
1058         * lib/fts.c (fts_build): Correct indentation, change style
1059         of a couple of block comments, and bracing style.
1060
1061         maint: fts.c: move __opendir2 #define "up" out of function body
1062         * lib/fts.c (__opendir2): Move "up".  No semantic change.
1063
1064         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
1065         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
1066         out for a long time and besides was useful only on BSD systems.
1067
1068 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
1069
1070         regex: port to Stratus OpenVOS
1071         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
1072         define to empty, rather than attempting nonportable optimizations.
1073         Problem reported by Paul Green in:
1074         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
1075         and fix suggested by Eric Blake in:
1076         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
1077
1078 2011-08-17  Eric Blake  <eblake@redhat.com>
1079
1080         getcwd: fix test failures on mingw
1081         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
1082         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
1083         test if long directory cannot be created, and allow mingw errno.
1084
1085         getcwd-lgpl: fix m4 to match relaxed test for BSD
1086         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
1087         (gl_FUNC_GETCWD_SIGNATURE): New macro.
1088         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
1089         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
1090         signature problem.
1091
1092         getcwd: fix compilation on mingw64
1093         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
1094         getcwd.
1095         Reported by Marc-André Lureau.
1096
1097         pipe2: silence compiler warning
1098         * lib/pipe2.c (pipe2): Hide label if it is not used.
1099
1100 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
1101
1102         relocatable-prog: fix link error
1103         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
1104         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
1105         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
1106         into modules/relocatable-lib without noticing that
1107         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
1108         also needs to build relocatable.c.
1109
1110 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
1111
1112         getaddrinfo: fix sh typo in gai_strerrorA decl checking
1113         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
1114         shell code: it contained a 'break' that was not in a loop.
1115         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
1116         via a shell-language loop; this may have been true in old Autoconf
1117         versions, but it's not true in Autoconf 2.68.  I found this bug
1118         when testing coreutils git on Solaris 8, whose shell complains
1119         about the syntax error.
1120
1121 2011-08-12  Simon Josefsson  <simon@josefsson.org>
1122
1123         * lib/base64.c: Fix comment to reference RFC 4648.
1124         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
1125         <gvtulder@gmail.com>.
1126
1127 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
1128
1129         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
1130
1131         po/Makefile.in.in: fix make -q problem
1132         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
1133         rule, since there's no file named 'check-macro-version' and its
1134         use as a file breaks make -q.
1135         (all): Don't depend on check-macro-version.
1136         (CHECK_MACRO_VERSION): New macro.
1137         (stamp-po): Use it.
1138
1139         configmake: fix make -q problem
1140         * modules/configmake (configmake.h): Update configmake.h's time stamp
1141         even if the file does not change.  Otherwise, 'make -q' fails.
1142         Problem reported by Simon Josefsson in
1143         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
1144
1145 2011-08-11  Jim Meyering  <meyering@redhat.com>
1146
1147         git-version-gen: correct the advice in a comment
1148         * build-aux/git-version-gen: Correct comment.
1149         Don't recommend to list .tarball-version in .gitignore.
1150
1151 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
1152
1153         base64: fix off-by-one buffer size bug
1154         Problem and (trivial) fix reported by Gijs van Tulder in
1155         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
1156         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
1157         * tests/test-base64.c (main): Catch the bug.
1158
1159 2011-08-10  Eric Blake  <eblake@redhat.com>
1160
1161         closein: correct comments
1162         * lib/closein.c (close_stdin): Improve comments.
1163
1164 2011-08-09  Bruno Haible  <bruno@clisp.org>
1165
1166         More tests for 'fseeko'.
1167         * tests/test-fseeko3.c: New file, from Eric Blake.
1168         * tests/test-fseeko3.sh: New file.
1169         * modules/fseeko-tests (Files): Add them.
1170         (TESTS): Add test-fseeko3.sh.
1171         (check_PROGRAMS): Add test-fseeko3.
1172
1173 2011-08-09  Eric Blake  <eblake@redhat.com>
1174
1175         fseeko: remove unneeded hack
1176         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
1177
1178         fseeko: fix bug on glibc
1179         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
1180         Reported by John W. Eaton.
1181
1182 2011-08-08  Bruno Haible  <bruno@clisp.org>
1183
1184         unictype/base: Fix interoperability with preinstalled libunistring.
1185         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
1186         Reported by Simon Josefsson.
1187
1188 2011-08-08  Bruno Haible  <bruno@clisp.org>
1189
1190         iswblank: Detect declaration correctly.
1191         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
1192         AC_CHECK_DECLS invocation.
1193
1194 2011-08-08  Bruno Haible  <bruno@clisp.org>
1195
1196         tcgetsid: Detect declaration correctly.
1197         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
1198         AC_CHECK_DECLS invocation.
1199         Reported by Simon Josefsson.
1200
1201 2011-08-08  Eric Blake  <eblake@redhat.com>
1202
1203         largefile: fix typo that regressed large file support
1204         * modules/largefile (configure.ac-early): Fix section name.
1205
1206 2011-08-06  Karl Berry  <karl@gnu.org>
1207
1208         * MODULES.html.sh (func_all_files): _Noreturn is no longer
1209         a separate module.
1210
1211 2011-08-05  Simon Josefsson  <simon@josefsson.org>
1212
1213         openat: Fix warnings and commens when building unlinkat.c on Hurd.
1214         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
1215         get prototype for free.
1216
1217 2011-08-04  Bruno Haible  <bruno@clisp.org>
1218
1219         Tests for module 'pathmax'.
1220         * modules/pathmax-tests: New file.
1221         * tests/test-pathmax.c: New file.
1222
1223         canonicalize-lgpl: Support larger filenames on the Hurd.
1224         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
1225         Reported by Paul Eggert.
1226
1227         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
1228         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
1229         * lib/chdir-long.h: Include pathmax.h.
1230         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
1231         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
1232         (PATH_MAX): Remove code that is done by pathmax.h.
1233         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
1234         * lib/tmpfile.c: Add a comment.
1235         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
1236         * modules/chdir-long (Depends-on): Add pathmax.
1237         * modules/getcwd (Depends-on): Add pathmax.
1238         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
1239         is not defined.
1240         * doc/posix-headers/limits.texi: Mention the pathmax module.
1241         * NEWS: Mention the change.
1242
1243 2011-08-02  Bruno Haible  <bruno@clisp.org>
1244
1245         pthread_sigmask: Actually use results of gl_THREADLIB.
1246         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
1247         gl_THREADLIB, not gl_[]THREADLIB.
1248         Reported by Eric Blake.
1249
1250 2011-08-02  Jim Meyering  <meyering@redhat.com>
1251
1252         maint.mk: relax the default _gl_TS_function_match regexp
1253         * top/maint.mk (_gl_TS_function_match): Don't require at least one
1254         space between function name and "(" in an "extern" declaration.
1255         That would fail to match a decl with no space there: extern void foo();
1256
1257 2011-07-31  Iain Nicol  <iain@thenicols.net>
1258
1259         git-version-gen: document that EXTRA_DIST must include .version
1260         * build-aux/git-version-gen: In the how-to-use comment, document
1261         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
1262         will fail when run from an unpacked distribution tarball.
1263
1264 2011-08-01  Bruno Haible  <bruno@clisp.org>
1265
1266         wctype-h: Fix last change.
1267         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
1268         REPLACE_TOWLOWER to 0.
1269         Reported by Sam Steingold <sds@gnu.org>.
1270
1271 2011-07-31  Bruno Haible  <bruno@clisp.org>
1272
1273         frexpl: Update autoconf test.
1274         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
1275         according to changes of 2011-06-20.
1276
1277 2011-07-31  Bruno Haible  <bruno@clisp.org>
1278
1279         sys_utsname: Add support for Minix.
1280         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
1281         <sys/utsname.h>.
1282         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
1283         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
1284
1285 2011-07-31  Bruno Haible  <bruno@clisp.org>
1286
1287         strings: Add support for Minix.
1288         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
1289         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
1290         * doc/posix-headers/strings.texi: Document the Minix problem.
1291
1292 2011-07-31  Bruno Haible  <bruno@clisp.org>
1293
1294         wctype-h: Add support for Minix.
1295         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
1296         REPLACE_TOWLOWER.
1297         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
1298         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
1299         REPLACE_ISWCNTRL.
1300
1301 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
1302
1303         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
1304         This is a performance improvement for 64-bit hosts: it causes the
1305         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
1306
1307 2011-07-31  Bruno Haible  <bruno@clisp.org>
1308
1309         stdioext: Add support for Minix.
1310         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
1311         * lib/fpurge.c (fpurge): Likewise.
1312         * lib/freadahead.c (freadahead): Likewise.
1313         * lib/freadable.c (freadable): Likewise.
1314         * lib/freading.c (freading): Likewise.
1315         * lib/freadptr.c (freadptr): Likewise.
1316         * lib/freadseek.c (freadptrinc): Likewise.
1317         * lib/fseeko.c (rpl_fseeko): Likewise.
1318         * lib/fseterr.c (fseterr): Likewise.
1319         * lib/fwritable.c (fwritable): Likewise.
1320         * lib/fwriting.c (fwriting): Likewise.
1321         * lib/fflush.c (clear_ungetc_buffer): Update comment.
1322         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
1323
1324 2011-07-31  Bruno Haible  <bruno@clisp.org>
1325
1326         errno: Port to Minix.
1327         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
1328         ECONNABORTED are defined.
1329         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
1330         GNULIB_defined_ECONNABORTED): New macros.
1331         * lib/strerror-override.h (strerror_override): Test also
1332         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
1333         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
1334         ECONNABORTED.
1335         * doc/posix-headers/errno.texi: Mention the Minix problem.
1336
1337 2011-07-31  Bruno Haible  <bruno@clisp.org>
1338
1339         Work around declaration collisions on Minix.
1340         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
1341         defined, set REPLACE_MBSINIT.
1342         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
1343         defined, set REPLACE_MBRTOWC.
1344         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
1345         set REPLACE_MBRLEN.
1346         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
1347         defined, set REPLACE_MBSRTOWCS.
1348         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
1349         defined, set REPLACE_WCRTOMB.
1350         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
1351         defined, set REPLACE_WCSRTOMBS.
1352
1353 2011-07-31  Bruno Haible  <bruno@clisp.org>
1354
1355         Add support for Minix with ACK compiler.
1356         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
1357         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
1358         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
1359
1360 2011-07-31  Bruno Haible  <bruno@clisp.org>
1361
1362         Documentation about Minix.
1363         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
1364         * doc/glibc-headers/*.texi: Likewise.
1365         * doc/posix-functions/*.texi: Likewise.
1366         * doc/glibc-functions/*.texi: Likewise.
1367
1368 2011-07-31  Bruno Haible  <bruno@clisp.org>
1369
1370         snippet/warn-on-use: Fix indentation.
1371         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
1372
1373 2011-07-25  Jim Meyering  <meyering@redhat.com>
1374
1375         tests: test-update-copyright.sh: remove unnecessary "rm" commands
1376         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
1377         commands.
1378
1379 2011-07-27  Jim Meyering  <meyering@redhat.com>
1380
1381         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
1382         * top/maint.mk (gl_extract_significant_defines_): Now that
1383         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
1384         gnulib/lib/signal.in.h, and now that we recommend to
1385         define-if-undefined those two symbols in application code,
1386         we must filter them out of the "significant" list.
1387         This avoids a "make syntax-check" failure in coreutils.
1388
1389 2011-07-26  Eric Blake  <eblake@redhat.com>
1390
1391         warnings: add comments about previous patch
1392         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
1393         * m4/include_next.m4: Likewise.
1394         * m4/warn-on-use.m4: Likewise.
1395         * m4/warnings.m4: Likewise, and simplify use.
1396         Suggested by Stefano Lattarini.
1397
1398         include-next, warnings: support older autoconf
1399         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
1400         AS_VAR_PUSHDEF in a way that works with older autoconf.
1401         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
1402         Reported by Daniel P. Berrange.
1403
1404 2011-07-25  Bruno Haible  <bruno@clisp.org>
1405
1406         fseek, ftell: Fix doc.
1407         * doc/posix-functions/fseek.texi: Reword statement about
1408         AC_SYS_LARGEFILE.
1409         * doc/posix-functions/ftell.texi: Likewise.
1410
1411 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
1412             Bruno Haible  <bruno@clisp.org>
1413
1414         Add dependencies to the 'largefile' module.
1415         * modules/fopen (Depends-on): Add 'largefile'.
1416         * modules/freopen (Depends-on): Likewise.
1417         * modules/fseeko (Depends-on): Likewise.
1418         * modules/ftello (Depends-on): Likewise.
1419         * modules/glob (Depends-on): Likewise.
1420         * modules/lseek (Depends-on): Likewise.
1421         * modules/lstat (Depends-on): Likewise.
1422         * modules/mkostemp (Depends-on): Likewise.
1423         * modules/mkostemps (Depends-on): Likewise.
1424         * modules/mkstemp (Depends-on): Likewise.
1425         * modules/mkstemps (Depends-on): Likewise.
1426         * modules/open (Depends-on): Likewise.
1427         * modules/openat (Depends-on): Likewise.
1428         * modules/pread (Depends-on): Likewise.
1429         * modules/pwrite (Depends-on): Likewise.
1430         * modules/scandir (Depends-on): Likewise.
1431         * modules/stat (Depends-on): Likewise.
1432         * modules/tmpfile (Depends-on): Likewise.
1433         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
1434         since the containing module now depends on the largefile module.
1435         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
1436         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
1437         off_t is fixed by gnulib.
1438         * doc/posix-functions/freopen.texi: Likewise.
1439         * doc/posix-functions/fseeko.texi: Likewise.
1440         * doc/posix-functions/fstatat.texi: Likewise.
1441         * doc/posix-functions/ftello.texi: Likewise.
1442         * doc/posix-functions/glob.texi: Likewise.
1443         * doc/posix-functions/lseek.texi: Likewise.
1444         * doc/posix-functions/lstat.texi: Likewise.
1445         * doc/posix-functions/mkstemp.texi: Likewise.
1446         * doc/posix-functions/open.texi: Likewise.
1447         * doc/posix-functions/openat.texi: Likewise.
1448         * doc/posix-functions/pread.texi: Likewise.
1449         * doc/posix-functions/pwrite.texi: Likewise.
1450         * doc/posix-functions/scandir.texi: Likewise.
1451         * doc/posix-functions/stat.texi: Likewise.
1452         * doc/posix-functions/tmpfile.texi: Likewise.
1453         * doc/glibc-functions/mkostemp.texi: Likewise.
1454         * doc/glibc-functions/mkostemps.texi: Likewise.
1455         * doc/glibc-functions/mkstemps.texi: Likewise.
1456
1457 2011-07-25  Bruno Haible  <bruno@clisp.org>
1458
1459         fcntl: Move AC_LIBOBJ invocation to module description.
1460         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
1461         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
1462
1463         fcntl: Remove call-in from fchdir.m4.
1464         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
1465         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
1466
1467         dup3: Remove potential call-in from fchdir.m4.
1468         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
1469         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
1470
1471         dup2: Move AC_LIBOBJ invocation to module description.
1472         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
1473         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
1474         Don't invoke AC_LIBOBJ.
1475         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
1476
1477         dup2: Remove call-in from fchdir.m4.
1478         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
1479         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
1480
1481         fclose: Move AC_LIBOBJ invocation to module description.
1482         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
1483         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
1484         to 1.
1485         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
1486
1487         fclose: Remove call-in from close.m4.
1488         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
1489         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
1490
1491         close: Move AC_LIBOBJ invocation to module description.
1492         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
1493         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
1494         1.
1495         * modules/close (configure.ac): Invoke AC_LIBOBJ.
1496
1497         close: Remove call-in from fchdir.m4.
1498         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
1499         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
1500
1501         open: Move AC_LIBOBJ invocation to module description.
1502         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
1503         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
1504         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
1505
1506         open: Remove call-in from fchdir.m4.
1507         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
1508         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
1509
1510         fchdir: Start to remove gl_REPLACE_* idiom.
1511         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
1512         (gl_FUNC_FCHDIR): Invoke it.
1513
1514 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
1515
1516         * lib/ftell.c (ftell): Comment out cast.
1517
1518         close: use gl_REPLACE_FCLOSE only if defined
1519         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
1520         is defined.  The close module doesn't depend on the fclose module
1521         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
1522         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
1523         I reproduced the problem with "./gnulib-tool --test close sys_socket".
1524
1525 2011-07-24  Jim Meyering  <meyering@redhat.com>
1526
1527         test-select.h: avoid warning when using gcc's -Wmissing-declarations
1528         * tests/test-select.h (test_function): Declare as "static".
1529
1530 2011-07-24  Bruno Haible  <bruno@clisp.org>
1531
1532         doc: Mention the effects of AC_SYS_LARGEFILE.
1533         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
1534         on this function.
1535         * doc/posix-functions/aio_error.texi: Likewise.
1536         * doc/posix-functions/aio_fsync.texi: Likewise.
1537         * doc/posix-functions/aio_read.texi: Likewise.
1538         * doc/posix-functions/aio_return.texi: Likewise.
1539         * doc/posix-functions/aio_suspend.texi: Likewise.
1540         * doc/posix-functions/aio_write.texi: Likewise.
1541         * doc/posix-functions/fgetpos.texi: Likewise.
1542         * doc/posix-functions/fopen.texi: Likewise.
1543         * doc/posix-functions/freopen.texi: Likewise.
1544         * doc/posix-functions/fsetpos.texi: Likewise.
1545         * doc/posix-functions/fstatvfs.texi: Likewise.
1546         * doc/posix-functions/ftruncate.texi: Likewise.
1547         * doc/posix-functions/ftw.texi: Likewise.
1548         * doc/posix-functions/getrlimit.texi: Likewise.
1549         * doc/posix-functions/glob.texi: Likewise.
1550         * doc/posix-functions/lio_listio.texi: Likewise.
1551         * doc/posix-functions/lockf.texi: Likewise.
1552         * doc/posix-functions/mkstemp.texi: Likewise.
1553         * doc/posix-functions/mmap.texi: Likewise.
1554         * doc/posix-functions/nftw.texi: Likewise.
1555         * doc/posix-functions/openat.texi: Likewise.
1556         * doc/posix-functions/opendir.texi: Likewise.
1557         * doc/posix-functions/posix_fadvise.texi: Likewise.
1558         * doc/posix-functions/posix_fallocate.texi: Likewise.
1559         * doc/posix-functions/pread.texi: Likewise.
1560         * doc/posix-functions/pwrite.texi: Likewise.
1561         * doc/posix-functions/readdir.texi: Likewise.
1562         * doc/posix-functions/readdir_r.texi: Likewise.
1563         * doc/posix-functions/rewinddir.texi: Likewise.
1564         * doc/posix-functions/scandir.texi: Likewise.
1565         * doc/posix-functions/seekdir.texi: Likewise.
1566         * doc/posix-functions/setrlimit.texi: Likewise.
1567         * doc/posix-functions/statvfs.texi: Likewise.
1568         * doc/posix-functions/telldir.texi: Likewise.
1569         * doc/posix-functions/tmpfile.texi: Likewise.
1570         * doc/posix-functions/truncate.texi: Likewise.
1571         * doc/glibc-functions/fallocate.texi: Likewise.
1572         * doc/glibc-functions/fstatfs.texi: Likewise.
1573         * doc/glibc-functions/fts_children.texi: Likewise.
1574         * doc/glibc-functions/fts_read.texi: Likewise.
1575         * doc/glibc-functions/getdirentries.texi: Likewise.
1576         * doc/glibc-functions/mkostemp.texi: Likewise.
1577         * doc/glibc-functions/mkostemps.texi: Likewise.
1578         * doc/glibc-functions/mkstemps.texi: Likewise.
1579         * doc/glibc-functions/preadv.texi: Likewise.
1580         * doc/glibc-functions/pwritev.texi: Likewise.
1581         * doc/glibc-functions/sendfile.texi: Likewise.
1582         * doc/glibc-functions/statfs.texi: Likewise.
1583
1584 2011-07-24  Bruno Haible  <bruno@clisp.org>
1585
1586         doc: Fix typo.
1587         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
1588
1589 2011-07-24  Bruno Haible  <bruno@clisp.org>
1590
1591         doc: Mention fsusage.
1592         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
1593
1594 2011-07-24  Bruno Haible  <bruno@clisp.org>
1595
1596         doc: Mention new glibc headers and functions.
1597         * doc/glibc-headers/gshadow.texi: New file.
1598         * doc/glibc-functions/endsgent.texi: New file.
1599         * doc/glibc-functions/fgetsgent.texi: New file.
1600         * doc/glibc-functions/fgetsgent_r.texi: New file.
1601         * doc/glibc-functions/getsgent.texi: New file.
1602         * doc/glibc-functions/getsgent_r.texi: New file.
1603         * doc/glibc-functions/getsgnam.texi: New file.
1604         * doc/glibc-functions/getsgnam_r.texi: New file.
1605         * doc/glibc-functions/putsgent.texi: New file.
1606         * doc/glibc-functions/setsgent.texi: New file.
1607         * doc/glibc-functions/sgetsgent.texi: New file.
1608         * doc/glibc-functions/sgetsgent_r.texi: New file.
1609         * doc/glibc-functions/malloc_info.texi: New file.
1610         * doc/glibc-functions/preadv.texi: New file.
1611         * doc/glibc-functions/pwritev.texi: New file.
1612         * doc/glibc-functions/register_printf_modifier.texi: New file.
1613         * doc/glibc-functions/register_printf_specifier.texi: New file.
1614         * doc/glibc-functions/register_printf_type.texi: New file.
1615         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
1616         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
1617         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
1618         * doc/glibc-functions/pthread_getname_np.texi: New file.
1619         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
1620         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
1621         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
1622         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
1623         * doc/glibc-functions/pthread_setname_np.texi: New file.
1624         * doc/glibc-functions/pthread_sigqueue.texi: New file.
1625         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
1626         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
1627         * doc/glibc-functions/qsort_r.texi: New file.
1628         * doc/glibc-functions/quick_exit.texi: New file.
1629         * doc/glibc-functions/syncfs.texi: New file.
1630         * doc/gnulib.texi: Include them.
1631         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
1632         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
1633         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
1634         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
1635         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
1636         * doc/glibc-functions/execvpe.texi: Likewise.
1637
1638 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
1639
1640         ftell: don't include <unistd.h>
1641         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
1642         guaranteed to define off_t, and the ftell module depends on the
1643         stdio module.
1644
1645         ftell: do not assume wraparound signed arithmetic
1646         * lib/ftell.c: Include <limits.h>.
1647         (ftell): Don't assume wraparound signed arithmetic.
1648
1649 2011-07-24  Bruno Haible  <bruno@clisp.org>
1650
1651         close: No longer depend on module 'fclose'.
1652         * modules/close (Depends-on): Remove fclose.
1653         * NEWS: Mention the change.
1654         Suggested by Sam Steingold <sds@gnu.org>.
1655
1656 2011-07-24  Bruno Haible  <bruno@clisp.org>
1657
1658         fsusage: Enable large volume support on AIX >= 5.2.
1659         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
1660         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
1661         instead of STAT_STATVFS.
1662         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
1663
1664         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
1665         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
1666         f_blocks field only on MacOS X.
1667
1668         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
1669         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
1670         * modules/fsusage (Depends-on): Add largefile.
1671
1672 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
1673
1674         * README: Modernize discussion of signed integers.
1675         Assuming overflow wraparound is no longer safe.
1676         Mention ones' complement and signed magnitude.
1677
1678 2011-07-22  Bruno Haible  <bruno@clisp.org>
1679
1680         select tests, pselect tests: Refactor.
1681         * tests/test-select.h: New file, extracted from tests/test-select.c.
1682         (select_fn): New type.
1683         (test, do_select, do_select_nowait, do_select_wait, test_tty,
1684         test_connect_first, test_accept_first, test_pair, test_socket_pair,
1685         test_pipe): Add my_select argument.
1686         (test_function): Renamed from main. Add my_select argument.
1687         * tests/test-select.c: Move most code to tests/test-select.h. Include
1688         test-select.h.
1689         * modules/select-tests (Files): Add tests/test-select.h.
1690         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
1691         (my_select, main): New functions.
1692         * modules/pselect-tests (Files): Add tests/test-select.h,
1693         tests/macros.h, tests/signature.h.
1694         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
1695         (configure.ac): Check for <sys/wait.h>.
1696
1697 2011-07-22  Bruno Haible  <bruno@clisp.org>
1698
1699         sys_select tests: Check the signature of FD_*.
1700         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
1701         signature tests from here...
1702         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
1703         here.
1704         * modules/sys_select-tests (Files): Add tests/signature.h.
1705
1706 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
1707
1708         largefile: new module, replacing large-inode
1709         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
1710         * MODULES.html.sh: Add largefile, remove large-inode.
1711         * modules/largefile, m4/largefile.m4: New files.
1712         * modules/large-inode, m4/large-inode.m4: Remove.
1713
1714         fsusage: port to MacOS X 10.7 with 4 TiB file systems
1715         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
1716         implementations that use only 32 bits to count blocks.
1717         On typical hosts with 1024-byte blocks, this fails with file
1718         systems as small as 4 TiB.  Problem reported by Herb Wartens
1719         <http://debbugs.gnu.org/9140> and this should also fix a similar
1720         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
1721
1722         large-inode: New module
1723         * MODULES.html.sh: Add it.
1724         * modules/large-inode, m4/large-inode.m4: New files.
1725
1726         extensions: Enable extensions on MacOS X 10.5 and later.
1727         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
1728
1729 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
1730
1731         file-has-acl: use acl_extended_file_nofollow if available
1732         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
1733         (acl_extended_file): New macro.
1734         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
1735         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
1736
1737 2011-07-21  Bruno Haible  <bruno@clisp.org>
1738
1739         Declare system functions in a way that works with C++.
1740         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
1741         declare fdopendir as extern "C".
1742         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
1743         declare frexpl as extern "C".
1744         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
1745         declare gai_strerror as extern "C".
1746         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
1747         programs, declare gai_strerror as extern "C".
1748         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
1749         declare getlogin_r as extern "C".
1750         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
1751         as extern "C".
1752         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
1753         declare ldexpl as extern "C".
1754         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
1755         as extern "C".
1756         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
1757         program, declare getmntinfo as extern "C".
1758         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
1759         stpncpy as extern "C".
1760         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
1761         program, declare __xpg_strerror_r as extern "C".
1762         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
1763         strndup as extern "C".
1764         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
1765         declare memset and bzero as extern "C".
1766         Reported by Sam Steingold <sds@gnu.org>.
1767
1768 2011-07-12  Jim Meyering  <meyering@redhat.com>
1769
1770         maint.mk: prohibit inclusion of "verify.h" without use
1771         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
1772
1773 2011-07-19  Pádraig Brady  <P@draigBrady.com>
1774
1775         timer-time: A new module to check for timer_settime()
1776         * m4/timer_time.m4: Check for the posix function.
1777         * modules/timer-time: Add the new module.
1778         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
1779         Mention it.
1780
1781 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
1782             Bruno Haible  <bruno@clisp.org>
1783
1784         pthread_sigmask: assume POSIX threads if --avoid=threadlib
1785         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
1786         not defined, assume POSIX threads and look for pthread_sigmask in
1787         $LIBS, without changing $CPPFLAGS.
1788
1789 2011-07-19  Bruno Haible  <bruno@clisp.org>
1790
1791         strstr: Update cross-compilation guess.
1792         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
1793         CPUs, guess no, in view of glibc
1794         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
1795         Suggested by Eric Blake. Reported by Reuben Thomas.
1796
1797 2011-07-19  Pádraig Brady  <P@draigBrady.com>
1798
1799         getopt-gnu: suppress core dumps from detection code
1800         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
1801         to suppress core dumps that may well occur on glibc systems.
1802         * modules/getopt-gnu: Depend on nocrash.
1803
1804 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
1805
1806         pthread_sigmask: ensure usleep is declared
1807         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
1808         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
1809
1810 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
1811
1812         doc: Document NonStop portability issues.
1813         * doc/posix-functions/sigaction.texi (sigaction):
1814         * doc/posix-headers/signal.texi (signal.h):
1815         Document NonStop.  See Joachim Schmitz in
1816         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
1817
1818 2011-07-15  Bruno Haible  <bruno@clisp.org>
1819
1820         ffsl, ffsll: Avoid unportable behaviour.
1821         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
1822
1823 2011-07-15  Bruno Haible  <bruno@clisp.org>
1824
1825         ffs: More tests.
1826         * tests/test-ffs.c (NBITS): New macro.
1827         (main): Add more tests.
1828         * tests/test-ffsl.c (NBITS): New macro.
1829         (main): Add more tests.
1830         * tests/test-ffsll.c (NBITS): New macro.
1831         (main): Add more tests.
1832
1833 2011-07-15  Eric Blake  <eblake@redhat.com>
1834
1835         ffsl, ffsll: new modules
1836         * modules/ffsl: New file.
1837         * modules/ffsll: Likewise.
1838         * m4/ffsl.m4: Likewise.
1839         * m4/ffsll.m4: Likewise.
1840         * lib/ffsl.c: Likewise.
1841         * lib/ffsl.h: Likewise.
1842         * lib/ffsll.c: Likewise.
1843         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
1844         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
1845         * modules/string (Makefile.am): Substitute witnesses.
1846         * lib/strings.in.h (ffsl, ffsll): Declare.
1847         * modules/ffsl-tests: New test file.
1848         * modules/ffsll-tests: Likewise.
1849         * tests/test-ffsl.c: Likewise.
1850         * tests/test-ffsll.c: Likewise.
1851         * MODULES.html.sh (Integer arithmetic functions): Mention it.
1852         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
1853         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
1854
1855         ffs: fix m4 prerequisite
1856         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
1857
1858         ffs: avoid undefined behavior
1859         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
1860         * tests/test-ffs.c (naive, main): Avoid signed shifts.
1861         Reported by Bruno Haible.
1862
1863 2011-07-12  Bruno Haible  <bruno@clisp.org>
1864
1865         pthread_sigmask: Rely on module 'threadlib'.
1866         * modules/pthread_sigmask (Depends-on): Add threadlib.
1867         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
1868         is defined.
1869
1870 2011-07-12  Bruno Haible  <bruno@clisp.org>
1871
1872         regex: Depend on module 'strcase'.
1873         * modules/regex (Depends-on): Add strcase, for strcasecmp().
1874
1875 2011-07-12  Jim Meyering  <meyering@redhat.com>
1876
1877         warn-on-use: fix typo in file name
1878         * modules/snippet/warn-on-use (Files): Correct file name:
1879         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
1880
1881 2011-07-12  Bruno Haible  <bruno@clisp.org>
1882
1883         strings: Document module.
1884         * doc/posix-headers/strings.texi: Mention module 'strings'.
1885
1886 2011-07-12  Bruno Haible  <bruno@clisp.org>
1887
1888         Rename module '_Noreturn' to 'snippet/_Noreturn'.
1889         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
1890         (Files, Makefile.am): Update.
1891         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
1892         * modules/stdlib (Depends-on): Update.
1893
1894 2011-07-12  Bruno Haible  <bruno@clisp.org>
1895
1896         * NEWS: Mention the changes.
1897
1898         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
1899         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
1900         (Files, Makefile.am): Update.
1901         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
1902         * modules/arpa_inet (Depends-on): Update.
1903         * modules/ctype (Depends-on): Update.
1904         * modules/dirent (Depends-on): Update.
1905         * modules/fcntl-h (Depends-on): Update.
1906         * modules/glob (Depends-on): Update.
1907         * modules/iconv-h (Depends-on): Update.
1908         * modules/inttypes-incomplete (Depends-on): Update.
1909         * modules/langinfo (Depends-on): Update.
1910         * modules/locale (Depends-on): Update.
1911         * modules/math (Depends-on): Update.
1912         * modules/netdb (Depends-on): Update.
1913         * modules/poll-h (Depends-on): Update.
1914         * modules/pty (Depends-on): Update.
1915         * modules/search (Depends-on): Update.
1916         * modules/signal (Depends-on): Update.
1917         * modules/spawn (Depends-on): Update.
1918         * modules/stdio (Depends-on): Update.
1919         * modules/stdlib (Depends-on): Update.
1920         * modules/string (Depends-on): Update.
1921         * modules/strings (Depends-on): Update.
1922         * modules/sys_file (Depends-on): Update.
1923         * modules/sys_ioctl (Depends-on): Update.
1924         * modules/sys_select (Depends-on): Update.
1925         * modules/sys_socket (Depends-on): Update.
1926         * modules/sys_stat (Depends-on): Update.
1927         * modules/sys_time (Depends-on): Update.
1928         * modules/sys_times (Depends-on): Update.
1929         * modules/sys_utsname (Depends-on): Update.
1930         * modules/sys_wait (Depends-on): Update.
1931         * modules/termios (Depends-on): Update.
1932         * modules/time (Depends-on): Update.
1933         * modules/unistd (Depends-on): Update.
1934         * modules/wchar (Depends-on): Update.
1935         * modules/wctype-h (Depends-on): Update.
1936         * MODULES.html.sh (Support for building libraries and executables):
1937         Update.
1938
1939         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
1940         * modules/snippet/unused-parameter: Renamed from
1941         modules/unused-parameter.
1942         (Files, Makefile.am): Update.
1943         * build-aux/snippet/unused-parameter.h: Renamed from
1944         build-aux/unused-parameter.h.
1945         * modules/selinux-h (Depends-on): Update.
1946         * modules/unistr/base (Depends-on): Update.
1947         * MODULES.html.sh (Core language properties): Update.
1948
1949         Rename module 'link-warning' to 'snippet/link-warning'.
1950         * modules/snippet/link-warning: Renamed from modules/link-warning.
1951         (Files, Makefile.am): Update.
1952         * build-aux/snippet/link-warning.h: Renamed from
1953         build-aux/link-warning.h.
1954         * MODULES.html.sh (Support for building libraries and executables):
1955         Update.
1956
1957         Rename module 'c++defs' to 'snippet/c++defs'.
1958         * modules/snippet/c++defs: Renamed from modules/c++defs.
1959         (Files, Makefile.am): Update.
1960         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
1961         * modules/arpa_inet (Depends-on): Update.
1962         * modules/ctype (Depends-on): Update.
1963         * modules/dirent (Depends-on): Update.
1964         * modules/fcntl-h (Depends-on): Update.
1965         * modules/glob (Depends-on): Update.
1966         * modules/iconv-h (Depends-on): Update.
1967         * modules/langinfo (Depends-on): Update.
1968         * modules/locale (Depends-on): Update.
1969         * modules/math (Depends-on): Update.
1970         * modules/netdb (Depends-on): Update.
1971         * modules/poll-h (Depends-on): Update.
1972         * modules/pty (Depends-on): Update.
1973         * modules/search (Depends-on): Update.
1974         * modules/signal (Depends-on): Update.
1975         * modules/spawn (Depends-on): Update.
1976         * modules/stdio (Depends-on): Update.
1977         * modules/stdlib (Depends-on): Update.
1978         * modules/string (Depends-on): Update.
1979         * modules/strings (Depends-on): Update.
1980         * modules/sys_ioctl (Depends-on): Update.
1981         * modules/sys_select (Depends-on): Update.
1982         * modules/sys_socket (Depends-on): Update.
1983         * modules/sys_stat (Depends-on): Update.
1984         * modules/sys_time (Depends-on): Update.
1985         * modules/sys_wait (Depends-on): Update.
1986         * modules/termios (Depends-on): Update.
1987         * modules/time (Depends-on): Update.
1988         * modules/unistd (Depends-on): Update.
1989         * modules/wchar (Depends-on): Update.
1990         * modules/wctype-h (Depends-on): Update.
1991
1992         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
1993         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
1994         (Files, Makefile.am): Update.
1995         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
1996         * modules/argv-iter (Depends-on): Update.
1997         * modules/arpa_inet (Depends-on): Update.
1998         * modules/dirent (Depends-on): Update.
1999         * modules/fcntl-h (Depends-on): Update.
2000         * modules/fnmatch (Depends-on): Update.
2001         * modules/getopt-posix (Depends-on): Update.
2002         * modules/glob (Depends-on): Update.
2003         * modules/iconv-h (Depends-on): Update.
2004         * modules/inttypes-incomplete (Depends-on): Update.
2005         * modules/locale (Depends-on): Update.
2006         * modules/math (Depends-on): Update.
2007         * modules/netdb (Depends-on): Update.
2008         * modules/search (Depends-on): Update.
2009         * modules/signal (Depends-on): Update.
2010         * modules/spawn (Depends-on): Update.
2011         * modules/stdio (Depends-on): Update.
2012         * modules/stdlib (Depends-on): Update.
2013         * modules/string (Depends-on): Update.
2014         * modules/strings (Depends-on): Update.
2015         * modules/sys_socket (Depends-on): Update.
2016         * modules/sys_stat (Depends-on): Update.
2017         * modules/sys_time (Depends-on): Update.
2018         * modules/sys_times (Depends-on): Update.
2019         * modules/sys_utsname (Depends-on): Update.
2020         * modules/time (Depends-on): Update.
2021         * modules/unistd (Depends-on): Update.
2022         * modules/wchar (Depends-on): Update.
2023         * MODULES.html.sh (Support for building libraries and executables):
2024         Update.
2025
2026 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
2027
2028         Improvements on _Noreturn and related modules.
2029
2030         modules/_Exit-tests: test _Noreturn too
2031         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
2032         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
2033         (main): Use them.
2034
2035         stdnoreturn, stdnoreturn-tests: remove modules
2036         They're not needed here and a bit premature for use elsewhere.  See
2037         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
2038         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
2039         * tests/test-stdnoreturn.c: Remove files.
2040         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
2041         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
2042         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
2043         and using noreturn.
2044         * modules/openat, modules/sigpipe-die, modules/xalloc:
2045         * modules/xmemdup0, modules/xstrtol:
2046         Remove dependency on stdnoreturn.
2047
2048         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
2049         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
2050         Reparenthesize to avoid GCC warning.
2051         Support Microsoft's syntax.
2052         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
2053
2054         _Noreturn-tests: remove module
2055         * modules/_Noreturn-tests: Remove.
2056         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
2057         * tests/test-_Noreturn.c: Remove.
2058         * tests/test-stdnoreturn.c: Merge from the old
2059         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
2060
2061 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
2062
2063         _Noreturn, stdnoreturn, and related modules.
2064
2065         * top/maint.mk: Adjust to new noreturn support.
2066         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
2067         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
2068
2069         xalloc: use stdnoreturn.h
2070         * lib/xalloc.h: Include <stdnoreturn.h>.
2071         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
2072         * modules/xalloc (Depends-on): Add stdnoreturn.
2073
2074         xstrtol: use stdnoreturn.h
2075         * lib/xstrtol.h: Include <stdnoreturn.h>.
2076         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
2077         * modules/xstrtol (Depends-on): Add stdnoreturn.
2078
2079         xmemdup0: use stdnoreturn.h
2080         * lib/xmemdup0.h: Include <stdnoreturn.h>.
2081         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
2082         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
2083
2084         sigpipe-die: use stdnoreturn.h
2085         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
2086         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
2087         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
2088
2089         openat: use stdnoreturn.h
2090         * lib/openat.h: Include <stdnoreturn.h>.
2091         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
2092         * modules/openat (Depends-on): Add stdnoreturn.
2093
2094         * lib/openat-die.c (openat_save_fail): Modernize comment.
2095
2096         * lib/xalloc-die.c (xalloc_die): Modernize comment.
2097
2098         * lib/glthread/thread.h: Modernize comment.
2099
2100         obstack: use _Noreturn
2101         * lib/obstack.c (__attribute__): Remove macro.
2102         (print_and_abort): Use _Noreturn.
2103
2104         c-stack: use _Noreturn
2105         * lib/c-stack.c (die, overflow_handler, segv_handler):
2106         Use _Noreturn rather than __attribute__((noreturn)).
2107
2108         argmatch-tests, exclude_tests: use _Noreturn
2109         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
2110         Remove.
2111         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
2112
2113         stdlib: use _Noreturn
2114         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
2115         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
2116         * modules/stdlib (Depends-on): Add _Noreturn.
2117         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
2118
2119         stdnoreturn-tests: new module
2120         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
2121
2122         stdnoreturn: new module
2123         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
2124         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
2125
2126         _Noreturn-tests: new module
2127         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
2128
2129         _Noreturn: new module
2130         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
2131         New section, mentioning it.
2132         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
2133
2134         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
2135
2136 2011-07-11  Eric Blake  <eblake@redhat.com>
2137
2138         ffs: new module
2139         * modules/ffs: New file.
2140         * m4/ffs.m4: Likewise.
2141         * lib/ffs.c: Likewise.
2142         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
2143         * modules/strings (Makefile.am): Substitute witness.
2144         (Depends-on): Add c++defs.
2145         * lib/strings.in.h (ffs): Declare.
2146         * modules/ffs-tests: New test file.
2147         * tests/test-ffs.c: Test new module.
2148         * MODULES.html.sh (Integer arithmetic functions): Mention it.
2149         * doc/posix-functions/ffs.texi (ffs): Likewise.
2150
2151         regex: avoid compiler warning
2152         * lib/regex.c (includes): Include <strings.h>, for use of
2153         strcasecmp in regcomp.c.
2154         Reported by Joachim Schmitz.
2155
2156 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
2157
2158         stdint: respect system's intmax_t if INTMAX_MAX
2159         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
2160         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
2161         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
2162         long but int64_t is long long, and where we will clash with the
2163         system intmax_t if we override it.  See
2164         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
2165         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
2166         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
2167         similarly for UINTMAX_C.
2168
2169 2011-07-08  Bruno Haible  <bruno@clisp.org>
2170
2171         pthread_sigmask tests: Avoid a compiler warning.
2172         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
2173         non-zero.
2174
2175         sigprocmask tests: A better way to avoid a compiler warning.
2176         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
2177         (main): Complain if system() returns non-zero.
2178         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
2179
2180 2011-07-08  Bruno Haible  <bruno@clisp.org>
2181
2182         pthread_sigmask: Work around IRIX bug.
2183         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
2184         bug.
2185         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
2186         there may be unblocked pending signals.
2187         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
2188
2189 2011-07-08  Bruno Haible  <bruno@clisp.org>
2190
2191         pthread_sigmask: Work around Cygwin bug.
2192         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
2193         bug.
2194         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
2195         the system's pthread_sigmask function.
2196         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
2197
2198 2011-07-08  Bruno Haible  <bruno@clisp.org>
2199
2200         pthread_sigmask: Work around bug in single-threaded implementation.
2201         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
2202         FreeBSD, HP-UX, Solaris bug.
2203         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
2204         * lib/pthread_sigmask.c: Include <stddef.h>.
2205         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
2206         the system's pthread_sigmask function.
2207         * modules/pthread_sigmask (configure.ac): Invoke
2208         gl_PREREQ_PTHREAD_SIGMASK.
2209         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
2210         HP-UX, Solaris.
2211
2212 2011-07-08  Eric Blake  <eblake@redhat.com>
2213
2214         test-sigprocmask: avoid compiler warning
2215         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
2216         * tests/test-sigprocmask.c (main): Use it to silence warning.
2217         Reported by Jim Meyering.
2218
2219         test-snprintf: avoid compiler warning
2220         * tests/test-snprintf.c (main): Avoid shadowed declaration.
2221         * tests/test-vsnprintf.c (main): Likewise.
2222         Reported by Jim Meyering.
2223
2224 2011-07-08  Bruno Haible  <bruno@clisp.org>
2225
2226         Tests for module 'pthread_sigmask'.
2227         * modules/pthread_sigmask-tests: New file.
2228         * tests/test-pthread_sigmask1.c: New file, based on
2229         tests/test-sigprocmask.c.
2230         * tests/test-pthread_sigmask2.c: New file.
2231
2232 2011-07-08  Jim Meyering  <meyering@redhat.com>
2233
2234         test-getopt.h: avoid warning about an unused variable
2235         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
2236
2237 2011-07-07  Jim Meyering  <meyering@redhat.com>
2238
2239         maint: reduce list of files exempt from sc_prohibit_leading_TABs
2240         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
2241         now that it no longer contains leading TABs.
2242         Remove unused "url=FIXME" statement.
2243
2244 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
2245
2246         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
2247         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
2248         When gl_THREADLIB is not in use, assume that the POSIX sematics
2249         are desired.  This is better for Emacs, which uses POSIX semantics
2250         on GNUish and/or POSIXish platforms, and does not use threads at
2251         all otherwise.
2252
2253         pthread_sigmask: fix typo when testing for libraries
2254         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
2255         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
2256
2257 2011-07-08  Eric Blake  <eblake@redhat.com>
2258
2259         fts: introduce FTS_NOATIME
2260         * lib/fts_.h (FTS_NOATIME): New bit flag.
2261         (FTS_OPTIONMASK): Adjust.
2262         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
2263         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
2264
2265 2011-07-08  Bruno Haible  <bruno@clisp.org>
2266
2267         Tests for module 'thread'.
2268         * modules/thread-tests: New file.
2269         * tests/test-thread_self.c: New file.
2270         * tests/test-thread_create.cc: New file.
2271
2272 2011-07-08  Bruno Haible  <bruno@clisp.org>
2273
2274         thread: Avoid gcc warnings when using gl_thread_self().
2275         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
2276         'void *'.
2277         (gl_thread_self_pointer): Update.
2278
2279 2011-07-07  Bruno Haible  <bruno@clisp.org>
2280
2281         signal-c++-tests: Check declaration of pthread_sigmask.
2282         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
2283         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
2284         $(LIB_PTHREAD_SIGMASK).
2285
2286 2011-07-07  Bruno Haible  <bruno@clisp.org>
2287
2288         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
2289         * lib/signal.in.h (pthread_sigmask): Override if
2290         REPLACE_PTHREAD_SIGMASK is 1.
2291         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
2292         REPLACE_PTHREAD_SIGMASK.
2293         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
2294         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
2295         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
2296         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
2297         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
2298
2299 2011-07-07  Bruno Haible  <bruno@clisp.org>
2300
2301         pthread_sigmask: Ensure declaration in <signal.h>.
2302         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
2303         include <pthread.h>.
2304         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
2305         problem.
2306
2307 2011-07-07  Bruno Haible  <bruno@clisp.org>
2308
2309         pthread_sigmask: Document the module.
2310         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
2311
2312 2011-07-07  Bruno Haible  <bruno@clisp.org>
2313
2314         pthread_sigmask: Follow gnulib conventions.
2315         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
2316         gl_PTHREAD_SIGMASK.
2317         * modules/pthread_sigmask (configure.ac): Update.
2318
2319 2011-07-07  Bruno Haible  <bruno@clisp.org>
2320
2321         pthread_sigmask: Make declaration C++ safe.
2322         * lib/signal.in.h: In two special conditions, just do an #include_next.
2323         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
2324         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
2325         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
2326         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
2327         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
2328         not REPLACE_PTHREAD_MASK.
2329         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
2330         not REPLACE_PTHREAD_MASK.
2331         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
2332
2333 2011-07-07  Bruno Haible  <bruno@clisp.org>
2334
2335         pthread_sigmask: Fix return value.
2336         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
2337         * lib/pthread_sigmask.c: New file.
2338         * modules/pthread_sigmask (Files): Add it.
2339         (configure.ac): Invoke AC_LIBOBJ.
2340
2341 2011-07-07  Eric Blake  <eblake@redhat.com>
2342
2343         getopt: more portable argv creation
2344         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
2345         const, use char arrays rather than strings.
2346         Suggested by Paul Eggert.
2347
2348 2011-07-07  Bruno Haible  <bruno@clisp.org>
2349
2350         Tests for module 'sigprocmask'.
2351         * modules/sigprocmask-tests: New file.
2352         * tests/test-sigprocmask.c: New file.
2353
2354 2011-07-07  Bruno Haible  <bruno@clisp.org>
2355
2356         float tests: Tweak.
2357         * tests/test-float.c (main): Tweak skip message.
2358
2359 2011-07-07  Eric Blake  <eblake@redhat.com>
2360
2361         getopt: avoid compiler warning during configure
2362         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
2363         assigning string literals to non-const pointer.
2364
2365         getopt-gnu: avoid crash in glibc getopt
2366         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
2367         * tests/test-getopt.h (test_getopt): Enhance test.
2368         * tests/test-getopt_long.h (test_getopt_long): Likewise.
2369         * doc/posix-functions/getopt.texi (getopt): Document it.
2370         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
2371         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
2372         Likewise.
2373
2374 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
2375
2376         getopt: handle W; without long options in getopt [BZ #12922]
2377         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
2378         but no long options are defined, just return 'W'.
2379
2380 2011-07-07  Bruno Haible  <bruno@clisp.org>
2381
2382         Avoid literal tabs.
2383         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
2384         variable containing a tab instead of a literal tab.
2385         Reported by Jim Meyering.
2386
2387 2011-07-07  Bruno Haible  <bruno@clisp.org>
2388
2389         Comments.
2390         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
2391
2392 2011-07-06  Bruno Haible  <bruno@clisp.org>
2393
2394         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
2395         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
2396         <winsock2.h>.
2397         (rpl_fd_isset, FD_ISSET): New definitions, copied from
2398         lib/sys_socket.in.h.
2399         (close, gethostname): Hide declarations from <winsock2.h>.
2400         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
2401         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
2402         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
2403         (select): Don't override if gnulib's <sys/select.h> was already
2404         included.
2405         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
2406         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
2407         setsockopt, shutdown, select): Tweak indentation.
2408
2409 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2410
2411         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
2412         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
2413         in an application that does not use the sys_select module.
2414
2415 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
2416
2417         poll: do not return 0 on timeout=-1
2418         * lib/poll.c: Loop with yield if no events occured
2419
2420 2011-07-06  Eric Blake  <eblake@redhat.com>
2421
2422         pthread_sigmask: always replace when not using pthread
2423         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
2424         replacement when using some threading other than pthread.  Fix
2425         logic bug.
2426
2427 2011-07-06  Bruno Haible  <bruno@clisp.org>
2428
2429         Comments.
2430         * m4/printf.m4: Update comments about mingw.
2431
2432 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2433
2434         sys_select: define sigset_t more portably
2435         * lib/sys_select.in.h: Always include <sys/types.h>, since
2436         we now need sigset_t and mingw defines it there.
2437         Include <signal.h> before split inclusion guard, to avoid
2438         mishaps on Solaris, whose <signal.h> eventually includes us.
2439         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
2440         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
2441         which come from ...
2442         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
2443         gl_CHECK_TYPE_SIGSET_T.
2444         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
2445         does the real work.
2446         * modules/sys_select (Depends-on): Add 'signal'.
2447
2448         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
2449         Suggested by Bruno Haible.
2450
2451         pselect: Use pthread_sigmask, not sigprocmask.
2452         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
2453         multithreaded apps better than sigprocmask does.
2454         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
2455         sigprocmask directly.
2456
2457 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
2458
2459         * lib/pselect.c (pselect): Use plain name, without "rpl_".
2460         Don't #undef,  since we don't need any underlying pselect.
2461         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
2462         (Depends-on): Add select.
2463         (Link): Add $(LIBSOCKET).
2464         These changes suggested by Bruno Haible.
2465
2466         pselect: document better
2467         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
2468         * doc/posix-functions/pselect.texi (pselect): Document new module.
2469
2470         pthread_sigmask: new module
2471         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
2472         * doc/posix-functions/pthread_sigmask.texi: Document new module.
2473         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
2474         This is done only as a macro; I don't know how well that'll
2475         work for C++.  Move <sys/types.h> include before the include_next,
2476         to avoid mishap on Solaris.
2477         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
2478         * modules/signal (Makefile.am): Substitute the check's results.
2479         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
2480
2481         test-pselect: new module
2482         * modules/pselect-tests, tests/test-pselect.c: New files.
2483         * tests/test-select.c, tests/test-sys_select-c++.cc:
2484         If TEST_PSELECT is defined, test pselect instead of testing select.
2485
2486         * tests/test-sys_select.c (sigset_t): Test for it, too.
2487         Suggested by Bruno Haible.
2488
2489 2011-07-05  Eric Blake  <eblake@redhat.com>
2490
2491         snprintf: guarantee %1$d, for libintl
2492         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
2493         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
2494         * doc/posix-functions/snprintf.texi (snprintf): Update.
2495         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
2496         * tests/test-snprintf.c (main): Enhance test.
2497         * tests/test-vsnprintf.c (main): Likewise.
2498
2499 2011-07-05  Jim Meyering  <meyering@redhat.com>
2500
2501         maint: exempt stdio-read.c and stdio-write.c from the cppi check
2502         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
2503         per Bruno's request, to accommodate this idiom (no space after "#")
2504         even when the function is inside an #if block:
2505         char *
2506         gets (char *s)
2507         #undef gets
2508         {
2509           ...
2510         }
2511
2512 2011-07-04  Jim Meyering  <meyering@redhat.com>
2513
2514         maint: indent with spaces, not TABs, and add a rule to check this
2515         * tests/test-userspec.c: Indent with spaces, not TABs.
2516         * tests/test-argp.c: Likewise.
2517         * tests/test-c-stack2.sh: Likewise.
2518         * tests/test-parse-duration.sh: Likewise
2519         * m4/strtod.m4: Likewise.
2520         * m4/alloca.m4: Likewise.
2521         * m4/pselect.m4: Likewise.
2522         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
2523
2524 2011-07-03  Jim Meyering  <meyering@redhat.com>
2525
2526         maint.mk: correct omissions in prohibit_argmatch_without_use check
2527         This rule would mistakenly report that argmatch.h is included without
2528         use even when both the argmatch and invalid_arg macro were used.
2529         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
2530         of argmatch and invalid_arg.
2531
2532 2011-07-03  Bruno Haible  <bruno@clisp.org>
2533
2534         Comments about EINTR.
2535         * lib/safe-read.h: Explain the purpose of this module.
2536         * lib/safe-write.h: Likewise.
2537         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
2538         module.
2539         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
2540         module.
2541         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2542
2543 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
2544
2545         xnanosleep: Rewrite to use new dtotimespec module.
2546         It has the conversion code that used to be in xnanosleep.
2547         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
2548         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
2549         (TIME_T_MAX): Remove.
2550         (xnanosleep): Rewrite in terms of dtotimespec.
2551         * modules/xnanosleep (Depends-on): Add dtotimespec.
2552         Remove intprops, stdbool.
2553
2554         timespec-add, timespec-sub: new modules
2555         * lib/timespec.h (timespec_add, timespec_sub): New decls.
2556         * lib/timespec-add.c, lib/timespec-sub.c:
2557         * modules/timespec-add, modules/timespec-sub: New files.
2558
2559         dtotimespec: new module
2560         * lib/timespec.h (dtotimespec): New decl.
2561         * lib/dtotimespec.c, modules/dtotimespec: New files.
2562
2563         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
2564
2565         pselect: new module
2566         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
2567         (pselect): New decls.
2568         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
2569         since the standard pselect decl uses 'restrict'.
2570         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
2571         HAVE_PSELECT, REPLACE_PSELECT.
2572         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
2573         HAVE_PSELECT, REPLACE_PSELECT.
2574         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
2575
2576         sys_select: don't depend on sys_socket
2577         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
2578         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
2579         This fix works on GNU and GNU-like platforms, but has not been tested
2580         on native Windows.
2581         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
2582         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
2583         gl_HEADER_SYS_SOCKET.
2584         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
2585         gl_PREREQ_SYS_H_WINSOCK2.
2586
2587 2011-06-29  Eric Blake  <eblake@redhat.com>
2588
2589         pipe2: fix C89 compile problem
2590         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
2591         Reported by Bruno Haible.
2592
2593         pipe, pipe2: don't corrupt fd on error
2594         * lib/pipe.c (pipe): Leave fd unchanged on error.
2595         * lib/pipe2.c (pipe2): Likewise.
2596         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
2597         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
2598
2599 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
2600
2601         mmap-anon: do not use regular expressions inadvertently
2602         * m4/mmap-anon.m4: Remove trailing period from strings sought
2603         in the output.
2604
2605 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
2606
2607         nanosleep: fix integer overflow problem
2608         * lib/nanosleep.c (my_usleep): Don't assume signed integer
2609         arithmetic wraps around on overflow.
2610
2611         nanosleep: simplify carrying
2612         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
2613         first call to the underyling nanosleep, not for the last one.
2614         This doesn't fix any bugs, but it simplifies the computation of
2615         the remaining delay.  Found while auditing integer overflow issues.
2616
2617         dup2: remove test for existence of fcntl
2618         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
2619         "#if HAVE_FCNTL", in the configure-time test program.
2620         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
2621         and therefore speeds up "configure" a bit.  Found while
2622         adding the dup2 module to Emacs.
2623
2624 2011-06-24  Eric Blake  <eblake@redhat.com>
2625
2626         maint.mk: enhance useless header checks
2627         * top/maint.mk (_sc_header_without_use): Check both include
2628         styles.
2629         (sc_prohibit_assert_without_use)
2630         (sc_prohibit_close_stream_without_use)
2631         (sc_prohibit_getopt_without_use)
2632         (sc_prohibit_quotearg_without_use)
2633         (sc_prohibit_quote_without_use)
2634         (sc_prohibit_long_options_without_use)
2635         (sc_prohibit_inttostr_without_use)
2636         (sc_prohibit_ignore_value_without_use)
2637         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
2638         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
2639         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
2640         (sc_prohibit_hash_pjw_without_use)
2641         (sc_prohibit_safe_read_without_use)
2642         (sc_prohibit_argmatch_without_use)
2643         (sc_prohibit_canonicalize_without_use)
2644         (sc_prohibit_root_dev_ino_without_use)
2645         (sc_prohibit_openat_without_use)
2646         (sc_prohibit_c_ctype_without_use)
2647         (sc_prohibit_signal_without_use)
2648         (sc_prohibit_stdio--_without_use)
2649         (sc_prohibit_stdio-safer_without_use)
2650         (sc_prohibit_strings_without_use)
2651         (sc_prohibit_intprops_without_use)
2652         (sc_prohibit_stddef_without_use)
2653         (sc_prohibit_xfreopen_without_use): Update clients.
2654
2655 2011-06-24  Jim Meyering  <meyering@redhat.com>
2656
2657         syntax-check: keep one maint.mk rule in sync with its header
2658         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
2659         of the bug Eric has just fixed, with today's commit 25e4c2ec.
2660         I prefer to avoid temporary files here, so use <(...), but that
2661         is not supported by /bin/sh, so...
2662         (SHELL): Define to /bin/bash.
2663
2664 2011-06-24  Eric Blake  <eblake@redhat.com>
2665
2666         maint.mk: update sc_prohibit_intprops_without_use
2667         * top/maint.mk (_intprops_names): Match recent changes.
2668
2669 2011-06-24  Bruno Haible  <bruno@clisp.org>
2670
2671         strerror-override: No-op tweak.
2672         * lib/strerror-override.h (strerror_override): Reorder conditions,
2673         for consistency with lib/strerror-override.c.
2674
2675 2011-06-23  Eric Blake  <eblake@redhat.com>
2676
2677         maint.mk: test further PATH_MAX issues
2678         * top/maint.mk (sc_prohibit_path_max_array): Rename...
2679         (sc_prohibit_path_max_allocation): ...and also test alloca.
2680         Suggested by Jim Meyering.
2681
2682 2011-06-22  Eric Blake  <eblake@redhat.com>
2683
2684         maint.mk: add syntax-check to avoid char[PATH_MAX]
2685         * top/maint.mk (sc_prohibit_path_max_array): New rule.
2686
2687         stat: be robust to PATH_MAX definition
2688         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
2689         * modules/stat (Depends-on): Add verify.
2690
2691         link: work around IRIX bug
2692         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
2693         * lib/link.c (rpl_link): Work around it.
2694         * tests/test-link.h (test_link): Enhance test.
2695         * doc/posix-functions/link.texi (link): Document the bug.
2696
2697         getopt: silence clang warning
2698         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
2699         dereference.
2700         Reported by Gustavo Martin Domato.
2701
2702 2011-06-22  Jim Meyering  <meyering@redhat.com>
2703
2704         bootstrap: do not insert a blank line into each .gitignore file
2705         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
2706
2707 2011-06-21  Eric Blake  <eblake@redhat.com>
2708
2709         perror: test for output mismatch
2710         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
2711         perror on IRIX.
2712
2713         strerror_r: fix OpenBSD behavior on out-of-range
2714         * lib/strerror_r.c (strerror_r): Always use maximal string.
2715         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
2716
2717         strerror_r: fix OpenBSD behavior on 0
2718         * lib/strerror-override.c (strerror_override): Also override 0
2719         when needed.
2720         * lib/strerror-override.h (strerror_override): Likewise.
2721         * lib/strerror.c (strerror): Simplify, now that 0 override is done
2722         earlier.
2723         * lib/strerror_r.c (strerror_r): Likewise.
2724         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
2725         behavior...
2726         (gl_FUNC_STRERROR_0): ...into new macro.
2727         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
2728         is overridden.
2729         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
2730         * modules/strerror-override (Files): Add strerror.m4.
2731         (configure.ac): Also provide override for 0 when needed.
2732         * doc/posix-functions/strerror.texi (strerror): Document this.
2733         * doc/posix-functions/perror.texi (perror): Likewise.
2734
2735         perror: adjust array size
2736         * modules/perror (Depends-on): Add strerror-override.
2737         * lib/perror.c (perror): Use it to avoid magic number.
2738
2739         strerror-override: reduce size
2740         * lib/strerror-override.c (strerror_override): Use fewer lines.
2741
2742 2011-06-20  Bruno Haible  <bruno@clisp.org>
2743
2744         pathmax: Ensure correct value for PATH_MAX on HP-UX.
2745         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
2746
2747 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
2748
2749         alloca: port to compilers that can optimize like GCC 4.6.0
2750         * lib/alloca.c (find_stack_direction): New signature, taken from
2751         Autoconf git.  This works with GCC 4.6.0.  This code should never
2752         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
2753         be used with other compilers that optimize as well as GCC 4.6.0 does.
2754         (alloca): Adjust to new signature.
2755         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
2756         New macro, which patches Autoconf in a similar way.
2757
2758         c-stack: stop worrying about stack direction
2759         * lib/c-stack.c (find_stack_direction): Remove.
2760         (segv_handler): Don't worry about stack direction growth, as it's
2761         too much of a pain to configure this correctly, given how compilers
2762         are optimizing-away our stack-growth detection code.  Instead, assume
2763         that any access to just before or just after the stack is OK.
2764         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
2765         Don't require AC_FUNC_ALLOCA; no longer needed.
2766
2767 2011-06-20  Eric Blake  <eblake@redhat.com>
2768
2769         test-stat: don't allocate PATH_MAX bytes
2770         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
2771         PATH_MAX-sized buffer.
2772         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
2773         * modules/stat-tests (Depends-on): Likewise.
2774         * tests/test-fstatat.c (includes): Drop pathmax.h.
2775         * tests/test-stat.c (includes): Likewise.
2776         Reported by Bruno Haible.
2777
2778 2011-06-20  Bruno Haible  <bruno@clisp.org>
2779
2780         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
2781         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
2782         * lib/float.c: New file.
2783         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
2784         REPLACE_FLOAT_LDBL.
2785         * modules/float (Files): Add lib/float.c.
2786         (configure.ac): Invoke AC_LIBOBJ.
2787         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
2788
2789 2011-06-20  Bruno Haible  <bruno@clisp.org>
2790
2791         Tests for module 'float'.
2792         * modules/float-tests: New file.
2793         * tests/test-float.c: New file.
2794
2795 2011-06-19  Bruno Haible  <bruno@clisp.org>
2796
2797         isinf: Coding style.
2798         * lib/isinf.c: Use GNU coding style.
2799
2800 2011-06-19  Bruno Haible  <bruno@clisp.org>
2801
2802         linkat test: Avoid test failure on AIX 7.1.
2803         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
2804         * tests/test-link.h (test_link): Likewise.
2805
2806 2011-06-19  Bruno Haible  <bruno@clisp.org>
2807
2808         pread test: Avoid test failure on OpenBSD 4.9.
2809         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
2810
2811 2011-06-19  Bruno Haible  <bruno@clisp.org>
2812
2813         sprintf-posix: Fix test failure on AIX 7.1.
2814         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
2815         * doc/posix-functions/dprintf.texi: Mention limited precision problem
2816         on AIX.
2817         * doc/posix-functions/fprintf.texi: Likewise.
2818         * doc/posix-functions/printf.texi: Likewise.
2819         * doc/posix-functions/snprintf.texi: Likewise.
2820         * doc/posix-functions/sprintf.texi: Likewise.
2821         * doc/posix-functions/vdprintf.texi: Likewise.
2822         * doc/posix-functions/vfprintf.texi: Likewise.
2823         * doc/posix-functions/vprintf.texi: Likewise.
2824         * doc/posix-functions/vsnprintf.texi: Likewise.
2825         * doc/posix-functions/vsprintf.texi: Likewise.
2826
2827 2011-06-19  Bruno Haible  <bruno@clisp.org>
2828
2829         roundl-ieee: Fix test failure on AIX 7.1.
2830         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
2831         * doc/posix-functions/roundl.texi: Mention problem with negative
2832         arguments.
2833
2834 2011-06-19  Bruno Haible  <bruno@clisp.org>
2835
2836         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
2837         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
2838         * doc/posix-functions/round.texi: Mention problem with negative
2839         arguments.
2840         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
2841
2842 2011-06-19  Bruno Haible  <bruno@clisp.org>
2843
2844         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
2845         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
2846         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
2847         * doc/posix-functions/roundf.texi: Mention problem with negative
2848         arguments.
2849         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
2850
2851 2011-06-19  Bruno Haible  <bruno@clisp.org>
2852
2853         ceilf-ieee: Work around bug on MacOS X 10.5.
2854         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
2855
2856         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
2857         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
2858         IEEE compliant, avoid compiler optimizations.
2859         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
2860         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
2861         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
2862         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
2863         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
2864         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
2865         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
2866         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
2867         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
2868         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
2869
2870 2011-06-19  Bruno Haible  <bruno@clisp.org>
2871
2872         ceilf-ieee: Work around bug on AIX 7.1.
2873         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
2874         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
2875
2876 2011-06-19  Bruno Haible  <bruno@clisp.org>
2877
2878         ceil-ieee: Work around bug on AIX 7.1.
2879         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
2880         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
2881
2882 2011-06-18  Bruno Haible  <bruno@clisp.org>
2883
2884         fsync test: Avoid test failure on MacOS X and AIX.
2885         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
2886         EINVAL.
2887
2888 2011-06-18  Bruno Haible  <bruno@clisp.org>
2889
2890         openat, fdopendir tests: Fix link errors.
2891         * modules/openat-tests (Depends-on): Add progname.
2892         * modules/fdopendir-tests (Depends-on): Likewise.
2893         * tests/test-fchownat.c: Include progname.h.
2894         (main): Call set_program_name.
2895         * tests/test-fstatat.c: Include progname.h.
2896         (main): Call set_program_name.
2897         * tests/test-mkdirat.c: Include progname.h.
2898         (main): Call set_program_name.
2899         * tests/test-openat.c: Include progname.h.
2900         (main): Call set_program_name.
2901         * tests/test-unlinkat.c: Include progname.h.
2902         (main): Call set_program_name.
2903         * tests/test-fdopendir.c: Include progname.h.
2904         (main): Call set_program_name.
2905
2906 2011-06-18  Bruno Haible  <bruno@clisp.org>
2907
2908         Doc update.
2909         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
2910         HP-UX.
2911         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
2912
2913 2011-06-18  Bruno Haible  <bruno@clisp.org>
2914
2915         getcwd tests: Avoid compilation error on HP-UX 11.31.
2916         * modules/getcwd-tests (Depends-on): Add pathmax.
2917         * tests/test-getcwd.c: Include pathmax.h.
2918
2919 2011-06-18  Bruno Haible  <bruno@clisp.org>
2920
2921         isfinite, isinf: Fix link error on AIX 6 and 7.
2922         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
2923         needed, also test the macro with a 'float' argument.
2924         * m4/isinf.m4 (gl_ISINF): Likewise.
2925
2926 2011-06-18  Bruno Haible  <bruno@clisp.org>
2927
2928         getloadavg: Don't clobber LIBS. Regression from previous commit.
2929         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
2930         AC_CHECK_LIB from here...
2931         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
2932         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
2933         gl_func_getloadavg_done.
2934         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2935
2936 2011-06-18  Bruno Haible  <bruno@clisp.org>
2937
2938         clean-temp: Improve documentation.
2939         * lib/clean-temp.h: Explain better how to use this module.
2940         Reported by John Darrington <john@darrington.wattle.id.au>.
2941
2942 2011-06-17  Bruno Haible  <bruno@clisp.org>
2943
2944         pread, pwrite: Avoid cc warning on AIX.
2945         * lib/unistd.in.h (pread): Undefine before defining as a macro.
2946         (pwrite): Likewise.
2947
2948 2011-06-17  Bruno Haible  <bruno@clisp.org>
2949
2950         spawn-pipe tests: Fix link error.
2951         * tests/test-spawn-pipe-child.c: Undefine fprintf.
2952         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2953
2954 2011-06-17  Bruno Haible  <bruno@clisp.org>
2955
2956         Tests: Remove unnecessary dependency.
2957         * modules/canonicalize-tests (Depends-on): Remove progname.
2958         * modules/chown-tests (Depends-on): Likewise.
2959         * modules/dirname-tests (Depends-on): Likewise.
2960         * modules/fdopendir-tests (Depends-on): Likewise.
2961         * modules/fdutimensat-tests (Depends-on): Likewise.
2962         * modules/hash-tests (Depends-on): Likewise.
2963         * modules/lchown-tests (Depends-on): Likewise.
2964         * modules/linkat-tests (Depends-on): Likewise.
2965         * modules/renameat-tests (Depends-on): Likewise.
2966         * modules/spawn-pipe-tests (Depends-on): Likewise.
2967         * modules/utimensat-tests (Depends-on): Likewise.
2968
2969 2011-06-17  Bruno Haible  <bruno@clisp.org>
2970
2971         spawn-pipe tests: Fix link error.
2972         * tests/test-spawn-pipe-child.c: Undefine fflush.
2973
2974 2011-06-17  Bruno Haible  <bruno@clisp.org>
2975
2976         Fix tests link errors.
2977         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
2978         * modules/chown-tests (Makefile.am): Don't link test-chown with
2979         LIBINTL.
2980         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
2981         LIBINTL.
2982         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
2983         LIBINTL.
2984         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
2985         LIBINTL.
2986
2987 2011-06-16  Bruno Haible  <bruno@clisp.org>
2988
2989         crypto/gc-sha1: Fix recent regression.
2990         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
2991         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
2992
2993         crypto/gc-md5: Fix recent regression.
2994         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
2995
2996         crypto/gc-md4: Fix recent regression.
2997         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
2998         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
2999
3000         crypto/gc-arctwo: Fix recent regression.
3001         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
3002         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
3003
3004         crypto/gc-rijndael: Fix recent regression.
3005         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
3006         (configure.ac): Invoke AC_LIBOBJ here.
3007         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
3008         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3009
3010         crypto/gc-hmac-sha1: Fix recent regression.
3011         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
3012         (configure.ac): Invoke AC_LIBOBJ here.
3013         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
3014         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3015
3016         crypto/gc-hmac-md5: Fix recent regression.
3017         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
3018         (configure.ac): Invoke AC_LIBOBJ here.
3019         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
3020         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3021
3022         crypto/gc-des: Fix recent regression.
3023         * modules/crypto/gc-des (Files): Remove m4/des.m4.
3024         (configure.ac): Invoke AC_LIBOBJ here.
3025         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
3026         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3027
3028         crypto/gc-arcfour: Fix recent regression.
3029         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
3030         (configure.ac): Invoke AC_LIBOBJ here.
3031         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
3032         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3033
3034 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
3035
3036         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
3037         After the 2011-05-21 change, this macro requires
3038         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
3039         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
3040
3041 2011-06-16  Bruno Haible  <bruno@clisp.org>
3042
3043         fprintftime: Move AC_LIBOBJ invocations to module description.
3044         * m4/fprintftime.m4: Remove file.
3045         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
3046         (configure.ac): Remove gl_FPRINTFTIME call.
3047         (Makefile.am): Augment lib_SOURCES.
3048         Reported by Jim Meyering.
3049
3050 2011-06-16  Bruno Haible  <bruno@clisp.org>
3051
3052         tmpfile-safer: Finish 2011-05-23 commit.
3053         * m4/stdio-safer.m4: Really remove file.
3054         Reported by Jim Meyering.
3055
3056 2011-06-16  Bruno Haible  <bruno@clisp.org>
3057
3058         syntax-check: Fix typo.
3059         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
3060         printf-posix.m4.
3061         Reported by Jim Meyering.
3062
3063 2011-06-13  Jim Meyering  <meyering@redhat.com>
3064
3065         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
3066         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
3067
3068 2011-05-23  Bruno Haible  <bruno@clisp.org>
3069
3070         yesno: Move AC_LIBOBJ invocations to module description.
3071         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
3072         * modules/yesno (Makefile.am): Augment lib_SOURCES.
3073
3074 2011-05-23  Bruno Haible  <bruno@clisp.org>
3075
3076         xstrtol: Move AC_LIBOBJ invocations to module description.
3077         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
3078         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
3079
3080 2011-05-23  Bruno Haible  <bruno@clisp.org>
3081
3082         xstrtold: Move AC_LIBOBJ invocations to module description.
3083         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
3084         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
3085
3086 2011-05-23  Bruno Haible  <bruno@clisp.org>
3087
3088         xstrtod: Move AC_LIBOBJ invocations to module description.
3089         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
3090         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
3091
3092 2011-05-23  Bruno Haible  <bruno@clisp.org>
3093
3094         xnanosleep: Move AC_LIBOBJ invocations to module description.
3095         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
3096         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
3097
3098 2011-05-23  Bruno Haible  <bruno@clisp.org>
3099
3100         xgetcwd: Move AC_LIBOBJ invocations to module description.
3101         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
3102         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
3103
3104 2011-05-23  Bruno Haible  <bruno@clisp.org>
3105
3106         xalloc: Move AC_LIBOBJ invocations to module description.
3107         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
3108         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
3109
3110 2011-05-23  Bruno Haible  <bruno@clisp.org>
3111
3112         write-any-file: Move AC_LIBOBJ invocations to module description.
3113         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
3114         invocation.
3115         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
3116
3117 2011-05-23  Bruno Haible  <bruno@clisp.org>
3118
3119         utimens: Move AC_LIBOBJ invocations to module description.
3120         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
3121         * modules/utimens (Makefile.am): Augment lib_SOURCES.
3122
3123 2011-05-23  Bruno Haible  <bruno@clisp.org>
3124
3125         utimecmp: Move AC_LIBOBJ invocations to module description.
3126         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
3127         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
3128
3129 2011-05-23  Bruno Haible  <bruno@clisp.org>
3130
3131         userspec: Move AC_LIBOBJ invocations to module description.
3132         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
3133         * modules/userspec (Makefile.am): Augment lib_SOURCES.
3134
3135 2011-05-23  Bruno Haible  <bruno@clisp.org>
3136
3137         unlinkdir: Move AC_LIBOBJ invocations to module description.
3138         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
3139         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
3140
3141 2011-05-23  Bruno Haible  <bruno@clisp.org>
3142
3143         unistd-safer: Move AC_LIBOBJ invocations to module description.
3144         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
3145         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
3146
3147 2011-05-23  Bruno Haible  <bruno@clisp.org>
3148
3149         tempname: Move AC_LIBOBJ invocations to module description.
3150         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
3151         * modules/tempname (Makefile.am): Augment lib_SOURCES.
3152
3153 2011-05-23  Bruno Haible  <bruno@clisp.org>
3154
3155         strftime: Move AC_LIBOBJ invocations to module description.
3156         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
3157         * modules/strftime (Makefile.am): Augment lib_SOURCES.
3158
3159 2011-05-23  Bruno Haible  <bruno@clisp.org>
3160
3161         stdlib-safer: Move AC_LIBOBJ invocations to module description.
3162         * m4/stdlib-safer.m4: Remove file.
3163         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
3164         (configure.ac): Remove gl_STDLIB_SAFER call.
3165         (Makefile.am): Augment lib_SOURCES.
3166
3167 2011-05-23  Bruno Haible  <bruno@clisp.org>
3168
3169         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
3170         * m4/stdio-safer.m4: Remove file.
3171         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
3172         (configure.ac): Remove gl_TMPFILE_SAFER call.
3173         (Makefile.am): Augment lib_SOURCES.
3174
3175 2011-05-23  Bruno Haible  <bruno@clisp.org>
3176
3177         popen-safer: Move AC_LIBOBJ invocations to module description.
3178         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
3179         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
3180         (configure.ac): Remove gl_POPEN_SAFER call.
3181         (Makefile.am): Augment lib_SOURCES.
3182
3183 2011-05-23  Bruno Haible  <bruno@clisp.org>
3184
3185         freopen-safer: Move AC_LIBOBJ invocations to module description.
3186         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
3187         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
3188         (configure.ac): Remove gl_FREOPEN_SAFER call.
3189         (Makefile.am): Augment lib_SOURCES.
3190
3191 2011-05-23  Bruno Haible  <bruno@clisp.org>
3192
3193         fopen-safer: Move AC_LIBOBJ invocations to module description.
3194         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
3195         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
3196         (configure.ac): Remove gl_FOPEN_SAFER call.
3197         (Makefile.am): Augment lib_SOURCES.
3198
3199 2011-05-23  Bruno Haible  <bruno@clisp.org>
3200
3201         crypto/sha512: Move AC_LIBOBJ invocations to module description.
3202         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
3203         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
3204
3205 2011-05-23  Bruno Haible  <bruno@clisp.org>
3206
3207         crypto/sha256: Move AC_LIBOBJ invocations to module description.
3208         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
3209         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
3210
3211 2011-05-23  Bruno Haible  <bruno@clisp.org>
3212
3213         crypto/sha1: Move AC_LIBOBJ invocations to module description.
3214         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
3215         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
3216
3217 2011-05-23  Bruno Haible  <bruno@clisp.org>
3218
3219         settime: Move AC_LIBOBJ invocations to module description.
3220         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
3221         * modules/settime (Makefile.am): Augment lib_SOURCES.
3222
3223 2011-05-23  Bruno Haible  <bruno@clisp.org>
3224
3225         savedir: Move AC_LIBOBJ invocations to module description.
3226         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
3227         * modules/savedir (Makefile.am): Augment lib_SOURCES.
3228
3229 2011-05-23  Bruno Haible  <bruno@clisp.org>
3230
3231         save-cwd: Move AC_LIBOBJ invocations to module description.
3232         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
3233         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
3234
3235 2011-05-23  Bruno Haible  <bruno@clisp.org>
3236
3237         same: Move AC_LIBOBJ invocations to module description.
3238         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
3239         * modules/same (Makefile.am): Augment lib_SOURCES.
3240
3241 2011-05-23  Bruno Haible  <bruno@clisp.org>
3242
3243         safe-write: Move AC_LIBOBJ invocations to module description.
3244         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
3245         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
3246         instead of gl_SAFE_WRITE.
3247         (Makefile.am): Augment lib_SOURCES.
3248
3249 2011-05-23  Bruno Haible  <bruno@clisp.org>
3250
3251         safe-read: Move AC_LIBOBJ invocations to module description.
3252         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
3253         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
3254         of gl_SAFE_READ.
3255         (Makefile.am): Augment lib_SOURCES.
3256
3257 2011-05-23  Bruno Haible  <bruno@clisp.org>
3258
3259         safe-alloc: Move AC_LIBOBJ invocations to module description.
3260         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
3261         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
3262
3263 2011-05-23  Bruno Haible  <bruno@clisp.org>
3264
3265         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
3266         * m4/rijndael.m4: Remove file.
3267         * modules/crypto/rijndael (Files): Remove it.
3268         (configure.ac): Remove gl_RIJNDAEL call.
3269         (Makefile.am): Augment lib_SOURCES.
3270
3271 2011-05-23  Bruno Haible  <bruno@clisp.org>
3272
3273         readtokens: Move AC_LIBOBJ invocations to module description.
3274         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
3275         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
3276
3277 2011-05-23  Bruno Haible  <bruno@clisp.org>
3278
3279         read-file: Move AC_LIBOBJ invocations to module description.
3280         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
3281         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
3282         of gl_FUNC_READ_FILE.
3283         (Makefile.am): Augment lib_SOURCES.
3284
3285 2011-05-23  Bruno Haible  <bruno@clisp.org>
3286
3287         quotearg: Move AC_LIBOBJ invocations to module description.
3288         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
3289         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
3290
3291 2011-05-23  Bruno Haible  <bruno@clisp.org>
3292
3293         quote: Move AC_LIBOBJ invocations to module description.
3294         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
3295         * modules/quote (Makefile.am): Augment lib_SOURCES.
3296
3297 2011-05-23  Bruno Haible  <bruno@clisp.org>
3298
3299         posixver: Move AC_LIBOBJ invocations to module description.
3300         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
3301         * modules/posixver (Makefile.am): Augment lib_SOURCES.
3302
3303 2011-05-23  Bruno Haible  <bruno@clisp.org>
3304
3305         posixtm: Move AC_LIBOBJ invocations to module description.
3306         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
3307         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
3308
3309 2011-05-23  Bruno Haible  <bruno@clisp.org>
3310
3311         physmem: Move AC_LIBOBJ invocations to module description.
3312         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
3313         * modules/physmem (Makefile.am): Augment lib_SOURCES.
3314
3315 2011-05-23  Bruno Haible  <bruno@clisp.org>
3316
3317         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
3318         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
3319         invocation.
3320         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
3321
3322 2011-05-23  Bruno Haible  <bruno@clisp.org>
3323
3324         mpsort: Move AC_LIBOBJ invocations to module description.
3325         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
3326         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
3327
3328 2011-05-23  Bruno Haible  <bruno@clisp.org>
3329
3330         modechange: Move AC_LIBOBJ invocations to module description.
3331         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
3332         * modules/modechange (Makefile.am): Augment lib_SOURCES.
3333
3334 2011-05-23  Bruno Haible  <bruno@clisp.org>
3335
3336         mkdir-p: Move AC_LIBOBJ invocations to module description.
3337         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
3338         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
3339
3340 2011-05-23  Bruno Haible  <bruno@clisp.org>
3341
3342         mkancesdirs: Move AC_LIBOBJ invocations to module description.
3343         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
3344         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
3345
3346 2011-05-23  Bruno Haible  <bruno@clisp.org>
3347
3348         mgetgroups: Move AC_LIBOBJ invocations to module description.
3349         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
3350         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
3351
3352 2011-05-23  Bruno Haible  <bruno@clisp.org>
3353
3354         memxor: Move AC_LIBOBJ invocations to module description.
3355         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
3356         * modules/memxor (Makefile.am): Augment lib_SOURCES.
3357
3358 2011-05-23  Bruno Haible  <bruno@clisp.org>
3359
3360         memcoll: Move AC_LIBOBJ invocations to module description.
3361         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
3362         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
3363
3364 2011-05-23  Bruno Haible  <bruno@clisp.org>
3365
3366         memcasecmp: Move AC_LIBOBJ invocations to module description.
3367         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
3368         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
3369
3370 2011-05-23  Bruno Haible  <bruno@clisp.org>
3371
3372         crypto/md5: Move AC_LIBOBJ invocations to module description.
3373         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
3374         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
3375
3376 2011-05-23  Bruno Haible  <bruno@clisp.org>
3377
3378         crypto/md4: Move AC_LIBOBJ invocations to module description.
3379         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
3380         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
3381
3382 2011-05-23  Bruno Haible  <bruno@clisp.org>
3383
3384         crypto/md2: Move AC_LIBOBJ invocations to module description.
3385         * m4/md2.m4: Remove file.
3386         * modules/crypto/md2 (Files): Remove it.
3387         (configure.ac): Remove gl_MD2 call.
3388         (Makefile.am): Augment lib_SOURCES.
3389
3390 2011-05-23  Bruno Haible  <bruno@clisp.org>
3391
3392         long-options: Move AC_LIBOBJ invocations to module description.
3393         * m4/long-options.m4: Remove file.
3394         * modules/long-options (Files): Remove it.
3395         (configure.ac): Remove gl_LONG_OPTIONS call.
3396         (Makefile.am): Augment lib_SOURCES.
3397
3398 2011-05-23  Bruno Haible  <bruno@clisp.org>
3399
3400         i-ring: Move AC_LIBOBJ invocations to module description.
3401         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
3402         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
3403
3404 2011-05-23  Bruno Haible  <bruno@clisp.org>
3405
3406         idcache: Move AC_LIBOBJ invocations to module description.
3407         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
3408         * modules/idcache (Makefile.am): Augment lib_SOURCES.
3409
3410 2011-05-23  Bruno Haible  <bruno@clisp.org>
3411
3412         human: Move AC_LIBOBJ invocations to module description.
3413         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
3414         * modules/human (Makefile.am): Augment lib_SOURCES.
3415
3416 2011-05-23  Bruno Haible  <bruno@clisp.org>
3417
3418         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
3419         * m4/hmac-sha1.m4: Remove file.
3420         * modules/crypto/hmac-sha1 (Files): Remove it.
3421         (configure.ac): Remove gl_HMAC_SHA1 call.
3422         (Makefile.am): Augment lib_SOURCES.
3423
3424 2011-05-23  Bruno Haible  <bruno@clisp.org>
3425
3426         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
3427         * m4/hmac-md5.m4: Remove file.
3428         * modules/crypto/hmac-md5 (Files): Remove it.
3429         (configure.ac): Remove gl_HMAC_MD5 call.
3430         (Makefile.am): Augment lib_SOURCES.
3431
3432 2011-05-23  Bruno Haible  <bruno@clisp.org>
3433
3434         hash: Move AC_LIBOBJ invocations to module description.
3435         * m4/hash.m4: Remove file.
3436         * modules/hash (Files): Remove it.
3437         (configure.ac): Remove gl_HASH call.
3438         (Makefile.am): Augment lib_SOURCES.
3439
3440 2011-05-23  Bruno Haible  <bruno@clisp.org>
3441
3442         hard-locale: Move AC_LIBOBJ invocations to module description.
3443         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
3444         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
3445
3446 2011-05-23  Bruno Haible  <bruno@clisp.org>
3447
3448         getugroups: Move AC_LIBOBJ invocations to module description.
3449         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
3450         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
3451
3452 2011-05-23  Bruno Haible  <bruno@clisp.org>
3453
3454         gettime: Move AC_LIBOBJ invocations to module description.
3455         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
3456         * modules/gettime (Makefile.am): Augment lib_SOURCES.
3457
3458 2011-05-23  Bruno Haible  <bruno@clisp.org>
3459
3460         getndelim2: Move AC_LIBOBJ invocations to module description.
3461         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
3462         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
3463
3464 2011-05-23  Bruno Haible  <bruno@clisp.org>
3465
3466         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
3467         * m4/gc-pbkdf2-sha1.m4: Remove file.
3468         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
3469         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
3470         (Makefile.am): Augment lib_SOURCES.
3471
3472 2011-05-23  Bruno Haible  <bruno@clisp.org>
3473
3474         fts: Move AC_LIBOBJ invocations to module description.
3475         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
3476         * modules/fts (configure.ac): ... to here.
3477
3478 2011-05-23  Bruno Haible  <bruno@clisp.org>
3479
3480         file-type: Move AC_LIBOBJ invocations to module description.
3481         * m4/file-type.m4: Remove file.
3482         * modules/file-type (Files): Remove it.
3483         (configure.ac): Remove gl_FILE_TYPE call.
3484         (Makefile.am): Augment lib_SOURCES.
3485
3486 2011-05-23  Bruno Haible  <bruno@clisp.org>
3487
3488         filenamecat*: Respect rules for use of AC_LIBOBJ.
3489         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
3490         Remove AC_LIBOBJ invocation.
3491         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
3492         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
3493
3494 2011-05-23  Bruno Haible  <bruno@clisp.org>
3495
3496         filemode: Move AC_LIBOBJ invocations to module description.
3497         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
3498         * modules/filemode (Makefile.am): Augment lib_SOURCES.
3499
3500 2011-05-23  Bruno Haible  <bruno@clisp.org>
3501
3502         openat-safer: Move AC_LIBOBJ invocations to module description.
3503         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
3504         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
3505
3506 2011-05-23  Bruno Haible  <bruno@clisp.org>
3507
3508         fcntl-safer: Move AC_LIBOBJ invocations to module description.
3509         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
3510         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
3511
3512 2011-05-23  Bruno Haible  <bruno@clisp.org>
3513
3514         exclude: Move AC_LIBOBJ invocations to module description.
3515         * m4/exclude.m4: Remove file.
3516         * modules/exclude (Files): Remove it.
3517         (configure.ac): Remove gl_EXCLUDE call.
3518         (Makefile.am): Augment lib_SOURCES.
3519
3520 2011-05-23  Bruno Haible  <bruno@clisp.org>
3521
3522         dirname*: Respect rules for use of AC_LIBOBJ.
3523         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
3524         invocations.
3525         * modules/dirname (Makefile.am): Augment lib_SOURCES.
3526         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
3527
3528 2011-05-23  Bruno Haible  <bruno@clisp.org>
3529
3530         dirent-safer: Move AC_LIBOBJ invocations to module description.
3531         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
3532         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
3533
3534 2011-05-23  Bruno Haible  <bruno@clisp.org>
3535
3536         crypto/des: Move AC_LIBOBJ invocations to module description.
3537         * m4/des.m4: Remove file.
3538         * modules/crypto/des (Files): Remove it.
3539         (configure.ac): Remove gl_DES call.
3540         (Makefile.am): Augment lib_SOURCES.
3541
3542 2011-05-23  Bruno Haible  <bruno@clisp.org>
3543
3544         cycle-check: Move AC_LIBOBJ invocations to module description.
3545         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
3546         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
3547
3548 2011-05-23  Bruno Haible  <bruno@clisp.org>
3549
3550         c-strtold: Move AC_LIBOBJ invocations to module description.
3551         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
3552         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
3553
3554 2011-05-23  Bruno Haible  <bruno@clisp.org>
3555
3556         c-strtod: Move AC_LIBOBJ invocations to module description.
3557         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
3558         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
3559
3560 2011-05-23  Bruno Haible  <bruno@clisp.org>
3561
3562         crc: Move AC_LIBOBJ invocations to module description.
3563         * m4/crc.m4: Remove file.
3564         * modules/crc (Files): Remove it.
3565         (configure.ac): Remove gl_CRC call.
3566         (Makefile.am): Augment lib_SOURCES.
3567
3568 2011-05-23  Bruno Haible  <bruno@clisp.org>
3569
3570         close-stream: Move AC_LIBOBJ invocations to module description.
3571         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
3572         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
3573
3574 2011-05-23  Bruno Haible  <bruno@clisp.org>
3575
3576         closeout: Move AC_LIBOBJ invocations to module description.
3577         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
3578         * modules/closeout (Makefile.am): Augment lib_SOURCES.
3579
3580 2011-05-23  Bruno Haible  <bruno@clisp.org>
3581
3582         closein: Move AC_LIBOBJ invocations to module description.
3583         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
3584         * modules/closein (Makefile.am): Augment lib_SOURCES.
3585
3586 2011-05-23  Bruno Haible  <bruno@clisp.org>
3587
3588         cloexec: Move AC_LIBOBJ invocations to module description.
3589         * m4/cloexec.m4: Remove file.
3590         * modules/cloexec (Files): Remove it.
3591         (configure.ac): Remove gl_CLOEXEC call.
3592         (Makefile.am): Augment lib_SOURCES.
3593
3594 2011-05-23  Bruno Haible  <bruno@clisp.org>
3595
3596         check-version: Move AC_LIBOBJ invocations to module description.
3597         * m4/check-version.m4: Remove file.
3598         * modules/check-version (Files): Remove it.
3599         (configure.ac): Remove gl_CHECK_VERSION call.
3600         (Makefile.am): Augment lib_SOURCES.
3601
3602 2011-05-23  Bruno Haible  <bruno@clisp.org>
3603
3604         chdir-safer: Move AC_LIBOBJ invocations to module description.
3605         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
3606         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
3607
3608 2011-05-23  Bruno Haible  <bruno@clisp.org>
3609
3610         canonicalize: Move AC_LIBOBJ invocations to module description.
3611         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
3612         AC_LIBOBJ invocation.
3613         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
3614
3615 2011-05-23  Bruno Haible  <bruno@clisp.org>
3616
3617         canon-host: Move AC_LIBOBJ invocations to module description.
3618         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
3619         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
3620         instead of gl_CANON_HOST.
3621         (Makefile.am): Augment lib_SOURCES.
3622
3623 2011-05-23  Bruno Haible  <bruno@clisp.org>
3624
3625         backupfile: Move AC_LIBOBJ invocations to module description.
3626         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
3627         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
3628
3629 2011-05-23  Bruno Haible  <bruno@clisp.org>
3630
3631         argmatch: Move AC_LIBOBJ invocations to module description.
3632         * m4/argmatch.m4: Remove file.
3633         * modules/argmatch (Files): Remove it.
3634         (configure.ac): Remove gl_ARGMATCH call.
3635         (Makefile.am): Augment lib_SOURCES.
3636
3637 2011-05-23  Bruno Haible  <bruno@clisp.org>
3638
3639         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
3640         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
3641         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
3642
3643 2011-05-23  Bruno Haible  <bruno@clisp.org>
3644
3645         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
3646         * m4/arcfour.m4: Remove file.
3647         * modules/crypto/arcfour (Files): Remove it.
3648         (configure.ac): Remove gl_ARCFOUR call.
3649         (Makefile.am): Augment lib_SOURCES.
3650
3651 2011-05-22  Bruno Haible  <bruno@clisp.org>
3652
3653         write: Move AC_LIBOBJ invocations to module description.
3654         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
3655         * modules/write (configure.ac): ... to here.
3656
3657 2011-05-22  Bruno Haible  <bruno@clisp.org>
3658
3659         wmemset: Move AC_LIBOBJ invocations to module description.
3660         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
3661         here...
3662         * modules/wmemset (configure.ac): ... to here.
3663
3664 2011-05-22  Bruno Haible  <bruno@clisp.org>
3665
3666         wmemmove: Move AC_LIBOBJ invocations to module description.
3667         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
3668         here...
3669         * modules/wmemmove (configure.ac): ... to here.
3670
3671 2011-05-22  Bruno Haible  <bruno@clisp.org>
3672
3673         wmemcpy: Move AC_LIBOBJ invocations to module description.
3674         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
3675         here...
3676         * modules/wmemcpy (configure.ac): ... to here.
3677
3678 2011-05-22  Bruno Haible  <bruno@clisp.org>
3679
3680         wmemcmp: Move AC_LIBOBJ invocations to module description.
3681         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
3682         here...
3683         * modules/wmemcmp (configure.ac): ... to here.
3684
3685 2011-05-22  Bruno Haible  <bruno@clisp.org>
3686
3687         wmemchr: Move AC_LIBOBJ invocations to module description.
3688         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
3689         here...
3690         * modules/wmemchr (configure.ac): ... to here.
3691
3692 2011-05-22  Bruno Haible  <bruno@clisp.org>
3693
3694         wcswidth: Move AC_LIBOBJ invocations to module description.
3695         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
3696         here...
3697         * modules/wcswidth (configure.ac): ... to here.
3698
3699 2011-05-22  Bruno Haible  <bruno@clisp.org>
3700
3701         wcwidth: Respect rules for use of AC_LIBOBJ.
3702         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
3703         invocation from here...
3704         * modules/wcwidth (configure.ac): ... to here.
3705         (Depends-on): Update conditions.
3706
3707 2011-05-22  Bruno Haible  <bruno@clisp.org>
3708
3709         wctype: Move AC_LIBOBJ invocations to module description.
3710         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
3711         invocation from here...
3712         * modules/wctype (configure.ac): ... to here.
3713         (Depends-on): Update conditions.
3714
3715 2011-05-22  Bruno Haible  <bruno@clisp.org>
3716
3717         wctrans: Move AC_LIBOBJ invocations to module description.
3718         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
3719         invocation from here...
3720         * modules/wctrans (configure.ac): ... to here.
3721
3722 2011-05-22  Bruno Haible  <bruno@clisp.org>
3723
3724         wctomb: Move AC_LIBOBJ invocations to module description.
3725         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
3726         invocations from here...
3727         * modules/wctomb (configure.ac): ... to here.
3728
3729 2011-05-22  Bruno Haible  <bruno@clisp.org>
3730
3731         wctob: Move AC_LIBOBJ invocations to module description.
3732         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
3733         gl_PREREQ_WCTOB invocations from here...
3734         * modules/wctob (configure.ac): ... to here.
3735         (Depends-on): Update conditions.
3736
3737 2011-05-22  Bruno Haible  <bruno@clisp.org>
3738
3739         wcsxfrm: Move AC_LIBOBJ invocations to module description.
3740         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
3741         here...
3742         * modules/wcsxfrm (configure.ac): ... to here.
3743
3744 2011-05-22  Bruno Haible  <bruno@clisp.org>
3745
3746         wcstok: Move AC_LIBOBJ invocations to module description.
3747         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
3748         * modules/wcstok (configure.ac): ... to here.
3749
3750 2011-05-22  Bruno Haible  <bruno@clisp.org>
3751
3752         wcsstr: Move AC_LIBOBJ invocations to module description.
3753         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
3754         * modules/wcsstr (configure.ac): ... to here.
3755
3756 2011-05-22  Bruno Haible  <bruno@clisp.org>
3757
3758         wcsspn: Move AC_LIBOBJ invocations to module description.
3759         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
3760         * modules/wcsspn (configure.ac): ... to here.
3761
3762 2011-05-22  Bruno Haible  <bruno@clisp.org>
3763
3764         wcsrtombs: Move AC_LIBOBJ invocations to module description.
3765         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
3766         gl_PREREQ_WCSRTOMBS invocations from here...
3767         * modules/wcsrtombs (configure.ac): ... to here.
3768
3769 2011-05-22  Bruno Haible  <bruno@clisp.org>
3770
3771         wcsrchr: Move AC_LIBOBJ invocations to module description.
3772         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
3773         here...
3774         * modules/wcsrchr (configure.ac): ... to here.
3775
3776 2011-05-22  Bruno Haible  <bruno@clisp.org>
3777
3778         wcspbrk: Move AC_LIBOBJ invocations to module description.
3779         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
3780         here...
3781         * modules/wcspbrk (configure.ac): ... to here.
3782
3783 2011-05-22  Bruno Haible  <bruno@clisp.org>
3784
3785         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
3786         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
3787         gl_PREREQ_WCSNRTOMBS invocations from here...
3788         * modules/wcsnrtombs (configure.ac): ... to here.
3789
3790 2011-05-22  Bruno Haible  <bruno@clisp.org>
3791
3792         wcsnlen: Move AC_LIBOBJ invocations to module description.
3793         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
3794         here...
3795         * modules/wcsnlen (configure.ac): ... to here.
3796
3797 2011-05-22  Bruno Haible  <bruno@clisp.org>
3798
3799         wcsncpy: Move AC_LIBOBJ invocations to module description.
3800         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
3801         here...
3802         * modules/wcsncpy (configure.ac): ... to here.
3803
3804 2011-05-22  Bruno Haible  <bruno@clisp.org>
3805
3806         wcsncmp: Move AC_LIBOBJ invocations to module description.
3807         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
3808         here...
3809         * modules/wcsncmp (configure.ac): ... to here.
3810
3811 2011-05-22  Bruno Haible  <bruno@clisp.org>
3812
3813         wcsncat: Move AC_LIBOBJ invocations to module description.
3814         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
3815         here...
3816         * modules/wcsncat (configure.ac): ... to here.
3817
3818 2011-05-22  Bruno Haible  <bruno@clisp.org>
3819
3820         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
3821         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
3822         from here...
3823         * modules/wcsncasecmp (configure.ac): ... to here.
3824
3825 2011-05-22  Bruno Haible  <bruno@clisp.org>
3826
3827         wcslen: Move AC_LIBOBJ invocations to module description.
3828         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
3829         * modules/wcslen (configure.ac): ... to here.
3830
3831 2011-05-22  Bruno Haible  <bruno@clisp.org>
3832
3833         wcsdup: Move AC_LIBOBJ invocations to module description.
3834         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
3835         * modules/wcsdup (configure.ac): ... to here.
3836
3837 2011-05-22  Bruno Haible  <bruno@clisp.org>
3838
3839         wcscspn: Move AC_LIBOBJ invocations to module description.
3840         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
3841         here...
3842         * modules/wcscspn (configure.ac): ... to here.
3843
3844 2011-05-22  Bruno Haible  <bruno@clisp.org>
3845
3846         wcscpy: Move AC_LIBOBJ invocations to module description.
3847         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
3848         * modules/wcscpy (configure.ac): ... to here.
3849
3850 2011-05-22  Bruno Haible  <bruno@clisp.org>
3851
3852         wcscoll: Move AC_LIBOBJ invocations to module description.
3853         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
3854         here...
3855         * modules/wcscoll (configure.ac): ... to here.
3856
3857 2011-05-22  Bruno Haible  <bruno@clisp.org>
3858
3859         wcscmp: Move AC_LIBOBJ invocations to module description.
3860         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
3861         * modules/wcscmp (configure.ac): ... to here.
3862
3863 2011-05-22  Bruno Haible  <bruno@clisp.org>
3864
3865         wcschr: Move AC_LIBOBJ invocations to module description.
3866         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
3867         * modules/wcschr (configure.ac): ... to here.
3868
3869 2011-05-22  Bruno Haible  <bruno@clisp.org>
3870
3871         wcscat: Move AC_LIBOBJ invocations to module description.
3872         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
3873         * modules/wcscat (configure.ac): ... to here.
3874
3875 2011-05-22  Bruno Haible  <bruno@clisp.org>
3876
3877         wcscasecmp: Move AC_LIBOBJ invocations to module description.
3878         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
3879         here...
3880         * modules/wcscasecmp (configure.ac): ... to here.
3881
3882 2011-05-22  Bruno Haible  <bruno@clisp.org>
3883
3884         wcrtomb: Move AC_LIBOBJ invocations to module description.
3885         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
3886         invocations from here...
3887         * modules/wcrtomb (configure.ac): ... to here.
3888
3889 2011-05-22  Bruno Haible  <bruno@clisp.org>
3890
3891         wcpncpy: Move AC_LIBOBJ invocations to module description.
3892         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
3893         here...
3894         * modules/wcpncpy (configure.ac): ... to here.
3895
3896 2011-05-22  Bruno Haible  <bruno@clisp.org>
3897
3898         wcpcpy: Move AC_LIBOBJ invocations to module description.
3899         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
3900         * modules/wcpcpy (configure.ac): ... to here.
3901
3902 2011-05-22  Bruno Haible  <bruno@clisp.org>
3903
3904         waitpid: Move AC_LIBOBJ invocations to module description.
3905         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
3906         invocation from here...
3907         * modules/waitpid (configure.ac): ... to here.
3908
3909 2011-05-22  Bruno Haible  <bruno@clisp.org>
3910
3911         utimensat: Move AC_LIBOBJ invocations to module description.
3912         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
3913         here...
3914         * modules/utimensat (configure.ac): ... to here.
3915
3916 2011-05-22  Bruno Haible  <bruno@clisp.org>
3917
3918         usleep: Move AC_LIBOBJ invocations to module description.
3919         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
3920         here...
3921         * modules/usleep (configure.ac): ... to here.
3922
3923 2011-05-22  Bruno Haible  <bruno@clisp.org>
3924
3925         unlockpt: Move AC_LIBOBJ invocations to module description.
3926         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
3927         gl_PREREQ_UNLOCKPT invocations from here...
3928         * modules/unlockpt (configure.ac): ... to here.
3929
3930 2011-05-22  Bruno Haible  <bruno@clisp.org>
3931
3932         unlink: Respect rules for use of AC_LIBOBJ.
3933         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
3934         * modules/unlink (configure.ac): ... to here.
3935
3936 2011-05-22  Bruno Haible  <bruno@clisp.org>
3937
3938         uname: Move AC_LIBOBJ invocations to module description.
3939         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
3940         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
3941         here...
3942         * modules/uname (configure.ac): ... to here.
3943
3944 2011-05-22  Bruno Haible  <bruno@clisp.org>
3945
3946         ttyname_r: Move AC_LIBOBJ invocations to module description.
3947         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
3948         gl_PREREQ_TTYNAME_R invocations from here...
3949         * modules/ttyname_r (configure.ac): ... to here.
3950
3951 2011-05-22  Bruno Haible  <bruno@clisp.org>
3952
3953         tsearch: Move AC_LIBOBJ invocations to module description.
3954         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
3955         invocations from here...
3956         * modules/tsearch (configure.ac): ... to here.
3957
3958 2011-05-22  Bruno Haible  <bruno@clisp.org>
3959
3960         towctrans: Move AC_LIBOBJ invocations to module description.
3961         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
3962         AC_LIBOBJ invocation from here...
3963         * modules/towctrans (configure.ac): ... to here.
3964
3965 2011-05-22  Bruno Haible  <bruno@clisp.org>
3966
3967         tmpfile: Move AC_LIBOBJ invocations to module description.
3968         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
3969         invocations from here...
3970         * modules/tmpfile (configure.ac): ... to here.
3971
3972 2011-05-22  Bruno Haible  <bruno@clisp.org>
3973
3974         times: Move AC_LIBOBJ invocations to module description.
3975         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
3976         * modules/times (configure.ac): ... to here.
3977
3978 2011-05-22  Bruno Haible  <bruno@clisp.org>
3979
3980         time_r: Move AC_LIBOBJ invocations to module description.
3981         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
3982         invocations from here...
3983         * modules/time_r (configure.ac): ... to here.
3984
3985 2011-05-22  Bruno Haible  <bruno@clisp.org>
3986
3987         timegm: Move AC_LIBOBJ invocations to module description.
3988         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
3989         invocations from here...
3990         * modules/timegm (configure.ac): ... to here.
3991
3992 2011-05-22  Bruno Haible  <bruno@clisp.org>
3993
3994         tcgetsid: Move AC_LIBOBJ invocations to module description.
3995         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
3996         and gl_PREREQ_TCGETSID invocations from here...
3997         * modules/tcgetsid (configure.ac): ... to here.
3998         (Depends-on): Update conditions.
3999
4000 2011-05-22  Bruno Haible  <bruno@clisp.org>
4001
4002         symlinkat: Move AC_LIBOBJ invocations to module description.
4003         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
4004         here...
4005         * modules/symlinkat (configure.ac): ... to here.
4006
4007 2011-05-22  Bruno Haible  <bruno@clisp.org>
4008
4009         symlink: Move AC_LIBOBJ invocations to module description.
4010         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
4011         here...
4012         * modules/symlink (configure.ac): ... to here.
4013
4014 2011-05-22  Bruno Haible  <bruno@clisp.org>
4015
4016         strverscmp: Move AC_LIBOBJ invocations to module description.
4017         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
4018         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
4019         from here...
4020         * modules/strverscmp (configure.ac): ... to here.
4021
4022 2011-05-22  Bruno Haible  <bruno@clisp.org>
4023
4024         strtok_r: Move AC_LIBOBJ invocations to module description.
4025         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
4026         and gl_PREREQ_STRTOK_R invocations from here...
4027         * modules/strtok_r (configure.ac): ... to here.
4028         (Depends-on): Update conditions.
4029
4030 2011-05-22  Bruno Haible  <bruno@clisp.org>
4031
4032         strtoumax: Move AC_LIBOBJ invocations to module description.
4033         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
4034         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
4035         from here...
4036         * modules/strtoumax (configure.ac): ... to here.
4037
4038 2011-05-22  Bruno Haible  <bruno@clisp.org>
4039
4040         strtoimax: Move AC_LIBOBJ invocations to module description.
4041         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
4042         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
4043         from here...
4044         * modules/strtoimax (configure.ac): ... to here.
4045
4046 2011-05-22  Bruno Haible  <bruno@clisp.org>
4047
4048         strtoull: Move AC_LIBOBJ invocations to module description.
4049         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
4050         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
4051         from here...
4052         * modules/strtoull (configure.ac): ... to here.
4053
4054 2011-05-22  Bruno Haible  <bruno@clisp.org>
4055
4056         strtoll: Move AC_LIBOBJ invocations to module description.
4057         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
4058         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
4059         here...
4060         * modules/strtoll (configure.ac): ... to here.
4061
4062 2011-05-22  Bruno Haible  <bruno@clisp.org>
4063
4064         strtoul: Move AC_LIBOBJ invocations to module description.
4065         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
4066         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
4067         * modules/strtoul (configure.ac): ... to here.
4068
4069 2011-05-22  Bruno Haible  <bruno@clisp.org>
4070
4071         strtol: Move AC_LIBOBJ invocations to module description.
4072         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
4073         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
4074         * modules/strtol (configure.ac): ... to here.
4075
4076 2011-05-22  Bruno Haible  <bruno@clisp.org>
4077
4078         strtod: Move AC_LIBOBJ invocations to module description.
4079         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
4080         invocations from here...
4081         * modules/strtod (configure.ac): ... to here.
4082
4083 2011-05-22  Bruno Haible  <bruno@clisp.org>
4084
4085         strstr*: Move AC_LIBOBJ invocations to module description.
4086         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
4087         invocations from here...
4088         * modules/strstr-simple (configure.ac): ... to here.
4089         * modules/strstr (configure.ac): ... and here.
4090
4091 2011-05-22  Bruno Haible  <bruno@clisp.org>
4092
4093         strsignal: Move AC_LIBOBJ invocations to module description.
4094         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
4095         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
4096         * modules/strsignal (configure.ac): ... to here.
4097         (Depends-on): Update conditions.
4098
4099 2011-05-22  Bruno Haible  <bruno@clisp.org>
4100
4101         strsep: Move AC_LIBOBJ invocations to module description.
4102         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
4103         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
4104         here...
4105         * modules/strsep (configure.ac): ... to here.
4106
4107 2011-05-22  Bruno Haible  <bruno@clisp.org>
4108
4109         strptime: Move AC_LIBOBJ invocations to module description.
4110         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
4111         gl_PREREQ_STRPTIME invocations from here...
4112         * modules/strptime (configure.ac): ... to here.
4113
4114 2011-05-22  Bruno Haible  <bruno@clisp.org>
4115
4116         strpbrk: Move AC_LIBOBJ invocations to module description.
4117         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
4118         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
4119         here...
4120         * modules/strpbrk (configure.ac): ... to here.
4121
4122 2011-05-22  Bruno Haible  <bruno@clisp.org>
4123
4124         strnlen: Move AC_LIBOBJ invocations to module description.
4125         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
4126         invocations from here...
4127         * modules/strnlen (configure.ac): ... to here.
4128
4129 2011-05-22  Bruno Haible  <bruno@clisp.org>
4130
4131         strndup: Move AC_LIBOBJ invocations to module description.
4132         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
4133         invocations from here...
4134         * modules/strndup (configure.ac): ... to here.
4135         (Depends-on): Update conditions.
4136
4137 2011-05-22  Bruno Haible  <bruno@clisp.org>
4138
4139         strncat: Move AC_LIBOBJ invocations to module description.
4140         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
4141         invocations from here...
4142         * modules/strncat (configure.ac): ... to here.
4143
4144 2011-05-22  Bruno Haible  <bruno@clisp.org>
4145
4146         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
4147         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
4148         invocations from here...
4149         * modules/strdup (configure.ac): ... to here.
4150         * modules/strdup-posix (configure.ac): ... and here.
4151
4152 2011-05-22  Bruno Haible  <bruno@clisp.org>
4153
4154         strcspn: Move AC_LIBOBJ invocations to module description.
4155         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
4156         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
4157         here...
4158         * modules/strcspn (configure.ac): ... to here.
4159
4160 2011-05-22  Bruno Haible  <bruno@clisp.org>
4161
4162         strchrnul: Move AC_LIBOBJ invocations to module description.
4163         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
4164         gl_PREREQ_STRCHRNUL invocations from here...
4165         * modules/strchrnul (configure.ac): ... to here.
4166
4167 2011-05-22  Bruno Haible  <bruno@clisp.org>
4168
4169         strcasestr*: Move AC_LIBOBJ invocations to module description.
4170         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
4171         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
4172         * modules/strcasestr-simple (configure.ac): ... to here.
4173         * modules/strcasestr (configure.ac): ... and here.
4174
4175 2011-05-22  Bruno Haible  <bruno@clisp.org>
4176
4177         strcase: Move AC_LIBOBJ invocations to module description.
4178         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
4179         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
4180         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
4181         gl_PREREQ_STRNCASECMP invocations from here...
4182         * modules/strcase (configure.ac): ... to here.
4183
4184 2011-05-22  Bruno Haible  <bruno@clisp.org>
4185
4186         stpncpy: Move AC_LIBOBJ invocations to module description.
4187         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
4188         here...
4189         * modules/stpncpy (configure.ac): ... to here.
4190
4191 2011-05-22  Bruno Haible  <bruno@clisp.org>
4192
4193         stpcpy: Move AC_LIBOBJ invocations to module description.
4194         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
4195         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
4196         here...
4197         * modules/stpcpy (configure.ac): ... to here.
4198
4199 2011-05-21  Bruno Haible  <bruno@clisp.org>
4200
4201         stat: Move AC_LIBOBJ invocations to module description.
4202         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
4203         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
4204         here...
4205         * modules/stat (configure.ac): ... to here.
4206
4207 2011-05-21  Bruno Haible  <bruno@clisp.org>
4208
4209         sleep: Move AC_LIBOBJ invocations to module description.
4210         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
4211         * modules/sleep (configure.ac): ... to here.
4212
4213 2011-05-21  Bruno Haible  <bruno@clisp.org>
4214
4215         signbit: Move AC_LIBOBJ invocations to module description.
4216         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
4217         * modules/signbit (configure.ac): ... to here.
4218
4219 2011-05-21  Bruno Haible  <bruno@clisp.org>
4220
4221         sigprocmask: Move AC_LIBOBJ invocations to module description.
4222         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
4223         gl_PREREQ_SIGPROMASK invocations from here...
4224         * modules/sigprocmask (configure.ac): ... to here.
4225
4226 2011-05-21  Bruno Haible  <bruno@clisp.org>
4227
4228         sigaction: Move AC_LIBOBJ invocations to module description.
4229         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
4230         gl_PREREQ_SIGACTION invocations from here...
4231         * modules/sigaction (configure.ac): ... to here.
4232
4233 2011-05-21  Bruno Haible  <bruno@clisp.org>
4234
4235         sig2str: Move AC_LIBOBJ invocations to module description.
4236         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
4237         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
4238         here...
4239         * modules/sig2str (configure.ac): ... to here.
4240
4241 2011-05-21  Bruno Haible  <bruno@clisp.org>
4242
4243         setlocale: Move AC_LIBOBJ invocations to module description.
4244         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
4245         gl_PREREQ_SETLOCALE invocations from here...
4246         * modules/setlocale (configure.ac): ... to here.
4247
4248 2011-05-21  Bruno Haible  <bruno@clisp.org>
4249
4250         unsetenv: Move AC_LIBOBJ invocations to module description.
4251         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
4252         and gl_PREREQ_UNSETENV invocations from here...
4253         * modules/unsetenv (configure.ac): ... to here.
4254         (Depends-on): Update.
4255
4256 2011-05-21  Bruno Haible  <bruno@clisp.org>
4257
4258         setenv: Move AC_LIBOBJ invocations to module description.
4259         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
4260         here...
4261         * modules/setenv (configure.ac): ... to here.
4262
4263 2011-05-21  Bruno Haible  <bruno@clisp.org>
4264
4265         selinux-h: Move AC_LIBOBJ invocations to module description.
4266         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
4267         AC_LIBOBJ invocation from here...
4268         * modules/selinux-h (configure.ac): ... to here.
4269
4270 2011-05-21  Bruno Haible  <bruno@clisp.org>
4271
4272         select: Respect rules for use of AC_LIBOBJ.
4273         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
4274         here...
4275         * modules/select (configure.ac): ... to here.
4276
4277 2011-05-21  Bruno Haible  <bruno@clisp.org>
4278
4279         scandir: Move AC_LIBOBJ invocations to module description.
4280         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
4281         invocations from here...
4282         * modules/scandir (configure.ac): ... to here.
4283
4284 2011-05-21  Bruno Haible  <bruno@clisp.org>
4285
4286         rpmatch: Move AC_LIBOBJ invocations to module description.
4287         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
4288         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
4289         here...
4290         * modules/rpmatch (configure.ac): ... to here.
4291
4292 2011-05-21  Bruno Haible  <bruno@clisp.org>
4293
4294         rmdir: Respect rules for use of AC_LIBOBJ.
4295         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
4296         * modules/rmdir (configure.ac): ... to here.
4297
4298 2011-05-21  Bruno Haible  <bruno@clisp.org>
4299
4300         renameat: Move AC_LIBOBJ invocations to module description.
4301         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
4302         here...
4303         * modules/renameat (configure.ac): ... to here.
4304
4305 2011-05-21  Bruno Haible  <bruno@clisp.org>
4306
4307         rename: Respect rules for use of AC_LIBOBJ.
4308         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
4309         here...
4310         * modules/rename (configure.ac): ... to here.
4311
4312 2011-05-21  Bruno Haible  <bruno@clisp.org>
4313
4314         remove: Move AC_LIBOBJ invocations to module description.
4315         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
4316         here...
4317         * modules/remove (configure.ac): ... to here.
4318
4319 2011-05-21  Bruno Haible  <bruno@clisp.org>
4320
4321         relocatable-lib: Move AC_LIBOBJ invocations to module description.
4322         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
4323         macro.
4324         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
4325         * modules/relocatable-lib (configure.ac): ... to here.
4326         * modules/relocatable-prog-wrapper (configure.ac): Invoke
4327         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
4328
4329 2011-05-21  Bruno Haible  <bruno@clisp.org>
4330
4331         relocatable-prog: Move AC_LIBOBJ invocations to module description.
4332         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
4333         here...
4334         * modules/relocatable-prog (configure.ac): ... to here.
4335
4336 2011-05-21  Bruno Haible  <bruno@clisp.org>
4337
4338         regex: Move AC_LIBOBJ invocations to module description.
4339         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
4340         invocations from here...
4341         * modules/regex (configure.ac): ... to here.
4342
4343 2011-05-21  Bruno Haible  <bruno@clisp.org>
4344
4345         realloc-*: Move AC_LIBOBJ invocations to module description.
4346         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
4347         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
4348         AC_LIBOBJ invocations from here...
4349         * modules/realloc-gnu (configure.ac): ... to here.
4350         * modules/realloc-posix (configure.ac): ... and here.
4351
4352 2011-05-21  Bruno Haible  <bruno@clisp.org>
4353
4354         readutmp: Move AC_LIBOBJ invocations to module description.
4355         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
4356         * modules/readutmp (configure.ac): ... to here.
4357
4358 2011-05-21  Bruno Haible  <bruno@clisp.org>
4359
4360         readlinkat: Move AC_LIBOBJ invocations to module description.
4361         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
4362         here...
4363         * modules/readlinkat (configure.ac): ... to here.
4364
4365 2011-05-21  Bruno Haible  <bruno@clisp.org>
4366
4367         readlink: Move AC_LIBOBJ invocations to module description.
4368         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
4369         gl_PREREQ_READLINK invocations from here...
4370         * modules/readlink (configure.ac): ... to here.
4371
4372 2011-05-21  Bruno Haible  <bruno@clisp.org>
4373
4374         readline: Move AC_LIBOBJ invocations to module description.
4375         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
4376         gl_PREREQ_READLINE invocations from here...
4377         * modules/readline (configure.ac): ... to here.
4378
4379 2011-05-21  Bruno Haible  <bruno@clisp.org>
4380
4381         read: Move AC_LIBOBJ invocations to module description.
4382         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
4383         * modules/read (configure.ac): ... to here.
4384
4385 2011-05-21  Bruno Haible  <bruno@clisp.org>
4386
4387         rawmemchr: Move AC_LIBOBJ invocations to module description.
4388         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
4389         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
4390         from here...
4391         * modules/rawmemchr (configure.ac): ... to here.
4392
4393 2011-05-21  Bruno Haible  <bruno@clisp.org>
4394
4395         random_r: Move AC_LIBOBJ invocations to module description.
4396         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
4397         gl_PREREQ_RANDOM_R invocations from here...
4398         * modules/random_r (configure.ac): ... to here.
4399
4400 2011-05-21  Bruno Haible  <bruno@clisp.org>
4401
4402         pwrite: Move AC_LIBOBJ invocations to module description.
4403         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
4404         * modules/pwrite (configure.ac): ... to here.
4405
4406 2011-05-21  Bruno Haible  <bruno@clisp.org>
4407
4408         putenv: Move AC_LIBOBJ invocations to module description.
4409         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
4410         * modules/putenv (configure.ac): ... to here.
4411
4412 2011-05-21  Bruno Haible  <bruno@clisp.org>
4413
4414         login_tty: Move AC_LIBOBJ invocations to module description.
4415         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
4416         * modules/login_tty (configure.ac): ... to here.
4417
4418 2011-05-21  Bruno Haible  <bruno@clisp.org>
4419
4420         openpty: Move AC_LIBOBJ invocations to module description.
4421         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
4422         * modules/openpty (configure.ac): ... to here.
4423
4424 2011-05-21  Bruno Haible  <bruno@clisp.org>
4425
4426         forkpty: Move AC_LIBOBJ invocations to module description.
4427         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
4428         * modules/forkpty (configure.ac): ... to here.
4429
4430 2011-05-21  Bruno Haible  <bruno@clisp.org>
4431
4432         ptsname: Move AC_LIBOBJ invocations to module description.
4433         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
4434         invocations from here...
4435         * modules/ptsname (configure.ac): ... to here.
4436
4437 2011-05-21  Bruno Haible  <bruno@clisp.org>
4438
4439         pread: Move AC_LIBOBJ invocations to module description.
4440         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
4441         * modules/pread (configure.ac): ... to here.
4442
4443 2011-05-21  Bruno Haible  <bruno@clisp.org>
4444
4445         posix_spawn*: Move AC_LIBOBJ invocations to module description.
4446         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
4447         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
4448         * modules/posix_spawn (configure.ac): ... to here.
4449         * modules/posix_spawnp (configure.ac): ... and here.
4450
4451 2011-05-21  Bruno Haible  <bruno@clisp.org>
4452
4453         popen: Move AC_LIBOBJ invocations to module description.
4454         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
4455         invocations from here...
4456         * modules/popen (configure.ac): ... to here.
4457
4458 2011-05-21  Bruno Haible  <bruno@clisp.org>
4459
4460         poll: Move AC_LIBOBJ invocations to module description.
4461         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
4462         invocations from here...
4463         * modules/poll (configure.ac): ... to here.
4464
4465 2011-05-21  Bruno Haible  <bruno@clisp.org>
4466
4467         pipe-posix: Move AC_LIBOBJ invocations to module description.
4468         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
4469         * modules/pipe-posix (configure.ac): ... to here.
4470
4471 2011-05-21  Bruno Haible  <bruno@clisp.org>
4472
4473         openat: Respect rules for use of AC_LIBOBJ.
4474         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
4475         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
4476         * modules/openat (configure.ac): ... to here.
4477
4478 2011-05-21  Bruno Haible  <bruno@clisp.org>
4479
4480         obstack-printf*: Move AC_LIBOBJ invocations to module description.
4481         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
4482         invocation from here...
4483         * modules/obstack-printf (configure.ac): ... to here.
4484         * modules/obstack-printf-posix (configure.ac): ... and here.
4485
4486 2011-05-21  Bruno Haible  <bruno@clisp.org>
4487
4488         nl_langinfo: Move AC_LIBOBJ invocations to module description.
4489         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
4490         from here...
4491         * modules/nl_langinfo (configure.ac): ... to here.
4492
4493 2011-05-21  Bruno Haible  <bruno@clisp.org>
4494
4495         nanosleep: Move AC_LIBOBJ invocations to module description.
4496         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
4497         gl_PREREQ_NANOSLEEP invocations from here...
4498         * modules/nanosleep (configure.ac): ... to here.
4499
4500 2011-05-21  Bruno Haible  <bruno@clisp.org>
4501
4502         mountlist: Move AC_LIBOBJ invocations to module description.
4503         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
4504         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
4505         * modules/mountlist (configure.ac): ... to here.
4506
4507 2011-05-21  Bruno Haible  <bruno@clisp.org>
4508
4509         mktime: Respect rules for use of AC_LIBOBJ.
4510         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
4511         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
4512         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
4513         (gl_FUNC_MKTIME_INTERNAL): ... and here...
4514         * modules/mktime (configure.ac): ... to here.
4515         * modules/mktime-internal (configure.ac): ... and here.
4516         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
4517
4518 2011-05-21  Bruno Haible  <bruno@clisp.org>
4519
4520         mkstemps: Move AC_LIBOBJ invocations to module description.
4521         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
4522         here...
4523         * modules/mkstemps (configure.ac): ... to here.
4524
4525 2011-05-21  Bruno Haible  <bruno@clisp.org>
4526
4527         mkstemp: Move AC_LIBOBJ invocations to module description.
4528         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
4529         gl_PREREQ_MKSTEMP invocations from here...
4530         * modules/mkstemp (configure.ac): ... to here.
4531
4532 2011-05-21  Bruno Haible  <bruno@clisp.org>
4533
4534         mkostemps: Move AC_LIBOBJ invocations to module description.
4535         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
4536         here...
4537         * modules/mkostemps (configure.ac): ... to here.
4538
4539 2011-05-21  Bruno Haible  <bruno@clisp.org>
4540
4541         mkostemp: Move AC_LIBOBJ invocations to module description.
4542         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
4543         gl_PREREQ_MKOSTEMP invocations from here...
4544         * modules/mkostemp (configure.ac): ... to here.
4545
4546 2011-05-21  Bruno Haible  <bruno@clisp.org>
4547
4548         mknod: Move AC_LIBOBJ invocations to module description.
4549         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
4550         * modules/mknod (configure.ac): ... to here.
4551
4552 2011-05-21  Bruno Haible  <bruno@clisp.org>
4553
4554         mkfifoat: Move AC_LIBOBJ invocations to module description.
4555         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
4556         here...
4557         * modules/mkfifoat (configure.ac): ... to here.
4558
4559 2011-05-21  Bruno Haible  <bruno@clisp.org>
4560
4561         mkfifo: Respect rules for use of AC_LIBOBJ.
4562         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
4563         here...
4564         * modules/mkfifo (configure.ac): ... to here.
4565
4566 2011-05-21  Bruno Haible  <bruno@clisp.org>
4567
4568         mkdtemp: Move AC_LIBOBJ invocations to module description.
4569         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
4570         invocations from here...
4571         * modules/mkdtemp (configure.ac): ... to here.
4572
4573 2011-05-21  Bruno Haible  <bruno@clisp.org>
4574
4575         mkdir: Move AC_LIBOBJ invocations to module description.
4576         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
4577         * modules/mkdir (configure.ac): ... to here.
4578
4579 2011-05-21  Bruno Haible  <bruno@clisp.org>
4580
4581         memset: Move AC_LIBOBJ invocations to module description.
4582         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
4583         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
4584         here...
4585         * modules/memset (configure.ac): ... to here.
4586
4587 2011-05-21  Bruno Haible  <bruno@clisp.org>
4588
4589         memrchr: Move AC_LIBOBJ invocations to module description.
4590         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
4591         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
4592         here...
4593         * modules/memrchr (configure.ac): ... to here.
4594
4595 2011-05-21  Bruno Haible  <bruno@clisp.org>
4596
4597         mempcpy: Move AC_LIBOBJ invocations to module description.
4598         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
4599         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
4600         here...
4601         * modules/mempcpy (configure.ac): ... to here.
4602
4603 2011-05-21  Bruno Haible  <bruno@clisp.org>
4604
4605         memmove: Move AC_LIBOBJ invocations to module description.
4606         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
4607         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
4608         here...
4609         * modules/memmove (configure.ac): ... to here.
4610
4611 2011-05-21  Bruno Haible  <bruno@clisp.org>
4612
4613         memmem*: Move AC_LIBOBJ invocations to module description.
4614         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
4615         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
4616         here...
4617         (gl_FUNC_MEMMEM): ... and here...
4618         * modules/memmem-simple (configure.ac): ... to here.
4619         * modules/memmem (configure.ac): ... and here.
4620
4621 2011-05-21  Bruno Haible  <bruno@clisp.org>
4622
4623         memcpy: Move AC_LIBOBJ invocations to module description.
4624         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
4625         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
4626         here...
4627         * modules/memcpy (configure.ac): ... to here.
4628
4629 2011-05-21  Bruno Haible  <bruno@clisp.org>
4630
4631         memcmp: Simplify autoconf macro.
4632         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
4633         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
4634         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
4635
4636 2011-05-21  Bruno Haible  <bruno@clisp.org>
4637
4638         memcmp: Move AC_LIBOBJ invocations to module description.
4639         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
4640         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
4641         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
4642         * modules/memcmp (configure.ac): ... to here.
4643         (Depends-on): Update conditions.
4644
4645 2011-05-21  Bruno Haible  <bruno@clisp.org>
4646
4647         memchr: Respect rules for use of AC_LIBOBJ.
4648         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
4649         invocations from here...
4650         * modules/memchr (configure.ac): ... to here.
4651
4652 2011-05-21  Bruno Haible  <bruno@clisp.org>
4653
4654         mbtowc: Move AC_LIBOBJ invocations to module description.
4655         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
4656         invocations from here...
4657         * modules/mbtowc (configure.ac): ... to here.
4658
4659 2011-05-21  Bruno Haible  <bruno@clisp.org>
4660
4661         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
4662         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
4663         gl_PREREQ_MBSRTOWCS invocations from here...
4664         * modules/mbsrtowcs (configure.ac): ... to here.
4665
4666 2011-05-21  Bruno Haible  <bruno@clisp.org>
4667
4668         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
4669         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
4670         gl_PREREQ_MBSNRTOWCS invocations from here...
4671         * modules/mbsnrtowcs (configure.ac): ... to here.
4672
4673 2011-05-21  Bruno Haible  <bruno@clisp.org>
4674
4675         mbsinit: Move AC_LIBOBJ invocations to module description.
4676         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
4677         invocations from here...
4678         * modules/mbsinit (configure.ac): ... to here.
4679
4680 2011-05-21  Bruno Haible  <bruno@clisp.org>
4681
4682         mbrlen: Move AC_LIBOBJ invocations to module description.
4683         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
4684         invocations from here...
4685         * modules/mbrlen (configure.ac): ... to here.
4686
4687 2011-05-21  Bruno Haible  <bruno@clisp.org>
4688
4689         mbrtowc: Respect rules for use of AC_LIBOBJ.
4690         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
4691         invocations from here...
4692         * modules/mbrtowc (configure.ac): ... to here.
4693
4694 2011-05-21  Bruno Haible  <bruno@clisp.org>
4695
4696         malloc-*: Move AC_LIBOBJ invocations to module description.
4697         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
4698         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
4699         AC_LIBOBJ invocations from here...
4700         * modules/malloc-gnu (configure.ac): ... to here.
4701         * modules/malloc-posix (configure.ac): ... and here.
4702
4703 2011-05-21  Bruno Haible  <bruno@clisp.org>
4704
4705         lstat, openat: Respect rules for use of AC_LIBOBJ.
4706         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
4707         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
4708         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
4709         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
4710         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
4711         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
4712         here.
4713         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
4714
4715 2011-05-21  Bruno Haible  <bruno@clisp.org>
4716
4717         lseek: Move AC_LIBOBJ invocations to module description.
4718         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
4719         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
4720         * modules/lseek (configure.ac): ... to here.
4721
4722 2011-05-21  Bruno Haible  <bruno@clisp.org>
4723
4724         linkat: Move AC_LIBOBJ invocations to module description.
4725         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
4726         here...
4727         * modules/linkat (configure.ac): ... to here.
4728
4729 2011-05-21  Bruno Haible  <bruno@clisp.org>
4730
4731         link: Respect rules for use of AC_LIBOBJ.
4732         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
4733         * modules/link (configure.ac): ... to here.
4734
4735 2011-05-21  Bruno Haible  <bruno@clisp.org>
4736
4737         lchown: Move AC_LIBOBJ invocations to module description.
4738         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
4739         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
4740         * modules/lchown (configure.ac): ... to here.
4741
4742 2011-05-21  Bruno Haible  <bruno@clisp.org>
4743
4744         iswctype: Move AC_LIBOBJ invocations to module description.
4745         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
4746         here...
4747         * modules/iswctype (configure.ac): ... to here.
4748
4749 2011-05-21  Bruno Haible  <bruno@clisp.org>
4750
4751         iswblank: Move AC_LIBOBJ invocations to module description.
4752         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
4753         here...
4754         * modules/iswblank (configure.ac): ... to here.
4755
4756 2011-05-21  Bruno Haible  <bruno@clisp.org>
4757
4758         atanl: Move AC_LIBOBJ invocations to module description.
4759         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
4760         * modules/atanl (configure.ac): ... to here.
4761
4762 2011-05-21  Bruno Haible  <bruno@clisp.org>
4763
4764         acosl: Move AC_LIBOBJ invocations to module description.
4765         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
4766         * modules/acosl (configure.ac): ... to here.
4767
4768 2011-05-21  Bruno Haible  <bruno@clisp.org>
4769
4770         asinl: Respect rules for use of AC_LIBOBJ.
4771         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
4772         * modules/asinl (configure.ac): ... to here.
4773
4774 2011-05-21  Bruno Haible  <bruno@clisp.org>
4775
4776         tanl: Move AC_LIBOBJ invocations to module description.
4777         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
4778         * modules/tanl (configure.ac): ... to here.
4779
4780 2011-05-21  Bruno Haible  <bruno@clisp.org>
4781
4782         cosl: Move AC_LIBOBJ invocations to module description.
4783         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
4784         * modules/cosl (configure.ac): ... to here.
4785
4786 2011-05-21  Bruno Haible  <bruno@clisp.org>
4787
4788         sinl: Move AC_LIBOBJ invocations to module description.
4789         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
4790         * modules/sinl (configure.ac): ... to here.
4791
4792 2011-05-21  Bruno Haible  <bruno@clisp.org>
4793
4794         logl: Move AC_LIBOBJ invocations to module description.
4795         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
4796         * modules/logl (configure.ac): ... to here.
4797
4798 2011-05-21  Bruno Haible  <bruno@clisp.org>
4799
4800         expl: Move AC_LIBOBJ invocations to module description.
4801         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
4802         * modules/expl (configure.ac): ... to here.
4803
4804 2011-05-21  Bruno Haible  <bruno@clisp.org>
4805
4806         roundl: Move AC_LIBOBJ invocations to module description.
4807         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
4808         * modules/roundl (configure.ac): ... to here.
4809
4810 2011-05-21  Bruno Haible  <bruno@clisp.org>
4811
4812         round: Move AC_LIBOBJ invocations to module description.
4813         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
4814         * modules/round (configure.ac): ... to here.
4815
4816 2011-05-21  Bruno Haible  <bruno@clisp.org>
4817
4818         roundf: Move AC_LIBOBJ invocations to module description.
4819         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
4820         * modules/roundf (configure.ac): ... to here.
4821
4822 2011-05-21  Bruno Haible  <bruno@clisp.org>
4823
4824         truncl: Move AC_LIBOBJ invocations to module description.
4825         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
4826         * modules/truncl (configure.ac): ... to here.
4827
4828 2011-05-21  Bruno Haible  <bruno@clisp.org>
4829
4830         trunc: Move AC_LIBOBJ invocations to module description.
4831         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
4832         * modules/trunc (configure.ac): ... to here.
4833
4834 2011-05-21  Bruno Haible  <bruno@clisp.org>
4835
4836         truncf: Move AC_LIBOBJ invocations to module description.
4837         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
4838         * modules/truncf (configure.ac): ... to here.
4839
4840 2011-05-21  Bruno Haible  <bruno@clisp.org>
4841
4842         ceill: Move AC_LIBOBJ invocations to module description.
4843         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
4844         * modules/ceill (configure.ac): ... to here.
4845
4846 2011-05-21  Bruno Haible  <bruno@clisp.org>
4847
4848         ceil: Move AC_LIBOBJ invocations to module description.
4849         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
4850         * modules/ceil (configure.ac): ... to here.
4851
4852 2011-05-21  Bruno Haible  <bruno@clisp.org>
4853
4854         ceilf: Move AC_LIBOBJ invocations to module description.
4855         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
4856         * modules/ceilf (configure.ac): ... to here.
4857
4858 2011-05-21  Bruno Haible  <bruno@clisp.org>
4859
4860         floorl: Respect rules for use of AC_LIBOBJ.
4861         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
4862         * modules/floorl (configure.ac): ... to here.
4863
4864 2011-05-21  Bruno Haible  <bruno@clisp.org>
4865
4866         floor: Respect rules for use of AC_LIBOBJ.
4867         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
4868         * modules/floor (configure.ac): ... to here.
4869
4870 2011-05-21  Bruno Haible  <bruno@clisp.org>
4871
4872         floorf: Move AC_LIBOBJ invocations to module description.
4873         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
4874         * modules/floorf (configure.ac): ... to here.
4875
4876 2011-05-20  Bruno Haible  <bruno@clisp.org>
4877
4878         sqrtl: Respect rules for use of AC_LIBOBJ.
4879         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
4880         * modules/sqrtl (configure.ac): ... to here.
4881
4882 2011-05-20  Bruno Haible  <bruno@clisp.org>
4883
4884         ldexpl: Respect rules for use of AC_LIBOBJ.
4885         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
4886         * modules/ldexpl (configure.ac): ... to here.
4887
4888 2011-05-20  Bruno Haible  <bruno@clisp.org>
4889
4890         frexpl*: Respect rules for use of AC_LIBOBJ.
4891         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
4892         invocation from here...
4893         * modules/frexpl (configure.ac): ... to here.
4894         * modules/frexpl-nolibm (configure.ac): ... and here.
4895
4896 2011-05-20  Bruno Haible  <bruno@clisp.org>
4897
4898         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
4899         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
4900         invocation from here...
4901         * modules/frexp (configure.ac): ... to here.
4902         * modules/frexp-nolibm (configure.ac): ... and here.
4903
4904 2011-05-20  Bruno Haible  <bruno@clisp.org>
4905
4906         isnan: Respect rules for use of AC_LIBOBJ.
4907         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
4908         invocations here.
4909         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
4910         REPLACE_ISNAN.
4911         * modules/isnand (configure.ac): Likewise.
4912         * modules/isnanl (configure.ac): Likewise.
4913
4914 2011-05-20  Bruno Haible  <bruno@clisp.org>
4915
4916         isnanl*: Respect rules for use of AC_LIBOBJ.
4917         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
4918         invocation from here...
4919         * modules/isnanl (configure.ac): ... to here.
4920         * modules/isnanl-nolibm (configure.ac): ... and here.
4921
4922 2011-05-20  Bruno Haible  <bruno@clisp.org>
4923
4924         isnand*: Move AC_LIBOBJ invocations to module description.
4925         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
4926         invocation from here...
4927         * modules/isnand (configure.ac): ... to here.
4928         * modules/isnand-nolibm (configure.ac): ... and here.
4929
4930 2011-05-20  Bruno Haible  <bruno@clisp.org>
4931
4932         isnanf*: Move AC_LIBOBJ invocations to module description.
4933         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
4934         invocation from here...
4935         * modules/isnanf (configure.ac): ... to here.
4936         * modules/isnanf-nolibm (configure.ac): ... and here.
4937
4938 2011-05-20  Bruno Haible  <bruno@clisp.org>
4939
4940         isnan*: Separate the AC_LIBOBJ invocations.
4941         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
4942         AC_LIBOBJ invocation.
4943         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
4944         here.
4945         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
4946         AC_LIBOBJ invocation.
4947         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
4948         here.
4949         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
4950         AC_LIBOBJ invocation.
4951         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
4952         here.
4953         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
4954
4955 2011-05-08  Bruno Haible  <bruno@clisp.org>
4956
4957         isinf: Move AC_LIBOBJ invocations to module description.
4958         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
4959         * modules/isinf (configure.ac): ... to here.
4960
4961 2011-05-08  Bruno Haible  <bruno@clisp.org>
4962
4963         isfinite: Move AC_LIBOBJ invocations to module description.
4964         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
4965         * modules/isfinite (configure.ac): ... to here.
4966
4967 2011-05-08  Bruno Haible  <bruno@clisp.org>
4968
4969         isblank: Move AC_LIBOBJ invocations to module description.
4970         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
4971         here...
4972         * modules/isblank (configure.ac): ... to here.
4973
4974 2011-05-08  Bruno Haible  <bruno@clisp.org>
4975
4976         isapipe: Move AC_LIBOBJ invocations to module description.
4977         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
4978         gl_PREREQ_ISAPIPE invocations from here...
4979         * modules/isapipe (configure.ac): ... to here.
4980         (Depends-on): Update condition.
4981
4982 2011-05-08  Bruno Haible  <bruno@clisp.org>
4983
4984         ioctl: Move AC_LIBOBJ invocations to module description.
4985         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
4986         invocations from here...
4987         * modules/ioctl (configure.ac): ... to here.
4988         (Depends-on): Update condition.
4989
4990 2011-05-08  Bruno Haible  <bruno@clisp.org>
4991
4992         imaxdiv: Move AC_LIBOBJ invocations to module description.
4993         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
4994         invocations from here...
4995         * modules/imaxdiv (configure.ac): ... to here.
4996
4997 2011-05-08  Bruno Haible  <bruno@clisp.org>
4998
4999         imaxabs: Move AC_LIBOBJ invocations to module description.
5000         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
5001         invocations from here...
5002         * modules/imaxabs (configure.ac): ... to here.
5003
5004 2011-05-08  Bruno Haible  <bruno@clisp.org>
5005
5006         getaddrinfo: Move AC_LIBOBJ invocations to module description.
5007         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
5008         AC_LIBOBJ invocations from here...
5009         * modules/getaddrinfo (configure.ac): ... to here.
5010         (Depends-on): Add conditions.
5011
5012 2011-05-08  Bruno Haible  <bruno@clisp.org>
5013
5014         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
5015         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
5016         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
5017         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
5018         (gl_PREREQ_INET_PTON): ... from here.
5019         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
5020         gl_PREREQ_INET_PTON here.
5021         (Depends-on): Update condition.
5022
5023 2011-05-08  Bruno Haible  <bruno@clisp.org>
5024
5025         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
5026         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
5027         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
5028         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
5029         (gl_PREREQ_INET_NTOP): ... from here.
5030         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
5031         gl_PREREQ_INET_NTOP here.
5032         (Depends-on): Update condition.
5033
5034 2011-05-08  Bruno Haible  <bruno@clisp.org>
5035
5036         iconv_open: Move AC_LIBOBJ invocations to module description.
5037         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
5038         AC_LIBOBJ invocations from here...
5039         * modules/iconv_open (configure.ac): ... to here.
5040
5041 2011-05-08  Bruno Haible  <bruno@clisp.org>
5042
5043         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
5044         If module 'iconv_open' is among the main modules and module
5045         'iconv_open-utf' is among the tests dependencies, then
5046         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
5047         return the special iconv_t values. Therefore iconv() and iconv_close()
5048         must support these special iconv_t values, already in lib, not only in
5049         tests.
5050         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
5051         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
5052         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
5053         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
5054         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
5055         (Depends-on): Add the dependencies of iconv_open-utf.
5056         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
5057         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
5058         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
5059
5060 2011-05-08  Bruno Haible  <bruno@clisp.org>
5061
5062         group-member: Move AC_LIBOBJ invocations to module description.
5063         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
5064         gl_PREREQ_GROUP_MEMBER invocations from here...
5065         * modules/group-member (configure.ac): ... to here.
5066
5067 2011-05-08  Bruno Haible  <bruno@clisp.org>
5068
5069         grantpt: Move AC_LIBOBJ invocations to module description.
5070         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
5071         invocations from here...
5072         * modules/grantpt (configure.ac): ... to here.
5073
5074 2011-05-08  Bruno Haible  <bruno@clisp.org>
5075
5076         glob: Move AC_LIBOBJ invocations to module description.
5077         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
5078         from here...
5079         * modules/glob (configure.ac): ... to here.
5080
5081 2011-05-08  Bruno Haible  <bruno@clisp.org>
5082
5083         getusershell: Move AC_LIBOBJ invocations to module description.
5084         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
5085         Move AC_LIBOBJ invocation from here...
5086         * modules/getusershell (configure.ac): ... to here.
5087         (Depends-on): Update condition.
5088
5089 2011-05-08  Bruno Haible  <bruno@clisp.org>
5090
5091         gettimeofday: Move AC_LIBOBJ invocations to module description.
5092         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
5093         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
5094         gl_PREREQ_GETTIMEOFDAY invocations from here...
5095         * modules/gettimeofday (configure.ac): ... to here.
5096
5097 2011-05-08  Bruno Haible  <bruno@clisp.org>
5098
5099         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
5100         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
5101         just gl_FUNC_TZSET.
5102         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
5103         (gl_FUNC_TZSET_CLOBBER): Remove actions.
5104         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
5105         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
5106
5107 2011-05-08  Bruno Haible  <bruno@clisp.org>
5108
5109         getsubopt: Move AC_LIBOBJ invocations to module description.
5110         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
5111         gl_PREREQ_GETSUBOPT invocations from here...
5112         * modules/getsubopt (configure.ac): ... to here.
5113
5114 2011-05-08  Bruno Haible  <bruno@clisp.org>
5115
5116         getpass-gnu: Move AC_LIBOBJ invocations to module description.
5117         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
5118         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
5119         * modules/getpass-gnu (configure.ac): ... to here.
5120
5121 2011-05-08  Bruno Haible  <bruno@clisp.org>
5122
5123         getpass: Move AC_LIBOBJ invocations to module description.
5124         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
5125         gl_PREREQ_GETPASS invocations from here...
5126         * modules/getpass (configure.ac): ... to here.
5127
5128 2011-05-08  Bruno Haible  <bruno@clisp.org>
5129
5130         getpagesize: Move AC_LIBOBJ invocations to module description.
5131         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
5132         from here...
5133         * modules/getpagesize (configure.ac): ... to here.
5134
5135 2011-05-08  Bruno Haible  <bruno@clisp.org>
5136
5137         getopt: Move AC_LIBOBJ invocations to module description.
5138         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
5139         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
5140         invocations from here...
5141         * modules/getopt-gnu (configure.ac): ... to here.
5142         * modules/getopt-posix (configure.ac): ... and here.
5143         (Depends-on): Update condition.
5144
5145 2011-05-08  Bruno Haible  <bruno@clisp.org>
5146
5147         getopt, argp: Respect rules for use of AC_LIBOBJ.
5148         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
5149         (gl_REPLACE_GETOPT_ALWAYS): New macro.
5150         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
5151         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
5152
5153 2011-05-08  Bruno Haible  <bruno@clisp.org>
5154
5155         getlogin_r: Move AC_LIBOBJ invocations to module description.
5156         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
5157         gl_PREREQ_GETLOGIN_R invocations from here...
5158         * modules/getlogin_r (configure.ac): ... to here.
5159
5160 2011-05-08  Bruno Haible  <bruno@clisp.org>
5161
5162         getlogin: Move AC_LIBOBJ invocations to module description.
5163         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
5164         here...
5165         * modules/getlogin (configure.ac): ... to here.
5166
5167 2011-05-08  Bruno Haible  <bruno@clisp.org>
5168
5169         getloadavg: Move AC_LIBOBJ invocations to module description.
5170         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
5171         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
5172         * modules/getloadavg (configure.ac): ... to here.
5173
5174 2011-05-08  Bruno Haible  <bruno@clisp.org>
5175
5176         gethrxtime: Move AC_LIBOBJ invocations to module description.
5177         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
5178         LIB_GETHRXTIME from here...
5179         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
5180         invocations from here...
5181         * modules/gethrxtime (configure.ac): ... to here.
5182
5183 2011-05-08  Bruno Haible  <bruno@clisp.org>
5184
5185         gethostname: Move AC_LIBOBJ invocations to module description.
5186         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
5187         gl_PREREQ_GETHOSTNAME invocations from here...
5188         * modules/gethostname (configure.ac): ... to here.
5189
5190 2011-05-08  Bruno Haible  <bruno@clisp.org>
5191
5192         getgroups: Move AC_LIBOBJ invocations to module description.
5193         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
5194         here...
5195         * modules/getgroups (configure.ac): ... to here.
5196
5197 2011-05-08  Bruno Haible  <bruno@clisp.org>
5198
5199         getdtablesize: Move AC_LIBOBJ invocations to module description.
5200         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
5201         invocation from here...
5202         * modules/getdtablesize (configure.ac): ... to here.
5203
5204 2011-05-08  Bruno Haible  <bruno@clisp.org>
5205
5206         getdomainname: Move AC_LIBOBJ invocations to module description.
5207         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
5208         gl_PREREQ_GETDOMAINNAME invocations from here...
5209         * modules/getdomainname (configure.ac): ... to here.
5210
5211 2011-05-08  Bruno Haible  <bruno@clisp.org>
5212
5213         getline: Move AC_LIBOBJ invocations to module description.
5214         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
5215         invocations from here...
5216         * modules/getline (configure.ac): ... to here.
5217
5218 2011-05-08  Bruno Haible  <bruno@clisp.org>
5219
5220         getline: Simplify.
5221         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
5222         It's already handled through the module dependency.
5223
5224 2011-05-08  Bruno Haible  <bruno@clisp.org>
5225
5226         getdelim: Move AC_LIBOBJ invocations to module description.
5227         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
5228         and gl_PREREQ_GETDELIM invocations from here...
5229         * modules/getdelim (configure.ac): ... to here.
5230         (Depends-on): Fix condition.
5231
5232 2011-05-08  Bruno Haible  <bruno@clisp.org>
5233
5234         getcwd: Move AC_LIBOBJ invocations to module description.
5235         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
5236         invocations from here...
5237         * modules/getcwd (configure.ac): ... to here.
5238
5239 2011-05-08  Bruno Haible  <bruno@clisp.org>
5240
5241         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
5242         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
5243         here...
5244         * modules/getcwd-lgpl (configure.ac): ... to here.
5245
5246 2011-05-07  Bruno Haible  <bruno@clisp.org>
5247
5248         crypto/gc: Move AC_LIBOBJ invocations to module description.
5249         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
5250         * modules/crypto/gc (configure.ac): ... to here.
5251
5252 2011-05-07  Bruno Haible  <bruno@clisp.org>
5253
5254         fwriting: Move AC_LIBOBJ invocations to module description.
5255         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
5256         here...
5257         * modules/fwriting (configure.ac): ... to here.
5258
5259 2011-05-07  Bruno Haible  <bruno@clisp.org>
5260
5261         fwritable: Move AC_LIBOBJ invocations to module description.
5262         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
5263         here...
5264         * modules/fwritable (configure.ac): ... to here.
5265
5266 2011-05-07  Bruno Haible  <bruno@clisp.org>
5267
5268         futimens: Move AC_LIBOBJ invocations to module description.
5269         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
5270         here...
5271         * modules/futimens (configure.ac): ... to here.
5272
5273 2011-05-07  Bruno Haible  <bruno@clisp.org>
5274
5275         ftruncate: Move AC_LIBOBJ invocations to module description.
5276         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
5277         gl_PREREQ_FTRUNCATE invocations from here...
5278         * modules/ftruncate (configure.ac): ... to here.
5279
5280 2011-05-07  Bruno Haible  <bruno@clisp.org>
5281
5282         fsync: Move AC_LIBOBJ invocations to module description.
5283         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
5284         invocations from here...
5285         * modules/fsync (configure.ac): ... to here.
5286
5287 2011-05-07  Bruno Haible  <bruno@clisp.org>
5288
5289         fsusage: Move AC_LIBOBJ invocations to module description.
5290         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
5291         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
5292         * modules/fsusage (configure.ac): ... to here.
5293
5294 2011-05-07  Bruno Haible  <bruno@clisp.org>
5295
5296         freopen: Move AC_LIBOBJ invocations to module description.
5297         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
5298         invocations from here...
5299         * modules/freopen (configure.ac): ... to here.
5300
5301 2011-05-07  Bruno Haible  <bruno@clisp.org>
5302
5303         free: Move AC_LIBOBJ invocations to module description.
5304         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
5305         invocations from here...
5306         * modules/free (configure.ac): ... to here.
5307
5308 2011-05-07  Bruno Haible  <bruno@clisp.org>
5309
5310         freadable: Move AC_LIBOBJ invocations to module description.
5311         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
5312         here...
5313         * modules/freadable (configure.ac): ... to here.
5314
5315 2011-05-07  Bruno Haible  <bruno@clisp.org>
5316
5317         fpurge: Move AC_LIBOBJ invocations to module description.
5318         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
5319         invocations from here...
5320         * modules/fpurge (configure.ac): ... to here.
5321
5322 2011-05-07  Bruno Haible  <bruno@clisp.org>
5323
5324         fpending: Move AC_LIBOBJ invocations to module description.
5325         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
5326         gl_FUNC_FPENDING.
5327         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
5328         invocations from here...
5329         * modules/fpending (configure.ac): ... to here.
5330
5331 2011-05-07  Bruno Haible  <bruno@clisp.org>
5332
5333         fopen: Move AC_LIBOBJ invocations to module description.
5334         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
5335         invocations from here...
5336         * modules/fopen (configure.ac): ... to here.
5337
5338 2011-05-07  Bruno Haible  <bruno@clisp.org>
5339
5340         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
5341         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
5342         gl_FUNC_FNMATCH_POSIX.
5343         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
5344         invocations from here...
5345         * modules/fnmatch (configure.ac): ... to here.
5346         * modules/fnmatch-gnu (configure.ac): ... and here.
5347
5348 2011-05-07  Bruno Haible  <bruno@clisp.org>
5349
5350         flock: Move AC_LIBOBJ invocations to module description.
5351         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
5352         invocations from here...
5353         * modules/flock (configure.ac): ... to here.
5354
5355 2011-05-07  Bruno Haible  <bruno@clisp.org>
5356
5357         fileblocks: Move AC_LIBOBJ invocations to module description.
5358         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
5359         gl_PREREQ_FILEBLOCKS invocations from here...
5360         * modules/fileblocks (configure.ac): ... to here.
5361
5362 2011-05-06  Bruno Haible  <bruno@clisp.org>
5363
5364         fflush: Move AC_LIBOBJ invocations to module description.
5365         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
5366         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
5367         invocations from here...
5368         * modules/fflush (configure.ac): ... to here.
5369
5370 2011-05-06  Bruno Haible  <bruno@clisp.org>
5371
5372         fdopendir: Move AC_LIBOBJ invocations to module description.
5373         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
5374         here...
5375         * modules/fdopendir (configure.ac): ... to here.
5376         (Depends-on): Improve conditions.
5377
5378 2011-05-06  Bruno Haible  <bruno@clisp.org>
5379
5380         _Exit: Move AC_LIBOBJ invocations to module description.
5381         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
5382         invocations from here...
5383         * modules/_Exit (configure.ac): ... to here.
5384
5385 2011-05-21  Bruno Haible  <bruno@clisp.org>
5386
5387         euidaccess: Respect rules for use of AC_LIBOBJ.
5388         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
5389         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
5390         from here...
5391         * modules/euidaccess (configure.ac): ... to here.
5392
5393 2011-05-06  Bruno Haible  <bruno@clisp.org>
5394
5395         error: Move AC_LIBOBJ invocations to module description.
5396         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
5397         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
5398         invocations from here...
5399         * modules/error (configure.ac): ... to here.
5400
5401 2011-05-06  Bruno Haible  <bruno@clisp.org>
5402
5403         duplocale: Move AC_LIBOBJ invocations to module description.
5404         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
5405         gl_PREREQ_DUPLOCALE invocations from here...
5406         * modules/duplocale (configure.ac): ... to here.
5407
5408 2011-05-05  Bruno Haible  <bruno@clisp.org>
5409
5410         dirfd: Move AC_LIBOBJ invocations to module description.
5411         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
5412         gl_FUNC_DIRFD.
5413         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
5414         here...
5415         * modules/dirfd (configure.ac): ... to here.
5416         (Depends-on): Fix condition.
5417
5418 2011-05-05  Bruno Haible  <bruno@clisp.org>
5419
5420         chown: Respect rules for use of AC_LIBOBJ.
5421         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
5422         * modules/chown (configure.ac): ... to here.
5423
5424 2011-05-05  Bruno Haible  <bruno@clisp.org>
5425
5426         chdir-long: Move AC_LIBOBJ invocations to module description.
5427         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
5428         gl_PREREQ_CHDIR_LONG invocations from here...
5429         * modules/chdir-long (configure.ac): ... to here.
5430
5431 2011-05-05  Bruno Haible  <bruno@clisp.org>
5432
5433         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
5434         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
5435         from here...
5436         * modules/canonicalize-lgpl (configure.ac): ... to here.
5437
5438 2011-05-05  Bruno Haible  <bruno@clisp.org>
5439
5440         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
5441         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
5442         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
5443         REPLACE_CALLOC.
5444         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
5445         * modules/calloc-gnu (configure.ac): Likewise.
5446
5447 2011-05-05  Bruno Haible  <bruno@clisp.org>
5448
5449         btowc: Move AC_LIBOBJ invocations to module description.
5450         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
5451         invocations from here...
5452         * modules/btowc (configure.ac): ... to here.
5453
5454 2011-05-21  Bruno Haible  <bruno@clisp.org>
5455
5456         atexit: Move AC_LIBOBJ invocations to module description.
5457         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
5458         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
5459         here...
5460         * modules/atexit (configure.ac): ... to here.
5461
5462 2011-05-05  Bruno Haible  <bruno@clisp.org>
5463
5464         atoll: Move AC_LIBOBJ invocations to module description.
5465         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
5466         invocations from here...
5467         * modules/atoll (configure.ac): ... to here.
5468
5469 2011-05-05  Bruno Haible  <bruno@clisp.org>
5470
5471         argz: Move AC_LIBOBJ invocations to module description.
5472         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
5473         * modules/argz (configure.ac): ... to here.
5474
5475 2011-05-05  Bruno Haible  <bruno@clisp.org>
5476
5477         alphasort: Move AC_LIBOBJ invocations to module description.
5478         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
5479         gl_PREREQ_ALPHASORT invocations from here...
5480         * modules/alphasort (configure.ac): ... to here.
5481
5482 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
5483
5484         verify: new macro verify_expr; verify_true deprecated
5485         * NEWS: Mention this.
5486         * doc/verify.texi (Compile-time Assertions): Document this.
5487         * lib/verify.h (verify_true): Deprecate.
5488         (verify_expr): New macro.
5489         * tests/test-verify.c (function): Test verify_expr.
5490
5491 2011-06-14  Jim Meyering  <meyering@redhat.com>
5492
5493         init.sh: give more portable redirection-related advice in a comment
5494         * tests/init.sh (stderr_fileno_): Update the advice in comments.
5495         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
5496         for lots of discussion.  Stefano Lattarini suggested the solution
5497         of putting "9>&2" after the command.  Reported by Bruno Haible.
5498
5499 2011-06-13  Bruno Haible  <bruno@clisp.org>
5500
5501         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
5502         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
5503         'none'.
5504
5505 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
5506
5507         ftoastr: use strtof only if HAVE_STRTOF
5508         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
5509         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
5510         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
5511         * modules/ftoastr (configure.ac): Check for strtof.
5512
5513 2011-06-13  Bruno Haible  <bruno@clisp.org>
5514
5515         gnulib-tool: Addendum to 2011-06-08 commit.
5516         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
5517         and --witness-c-macro have been given, augment AM_CPPFLAGS.
5518
5519 2011-06-13  Bruno Haible  <bruno@clisp.org>
5520
5521         fseeko: Provide a non-inline replacement of fseek().
5522         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
5523         * modules/fseeko (Depends-on): Add fseek.
5524         * modules/fseek (License): Change to LGPLv2+.
5525
5526 2011-06-13  Bruno Haible  <bruno@clisp.org>
5527
5528         ftello: Provide a non-inline replacement of ftell().
5529         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
5530         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
5531         not have ftello() (such as on mingw).
5532         * modules/ftello (Depends-on): Add ftell.
5533         * modules/ftell (License): Change to LGPLv2+.
5534
5535 2011-05-07  Bruno Haible  <bruno@clisp.org>
5536
5537         ftell: Move AC_LIBOBJ invocations to module description.
5538         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
5539         * modules/ftell (configure.ac): ... to here.
5540
5541 2011-05-07  Bruno Haible  <bruno@clisp.org>
5542
5543         ftello: Respect rules for use of AC_LIBOBJ.
5544         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
5545         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
5546         here...
5547         * modules/ftello (configure.ac): ... to here.
5548
5549 2011-05-07  Bruno Haible  <bruno@clisp.org>
5550
5551         fseeko: Simplify.
5552         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
5553         (gl_FUNC_FSEEKO): Inline it here.
5554
5555 2011-05-07  Bruno Haible  <bruno@clisp.org>
5556
5557         fseek: Move AC_LIBOBJ invocations to module description.
5558         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
5559         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
5560         * modules/fseek (configure.ac): ... to here.
5561
5562 2011-05-07  Bruno Haible  <bruno@clisp.org>
5563
5564         fseek: Respect rules for use of AC_LIBOBJ.
5565         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
5566         here...
5567         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
5568
5569 2011-05-07  Bruno Haible  <bruno@clisp.org>
5570
5571         fseeko: Respect rules for use of AC_LIBOBJ.
5572         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
5573         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
5574         here...
5575         * modules/fseeko (configure.ac): ... to here.
5576
5577 2011-06-13  Bruno Haible  <bruno@clisp.org>
5578
5579         gnulib-tool: Allow comments in the 'Depends-on' section.
5580         * doc/gnulib.texi (Module description): Mention comment syntax in the
5581         Depends-on section.
5582         * gnulib-tool (func_get_dependencies): Filter out comment lines.
5583
5584 2011-06-13  Bruno Haible  <bruno@clisp.org>
5585
5586         file-set.h: guard __attibute__ use, now that it's not always defined
5587         * lib/file-set.h (record_file): Use __attribute__ only with compiler
5588         versions that support it.  This fixes a coreutils build failure with
5589         the vendor cc on HP-UX 11.31.
5590
5591 2011-06-12  Bruno Haible  <bruno@clisp.org>
5592
5593         acl: Add support for HP-UX >= 11.11 JFS ACLs.
5594         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
5595         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
5596         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
5597         (acl, aclsort): New declarations.
5598         (aclv_nontrivial): New declaration.
5599         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
5600         (file_has_acl): Read also the second kind of HP-UX ACLs.
5601         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
5602         kind of HP-UX ACLs if the first kind fails.
5603         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
5604         second kind of HP-UX ACLs.
5605         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
5606         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
5607         agree.
5608         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
5609         hpuxjfs.
5610         Handle hpuxjfs.
5611         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
5612         hpuxjfs.
5613         Handle hpuxjfs.
5614         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
5615         (func_test_same_acls): Use both lsacl and getacl.
5616         Handle hpuxjfs.
5617         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
5618         (func_test_same_acls): Use both lsacl and getacl.
5619         Handle hpuxjfs.
5620
5621 2011-06-12  Bruno Haible  <bruno@clisp.org>
5622
5623         acl: Complete the 2010-08-10 fix.
5624         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
5625         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
5626         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
5627         explicitly.
5628         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
5629         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
5630
5631 2011-06-12  Bruno Haible  <bruno@clisp.org>
5632
5633         spawn-pipe tests: Comments.
5634         * tests/test-spawn-pipe-child.c (main): Update comment.
5635         Reported by James Youngman <jay@gnu.org>.
5636
5637 2011-06-11  James Youngman  <jay@gnu.org>
5638
5639         New module 'stat-size'.
5640         * modules/stat-size: New module.  Provides macros for accessing
5641         file size information in instances of struct stat.  Depends on the
5642         fileblocks module because it calls st_blocks.
5643         * lib/stat-size.h: New file, adapted from coreutils' system.h.
5644         * doc/gnulib.texi: Include stat-size.texi.
5645         * doc/stat-size.texi: Documentation for this module.
5646         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
5647         * m4/fileblocks.m4: Mention that stat-size depends on the call to
5648         AC_STRUCT_ST_BLOCKS.
5649
5650 2011-06-09  Bruno Haible  <bruno@clisp.org>
5651
5652         thread: Support pthreads-win32.
5653         * lib/glthread/thread.h (gl_thread_self): Define differently on
5654         pthreads-win32.
5655         (gl_null_thread): New declaration.
5656         (gl_thread_self_pointer): New macro.
5657         * lib/glthread/thread.c (gl_null_thread): New constant.
5658         * tests/test-lock.c: Use gl_thread_self_pointer instead of
5659         gl_thread_self.
5660         * tests/test-tls.c: Likewise.
5661         Suggested by Paul Eggert. Reported by Eric Blake.
5662
5663 2011-06-09  Bruno Haible  <bruno@clisp.org>
5664
5665         thread: Fix confusion between NULL and 0.
5666         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
5667         Reported by Paul Eggert.
5668
5669 2011-06-09  Bruno Haible  <bruno@clisp.org>
5670
5671         spawn-pipe tests: Avoid test failure on HP-UX 11.
5672         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
5673         is closed.
5674
5675 2011-06-09  Bruno Haible  <bruno@clisp.org>
5676
5677         acl tests: Fix compilation error on HP-UX 11.
5678         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
5679
5680 2011-06-09  Bruno Haible  <bruno@clisp.org>
5681
5682         rmdir: Avoid test failure on HP-UX 10.20.
5683         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
5684         EEXIST.
5685
5686 2011-06-08  Eric Blake  <eblake@redhat.com>
5687
5688         perror: fix test on mingw
5689         * modules/perror-tests (Depends-on): Add dup2.
5690
5691         strerror_r-posix: fix on MacOS
5692         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
5693         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
5694         logic bug.
5695         * lib/strerror_r.c (strerror_r): Fix the bug.
5696         * lib/strerror.c (strerror): Likewise.
5697         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
5698         problem.
5699         * doc/posix-functions/strerror.texi (strerror): Likewise.
5700         * doc/posix-functions/perror.texi (perror): Likewise.
5701         * tests/test-strerror.c (main): Enhance test.
5702         * tests/test-strerror_r.c (main): Likewise.
5703
5704 2011-06-08  Bruno Haible  <bruno@clisp.org>
5705
5706         gnulib-tool: Better isolation between different gnulib-tool invocations.
5707         * gnulib-tool: New option --witness-c-macro.
5708         (witness_c_macro): New variable.
5709         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
5710         AM_CPPFLAGS define it as a C macro.
5711         (func_emit_tests_Makefile_am): Likewise.
5712         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
5713         read it from there.
5714         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
5715         m4_define, not AC_DEFUN.
5716         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
5717         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
5718         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
5719         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
5720         s|...|...|, to substitute the values of the GNULIB_* module indicator
5721         variables.
5722         * modules/dirent (Makefile.am): Likewise.
5723         * modules/fcntl-h (Makefile.am): Likewise.
5724         * modules/iconv-h (Makefile.am): Likewise.
5725         * modules/langinfo (Makefile.am): Likewise.
5726         * modules/locale (Makefile.am): Likewise.
5727         * modules/math (Makefile.am): Likewise.
5728         * modules/netdb (Makefile.am): Likewise.
5729         * modules/poll-h (Makefile.am): Likewise.
5730         * modules/pty (Makefile.am): Likewise.
5731         * modules/search (Makefile.am): Likewise.
5732         * modules/signal (Makefile.am): Likewise.
5733         * modules/spawn (Makefile.am): Likewise.
5734         * modules/stdio (Makefile.am): Likewise.
5735         * modules/stdlib (Makefile.am): Likewise.
5736         * modules/string (Makefile.am): Likewise.
5737         * modules/sys_ioctl (Makefile.am): Likewise.
5738         * modules/sys_select (Makefile.am): Likewise.
5739         * modules/sys_socket (Makefile.am): Likewise.
5740         * modules/sys_stat (Makefile.am): Likewise.
5741         * modules/sys_times (Makefile.am): Likewise.
5742         * modules/sys_utsname (Makefile.am): Likewise.
5743         * modules/sys_wait (Makefile.am): Likewise.
5744         * modules/termios (Makefile.am): Likewise.
5745         * modules/time (Makefile.am): Likewise.
5746         * modules/unistd (Makefile.am): Likewise.
5747         * modules/wchar (Makefile.am): Likewise.
5748
5749 2011-06-08  Eric Blake  <eblake@redhat.com>
5750
5751         strerror: simplify replacement
5752         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
5753         * modules/strerror (configure.ac): No prereqs needed here...
5754         * modules/strerror-override (configure.ac): ...but this needs it.
5755         (Files): Add file for needed prereq macro.
5756
5757 2011-06-08  Bruno Haible  <bruno@clisp.org>
5758
5759         strerror_r-posix: Tweaks.
5760         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
5761         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
5762         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
5763         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
5764         (gl_FUNC_STRERROR_R): ... to here.
5765         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
5766
5767 2011-06-07  Eric Blake  <eblake@redhat.com>
5768
5769         perror: document fixed bugs
5770         * doc/posix-functions/perror.texi (perror): Document recent
5771         patches.
5772
5773 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
5774
5775         stat-time: get_stat_birthtime failure is better-defined
5776         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
5777         return a timestamp whose tv_sec and tv_nsec values are both -1.
5778         Previously, the spec said only that the tv_nsec value was negative.
5779         This upward-compatible change simplifies GNU tar a bit.
5780
5781 2011-06-07  Eric Blake  <eblake@redhat.com>
5782
5783         strerror_r-posix: work around cygwin 1.7.9
5784         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
5785         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
5786         bug without replacing strerror_r.
5787         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
5788         strerror_r is buggy, but without requiring strerror_r compilation.
5789         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
5790
5791         test-perror: relax test to ignore cygwin bug
5792         * tests/test-perror2.c (main): Relax test on requiring detection
5793         of stream errors, and use unbuffered stream.
5794         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
5795         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
5796         * doc/posix-functions/fputc.texi (fputc): Likewise.
5797         * doc/posix-functions/fputs.texi (fputs): Likewise.
5798         * doc/posix-functions/fputws.texi (fputws): Likewise.
5799         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
5800         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
5801         * doc/posix-functions/getopt.texi (getopt): Likewise.
5802         * doc/posix-functions/perror.texi (perror): Likewise.
5803         * doc/posix-functions/printf.texi (printf): Likewise.
5804         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
5805         * doc/posix-functions/psignal.texi (psignal): Likewise.
5806         * doc/posix-functions/putc.texi (putc): Likewise.
5807         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
5808         Likewise.
5809         * doc/posix-functions/putchar.texi (putchar): Likewise.
5810         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
5811         Likewise.
5812         * doc/posix-functions/puts.texi (puts): Likewise.
5813         * doc/posix-functions/putwc.texi (putwc): Likewise.
5814         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
5815         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
5816         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
5817         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
5818         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
5819         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
5820         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
5821         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
5822
5823 2011-05-22  Bruno Haible  <bruno@clisp.org>
5824
5825         strerror: Move AC_LIBOBJ invocations to module description.
5826         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
5827         gl_PREREQ_STRERROR invocations from here...
5828         * modules/strerror (configure.ac): ... to here.
5829
5830 2011-05-21  Bruno Haible  <bruno@clisp.org>
5831
5832         perror: Use common idiom.
5833         * modules/perror (configure.ac): Reorder statements.
5834
5835 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
5836
5837         tests: fix usage message in 'mktempd_'
5838         * tests/init.sh (mktempd_): In the usage message, use literal
5839         'mktempd_', not '$ME' (which is even undefined), as the name of
5840         the subroutine.
5841
5842 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
5843
5844         tests init: new function 'fatal_', for hard errors
5845         Before this patch, the only way offered by tests/init.sh to
5846         properly signal a hard error was the `framework_failure_'
5847         function.  But the error message issued by that function,
5848         as its name would suggest, refers to a set-up failure in the
5849         testsuite, while hard errors can obviously also be due to
5850         other reasons.  The best way to fix this inconsistency is to
5851         introduce a new function with a more general error message.
5852         * tests/init.sh (fatal_): New function.
5853
5854 2011-06-06  Eric Blake  <eblake@redhat.com>
5855
5856         canonicalize-lgpl: use common idiom
5857         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
5858         over newer POSIX -Rf.
5859         Reported by Bruno Haible.
5860
5861         canonicalize-lgpl: work around AIX realpath bug
5862         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
5863         * doc/posix-functions/realpath.texi (realpath): Document it.
5864         Reported by Bruno Haible.
5865
5866         strerror: work around FreeBSD bug
5867         * lib/strerror.c (strerror): Special case 0.
5868         Reported by Bruno Haible.
5869
5870         strerror-override: avoid bloating errno module
5871         * modules/errno (Files, configure.ac): Move replacement strings...
5872         * modules/strerror-override: ...to new module.
5873         * modules/strerror (Depends-on): Add strerror-override.
5874         * modules/strerror_r-posix (Depends-on): Likewise.
5875         * MODULES.html.sh: Document new module.
5876         Reported by Bruno Haible.
5877
5878 2011-06-06  Bruno Haible  <bruno@clisp.org>
5879
5880         spawn-pipe tests: Rename program.
5881         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
5882         * tests/test-spawn-pipe-child.c: Update comment.
5883         * tests/test-spawn-pipe.sh: Update.
5884         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
5885
5886         spawn-pipe tests: Link the child program only against libc.
5887         * tests/test-spawn-pipe-child.c: New file, extracted from
5888         tests/test-spawn-pipe.c.
5889         (main): Expect only one argument.
5890         (is_open): New function, copied from tests/test-pipe.c.
5891         * tests/test-spawn-pipe.c: Don't include <errno.h>.
5892         (child_main): Remove function.
5893         (test_pipe): Pass only one argument to the child program.
5894         (main): Remove child process code. Expect the child program's name as
5895         first argument.
5896         * tests/test-spawn-pipe.sh: Pass the child program's name as first
5897         argument.
5898         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
5899         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
5900         test-spawn-pipe-child against no libraries.
5901
5902 2011-06-06  Bruno Haible  <bruno@clisp.org>
5903
5904         careadlinkat: Avoid mismatch between ssize_t and int.
5905         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
5906         * lib/careadlinkat.c (careadlinkatcwd): Define always.
5907
5908 2011-06-06  Jim Meyering  <meyering@redhat.com>
5909
5910         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
5911         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
5912         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
5913
5914 2011-06-05  Bruno Haible  <bruno@clisp.org>
5915
5916         ansi-c++-opt: Interoperability with libtool.
5917         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
5918         set the variable to "no", not to ":".
5919         * NEWS: Mention the change.
5920
5921 2011-06-05  Bruno Haible  <bruno@clisp.org>
5922
5923         acl: Fix test failure on AIX 7.
5924         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
5925         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
5926
5927 2011-06-05  Bruno Haible  <bruno@clisp.org>
5928
5929         pipe-filter-ii: Fix test failure on AIX and IRIX.
5930         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
5931         with EAGAIN, retry with a smaller buffer size.
5932
5933 2011-06-05  Bruno Haible  <bruno@clisp.org>
5934
5935         localename: Fix link dependencies.
5936         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
5937         * modules/localename-tests (Makefile.am): Link test-localename with
5938         $(LIBTHREAD).
5939
5940 2011-06-05  Bruno Haible  <bruno@clisp.org>
5941
5942         error: Avoid gcc warning.
5943         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
5944
5945 2011-06-05  Bruno Haible  <bruno@clisp.org>
5946
5947         unsetenv: Avoid gcc warning.
5948         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
5949
5950 2011-06-05  Bruno Haible  <bruno@clisp.org>
5951
5952         setenv: Avoid gcc warning.
5953         * lib/setenv.c (setenv): Provide declaration if system lacks it.
5954
5955 2011-06-05  Bruno Haible  <bruno@clisp.org>
5956
5957         sys_select: Ensure memset is declared also on AIX 7.
5958         * lib/sys_select.in.h: Include <string.h> also on AIX.
5959         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
5960         self-contained also on AIX 7.1.
5961
5962 2011-06-04  Jim Meyering  <meyering@redhat.com>
5963
5964         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
5965         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
5966         function name, "error".
5967         (_gl_translatable_diag_func_re): New configurable variable.
5968
5969 2011-06-04  Bruno Haible  <bruno@clisp.org>
5970
5971         getopt: Avoid gcc warning.
5972         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
5973
5974 2011-06-04  Bruno Haible  <bruno@clisp.org>
5975
5976         strerror_r: Fix comments.
5977         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
5978         commit.
5979
5980 2011-06-04  Bruno Haible  <bruno@clisp.org>
5981
5982         perror: Fix compilation error.
5983         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
5984         Undefine fprintf, not sprintf.
5985         * modules/perror (Depends-on): Remove intprops, verify.
5986
5987 2011-06-04  Bruno Haible  <bruno@clisp.org>
5988
5989         setlocale: Enable replacement on Cygwin 1.5.
5990         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
5991         Cygwin 1.5.x.
5992         * doc/posix-functions/setlocale.texi: Mention that the problem with the
5993         LC_CTYPE category also exists on Cygwin 1.5.x.
5994
5995 2011-06-04  Bruno Haible  <bruno@clisp.org>
5996
5997         strerror-override: Don't disable symbol renamings.
5998         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
5999         * lib/strerror-override.c: Include config.h.
6000         (strerror_override): Don't undefine.
6001
6002 2011-06-03  Bruno Haible  <bruno@clisp.org>
6003
6004         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
6005         * lib/localename.h: Update copyright header.
6006         * lib/localename.c: Likewise.
6007         * lib/relocatable.h: Likewise.
6008         * lib/relocatable.c: Likewise.
6009
6010 2011-06-02  Bruno Haible  <bruno@clisp.org>
6011
6012         doc: Fix a module name.
6013         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
6014
6015 2011-06-02  Bruno Haible  <bruno@clisp.org>
6016
6017         pipe2: Remove dependency on 'nonblocking' module.
6018         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
6019         O_NONBLOCK is defined by gnulib.
6020         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
6021         is zero.
6022         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
6023         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
6024         defined by gnulib.
6025         (get_nonblocking_flag): New function.
6026         (main): Test O_NONBLOCK flag only if it is nonzero.
6027         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
6028
6029 2011-06-03  Jim Meyering  <meyering@redhat.com>
6030
6031         maint: three new prohibit-header-without-use rules
6032         Prohibit use of cloexec.h, posixver.h, same.h without use.
6033         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
6034         (sc_prohibit_posixver_without_use): Likewise.
6035         (sc_prohibit_same_without_use): Likewise.
6036
6037 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
6038
6039         allocator: 'die' routine is now given requested size
6040         * lib/allocator.h (struct allocator.die): New size arg.
6041         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
6042         If the actual problem is an ssize_t limitation, not a size_t or
6043         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
6044
6045 2011-06-01  Eric Blake  <eblake@redhat.com>
6046
6047         strerror: drop strerror_r dependency
6048         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
6049         * lib/strerror-override.c (strerror_override): ...to new file.
6050         * lib/strerror-override.h: Add prototype.
6051         * lib/strerror-impl.h: Delete.
6052         * lib/strerror.c (strerror): New implementation.
6053         * modules/errno (Files): Add new files.
6054         (configure.ac): Compile new file as appropriate.
6055         * modules/strerror (Files): Drop unused file.
6056         (Depends-on): Drop strerror_r-posix.
6057         * MODULES.html.sh: Document strerror_r-posix.
6058         Requested by Sam Steingold.
6059
6060         perror: call strerror_r directly
6061         * modules/perror (Files): Drop strerror-impl.h.
6062         * lib/perror.c (perror): Use our own stack buffer, rather than
6063         calling a wrapper that uses static storage.
6064         * doc/posix-functions/perror.texi (perror): Document a limitation
6065         of our replacement.
6066
6067         strerror_r: fix includes for FreeBSD
6068         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
6069         since we use abort on some platforms.
6070         Reported by Matthias Bolte.
6071
6072 2011-05-31  Bruno Haible  <bruno@clisp.org>
6073
6074         Fix link errors in tests: openat-die uses gettext-h.
6075         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
6076         against $(LIBINTL).
6077         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
6078         against $(LIBINTL).
6079         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
6080         $(LIBINTL).
6081         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
6082         against $(LIBINTL).
6083         * modules/linkat-tests (Makefile.am): Link test-linkat against
6084         $(LIBINTL).
6085         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
6086         $(LIBINTL).
6087         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
6088         against $(LIBINTL).
6089         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
6090         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
6091         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
6092         $(LIBINTL).
6093         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
6094         $(LIBINTL).
6095         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
6096         $(LIBINTL).
6097         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6098
6099 2011-05-31  Bruno Haible  <bruno@clisp.org>
6100
6101         Fix link errors in tests: wait-process uses gettext-h.
6102         * modules/nonblocking-pipe-tests (Makefile.am): Set
6103         test_nonblocking_pipe_main_LDADD.
6104         * modules/nonblocking-socket-tests (Makefile.am): Link
6105         test-nonblocking-socket-main against $(LIBINTL).
6106         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6107
6108 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
6109
6110         assert-h: work around 'verify' incompatibility
6111         * lib/verify.h: Use @...@ directives, not ifdef.
6112         * modules/assert-h (assert.h): Implement the directives.
6113         (assert.h): Substitute the symbol-prefix more consistently.
6114
6115 2011-05-29  Jim Meyering  <meyering@redhat.com>
6116
6117         trim: remove three superfluous assignments
6118         * lib/trim.c (trim2): Remove three superfluous assignments
6119         and correct brace positioning.
6120
6121 2011-05-29  Bruno Haible  <bruno@clisp.org>
6122
6123         wctype-h: Avoid namespace pollution on Solaris 2.6.
6124         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
6125         identifiers.
6126         * doc/posix-headers/wctype.texi: Mention the problem.
6127         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6128
6129 2011-05-28  Jim Meyering  <meyering@redhat.com>
6130
6131         parse-datetime.y: accommodate -Wstrict-overflow
6132         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
6133         placate -Wstrict-overflow.
6134
6135         trim: avoid a warning from -O2 -Wstrict-overflow
6136         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
6137
6138 2011-05-29  Bruno Haible  <bruno@clisp.org>
6139
6140         gnulib-tool: Fix bug in yesterday's commit.
6141         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
6142         twice.
6143
6144 2011-05-29  Bruno Haible  <bruno@clisp.org>
6145
6146         Allow multiple gnulib generated include files to be combined.
6147         * gnulib-tool (func_compute_include_guard_prefix): New function.
6148         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
6149         ${gl_include_guard_prefix} references.
6150         (func_import, func_create_testdir): Invoke
6151         func_compute_include_guard_prefix.
6152         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
6153         * lib/ctype.in.h: Likewise.
6154         * lib/dirent.in.h: Likewise.
6155         * lib/errno.in.h: Likewise.
6156         * lib/fcntl.in.h: Likewise.
6157         * lib/float.in.h: Likewise.
6158         * lib/getopt.in.h: Likewise.
6159         * lib/iconv.in.h: Likewise.
6160         * lib/langinfo.in.h: Likewise.
6161         * lib/locale.in.h: Likewise.
6162         * lib/math.in.h: Likewise.
6163         * lib/netdb.in.h: Likewise.
6164         * lib/netinet_in.in.h: Likewise.
6165         * lib/poll.in.h: Likewise.
6166         * lib/pthread.in.h: Likewise.
6167         * lib/pty.in.h: Likewise.
6168         * lib/sched.in.h: Likewise.
6169         * lib/se-selinux.in.h: Likewise.
6170         * lib/search.in.h: Likewise.
6171         * lib/signal.in.h: Likewise.
6172         * lib/spawn.in.h: Likewise.
6173         * lib/stdarg.in.h: Likewise.
6174         * lib/stddef.in.h: Likewise.
6175         * lib/stdint.in.h: Likewise.
6176         * lib/stdio.in.h: Likewise.
6177         * lib/stdlib.in.h: Likewise.
6178         * lib/string.in.h: Likewise.
6179         * lib/strings.in.h: Likewise.
6180         * lib/sys_file.in.h: Likewise.
6181         * lib/sys_ioctl.in.h: Likewise.
6182         * lib/sys_select.in.h: Likewise.
6183         * lib/sys_socket.in.h: Likewise.
6184         * lib/sys_stat.in.h: Likewise.
6185         * lib/sys_time.in.h: Likewise.
6186         * lib/sys_times.in.h: Likewise.
6187         * lib/sys_uio.in.h: Likewise.
6188         * lib/sys_utsname.in.h: Likewise.
6189         * lib/sys_wait.in.h: Likewise.
6190         * lib/sysexits.in.h: Likewise.
6191         * lib/termios.in.h: Likewise.
6192         * lib/time.in.h: Likewise.
6193         * lib/unistd.in.h: Likewise.
6194         * lib/wchar.in.h: Likewise.
6195         * lib/wctype.in.h: Likewise.
6196         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
6197         * modules/ctype (Makefile.am): Likewise.
6198         * modules/dirent (Makefile.am): Likewise.
6199         * modules/errno (Makefile.am): Likewise.
6200         * modules/fcntl-h (Makefile.am): Likewise.
6201         * modules/float (Makefile.am): Likewise.
6202         * modules/getopt-posix (Makefile.am): Likewise.
6203         * modules/iconv-h (Makefile.am): Likewise.
6204         * modules/langinfo (Makefile.am): Likewise.
6205         * modules/locale (Makefile.am): Likewise.
6206         * modules/math (Makefile.am): Likewise.
6207         * modules/netdb (Makefile.am): Likewise.
6208         * modules/netinet_in (Makefile.am): Likewise.
6209         * modules/poll-h (Makefile.am): Likewise.
6210         * modules/pthread (Makefile.am): Likewise.
6211         * modules/pty (Makefile.am): Likewise.
6212         * modules/sched (Makefile.am): Likewise.
6213         * modules/search (Makefile.am): Likewise.
6214         * modules/selinux-h (Makefile.am): Likewise.
6215         * modules/signal (Makefile.am): Likewise.
6216         * modules/spawn (Makefile.am): Likewise.
6217         * modules/stdarg (Makefile.am): Likewise.
6218         * modules/stddef (Makefile.am): Likewise.
6219         * modules/stdint (Makefile.am): Likewise.
6220         * modules/stdio (Makefile.am): Likewise.
6221         * modules/stdlib (Makefile.am): Likewise.
6222         * modules/string (Makefile.am): Likewise.
6223         * modules/strings (Makefile.am): Likewise.
6224         * modules/sys_file (Makefile.am): Likewise.
6225         * modules/sys_ioctl (Makefile.am): Likewise.
6226         * modules/sys_select (Makefile.am): Likewise.
6227         * modules/sys_socket (Makefile.am): Likewise.
6228         * modules/sys_stat (Makefile.am): Likewise.
6229         * modules/sys_time (Makefile.am): Likewise.
6230         * modules/sys_times (Makefile.am): Likewise.
6231         * modules/sys_uio (Makefile.am): Likewise.
6232         * modules/sys_utsname (Makefile.am): Likewise.
6233         * modules/sys_wait (Makefile.am): Likewise.
6234         * modules/sysexits (Makefile.am): Likewise.
6235         * modules/termios (Makefile.am): Likewise.
6236         * modules/time (Makefile.am): Likewise.
6237         * modules/unistd (Makefile.am): Likewise.
6238         * modules/wchar (Makefile.am): Likewise.
6239         * modules/wctype-h (Makefile.am): Likewise.
6240         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
6241
6242 2011-05-29  Bruno Haible  <bruno@clisp.org>
6243
6244         assert-h: Allow multiple gnulib generated replacements to coexist.
6245         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
6246
6247 2011-05-29  Bruno Haible  <bruno@clisp.org>
6248
6249         argp: Allow coexistence with strerror_r-posix module.
6250         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
6251         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
6252         by gnulib's <string.h> replacement), assume it has the POSIX signature,
6253         not the glibc signature.
6254
6255 2011-05-28  Bruno Haible  <bruno@clisp.org>
6256
6257         gnulib-tool: Alternative structure of testdirs, similar to --import.
6258         * gnulib-tool: New option --single-configure.
6259         (func_usage): Document it.
6260         (single_configure): New variable.
6261         (func_modules_transitive_closure_separately,
6262         func_modules_transitive_closure_separately,
6263         func_determine_use_libtests, func_modules_add_dummy_separately,
6264         func_modules_to_filelist_separately): New functions, extracted from
6265         func_import.
6266         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
6267         (func_import): Use the new functions.
6268         (func_create_testdir): Set final_modules. Handle $single_configure =
6269         true case.
6270
6271 2011-05-28  Bruno Haible  <bruno@clisp.org>
6272
6273         getloadavg: Remove an unreliable safety check.
6274         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
6275         getloadavg.c is in place.
6276         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
6277         Reported by Sam Steingold <sds@gnu.org>.
6278
6279 2011-05-28  Bruno Haible  <bruno@clisp.org>
6280
6281         doc: Cleanup yet another file produced by texinfo.tex.
6282         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
6283
6284 2011-05-28  Bruno Haible  <bruno@clisp.org>
6285
6286         Finish the conditional dependencies mechanism.
6287         * gnulib-tool: New option --no-conditional-dependencies.
6288         (func_usage): Document it. Don't mark --conditional-dependencies as
6289         experimental.
6290         (cond_dependencies): The possible values can now be true, false, empty.
6291         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
6292         (func_import): Store setting in gnulib-cache.m4 and read it from there.
6293         * doc/gnulib-tool.texi (Conditional dependencies): New section.
6294
6295 2011-05-28  Bruno Haible  <bruno@clisp.org>
6296
6297         doc: Use a recent texinfo.tex.
6298         * doc/Makefile (tex_opts): New variable.
6299         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
6300
6301 2011-05-28  Jim Meyering  <meyering@redhat.com>
6302
6303         intprops.h: adjust comment to match code change
6304         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
6305         only once, it *may* have side effects.  Also fix an unrelated typo.
6306         (_GL_INT_SIGNED): Likewise.
6307
6308 2011-05-26  Simon Josefsson  <simon@josefsson.org>
6309
6310         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
6311
6312 2011-05-26  Bruno Haible  <bruno@clisp.org>
6313
6314         mbsrchr: Avoid collision with system function on Interix.
6315         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
6316         Reported by Markus Duft <mduft@gentoo.org>.
6317
6318 2011-05-15  James Youngman  <jay@gnu.org>
6319
6320         getopt: for ambiguous options, enumerate the possibilities.
6321         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
6322         the ambiguous options when an ambiguous prefix is given. This was
6323         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
6324         glibc change was
6325         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
6326
6327 2011-05-25  Eric Blake  <eblake@redhat.com>
6328
6329         getcwd: work around mingw bug
6330         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
6331         * doc/posix-functions/getcwd.texi (getcwd): Document it.
6332         Reported by Matthias Bolte.
6333
6334 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
6335
6336         test-intprops: disable -Wtype-limits diagnostics
6337         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
6338         diagnostics.  Otherwise, the integer overflow macros generate many
6339         diagnostics.  Reported by Jim Meyering in
6340         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
6341
6342         intprops: shorten, to pacify gcc -Woverlength-strings
6343         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
6344         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
6345         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
6346         likely to run afoul of C compiler limits for string constant lengths.
6347         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
6348
6349 2011-05-24  Eric Blake  <eblake@redhat.com>
6350
6351         docs: document recently fixed glibc printf bug
6352         * doc/posix-functions/fprintf.texi (fprintf): Document it.
6353         * doc/posix-functions/printf.texi (printf): Likewise.
6354         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
6355         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
6356
6357         closein-tests: convert to init.sh
6358         * modules/closein-tests (Files): Add init.sh
6359         * tests/test-closein.sh Use it.
6360
6361         yesno-tests: convert to init.sh
6362         * modules/yesno-tests (Files): Add init.sh.
6363         * tests/test-yesno.sh: Use it.
6364
6365         atexit-tests: ensure reliable exit status
6366         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
6367         Reported by Bruno Haible.
6368
6369 2011-05-24  Bruno Haible  <bruno@clisp.org>
6370
6371         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
6372         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
6373         gl_PREREQ_STRERROR_R invocations from here...
6374         * modules/strerror_r-posix (configure.ac): ... to here.
6375
6376 2011-05-24  Eric Blake  <eblake@redhat.com>
6377
6378         strerror_r: fix missing header
6379         * lib/strerror_r.c: Avoid compiler warning about snprintf.
6380
6381         strerror_r: fix AIX test failures
6382         * lib/strerror_r.c (strerror_r): Convert silent truncation to
6383         ERANGE failure.
6384
6385         strerror_r: fix Solaris test failures
6386         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
6387         failures.
6388         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
6389
6390         strerror_r: enforce POSIX recommendations
6391         * lib/strerror_r.c (safe_copy): New helper method.
6392         (strerror_r): Guarantee a non-empty string.
6393         * tests/test-strerror_r.c (main): Enhance tests to incorporate
6394         recent POSIX rulings and to match our strerror guarantees.
6395         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
6396
6397 2011-05-24  Jim Meyering  <meyering@redhat.com>
6398
6399         test-perror2.c: avoid warning about unused variable
6400         * tests/test-perror2.c (main): Remove declaration of unused "fp".
6401
6402 2011-05-24  Eric Blake  <eblake@redhat.com>
6403
6404         perror: avoid spurious test failure on HP-UX
6405         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
6406
6407         tests: fix logic bug in init.sh
6408         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
6409         shell.
6410
6411 2011-05-24  Jim Meyering  <meyering@redhat.com>
6412
6413         utimensat: do not reference an out-of-scope buffer
6414         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
6415         declared in an inner scope, yet "times" would be dereferenced outside
6416         the scope in which "ts" was valid.
6417         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
6418         of ts[2] "out/up", so that the use of aliased "times" (via
6419         "times = ts;") does not end up referencing an out-of-scope "ts"
6420
6421         opendir-safer.c: don't clobber errno; don't close negative FD
6422         * lib/opendir-safer.c (opendir_safer):
6423         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
6424         file descriptor, and more importantly, don't clobber the
6425         offending errno value with EINVAL.  Before, upon failure
6426         of dup_safer, we would pass the negative file descriptor to
6427         fdopendir, which would clobber errno.
6428
6429 2011-05-23  Bruno Haible  <bruno@clisp.org>
6430
6431         idcache: Fix module description.
6432         * modules/idcache (Include): Set to "idcache.h".
6433
6434 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
6435
6436         gnulib-tool: fix portability problem with MacOS sed
6437         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
6438         before the "}".  Problem reported by Leo in
6439         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
6440         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
6441         sed_extract_condition1, sed_extract_condition2.
6442
6443 2011-05-23  Bruno Haible  <bruno@clisp.org>
6444
6445         hash: Simplify autoconf macro.
6446         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
6447
6448 2011-05-23  Bruno Haible  <bruno@clisp.org>
6449
6450         getugroups: Fix module description.
6451         * modules/getugroups (Include): Set to "getugroups.h".
6452
6453 2011-05-23  Bruno Haible  <bruno@clisp.org>
6454
6455         linkat: Simplify autoconf macro.
6456         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
6457
6458 2011-05-23  Bruno Haible  <bruno@clisp.org>
6459             Eric Blake  <eblake@redhat.com>
6460
6461         linkat, renameat: Update dependencies.
6462         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
6463         * modules/linkat (Depends-on): Likewise. Remove also readlink,
6464         symlinkat.
6465
6466 2011-05-23  Jim Meyering  <meyering@redhat.com>
6467
6468         maint.mk: more tight_scope improvements
6469         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
6470         (_gl_TS_headers): Define only in if-0'd block.
6471         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
6472         sometimes we must *not* use it.  Adjust uses accordingly.
6473         (sc_tight_scope): Use much simpler grep-based test to determine
6474         whether we skip this rule.
6475
6476         maint.mk: generalize/improve the tight-scope rule
6477         * top/maint.mk: Emit a warning when the test is skipped.
6478         (_gl_TS_dir): Add $(srcdir)/ prefix.
6479         (_gl_TS_function_match): Simplify, rather than trying
6480         to enumerate common types.  Otherwise, it would fail to match an
6481         "extern unsigned char const *" declaration in idutils.
6482         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
6483         a way to support use of that type of macro.
6484         (_gl_TS_var_match): Simplify regexp.
6485         (_gl_TS_obj_files): New configurable variable.
6486         (_gl_TS_headers): Likewise.
6487
6488 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
6489
6490         verify: fix bug when gnulib <assert.h> is also included
6491         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
6492         is defined, not if _GL_STATIC_ASSERT_H is not defined.
6493         Perhaps there's a better way, but this fixes the immediate problem.
6494         Problem reported by Bruno Haible in
6495         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
6496
6497 2011-05-22  Bruno Haible  <bruno@clisp.org>
6498
6499         xgetcwd: Simplify autoconf macro.
6500         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
6501
6502 2011-05-22  Bruno Haible  <bruno@clisp.org>
6503
6504         New module 'mktime-internal'.
6505         * modules/mktime-internal: New file.
6506         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
6507         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
6508         mktime_internal as a C macro if libc has __mktime_internal.
6509         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
6510         conditions.
6511         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
6512
6513 2011-05-22  Bruno Haible  <bruno@clisp.org>
6514
6515         timegm: Correct mktime replacement statements.
6516         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
6517         defining mktime as a C macro. This completes a 2009-07-28 commit.
6518
6519 2011-05-22  Bruno Haible  <bruno@clisp.org>
6520
6521         timegm: Simplify autoconf macro.
6522         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
6523
6524 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
6525
6526         clock-time: change to LGPLv2+.
6527         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
6528         BSD-like but we have no mark for that; this is good enough for now.
6529
6530 2011-05-21  Bruno Haible  <bruno@clisp.org>
6531
6532         strerror_r: Fix comments.
6533         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
6534
6535 2011-05-21  Bruno Haible  <bruno@clisp.org>
6536
6537         relocatable-prog-wrapper: Fix possible link error.
6538         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
6539         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
6540         (gl_FUNC_SETENV): ... to here.
6541         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
6542         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
6543
6544 2011-05-21  Bruno Haible  <bruno@clisp.org>
6545
6546         relocatable-prog-wrapper: Assume strerror() exists.
6547         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
6548         m4/strerror.m4.
6549         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
6550         * lib/relocwrapper.c: Remove mention of strerror module.
6551         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
6552         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
6553         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
6554         C macro.
6555
6556 2011-05-21  Bruno Haible  <bruno@clisp.org>
6557
6558         select: Simplify replacement idiom.
6559         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
6560         Win32 platforms.
6561         * lib/sys_select.in.h (select): Simplify accordingly.
6562         * modules/select (Depends-on): Likewise.
6563
6564 2011-05-21  Bruno Haible  <bruno@clisp.org>
6565
6566         mkdir-p: Simplify autoconf macro.
6567         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
6568         gl_FUNC_LCHOWN.
6569
6570 2011-05-21  Eric Blake  <eblake@redhat.com>
6571
6572         strerror_r: avoid clobbering strerror on cygwin
6573         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
6574         fall back instead to sys_errlist.
6575         * modules/strerror (configure.ac): Add witness.
6576         * tests/test-strerror_r.c (main): Enhance test.
6577         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
6578         * tests/test-perror2.c (main): Free memory before exit.
6579
6580 2011-05-21  Bruno Haible  <bruno@clisp.org>
6581
6582         mkdtemp: Use gnulib naming conventions.
6583         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
6584         * modules/mkdtemp (configure.ac): Update.
6585
6586 2011-05-20  Eric Blake  <eblake@redhat.com>
6587
6588         strerror_r: avoid corrupting errno on Solaris
6589         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
6590         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
6591
6592         strerror_r: avoid compiler warning
6593         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
6594
6595         strerror_r: simplify AIX code
6596         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
6597
6598         test-perror: avoid spurious failure on FreeBSD
6599         * modules/perror-tests (Depends-on): Add strerror, now that
6600         strerror_r no longer pulls it in.
6601
6602 2011-05-20  Bruno Haible  <bruno@clisp.org>
6603
6604         strerror_r-posix: Remove unused dependencies.
6605         * modules/strerror_r-posix (Depends-on): Remove strerror.
6606         Reported by Eric Blake.
6607
6608 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
6609
6610         intprops: remove assumption about A|B representation
6611         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
6612         is a valid integer if both A and B are.  Although this is true for
6613         all known practical hosts, the C standard doesn't guarantee it,
6614         and the code need not assume it.  Also, this change may work around
6615         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
6616         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
6617
6618 2011-05-20  Eric Blake  <eblake@redhat.com>
6619
6620         perror: work around FreeBSD bug
6621         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
6622         is broken.  Move AC_LIBOBJ...
6623         * modules/perror (configure.ac): Here.
6624         * doc/posix-functions/perror.texi (perror): Document this.
6625         * tests/test-perror2.c (main): Enhance test.
6626
6627         test-perror: check for strerror interactions
6628         * tests/macros.h (STREQ): Add macro.
6629         * modules/perror-tests (Files): Add second test.
6630         * tests/test-perror2.c (main): New file.
6631         * doc/posix-functions/perror.texi (perror): Document glibc bug.
6632
6633         test-perror: rewrite to use init script
6634         * modules/perror-tests (Files): Add init.sh.
6635         * tests/test-perror.sh: Use temporary directory.
6636
6637 2011-05-20  Jim Meyering  <meyering@redhat.com>
6638
6639         maint: replace misused "a" with "an"
6640         * doc/intprops.texi: "a integer"
6641         * doc/regex.texi: "a explanation"
6642         * lib/alignof.h: "a object"
6643         * lib/argmatch.h: "a explanation"
6644         * lib/argp-help.c: "a option" and "a OPTION_DOC"
6645         * lib/stdint.in.h: "a integer"
6646         * lib/userspec.c: "a owner"
6647         * doc/gnulib.texi: Fix "a idea", and reword.
6648
6649 2011-05-19  Jim Meyering  <meyering@redhat.com>
6650
6651         maint: correct misuse of "a" and "an"
6652         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
6653         * lib/argp-help.c: "an docum...": s/an/a/
6654         * lib/argp-parse.c: "An vector": s/An/A/
6655         * lib/execute.c: "an native": s/an/a/
6656         * lib/spawn-pipe.c: Likewise.
6657         * lib/gc.h: "an Gc_rc": s/an/a/
6658         * lib/unigbrk.in.h: "an grapheme": s/an/a/
6659         * lib/fts.c: "an stat.st_dev": s/an/a/
6660
6661 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
6662
6663         intprops-tests: work around HP-UX 11.23 cc bug with constants
6664         * tests/test-intprops.c (VERIFY): New macro.
6665         (main): Use it, instead of verify, to work around the compiler bug; see
6666         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
6667
6668         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
6669         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
6670         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
6671         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
6672         (_GL_REMAINDER_OVERFLOW): Use it.
6673
6674         intprops-tests: revert unsigned part of previous change
6675         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
6676         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
6677         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
6678         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
6679
6680 2011-05-19  Bruno Haible  <bruno@clisp.org>
6681
6682         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
6683         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
6684         strerror_r() returned without filling the buffer.
6685         Reported by Eric Blake.
6686
6687 2011-05-19  Eric Blake  <eblake@redhat.com>
6688
6689         strerror_r: guarantee unchanged errno
6690         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
6691         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
6692         failure.
6693         * tests/test-strerror_r.c (main): Enhance test.
6694
6695 2011-05-19  Bruno Haible  <bruno@clisp.org>
6696
6697         strerror_r: Reorder #if blocks.
6698         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
6699         for consistency with the previous commit.
6700
6701 2011-05-19  Bruno Haible  <bruno@clisp.org>
6702
6703         perror: Avoid clobbering the strerror buffer when possible.
6704         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
6705         * lib/strerror.c: Include it.
6706         * modules/strerror (Files): Add lib/strerror-impl.h.
6707         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
6708         (my_strerror): New function, defined through lib/strerror-impl.h.
6709         (perror): Use it instead of strerror.
6710         * modules/perror (Files): Add lib/strerror-impl.h.
6711         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
6712
6713 2011-05-19  Eric Blake  <eblake@redhat.com>
6714
6715         strerror_r: fix on newer cygwin
6716         * lib/strerror_r.c (strerror_r): Cygwin now has
6717         __xpg_strerror_r, use it.
6718
6719 2011-05-19  Bruno Haible  <bruno@clisp.org>
6720
6721         strerror_r: Avoid clobbering the strerror buffer when possible.
6722         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
6723         (sys_nerr, sys_errlist): New declarations.
6724         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
6725         HP-UX, native Win32, IRIX, and 32-bit Solaris.
6726         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
6727
6728 2011-05-19  Bruno Haible  <bruno@clisp.org>
6729
6730         strerror_r: Fix test failure on mingw.
6731         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
6732         EXTEND_STRERROR_R.
6733         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
6734         macros from errno.in.h instead.
6735
6736 2011-05-19  Eric Blake  <eblake@redhat.com>
6737
6738         strerror: relax test for Solaris
6739         * tests/test-strerror.c (main): Permit Solaris behavior.
6740         * tests/test-strerror_r.c (main): Likewise.
6741
6742         strerror: enforce POSIX ruling on strerror(0)
6743         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
6744         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
6745         * lib/strerror_r.c (rpl_strerror_r): Work around it.
6746         * doc/posix-functions/strerror.texi (strerror): Document it.
6747         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
6748         * tests/test-strerror.c (main): Strengthen test.
6749         * tests/test-strerror_r.c (main): Likewise.
6750
6751 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
6752
6753         intprop-tests: port to older and more-pedantic compilers
6754         * modules/intprops-tests (Files): Add tests/macros.h.
6755         * tests/test-intprops.c: Include macros.h.
6756         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
6757         it's no longer documented to expand to an integer constant expression.
6758         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
6759         argument is floating point, as it's no longer documented to expand
6760         to an integer constant expression in that case.
6761         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
6762         compiler bugs reported by Bruno Haible.  See
6763         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
6764         (U0, U1): New constants, to work around the same bugs.  Also,
6765         in tests, use e.g., "(unsigned int) 39" rather than "39u".
6766
6767         intprops: work around C compiler bugs
6768         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
6769         bug in Sun C 5.11 2010/08/13 and other compilers; see
6770         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
6771
6772         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
6773         * doc/intprops.texi (Integer Type Determination): Fix
6774         documentation for TYPE_IS_INTEGER: it returns an constant
6775         expression, not an integer constant expression.  Fix doc for
6776         TYPE_SIGNED: it returns an integer constant expression only if its
6777         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
6778         hardly worth documented that way....)
6779
6780 2011-05-18  Bruno Haible  <bruno@clisp.org>
6781
6782         strerror_r: Avoid clobbering the strerror buffer when possible.
6783         * lib/strerror_r.c (strerror_r): Merge the three implementations.
6784         Handle gnulib defined errno values here. When strerror() returns NULL
6785         or an empty string, return EINVAL.
6786         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
6787         gnulib defined errno values here.
6788         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
6789
6790 2011-05-18  Eric Blake  <eblake@redhat.com>
6791
6792         fnmatch: avoid compiler warning
6793         * lib/fnmatch_loop.c (FCT): Use correct type.
6794         Reported by Matthias Bolte.
6795
6796 2011-05-13  Jim Meyering  <meyering@redhat.com>
6797
6798         maint.mk: three new prohibit_<HDR>_without_use rules
6799         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
6800         (sc_prohibit_stdio-safer_without_use): Likewise.
6801         (sc_prohibit_xfreopen_without_use): Likewise.
6802
6803 2011-05-17  Jim Meyering  <meyering@redhat.com>
6804
6805         announce-gen: fail if the NEWS delta is empty
6806         If there's nothing noteworthy in NEWS, then either you forgot
6807         or you shouldn't be releasing.
6808         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
6809
6810 2011-05-17  Pádraig Brady <P@draigBrady.com>
6811
6812         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
6813         reserved symbols starting with double underscore from the check.
6814
6815 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
6816
6817         intprops: add doc
6818         * doc/intprops.texi: New file, documenting intprops.
6819         * doc/gnulib.texi (Particular Modules): Include it.
6820
6821         verify: add doc to gnulib manual and fix example
6822         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
6823         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
6824         (Compile-time Assertions): Fix example so it can't overflow.
6825
6826 2011-05-17  Jim Meyering  <meyering@redhat.com>
6827
6828         warnings.m4: don't usurp save_CPPFLAGS variable name
6829         * m4/warnings.m4: Prefix local temporary variable name with gl_.
6830
6831         doc: fix typo
6832         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
6833
6834 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
6835             Bruno Haible  <bruno@clisp.org>
6836
6837         doc: Tweak recent change.
6838         * README (Portability guidelines): Tweak new text.
6839         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
6840         Interix 6.1.
6841
6842 2011-05-16  Eric Blake  <eblake@redhat.com>
6843
6844         inttypes: avoid autoconf warning
6845         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
6846         * m4/stdint.m4 (gl_STDINT_H): Likewise.
6847
6848 2011-05-16  Sam Steingold <sds@gnu.org>
6849         and Eric Blake  <eblake@redhat.com>
6850
6851         vc-list-files: accept multiple directory operands
6852         * build-aux/vc-list-files: Iterate over all remaining operands.
6853
6854 2011-05-16  Bruno Haible  <bruno@clisp.org>
6855
6856         Fix confusion regarding deprecated modules.
6857         * modules/calloc (Status, Notice): Mark module as deprecated, not
6858         obsolete.
6859         * modules/fnmatch-posix (Status, Notice): Likewise.
6860         * modules/getdate (Status, Notice): Likewise.
6861         * modules/getopt (Status, Notice): Likewise.
6862         * modules/malloc (Status, Notice): Likewise.
6863         * modules/pipe (Status, Notice): Likewise.
6864         * modules/realloc (Status, Notice): Likewise.
6865         * modules/rename-dest-slash (Status, Notice): Likewise.
6866         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
6867         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
6868         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
6869         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
6870         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
6871
6872 2011-05-16  Bruno Haible  <bruno@clisp.org>
6873
6874         doc: List the target platforms.
6875         * doc/gnulib-intro.texi (Target Platforms): New section.
6876         * doc/gnulib.texi (Introduction): Update menu.
6877         * README (Portability guidelines): Refer to the new section. Update
6878         statement about oldest supported environment. Remove rationale why
6879         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
6880         unportable C89 function.
6881         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
6882         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
6883
6884 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
6885
6886         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
6887
6888 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
6889
6890         intprops-tests: new module
6891         * modules/intprops-tests, tests/test-intprops.c: New files.
6892
6893         intprops: add safe, portable integer overflow checking
6894         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
6895         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
6896         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
6897         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
6898         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
6899         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
6900         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
6901         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
6902         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
6903         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
6904         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
6905
6906 2011-05-12  James Youngman  <jay@gnu.org>
6907
6908         Add a test for glibc's Bugzilla bug #12378.
6909         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
6910         doesn't allow the literal matching of a lone "[" (which is
6911         required by POSIX).
6912         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
6913
6914 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
6915
6916         Sync glibc change fixing Bugzilla bug #12378.
6917         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
6918         beginning and fall back to matching as normal character if the
6919         string ends before the matching ']' is found.  This is what POSIX
6920         requires.
6921
6922 2011-05-13  Eric Blake  <eblake@redhat.com>
6923
6924         getcwd-lgpl: relax test for FreeBSD
6925         * doc/posix-functions/getcwd.texi (getcwd): Document portability
6926         issue.
6927         * tests/test-getcwd-lgpl.c (main): Relax test.
6928         Reported by Matthias Bolte.
6929
6930 2011-05-11  Eric Blake  <eblake@redhat.com>
6931
6932         test-fflush: silence compiler warning
6933         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
6934
6935 2011-05-11  Bruno Haible  <bruno@clisp.org>
6936
6937         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
6938         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
6939         * modules/canonicalize (Depends-on): Add 'nocrash'.
6940         * modules/canonicalize-lgpl (Depends-on): Likewise.
6941         * doc/posix-functions/realpath.texi: Update platforms list.
6942         Reported by Ryan Schmidt <ryandesign@macports.org>.
6943
6944 2011-05-11  Bruno Haible  <bruno@clisp.org>
6945
6946         group-member: Declare function in <unistd.h>.
6947         * lib/unistd.in.h (group_member): New declaration.
6948         * lib/group-member.h: Remove file.
6949         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
6950         * tests/test-unistd-c++.cc: Check signature of group_member.
6951         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
6952         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
6953         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
6954         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
6955         HAVE_GROUP_MEMBER.
6956         * modules/group-member (Files): Remove lib/group-member.h.
6957         (Depends-on): Add unistd. Specify conditions.
6958         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
6959         (Include): Change to <unistd.h>.
6960         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
6961         HAVE_GROUP_MEMBER.
6962         * NEWS: Mention the change.
6963         * lib/euidaccess.c: Don't include group-member.h.
6964
6965 2011-05-11  Bruno Haible  <bruno@clisp.org>
6966
6967         group-member: Document module.
6968         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
6969         module.
6970
6971 2011-05-11  Bruno Haible  <bruno@clisp.org>
6972
6973         fclose: Fix mistake earlier today.
6974         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
6975
6976 2011-05-11  Eric Blake  <eblake@redhat.com>
6977
6978         fclose: preserve fflush errors
6979         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
6980         Reported by Jim Meyering.
6981
6982         bootstrap: support a prereq of 'rpcgen -' on RHEL5
6983         * build-aux/bootstrap (check_versions): When no specific version
6984         is required, merely check that the app produces an exit status
6985         that indicates its existence.
6986
6987         maint.mk: drop redundant check
6988         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
6989         the same but better.
6990
6991 2011-05-11  Bruno Haible  <bruno@clisp.org>
6992
6993         fclose: Fix possible link error.
6994         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
6995         unregister_shadow_fd. Improve comments.
6996         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
6997         Eric Blake.
6998
6999 2011-05-11  Jim Meyering  <meyering@redhat.com>
7000
7001         maint.mk: improve "can not" detection and generalize rule name
7002         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
7003         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
7004         Use the same technique as in sc_prohibit_doubled_word, so that
7005         we recognize "can not" also when the words are separated by a newline.
7006         Suggested by Eric Blake.
7007         (perl_filename_lineno_text_): Define.  Factored out of...
7008         (prohibit_doubled_word_): ...here.  Use the new definition.
7009         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
7010         (prohibit_undesirable_word_seq_RE_): New overridable variable.
7011         (ignore_undesirable_word_sequence_RE_): New overridable variable.
7012
7013 2011-05-10  Eric Blake  <eblake@redhat.com>
7014
7015         fclose: avoid double close race when possible
7016         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
7017         all but WINDOWS_SOCKETS.
7018
7019 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
7020
7021         openat: correct new comment
7022         * lib/openat-proc.c (openat_proc_name): Correct the comment.
7023
7024 2011-05-10  Jim Meyering  <meyering@redhat.com>
7025
7026         openat: add comments
7027         * lib/openat-proc.c (openat_proc_name): Add comments,
7028         mostly from Eric Blake.
7029
7030 2011-05-09  Eric Blake  <eblake@redhat.com>
7031
7032         openat: reduce syscalls in first probe of /proc
7033         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
7034         be a directory.  Simplify the probe for .. bugs.
7035         * modules/openat (Depends-on): Drop same-inode.
7036         Reported by Bastien ROUCARIES.
7037
7038 2011-05-09  Jim Meyering  <meyering@redhat.com>
7039
7040         maint.mk: change semantics/name of tight_scope variables
7041         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
7042         Rename variables to align with semantics that make them more useful.
7043
7044         maint.mk: tweak new rule's name not to impinge
7045         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
7046         (sc_tight_scope): Use new rule name rather than $@-0.
7047
7048         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
7049         * top/maint.mk (sc_tight_scope): New rule.
7050         (sc_tight_scope-0): New rule, ifdef'd out.
7051         (_gl_TS_dir): Default.
7052         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
7053         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
7054
7055 2011-05-09  Simon Josefsson  <simon@josefsson.org>
7056
7057         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
7058         Haible <bruno@clisp.org>.
7059
7060 2011-05-08  Bruno Haible  <bruno@clisp.org>
7061
7062         Comments.
7063         * m4/isnanf.m4: Add comment.
7064         * m4/isnanl.m4: Likewise.
7065
7066 2011-05-08  Bruno Haible  <bruno@clisp.org>
7067
7068         glob: Remove obsolete macro.
7069         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
7070
7071 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
7072
7073         intprops: Sun C 5.11 supports __typeof__
7074         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
7075         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
7076         which is new.
7077         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
7078
7079         intprops: switch to usual gnulib indenting and naming
7080         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
7081         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
7082
7083         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
7084
7085 2011-05-08  Jim Meyering  <meyering@redhat.com>
7086
7087         maint.mk: suppress "Entering/Leaving directory" diag in announcement
7088         * top/maint.mk (release-prep): Use make's --no-print-directory
7089         option when generating the announcement.  This eliminates the
7090         pesky "make[2]: Entering/Leaving directory" diagnostics in the
7091         generated announcement template.
7092
7093 2011-05-08  Bruno Haible  <bruno@clisp.org>
7094
7095         tzset: Fix gettimeofday wrapper on Solaris 2.6.
7096         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
7097         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
7098
7099 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
7100
7101         ignore-value, verify: Omit include files from lib_SOURCES.
7102         * modules/ignore-value, modules/verify (Makefile.am):
7103         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
7104         that leads Automake to duplicate use of am__objects_... variables
7105         in Makefile.in.  See
7106         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
7107
7108 2011-05-07  Bruno Haible  <bruno@clisp.org>
7109
7110         fclose: Simplify autoconf macro.
7111         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
7112         defined.
7113
7114 2011-05-07  Bruno Haible  <bruno@clisp.org>
7115
7116         canonicalize-lgpl: Fix autoconf macro ordering bug.
7117         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
7118         gl_STDLIB_H_DEFAULTS.
7119
7120 2011-05-06  Eric Blake  <eblake@redhat.com>
7121
7122         maintainer-makefile: make sc_po_check easier to tune
7123         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
7124         to probe for strings, such as an alternate location for gnulib.
7125
7126         fclose: guarantee behavior on seekable stdin
7127         * modules/fclose (Depends-on): Add fflush.
7128         * doc/posix-functions/fclose.texi (fclose): Document this.
7129         * tests/test-fclose.c (main): Make test for this unconditional.
7130
7131 2011-05-06  Bruno Haible  <bruno@clisp.org>
7132
7133         fflush, fpurge: Relicense under LGPLv2+.
7134         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
7135         * modules/fpurge (License): Likewise.
7136         With permission from Eric Blake and Jim Meyering.
7137         Suggested by Eric Blake.
7138
7139 2011-05-06  Karl Berry  <karl@gnu.org>
7140
7141         * MODULES.html.sh (func_all_modules): remove exit.
7142
7143 2011-05-06  Jim Meyering  <meyering@redhat.com>
7144
7145         maint.mk: use info-gnu@ as the default only for a stable release
7146         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
7147         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
7148         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
7149         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
7150
7151 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
7152
7153         assert-h: new module, which supports C1X-style static_assert
7154         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
7155         * lib/verify.h: Revamp so that this can be copied into assert.h,
7156         while retaining the ability to use it standalone as before.
7157         Rename private identifiers so as not to encroach on the
7158         standard C namespace, since this is now used by assert.h.
7159         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
7160         the old verify_true.
7161         (_GL_VERIFY_TRUE): New macro, with much of the contents of
7162         the old verify_true.  Use _GL_VERIFY_TYPE.
7163         (_GL_VERIFY): New macro, with much of the contents of the old verify.
7164         (static_assert): New macro, if _GL_STATIC_ASSERT_H
7165         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
7166         defined when this file is copied into the replacement assert.h.
7167         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
7168         and _Static_assert is not built in.
7169         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
7170         defined, and use the new macros mentioned above.
7171         * doc/posix-headers/assert.texi: Document this.
7172
7173 2011-05-05  Bruno Haible  <bruno@clisp.org>
7174
7175         fclose, fflush: Respect rules for use of AC_LIBOBJ.
7176         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
7177         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
7178         gl_REPLACE_FCLOSE here.
7179         * modules/fflush (Depends-on): Remove fclose.
7180         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
7181         combination with module 'fclose'.
7182
7183 2011-05-05  Bruno Haible  <bruno@clisp.org>
7184
7185         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
7186         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
7187         gl_FUNC_FFLUSH.
7188         (gl_FUNC_FFLUSH): Use it.
7189         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
7190         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
7191         gl_REPLACE_FSEEKO here.
7192
7193 2011-05-05  Bruno Haible  <bruno@clisp.org>
7194
7195         tzset: Relicense under LGPL.
7196         * modules/tzset (License): Change to LGPL.
7197         No agreement needed; it's a no-op.
7198
7199         strtoimax, strtoumax: Relicense under LGPL.
7200         * modules/strtoimax (License): Change to LGPL.
7201         * modules/strtoumax (License): Likewise.
7202         With permission from Jim Meyering, Paul Eggert:
7203         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
7204         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
7205
7206         getgroups: Relicense under LGPL.
7207         * modules/getgroups (License): Change to LGPL.
7208         With permission from Jim Meyering, Paul Eggert, Eric Blake:
7209         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
7210         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
7211         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
7212
7213         nanosleep: Relicense under LGPL.
7214         * modules/nanosleep (License): Change to LGPL.
7215         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
7216         Haible:
7217         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
7218         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
7219         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
7220         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
7221
7222         futimens: Relicense under LGPL.
7223         * modules/futimens (License): Change to LGPL.
7224         With permission from Eric Blake:
7225         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
7226
7227         fflush: Relicense under LGPL.
7228         * modules/fflush (License): Change to LGPL.
7229         With permission from Eric Blake, Bruno Haible, Jim Meyering:
7230         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
7231         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
7232         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
7233
7234         tmpfile: Relicense under LGPL.
7235         * modules/tmpfile (License): Change to LGPL.
7236         With permission from Ben Pfaff:
7237         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
7238
7239         isfinite: Relicense under LGPL.
7240         * modules/isfinite (License): Change to LGPL.
7241         With permission from Ben Pfaff, Bruno Haible:
7242         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
7243         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
7244
7245         acosl..tanl: Relicense under LGPL.
7246         * modules/acosl (License): Change to LGPL.
7247         * modules/asinl (License): Likewise.
7248         * modules/atanl (License): Likewise.
7249         * modules/cosl (License): Likewise.
7250         * modules/expl (License): Likewise.
7251         * modules/logl (License): Likewise.
7252         * modules/sinl (License): Likewise.
7253         * modules/sqrtl (License): Likewise.
7254         * modules/tanl (License): Likewise.
7255         Source code originally from glibc and Paolo Bonzini. Agreements:
7256         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
7257         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
7258
7259 2011-05-05  Bruno Haible  <bruno@clisp.org>
7260
7261         signal: Define sighandler_t.
7262         * lib/signal.in.h (sighandler_t): New type.
7263         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
7264         whether sighandler_t is defined.
7265         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
7266         * modules/signal (Depends-on): Add extensions.
7267         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
7268         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
7269         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
7270
7271 2011-05-05  Eric Blake  <eblake@redhat.com>
7272
7273         maint: remove useless REPLACE_*_H macros
7274         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
7275         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
7276         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
7277         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
7278         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
7279         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
7280         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
7281         * m4/btowc.m4: Update callers.
7282         * m4/dirfd.m4: Likewise.
7283         * m4/duplocale.m4: Likewise.
7284         * m4/fchdir.m4: Likewise.
7285         * m4/fdopendir.m4: Likewise.
7286         * m4/inet_ntop.m4: Likewise.
7287         * m4/inet_pton.m4: Likewise.
7288         * m4/ioctl.m4: Likewise.
7289         * m4/mbrlen.m4: Likewise.
7290         * m4/mbrtowc.m4: Likewise.
7291         * m4/mbsinit.m4: Likewise.
7292         * m4/mbsnrtowcs.m4: Likewise.
7293         * m4/mbsrtowcs.m4: Likewise.
7294         * m4/poll.m4: Likewise.
7295         * m4/setlocale.m4: Likewise.
7296         * m4/wcrtomb.m4: Likewise.
7297         * m4/wcsnrtombs.m4: Likewise.
7298         * m4/wcsrtombs.m4: Likewise.
7299         * m4/wctob.m4: Likewise.
7300         * m4/wcwidth.m4: Likewise.
7301         * modules/posix_spawn: Likewise.
7302         * modules/posix_spawn_file_actions_addclose: Likewise.
7303         * modules/posix_spawn_file_actions_adddup2: Likewise.
7304         * modules/posix_spawn_file_actions_addopen: Likewise.
7305         * modules/posix_spawn_file_actions_destroy: Likewise.
7306         * modules/posix_spawn_file_actions_init: Likewise.
7307         * modules/posix_spawnattr_destroy: Likewise.
7308         * modules/posix_spawnattr_getflags: Likewise.
7309         * modules/posix_spawnattr_getpgroup: Likewise.
7310         * modules/posix_spawnattr_getschedparam: Likewise.
7311         * modules/posix_spawnattr_getschedpolicy: Likewise.
7312         * modules/posix_spawnattr_getsigdefault: Likewise.
7313         * modules/posix_spawnattr_getsigmask: Likewise.
7314         * modules/posix_spawnattr_init: Likewise.
7315         * modules/posix_spawnattr_setflags: Likewise.
7316         * modules/posix_spawnattr_setpgroup: Likewise.
7317         * modules/posix_spawnattr_setschedparam: Likewise.
7318         * modules/posix_spawnattr_setschedpolicy: Likewise.
7319         * modules/posix_spawnattr_setsigdefault: Likewise.
7320         * modules/posix_spawnattr_setsigmask: Likewise.
7321         * modules/posix_spawnp: Likewise.
7322
7323 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
7324
7325         Add option to do-release-commit-and-tag to specify branch.
7326         * build-aux/do-release-commit-and-tag: Add --branch.
7327
7328 2011-05-03  Bruno Haible  <bruno@clisp.org>
7329
7330         Avoid unnecessary compilation units, through conditional dependencies.
7331         * modules/accept (Depends-on): Add conditions to the dependencies.
7332         * modules/acosl (Depends-on): Likewise.
7333         * modules/argz (Depends-on): Likewise.
7334         * modules/asinl (Depends-on): Likewise.
7335         * modules/atanl (Depends-on): Likewise.
7336         * modules/atoll (Depends-on): Likewise.
7337         * modules/bind (Depends-on): Likewise.
7338         * modules/btowc (Depends-on): Likewise.
7339         * modules/canonicalize-lgpl (Depends-on): Likewise.
7340         * modules/ceil (Depends-on): Likewise.
7341         * modules/ceilf (Depends-on): Likewise.
7342         * modules/ceill (Depends-on): Likewise.
7343         * modules/chdir-long (Depends-on): Likewise.
7344         * modules/chown (Depends-on): Likewise.
7345         * modules/close (Depends-on): Likewise.
7346         * modules/connect (Depends-on): Likewise.
7347         * modules/cosl (Depends-on): Likewise.
7348         * modules/dirfd (Depends-on): Likewise.
7349         * modules/dprintf (Depends-on): Likewise.
7350         * modules/dprintf-posix (Depends-on): Likewise.
7351         * modules/error (Depends-on): Likewise.
7352         * modules/euidaccess (Depends-on): Likewise.
7353         * modules/expl (Depends-on): Likewise.
7354         * modules/faccessat (Depends-on): Likewise.
7355         * modules/fchdir (Depends-on): Likewise.
7356         * modules/fclose (Depends-on): Likewise.
7357         * modules/fcntl (Depends-on): Likewise.
7358         * modules/fdopendir (Depends-on): Likewise.
7359         * modules/fflush (Depends-on): Likewise.
7360         * modules/floor (Depends-on): Likewise.
7361         * modules/floorf (Depends-on): Likewise.
7362         * modules/floorl (Depends-on): Likewise.
7363         * modules/fnmatch (Depends-on): Likewise.
7364         * modules/fopen (Depends-on): Likewise.
7365         * modules/fprintf-posix (Depends-on): Likewise.
7366         * modules/frexp (Depends-on): Likewise.
7367         * modules/frexp-nolibm (Depends-on): Likewise.
7368         * modules/frexpl (Depends-on): Likewise.
7369         * modules/frexpl-nolibm (Depends-on): Likewise.
7370         * modules/fseek (Depends-on): Likewise.
7371         * modules/fsusage (Depends-on): Likewise.
7372         * modules/ftell (Depends-on): Likewise.
7373         * modules/ftello (Depends-on): Likewise.
7374         * modules/futimens (Depends-on): Likewise.
7375         * modules/getcwd (Depends-on): Likewise.
7376         * modules/getcwd-lgpl (Depends-on): Likewise.
7377         * modules/getdelim (Depends-on): Likewise.
7378         * modules/getdomainname (Depends-on): Likewise.
7379         * modules/getgroups (Depends-on): Likewise.
7380         * modules/gethostname (Depends-on): Likewise.
7381         * modules/getline (Depends-on): Likewise.
7382         * modules/getlogin_r (Depends-on): Likewise.
7383         * modules/getopt-posix (Depends-on): Likewise.
7384         * modules/getpeername (Depends-on): Likewise.
7385         * modules/getsockname (Depends-on): Likewise.
7386         * modules/getsockopt (Depends-on): Likewise.
7387         * modules/getsubopt (Depends-on): Likewise.
7388         * modules/getusershell (Depends-on): Likewise.
7389         * modules/glob (Depends-on): Likewise.
7390         * modules/grantpt (Depends-on): Likewise.
7391         * modules/iconv_open (Depends-on): Likewise.
7392         * modules/iconv_open-utf (Depends-on): Likewise.
7393         * modules/inet_ntop (Depends-on): Likewise.
7394         * modules/inet_pton (Depends-on): Likewise.
7395         * modules/ioctl (Depends-on): Likewise.
7396         * modules/isapipe (Depends-on): Likewise.
7397         * modules/isfinite (Depends-on): Likewise.
7398         * modules/isinf (Depends-on): Likewise.
7399         * modules/lchown (Depends-on): Likewise.
7400         * modules/ldexpl (Depends-on): Likewise.
7401         * modules/link (Depends-on): Likewise.
7402         * modules/linkat (Depends-on): Likewise.
7403         * modules/listen (Depends-on): Likewise.
7404         * modules/logl (Depends-on): Likewise.
7405         * modules/lstat (Depends-on): Likewise.
7406         * modules/mbrlen (Depends-on): Likewise.
7407         * modules/mbrtowc (Depends-on): Likewise.
7408         * modules/mbsinit (Depends-on): Likewise.
7409         * modules/mbsnrtowcs (Depends-on): Likewise.
7410         * modules/mbsrtowcs (Depends-on): Likewise.
7411         * modules/mbtowc (Depends-on): Likewise.
7412         * modules/memcmp (Depends-on): Likewise.
7413         * modules/mkdir (Depends-on): Likewise.
7414         * modules/mkdtemp (Depends-on): Likewise.
7415         * modules/mkfifo (Depends-on): Likewise.
7416         * modules/mkfifoat (Depends-on): Likewise.
7417         * modules/mknod (Depends-on): Likewise.
7418         * modules/mkostemp (Depends-on): Likewise.
7419         * modules/mkostemps (Depends-on): Likewise.
7420         * modules/mkstemp (Depends-on): Likewise.
7421         * modules/mkstemps (Depends-on): Likewise.
7422         * modules/mktime (Depends-on): Likewise.
7423         * modules/nanosleep (Depends-on): Likewise.
7424         * modules/open (Depends-on): Likewise.
7425         * modules/openat (Depends-on): Likewise.
7426         * modules/perror (Depends-on): Likewise.
7427         * modules/poll (Depends-on): Likewise.
7428         * modules/popen (Depends-on): Likewise.
7429         * modules/posix_spawn (Depends-on): Likewise.
7430         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
7431         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
7432         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
7433         * modules/posix_spawnp (Depends-on): Likewise.
7434         * modules/pread (Depends-on): Likewise.
7435         * modules/printf-posix (Depends-on): Likewise.
7436         * modules/ptsname (Depends-on): Likewise.
7437         * modules/putenv (Depends-on): Likewise.
7438         * modules/pwrite (Depends-on): Likewise.
7439         * modules/readline (Depends-on): Likewise.
7440         * modules/readlink (Depends-on): Likewise.
7441         * modules/readlinkat (Depends-on): Likewise.
7442         * modules/recv (Depends-on): Likewise.
7443         * modules/recvfrom (Depends-on): Likewise.
7444         * modules/regex (Depends-on): Likewise.
7445         * modules/remove (Depends-on): Likewise.
7446         * modules/rename (Depends-on): Likewise.
7447         * modules/renameat (Depends-on): Likewise.
7448         * modules/rmdir (Depends-on): Likewise.
7449         * modules/round (Depends-on): Likewise.
7450         * modules/roundf (Depends-on): Likewise.
7451         * modules/roundl (Depends-on): Likewise.
7452         * modules/rpmatch (Depends-on): Likewise.
7453         * modules/select (Depends-on): Likewise.
7454         * modules/send (Depends-on): Likewise.
7455         * modules/sendto (Depends-on): Likewise.
7456         * modules/setenv (Depends-on): Likewise.
7457         * modules/setlocale (Depends-on): Likewise.
7458         * modules/setsockopt (Depends-on): Likewise.
7459         * modules/shutdown (Depends-on): Likewise.
7460         * modules/sigaction (Depends-on): Likewise.
7461         * modules/signbit (Depends-on): Likewise.
7462         * modules/sigprocmask (Depends-on): Likewise.
7463         * modules/sinl (Depends-on): Likewise.
7464         * modules/sleep (Depends-on): Likewise.
7465         * modules/snprintf (Depends-on): Likewise.
7466         * modules/snprintf-posix (Depends-on): Likewise.
7467         * modules/socket (Depends-on): Likewise.
7468         * modules/sprintf-posix (Depends-on): Likewise.
7469         * modules/sqrtl (Depends-on): Likewise.
7470         * modules/stat (Depends-on): Likewise.
7471         * modules/strchrnul (Depends-on): Likewise.
7472         * modules/strdup-posix (Depends-on): Likewise.
7473         * modules/strerror (Depends-on): Likewise.
7474         * modules/strerror_r-posix (Depends-on): Likewise.
7475         * modules/strndup (Depends-on): Likewise.
7476         * modules/strnlen (Depends-on): Likewise.
7477         * modules/strptime (Depends-on): Likewise.
7478         * modules/strsep (Depends-on): Likewise.
7479         * modules/strsignal (Depends-on): Likewise.
7480         * modules/strstr-simple (Depends-on): Likewise.
7481         * modules/strtod (Depends-on): Likewise.
7482         * modules/strtoimax (Depends-on): Likewise.
7483         * modules/strtok_r (Depends-on): Likewise.
7484         * modules/strtoumax (Depends-on): Likewise.
7485         * modules/symlink (Depends-on): Likewise.
7486         * modules/symlinkat (Depends-on): Likewise.
7487         * modules/tanl (Depends-on): Likewise.
7488         * modules/tcgetsid (Depends-on): Likewise.
7489         * modules/tmpfile (Depends-on): Likewise.
7490         * modules/trunc (Depends-on): Likewise.
7491         * modules/truncf (Depends-on): Likewise.
7492         * modules/truncl (Depends-on): Likewise.
7493         * modules/uname (Depends-on): Likewise.
7494         * modules/unlink (Depends-on): Likewise.
7495         * modules/unlockpt (Depends-on): Likewise.
7496         * modules/unsetenv (Depends-on): Likewise.
7497         * modules/usleep (Depends-on): Likewise.
7498         * modules/utimensat (Depends-on): Likewise.
7499         * modules/vasprintf (Depends-on): Likewise.
7500         * modules/vdprintf (Depends-on): Likewise.
7501         * modules/vdprintf-posix (Depends-on): Likewise.
7502         * modules/vfprintf-posix (Depends-on): Likewise.
7503         * modules/vprintf-posix (Depends-on): Likewise.
7504         * modules/vsnprintf (Depends-on): Likewise.
7505         * modules/vsnprintf-posix (Depends-on): Likewise.
7506         * modules/vsprintf-posix (Depends-on): Likewise.
7507         * modules/wcrtomb (Depends-on): Likewise.
7508         * modules/wcscasecmp (Depends-on): Likewise.
7509         * modules/wcscspn (Depends-on): Likewise.
7510         * modules/wcsdup (Depends-on): Likewise.
7511         * modules/wcsncasecmp (Depends-on): Likewise.
7512         * modules/wcsnrtombs (Depends-on): Likewise.
7513         * modules/wcspbrk (Depends-on): Likewise.
7514         * modules/wcsrtombs (Depends-on): Likewise.
7515         * modules/wcsspn (Depends-on): Likewise.
7516         * modules/wcsstr (Depends-on): Likewise.
7517         * modules/wcstok (Depends-on): Likewise.
7518         * modules/wcswidth (Depends-on): Likewise.
7519         * modules/wctob (Depends-on): Likewise.
7520         * modules/wctomb (Depends-on): Likewise.
7521         * modules/wctype (Depends-on): Likewise.
7522         * modules/wcwidth (Depends-on): Likewise.
7523         * modules/write (Depends-on): Likewise.
7524
7525 2011-05-03  Bruno Haible  <bruno@clisp.org>
7526
7527         Support for conditional dependencies.
7528         * doc/gnulib.texi (Module description): Document the syntax of
7529         conditional dependencies.
7530         * gnulib-tool: New option --conditional-dependencies.
7531         (func_usage): Document it.
7532         (cond_dependencies): New variable.
7533         (func_get_automake_snippet_conditional,
7534         func_get_automake_snippet_unconditional): New functions, extracted from
7535         func_get_automake_snippet.
7536         (func_get_automake_snippet): Use them.
7537         (sed_first_32_chars): New variable.
7538         (func_module_shellfunc_name): New function.
7539         (func_module_shellvar_name): New function.
7540         (func_module_conditional_name): New function.
7541         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
7542         func_cond_module_condition): New functions.
7543         (func_modules_transitive_closure): Add support for conditional
7544         dependencies.
7545         (func_emit_lib_Makefile_am): For a conditional module, enclose the
7546         conditional automake snippet in an automake conditional.
7547         (func_emit_autoconf_snippets): Emit shell functions that contain the
7548         code for conditional modules.
7549         (func_import, func_create_testdir): Update specification.
7550
7551 2011-05-03  Eric Blake  <eblake@redhat.com>
7552
7553         test-getaddrinfo: report error information
7554         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
7555
7556 2011-05-03  Jim Meyering  <meyering@redhat.com>
7557
7558         bootstrap: avoid build failure when $GZIP is set
7559         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
7560         program name.  If defined at all, it is supposed to list gzip options.
7561         Reported by Alan Curry in http://debbugs.gnu.org/8609
7562
7563 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
7564
7565         readme-release: new module with release instructions
7566         * modules/readme-release: New module.
7567         * top/README-release: New file, from coreutils, grep, diffutils.
7568         * MODULES.html.sh (Support for maintaining and releasing): Add it.
7569
7570 2011-05-02  Eric Blake  <eblake@redhat.com>
7571
7572         fflush: also replace fclose when fixing fflush
7573         * modules/fflush (Depends-on): Add fclose.
7574         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
7575         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
7576         memstreams with no backing fd.
7577         * doc/posix-functions/fclose.texi (fclose): Document the use of
7578         fflush module to fix the bug.
7579         * tests/test-fclose.c (main): Relax test when fclose is used in
7580         isolation.
7581
7582         fclose: add some tests
7583         * modules/fclose-tests: New test module.
7584         * tests/test-fclose.c: New file.
7585         * doc/posix-functions/fclose.texi (fclose): Document the bug.
7586
7587         fclose: reduced dependencies
7588         * modules/fclose (Depends-on): Switch from fflush/fseeko to
7589         simpler lseek.
7590         * lib/fclose.c (rpl_fclose): Likewise.
7591         Reported by Simon Josefsson.
7592
7593         exit: drop remaining clients
7594         * modules/argmatch (Depends-on): Replace exit with stdlib.
7595         * modules/copy-file (Depends-on): Likewise.
7596         * modules/execute (Depends-on): Likewise.
7597         * modules/exitfail (Depends-on): Likewise.
7598         * modules/obstack (Depends-on): Likewise.
7599         * modules/pagealign_alloc (Depends-on): Likewise.
7600         * modules/pipe-filter-gi (Depends-on): Likewise.
7601         * modules/pipe-filter-ii (Depends-on): Likewise.
7602         * modules/savewd (Depends-on): Likewise.
7603         * modules/spawn-pipe (Depends-on): Likewise.
7604         * modules/wait-process (Depends-on): Likewise.
7605         * modules/xsetenv (Depends-on): Likewise.
7606         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
7607         * modules/git-merge-changelog (Depends-on): Likewise.
7608         * modules/long-options (Depends-on): Likewise.
7609         * modules/pt_chown (Depends-on): Likewise.
7610         * modules/sysexits (Depends-on): Likewise.
7611
7612         freading: relax license from LGPLv3+ to LGPLv2+
7613         * modules/freading (License): Relax LGPL version.
7614
7615 2011-05-02  Bruno Haible  <bruno@clisp.org>
7616
7617         fchdir: Remove unused dependencies.
7618         * modules/fchdir (Depends-on): Remove include_next.
7619
7620 2011-05-02  Bruno Haible  <bruno@clisp.org>
7621
7622         gnulib-tool: Refactor.
7623         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
7624         from func_emit_autoconf_snippets.
7625         (func_emit_autoconf_snippets): Use it.
7626
7627 2011-05-02  Simon Josefsson  <simon@josefsson.org>
7628
7629         * NEWS: Document removal of 'exit'.
7630         * modules/exit: Remove file.
7631
7632 2011-05-01  Bruno Haible  <bruno@clisp.org>
7633
7634         Update DEPENDENCIES.
7635         * DEPENDENCIES (gettext): Recommend the newest release.
7636         Reported by Simon Josefsson.
7637
7638 2011-05-01  Bruno Haible  <bruno@clisp.org>
7639
7640         gnulib-tool: Reduce code duplication.
7641         * gnulib-tool (func_emit_autoconf_snippets): New function.
7642         (func_import, func_create_testdir): Use it.
7643
7644 2011-04-30  Eric Blake  <eblake@redhat.com>
7645
7646         fclose: don't fail on non-seekable input stream
7647         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
7648         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
7649         since fflush is allowed to fail in that case.
7650
7651 2011-04-30  Bruno Haible  <bruno@clisp.org>
7652
7653         dup3: cleanup
7654         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
7655
7656 2011-04-30  Bruno Haible  <bruno@clisp.org>
7657
7658         netdb: Make it work in C++ mode.
7659         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
7660         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
7661         module.
7662         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
7663         gl_MODULE_INDICATOR_FOR_TESTS.
7664         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
7665         * modules/netdb-c++-tests: New file.
7666         * tests/test-netdb-c++.cc: New file.
7667
7668 2011-04-30  Bruno Haible  <bruno@clisp.org>
7669
7670         New modules 'vfscanf', 'vscanf'.
7671         * modules/vfscanf: New file.
7672         * modules/vscanf: New file.
7673         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
7674         here.
7675         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
7676         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
7677
7678 2011-04-30  Bruno Haible  <bruno@clisp.org>
7679
7680         passfd: Add comments.
7681         * lib/passfd.c: Add comments about platforms.
7682
7683 2011-04-30  Bruno Haible  <bruno@clisp.org>
7684
7685         sys_uio: Make <sys/uio.h> self-contained.
7686         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
7687         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
7688
7689 2011-04-30  Bruno Haible  <bruno@clisp.org>
7690
7691         sys_socket: Ensure 'struct iovec' definition.
7692         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
7693         <sys/socket.h>.
7694         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
7695
7696 2011-04-30  Bruno Haible  <bruno@clisp.org>
7697
7698         sys_uio: Protect definition of 'struct iovec'.
7699         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
7700         it as a C struct.
7701
7702 2011-04-30  Bruno Haible  <bruno@clisp.org>
7703
7704         manywarnings: fix indentation
7705         * m4/manywarnings.m4: Indent by 2 spaces consistently.
7706
7707 2011-04-30  Pádraig Brady <P@draigBrady.com>
7708
7709         manywarnings: add -Wno-missing-field-initializers if needed.
7710         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
7711         option if it's needed to allow initialization with { 0, }
7712
7713 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
7714
7715         announce-gen: cosmetic improvement
7716         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
7717
7718 2011-04-29  Jim Meyering  <meyering@redhat.com>
7719
7720         vc-list-files: indent with spaces, not TABs
7721         * build-aux/vc-list-files: Convert leading TABs to spaces,
7722         to match the style of most other files in gnulib.
7723
7724         announce-gen: indent with spaces, not TABs
7725         * build-aux/announce-gen: Convert all TABs to spaces, to match
7726         the style of most other files in gnulib.
7727
7728 2011-04-29  Eric Blake  <eblake@redhat.com>
7729
7730         quotearg: avoid uninitialized variable use
7731         * lib/quotearg.c (quoting_options_from_style): Initialize
7732         remaining fields, and ensure that custom styles are only used via
7733         quoting_options rather than quoting_style.
7734
7735 2011-04-29  Jim Meyering  <meyering@redhat.com>
7736
7737         maint.mk: remove unused VC-tag variable
7738         * top/maint.mk (VC-tag): Remove unused variable.
7739
7740 2011-04-29  Bruno Haible  <bruno@clisp.org>
7741
7742         netdb: fix gai_strerror replacements
7743         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
7744         * modules/netdb: Substitute it.
7745
7746 2011-04-29  Jim Meyering  <meyering@redhat.com>
7747
7748         test-getcwd.c: avoid new set-but-not-used warning
7749         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
7750         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
7751         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
7752         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
7753
7754         test-hash.c: avoid a new shadowing warning
7755         * tests/test-hash.c (main): Don't shadow "dup".
7756
7757 2011-04-28  Eric Blake  <eblake@redhat.com>
7758
7759         getaddrinfo: fix gai_strerror signature
7760         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
7761         and work around mingw with UNICODE defined.
7762         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
7763         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
7764         * modules/netdb (Makefile.am): Substitute it.
7765         * lib/netdb.in.h (gai_strerror): Declare replacement.
7766         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
7767         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
7768         the fix.
7769
7770         getsockopt: avoid compiler warning
7771         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
7772         Reported by Matthias Bolte.
7773
7774         tests: drop unused link dependency
7775         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
7776         * modules/dirent-safer-tests (Makefile.am): Likewise.
7777         * modules/fdopendir-tests (Makefile.am): Likewise.
7778         * modules/mkfifoat-tests (Makefile.am): Likewise.
7779         * modules/openat-safer-tests (Makefile.am): Likewise.
7780         * modules/openat-tests (Makefile.am): Likewise.
7781         * modules/readlinkat-tests (Makefile.am): Likewise.
7782         * modules/symlinkat-tests (Makefile.am): Likewise.
7783         * modules/linkat-tests (Makefile.am): Likewise.
7784         (Depends-on): Switch to filenamecat-lgpl.
7785         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
7786         LIBINTL.
7787         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
7788         * tests/test-linkat.c (main): Don't require xalloc.
7789
7790         hash, mgetgroups: drop xalloc dependency
7791         * lib/hash.c (includes): Adjust includes.
7792         * lib/mgetgroups.c (includes): Likewise.
7793         (xgetgroups): Move...
7794         * lib/xgetgroups.c: ...to new file.
7795         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
7796         * modules/xgetgroups: New file, split from...
7797         * modules/mgetgroups: ...here.
7798         (Depends-on): Add xalloc-oversized.
7799         * modules/hash (Depends-on): Likewise.
7800         * modules/hash-tests (Depends-on): Drop xalloc.
7801         (test_hash_LDADD): Drop unused library.
7802         * tests/test-hash.c (main): Break xalloc dependency.
7803         (includes): Drop unused include.
7804
7805         xalloc-oversized: new module
7806         * modules/xalloc-oversized: New module.
7807         * modules/xalloc (Depends-on): Add it.
7808         * lib/xalloc.h (xalloc_oversized): Move...
7809         * lib/xalloc-oversized.h: ...into new file.
7810
7811         utimecmp: drop dependency on xmalloc
7812         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
7813         due to memory pressure.
7814         * modules/utimecmp (Depends-on): Drop xalloc.
7815
7816 2011-04-27  Eric Blake  <eblake@redhat.com>
7817
7818         getcwd: fix mingw bugs
7819         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
7820         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
7821         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
7822
7823 2011-04-27  Bruno Haible  <bruno@clisp.org>
7824
7825         mkstemps: Ensure declaration on MacOS X 10.5.
7826         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
7827         * doc/glibc-functions/mkstemps.texi: Document header file problem on
7828         MacOS X.
7829
7830 2011-04-27  Bruno Haible  <bruno@clisp.org>
7831
7832         mkstemp: More documentation.
7833         * doc/posix-functions/mkstemp.texi: Document header file problem on
7834         MacOS X.
7835
7836 2011-04-27  Bruno Haible  <bruno@clisp.org>
7837
7838         mkstemp: Tweak configure message when cross-compiling.
7839         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
7840         result as a guess.
7841
7842 2011-04-27  Bruno Haible  <bruno@clisp.org>
7843
7844         clean-temp: Clarify what it does.
7845         * lib/clean-temp.h: Add more comments.
7846         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
7847         module.
7848         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
7849         * doc/glibc-functions/mkstemps.texi: Likewise.
7850         * doc/glibc-functions/mkostemps.texi: Likewise.
7851
7852 2011-04-27  Eric Blake  <eblake@redhat.com>
7853
7854         fchdir: avoid extra chdir and fix test
7855         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
7856         getcwd-lgpl.
7857         * lib/fchdir.c (get_name): Any absolute name will do; it does not
7858         have to be canonical.
7859         (canonicalize_file_name): Drop unused macro.
7860         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
7861
7862         filenamecat-lgpl: fix licence
7863         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
7864         when it was first created.
7865
7866         linkat, renameat: add missing dependency
7867         * modules/linkat (Depends-on): Require getcwd-lgpl.
7868         * modules/renameat (Depends-on): Likewise.
7869
7870         tests: reduce dependencies
7871         * tests/test-linkat.c (main): Use lighter-weight getcwd.
7872         * tests/test-renameat.c (main): Likewise.
7873         * modules/linkat-tests (Depends-on): Relax dependency.
7874         * modules/renameat-tests (Depends-on): Likewise.
7875         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
7876         dependency explicit.
7877
7878         save-cwd: reduce default dependency
7879         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
7880         * lib/save-cwd.c: Update comments.
7881         * NEWS: Document the semantic change.
7882
7883         getcwd: enhance tests
7884         * tests/test-getcwd-lgpl.c: New file, taken from...
7885         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
7886         repeat long path stress tests from m4 probe.
7887         * modules/getcwd-lgpl-tests: New module.
7888         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
7889         * m4/getcwd-abort-bug.m4: Update comment.
7890         * m4/getcwd-path-max.m4: Likewise.
7891
7892         getcwd-lgpl: new module
7893         * modules/getcwd-lgpl: New module.
7894         * lib/getcwd-lgpl.c: New file.
7895         * doc/posix-functions/getcwd.texi (getcwd): Document it.
7896         * MODULES.html.sh (lacking POSIX:2008): Likewise.
7897         * modules/getcwd (configure.ac): Set C witness.
7898         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
7899
7900         getcwd: tweak comments
7901         * m4/getcwd-abort-bug.m4: Fix comments.
7902         * m4/getcwd-path-max.m4: Likewise.
7903         * m4/getcwd.m4: Likewise.
7904
7905 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
7906         and Eric Blake  <eblake@redhat.com>
7907
7908         mkstemp: replace if system version uses wrong permissions
7909         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
7910         read/write mode bits set in file created by mkstemp.
7911         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
7912
7913 2011-04-27  Eric Blake  <eblake@redhat.com>
7914
7915         passfd: avoid compiler warning
7916         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
7917         Reported by Laine Stump.
7918
7919 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
7920
7921         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
7922         required by the NetBSD (and perhaps other 4.4BSD derived) join.
7923
7924 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
7925         and Eric Blake  <eblake@redhat.com>
7926
7927         mkstemp: mention clean-temp module
7928         * lib/mkstemp.c: Add comment.
7929         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
7930
7931 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
7932
7933         inttypes: also provide default values for 32-bit tests
7934         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
7935         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
7936
7937 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
7938
7939         strtoumax: remove dependency on strtoimax
7940         This is like the strtoull change of yesterday.
7941         * modules/strtoumax (Files): Add lib/strtoimax.c.
7942         (Depends-on): Remove strtoimax and add verify.
7943
7944         inttypes-incomplete: new module
7945         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
7946         all but the PRI* and SCN* parts of gl_INTTYPES_H.
7947         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
7948         of gl_INTTYPES_H.
7949         (gl_INTTYPES_H): Rewrite in terms of these new macros.
7950         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
7951         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
7952         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
7953         * modules/strtoumax, modules/xstrtol (Depends-on):
7954         Depend on inttypes-incomplete, not inttypes.
7955         * modules/inttypes-incomplete: New module, containing the contents
7956         of the old modules/inttypes module, except that the Files: section
7957         omits m4/inttypes-pri.m4, and the configure.ac section invokes
7958         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
7959         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
7960         (Depends-on): Depend only on inttypes-incomplete.
7961         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
7962
7963         inttypes: omit now-redundant strtoimax and strtoumax work
7964         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
7965         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
7966
7967         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
7968         This supports apps that need pointers to strtoimax and strtoumax,
7969         and ports to HP-UX 11.00 64.bit, which has macros that expand to
7970         nonexistent functions.  See
7971         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
7972         et seq.
7973         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
7974         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
7975         a macro.
7976         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
7977
7978 2011-04-25  Simon Josefsson  <simon@josefsson.org>
7979
7980         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
7981
7982 2011-04-25  Bruno Haible  <bruno@clisp.org>
7983
7984         strtol, strtoul: Mark modules as obsolete.
7985         * modules/strtol (Status, Notice): New sections.
7986         * modules/strtoul (Status, Notice): New sections.
7987
7988 2011-04-25  Bruno Haible  <bruno@clisp.org>
7989
7990         strtod: Remove check for strtod, unless supporting old platforms.
7991         * modules/strtod-obsolete: New file.
7992         * m4/strtod-obsolete.m4: New file.
7993         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
7994         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
7995         * modules/strtod (Depends-on): Add strtod-obsolete.
7996         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
7997
7998 2011-04-25  Bruno Haible  <bruno@clisp.org>
7999
8000         strcase: Make module obsolete.
8001         * modules/strcase (Status, Notice): New sections.
8002
8003 2011-04-25  Bruno Haible  <bruno@clisp.org>
8004
8005         dup2: Remove check for dup2, unless supporting old obsolete platforms.
8006         * modules/dup2-obsolete: New file.
8007         * m4/dup2-obsolete.m4: New file.
8008         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
8009         gl_FUNC_DUP2_OBSOLETE is not also defined.
8010         * modules/dup2 (Depends-on): Add dup2-obsolete.
8011         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
8012
8013 2011-04-25  Bruno Haible  <bruno@clisp.org>
8014
8015         strnlen: Avoid memchr related link error on old obsolete platforms.
8016         * modules/memchr-obsolete: New file.
8017         * m4/memchr-obsolete.m4: New file.
8018         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
8019         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
8020         * modules/memchr (Depends-on): Add memchr-obsolete.
8021         * modules/strnlen (Depends-on): Likewise.
8022         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
8023
8024 2011-04-25  Jim Meyering  <meyering@redhat.com>
8025
8026         maint.mk: makefile_at_at_check extend and clean up
8027         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
8028         in addition to */Makefile.am.
8029         Exempt legitimate uses of @VAR@ notation, e.g.,
8030         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
8031         Remove obsolete coreutils-specific comment.
8032         Prompted by discussion here:
8033         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
8034
8035 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
8036
8037         strtoul: remove dependency on strtol
8038         This is so that 'configure' need not check for strtol merely because
8039         the application needs strtoul.
8040         * modules/strtoul (Files): Add lib/strtol.c.
8041         (Depends-on): Remove strtol.
8042
8043         strtoull: remove dependency on strtoul
8044         This is like the strtoll change.
8045         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
8046         (Depends-on): Remove strtoul.
8047
8048         strtoll: remove dependency on strtol
8049         This is so that 'configure' need not check for strtol merely because
8050         the application needs strtoll.
8051         * modules/strtoll (Files): Add lib/strtol.c.
8052         (Depends-on): Remove strtol.
8053
8054 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8055
8056         inttypes: Move some configure check to module 'imaxdiv'.
8057         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
8058         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
8059         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
8060
8061 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8062
8063         inttypes: Move some configure check to module 'imaxabs'.
8064         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
8065         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
8066         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
8067
8068 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8069
8070         inttypes: Remove configure tests that are not needed since 2009-12-31.
8071         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
8072         gl_cv_header_working_inttypes_h.
8073
8074 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8075
8076         * modules/strnlen (Depends-on): Remove memchr.
8077         The strnlen implementation doesn't need the memchr module's fixes; see
8078         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
8079
8080         strtol: remove dependency on wchar
8081         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
8082         * modules/strtol (Depends-on): Remove wchar.
8083
8084 2011-04-21  Eric Blake  <eblake@redhat.com>
8085
8086         passfd: fix test regression on Linux
8087         * modules/passfd-tests (configure.ac): Correct socketpair check.
8088
8089         passfd: speed up configure and drop unused code
8090         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
8091         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
8092         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
8093         Instead of probing at configure for unix_scm_rights_bsd44_way,
8094         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
8095         check to a struct member probe.
8096         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
8097         (sendfd, recvfd): Update preprocessor checks.
8098         * modules/passfd (Files): Reflect rename, and drop unused file.
8099         (Depends-on): Drop unused dependency.
8100
8101         passfd: allow compilation on mingw
8102         * modules/sys_socket (Depends-on): Add sys_uio.
8103         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
8104         iovec and a minimal struct msghdr.
8105         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
8106         * tests/test-sys_socket.c (main): Enhance test.
8107         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
8108         guaranteed to provide what we need.
8109         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
8110         * modules/passfd-tests (Depends-on): Add sys_wait.
8111         * tests/test-passfd.c (main): Skip test on mingw, for now.
8112         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
8113         partial 'struct msghdr' implementation.
8114
8115         sys_uio: new module
8116         * modules/sys_uio: New module.
8117         * modules/sys_uio-tests: Likewise.
8118         * lib/sys_uio.in.h: New file.
8119         * m4/sys_uio_h.m4: Likewise.
8120         * tests/test-sys_uio.c: Likewise.
8121         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
8122         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
8123
8124 2011-04-20  Jim Meyering  <meyering@redhat.com>
8125
8126         useless-if-before-free: avoid false-positive
8127         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
8128         disjunct so that it too requires a terminating ";".  Without that,
8129         this script would identify as useless one statement from gcc that
8130         was not:
8131           if (aligned_ptr)
8132             free (((void **) aligned_ptr) [-1]);
8133
8134 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
8135
8136         doc: update users.txt.
8137         * users.txt: Add barcode.
8138
8139 2011-04-19  Bruno Haible  <bruno@clisp.org>
8140
8141         ioctl: Remove link dependency on native Windows.
8142         * lib/fd-hook.h: Renamed from lib/close-hook.h.
8143         (gl_close_fn, gl_ioctl_fn): New types.
8144         (struct fd_hook): Renamed from struct close_hook. Change type of
8145         private_close_fn field. Add private_ioctl_fn field.
8146         (close_hook_fn): Add parameter for primary close method.
8147         (execute_close_hooks, execute_all_close_hooks): Likewise.
8148         (ioctl_hook_fn): New type.
8149         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
8150         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
8151         argument.
8152         (unregister_fd_hook): Renamed from unregister_close_hook.
8153         * lib/fd-hook.c: Renamed from lib/close-hook.c.
8154         Don't include <unistd.h>.
8155         (close): Remove undef.
8156         (anchor): Update.
8157         (execute_close_hooks): Add argument for primary close method.
8158         (execute_all_close_hooks): Likewise.
8159         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
8160         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
8161         argument. Allow each argument to be NULL.
8162         (unregister_fd_hook): Renamed from unregister_close_hook.
8163         * lib/close.c (rpl_close): Pass 'close' function pointer to
8164         execute_all_close_hooks.
8165         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
8166         (primary_ioctl): New function.
8167         (ioctl): Don't call ioctlsocket here. Instead, call
8168         execute_all_ioctl_hooks.
8169         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
8170         close method.
8171         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
8172         (fd_sockets_hook): Renamed from close_sockets_hook.
8173         (gl_sockets_startup, gl_sockets_cleanup): Update.
8174         * modules/fd-hook: Renamed from modules/close-hook. Update.
8175         * modules/close (Depends-on): Add fd-hook, remove close-hook.
8176         * modules/sockets (Depends-on): Likewise.
8177         * modules/ioctl (Depends-on): Add fd-hook.
8178         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
8179         GNULIB_SOCKET.
8180
8181 2011-04-19  Bruno Haible  <bruno@clisp.org>
8182
8183         Move the support of O_NONBLOCK in open() to the 'open' module.
8184         * modules/nonblocking (Depends-on): Remove 'open'.
8185         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
8186         gl_cv_have_open_O_NONBLOCK.
8187         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
8188         O_NONBLOCK support.
8189         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
8190
8191 2011-04-17  Bruno Haible  <bruno@clisp.org>
8192
8193         pipe2: Simplify code.
8194         * lib/pipe2.c (pipe2): Reduce code duplication.
8195
8196 2011-04-17  Bruno Haible  <bruno@clisp.org>
8197
8198         nonblocking: Add comment.
8199         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
8200
8201 2011-04-17  Bruno Haible  <bruno@clisp.org>
8202
8203         nonblocking: Add tests for sockets.
8204         * tests/test-nonblocking-socket.sh: New file.
8205         * tests/test-nonblocking-socket-main.c: New file.
8206         * tests/test-nonblocking-socket-child.c: New file.
8207         * tests/test-nonblocking-socket.h: New file.
8208         * tests/socket-server.h: New file.
8209         * tests/socket-client.h: New file.
8210         * modules/nonblocking-socket-tests: New file.
8211         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
8212
8213 2011-04-17  Bruno Haible  <bruno@clisp.org>
8214
8215         nonblocking: Add tests for pipes.
8216         * tests/test-nonblocking-pipe.sh: New file.
8217         * tests/test-nonblocking-pipe-main.c: New file.
8218         * tests/test-nonblocking-pipe-child.c: New file.
8219         * tests/test-nonblocking-pipe.h: New file.
8220         * tests/test-nonblocking-writer.h: New file.
8221         * tests/test-nonblocking-reader.h: New file.
8222         * tests/test-nonblocking-misc.h: New file.
8223         * modules/nonblocking-pipe-tests: New file.
8224         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
8225
8226 2011-04-16  Bruno Haible  <bruno@clisp.org>
8227
8228         gettext: Clarify the needed programmer actions.
8229         * modules/gettext (Notice): New field.
8230         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
8231
8232 2011-04-16  Bruno Haible  <bruno@clisp.org>
8233
8234         strchrnul: Tweak last commit.
8235         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
8236         bug.
8237         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
8238         as in _GL_FUNCDECL_SYS.
8239         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
8240         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
8241
8242 2011-04-15  Eric Blake  <eblake@redhat.com>
8243
8244         strchrnul: work around cygwin bug
8245         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
8246         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
8247         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
8248         * modules/string (Makefile.am): Substitute it.
8249         * lib/string.in.h (strchrnul): Use it.
8250
8251 2011-04-15  Bruno Haible  <bruno@clisp.org>
8252
8253         Don't require lib/stdio-write.c when only module 'stdio' is used.
8254         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
8255         invocation.
8256         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
8257
8258 2011-04-14  Bruno Haible  <bruno@clisp.org>
8259
8260         Support non-blocking pipe I/O in read() on native Windows.
8261         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
8262         (read): New declaration.
8263         * lib/read.c: New file.
8264         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
8265         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
8266         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
8267         vscanf): New declarations.
8268         * lib/stdio-read.c: New file.
8269         * m4/read.m4: New file.
8270         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
8271         REPLACE_READ.
8272         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
8273         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
8274         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
8275         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
8276         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
8277         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
8278         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
8279         * modules/read: New file.
8280         * modules/nonblocking (Files): Add lib/stdio-read.c.
8281         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
8282         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
8283         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
8284         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
8285         * modules/pread (Depends-on): Add read.
8286         * modules/safe-read (Depends-on): Likewise.
8287         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
8288         gets, scanf, vfscanf, vscanf): Verify signatures.
8289         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
8290         problem with non-blocking pipes.
8291         * doc/posix-functions/fgetc.texi: Likewise.
8292         * doc/posix-functions/fgets.texi: Likewise.
8293         * doc/posix-functions/fread.texi: Likewise.
8294         * doc/posix-functions/fscanf.texi: Likewise.
8295         * doc/posix-functions/getc.texi: Likewise.
8296         * doc/posix-functions/getchar.texi: Likewise.
8297         * doc/posix-functions/gets.texi: Likewise.
8298         * doc/posix-functions/scanf.texi: Likewise.
8299         * doc/posix-functions/vfscanf.texi: Likewise.
8300         * doc/posix-functions/vscanf.texi: Likewise.
8301
8302 2011-04-14  Bruno Haible  <bruno@clisp.org>
8303
8304         Support non-blocking pipe I/O in write() on native Windows.
8305         * lib/write.c (rpl_write): Split a write request that failed merely
8306         because the byte count was larger than the pipe buffer's size.
8307         * doc/posix-functions/write.texi: Mention the problem with large byte
8308         counts.
8309
8310 2011-04-14  Bruno Haible  <bruno@clisp.org>
8311
8312         wchar: Ensure that wchar_t gets defined on uClibc.
8313         * lib/wchar.in.h: On uClibc, include <stddef.h>.
8314         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
8315
8316 2011-04-13  Bruno Haible  <bruno@clisp.org>
8317
8318         safe-write, full-read: Avoid unnecessary compilation units.
8319         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
8320         (Depends-on): Remove safe-read. Add ssize_t.
8321         * modules/full-read (Files): Add lib/full-write.c.
8322         (Depends-on): Add full-write.
8323
8324 2011-04-13  Bruno Haible  <bruno@clisp.org>
8325
8326         Support non-blocking pipe I/O and SIGPIPE in pwrite().
8327         * modules/pwrite (Depends-on): Add 'write'.
8328
8329 2011-04-13  Bruno Haible  <bruno@clisp.org>
8330
8331         Support non-blocking pipe I/O in write() on native Windows.
8332         * lib/unistd.in.h (write): Enable replacement also if
8333         GNULIB_UNISTD_H_NONBLOCKING is 1.
8334         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
8335         (rpl_write): When failing to write on a non-blocking pipe, change
8336         errno from ENOSPC to EAGAIN.
8337         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
8338         putchar, puts, vfprintf, vprintf): Enable replacement also if
8339         GNULIB_STDIO_H_NONBLOCKING is 1.
8340         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
8341         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
8342         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
8343         CALL_WITH_SIGPIPE_EMULATION.
8344         (CALL_WITH_SIGPIPE_EMULATION): Use them.
8345         * m4/nonblocking.m4: New file.
8346         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
8347         for non-blocking I/O support.
8348         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8349         GNULIB_UNISTD_H_NONBLOCKING.
8350         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
8351         required for non-blocking I/O support.
8352         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
8353         * modules/nonblocking (Files): Add m4/nonblocking.m4,
8354         lib/stdio-write.c, m4/asm-underscore.m4.
8355         (Depends-on): Add stdio, unistd.
8356         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
8357         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
8358         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
8359         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
8360         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
8361         problem with non-blocking pipes.
8362         * doc/posix-functions/fputc.texi: Likewise.
8363         * doc/posix-functions/fputs.texi: Likewise.
8364         * doc/posix-functions/fwrite.texi: Likewise.
8365         * doc/posix-functions/printf.texi: Likewise.
8366         * doc/posix-functions/putc.texi: Likewise.
8367         * doc/posix-functions/putchar.texi: Likewise.
8368         * doc/posix-functions/puts.texi: Likewise.
8369         * doc/posix-functions/vfprintf.texi: Likewise.
8370         * doc/posix-functions/vprintf.texi: Likewise.
8371         * doc/posix-functions/write.texi: Likewise.
8372
8373 2011-04-10  Jim Meyering  <meyering@redhat.com>
8374
8375         maint.mk: prohibit doubled words
8376         Detect them also when they're separated by a newline.
8377         There are 3 ways to customize it:
8378           - disable the test on a per file basis, as usual with rules using
8379             $(VC_LIST_EXCEPT)
8380           - replace the default doubled-word-selecting regexp (affects all files)
8381           - ignore a particular file-vs-doubled-word match
8382         I nearly used that last one to ignore the "is is" match in
8383         coreutils' NEWS file, since the text was "ls -is is ..."
8384         To do that, I would have added this line to cfg.mk:
8385           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
8386         but it would have ignored any "is is" match in NEWS.
8387         Low probability, but still...
8388         Instead, I changed the text, slightly:
8389           -  ls -is is now consistent with ls -lis in ignoring values returned
8390           +  "ls -is" is now consistent with ls -lis in ignoring values returned
8391         * top/maint.mk (prohibit_double_word_RE_): Provide default.
8392         (prohibit_doubled_word_): Define.
8393         (sc_prohibit_doubled_word): New rule.
8394         (sc_prohibit_the_the): Remove.  Subsumed by the above.
8395
8396 2011-04-10  Jim Meyering  <meyering@redhat.com>
8397
8398         maint: fix doubled-word typo in comment
8399         * m4/gethostname.m4: s/is is/it is/
8400         * m4/getdomainname.m4: Likewise.
8401
8402 2011-04-10  Jim Meyering  <meyering@redhat.com>
8403
8404         maint: remove doubled word: s/it it/it/
8405         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
8406
8407 2011-04-10  Jim Meyering  <meyering@redhat.com>
8408
8409         maint.mk: remove useless semicolon and backslash
8410         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
8411         semicolon and backslash.
8412
8413 2011-04-10  Bruno Haible  <bruno@clisp.org>
8414
8415         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
8416         * modules/stdint-tests (Depends-on): Add wchar.
8417
8418 2011-04-10  Jim Meyering  <meyering@redhat.com>
8419
8420         maint: remove doubled words in comments, e.g., s/a a/a/
8421         * lib/strptime.c (day_of_the_week): s/the the/the/
8422         * tests/test-chown.h (test_chown): s/a a/a/
8423
8424         test-chown.h: correct a cast
8425         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
8426         when the destination is a stat.st_gid.
8427
8428 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
8429
8430         getaddrinfo: Fix test for sa_len member.
8431         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
8432         include <sys/types.h> before <sys/socket.h>.
8433
8434 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
8435
8436         maint: change "can not" to "cannot"
8437         * doc/posix-functions/iconv.texi (iconv): This one crossed line
8438         boundaries.
8439
8440 2011-04-09  Jim Meyering  <meyering@redhat.com>
8441
8442         maint: change "a a" to "a"
8443         * tests/test-lchown.h (test_lchown): s/a a/a/
8444
8445         maint.mk: prohibit \<the the\>
8446         * top/maint.mk (sc_prohibit_the_the): New rule.
8447
8448         maint: fix "the the" in comment
8449         * lib/count-one-bits.h: s/the the/the/
8450
8451         maint: change "can not" to "cannot"
8452         But do not change the occurrences in maintain.texi or in
8453         build-aux/po/Makefile.in.in, which I presume comes from gettext.
8454         * doc/gnulib-tool.texi: s/can not/cannot/
8455         * doc/posix-functions/accept.texi (accept): Likewise.
8456         * doc/posix-functions/socket.texi (socket): Likewise.
8457         * lib/mbrtowc.c: Likewise.
8458
8459         maint.mk: prohibit use of "can not"
8460         * top/maint.mk (sc_prohibit_can_not): New rule.
8461         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
8462
8463 2011-04-09  Bruno Haible  <bruno@clisp.org>
8464
8465         careadlinkat: Guard against misuse of careadlinkatcwd.
8466         * lib/careadlinkat.c: Include <stdlib.h>.
8467         (careadlinkatcwd): Check that the fd argument is as expected.
8468
8469 2011-04-09  Bruno Haible  <bruno@clisp.org>
8470
8471         careadlinkat: Use common coding style.
8472         * lib/careadlinkat.c: Move gnulib includes after system includes.
8473
8474 2011-04-09  Bruno Haible  <bruno@clisp.org>
8475
8476         careadlinkat: Clarify specification.
8477         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
8478         (careadlinkatcwd): Add comment.
8479         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
8480
8481 2011-04-09  Bruno Haible  <bruno@clisp.org>
8482
8483         areadlinkat: Avoid link error on many platforms.
8484         * modules/areadlinkat (Depends-on): Add areadlink.
8485
8486 2011-04-09  Bruno Haible  <bruno@clisp.org>
8487
8488         allocator, careadlinkat: Fix double-inclusion guard.
8489         * lib/allocator.h: Fix double-inclusion guard.
8490         * lib/careadlinkat.h: Likewise.
8491
8492 2011-04-09  Bruno Haible  <bruno@clisp.org>
8493
8494         relocatable-prog-wrapper: Update after module 'areadlink' changed.
8495         * lib/relocwrapper.c: Update dependencies hierarchy.
8496         * build-aux/install-reloc: Update list of files to be compiled.
8497         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
8498         lib/allocator.[hc].
8499
8500 2011-04-08  Eric Blake  <eblake@redhat.com>
8501
8502         strftime: silence gnulib-tool warning
8503         * modules/strftime-tests (Depends-on): Drop automatic dependency.
8504
8505 2011-04-08  Bruno Haible  <bruno@clisp.org>
8506
8507         verify: Fix syntax error with GCC 4.6 in C++ mode.
8508         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
8509         (HAVE_STATIC_ASSERT): New macro.
8510         (verify_true, verify): Use 'static_assert' if it is supported and
8511         '_Static_assert' is not supported.
8512
8513 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
8514
8515         allocator: New module.
8516         * modules/allocator, lib/allocator.c: New files.
8517         * lib/allocator.h (stdlib_allocator): New decl.
8518         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
8519         Remove.  Do not include <stdlib.h>.
8520         (careadlinkat): Use stdlib_allocator instead of rolling our own.
8521         * modules/careadlinkat (Files): Remove lib/allocator.h.
8522         (Depends-on): Add allocator.
8523
8524         stdlib: let modules use system malloc, realloc
8525         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
8526         if !_GL_USE_STDLIB_ALLOC.
8527         (malloc, realloc): Limit this change to a smaller scope.
8528
8529         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
8530         (malloc, realloc): Don't #undef; no longer needed.
8531         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8532         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8533         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
8534         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8535         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8536         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8537         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8538         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
8539
8540         careadlinkat: rename members to avoid problem
8541         * lib/allocator.h (struct allocator): Rename members from
8542         malloc/realloc to allocate/reallocate, to avoid problems if malloc
8543         and realloc are #define'd.  Reported by Eric Blake in
8544         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
8545         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
8546
8547 2011-04-08  Eric Blake  <eblake@redhat.com>
8548
8549         nonblocking: reduce dependency
8550         * tests/test-nonblocking.c: Only test sockets when in use.
8551         * modules/nonblocking-tests (Depends-on): Drop socket.
8552         (Makefile.am): Link even if sockets are not present.
8553         * modules/pipe2-tests (Makefile.am): Likewise.
8554         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
8555
8556         pipe2: fix O_NONBLOCK support on mingw
8557         * modules/pipe2 (Depends-on): Add nonblocking.
8558         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
8559         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
8560         * tests/test-nonblocking.c (main): Likewise.
8561         * modules/pipe2-tests (Makefile.am): Avoid link failure.
8562
8563         fcntl-h: fix O_ACCMODE on cygwin
8564         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
8565         * lib/fcntl.in.h (O_ACCMODE): Fix it.
8566
8567         pipe-filter: drop O_NONBLOCK workarounds
8568         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
8569         * modules/pipe-filter-ii (Depends-on): Likewise.
8570         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
8571
8572         nonblocking: provide O_NONBLOCK for mingw
8573         * modules/nonblocking (Depends-on): Add open.
8574         (configure.ac): Set new witness macro.
8575         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
8576         * modules/fcntl-h (Makefile.am): Substitute it.
8577         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
8578         nonblocking module is in use.
8579         * lib/nonblocking.c: Adjust portability test.
8580         * lib/open.c (open): Don't let native open see gnulib flag.
8581         * tests/test-fcntl-h.c (main): Enhance test.
8582         * tests/test-open.h (test_open): Likewise.
8583         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
8584
8585         careadlinkat: fix compilation error on mingw
8586         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
8587         within struct allocator.
8588
8589 2011-04-06  Eric Blake  <eblake@redhat.com>
8590
8591         binary-io: relicense under LGPLv2+
8592         * modules/binary-io (License): Relax to LGPLv2+.
8593         Requested for libvirt, and required by pipe2.
8594
8595 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
8596
8597         verify: use _Static_assert if available
8598         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
8599         (verify_true, verify): Use it if available.  This generates better
8600         diagnostics with GCC 4.6.0 and later.
8601
8602 2011-04-05  Bruno Haible  <bruno@clisp.org>
8603
8604         Remove leftover generated .h files after config.status changed.
8605
8606         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
8607         GL_GENERATE_ALLOCA_H.
8608         * modules/alloca-opt (Makefile.am): Remove alloca.h if
8609         GL_GENERATE_ALLOCA_H evaluates to false.
8610
8611         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
8612         GL_GENERATE_ARGZ_H.
8613         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
8614         evaluates to false.
8615
8616         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
8617         GL_GENERATE_BYTESWAP_H.
8618         * modules/byteswap (Makefile.am): Remove byteswap.h if
8619         GL_GENERATE_BYTESWAP_H evaluates to false.
8620
8621         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
8622         GL_GENERATE_ERRNO_H.
8623         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
8624         evaluates to false.
8625
8626         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
8627         GL_GENERATE_FLOAT_H.
8628         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
8629         evaluates to false.
8630
8631         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
8632         GL_GENERATE_FNMATCH_H.
8633         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
8634         GL_GENERATE_FNMATCH_H evaluates to false.
8635
8636         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
8637         GL_GENERATE_GLOB_H.
8638         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
8639         evaluates to false.
8640
8641         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
8642         automake conditional GL_GENERATE_ICONV_H.
8643         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
8644         evaluates to false.
8645
8646         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
8647         GL_GENERATE_NETINET_IN_H.
8648         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
8649         GL_GENERATE_NETINET_IN_H evaluates to false.
8650
8651         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
8652         conditional GL_GENERATE_PTHREAD_H.
8653         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
8654         * modules/pthread (Makefile.am): Remove pthread.h if
8655         GL_GENERATE_PTHREAD_H evaluates to false.
8656
8657         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
8658         GL_GENERATE_SCHED_H.
8659         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
8660         evaluates to false.
8661
8662         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
8663         conditional GL_GENERATE_SELINUX_CONTEXT_H.
8664         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
8665         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
8666
8667         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
8668         GL_GENERATE_STDARG_H.
8669         * modules/stdarg (Makefile.am): Remove stdarg.h if
8670         GL_GENERATE_STDARG_H evaluates to false.
8671
8672         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
8673         GL_GENERATE_STDBOOL_H.
8674         * modules/stdbool (Makefile.am): Remove stdbool.h if
8675         GL_GENERATE_STDBOOL_H evaluates to false.
8676
8677         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
8678         conditional GL_GENERATE_STDDEF_H.
8679         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
8680         * modules/stddef (Makefile.am): Remove stddef.h if
8681         GL_GENERATE_STDDEF_H evaluates to false.
8682
8683         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
8684         GL_GENERATE_STDINT_H.
8685         * modules/stdint (Makefile.am): Remove stdint.h if
8686         GL_GENERATE_STDINT_H evaluates to false.
8687
8688         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
8689         GL_GENERATE_SYSEXITS_H.
8690         * modules/sysexits (Makefile.am): Remove sysexits.h if
8691         GL_GENERATE_SYSEXITS_H evaluates to false.
8692
8693         Reported by Karl Berry and Ralf Wildenhues.
8694
8695 2011-04-05  Bruno Haible  <bruno@clisp.org>
8696
8697         Ensure to rebuild generated .h files when config.status has changed.
8698         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
8699         config.status.
8700         * modules/ctype (Makefile.am): Likewise.
8701         * modules/dirent (Makefile.am): Likewise.
8702         * modules/errno (Makefile.am): Likewise.
8703         * modules/fcntl-h (Makefile.am): Likewise.
8704         * modules/float (Makefile.am): Likewise.
8705         * modules/getopt-posix (Makefile.am): Likewise.
8706         * modules/glob (Makefile.am): Likewise.
8707         * modules/iconv-h (Makefile.am): Likewise.
8708         * modules/inttypes (Makefile.am): Likewise.
8709         * modules/langinfo (Makefile.am): Likewise.
8710         * modules/locale (Makefile.am): Likewise.
8711         * modules/math (Makefile.am): Likewise.
8712         * modules/netdb (Makefile.am): Likewise.
8713         * modules/netinet_in (Makefile.am): Likewise.
8714         * modules/poll-h (Makefile.am): Likewise.
8715         * modules/pthread (Makefile.am): Likewise.
8716         * modules/pty (Makefile.am): Likewise.
8717         * modules/sched (Makefile.am): Likewise.
8718         * modules/search (Makefile.am): Likewise.
8719         * modules/selinux-h (Makefile.am): Likewise.
8720         * modules/signal (Makefile.am): Likewise.
8721         * modules/spawn (Makefile.am): Likewise.
8722         * modules/stdarg (Makefile.am): Likewise.
8723         * modules/stdbool (Makefile.am): Likewise.
8724         * modules/stddef (Makefile.am): Likewise.
8725         * modules/stdint (Makefile.am): Likewise.
8726         * modules/stdio (Makefile.am): Likewise.
8727         * modules/stdlib (Makefile.am): Likewise.
8728         * modules/string (Makefile.am): Likewise.
8729         * modules/strings (Makefile.am): Likewise.
8730         * modules/sys_file (Makefile.am): Likewise.
8731         * modules/sys_ioctl (Makefile.am): Likewise.
8732         * modules/sys_select (Makefile.am): Likewise.
8733         * modules/sys_socket (Makefile.am): Likewise.
8734         * modules/sys_stat (Makefile.am): Likewise.
8735         * modules/sys_time (Makefile.am): Likewise.
8736         * modules/sys_times (Makefile.am): Likewise.
8737         * modules/sys_utsname (Makefile.am): Likewise.
8738         * modules/sys_wait (Makefile.am): Likewise.
8739         * modules/sysexits (Makefile.am): Likewise.
8740         * modules/termios (Makefile.am): Likewise.
8741         * modules/time (Makefile.am): Likewise.
8742         * modules/unistd (Makefile.am): Likewise.
8743         * modules/wchar (Makefile.am): Likewise.
8744         * modules/wctype-h (Makefile.am): Likewise.
8745         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
8746
8747 2011-04-05  Bruno Haible  <bruno@clisp.org>
8748
8749         pipe2: Relicense under LGPLv2+.
8750         * modules/pipe2 (License): Change to LGPLv2+.
8751         Requested by Eric Blake, for libvirt.
8752
8753 2011-04-05  Bruce Korb  <bkorb@gnu.org>
8754
8755         bootstrap: compute gnulib_extra_files after updating build_aux
8756         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
8757         change build_aux or also supply gnulib_extra_files.  Handle correctly.
8758
8759 2011-04-05  Eric Blake  <eblake@redhat.com>
8760
8761         bootstrap: preserve git whitelist item sorting
8762         * build-aux/bootstrap (sort_patterns): New function.
8763         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
8764
8765 2011-04-05  Simon Josefsson  <simon@josefsson.org>
8766
8767         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
8768         sc_space_tab check.
8769
8770 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
8771
8772         areadlink, areadlinkat: rewrite in terms of careadlinkat
8773         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
8774         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
8775         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
8776         (malloc, realloc): Remove #undefs.
8777         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
8778         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
8779         readlink, ssize_t, stdint, unistd.
8780         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
8781         areadlink, stdint.
8782
8783         careadlinkat: new module
8784         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
8785         * modules/careadlinkat: New files, written by me with
8786         a review and feedback from Ben Pfaff in
8787         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
8788
8789 2011-04-01  Bruno Haible  <bruno@clisp.org>
8790
8791         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
8792         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
8793         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
8794         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
8795         Reported by Bruce Korb <bruce.korb@gmail.com>.
8796
8797 2011-04-01  Bruno Haible  <bruno@clisp.org>
8798
8799         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
8800         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
8801         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
8802         * modules/wcpcpy (Depends-on): Add extensions.
8803         * modules/wcpncpy (Depends-on): Likewise.
8804         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
8805         systems.
8806         * doc/posix-functions/wcpncpy.texi: Likewise.
8807         * doc/posix-functions/wcwidth.texi: Likewise.
8808
8809 2011-03-31  Eric Blake  <eblake@redhat.com>
8810
8811         nonblocking: fix mingw test failures
8812         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
8813         non-blocking flag on regular file.
8814         (get_nonblocking_flag): Set errno on invalid fd.
8815         * tests/test-nonblocking.c (main): Avoid test failure on
8816         directories if fchdir is not active.
8817         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
8818
8819 2011-03-31  Bruno Haible  <bruno@clisp.org>
8820
8821         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
8822         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
8823         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
8824         Reported by Simon Josefsson <simon@josefsson.org>.
8825
8826 2011-03-31  Bruno Haible  <bruno@clisp.org>
8827         and Eric Blake  <eblake@redhat.com>
8828
8829         nonblocking: new module
8830         * modules/nonblocking: New module.
8831         * modules/nonblocking-tests: Likewise.
8832         * lib/nonblocking.h: New file.
8833         * lib/nonblocking.c: Likewise.
8834         * tests/test-nonblocking.c: New test.
8835         * lib/ioctl.c (ioctl) [mingw]: Update comment.
8836
8837 2011-03-30  Bruno Haible  <bruno@clisp.org>
8838
8839         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
8840         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
8841         instead of 'printf' format for GCC >= 4.4.
8842         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
8843         (fprintf, printf, vfprintf, vprintf): Declare with
8844         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
8845         the system's vfprintf() function.
8846         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
8847
8848 2011-03-30  Eric Blake  <eblake@redhat.com>
8849
8850         passfd: fix scoping bug
8851         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
8852         before sendmsg/recvmsg.
8853
8854         passfd: standardize coding conventions
8855         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
8856         can be learned at compile time.
8857         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
8858         ifdefs.
8859         (sendfd, recvfd): Follow gnulib code conventions.
8860
8861         passfd: fix incorrect sendmsg arguments
8862         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
8863         incorrect msg_controllen value.
8864         * modules/passfd-tests (Depends-on): Check for alarm.
8865         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
8866         Reported by Bastien ROUCARIES.
8867
8868 2011-03-30  Bruno Haible  <bruno@clisp.org>
8869
8870         c-strcasestr: Relicense under LGPLv2+.
8871         * modules/c-strcasestr (License): Change to LGPLv2+.
8872         Requested by Eric Blake, for libvirt.
8873
8874 2011-03-30  Simon Josefsson  <simon@josefsson.org>
8875
8876         * users.txt: Add libidn2.  Fix libtasn1 link.
8877
8878 2011-03-30  Jim Meyering  <meyering@redhat.com>
8879
8880         tests: readlink* ("",... fails with EINVAL on newer kernels
8881         readlink and readlinkat have typically failed with ENOENT for
8882         the invalid, empty file name,  "".  However, with the advent
8883         of linux-2.6.39, they fail with EINVAL.
8884         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
8885         when operating on the empty file name.
8886         * tests/test-readlink.h (test_readlink): Likewise.
8887
8888 2011-03-29  Bruno Haible  <bruno@clisp.org>
8889
8890         Relicense some modules under LGPLv2+, for libidn2.
8891         * modules/array-mergesort (License): Change to LGPLv2+.
8892         * modules/c-strcaseeq (License): Likewise.
8893         * modules/striconveh (License): Likewise.
8894         * modules/striconveha (License): Likewise.
8895         * modules/uniconv/base (License): Likewise.
8896         * modules/uniconv/u8-conv-from-enc (License): Likewise.
8897         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
8898         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
8899         * modules/unictype/base (License): Likewise.
8900         * modules/unictype/bidiclass-of (License): Likewise.
8901         * modules/unictype/category-M (License): Likewise.
8902         * modules/unictype/category-none (License): Likewise.
8903         * modules/unictype/category-of (License): Likewise.
8904         * modules/unictype/category-test (License): Likewise.
8905         * modules/unictype/category-test-withtable (License): Likewise.
8906         * modules/unictype/combining-class (License): Likewise.
8907         * modules/unictype/joiningtype-of (License): Likewise.
8908         * modules/unictype/scripts (License): Likewise.
8909         * modules/uninorm/base (License): Likewise.
8910         * modules/uninorm/canonical-decomposition (License): Likewise.
8911         * modules/uninorm/composition (License): Likewise.
8912         * modules/uninorm/decompose-internal (License): Likewise.
8913         * modules/uninorm/decomposition-table (License): Likewise.
8914         * modules/uninorm/nfc (License): Likewise.
8915         * modules/uninorm/nfd (License): Likewise.
8916         * modules/uninorm/u32-normalize (License): Likewise.
8917         * modules/unistr/base (License): Likewise.
8918         * modules/unistr/u32-cpy (License): Likewise.
8919         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
8920         * modules/unistr/u32-to-u8 (License): Likewise.
8921         * modules/unistr/u32-uctomb (License): Likewise.
8922         * modules/unistr/u8-check (License): Likewise.
8923         * modules/unistr/u8-mblen (License): Likewise.
8924         * modules/unistr/u8-mbtouc (License): Likewise.
8925         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
8926         * modules/unistr/u8-mbtoucr (License): Likewise.
8927         * modules/unistr/u8-prev (License): Likewise.
8928         * modules/unistr/u8-strlen (License): Likewise.
8929         * modules/unistr/u8-to-u32 (License): Likewise.
8930         * modules/unistr/u8-uctomb (License): Likewise.
8931         * modules/unitypes (License): Likewise.
8932         Requested by Simon Josefsson.
8933
8934 2011-03-29  Simon Josefsson  <simon@josefsson.org>
8935
8936         lib-symbol-visibility: Add a notice.
8937         * modules/lib-symbol-visibility (Notice): New field.
8938
8939 2011-03-29  Bruno Haible  <bruno@clisp.org>
8940
8941         getaddrinfo: Doc fix.
8942         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
8943         section "fixed in Gnulib".
8944
8945 2011-03-28  Simon Josefsson  <simon@josefsson.org>
8946
8947         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
8948         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
8949
8950 2011-03-26  Bruno Haible  <bruno@clisp.org>
8951
8952         unictype/property-byname: Reduce the number of load-time relocations.
8953         * lib/unictype/pr_byname.c: Include <stdlib.h>.
8954         (UC_PROPERTY_INDEX_*): New enumeration values.
8955         (uc_property_byname): Convert an index from the lookup table to an
8956         uc_property_t.
8957         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
8958         values.
8959
8960 2011-03-26  Bruno Haible  <bruno@clisp.org>
8961
8962         unictype/property-byname: Allow omitted word separators and aliases.
8963         * lib/unictype/pr_byname.gperf: Add property names without word
8964         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
8965         for 'space'.
8966
8967 2011-03-26  Bruno Haible  <bruno@clisp.org>
8968
8969         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
8970         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
8971         also hyphens to space.
8972         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
8973         without spaces.
8974         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
8975
8976 2011-03-26  Bruno Haible  <bruno@clisp.org>
8977
8978         unictype/joiningtype-byname: Recognize long names as well.
8979         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
8980         a long name.
8981         * lib/unictype/joiningtype_byname.c: Include <string.h>,
8982         unictype/joiningtype_byname.h.
8983         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
8984         * lib/unictype/joiningtype_byname.gperf: New file.
8985         * modules/unictype/joiningtype-byname (Files): Add
8986         lib/unictype/joiningtype_byname.gperf.
8987         (Depends-on): Add gperf.
8988         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
8989         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
8990         long names.
8991
8992         Tests for module 'unictype/joiningtype-longname'.
8993         * modules/unictype/joiningtype-longname-tests: New file.
8994         * tests/unictype/test-joiningtype_longname.c: New file.
8995
8996         New module 'unictype/joiningtype-longname'.
8997         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
8998         * lib/unictype/joiningtype_longname.c: New file.
8999         * modules/unictype/joiningtype-longname: New file.
9000         * modules/unictype/joiningtype-all (Depends-on): Add
9001         unictype/joiningtype-longname.
9002
9003 2011-03-26  Bruno Haible  <bruno@clisp.org>
9004
9005         unictype/bidiclass-byname: Recognize long names as well.
9006         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
9007         name.
9008         * lib/unictype/bidi_byname.c: Include <string.h>,
9009         unictype/bidi_byname.h.
9010         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
9011         * lib/unictype/bidi_byname.gperf: New file.
9012         * modules/unictype/bidiclass-byname (Files): Add
9013         lib/unictype/bidi_byname.gperf.
9014         (Depends-on): Add gperf.
9015         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
9016         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
9017         long names.
9018
9019         Tests for module 'unictype/bidiclass-longname'.
9020         * modules/unictype/bidiclass-longname-tests: New file.
9021         * tests/unictype/test-bidi_longname.c: New file.
9022
9023         New module 'unictype/bidiclass-longname'.
9024         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
9025         * lib/unictype/bidi_longname.c: New file.
9026         * modules/unictype/bidiclass-longname: New file.
9027         * modules/unictype/bidiclass-all (Depends-on): Add
9028         unictype/bidiclass-longname.
9029
9030 2011-03-26  Bruno Haible  <bruno@clisp.org>
9031
9032         unictype/bidi*: Rename modules.
9033         * modules/unictype/bidiclass-all: Renamed from
9034         modules/unictype/bidicategory-all.
9035         * modules/unictype/bidiclass-name: Renamed from
9036         modules/unictype/bidiclass-name.
9037         (Description): Update.
9038         * modules/unictype/bidiclass-name-tests: Renamed from
9039         modules/unictype/bidicategory-name-tests.
9040         * modules/unictype/bidiclass-byname: Renamed from
9041         modules/unictype/bidicategory-byname.
9042         (Description): Update.
9043         * modules/unictype/bidiclass-byname-tests: Renamed from
9044         modules/unictype/bidicategory-byname-tests.
9045         * modules/unictype/bidiclass-of: Renamed from
9046         modules/unictype/bidicategory-of.
9047         (Description): Update.
9048         * modules/unictype/bidiclass-of-tests: Renamed from
9049         modules/unictype/bidicategory-of-tests.
9050         * modules/unictype/bidiclass-test: Renamed from
9051         modules/unictype/bidicategory-test.
9052         (Description): Update.
9053         * modules/unictype/bidiclass-test-tests: Renamed from
9054         modules/unictype/bidicategory-test-tests.
9055         * modules/unictype/bidicategory-all: New file, a simple redirection.
9056         * modules/unictype/bidicategory-name: Likewise.
9057         * modules/unictype/bidicategory-byname: Likewise.
9058         * modules/unictype/bidicategory-of: Likewise.
9059         * modules/unictype/bidicategory-test: Likewise.
9060         * modules/unictype/property-bidi-* (Dependencies): Update.
9061         * lib/unictype/bidi_*.c: Update comment.
9062
9063 2011-03-26  Bruno Haible  <bruno@clisp.org>
9064
9065         unictype/bidi*: Rename functions, part 2.
9066         * modules/unictype/bidicategory-name (configure.ac): Update required
9067         libunistring version.
9068         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
9069
9070 2011-03-25  Bruno Haible  <bruno@clisp.org>
9071
9072         New module 'unictype/combining-class-all'.
9073         * modules/unictype/combining-class-all: New file.
9074
9075         Tests for module 'unictype/combining-class-byname'.
9076         * modules/unictype/combining-class-byname-tests: New file.
9077         * tests/unictype/test-combiningclass_byname.c: New file.
9078
9079         New module 'unictype/combining-class-byname'.
9080         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
9081         * lib/unictype/combiningclass_byname.c: New file.
9082         * lib/unictype/combiningclass_byname.gperf: New file.
9083         * modules/unictype/combining-class-byname: New file.
9084
9085         Tests for module 'unictype/combining-class-longname'.
9086         * modules/unictype/combining-class-longname-tests: New file.
9087         * tests/unictype/test-combiningclass_longname.c: New file.
9088
9089         New module 'unictype/combining-class-longname'.
9090         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
9091         * lib/unictype/combiningclass_longname.c: New file.
9092         * modules/unictype/combining-class-longname: New file.
9093
9094         Tests for module 'unictype/combining-class-name'.
9095         * modules/unictype/combining-class-name-tests: New file.
9096         * tests/unictype/test-combiningclass_name.c: New file.
9097
9098         New module 'unictype/combining-class-name'.
9099         * lib/unictype.in.h (uc_combining_class_name): New declaration.
9100         * lib/unictype/combiningclass_name.c: New file.
9101         * modules/unictype/combining-class-name: New file.
9102
9103 2011-03-25  Bruno Haible  <bruno@clisp.org>
9104
9105         unictype/combining-class: Rename source files.
9106         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
9107         of unictype/combining.h.
9108         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
9109         Update.
9110         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
9111         * modules/unictype/combining-class (Description): Fix.
9112         (Files, Makefile.am): Update.
9113         * tests/unictype/test-combiningclass.c: Renamed from
9114         tests/unictype/test-combining.c.
9115         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
9116
9117 2011-03-25  Bruno Haible  <bruno@clisp.org>
9118
9119         unictype: Update list of canonical combining classes.
9120         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
9121
9122 2011-03-25  Bruno Haible  <bruno@clisp.org>
9123
9124         unictype/category-byname: Recognize long names as well.
9125         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
9126         a long name.
9127         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
9128         unictype/categ_byname.h.
9129         (UC_CATEGORY_INDEX_*): New enumeration values.
9130         (uc_general_category_byname): Use uc_general_category_lookup and
9131         convert from index to value.
9132         * lib/unictype/categ_byname.gperf: New file.
9133         * modules/unictype/category-byname (Files): Add
9134         lib/unictype/categ_byname.gperf.
9135         (Depends-on): Add gperf.
9136         (Makefile.am): Add rule for generating unictype/categ_byname.h.
9137         * tests/unictype/test-categ_byname.c (main): Test the recognition of
9138         long names.
9139
9140         Tests for module 'unictype/category-longname'.
9141         * modules/unictype/category-longname-tests: New file.
9142         * tests/unictype/test-categ_longname.c: New file.
9143
9144         New module 'unictype/category-longname'.
9145         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
9146         * lib/unictype/categ_longname.c: New file.
9147         * modules/unictype/category-longname: New file.
9148         * modules/unictype/category-all (Depends-on): Add it.
9149
9150 2011-03-25  Bruno Haible  <bruno@clisp.org>
9151
9152         Tests for module 'unictype/category-LC'.
9153         * modules/unictype/category-LC-tests: New file.
9154         * tests/unictype/test-categ_LC.c: New file, automatically generated.
9155
9156         New module 'unictype/category-LC'.
9157         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
9158         (UC_CATEGORY_LC): New declaration.
9159         (UC_CASED_LETTER): New macro.
9160         * lib/gen-uni-tables.c (is_category_LC): New function.
9161         (output_categories): Also handle category LC.
9162         (UC_CATEGORY_MASK_LC): New enumeration value.
9163         (general_category_byname): Also handle category LC.
9164         * lib/unictype/categ_LC.c: New file.
9165         * lib/unictype/categ_LC.h: New file, automatically generated.
9166         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
9167         category LC.
9168         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
9169         * modules/unictype/category-LC: New file.
9170         * modules/unictype/category-byname (Depends-on): Add
9171         unictype/category-LC.
9172         * modules/unictype/category-all (Depends-on): Likewise.
9173
9174 2011-03-25  Eric Blake  <eblake@redhat.com>
9175
9176         xmalloc: revert yesterday's regression
9177         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
9178         realloc's underlying behavior (allowing allocation of zero-size
9179         objects, especially if malloc-gnu is also in use).
9180
9181 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
9182
9183         maint.mk: add missing version to VC-tag
9184         * top/maint.mk: git tag was missing actual tag name; add it.
9185
9186         valgrind: do leak checking, and exit with code 1 on error (not 0)
9187         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
9188         to VALGRIND.
9189
9190 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
9191
9192         posix-modules: say what it does.
9193         * posix-modules: Add a line to the --help output saying what it does.
9194
9195 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
9196
9197         xmalloc: Do not leak if underlying realloc is C99 compatible.
9198         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
9199         This avoids a leak on C99-based systems.  See
9200         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
9201
9202 2011-03-24  Eric Blake  <eblake@redhat.com>
9203
9204         realloc: document portability problem
9205         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
9206         passing 0 size to realloc.
9207
9208 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
9209
9210         doc: update users.txt
9211         * users.txt: Add cvsps, tmpwatch
9212
9213 2011-03-23  Matt Rice  <ratmice@gmail.com>
9214
9215         doc: update users.txt
9216         * users.txt: Add gdb.
9217
9218 2011-03-23  Jim Meyering  <meyering@redhat.com>
9219
9220         doc: update users.txt
9221         Looking through matches up to the following URL (there are still
9222         several more pages), I found several projects that use gnulib:
9223         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
9224         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
9225         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
9226
9227 2011-03-22  Bruno Haible  <bruno@clisp.org>
9228
9229         unictype/bidi*: Rename functions.
9230         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
9231         uc_bidi_class, uc_is_bidi_class): New declarations.
9232         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
9233         uc_bidi_category_byname.
9234         (uc_bidi_category_byname): New function.
9235         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
9236         u_bidi_category_name.
9237         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
9238         (uc_bidi_category_name): New function.
9239         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
9240         uc_bidi_category.
9241         (uc_bidi_category): New function.
9242         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
9243         uc_is_bidi_category. Invoke uc_bidi_class.
9244         (uc_is_bidi_category): New function.
9245         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
9246         instead of uc_bidi_category_byname.
9247         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
9248         instead of uc_bidi_category_name.
9249         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
9250         uc_bidi_category.
9251         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
9252         instead of uc_is_bidi_category.
9253
9254 2011-03-21  Bruno Haible  <bruno@clisp.org>
9255
9256         New module 'unictype/joininggroup-all'.
9257         * modules/unictype/joininggroup-all: New file.
9258
9259         Tests for module 'unictype/joininggroup-of'.
9260         * modules/unictype/joininggroup-of-tests: New file.
9261         * tests/unictype/test-joininggroup_of.c: New file.
9262         * tests/unictype/test-joininggroup_of.h: New file, automatically
9263         generated by gen-uni-tables.
9264
9265         New module 'unictype/joininggroup-of'.
9266         * modules/unictype/joininggroup-of: New file.
9267         * lib/unictype/joininggroup_of.c: New file.
9268         * lib/unictype/joininggroup_of.h: New file, automatically generated by
9269         gen-uni-tables.
9270
9271         Tests for module 'unictype/joininggroup-byname'.
9272         * modules/unictype/joininggroup-byname-tests: New file.
9273         * tests/unictype/test-joininggroup_byname.c: New file.
9274
9275         New module 'unictype/joininggroup-byname'.
9276         * modules/unictype/joininggroup-byname: New file.
9277         * lib/unictype/joininggroup_byname.c: New file.
9278         * lib/unictype/joininggroup_byname.gperf: New file.
9279
9280         Tests for module 'unictype/joininggroup-name'.
9281         * modules/unictype/joininggroup-name-tests: New file.
9282         * tests/unictype/test-joininggroup_name.c: New file.
9283
9284         New module 'unictype/joininggroup-name'.
9285         * modules/unictype/joininggroup-name: New file.
9286         * lib/unictype/joininggroup_name.c: New file.
9287         * lib/unictype/joininggroup_name.h: New file.
9288
9289         New module 'unictype/joiningtype-all'.
9290         * modules/unictype/joiningtype-all: New file.
9291
9292         Tests for module 'unictype/joiningtype-of'.
9293         * modules/unictype/joiningtype-of-tests: New file.
9294         * tests/unictype/test-joiningtype_of.c: New file.
9295         * tests/unictype/test-joiningtype_of.h: New file, automatically
9296         generated by gen-uni-tables.
9297
9298         New module 'unictype/joiningtype-of'.
9299         * modules/unictype/joiningtype-of: New file.
9300         * lib/unictype/joiningtype_of.c: New file.
9301         * lib/unictype/joiningtype_of.h: New file, automatically generated by
9302         gen-uni-tables.
9303
9304         Tests for module 'unictype/joiningtype-byname'.
9305         * modules/unictype/joiningtype-byname-tests: New file.
9306         * tests/unictype/test-joiningtype_byname.c: New file.
9307
9308         New module 'unictype/joiningtype-byname'.
9309         * modules/unictype/joiningtype-byname: New file.
9310         * lib/unictype/joiningtype_byname.c: New file.
9311
9312         Tests for module 'unictype/joiningtype-name'.
9313         * modules/unictype/joiningtype-name-tests: New file.
9314         * tests/unictype/test-joiningtype_name.c: New file.
9315
9316         New module 'unictype/joiningtype-name'.
9317         * modules/unictype/joiningtype-name: New file.
9318         * lib/unictype/joiningtype_name.c: New file.
9319
9320         unictype: Add support for Arabic shaping properties.
9321         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
9322         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
9323         declarations.
9324         (UC_JOINING_GROUP_*): New enumeration values.
9325         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
9326         declarations.
9327         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
9328         (unicode_joining_type): New variable.
9329         (UC_JOINING_GROUP_*): New enumeration values.
9330         (unicode_joining_group): New variable.
9331         (fill_arabicshaping, joining_type_as_c_identifier,
9332         output_joining_type_test, output_joining_type,
9333         joining_group_as_c_identifier, output_joining_group_test,
9334         output_joining_group): New functions.
9335         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
9336         fill_arabicshaping and output_joining_type_test, output_joining_type,
9337         output_joining_group_test, output_joining_group.
9338         Reported by Simon Josefsson.
9339
9340 2011-03-21  Jim Meyering  <meyering@redhat.com>
9341
9342         strftime: fix a bug in yesterday's change
9343         * lib/strftime.c (add): Accommodate width's initial value of -1.
9344         Otherwise, nstrftime would copy uninitialized data into
9345         the result buffer.
9346
9347 2011-03-21  Jim Meyering  <meyering@redhat.com>
9348
9349         tests: add strftime-tests module
9350         * tests/test-strftime.c: New file.
9351         * modules/strftime-tests: New module.
9352
9353 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
9354
9355         strftime: don't assume a byte count fits in 'int'
9356         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
9357         found this problem by static analysis, using gcc -Wstrict-overflow
9358         (GCC 4.5.2, x86-64).  This reported an optimization that depended
9359         on an integer overflow having undefined behavior, but it turns out
9360         that the argument is a size, which might not fit in 'int' anyway,
9361
9362 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
9363
9364         stdio: don't require ignore_value around fwrite
9365
9366         This patch works around libc bug 11959
9367         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
9368         Without this patch, applications must often write
9369         ignore_value (fwrite (...)) even though the ignore_value is
9370         not helpful here.  It's common to write many objects, using
9371         fwrite/printf/etc., and then use ferror to detect output error.
9372
9373         I considered making this patch optional, but decided against it,
9374         because libc is obviously being inconsistent here: there is no
9375         reason libc should insist that user code must inspect fwrite
9376         return's value without also insisting that it inspect printf's,
9377         putchar's, etc.  If user code wants to have a strict style where
9378         all these functions' values are checked (so that ferror need not
9379         be checked), we could add support for that style in a new gnulib
9380         module, but in the meantime it's better to be consistent and to
9381         support common usage.
9382
9383         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
9384         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
9385         that we are compiling in checking mode, and if not C++, and
9386         if not already wrapping fwrite for some other reason.
9387         (fwrite): #define to rpl_fwrite if the latter is defined.
9388
9389 2011-03-20  Bruno Haible  <bruno@clisp.org>
9390
9391         verror: Fix compilation error introduced on 2011-02-13.
9392         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
9393         instead of __attribute__.
9394         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9395
9396 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
9397             Bruno Haible  <bruno@clisp.org>
9398
9399         socklen: do not depend on sys_socket
9400         While trying to modify Emacs to use gnulib's socklen module,
9401         I discovered a circular dependency: socklen depends on sys_socket
9402         and vice versa.  Emacs can use socklen, but it does not need
9403         sys_socket because it has its own substitute for sys/socket.h.
9404         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
9405         gl_TYPE_SOCKLEN_T.
9406         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
9407         gl_PREREQ_SYS_H_SOCKET.
9408         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
9409         gl_PREREQ_SYS_H_SOCKET.
9410         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
9411         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
9412         * modules/socklen (Depends-on): Do not depend on sys_socket.
9413         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
9414
9415 2011-03-20  Jim Meyering  <meyering@redhat.com>
9416
9417         maint.mk: sort file names *after* new transformation
9418         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
9419         prefix would have led to an unwarranted failure in GNU parted.
9420         Sort after that transformation.
9421
9422 2011-03-19  Jim Meyering  <meyering@redhat.com>
9423
9424         maint.mk: fix po-file syntax-check rule
9425         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
9426         Patch by Bruno Haible.
9427
9428 2011-03-19  Bruno Haible  <bruno@clisp.org>
9429
9430         socklen: Update comment.
9431         * m4/socklen.m4: Update comment about platforms.
9432
9433 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
9434             Bruno Haible  <bruno@clisp.org>
9435
9436         inet_ntop, inet_pton: Simplify.
9437         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
9438         documented to provide socklen_t and we already depend on sys_socket.
9439         * modules/inet_pton (Depends-on): Likewise.
9440         * lib/arpa_inet.in.h: Adjust comment.
9441
9442 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
9443             Bruno Haible  <bruno@clisp.org>
9444
9445         netdb: Simplify.
9446         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
9447         documented to provide socklen_t and we already depend on sys_socket.
9448         * lib/netdb.in.h: Adjust comment.
9449
9450 2011-03-19  Bruno Haible  <bruno@clisp.org>
9451
9452         sys_socket, netdb: Document problem with socklen_t.
9453         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
9454         platforms.
9455         * doc/posix-headers/netdb.texi: Likewise.
9456
9457 2011-03-18  Eric Blake  <eblake@redhat.com>
9458
9459         maint.mk: let po check work in VPATH build
9460         * top/maint.mk (po_file): Allow cfg.mk override.
9461         (sc_po_check): Allow VPATH use.
9462         Reported by Jiri Denemark.
9463
9464 2011-03-16  Jim Meyering  <meyering@redhat.com>
9465
9466         maint.mk: allow fine-grained syntax-check exclusion via Make variables
9467         Before, you would have had to create one .x-sc_ file per rule in order
9468         to exempt offending files.  Now, you may instead use a Make variable --
9469         usually defined in cfg.mk -- whose name identifies the affected rule.
9470         * top/maint.mk (_sc_excl): Define.
9471         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
9472         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
9473
9474 2011-03-13  Bruno Haible  <bruno@clisp.org>
9475
9476         ignore-value tests: Avoid warnings.
9477         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
9478         empty for gcc < 3.4.
9479
9480 2011-03-13  Bruno Haible  <bruno@clisp.org>
9481
9482         passfd: Fix link error on Solaris.
9483         * modules/passfd (Description): Correct.
9484         (Depends-on): Add socketlib.
9485         (Link): New section.
9486         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
9487
9488 2011-03-13  Bruno Haible  <bruno@clisp.org>
9489
9490         passfd: Fix link error on AIX 5.2.
9491         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
9492
9493 2011-03-13  Bruno Haible  <bruno@clisp.org>
9494
9495         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
9496         * lib/sys_socket.in.h: Include <stddef.h>.
9497         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
9498         CMSG_FIRSTHDR. Remove unused variable.
9499
9500 2011-03-13  Bruno Haible  <bruno@clisp.org>
9501
9502         passfd: Fix compilation error on OpenBSD.
9503         * lib/passfd.c: Include <sys/uio.h>.
9504
9505 2011-03-13  Bruno Haible  <bruno@clisp.org>
9506
9507         passfd test: Fix warnings.
9508         * tests/test-passfd.c: Include <sys/wait.h>.
9509         (main): Fix typo.
9510
9511 2011-03-13  Bruno Haible  <bruno@clisp.org>
9512
9513         passfd module, part 4, tweaks.
9514         * tests/test-passfd.c: Reorder includes.
9515         (main): Fix perror and printf calls.
9516
9517 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
9518
9519         passfd module, part 4.
9520         * modules/passfd-tests: New file.
9521         * tests/test-passfd.c: New file.
9522
9523 2011-03-13  Jim Meyering  <meyering@redhat.com>
9524
9525         Makefile: rely on GNU make; derive syntax-check rule names
9526         Rather than requiring that each sc_ rule be listed as a dependent
9527         of "check", use features of GNU make to derive the list.
9528         * Makefile (syntax-check-rules): Define.
9529         (check): Depend on the new variable, not the hard-coded list.
9530
9531 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
9532             Bruno Haible  <bruno@clisp.org>
9533
9534         passfd module, part 3.
9535         * lib/passfd.h (recvfd): Add a flags argument.
9536         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
9537         (recvfd): Add a flags argument.
9538         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
9539         exists.
9540         * modules/passfd (Depends-on): Add cloexec.
9541         Suggested by Eric Blake.
9542
9543 2011-03-13  Bruno Haible  <bruno@clisp.org>
9544
9545         passfd module, part 2, tweaks.
9546         * modules/passfd (Files): Reorder.
9547         (Depends-on): Remove errno.
9548         (Include): Remove <sys/socket.h>, <sys/un.h>.
9549         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
9550         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
9551         specification header. Include <sys/socket.h> always. Don't include
9552         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
9553         (sendfd): Clarify that it sets errno when it fails.
9554         (recvfd): Fix specification.
9555
9556 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
9557
9558         passfd module, part 2.
9559         * modules/passfd: New file.
9560         * lib/passfd.h: New file.
9561         * lib/passfd.c: New file.
9562
9563 2011-03-12  Bruno Haible  <bruno@clisp.org>
9564
9565         wcswidth, mbswidth: Avoid integer overflow.
9566         * lib/wcswidth.c: Include <limits.h>.
9567         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
9568         * lib/mbswidth.c: Include <limits.h>.
9569         (mbsnwidth): Avoid 'int' overflow.
9570         Reported by Jim Meyering.
9571
9572 2011-03-12  Bruno Haible  <bruno@clisp.org>
9573
9574         futimens, utimensat: Avoid endless recursion on Solaris 10.
9575         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
9576         Solaris.
9577         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
9578         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
9579
9580 2011-03-11  Jim Meyering  <meyering@redhat.com>
9581
9582         maint.mk: relax a regexp to accommodate other formatting styles
9583         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
9584         between "ngettext" and the following "(".
9585
9586 2011-03-11  Pádraig Brady <P@draigBrady.com>
9587
9588         maint.mk: suppress a false positive warning
9589         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
9590         diagnostics are marked with ngettext.
9591
9592 2011-03-10  Eric Blake  <eblake@redhat.com>
9593
9594         wchar: add explicit dependencies, for Tru64
9595         * modules/mbmemcasecoll (Depends-on): Add wchar.
9596         * modules/mbtowc (Depends-on): Likewise.
9597         * modules/vasnprintf (Depends-on): Likewise.
9598         * modules/unistdio/u-printf-args (Depends-on): Likewise.
9599         * modules/wctomb (Depends-on): Likewise.
9600         Reported by Peter O'Gorman.
9601
9602 2011-03-08  Bruno Haible  <bruno@clisp.org>
9603
9604         passfd module, part 1, tweaks.
9605         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
9606         Improve indentation. Improve AC_MSG_CHECKING messages.
9607         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
9608         gl_SOCKET_FAMILIES.
9609
9610 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
9611
9612         passfd module, part 1.
9613         * m4/afunix.m4: New file.
9614         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
9615         sockets.
9616
9617 2011-03-08  Bruno Haible  <bruno@clisp.org>
9618
9619         regex-quote: New API.
9620         * lib/regex-quote.h: Include <stdbool.h>.
9621         (struct regex_quote_spec): New type.
9622         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
9623         New declarations.
9624         (regex_quote_length, regex_quote_copy, regex_quote): Take a
9625         'const struct regex_quote_spec *' argument.
9626         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
9627         (pcre_special): New constant.
9628         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
9629         New functions.
9630         (regex_quote_length, regex_quote_copy, regex_quote): Take a
9631         'const struct regex_quote_spec *' argument.
9632         * modules/regex-quote (Depends-on): Add stdbool.
9633         * tests/test-regex-quote.c (check): Update for new API. Add test for
9634         anchored results.
9635         * NEWS: Mention the API change.
9636         Reported by Reuben Thomas and Eric Blake.
9637
9638 2011-03-06  Bruno Haible  <bruno@clisp.org>
9639
9640         regex-quote: Fix creation of POSIX extended regular expressions.
9641         * lib/regex-quote.c (ere_special): Add grouping and alternation
9642         operators.
9643
9644 2011-03-05  Bruno Haible  <bruno@clisp.org>
9645
9646         doc: Improve doc regarding autopoint vs. gnulib.
9647         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
9648         disable autopoint while running autoreconf.
9649         Suggested by Ralf Wildenhues.
9650
9651 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9652
9653         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
9654         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
9655
9656 2011-03-03  Bruce Korb  <bkorb@gnu.org>
9657
9658         parse-duration: remove xalloc.h dependency
9659         * lib/parse-duration.c (parse_period): handle NULL return from
9660         strdup instead of calling xstrdup().
9661         * modules/parse-duration: remove "xalloc" dependency
9662
9663 2011-03-03  Matthew Booth  <mbooth@redhat.com>
9664
9665         bootstrap: honor m4_base when running aclocal
9666         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
9667
9668 2011-03-02  Jim Meyering  <meyering@redhat.com>
9669
9670         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
9671         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
9672         on request from Matt Booth.
9673
9674 2011-03-01  Eric Blake  <eblake@redhat.com>
9675
9676         test-link: work on Hurd
9677         * tests/test-link.h (test_link): Hurd rejects linking directories
9678         with EISDIR instead of the POSIX-mandated EPERM.
9679
9680 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
9681
9682         stdio: simplify by moving files to printf-posix, sigpipe
9683         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
9684         since this symbol is needed only if printf is replaced.
9685         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
9686         Require gl_ASM_SYMBOL_PREFIX.
9687         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
9688         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
9689         (Depends-on): Add 'raise'.
9690         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
9691         * modules/stdio (Files): Remove lib/stdio-write.c,
9692         m4/asm-underscore.m4.
9693         (Depends-on): Remove 'raise'.
9694
9695         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
9696         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
9697         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
9698         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
9699
9700 2011-02-28  Bruno Haible  <bruno@clisp.org>
9701
9702         localcharset: Assume ANSI C behaviour of free().
9703         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
9704         calling free().
9705         Suggested by Simon Josefsson <simon@josefsson.org>.
9706
9707 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
9708             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
9709             Bruno Haible  <bruno@clisp.org>  (tiny change)
9710
9711         On Cygwin, use /proc file system instead of win32 API.
9712         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
9713         Win32 file names.
9714         (DllMain): Simplify by removing Cygwin specific code.
9715         (find_shared_library_fullname): Use Linux specific implementation also
9716         for Cygwin.
9717         (get_shared_library_fullname): Update accordingly.
9718         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
9719         Win32 file names.
9720         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
9721         Cygwin specific code.
9722
9723 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
9724             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
9725
9726         Fix OpenMP flag detection for various Fortran compilers.
9727         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
9728         OpenMP-conditional compilation construct, to force compile
9729         failure with missing OpenMP flag.
9730         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
9731
9732 2011-02-25  Eric Blake  <eblake@redhat.com>
9733
9734         strstr: expand test coverage
9735         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
9736         compilation.
9737         * tests/test-memmem.c (main): Duplicate tests.
9738         * tests/test-strcasestr.c (main): Likewise.
9739         * tests/test-c-strcasestr.c (main): Likewise.
9740
9741 2011-02-25  Jim Meyering  <meyering@redhat.com>
9742
9743         maint.mk: detect missing-NL-at-EOF, too
9744         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
9745         it also detects when a file lacks a newline at EOF.
9746         (require_exactly_one_NL_at_EOF_): Renamed from
9747         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
9748         since people may well have .x-sc_... file names tied to the
9749         existing name.  Suggested by Eric Blake.
9750
9751 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
9752
9753         dirname: move m4/dos.m4 functionality into lib/dosname.h
9754
9755         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
9756         extracts symbols from it, puts them into config.h; but it's much
9757         easier to use the symbols directly.  filename.h already does this,
9758         but it disagrees with dos.m4 in some respects.  This patch
9759         introduces a different include file dosname.h that packages up
9760         dos.m4, and then later we can work on merging filename.h and
9761         dosname.h.  Applications that need only the easy-to-configure
9762         symbols should consider including dosname.h rather than dirname.h.
9763         * NEWS: Mention incompatible changes.
9764         * m4/dos.m4: Remove.
9765         * lib/dosname.h, modules/dosname: New files.
9766         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
9767         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
9768         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
9769         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
9770         Include dosname.h, not dirname.h.
9771         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
9772         Include dosname.h, for definitions of symbols like ISSLASH
9773         that used to be in config.h.
9774         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
9775         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
9776         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
9777         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
9778         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
9779         * modules/rmdir (Files): Likewise.
9780         * modules/stat (Files): Likewise.
9781         * modules/unlink (Files): Likewise.
9782         * modules/dirname-lgpl (Depends-on): Add dosname.
9783         * modules/lstat (Depends-on): Likewise.
9784         * modules/openat (Depends-on): Likewise.
9785         * modules/rmdir (Depends-on): Likewise.
9786         * modules/savewd (Depends-on): Likewise.
9787         * modules/stat (Depends-on): Likewise.
9788         * modules/unlink (Depends-on): Likewise.
9789         * modules/openat (Depends-on): Remove dirname-lgpl.
9790         * modules/savewd (Depends-on): Likewise.
9791         * tests/test-dirname.c: Do not use removed symbols like
9792         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
9793         the remaining symbols, e.g., ISSLASH ('\\').
9794
9795 2011-02-25  Eric Blake  <eblake@redhat.com>
9796
9797         strstr: revert patches that introduced bug and pessimization
9798         * lib/str-two-way.h: Add another reference.
9799         (two_way_short_needle, two_way_long_needle): Revert changes from
9800         2011-02-24; they pessimize search speed.
9801         (critical_factorization): Partially revert changes from
9802         2010-06-22; they violate the requirement that the left half of the
9803         needle be smaller than the period of the needle.
9804
9805 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
9806
9807         filenamecat: remove unnecessary dependency on dirname-lgpl
9808         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
9809         is no direct dependency, just an indirect one via filenamecat-lgpl.
9810
9811         remove: remove unnecessary use of m4/dos.m4
9812         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
9813         * modules/remove (FILES): Remove m4/dos.m4.
9814
9815         * lib/openat-proc.c: Don't include dirname.h; not needed.
9816
9817         backupfile: remove unnecessary use of m4/dos.m4
9818         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
9819         of its symbols are used by the backupfile code.  backupfile.c does
9820         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
9821         for the rare case of programs that want all their backup file
9822         names to live within 8+3 limits, and dos.m4 doesn't address that.
9823         * modules/backupfile (Files): Remove m4/dos.m4.
9824
9825 2011-02-24  Jim Meyering  <meyering@redhat.com>
9826
9827         strstr: fix a bug whereby strstr would mistakenly return NULL
9828         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
9829         in period calculation.
9830         (two_way_long_needle): Likewise.
9831         The original problem was reported by Mike Stump in
9832         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
9833         Ralf Wildenhues provided the short needle and haystack.
9834         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
9835         Add a more involved test to trigger the bug in two_way_long_needle.
9836
9837 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
9838
9839         gnulib-tool: remove use of bold display in help screen
9840         * gnulib-tool (func_usage): Do not use bold display anymore in the
9841         help screen.  That was just meant to be a temporary emphasis for a
9842         backward-incompatible change.
9843
9844 2011-02-23  Bruno Haible  <bruno@clisp.org>
9845
9846         Fix misindentation of preprocessor directives.
9847         * lib/argp-namefrob.h: Reindent preprocessor directives.
9848         * lib/getopt_int.h (struct _getopt_data): Likewise.
9849         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
9850         * lib/vasnprintf.c (decode_long_double): Likewise.
9851         * tests/test-argmatch.c: Insert blank lines, for clarity.
9852         * tests/test-exclude.c: Likewise.
9853
9854 2011-02-22  Bruno Haible  <bruno@clisp.org>
9855
9856         ioctl: Fix for MacOS X in 64-bit mode.
9857         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
9858         value.
9859         Suggested by Eric Blake.
9860         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
9861
9862 2011-02-22  Jim Meyering  <meyering@redhat.com>
9863
9864         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
9865         * Makefile (sc_cpp_indent_check): Don't limit the check to files
9866         in lib/.
9867
9868 2011-02-22  Eric Blake  <eblake@redhat.com>
9869
9870         maint: avoid any CDPATH issue
9871         * Makefile (sc_cpp_indent_check): Anchor cd argument.
9872
9873         maint: adjust cpp indentation for my modules, as well
9874         * Makefile (sc_cpp_indent_check): Add my name.
9875         * lib/fbufmode.c: Filter through cppi.
9876         * lib/fpurge.c: Likewise.
9877         * lib/freadable.c: Likewise.
9878         * lib/freading.c: Likewise.
9879         * lib/fwritable.c: Likewise.
9880         * lib/fwriting.c: Likewise.
9881         * lib/sigaction.c: Likewise.
9882
9883 2011-02-22  Jim Meyering  <meyering@redhat.com>
9884
9885         maint: adjust cpp indentation to reflect nesting depth
9886         I.e., in a block of code that begins with an unnested "#if",
9887         put one space between the "#" in column 1 and following token.
9888         For example,
9889         -#include <sys/vfs.h>
9890         +# include <sys/vfs.h>
9891         Do this only in .c files that are part of a module I maintain.
9892         * lib/linkat.c: Filter through cppi.
9893         * lib/nanosleep.c: Likewise.
9894         * lib/openat.c: Likewise.
9895         * lib/openat-die.c: Likewise.
9896         * lib/dup3.c: Likewise.
9897         * lib/fchownat.c: Likewise.
9898         * lib/flock.c: Likewise.
9899         * lib/fsync.c: Likewise.
9900         * lib/fts.c: Likewise.
9901         * lib/getpass.c: Likewise.
9902         * lib/gettimeofday.c: Likewise.
9903         * lib/userspec.c: Likewise.
9904         * Makefile (sc_cpp_indent_check): New rule, to check this.
9905
9906 2011-02-22  Bruno Haible  <bruno@clisp.org>
9907
9908         New module 'wctomb'.
9909         * lib/stdlib.in.h (wctomb): New declaration.
9910         * lib/wctomb.c: New file.
9911         * lib/wctomb-impl.h: New file.
9912         * m4/wctomb.m4: New file.
9913         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
9914         REPLACE_WCTOMB.
9915         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
9916         REPLACE_WCTOMB.
9917         * modules/wctomb: New file.
9918         * tests/test-stdlib-c++.cc: Test signature of wctomb.
9919         * doc/posix-functions/wctomb.texi: Mention the new module.
9920         * modules/wctob (Depends-on): Add wctomb.
9921
9922 2011-02-22  Bruno Haible  <bruno@clisp.org>
9923
9924         New module 'mbtowc'.
9925         * lib/stdlib.in.h (mbtowc): New declaration.
9926         * lib/mbtowc.c: New file.
9927         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
9928         * m4/mbtowc.m4: New file.
9929         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
9930         REPLACE_MBTOWC.
9931         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
9932         REPLACE_MBTOWC.
9933         * modules/mbtowc: New file.
9934         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
9935         * doc/posix-functions/mbtowc.texi: Mention the new module.
9936         * modules/btowc (Depends-on): Add mbtowc.
9937
9938 2011-02-22  Bruno Haible  <bruno@clisp.org>
9939
9940         wcrtomb: Add more tests for native Windows platforms.
9941         * tests/test-wcrtomb-w32-1.sh: New file.
9942         * tests/test-wcrtomb-w32-2.sh: New file.
9943         * tests/test-wcrtomb-w32-3.sh: New file.
9944         * tests/test-wcrtomb-w32-4.sh: New file.
9945         * tests/test-wcrtomb-w32-5.sh: New file.
9946         * tests/test-wcrtomb-w32.c: New file.
9947         * modules/wcrtomb-tests (Files): Add them.
9948         (Makefile.am): Arrange to run these tests.
9949         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
9950         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
9951
9952 2011-02-20  Bruno Haible  <bruno@clisp.org>
9953
9954         wcrtomb: Enhance test.
9955         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
9956
9957 2011-02-20  Bruno Haible  <bruno@clisp.org>
9958
9959         mbrtowc: Tiny optimization.
9960         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
9961
9962 2011-02-20  Jim Meyering  <meyering@redhat.com>
9963
9964         test-exclude.c: remove unmatched #endif
9965         * tests/test-exclude.c: Remove stray #endif, left over from
9966         the change of a week ago.
9967
9968 2011-02-19  Jim Meyering  <meyering@redhat.com>
9969
9970         git-version-gen: skip "-dirty" check when appropriate
9971         * build-aux/git-version-gen: Don't run any git commands when the
9972         version string comes from .tarball-version.  Prior to this, we
9973         would run git update-index --refresh even from a just-unpacked
9974         tarball directory, and that could affect a .git/ directory in a
9975         parent of the build directory.  Reported by Mike Frysinger.
9976
9977 2011-02-19  Bruno Haible  <bruno@clisp.org>
9978
9979         unictype/property-byname: Reduce the size of the 'data' segment.
9980         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
9981
9982 2011-02-19  Bruno Haible  <bruno@clisp.org>
9983
9984         unictype/scripts: Reduce the size of the 'data' segment.
9985         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
9986         '%pic'.
9987         * lib/unictype/scripts_byname.gperf: Regenerated.
9988
9989 2011-02-19  Bruno Haible  <bruno@clisp.org>
9990
9991         stdint: Update documentation.
9992         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
9993
9994 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
9995
9996         stdint: omit redundant check for wchar.h
9997         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
9998         always tests whether wchar.h exists, so remove the now-redundant test.
9999
10000 2011-02-18  Bruno Haible  <bruno@clisp.org>
10001
10002         stdint: Cut dependency to module 'wchar'.
10003         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
10004         include the necessary prerequisites.
10005         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
10006         * modules/stdint (Depends-on): Remove wchar.
10007         (Makefile.am): Substitute HAVE_WCHAR_H.
10008         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
10009
10010 2011-02-18  Eric Blake  <eblake@redhat.com>
10011
10012         longlong: skip, rather than fail, on cross-compilation
10013         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
10014         when cross-compiling; regression from 2011-02-16.
10015
10016 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
10017
10018         * NEWS: Mention 2011-02-08 change to stdlib.
10019
10020 2011-02-17  Bruno Haible  <bruno@clisp.org>
10021
10022         getloadavg: Add comments about platforms.
10023         * m4/getloadavg.m4: Add comment.
10024         * lib/getloadavg.c: Likewise.
10025
10026 2011-02-17  Bruno Haible  <bruno@clisp.org>
10027
10028         getloadavg: Fix link error on Solaris 2.6.
10029         * modules/getloadavg (Link): New section.
10030         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
10031         linking test-getloadavg.
10032         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
10033         getloadavg.
10034
10035 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
10036
10037         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
10038         It was 'int', but this doesn't match the IRIX 6.5 manual.
10039         Suggested by Bruno Haible in
10040         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
10041
10042 2011-02-17  Bruno Haible  <bruno@clisp.org>
10043
10044         havelib: Fix comments.
10045         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
10046         change.
10047
10048 2011-02-17  Bruno Haible  <bruno@clisp.org>
10049
10050         havelib: Update config.rpath.
10051         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
10052
10053 2011-02-17  Bruno Haible  <bruno@clisp.org>
10054
10055         getloadavg test: Add some plausibility checks.
10056         * tests/test-getloadavg.c (check_avg): Print a warning when the value
10057         is improbable.
10058
10059 2011-02-16  Eric Blake  <eblake@redhat.com>
10060
10061         maintainer-makefile: make syntax-check a no-op from tarballs
10062         * top/maint.mk (no-vc-detected): New rule.
10063         (local-checks-available): Use it to avoid hanging if someone tries
10064         'make syntax-check' from a tarball.  Also append to any non-syntax
10065         checks already defined in cfg.mk.
10066
10067 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
10068
10069         longlong: tune, particularly for common case of c99
10070
10071         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
10072         or running anything if c99, or if unsigned long long int does not
10073         work.  In either case, we know the answer without further tests.
10074         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
10075         it at most once, and use its results for both long long int and
10076         unsigned long long int.  This is more likely to be efficient in
10077         the common case where the program wants to check for both long
10078         long int and unsigned long long int.
10079         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
10080         since the answer is already known.
10081
10082 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
10083
10084         getloadavg: set errno
10085         * lib/getloadavg.c: Set errno when returning -1.  If no other
10086         error number looks appropriate, set it to ENOSYS if the getloadavg
10087         looks like it can't possibly ever work, ENOTSUP otherwise.
10088         Suggested by Bruno Haible in
10089         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
10090
10091         getloadavg: trim unused parts and speed up 'configure'
10092         * NEWS: Document this.
10093         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
10094         always compiled if getloadavg is absent.
10095         Move test code to ...
10096         * tests/test-getloadavg.c: New file, containing previous
10097         contents of test from lib/getloadavg.c.  It also contains
10098         suggestions by Bruno Haible in
10099         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
10100         * modules/getloadavg-tests: New file.
10101         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
10102         Do tests in the same order as they're needed for getloadavg.c.
10103         Omit setgid-related tests that generate symbols KMEM_GROUP,
10104         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
10105         Do only the tests that are needed to see whether the system has
10106         getloadavg, moving the other tests into ...
10107         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
10108         NLIST_NAME_UNION; nobody should be using it.  Do not define
10109         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
10110         relevant, as the user of this module shouldn't care how getloadavg
10111         is implemented.
10112
10113         getloadavg: omit unused var
10114         * lib/getloadavg.c (getloadavg): Omit unused local variable.
10115
10116 2011-02-15  Jim Meyering  <meyering@redhat.com>
10117
10118         doc: update users.txt
10119         * users.txt: Update iwhd's URL.
10120
10121 2011-02-13  Bruno Haible  <bruno@clisp.org>
10122
10123         Consistent macro naming for macros that use GCC __attribute__.
10124         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
10125         _ATTRIBUTE_NONNULL_.
10126         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
10127         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
10128         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
10129         ATTRIBUTE_DEPRECATED.
10130         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
10131         ATTRIBUTE_NORETURN.
10132         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
10133         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
10134         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
10135         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
10136         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
10137         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
10138         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
10139         ATTRIBUTE_SENTINEL.
10140         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
10141         ATTRIBUTE_RETURN_CHECK.
10142         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
10143         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
10144         ATTRIBUTE_NORETURN.
10145         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
10146         Reported by Paul Eggert.
10147
10148 2011-02-13  Bruno Haible  <bruno@clisp.org>
10149
10150         Don't interfere with a program's definition of __attribute__.
10151         * lib/argp.h (__attribute__): Remove definition.
10152         (_GL_ATTRIBUTE_FORMAT): New macro.
10153         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
10154         * lib/argp-fmtstream.h (__attribute__): Remove definition.
10155         (_GL_ATTRIBUTE_FORMAT): New macro.
10156         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
10157         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
10158         GCC 3 or newer.
10159         * lib/error.h (__attribute__): Remove definition.
10160         (_GL_ATTRIBUTE_FORMAT): New macro.
10161         (error, error_at_line): Use it.
10162         * lib/hash.h (__attribute__): Remove definition.
10163         (ATTRIBUTE_WUR): Update definition. Define always.
10164         * lib/openat.h (__attribute__): Remove definition.
10165         (ATTRIBUTE_NORETURN): Update definition. Define always.
10166         * lib/sigpipe-die.h (__attribute__): Remove definition.
10167         (ATTRIBUTE_NORETURN): Update definition. Define always.
10168         * lib/vasnprintf.h (__attribute__): Remove definition.
10169         (_GL_ATTRIBUTE_FORMAT): New macro.
10170         (asnprintf, vasnprintf): Use it.
10171         * lib/xalloc.h (__attribute__): Remove definition.
10172         (ATTRIBUTE_NORETURN): Update definition. Define always.
10173         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
10174         * lib/xmemdup0.h (__attribute__): Remove definition.
10175         (ATTRIBUTE_NORETURN): Update definition. Define always.
10176         * lib/xprintf.h (__attribute__): Remove definition.
10177         (_GL_ATTRIBUTE_FORMAT): New macro.
10178         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
10179         * lib/xstrtol.h (__attribute__): Remove definition.
10180         (ATTRIBUTE_NORETURN): Update definition. Define always.
10181         * lib/xvasprintf.h (__attribute__): Remove definition.
10182         (_GL_ATTRIBUTE_FORMAT): New macro.
10183         (xasprintf, xvasprintf): Use it.
10184         * tests/test-argmatch.c (__attribute__): Remove definition.
10185         (ATTRIBUTE_NORETURN): Update definition. Define always.
10186         * tests/test-exclude.c (__attribute__): Remove definition.
10187         (ATTRIBUTE_NORETURN): Update definition. Define always.
10188         Reported by Paul Eggert.
10189
10190 2011-02-13  Bruno Haible  <bruno@clisp.org>
10191
10192         mbrtowc: Add more tests for native Windows platforms.
10193         * tests/test-mbrtowc-w32-1.sh: New file.
10194         * tests/test-mbrtowc-w32-2.sh: New file.
10195         * tests/test-mbrtowc-w32-3.sh: New file.
10196         * tests/test-mbrtowc-w32-4.sh: New file.
10197         * tests/test-mbrtowc-w32-5.sh: New file.
10198         * tests/test-mbrtowc-w32.c: New file.
10199         * modules/mbrtowc-tests (Files): Add them.
10200         (Makefile.am): Arrange to run these tests.
10201         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
10202         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
10203
10204 2011-02-13  Bruno Haible  <bruno@clisp.org>
10205
10206         mbrtowc: Work around native Windows bug.
10207         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
10208         guess when no suitable locale for testing was found.
10209         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
10210
10211 2011-02-13  Bruno Haible  <bruno@clisp.org>
10212
10213         mbsinit: Work around mingw bug.
10214         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
10215         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
10216         Windows.
10217         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
10218
10219 2011-02-13  Bruno Haible  <bruno@clisp.org>
10220
10221         mbsinit: Don't crash for a NULL argument.
10222         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
10223         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
10224
10225 2011-02-13  Bruno Haible  <bruno@clisp.org>
10226
10227         Don't interfere with a program's definition of __attribute__.
10228         * lib/stdio.in.h (__attribute__): Remove definition.
10229         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
10230         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
10231         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
10232         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
10233         * lib/string.in.h (__attribute__): Remove definition.
10234         Reported by Paul Eggert.
10235
10236 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
10237
10238         stdlib: don't get in the way of non-GCC __attribute__
10239         See thread starting at
10240         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
10241         Revert previous stdlib change, installing the following instead:
10242         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
10243         to get in the way of a non-GCC compiler that supports __attribute__.
10244         (_GL_ATTRIBUTE_RETURN): New macro.
10245         (_Exit): Use it instead of __attribute__.
10246
10247 2011-02-12  Bruno Haible  <bruno@clisp.org>
10248
10249         quotearg test: Avoid test failure on mingw.
10250         * tests/test-quotearg.sh: Convert the locale identifier from native
10251         Windows syntax to Unix syntax.
10252
10253 2011-02-12  Bruno Haible  <bruno@clisp.org>
10254
10255         setlocale: Prefer gnulib's override over libintl's override.
10256         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
10257         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
10258         GNULIB_defined_setlocale is set.
10259
10260 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
10261
10262         stdlib: support non-GCC __attribute__
10263
10264         Fix a serious and tricky problem encountered when attempting to
10265         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
10266         5.5, but it crashed due to memory corruption on Solaris 10 with
10267         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
10268         bits that are otherwise zero.  This tagging is optional inside
10269         Emacs but is preferred and is used when __attribute__ ((__aligned
10270         (8))) works, as it does with both recent-enough GCC and with Sun C
10271         5.11.  However, Sun C 5.11 is not GCC and does not #define
10272         __GNUC__ and __GNUC_MINOR__.
10273
10274         When I added the getloadavg module to Emacs, it brought in
10275         stdlib.in.h, which contained this fragment:
10276
10277            #ifndef __attribute__
10278            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
10279            #  define __attribute__(Spec)   /* empty */
10280            # endif
10281            #endif
10282
10283         When files that include <stdlib.h> were compiled with Sun C 5.11,
10284         the above code disabled __attribute__ ((__aligned (8))), which
10285         caused variables to not be properly aligned, which eventually led
10286         to the pointer corruption mentioned above.  (This was a bit hard
10287         to diagnose, unfortunately.)
10288
10289         Several "#define __attribute__(X) /* empty */" code snippets need
10290         to be eradicated from Gnulib to work with non-GCC compilers that
10291         support __attribute__.  The Autoconf way to do this is to test for
10292         each kind of attribute that we want support for, and selectively
10293         enable that in source code.
10294
10295         Fix this problem just for stdlib.h, by adding a test for the
10296         __noreturn__ attribute, and change stdlib.in.h to use that test
10297         when needed.  This technique can be easily generalized to the
10298         other *.in.h files and attributes, and a similar technique can be
10299         used for *.h and *.c files.  This patch is enough to solve the
10300         problem for Emacs + getloadavg, and I thought I'd publish it for
10301         feedback before undertaking further, similar fixes in other
10302         modules.
10303
10304         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
10305         because it's not needed for stdlib.h.  It merely substitutes the
10306         value directly into stdlib.h.  We may well need to #define it, or
10307         similar symbols, for other modules, but it's nice to also have an
10308         option to not #define it for applications like Emacs that do not
10309         need it.
10310
10311         * lib/stdlib.in.h (__attribute__): Do not #define.
10312         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
10313         be defined only if the _Exit module is also used.
10314         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
10315         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
10316         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
10317         platforms.
10318         * modules/_Exit (Files): Add m4/attribute.m4.
10319         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
10320         * m4/attribute.m4: New file.
10321
10322 2011-02-12  Bruno Haible  <bruno@clisp.org>
10323
10324         wcsrtombs: Work around bug on native Windows.
10325         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
10326         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
10327         instead of len.
10328         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
10329
10330 2011-02-12  Bruno Haible  <bruno@clisp.org>
10331
10332         mbsrtowcs: Work around bug on native Windows.
10333         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
10334         against mingw bug.
10335         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
10336
10337 2011-02-12  Bruno Haible  <bruno@clisp.org>
10338
10339         Avoid setlocale bugs in tests.
10340         * modules/btowc (Dependencies): Add setlocale.
10341         * modules/c-strcase (Dependencies): Likewise.
10342         * modules/mbmemcasecmp (Dependencies): Likewise.
10343         * modules/mbmemcasecoll (Dependencies): Likewise.
10344         * modules/mbrtowc (Dependencies): Likewise.
10345         * modules/mbscasecmp (Dependencies): Likewise.
10346         * modules/mbscasestr (Dependencies): Likewise.
10347         * modules/mbschr (Dependencies): Likewise.
10348         * modules/mbscspn (Dependencies): Likewise.
10349         * modules/mbsinit (Dependencies): Likewise.
10350         * modules/mbsncasecmp (Dependencies): Likewise.
10351         * modules/mbsnrtowcs (Dependencies): Likewise.
10352         * modules/mbspbrk (Dependencies): Likewise.
10353         * modules/mbspcasecmp (Dependencies): Likewise.
10354         * modules/mbsrchr (Dependencies): Likewise.
10355         * modules/mbsrtowcs (Dependencies): Likewise.
10356         * modules/mbsspn (Dependencies): Likewise.
10357         * modules/mbsstr (Dependencies): Likewise.
10358         * modules/nl_langinfo (Dependencies): Likewise.
10359         * modules/quotearg (Dependencies): Likewise.
10360         * modules/unicase/locale-language (Dependencies): Likewise.
10361         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
10362         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
10363         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
10364         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
10365         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
10366         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
10367         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
10368         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
10369         * modules/vasnprintf-posix (Dependencies): Likewise.
10370         * modules/wcrtomb (Dependencies): Likewise.
10371         * modules/wcsnrtombs (Dependencies): Likewise.
10372         * modules/wcsrtombs (Dependencies): Likewise.
10373
10374 2011-02-12  Bruno Haible  <bruno@clisp.org>
10375
10376         setlocale: Workaround native Windows bug.
10377         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
10378         succeeds but sets LC_CTYPE to "C", report a failure.
10379         * tests/test-setlocale2.sh: New file.
10380         * tests/test-setlocale2.c: New file.
10381         * modules/setlocale-tests (Files): Add the new files.
10382         (Makefile.am): Enable test-setlocale2.sh test.
10383         * doc/posix-functions/setlocale.texi: Mention workaround.
10384
10385 2011-02-11  Bruno Haible  <bruno@clisp.org>
10386
10387         Tests for module 'setlocale'.
10388         * modules/setlocale-tests: New file.
10389         * tests/test-setlocale1.sh: New file.
10390         * tests/test-setlocale1.c: New file.
10391
10392         New module 'setlocale'.
10393         * lib/locale.in.h (setlocale): New declaration.
10394         * lib/setlocale.c: New file, based on
10395         gettext/gettext-runtime/intl/setlocale.c.
10396         * m4/setlocale.m4: New file.
10397         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
10398         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
10399         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
10400         REPLACE_SETLOCALE.
10401         * modules/setlocale: New file.
10402         * tests/test-locale-c++.cc: Test the declaration of setlocale.
10403         * doc/posix-functions/setlocale.texi: Mention the new module.
10404
10405 2011-02-11  Bruno Haible  <bruno@clisp.org>
10406
10407         Prepare for locale dependent tests on mingw.
10408         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
10409         because it has the wrong locale encoding.
10410         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
10411         French_France.1252 instead of "fr".
10412         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
10413         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
10414         because it has the wrong locale encoding.
10415         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
10416         native Windows, try Turkish_Turkey.65001.
10417         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
10418         Chinese_China.54936.
10419
10420         Prepare for locale dependent tests on mingw.
10421         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
10422         differently.
10423         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
10424         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
10425         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
10426         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
10427
10428 2011-02-11  Eric Blake  <eblake@redhat.com>
10429
10430         strptime: avoid compiler warnings
10431         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
10432         compiler warnings about dead code.
10433         Reported by Daniel P. Berrange.
10434
10435 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
10436
10437         doc: update users.txt
10438         * users.txt: Add rcs.
10439
10440 2011-02-10  John W. Eaton  <jwe@gnu.org>
10441
10442         doc: update users.txt
10443         * users.txt: Add octave.
10444
10445 2011-02-10  Jim Meyering  <meyering@redhat.com>
10446
10447         doc: update users.txt
10448         * users.txt: Add iwhd.
10449
10450 2011-02-09  Bruno Haible  <bruno@clisp.org>
10451
10452         gnulib-tool: Make copyright notice adjustment more robust.
10453         * gnulib-tool (func_import): In sed_transform_main_lib_file,
10454         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
10455         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
10456         License".
10457         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
10458
10459 2011-02-06  Bruno Haible  <bruno@clisp.org>
10460
10461         New module 'towctrans'.
10462         * modules/towctrans: New file.
10463         * lib/wctype.in.h (towctrans): New declaration.
10464         * lib/towctrans.c: New file.
10465         * lib/towctrans-impl.h: New file.
10466         * m4/towctrans.m4: New file.
10467         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
10468         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
10469         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
10470         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
10471         * doc/posix-functions/towctrans.texi: Mention the new module.
10472
10473 2011-02-06  Bruno Haible  <bruno@clisp.org>
10474
10475         New module 'wctrans'.
10476         * modules/wctrans: New file.
10477         * lib/wctype.in.h (wctrans): New declaration.
10478         * lib/wctrans.c: New file.
10479         * lib/wctrans-impl.h: New file.
10480         * m4/wctrans.m4: New file.
10481         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
10482         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
10483         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
10484         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
10485         * doc/posix-functions/wctrans.texi: Mention the new module.
10486
10487 2011-02-06  Bruno Haible  <bruno@clisp.org>
10488
10489         New module 'iswctype'.
10490         * modules/iswctype: New file.
10491         * lib/wctype.in.h (iswctype): New declaration.
10492         * lib/iswctype.c: New file.
10493         * lib/iswctype-impl.h: New file.
10494         * m4/iswctype.m4: New file.
10495         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
10496         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
10497         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
10498         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
10499         * doc/posix-functions/iswctype.texi: Mention the new module and the
10500         HP-UX 11.00 problem.
10501
10502 2011-02-06  Bruno Haible  <bruno@clisp.org>
10503
10504         New module 'wctype'.
10505         * modules/wctype: Change to represent the wctype() substitute.
10506         * lib/wctype.in.h (wctype): New declaration.
10507         * lib/wctype.c: New file.
10508         * lib/wctype-impl.h: New file.
10509         * m4/wctype.m4: New file.
10510         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
10511         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
10512         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
10513         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
10514         * doc/posix-functions/wctype.texi: Mention the new module and the
10515         HP-UX 11.00 problem.
10516
10517 2011-02-06  Bruno Haible  <bruno@clisp.org>
10518
10519         wctype-h: Ensure wctype_t and wctrans_t are defined.
10520         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
10521         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
10522         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
10523         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
10524         HAVE_WCTRANS_T.
10525         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
10526
10527 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
10528
10529         flock: fix license typo
10530
10531         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
10532         omitted.
10533
10534 2011-02-08  Bruno Haible  <bruno@clisp.org>
10535
10536         Split large sed scripts, for HP-UX sed.
10537         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
10538         to avoid HP-UX limit of 99 commands, in the near future.
10539         * modules/stdlib (Makefile.am): Likewise.
10540         * modules/unistd (Makefile.am): Likewise.
10541         * modules/wchar (Makefile.am): Likewise.
10542         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
10543         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
10544         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
10545
10546 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
10547             Bruno Haible  <bruno@clisp.org>
10548
10549         stdlib: improve random_r modularization
10550         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
10551         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
10552         you also need the random_r module to get this material right.
10553         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
10554         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
10555         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
10556
10557 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
10558
10559         stdlib: don't depend on stdint
10560         * lib/stdlib.in.h: Don't include <stdint.h> merely because
10561         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
10562         be independent of whether stdint.h is needed.
10563         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
10564         here, instead of ...
10565         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
10566         struct random_data should be using the random_r module, not just
10567         the stdlib module (which wouldn't make sense: what package needs
10568         just struct random_data without also needing random_r?).
10569         * modules/stdlib (Depends-on): Remove stdint.
10570
10571         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
10572         See the thread rooted at
10573         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
10574         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
10575         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
10576         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
10577         __VMS)); previously it was always included (via fcntl--.h).
10578         (getloadavg): Do not use c_strtod.  Instead, approximate it by
10579         hand; this is good enough for load averages.  Also, do not use
10580         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
10581         flags directly if available and don't bother otherwise.  (Packages
10582         that need the extra reliability should use the modules that define
10583         these flags on older platforms that lack them.)
10584         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
10585         fcntl-safer.
10586
10587 2011-02-08  Jim Meyering  <meyering@redhat.com>
10588
10589         di-set.h, ino-map.h: add multiple-inclusion guard
10590         Technically, the guard is required only for ino-map.h, due to its
10591         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
10592         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
10593         * lib/ino-map.h: Likewise.
10594
10595 2011-02-06  Bruno Haible  <bruno@clisp.org>
10596
10597         iswblank: Ensure declaration on glibc systems.
10598         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
10599         * modules/iswblank (Dependencies): Add 'extensions'.
10600         * doc/posix-functions/iswblank.texi: Document the glibc problem.
10601
10602 2011-02-06  Bruno Haible  <bruno@clisp.org>
10603
10604         New module 'iswblank'.
10605         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
10606         * modules/iswblank: New file.
10607         * modules/wctype-h (Files): Remove lib/iswblank.c.
10608         (Makefile.am): Substitute GNULIB_ISWBLANK.
10609         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
10610         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
10611         (gl_WCTYPE_H_DEFAULTS): New macro.
10612         (gl_WCTYPE_H): Require it. Remove iswblank related code.
10613         * modules/iswblank-tests: New file.
10614         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
10615         * tests/test-wctype-h.c (main): Remove iswblank tests.
10616         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
10617         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
10618         of 'wctype-h'.
10619         * NEWS: Mention the change.
10620         * modules/mbchar (Depends-on): Add iswblank.
10621
10622 2011-02-08  Bruno Haible  <bruno@clisp.org>
10623
10624         di-set tests: Refactor.
10625         * tests/test-di-set.c: Include di-set.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/di-set-tests (Files): Add tests/macros.h.
10631
10632 2011-02-08  Bruno Haible  <bruno@clisp.org>
10633
10634         ino-map tests: Refactor.
10635         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
10636         unnecessary includes.
10637         (ASSERT): Remove macro.
10638         (main): Make C90 compliant by avoiding variable declaration after
10639         statement.
10640         * modules/ino-map-tests (Files): Add tests/macros.h.
10641
10642 2011-02-08  Jim Meyering  <meyering@redhat.com>
10643
10644         di-set: add "const" to a cast
10645         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
10646         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
10647
10648 2011-02-06  Bruno Haible  <bruno@clisp.org>
10649
10650         Rename module 'wctype' to 'wctype-h'.
10651         * modules/wctype-h: Renamed from modules/wctype.
10652         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
10653         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
10654         (Files, Depends-on, Makefile.am): Update.
10655         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
10656         (Files, Makefile.am): Update.
10657         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
10658         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
10659         * doc/posix-headers/wctype.texi: Update.
10660         * doc/posix-functions/iswalnum.texi: Update.
10661         * doc/posix-functions/iswalpha.texi: Update.
10662         * doc/posix-functions/iswblank.texi: Update.
10663         * doc/posix-functions/iswcntrl.texi: Update.
10664         * doc/posix-functions/iswdigit.texi: Update.
10665         * doc/posix-functions/iswgraph.texi: Update.
10666         * doc/posix-functions/iswlower.texi: Update.
10667         * doc/posix-functions/iswprint.texi: Update.
10668         * doc/posix-functions/iswpunct.texi: Update.
10669         * doc/posix-functions/iswspace.texi: Update.
10670         * doc/posix-functions/iswupper.texi: Update.
10671         * doc/posix-functions/iswxdigit.texi: Update.
10672         * doc/posix-functions/towlower.texi: Update.
10673         * doc/posix-functions/towupper.texi: Update.
10674         * NEWS: Mention the change.
10675         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
10676         * modules/mbchar (Dependencies): Likewise.
10677         * modules/mbswidth (Dependencies): Likewise.
10678         * modules/quotearg (Dependencies): Likewise.
10679         * modules/regex (Dependencies): Likewise.
10680         * modules/wcscasecmp (Dependencies): Likewise.
10681         * modules/wcsncasecmp (Dependencies): Likewise.
10682         * modules/wcwidth (Dependencies): Likewise.
10683
10684 2011-02-06  Bruno Haible  <bruno@clisp.org>
10685
10686         New module 'wcswidth'.
10687         * modules/wcswidth: New file.
10688         * lib/wchar.in.h (wcswidth): New declaration.
10689         * lib/wcswidth.c: New file.
10690         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
10691         * m4/wcswidth.m4: New file.
10692         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
10693         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
10694         REPLACE_WCSWIDTH.
10695         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
10696         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
10697         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
10698         * doc/posix-functions/wcswidth.texi: Mention the new module.
10699
10700 2011-02-06  Bruno Haible  <bruno@clisp.org>
10701
10702         New module 'wcstok'.
10703         * modules/wcstok: New file.
10704         * lib/wchar.in.h (wcstok): New declaration.
10705         * lib/wcstok.c: New file.
10706         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
10707         * m4/wcstok.m4: New file.
10708         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
10709         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
10710         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
10711         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
10712         * doc/posix-functions/wcstok.texi: Mention the new module.
10713
10714 2011-02-06  Bruno Haible  <bruno@clisp.org>
10715
10716         New module 'wcsstr'.
10717         * modules/wcsstr: New file.
10718         * lib/wchar.in.h (wcsstr): New declaration.
10719         * lib/wcsstr.c: New file.
10720         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
10721         * m4/wcsstr.m4: New file.
10722         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
10723         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
10724         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
10725         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
10726         * doc/posix-functions/wcsstr.texi: Mention the new module.
10727
10728 2011-02-06  Bruno Haible  <bruno@clisp.org>
10729
10730         New module 'wcspbrk'.
10731         * modules/wcspbrk: New file.
10732         * lib/wchar.in.h (wcspbrk): New declaration.
10733         * lib/wcspbrk.c: New file.
10734         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
10735         * m4/wcspbrk.m4: New file.
10736         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
10737         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
10738         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
10739         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
10740         * doc/posix-functions/wcspbrk.texi: Mention the new module.
10741
10742 2011-02-06  Bruno Haible  <bruno@clisp.org>
10743
10744         New module 'wcsspn'.
10745         * modules/wcsspn: New file.
10746         * lib/wchar.in.h (wcsspn): New declaration.
10747         * lib/wcsspn.c: New file.
10748         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
10749         * m4/wcsspn.m4: New file.
10750         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
10751         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
10752         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
10753         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
10754         * doc/posix-functions/wcsspn.texi: Mention the new module.
10755
10756 2011-02-06  Bruno Haible  <bruno@clisp.org>
10757
10758         New module 'wcscspn'.
10759         * modules/wcscspn: New file.
10760         * lib/wchar.in.h (wcscspn): New declaration.
10761         * lib/wcscspn.c: New file.
10762         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
10763         * m4/wcscspn.m4: New file.
10764         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
10765         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
10766         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
10767         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
10768         * doc/posix-functions/wcscspn.texi: Mention the new module.
10769
10770 2011-02-06  Bruno Haible  <bruno@clisp.org>
10771
10772         New module 'wcsrchr'.
10773         * modules/wcsrchr: New file.
10774         * lib/wchar.in.h (wcsrchr): New declaration.
10775         * lib/wcsrchr.c: New file.
10776         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
10777         * m4/wcsrchr.m4: New file.
10778         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
10779         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
10780         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
10781         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
10782         * doc/posix-functions/wcsrchr.texi: Mention the new module.
10783
10784 2011-02-06  Bruno Haible  <bruno@clisp.org>
10785
10786         New module 'wcschr'.
10787         * modules/wcschr: New file.
10788         * lib/wchar.in.h (wcschr): New declaration.
10789         * lib/wcschr.c: New file.
10790         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
10791         * m4/wcschr.m4: New file.
10792         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
10793         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
10794         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
10795         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
10796         * doc/posix-functions/wcschr.texi: Mention the new module.
10797
10798 2011-02-06  Bruno Haible  <bruno@clisp.org>
10799
10800         New module 'wcsdup'.
10801         * modules/wcsdup: New file.
10802         * lib/wchar.in.h (wcsdup): New declaration.
10803         * lib/wcsdup.c: New file.
10804         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
10805         * m4/wcsdup.m4: New file.
10806         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
10807         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
10808         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
10809         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
10810         * doc/posix-functions/wcsdup.texi: Mention the new module.
10811
10812 2011-02-06  Bruno Haible  <bruno@clisp.org>
10813
10814         New module 'wcsxfrm'.
10815         * modules/wcsxfrm: New file.
10816         * lib/wchar.in.h (wcsxfrm): New declaration.
10817         * lib/wcsxfrm.c: New file.
10818         * lib/wcsxfrm-impl.h: New file.
10819         * m4/wcsxfrm.m4: New file.
10820         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
10821         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
10822         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
10823         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
10824         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
10825
10826 2011-02-06  Bruno Haible  <bruno@clisp.org>
10827
10828         New module 'wcscoll'.
10829         * modules/wcscoll: New file.
10830         * lib/wchar.in.h (wcscoll): New declaration.
10831         * lib/wcscoll.c: New file.
10832         * lib/wcscoll-impl.h: New file.
10833         * m4/wcscoll.m4: New file.
10834         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
10835         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
10836         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
10837         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
10838         * doc/posix-functions/wcscoll.texi: Mention the new module.
10839
10840 2011-02-06  Bruno Haible  <bruno@clisp.org>
10841
10842         New module 'wcsncasecmp'.
10843         * modules/wcsncasecmp: New file.
10844         * lib/wchar.in.h (wcsncasecmp): New declaration.
10845         * lib/wcsncasecmp.c: New file.
10846         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
10847         * m4/wcsncasecmp.m4: New file.
10848         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
10849         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
10850         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
10851         HAVE_WCSNCASECMP.
10852         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
10853         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
10854
10855 2011-02-06  Bruno Haible  <bruno@clisp.org>
10856
10857         New module 'wcscasecmp'.
10858         * modules/wcscasecmp: New file.
10859         * lib/wchar.in.h (wcscasecmp): New declaration.
10860         * lib/wcscasecmp.c: New file.
10861         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
10862         * m4/wcscasecmp.m4: New file.
10863         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
10864         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
10865         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
10866         HAVE_WCSCASECMP.
10867         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
10868         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
10869
10870 2011-02-05  Bruno Haible  <bruno@clisp.org>
10871
10872         New module 'wcsncmp'.
10873         * modules/wcsncmp: New file.
10874         * lib/wchar.in.h (wcsncmp): New declaration.
10875         * lib/wcsncmp.c: New file.
10876         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
10877         * m4/wcsncmp.m4: New file.
10878         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
10879         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
10880         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
10881         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
10882         * doc/posix-functions/wcsncmp.texi: Mention the new module.
10883
10884 2011-02-05  Bruno Haible  <bruno@clisp.org>
10885
10886         New module 'wcscmp'.
10887         * modules/wcscmp: New file.
10888         * lib/wchar.in.h (wcscmp): New declaration.
10889         * lib/wcscmp.c: New file.
10890         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
10891         * m4/wcscmp.m4: New file.
10892         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
10893         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
10894         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
10895         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
10896         * doc/posix-functions/wcscmp.texi: Mention the new module.
10897
10898 2011-02-05  Bruno Haible  <bruno@clisp.org>
10899
10900         New module 'wcsncat'.
10901         * modules/wcsncat: New file.
10902         * lib/wchar.in.h (wcsncat): New declaration.
10903         * lib/wcsncat.c: New file.
10904         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
10905         * m4/wcsncat.m4: New file.
10906         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
10907         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
10908         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
10909         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
10910         * doc/posix-functions/wcsncat.texi: Mention the new module.
10911
10912 2011-02-05  Bruno Haible  <bruno@clisp.org>
10913
10914         New module 'wcscat'.
10915         * modules/wcscat: New file.
10916         * lib/wchar.in.h (wcscat): New declaration.
10917         * lib/wcscat.c: New file.
10918         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
10919         * m4/wcscat.m4: New file.
10920         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
10921         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
10922         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
10923         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
10924         * doc/posix-functions/wcscat.texi: Mention the new module.
10925
10926 2011-02-05  Bruno Haible  <bruno@clisp.org>
10927
10928         New module 'wcpncpy'.
10929         * modules/wcpncpy: New file.
10930         * lib/wchar.in.h (wcpncpy): New declaration.
10931         * lib/wcpncpy.c: New file.
10932         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
10933         * m4/wcpncpy.m4: New file.
10934         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
10935         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
10936         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
10937         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
10938         * doc/posix-functions/wcpncpy.texi: Mention the new module.
10939
10940 2011-02-05  Bruno Haible  <bruno@clisp.org>
10941
10942         New module 'wcsncpy'.
10943         * modules/wcsncpy: New file.
10944         * lib/wchar.in.h (wcsncpy): New declaration.
10945         * lib/wcsncpy.c: New file.
10946         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
10947         * m4/wcsncpy.m4: New file.
10948         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
10949         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
10950         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
10951         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
10952         * doc/posix-functions/wcsncpy.texi: Mention the new module.
10953
10954 2011-02-05  Bruno Haible  <bruno@clisp.org>
10955
10956         New module 'wcpcpy'.
10957         * modules/wcpcpy: New file.
10958         * lib/wchar.in.h (wcpcpy): New declaration.
10959         * lib/wcpcpy.c: New file.
10960         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
10961         * m4/wcpcpy.m4: New file.
10962         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
10963         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
10964         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
10965         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
10966         * doc/posix-functions/wcpcpy.texi: Mention the new module.
10967
10968 2011-02-05  Bruno Haible  <bruno@clisp.org>
10969
10970         New module 'wcscpy'.
10971         * modules/wcscpy: New file.
10972         * lib/wchar.in.h (wcscpy): New declaration.
10973         * lib/wcscpy.c: New file.
10974         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
10975         * m4/wcscpy.m4: New file.
10976         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
10977         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
10978         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
10979         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
10980         * doc/posix-functions/wcscpy.texi: Mention the new module.
10981
10982 2011-02-05  Bruno Haible  <bruno@clisp.org>
10983
10984         New module 'wcsnlen'.
10985         * modules/wcsnlen: New file.
10986         * lib/wchar.in.h (wcsnlen): New declaration.
10987         * lib/wcsnlen.c: New file.
10988         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
10989         * m4/wcsnlen.m4: New file.
10990         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
10991         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
10992         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
10993         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
10994         * doc/posix-functions/wcsnlen.texi: Mention the new module.
10995
10996 2011-02-05  Bruno Haible  <bruno@clisp.org>
10997
10998         New module 'wcslen'.
10999         * modules/wcslen: New file.
11000         * lib/wchar.in.h (wcslen): New declaration.
11001         * lib/wcslen.c: New file.
11002         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
11003         * m4/wcslen.m4: New file.
11004         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
11005         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
11006         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
11007         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
11008         * doc/posix-functions/wcslen.texi: Mention the new module.
11009
11010 2011-02-05  Bruno Haible  <bruno@clisp.org>
11011
11012         New module 'wmemset'.
11013         * modules/wmemset: New file.
11014         * lib/wchar.in.h (wmemset): New declaration.
11015         * lib/wmemset.c: New file.
11016         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
11017         * m4/wmemset.m4: New file.
11018         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
11019         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
11020         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
11021         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
11022         * doc/posix-functions/wmemset.texi: Mention the new module.
11023
11024 2011-02-05  Bruno Haible  <bruno@clisp.org>
11025
11026         New module 'wmemmove'.
11027         * modules/wmemmove: New file.
11028         * lib/wchar.in.h (wmemmove): New declaration.
11029         * lib/wmemmove.c: New file.
11030         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
11031         * m4/wmemmove.m4: New file.
11032         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
11033         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
11034         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
11035         HAVE_WMEMMOVE.
11036         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
11037         * doc/posix-functions/wmemmove.texi: Mention the new module.
11038
11039 2011-02-05  Bruno Haible  <bruno@clisp.org>
11040
11041         New module 'wmemcpy'.
11042         * modules/wmemcpy: New file.
11043         * lib/wchar.in.h (wmemcpy): New declaration.
11044         * lib/wmemcpy.c: New file.
11045         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
11046         * m4/wmemcpy.m4: New file.
11047         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
11048         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
11049         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
11050         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
11051         * doc/posix-functions/wmemcpy.texi: Mention the new module.
11052
11053 2011-02-05  Bruno Haible  <bruno@clisp.org>
11054
11055         New module 'wmemcmp'.
11056         * modules/wmemcmp: New file.
11057         * lib/wchar.in.h (wmemcmp): New declaration.
11058         * lib/wmemcmp.c: New file.
11059         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
11060         * m4/wmemcmp.m4: New file.
11061         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
11062         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
11063         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
11064         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
11065         * doc/posix-functions/wmemcmp.texi: Mention the new module.
11066
11067 2011-02-07  Jim Meyering  <meyering@redhat.com>
11068
11069         di-set, ino-map: new modules, from coreutils
11070         * lib/di-set.c: New file.
11071         * lib/di-set.h: Likewise.
11072         * lib/ino-map.c: Likewise.
11073         * lib/ino-map.h: Likewise.
11074         * modules/di-set: Likewise.
11075         * modules/di-set-tests: Likewise.
11076         * modules/ino-map: Likewise.
11077         * modules/ino-map-tests: Likewise.
11078         * tests/test-di-set.c: Likewise.
11079         * tests/test-ino-map.c: Likewise.
11080
11081 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
11082
11083         getloadavg: merge minor changes from Emacs
11084
11085         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
11086         (getloadavg): Use memset, not bzero.
11087
11088         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
11089         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
11090         clash (bug#86).
11091
11092 2010-11-14  Bruno Haible  <bruno@clisp.org>
11093
11094         Allow multiple gnulib generated replacements to coexist.
11095         * lib/getopt.in.h (struct option): Avoid identical redefinition.
11096         * lib/inttypes.in.h (imaxdiv_t): Likewise.
11097         * lib/langinfo.in.h (nl_item): Likewise.
11098         * lib/math.in.h (_NaN, NAN): Likewise.
11099         * lib/netdb.in.h (struct addrinfo): Likewise.
11100         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
11101         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
11102         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
11103         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
11104         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
11105         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
11106         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
11107         pthread_mutexattr_init, pthread_mutexattr_settype,
11108         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
11109         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
11110         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
11111         pthread_spin_trylock, pthread_spin_unlock): Likewise.
11112         * lib/sched.in.h (struct sched_param): Likewise.
11113         * lib/se-selinux.in.h (security_class_t, security_context_t,
11114         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
11115         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
11116         lsetfilecon, fsetfilecon, security_check_context,
11117         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
11118         Likewise.
11119         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
11120         Likewise.
11121         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
11122         _gl_function_taking_int_returning_void_t, union sigval,
11123         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
11124         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
11125         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
11126         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
11127         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
11128         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
11129         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
11130         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
11131         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
11132         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
11133         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
11134         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
11135         socklen_t, rpl_fd_isset): Likewise.
11136         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
11137         * lib/sys_time.in.h (struct timeval): Likewise.
11138         * lib/sys_times.in.h (struct tms): Likewise.
11139         * lib/sys_utsname.in.h (struct utsname):
11140         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
11141         * lib/unistd.in.h (getpagesize): Likewise.
11142         * lib/wchar.in.h (mbstate_t): Likewise.
11143         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
11144         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
11145         towlower, towupper): Likewise.
11146         Reported by Sam Steingold <sds@gnu.org>.
11147
11148 2011-02-05  Eric Blake  <eblake@redhat.com>
11149
11150         unsetenv: work around Haiku issues
11151         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
11152         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
11153
11154 2010-12-30  Bruce Korb  <bkorb@gnu.org>
11155
11156         libposix: avoid calling error() within libposix
11157         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
11158         is defined.
11159
11160 2011-02-05  Eric Blake  <eblake@redhat.com>
11161
11162         strerror_r-posix: port to cygwin
11163         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
11164         implementation.
11165         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
11166         * tests/test-strerror_r.c (main): Fix test.
11167         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
11168         issue.
11169
11170 2011-02-05  Bruno Haible  <bruno@clisp.org>
11171
11172         New module 'wmemchr'.
11173         * modules/wmemchr: New file.
11174         * lib/wchar.in.h (wmemchr): New declaration.
11175         * lib/wmemchr.c: New file.
11176         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
11177         * m4/wmemchr.m4: New file.
11178         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
11179         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
11180         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
11181         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
11182         * doc/posix-functions/wmemchr.texi: Mention the new module.
11183
11184 2011-02-04  Eric Blake  <eblake@redhat.com>
11185
11186         fdopendir: detect FreeBSD bug
11187         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
11188         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
11189
11190 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
11191
11192         stdbool: do not define HAVE_STDBOOL_H
11193         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
11194         AC_HEADER_STDBOOL.  All uses changed.  Do not define
11195         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
11196         imported from the latest Autoconf git.  It was motivated by Emacs,
11197         which uses gnulib but does not need HAVE_STDBOOL_H.
11198
11199 2011-02-04  Bruno Haible  <bruno@clisp.org>
11200
11201         wcsnrtombs: Prepare for new module wwcsnrtombs.
11202         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
11203         * lib/wcsnrtombs.c: Include it.
11204         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
11205
11206         wcsrtombs: Prepare for new module wwcsrtombs.
11207         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
11208         * lib/wcsrtombs.c: Include it.
11209         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
11210
11211         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
11212         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
11213         * lib/mbsnrtowcs.c: Include it.
11214         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
11215
11216         mbsrtowcs: Prepare for new module mbsrtowwcs.
11217         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
11218         * lib/mbsrtowcs.c: Include it.
11219         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
11220
11221 2011-02-04  Bruno Haible  <bruno@clisp.org>
11222
11223         vasnprintf: Reduce use of malloc for small format strings.
11224         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
11225         (arguments): Add room for the first 7 arguments.
11226         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
11227         (char_directives, u8_directives, u16_directives, u32_directives): Add
11228         room for the first 7 directives.
11229         * lib/printf-parse.c: Include <string.h>.
11230         (PRINTF_PARSE): Change memory handling code so that it uses the first
11231         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
11232         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
11233         Reported by Pádraig Brady <P@draigbrady.com>.
11234
11235 2011-01-31  Eric Blake  <eblake@redhat.com>
11236
11237         dup2: work around Haiku bug
11238         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
11239         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
11240         * doc/posix-functions/dup2.texi (dup2): Document the bug.
11241         * tests/test-dup2.c (main): Enhance test.
11242
11243 2011-01-31  Simon Josefsson  <simon@josefsson.org>
11244
11245         doc: off_t is not available in eglibc 2.11.2 stdio.h.
11246         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
11247         declared by eglibc 2.11.2.
11248         * lib/stdio.in.h: Likewise.
11249
11250 2011-01-31  Eric Blake  <eblake@redhat.com>
11251
11252         ignore-value: add missing test dependency
11253         * tests/test-ignore-value.c: Revert previous change; stdio.h
11254         provides off_t.
11255         * modules/ignore-value-tests (Depends-on): Add missing dependency.
11256
11257 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
11258
11259         mktime: clarify long_int width checking
11260         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
11261         the top level, to make it clearer that the assumption about
11262         long_int width is being checked.  See
11263         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
11264
11265 2011-01-30  Simon Josefsson  <simon@josefsson.org>
11266
11267         ignore-value: Fix self-test.
11268         * tests/test-ignore-value.c: Include sys/types.h for off_t.
11269
11270 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
11271
11272         TYPE_MAXIMUM: avoid theoretically undefined behavior
11273         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
11274         negative number, which the C Standard says has undefined behavior.
11275         In practice this is not a problem, but might as well do it by the book.
11276         Reported by Rich Felker and Eric Blake; see
11277         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
11278         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
11279         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
11280         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
11281         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
11282         * m4/stdint.m4 (gl_STDINT_H): Likewise.
11283         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
11284
11285         mktime: #undef mktime before #defining it
11286         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
11287
11288         mktime: systematically normalize tm_isdst comparisons
11289         * lib/mktime.c (isdst_differ): New function.
11290         (__mktime_internal): Use it systematically for all isdst comparisons.
11291         This completes the fix for libc BZ #6723, and removes the need for
11292         normalizing tm_isdst.  See
11293         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
11294         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
11295
11296         mktime: fix some integer overflow issues and sidestep the rest
11297
11298         This was prompted by a bug report by Benjamin Lindner for MinGW
11299         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
11300         His bug is due to signed integer overflow (0 - INT_MIN), and I
11301         I scanned through mktime.c looking for other integer overflow
11302         problems, fixing all the bugs I found.
11303
11304         Although the C Standard says the resulting code is still not safe
11305         in the presence of integer overflow, in practice it should be good
11306         enough for all real-world two's-complement implementations, except
11307         for debugging environments that deliberately trap on integer
11308         overflow (e.g., gcc -ftrapv).
11309
11310         * lib/mktime.c (WRAPV): New macro.
11311         (SHR): Also check that long_int and time_t shift right in the
11312         usual way, before using the fast-but-unportable method.
11313         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
11314         used.  The code already assumed two's complement, so there's
11315         no need to test for alternatives.  All uses removed.
11316         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
11317         the C standard.  Problem reported by Rich Felker in
11318         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
11319         (twos_complement_arithmetic): Also check long_int and time_t.
11320         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
11321         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
11322         (__mktime_internal): Avoid integer overflow with unary subtraction
11323         in two instances where -1 - X is an adequate replacement for -X,
11324         since the calculations are approximate.
11325
11326 2011-01-29  Eric Blake  <eblake@redhat.com>
11327
11328         mktime: avoid infinite loop
11329         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
11330         type; behavior is still undefined but portable to all known targets.
11331         Reported by Rich Felker.
11332
11333 2011-01-29  Simon Josefsson  <simon@josefsson.org>
11334
11335         rename, unlink, same-inode: Relicense.
11336         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
11337         * modules/unlink (License): Likewise.
11338         * modules/same-inode (License): Likewise.
11339
11340 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
11341
11342         mktime: avoid problems on NetBSD 5 / i386
11343         * lib/mktime.c (long_int): New type.  This works around a problem
11344         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
11345         but time_t is 64 bits, and where I expect the existing code is
11346         wrong in some cases.
11347         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
11348         (ydhms_diff): Bring back the compile-time check for wide-enough
11349         year and yday.
11350
11351         mktime: fix misspelling in comment
11352         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
11353         This merges all recent glibc changes of importance.
11354
11355 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11356
11357         move-if-change: cope with concurrent mv of identical file.
11358         * build-aux/move-if-change (CMPPROG): Accept environment
11359         variable as an override for `cmp'.
11360         (usage): Document CMPPROG.
11361         Adjust comparison to drop stdout.  Cope with failure of mv if
11362         the target file exists and is identical to the source, for
11363         parallel builds.
11364         Report from H.J. Lu against binutils in PR binutils/12283.
11365
11366 2011-01-28  Bruce Korb  <bkorb@gnu.org>
11367
11368         * users.txt: Mention sharutils.
11369
11370 2011-01-28  Simon Josefsson  <simon@josefsson.org>
11371
11372         * users.txt: Mention OATH Toolkit.
11373
11374 2011-01-27  Bruno Haible  <bruno@clisp.org>
11375
11376         Prepare for supporting FreeBSD 10.
11377         * build-aux/config.libpath: Remove handling of freebsd1*.
11378
11379 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
11380
11381         Prepare for supporting FreeBSD 10.
11382         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
11383         match FreeBSD 10.0.
11384
11385 2011-01-27  Bruno Haible  <bruno@clisp.org>
11386
11387         vma-iter, get-rusage-as: Add OpenBSD support.
11388         * modules/vma-iter (configure.ac): Test for mquery.
11389         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
11390         * lib/vma-iter.c: Include <sys/mman.h>.
11391         (vma_iterate): Add an implementation based on mquery().
11392         * lib/resource-ext.h (get_rusage_as): Update comments.
11393         * lib/get-rusage-as.c: Likewise.
11394         * lib/get-rusage-data.c: Likewise.
11395
11396 2011-01-26  Karl Berry  <karl@gnu.org>
11397
11398         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
11399         variables to make it easier to override the makeinfo program used.
11400
11401 2011-01-26  Eric Blake  <eblake@redhat.com>
11402
11403         fcntl: work around Haiku F_DUPFD bugs
11404         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
11405         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
11406         cloexec bit on duplication.
11407         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
11408
11409 2011-01-26  Bruno Haible  <bruno@clisp.org>
11410
11411         Enable memory leak tests on AIX.
11412         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
11413         * tests/test-fprintf-posix3.c (main): Likewise.
11414
11415 2011-01-26  Bruno Haible  <bruno@clisp.org>
11416
11417         Tests for module 'get-rusage-data'.
11418         * modules/get-rusage-data-tests: New file.
11419         * tests/test-get-rusage-data.c: New file.
11420
11421         New module 'get-rusage-data'.
11422         * lib/resource-ext.h (get_rusage_data): New declaration.
11423         * lib/get-rusage-data.c: New file.
11424         * modules/get-rusage-data: New file.
11425
11426 2011-01-25  Bruno Haible  <bruno@clisp.org>
11427
11428         get-rusage-as: Allow for easier testing.
11429         * lib/resource-ext.h (get_rusage_as): Add comment.
11430         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
11431         (main): New function for interactive testing.
11432
11433 2011-01-25  Bruno Haible  <bruno@clisp.org>
11434
11435         vma-iter: Treat Haiku like BeOS.
11436         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
11437         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
11438
11439 2011-01-25  Eric Blake  <eblake@redhat.com>
11440
11441         c-stack: fix regression on cygwin when libsigsegv is present
11442         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
11443
11444 2011-01-24  Bruno Haible  <bruno@clisp.org>
11445
11446         vma-iter: Avoid empty intervals.
11447         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
11448         on an empty interval.
11449
11450 2011-01-24  Jim Meyering  <meyering@redhat.com>
11451
11452         u64: remove unnecessary #include
11453         * lib/u64.h: Don't include <stddef.h>.  It was not used.
11454
11455 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
11456
11457         Allow the user to avoid the HAVE_RAW_DECL_* macros.
11458         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
11459
11460 2011-01-23  Bruno Haible  <bruno@clisp.org>
11461
11462         New module 'vma-iter'.
11463         * lib/vma-iter.h: New file.
11464         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
11465         * modules/vma-iter: New file.
11466         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
11467         for get_rusage_as_via_iterator.
11468         (vma_iterate_callback): New function.
11469         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
11470         * modules/get-rusage-as (Depends-on): Add vma-iter.
11471
11472 2011-01-23  Bruno Haible  <bruno@clisp.org>
11473
11474         uninorm: Tweak includes.
11475         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
11476         Reported by Jim Meyering.
11477
11478 2011-01-23  Bruno Haible  <bruno@clisp.org>
11479
11480         get-rusage-as: Improve on NetBSD.
11481         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
11482         /proc, like on FreeBSD.
11483
11484 2011-01-23  Jim Meyering  <meyering@redhat.com>
11485
11486         xreadlink.h: remove unnecessary #include
11487         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
11488
11489         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
11490         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
11491
11492 2011-01-23  Bruno Haible  <bruno@clisp.org>
11493
11494         get-rusage-as: Fix bug.
11495         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
11496         original limit when aborting the first loop.
11497
11498 2011-01-23  Bruno Haible  <bruno@clisp.org>
11499
11500         wctype: Ensure valid C syntax.
11501         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
11502         unconditionally, instead of gl_NEXT_HEADERS conditionally.
11503
11504 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
11505
11506         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
11507         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
11508         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
11509         as they are needed only for configure's test case.
11510         This removes two unnecessary symbols from config.h.
11511
11512         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
11513         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
11514         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
11515         AC_CHECK_HEADERS_ONCE on a header that we also invoke
11516         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
11517         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
11518         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
11519         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
11520         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
11521         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
11522         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
11523         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
11524         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
11525         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
11526         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
11527         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
11528         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
11529         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
11530
11531 2011-01-21  Eric Blake  <eblake@redhat.com>
11532
11533         maintainer-makefile: work with older git for submodule check
11534         * top/maint.mk (public-submodule-commit): Rewrite to avoid
11535         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
11536         Reported by Matthias Bolte.
11537
11538         bootstrap: minor portability fixes
11539         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
11540         (usage): Omit leading capital and trailing . on help phrases, per
11541         GNU Coding Standards.
11542         (check_versions, top level): Prefix messages with script name.
11543
11544 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
11545
11546         bootstrap: support --no-git option
11547         * build-aux/bootstrap: Add --no-git option, to be used when
11548         --gnulib-srcdir points to the exact desired checkout.
11549
11550 2011-01-21  Eric Blake  <eblake@redhat.com>
11551
11552         strerror_r-posix: work with glibc 2.13
11553         * lib/strerror_r.c (strerror_r): Fix return type.
11554
11555 2011-01-21  Pádraig Brady  <P@draigBrady.com>
11556             Bruno Haible  <bruno@clisp.org>
11557
11558         uN_strstr: New unit tests.
11559         * modules/unistr/u8-strstr-tests: New file.
11560         * modules/unistr/u16-strstr-tests: New file.
11561         * modules/unistr/u32-strstr-tests: New file.
11562         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
11563         * tests/unistr/test-u8-strstr.c: New file.
11564         * tests/unistr/test-u16-strstr.c: New file.
11565         * tests/unistr/test-u32-strstr.c: New file.
11566
11567 2011-01-21  Pádraig Brady  <P@draigBrady.com>
11568             Bruno Haible  <bruno@clisp.org>
11569
11570         Make uN_strstr functions O(n) worst-case.
11571         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
11572         16-bit and 32-bit unit cases, use the unibyte algorithm from
11573         lib/mbsstr.c.
11574         * lib/unistr/u8-strstr.c: Include <string.h>.
11575         (UNIT_IS_UINT8_T): New macro.
11576         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
11577         (U_STRLEN, U_STRNLEN): New macros.
11578         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
11579         (U_STRLEN, U_STRNLEN): New macros.
11580         * modules/unistr/u8-strstr (Depends-on): Add strstr.
11581         (configure.ac): Update required libunistring version.
11582         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
11583         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
11584         malloca.
11585         (configure.ac): Update required libunistring version.
11586         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
11587         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
11588         malloca.
11589         (configure.ac): Update required libunistring version.
11590
11591 2011-01-21  Pádraig Brady  <P@draigBrady.com>
11592             Bruno Haible  <bruno@clisp.org>
11593
11594         Prepare for faster uN_strstr functions.
11595         * lib/str-kmp.h: Support definable UNITs.
11596         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
11597         needle_len argument.
11598         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
11599         * lib/mbscasestr.c (mbscasestr): Likewise.
11600
11601 2011-01-21  Pádraig Brady <P@draigBrady.com>
11602
11603         malloca-tests: make faster by unsetting MALLOC_PERTURB_
11604         * tests/test-malloca.c (main): Unset the environment variable
11605         to greatly speed up the test.
11606         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
11607         * modules/malloca-tests: Depend on unsetenv.
11608
11609 2011-01-21  Pádraig Brady <P@draigBrady.com>
11610
11611         ignore-value: remove stdint dependency
11612         * lib/ignore-value.h: Remove <stdint.h>
11613         * modules/ignore-value: Remove stdint dependency.
11614
11615 2011-01-21  Jim Meyering  <meyering@redhat.com>
11616
11617         maint.mk: adjust variable name to be consistent with other gl_ vars
11618         * top/maint.mk (gl_public_submodule_commit): Rename the variable
11619         to be lower case.
11620
11621 2011-01-20  Jim Meyering  <meyering@redhat.com>
11622
11623         maint.mk: make "check" depend on public-submodule-commit by default
11624         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
11625
11626 2011-01-20  Bruno Haible  <bruno@clisp.org>
11627
11628         mbfile, mbiter: Complete change from 2008-12-21.
11629         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
11630         * m4/mbiter.m4 (gl_MBITER): Likewise.
11631
11632 2011-01-20  Jim Meyering  <meyering@redhat.com>
11633
11634         init.sh: insert space between each function name and "()"
11635         * tests/init.sh: Make it a little easier to see that a function's
11636         name is "warn_", and not "warn" when looking at the first part of
11637         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
11638
11639 2011-01-20  Jim Meyering  <meyering@redhat.com>
11640
11641         mountlist: clean up code formatting
11642         * lib/mountlist.c (read_file_system_list): Split a long line,
11643         correct bracing style, use NULL in place of "(struct statfs *)0",
11644         don't parenthesize return value, add spaces around "=" and after
11645         ";-in-for-stmt".
11646
11647 2011-01-14  Markus Duft <mduft@gentoo.org>
11648
11649         mountlist: add support for Interix
11650         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
11651         Apply statvfs to all entries of /dev/fs.
11652         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
11653         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
11654
11655 2011-01-20  Jim Meyering  <meyering@redhat.com>
11656
11657         maint.mk: improve the public-submodule-commit rule
11658         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
11659         to suppress printing of its commands... unless V=1.
11660         Add git submodule's --quiet option to suppress printing of e.g.,
11661         "Entering gnulib" output.
11662         "cd" into $(srcdir) before running git submodule.
11663
11664 2011-01-20  Bruno Haible  <bruno@clisp.org>
11665
11666         include_next: Fix bug introduced on 2011-01-18.
11667         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
11668         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
11669         ac_cv_header_... variable if the second argument is not 'check'.
11670         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
11671         gl_NEXT_HEADERS_INTERNAL.
11672
11673 2011-01-20  Bruno Haible  <bruno@clisp.org>
11674
11675         Allow the user to avoid the GNULIB_TEST_* macros.
11676         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
11677         Suggested by Paul Eggert.
11678
11679 2011-01-14  Jim Meyering  <meyering@redhat.com>
11680
11681         bootstrap: avoid failure when there is no .gitmodules file
11682         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
11683         has been assigned to, even when its value is the empty string.
11684         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
11685         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
11686         Reported by John W. Eaton <jwe@gnu.org>.
11687
11688 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
11689
11690         assume <ctype.h>, ..., <time.h> exist
11691         For years gnulib has been assuming the existence of the headers
11692         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
11693         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
11694         them, since they don't appear to be needed.
11695         * README (Portability guidelines): Document this.
11696         * lib/flock.c: Assume <fcntl.h> exists.
11697         * lib/regex_internal.h: Assume <locale.h> exists.
11698         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
11699         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
11700         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
11701         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
11702         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
11703         * m4/regex.m4 (gl_REGEX): Likewise.
11704         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
11705         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
11706         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
11707         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
11708         * tests/test-argp.c: Likewise.
11709         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
11710
11711         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
11712         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
11713         AA_APPLE_UNIVERSAL_BUILD.  See
11714         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
11715         * NEWS: Document this.
11716
11717 2011-01-19  Eric Blake  <eblake@redhat.com>
11718
11719         c-stack: assume stack overflow if SA_SIGINFO unsupported
11720         * lib/c-stack.c (SIGACTION_WORKS): Rename...
11721         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
11722         sigaction will work.
11723         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
11724         behavior match Linux.
11725         * tests/test-c-stack.c (main): Prefer NULL for pointers.
11726
11727         stdbool-tests: accomodate Haiku
11728         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
11729
11730         binary-io: fix O_TEXT on Haiku
11731         * modules/binary-io (Depends-on): Add fcntl-h.
11732         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
11733         than blindly undefining O_TEXT.
11734         Reported by Scott McCreary.
11735
11736 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
11737
11738         include_next: do not check for standard headers like stddef.h
11739
11740         I found this problem when modifying Emacs to use gnulib.
11741         I noticed that it added HAVE_STDDEF_H to config.h, even though
11742         gnulib always assumes <stddef.h> exists as per README and this
11743         symbol is unnecessary.
11744         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
11745         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
11746         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
11747         faster for headers like stddef.h that are known to exist.
11748         (gl_CHECK_NEXT_HEADERS): Use it.
11749         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
11750         rather than gl_CHECK_NEXT_HEADERS.
11751         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
11752         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
11753
11754 2011-01-18  Eric Blake  <eblake@redhat.com>
11755
11756         ansi-c++-opt: skip C++ dependency style if C++ is unused
11757         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
11758         tests when we know C++ compilation is not desired.
11759         Reported by Scott McCreary.
11760
11761 2011-01-18  Bruno Haible  <bruno@clisp.org>
11762
11763         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
11764         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
11765         (main): Perform test also when getrlimit and setrlimit don't exist or
11766         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
11767         limiting the address space size using setrlimit, compare the address
11768         space size before and after the the test.
11769         * tests/test-dprintf-posix2.c: Likewise.
11770         * tests/test-fprintf-posix3.sh: Update skip messages.
11771         * tests/test-dprintf-posix2.sh: Likewise.
11772         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
11773         * modules/dprintf-posix-tests (Depends-on): Likewise.
11774         Reported by Bruce Korb <bkorb@gnu.org> and
11775         Gary V. Vaughan <gary@gnu.org>.
11776
11777 2011-01-18  Bruno Haible  <bruno@clisp.org>
11778
11779         get-rusage-as: Improvement for Cygwin.
11780         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
11781         areas that are merely reserved.
11782
11783 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
11784
11785         strftime: remove dependencies on multibyte modules
11786
11787         strftime depended on mbrlen, mbsinit, and wchar, but these modules
11788         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
11789         only if __osf__ is defined, and I suspect OSF doesn't need these
11790         other modules.  If my guess is wrong, we'll need to come up with a
11791         variant of strftime that doesn't need the multibyte modules.
11792
11793         I discovered this problem when attempting modify Emacs to use the
11794         strftime module.  With the previous gnulib, this caused Emacs to
11795         need 31 new files, ranging from lib/config.charset to
11796         m4/wint_t.m4.  This was overkill and I expect would be offputting
11797         to the Emacs maintainers.  After this change, only 6 new files are
11798         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
11799         stdbool.m4, and tm_gmtoff.m4.
11800
11801         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
11802         Suggested by Bruno Haible in
11803         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
11804         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
11805         and do not check for wchar.h.
11806         * modules/strftime (Files): Remove m4/mbstate_t.m4.
11807         (Depends-on): Remove mbrlen, mbsinit, wchar.
11808
11809 2011-01-18  Bruno Haible  <bruno@clisp.org>
11810
11811         Tests for module 'get-rusage-as'.
11812         * modules/get-rusage-as-tests: New file.
11813         * tests/test-get-rusage-as.c: New file.
11814
11815         New module 'get-rusage-as'.
11816         * modules/get-rusage-as: New file.
11817         * lib/resource-ext.h: New file.
11818         * lib/get-rusage-as.c: New file.
11819
11820 2011-01-17  Eric Blake  <eblake@redhat.com>
11821
11822         sigaction: relax license from LGPLv3+ to LGPLv2+
11823         * modules/sigaction (License): Relax to LGPLv2+.
11824
11825 2011-01-14  Bruno Haible  <bruno@clisp.org>
11826
11827         filemode: Make function declarations usable in C++ mode.
11828         * lib/filemode.h: Enclose function declarations in extern "C" block.
11829         Reported by John W. Eaton <jwe@gnu.org>.
11830
11831 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
11832
11833         save-cwd: no longer include "xgetcwd.h"
11834         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
11835         This avoids a compilation failure in projects that use save-cwd
11836         without also using the xgetcwd module.
11837
11838 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
11839
11840         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
11841         This is so that a program like Emacs, which needs only dtoastr,
11842         does not have to bother with distributing and compiling ftoastr
11843         and ldtoastr.
11844         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
11845         * modules/dtoastr, modules/ldtoastr: New files.
11846         * modules/ftoastr: Now works just for 'float'.
11847         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
11848         (Makefile.am): Remove ftoastr.h (not needed and no effect),
11849         dtoastr.c, ldtoastr.c.
11850
11851 2011-01-11  Jim Meyering  <meyering@redhat.com>
11852
11853         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
11854         There is no need to work around the lack of the fchdir function,
11855         since gnulib can now provide a replacement when required.
11856         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
11857         * modules/save-cwd (Depends-on): Add fchdir.
11858
11859 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
11860
11861         openat, save-cwd: avoid xmalloc
11862
11863         This removes a direct (but undocumented) dependency of openat on
11864         xalloc, along with an indirect dependency via save-cwd.  It also
11865         removes a dependency of save-cwd on xgetcwd, and thereby
11866         indirectly on xalloc.  This change causes the openat substitute
11867         to fall back on save_cwd when memory is tight, and for save_cwd to
11868         fail instead of dying when memory is tight, but that's good enough.
11869         Problem and initial idea for fix reported by Bastien Roucaries in
11870         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
11871
11872         * lib/openat-proc.c: Include stdlib.h (for malloc), not
11873         xalloc.h (for xmalloc).
11874         (openat_proc_name): Use malloc, not xmalloc.
11875         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
11876         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
11877
11878         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
11879         This avoids heap allocation for file names whose lengths are in
11880         the range 512..1023, with the upper bound increasing to at most
11881         4031 depending on the platform's PATH_MAX.  (We do not want
11882         pathmax.h here as it might supply a non-constant PATH_MAX.)
11883         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
11884         Perhaps they should be moved to malloca.h?
11885         (OPENAT_BUFFER_SIZE): Use them.
11886
11887 2011-01-10  Bruno Haible  <bruno@clisp.org>
11888
11889         doc: Update users.txt.
11890         * users.txt: Add recutils.
11891
11892 2011-01-09  Karl Berry  <karl@gnu.org>
11893
11894         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
11895
11896         * doc/configmake.texi: New file.
11897         * doc/gnulib.texi: Include it.
11898         * modules/configmake: Move documentation from here.
11899
11900 2011-01-09  Bruno Haible  <bruno@clisp.org>
11901
11902         Update to Unicode 6.0.0.
11903         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
11904         (get_lbp): Update for Unicode 6.0.0.
11905         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
11906         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
11907         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
11908         U+11001, U+11038..U+11046. Remove U+06DE.
11909         (uc_width): Fix bounds of planes.
11910         * tests/uniwidth/test-uc_width2.sh: Same updates as in
11911         lib/uniwidth/width.c.
11912         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
11913         trailing whitespace removed.
11914         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
11915         without comments, but with the original copyright notice.
11916         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
11917         * lib/unicase/ignorable.h: Likewise.
11918         * lib/unicase/tocasefold.h: Likewise.
11919         * lib/unicase/tolower.h: Likewise.
11920         * lib/unicase/totitle.h: Likewise.
11921         * lib/unicase/toupper.h: Likewise.
11922         * lib/unictype/bidi_of.h: Likewise.
11923         * lib/unictype/blocks.h: Likewise.
11924         * lib/unictype/categ_C.h: Likewise.
11925         * lib/unictype/categ_Cn.h: Likewise.
11926         * lib/unictype/categ_L.h: Likewise.
11927         * lib/unictype/categ_Ll.h: Likewise.
11928         * lib/unictype/categ_Lm.h: Likewise.
11929         * lib/unictype/categ_Lo.h: Likewise.
11930         * lib/unictype/categ_Lu.h: Likewise.
11931         * lib/unictype/categ_M.h: Likewise.
11932         * lib/unictype/categ_Mc.h: Likewise.
11933         * lib/unictype/categ_Me.h: Likewise.
11934         * lib/unictype/categ_Mn.h: Likewise.
11935         * lib/unictype/categ_N.h: Likewise.
11936         * lib/unictype/categ_Nd.h: Likewise.
11937         * lib/unictype/categ_No.h: Likewise.
11938         * lib/unictype/categ_P.h: Likewise.
11939         * lib/unictype/categ_Po.h: Likewise.
11940         * lib/unictype/categ_S.h: Likewise.
11941         * lib/unictype/categ_Sc.h: Likewise.
11942         * lib/unictype/categ_Sk.h: Likewise.
11943         * lib/unictype/categ_Sm.h: Likewise.
11944         * lib/unictype/categ_So.h: Likewise.
11945         * lib/unictype/categ_of.h: Likewise.
11946         * lib/unictype/combining.h: Likewise.
11947         * lib/unictype/ctype_alnum.h: Likewise.
11948         * lib/unictype/ctype_alpha.h: Likewise.
11949         * lib/unictype/ctype_graph.h: Likewise.
11950         * lib/unictype/ctype_lower.h: Likewise.
11951         * lib/unictype/ctype_print.h: Likewise.
11952         * lib/unictype/ctype_punct.h: Likewise.
11953         * lib/unictype/ctype_upper.h: Likewise.
11954         * lib/unictype/decdigit.h: Likewise.
11955         * lib/unictype/digit.h: Likewise.
11956         * lib/unictype/numeric.h: Likewise.
11957         * lib/unictype/pr_alphabetic.h: Likewise.
11958         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
11959         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
11960         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
11961         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
11962         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
11963         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
11964         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
11965         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
11966         * lib/unictype/pr_case_ignorable.h: Likewise.
11967         * lib/unictype/pr_cased.h: Likewise.
11968         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
11969         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
11970         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
11971         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
11972         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
11973         * lib/unictype/pr_combining.h: Likewise.
11974         * lib/unictype/pr_composite.h: Likewise.
11975         * lib/unictype/pr_currency_symbol.h: Likewise.
11976         * lib/unictype/pr_decimal_digit.h: Likewise.
11977         * lib/unictype/pr_deprecated.h: Likewise.
11978         * lib/unictype/pr_format_control.h: Likewise.
11979         * lib/unictype/pr_grapheme_base.h: Likewise.
11980         * lib/unictype/pr_grapheme_extend.h: Likewise.
11981         * lib/unictype/pr_grapheme_link.h: Likewise.
11982         * lib/unictype/pr_id_continue.h: Likewise.
11983         * lib/unictype/pr_id_start.h: Likewise.
11984         * lib/unictype/pr_ideographic.h: Likewise.
11985         * lib/unictype/pr_lowercase.h: Likewise.
11986         * lib/unictype/pr_math.h: Likewise.
11987         * lib/unictype/pr_numeric.h: Likewise.
11988         * lib/unictype/pr_other_alphabetic.h: Likewise.
11989         * lib/unictype/pr_other_id_continue.h: Likewise.
11990         * lib/unictype/pr_other_math.h: Likewise.
11991         * lib/unictype/pr_punctuation.h: Likewise.
11992         * lib/unictype/pr_sentence_terminal.h: Likewise.
11993         * lib/unictype/pr_terminal_punctuation.h: Likewise.
11994         * lib/unictype/pr_unassigned_code_value.h: Likewise.
11995         * lib/unictype/pr_unified_ideograph.h: Likewise.
11996         * lib/unictype/pr_uppercase.h: Likewise.
11997         * lib/unictype/pr_xid_continue.h: Likewise.
11998         * lib/unictype/pr_xid_start.h: Likewise.
11999         * lib/unictype/scripts.h: Likewise.
12000         * lib/unictype/scripts_byname.gperf: Likewise.
12001         * lib/unictype/sy_java_ident.h: Likewise.
12002         * lib/unigbrk/gbrkprop.h: Likewise.
12003         * lib/unilbrk/lbrkprop1.h: Likewise.
12004         * lib/unilbrk/lbrkprop2.h: Likewise.
12005         * lib/uninorm/decomposition-table2.h: Likewise.
12006         * lib/uniwbrk/wbrkprop.h: Likewise.
12007         * tests/unicase/test-cased.c: Likewise.
12008         * tests/unicase/test-ignorable.c: Likewise.
12009         * tests/unicase/test-uc_tolower.c: Likewise.
12010         * tests/unicase/test-uc_totitle.c: Likewise.
12011         * tests/unicase/test-uc_toupper.c: Likewise.
12012         * tests/unictype/test-categ_C.c: Likewise.
12013         * tests/unictype/test-categ_Cn.c: Likewise.
12014         * tests/unictype/test-categ_L.c: Likewise.
12015         * tests/unictype/test-categ_Ll.c: Likewise.
12016         * tests/unictype/test-categ_Lm.c: Likewise.
12017         * tests/unictype/test-categ_Lo.c: Likewise.
12018         * tests/unictype/test-categ_Lu.c: Likewise.
12019         * tests/unictype/test-categ_M.c: Likewise.
12020         * tests/unictype/test-categ_Mc.c: Likewise.
12021         * tests/unictype/test-categ_Me.c: Likewise.
12022         * tests/unictype/test-categ_Mn.c: Likewise.
12023         * tests/unictype/test-categ_N.c: Likewise.
12024         * tests/unictype/test-categ_Nd.c: Likewise.
12025         * tests/unictype/test-categ_No.c: Likewise.
12026         * tests/unictype/test-categ_P.c: Likewise.
12027         * tests/unictype/test-categ_Po.c: Likewise.
12028         * tests/unictype/test-categ_S.c: Likewise.
12029         * tests/unictype/test-categ_Sc.c: Likewise.
12030         * tests/unictype/test-categ_Sk.c: Likewise.
12031         * tests/unictype/test-categ_Sm.c: Likewise.
12032         * tests/unictype/test-categ_So.c: Likewise.
12033         * tests/unictype/test-ctype_alnum.c: Likewise.
12034         * tests/unictype/test-ctype_alpha.c: Likewise.
12035         * tests/unictype/test-ctype_graph.c: Likewise.
12036         * tests/unictype/test-ctype_lower.c: Likewise.
12037         * tests/unictype/test-ctype_print.c: Likewise.
12038         * tests/unictype/test-ctype_punct.c: Likewise.
12039         * tests/unictype/test-ctype_upper.c: Likewise.
12040         * tests/unictype/test-decdigit.h: Likewise.
12041         * tests/unictype/test-digit.h: Likewise.
12042         * tests/unictype/test-numeric.h: Likewise.
12043         * tests/unictype/test-pr_alphabetic.c: Likewise.
12044         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
12045         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
12046         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
12047         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
12048         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
12049         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
12050         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
12051         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
12052         * tests/unictype/test-pr_case_ignorable.c: Likewise.
12053         * tests/unictype/test-pr_cased.c: Likewise.
12054         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
12055         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
12056         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
12057         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
12058         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
12059         * tests/unictype/test-pr_combining.c: Likewise.
12060         * tests/unictype/test-pr_composite.c: Likewise.
12061         * tests/unictype/test-pr_currency_symbol.c: Likewise.
12062         * tests/unictype/test-pr_decimal_digit.c: Likewise.
12063         * tests/unictype/test-pr_deprecated.c: Likewise.
12064         * tests/unictype/test-pr_format_control.c: Likewise.
12065         * tests/unictype/test-pr_grapheme_base.c: Likewise.
12066         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
12067         * tests/unictype/test-pr_grapheme_link.c: Likewise.
12068         * tests/unictype/test-pr_id_continue.c: Likewise.
12069         * tests/unictype/test-pr_id_start.c: Likewise.
12070         * tests/unictype/test-pr_ideographic.c: Likewise.
12071         * tests/unictype/test-pr_lowercase.c: Likewise.
12072         * tests/unictype/test-pr_math.c: Likewise.
12073         * tests/unictype/test-pr_numeric.c: Likewise.
12074         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
12075         * tests/unictype/test-pr_other_id_continue.c: Likewise.
12076         * tests/unictype/test-pr_other_math.c: Likewise.
12077         * tests/unictype/test-pr_punctuation.c: Likewise.
12078         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
12079         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
12080         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
12081         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
12082         * tests/unictype/test-pr_uppercase.c: Likewise.
12083         * tests/unictype/test-pr_xid_continue.c: Likewise.
12084         * tests/unictype/test-pr_xid_start.c: Likewise.
12085         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
12086         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
12087         changes.
12088         * lib/unictype/categ_Cc.h: Likewise.
12089         * lib/unictype/categ_Cf.h: Likewise.
12090         * lib/unictype/categ_Co.h: Likewise.
12091         * lib/unictype/categ_Cs.h: Likewise.
12092         * lib/unictype/categ_Lt.h: Likewise.
12093         * lib/unictype/categ_Nl.h: Likewise.
12094         * lib/unictype/categ_Pc.h: Likewise.
12095         * lib/unictype/categ_Pd.h: Likewise.
12096         * lib/unictype/categ_Pe.h: Likewise.
12097         * lib/unictype/categ_Pf.h: Likewise.
12098         * lib/unictype/categ_Pi.h: Likewise.
12099         * lib/unictype/categ_Ps.h: Likewise.
12100         * lib/unictype/categ_Z.h: Likewise.
12101         * lib/unictype/categ_Zl.h: Likewise.
12102         * lib/unictype/categ_Zp.h: Likewise.
12103         * lib/unictype/categ_Zs.h: Likewise.
12104         * lib/unictype/ctype_blank.h: Likewise.
12105         * lib/unictype/ctype_cntrl.h: Likewise.
12106         * lib/unictype/ctype_digit.h: Likewise.
12107         * lib/unictype/ctype_space.h: Likewise.
12108         * lib/unictype/ctype_xdigit.h: Likewise.
12109         * lib/unictype/mirror.h: Likewise.
12110         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
12111         * lib/unictype/pr_bidi_block_separator.h: Likewise.
12112         * lib/unictype/pr_bidi_common_separator.h: Likewise.
12113         * lib/unictype/pr_bidi_control.h: Likewise.
12114         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
12115         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
12116         * lib/unictype/pr_bidi_european_digit.h: Likewise.
12117         * lib/unictype/pr_bidi_pdf.h: Likewise.
12118         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
12119         * lib/unictype/pr_bidi_whitespace.h: Likewise.
12120         * lib/unictype/pr_dash.h: Likewise.
12121         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
12122         * lib/unictype/pr_diacritic.h: Likewise.
12123         * lib/unictype/pr_extender.h: Likewise.
12124         * lib/unictype/pr_hex_digit.h: Likewise.
12125         * lib/unictype/pr_hyphen.h: Likewise.
12126         * lib/unictype/pr_ids_binary_operator.h: Likewise.
12127         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
12128         * lib/unictype/pr_ignorable_control.h: Likewise.
12129         * lib/unictype/pr_iso_control.h: Likewise.
12130         * lib/unictype/pr_join_control.h: Likewise.
12131         * lib/unictype/pr_left_of_pair.h: Likewise.
12132         * lib/unictype/pr_line_separator.h: Likewise.
12133         * lib/unictype/pr_logical_order_exception.h: Likewise.
12134         * lib/unictype/pr_non_break.h: Likewise.
12135         * lib/unictype/pr_not_a_character.h: Likewise.
12136         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
12137         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
12138         * lib/unictype/pr_other_id_start.h: Likewise.
12139         * lib/unictype/pr_other_lowercase.h: Likewise.
12140         * lib/unictype/pr_other_uppercase.h: Likewise.
12141         * lib/unictype/pr_paired_punctuation.h: Likewise.
12142         * lib/unictype/pr_paragraph_separator.h: Likewise.
12143         * lib/unictype/pr_pattern_syntax.h: Likewise.
12144         * lib/unictype/pr_pattern_white_space.h: Likewise.
12145         * lib/unictype/pr_private_use.h: Likewise.
12146         * lib/unictype/pr_quotation_mark.h: Likewise.
12147         * lib/unictype/pr_radical.h: Likewise.
12148         * lib/unictype/pr_soft_dotted.h: Likewise.
12149         * lib/unictype/pr_space.h: Likewise.
12150         * lib/unictype/pr_titlecase.h: Likewise.
12151         * lib/unictype/pr_variation_selector.h: Likewise.
12152         * lib/unictype/pr_white_space.h: Likewise.
12153         * lib/unictype/pr_zero_width.h: Likewise.
12154         * lib/unictype/sy_c_ident.h: Likewise.
12155         * lib/unictype/sy_c_whitespace.h: Likewise.
12156         * lib/unictype/sy_java_whitespace.h: Likewise.
12157         * lib/uninorm/composition-table.gperf: Likewise.
12158         * lib/uninorm/decomposition-table1.h: Likewise.
12159         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
12160         LB8.
12161         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
12162         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
12163         * modules/unictype/*: Bump version number of expected libunistring
12164         version.
12165
12166 2011-01-09  Bruno Haible  <bruno@clisp.org>
12167
12168         Update to Unicode 5.2.0.
12169         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
12170         trailing whitespace removed.
12171
12172 2011-01-09  Bruno Haible  <bruno@clisp.org>
12173
12174         New Unicode character properties, from Unicode 5.2.0.
12175         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
12176         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
12177         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
12178         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
12179         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
12180         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
12181         uc_is_property_cased, uc_is_property_case_ignorable,
12182         uc_is_property_changes_when_lowercased,
12183         uc_is_property_changes_when_uppercased,
12184         uc_is_property_changes_when_titlecased,
12185         uc_is_property_changes_when_casefolded,
12186         uc_is_property_changes_when_casemapped): New declarations.
12187         * lib/unictype/pr_byname.gperf: Add the new properties.
12188         * modules/unictype/property-byname (Depends-on): Depend on the new
12189         properties modules.
12190         * modules/unictype/property-all (Depends-on): Likewise.
12191         * MODULES.html.sh (Unicode string functions): Add
12192         unictype/property-case-ignorable, unictype/property-cased,
12193         unictype/property-changes-when-casefolded,
12194         unictype/property-changes-when-casemapped,
12195         unictype/property-changes-when-lowercased,
12196         unictype/property-changes-when-titlecased,
12197         unictype/property-changes-when-uppercased.
12198
12199         New module 'unictype/property-changes-when-casemapped'.
12200         * modules/unictype/property-changes-when-casemapped: New file.
12201         * lib/unictype/pr_changes_when_casemapped.c: New file.
12202         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
12203         generated by gen-uni-tables.
12204         * modules/unictype/property-changes-when-casemapped-tests: New file.
12205         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
12206         automatically generated by gen-uni-tables.
12207
12208         New module 'unictype/property-changes-when-casefolded'.
12209         * modules/unictype/property-changes-when-casefolded: New file.
12210         * lib/unictype/pr_changes_when_casefolded.c: New file.
12211         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
12212         generated by gen-uni-tables.
12213         * modules/unictype/property-changes-when-casefolded-tests: New file.
12214         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
12215         automatically generated by gen-uni-tables.
12216
12217         New module 'unictype/property-changes-when-titlecased'.
12218         * modules/unictype/property-changes-when-titlecased: New file.
12219         * lib/unictype/pr_changes_when_titlecased.c: New file.
12220         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
12221         generated by gen-uni-tables.
12222         * modules/unictype/property-changes-when-titlecased-tests: New file.
12223         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
12224         automatically generated by gen-uni-tables.
12225
12226         New module 'unictype/property-changes-when-uppercased'.
12227         * modules/unictype/property-changes-when-uppercased: New file.
12228         * lib/unictype/pr_changes_when_uppercased.c: New file.
12229         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
12230         generated by gen-uni-tables.
12231         * modules/unictype/property-changes-when-uppercased-tests: New file.
12232         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
12233         automatically generated by gen-uni-tables.
12234
12235         New module 'unictype/property-changes-when-lowercased'.
12236         * modules/unictype/property-changes-when-lowercased: New file.
12237         * lib/unictype/pr_changes_when_lowercased.c: New file.
12238         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
12239         generated by gen-uni-tables.
12240         * modules/unictype/property-changes-when-lowercased-tests: New file.
12241         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
12242         automatically generated by gen-uni-tables.
12243
12244         New module 'unictype/property-case-ignorable'.
12245         * modules/unictype/property-case-ignorable: New file.
12246         * lib/unictype/pr_case_ignorable.c: New file.
12247         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
12248         by gen-uni-tables.
12249         * modules/unictype/property-case-ignorable-tests: New file.
12250         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
12251         generated by gen-uni-tables.
12252
12253         New module 'unictype/property-cased'.
12254         * modules/unictype/property-cased: New file.
12255         * lib/unictype/pr_cased.c: New file.
12256         * lib/unictype/pr_cased.h: New file, automatically generated by
12257         gen-uni-tables.
12258         * modules/unictype/property-cased-tests: New file.
12259         * tests/unictype/test-pr_cased.c: New file, automatically generated by
12260         gen-uni-tables.
12261
12262 2011-01-09  Bruno Haible  <bruno@clisp.org>
12263
12264         Update to Unicode 5.2.0.
12265         * lib/gen-uni-tables.c (output_predicate, output_category,
12266         output_combclass, output_bidi_category, output_decimal_digit_test,
12267         output_decimal_digit, output_digit_test, output_digit,
12268         output_numeric_test, output_numeric, output_mirror, output_scripts,
12269         output_scripts_byname, output_blocks, output_ident_category): Fix
12270         comment header.
12271         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
12272         get_wbp.
12273         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
12274         items.
12275         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
12276         Changes_When_Lowercased, Changes_When_Uppercased,
12277         Changes_When_Titlecased, Changes_When_Casefolded,
12278         Changes_When_Casemapped.
12279         (is_property_alphabetic, is_property_default_ignorable_code_point):
12280         Update for Unicode 5.2.0.
12281         (is_property_cased, is_property_case_ignorable,
12282         is_property_changes_when_lowercased,
12283         is_property_changes_when_uppercased,
12284         is_property_changes_when_titlecased,
12285         is_property_changes_when_casefolded,
12286         is_property_changes_when_casemapped): New functions.
12287         (output_properties): Output also the properties cased, case_ignorable,
12288         changes_when_lowercased, changes_when_uppercased,
12289         changes_when_titlecased, changes_when_casefolded,
12290         changes_when_casemapped.
12291         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
12292         Unicode TR#11 revision 17 -> 19.
12293         (LBP_CP): New enumeration value.
12294         (LBP_*): Adjust values accordingly.
12295         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
12296         TR#14 revision 22 -> 24.
12297         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
12298         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
12299         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
12300         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
12301         is_WBP_MIDLETTER.
12302         (output_composition_tables): Allow for 24 bits instead of 16 bits in
12303         the code1 and code2 of each composition rule.
12304         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
12305         * lib/unicase/ignorable.h: Likewise.
12306         * lib/unicase/tocasefold.h: Likewise.
12307         * lib/unicase/tolower.h: Likewise.
12308         * lib/unicase/totitle.h: Likewise.
12309         * lib/unicase/toupper.h: Likewise.
12310         * lib/unictype/bidi_of.h: Likewise.
12311         * lib/unictype/blocks.h: Likewise.
12312         * lib/unictype/categ_C.h: Likewise.
12313         * lib/unictype/categ_Cf.h: Likewise.
12314         * lib/unictype/categ_Cn.h: Likewise.
12315         * lib/unictype/categ_L.h: Likewise.
12316         * lib/unictype/categ_Ll.h: Likewise.
12317         * lib/unictype/categ_Lm.h: Likewise.
12318         * lib/unictype/categ_Lo.h: Likewise.
12319         * lib/unictype/categ_Lu.h: Likewise.
12320         * lib/unictype/categ_M.h: Likewise.
12321         * lib/unictype/categ_Mc.h: Likewise.
12322         * lib/unictype/categ_Mn.h: Likewise.
12323         * lib/unictype/categ_N.h: Likewise.
12324         * lib/unictype/categ_Nd.h: Likewise.
12325         * lib/unictype/categ_Nl.h: Likewise.
12326         * lib/unictype/categ_No.h: Likewise.
12327         * lib/unictype/categ_P.h: Likewise.
12328         * lib/unictype/categ_Pd.h: Likewise.
12329         * lib/unictype/categ_Po.h: Likewise.
12330         * lib/unictype/categ_S.h: Likewise.
12331         * lib/unictype/categ_Sc.h: Likewise.
12332         * lib/unictype/categ_So.h: Likewise.
12333         * lib/unictype/categ_of.h: Likewise.
12334         * lib/unictype/combining.h: Likewise.
12335         * lib/unictype/ctype_alnum.h: Likewise.
12336         * lib/unictype/ctype_alpha.h: Likewise.
12337         * lib/unictype/ctype_graph.h: Likewise.
12338         * lib/unictype/ctype_lower.h: Likewise.
12339         * lib/unictype/ctype_print.h: Likewise.
12340         * lib/unictype/ctype_punct.h: Likewise.
12341         * lib/unictype/ctype_upper.h: Likewise.
12342         * lib/unictype/decdigit.h: Likewise.
12343         * lib/unictype/digit.h: Likewise.
12344         * lib/unictype/numeric.h: Likewise.
12345         * lib/unictype/pr_alphabetic.h: Likewise.
12346         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
12347         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
12348         * lib/unictype/pr_bidi_european_digit.h: Likewise.
12349         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
12350         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
12351         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
12352         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
12353         * lib/unictype/pr_combining.h: Likewise.
12354         * lib/unictype/pr_composite.h: Likewise.
12355         * lib/unictype/pr_currency_symbol.h: Likewise.
12356         * lib/unictype/pr_dash.h: Likewise.
12357         * lib/unictype/pr_decimal_digit.h: Likewise.
12358         * lib/unictype/pr_deprecated.h: Likewise.
12359         * lib/unictype/pr_diacritic.h: Likewise.
12360         * lib/unictype/pr_extender.h: Likewise.
12361         * lib/unictype/pr_grapheme_base.h: Likewise.
12362         * lib/unictype/pr_grapheme_extend.h: Likewise.
12363         * lib/unictype/pr_grapheme_link.h: Likewise.
12364         * lib/unictype/pr_id_continue.h: Likewise.
12365         * lib/unictype/pr_id_start.h: Likewise.
12366         * lib/unictype/pr_ideographic.h: Likewise.
12367         * lib/unictype/pr_ignorable_control.h: Likewise.
12368         * lib/unictype/pr_logical_order_exception.h: Likewise.
12369         * lib/unictype/pr_lowercase.h: Likewise.
12370         * lib/unictype/pr_numeric.h: Likewise.
12371         * lib/unictype/pr_other_alphabetic.h: Likewise.
12372         * lib/unictype/pr_punctuation.h: Likewise.
12373         * lib/unictype/pr_sentence_terminal.h: Likewise.
12374         * lib/unictype/pr_terminal_punctuation.h: Likewise.
12375         * lib/unictype/pr_unassigned_code_value.h: Likewise.
12376         * lib/unictype/pr_unified_ideograph.h: Likewise.
12377         * lib/unictype/pr_uppercase.h: Likewise.
12378         * lib/unictype/pr_xid_continue.h: Likewise.
12379         * lib/unictype/pr_xid_start.h: Likewise.
12380         * lib/unictype/pr_zero_width.h: Likewise.
12381         * lib/unictype/scripts.h: Likewise.
12382         * lib/unictype/scripts_byname.gperf: Likewise.
12383         * lib/unictype/sy_java_ident.h: Likewise.
12384         * lib/unigbrk/gbrkprop.h: Likewise.
12385         * lib/unilbrk/lbrkprop1.h: Likewise.
12386         * lib/unilbrk/lbrkprop2.h: Likewise.
12387         * lib/unilbrk/lbrktables.h: Likewise.
12388         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
12389         LBP_CP. Implement rule LB30.
12390         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
12391         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
12392         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
12393         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
12394         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
12395         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
12396         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
12397         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
12398         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
12399         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
12400         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
12401         bits instead of 16 bits in the code1 and code2 of each composition
12402         rule.
12403         (uc_composition): Update for Unicode 5.2.0.
12404         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
12405         * lib/uninorm/decomposition-table2.h: Likewise.
12406         * lib/uniwbrk/wbrkprop.h: Likewise.
12407         * tests/unicase/test-cased.c: Likewise.
12408         * tests/unicase/test-ignorable.c: Likewise.
12409         * tests/unicase/test-uc_tolower.c: Likewise.
12410         * tests/unicase/test-uc_totitle.c: Likewise.
12411         * tests/unicase/test-uc_toupper.c: Likewise.
12412         * tests/unictype/test-categ_C.c: Likewise.
12413         * tests/unictype/test-categ_Cf.c: Likewise.
12414         * tests/unictype/test-categ_Cn.c: Likewise.
12415         * tests/unictype/test-categ_L.c: Likewise.
12416         * tests/unictype/test-categ_Ll.c: Likewise.
12417         * tests/unictype/test-categ_Lm.c: Likewise.
12418         * tests/unictype/test-categ_Lo.c: Likewise.
12419         * tests/unictype/test-categ_Lu.c: Likewise.
12420         * tests/unictype/test-categ_M.c: Likewise.
12421         * tests/unictype/test-categ_Mc.c: Likewise.
12422         * tests/unictype/test-categ_Mn.c: Likewise.
12423         * tests/unictype/test-categ_N.c: Likewise.
12424         * tests/unictype/test-categ_Nd.c: Likewise.
12425         * tests/unictype/test-categ_Nl.c: Likewise.
12426         * tests/unictype/test-categ_No.c: Likewise.
12427         * tests/unictype/test-categ_P.c: Likewise.
12428         * tests/unictype/test-categ_Pd.c: Likewise.
12429         * tests/unictype/test-categ_Po.c: Likewise.
12430         * tests/unictype/test-categ_S.c: Likewise.
12431         * tests/unictype/test-categ_Sc.c: Likewise.
12432         * tests/unictype/test-categ_So.c: Likewise.
12433         * tests/unictype/test-ctype_alnum.c: Likewise.
12434         * tests/unictype/test-ctype_alpha.c: Likewise.
12435         * tests/unictype/test-ctype_graph.c: Likewise.
12436         * tests/unictype/test-ctype_lower.c: Likewise.
12437         * tests/unictype/test-ctype_print.c: Likewise.
12438         * tests/unictype/test-ctype_punct.c: Likewise.
12439         * tests/unictype/test-ctype_upper.c: Likewise.
12440         * tests/unictype/test-decdigit.h: Likewise.
12441         * tests/unictype/test-digit.h: Likewise.
12442         * tests/unictype/test-numeric.h: Likewise.
12443         * tests/unictype/test-pr_alphabetic.c: Likewise.
12444         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
12445         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
12446         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
12447         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
12448         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
12449         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
12450         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
12451         * tests/unictype/test-pr_combining.c: Likewise.
12452         * tests/unictype/test-pr_composite.c: Likewise.
12453         * tests/unictype/test-pr_currency_symbol.c: Likewise.
12454         * tests/unictype/test-pr_dash.c: Likewise.
12455         * tests/unictype/test-pr_decimal_digit.c: Likewise.
12456         * tests/unictype/test-pr_deprecated.c: Likewise.
12457         * tests/unictype/test-pr_diacritic.c: Likewise.
12458         * tests/unictype/test-pr_extender.c: Likewise.
12459         * tests/unictype/test-pr_grapheme_base.c: Likewise.
12460         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
12461         * tests/unictype/test-pr_grapheme_link.c: Likewise.
12462         * tests/unictype/test-pr_id_continue.c: Likewise.
12463         * tests/unictype/test-pr_id_start.c: Likewise.
12464         * tests/unictype/test-pr_ideographic.c: Likewise.
12465         * tests/unictype/test-pr_ignorable_control.c: Likewise.
12466         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
12467         * tests/unictype/test-pr_lowercase.c: Likewise.
12468         * tests/unictype/test-pr_numeric.c: Likewise.
12469         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
12470         * tests/unictype/test-pr_punctuation.c: Likewise.
12471         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
12472         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
12473         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
12474         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
12475         * tests/unictype/test-pr_uppercase.c: Likewise.
12476         * tests/unictype/test-pr_xid_continue.c: Likewise.
12477         * tests/unictype/test-pr_xid_start.c: Likewise.
12478         * tests/unictype/test-pr_zero_width.c: Likewise.
12479         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
12480         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
12481         changed behaviour: line breaking is now disallowed between a letter
12482         or '=' and '('.
12483         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
12484         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
12485         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
12486         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
12487         * tests/uniwidth/test-uc_width2.sh: Same updates as in
12488         lib/uniwidth/width.c.
12489         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
12490         without comments, but with the original copyright notice.
12491         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
12492         changes.
12493         * lib/unictype/categ_Cc.h: Likewise.
12494         * lib/unictype/categ_Co.h: Likewise.
12495         * lib/unictype/categ_Cs.h: Likewise.
12496         * lib/unictype/categ_Lt.h: Likewise.
12497         * lib/unictype/categ_Me.h: Likewise.
12498         * lib/unictype/categ_Pc.h: Likewise.
12499         * lib/unictype/categ_Pe.h: Likewise.
12500         * lib/unictype/categ_Pf.h: Likewise.
12501         * lib/unictype/categ_Pi.h: Likewise.
12502         * lib/unictype/categ_Ps.h: Likewise.
12503         * lib/unictype/categ_Sk.h: Likewise.
12504         * lib/unictype/categ_Sm.h: Likewise.
12505         * lib/unictype/categ_Z.h: Likewise.
12506         * lib/unictype/categ_Zl.h: Likewise.
12507         * lib/unictype/categ_Zp.h: Likewise.
12508         * lib/unictype/categ_Zs.h: Likewise.
12509         * lib/unictype/ctype_blank.h: Likewise.
12510         * lib/unictype/ctype_cntrl.h: Likewise.
12511         * lib/unictype/ctype_digit.h: Likewise.
12512         * lib/unictype/ctype_space.h: Likewise.
12513         * lib/unictype/ctype_xdigit.h: Likewise.
12514         * lib/unictype/mirror.h: Likewise.
12515         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
12516         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
12517         * lib/unictype/pr_bidi_block_separator.h: Likewise.
12518         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
12519         * lib/unictype/pr_bidi_common_separator.h: Likewise.
12520         * lib/unictype/pr_bidi_control.h: Likewise.
12521         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
12522         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
12523         * lib/unictype/pr_bidi_pdf.h: Likewise.
12524         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
12525         * lib/unictype/pr_bidi_whitespace.h: Likewise.
12526         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
12527         * lib/unictype/pr_format_control.h: Likewise.
12528         * lib/unictype/pr_hex_digit.h: Likewise.
12529         * lib/unictype/pr_hyphen.h: Likewise.
12530         * lib/unictype/pr_ids_binary_operator.h: Likewise.
12531         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
12532         * lib/unictype/pr_iso_control.h: Likewise.
12533         * lib/unictype/pr_join_control.h: Likewise.
12534         * lib/unictype/pr_left_of_pair.h: Likewise.
12535         * lib/unictype/pr_line_separator.h: Likewise.
12536         * lib/unictype/pr_math.h: Likewise.
12537         * lib/unictype/pr_non_break.h: Likewise.
12538         * lib/unictype/pr_not_a_character.h: Likewise.
12539         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
12540         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
12541         * lib/unictype/pr_other_id_continue.h: Likewise.
12542         * lib/unictype/pr_other_id_start.h: Likewise.
12543         * lib/unictype/pr_other_lowercase.h: Likewise.
12544         * lib/unictype/pr_other_math.h: Likewise.
12545         * lib/unictype/pr_other_uppercase.h: Likewise.
12546         * lib/unictype/pr_paired_punctuation.h: Likewise.
12547         * lib/unictype/pr_paragraph_separator.h: Likewise.
12548         * lib/unictype/pr_pattern_syntax.h: Likewise.
12549         * lib/unictype/pr_pattern_white_space.h: Likewise.
12550         * lib/unictype/pr_private_use.h: Likewise.
12551         * lib/unictype/pr_quotation_mark.h: Likewise.
12552         * lib/unictype/pr_radical.h: Likewise.
12553         * lib/unictype/pr_soft_dotted.h: Likewise.
12554         * lib/unictype/pr_space.h: Likewise.
12555         * lib/unictype/pr_titlecase.h: Likewise.
12556         * lib/unictype/pr_variation_selector.h: Likewise.
12557         * lib/unictype/pr_white_space.h: Likewise.
12558         * lib/unictype/sy_c_ident.h: Likewise.
12559         * lib/unictype/sy_c_whitespace.h: Likewise.
12560         * lib/unictype/sy_java_whitespace.h: Likewise.
12561         * modules/uni*/*: Bump version number of expected libunistring version.
12562         Reported by Simon Josefsson.
12563
12564 2011-01-09  Karl Heuer  <kwzh@gnu.org>
12565
12566         useless-if-before-free: fix typo in --help and make the internal,
12567         automatic version date update process work once again.
12568         --help output contained a NUL character instead of the
12569         backslash-zero that was intended.  Also, the "must lie within
12570         the first 8 lines" line is on line 9, and hence not getting
12571         automatically updated.
12572         * build-aux/useless-if-before-free: Fix the former by adding a
12573         backslash, and the latter by condensing the three lines of what-it-does
12574         to a single line, leaving one line of slack for the future.
12575
12576 2011-01-09  Bruno Haible  <bruno@clisp.org>
12577
12578         uniwidth/width: Fix width of U+1D173..U+1D17A.
12579         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
12580         symbolic_width, output_width_property_test): New functions.
12581         (main): Invoke output_nonspacing_property, output_width_property_test.
12582         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
12583         U+1D173..U+1D17A.
12584         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
12585         1.
12586         * modules/uniwidth/*: Bump version number of expected libunistring
12587         version.
12588         * modules/unilbrk/*: Likewise.
12589
12590 2011-01-08  Bruno Haible  <bruno@clisp.org>
12591
12592         uninorm tests: Preserve copyright of Unicode data file.
12593         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
12594         Mention modifications.
12595
12596 2011-01-08  Bruno Haible  <bruno@clisp.org>
12597
12598         gen-uni-tables: Prepare for Unicode 5.2.0.
12599         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
12600         (debug_output_lbp, output_lbp): Update.
12601
12602 2011-01-08  Bruno Haible  <bruno@clisp.org>
12603
12604         unilbrk: Clarify gen-uni-tables.c code.
12605         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
12606         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
12607         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
12608
12609 2011-01-07  Bruno Haible  <bruno@clisp.org>
12610
12611         strtod: Restore errno when successfully parsing Infinity or NaN.
12612         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
12613         restore the original errno.
12614
12615 2011-01-07  Bruno Haible  <bruno@clisp.org>
12616
12617         remove test: Avoid failure on HP-UX 11.
12618         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
12619
12620 2011-01-07  Bruno Haible  <bruno@clisp.org>
12621
12622         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
12623         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
12624         error code.
12625
12626 2011-01-07  Pádraig Brady <P@draigBrady.com>
12627
12628         ignore-value: fixup comments, and add Eric Blake
12629         as an author since he rewrote the macros.
12630         * lib/ignore-value.h (ignore_value):  State that
12631         we now support aggregates.  Also specify exactly
12632         when the GCC warn_unused_result feature was added.
12633
12634 2011-01-06  Eric Blake  <eblake@redhat.com>
12635
12636         ignore-value: support aggregate types
12637         * lib/ignore-value.h (ignore_value): Provide separate gcc
12638         definition.
12639         * modules/ignore-value-tests: New test module.
12640         * tests/test-ignore-value.c: New test.
12641
12642         maint.mk: improve sc_prohibit_strcmp regex
12643         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
12644         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
12645         definition of STRNEQ.
12646
12647         signal: work around Haiku issue with SIGBUS
12648         * lib/siglist.h: Add comment.
12649         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
12650         strsignal's favoring of SIGSEGV.
12651         * tests/test-signal.c (main): Avoid test failure.
12652         * doc/posix-headers/signal.texi (signal.h): Document the issue.
12653         Reported by Scott McCreary.
12654
12655         maint.mk: add pre-release check to ensure submodule commits are public
12656         * top/maint.mk (public-submodule-commit): New rule.
12657         (submodule-checks): New variable.
12658         (alpha beta stable): Depend on the variable.
12659
12660 2011-01-05  Pádraig Brady <P@draigBrady.com>
12661         and Jim Meyering  <meyering@redhat.com>
12662
12663         ignore-value: make ignore_value more generic; deprecate ignore_ptr
12664         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
12665         (ATTRIBUTE_DEPRECATED): Define.
12666         (_ignore_case): New function.
12667         (ignore_value): New macro, to replace the old function.
12668         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
12669         * modules/ignore-value (Depends-on): Add stdint.
12670
12671 2011-01-04  Eric Blake  <eblake@redhat.com>
12672
12673         doc: regenerate INSTALL
12674         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
12675         @firstparagraphindent support, now that autoconf dropped it.
12676         (INSTALL_PRELUDE): Reinstate old macro.
12677         * doc/install.texi: Resync from autoconf.
12678         * doc/INSTALL: Reflect recent autoconf update.
12679         * doc/INSTALL.ISO: Likewise.
12680         * doc/INSTALL.UTF-8: Likewise.
12681         Reported by Karl Berry.
12682
12683 2011-01-04  Bruce Korb  <address@hidden>
12684
12685         git-version-gen: avoid a sub-shell
12686         * build-aux/git-version-gen: Redirect stderr in `...` via
12687         "exec 2>...", rather than via an added sub-shell.
12688
12689 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
12690
12691         git-version-gen: use (...) rather than sh -c '...'
12692         * build-aux/git-version-gen: Rather than hard-coding a shell's name
12693         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
12694
12695 2011-01-03  Jim Meyering  <meyering@redhat.com>
12696
12697         git-version-gen: convert leading TABs to spaces
12698         * build-aux/git-version-gen: Expand leading TABs.
12699
12700         git-version-gen: handle failed "git rev-list"
12701         * build-aux/git-version-gen: Rather than leaking a "fatal" error
12702         from git and proceeding as if it had succeeded but printed no SHA1
12703         checksums, suppress the diagnostic and handle the failure.
12704         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
12705
12706         git-version-gen: include command name in one more diagnostic
12707         * build-aux/git-version-gen: When the required .tarball-version file
12708         was missing or unreadable, you might see the diagnostic from "cat",
12709         but no trace of the name of the invoking script.  Now, you still see
12710         the diagnostic from cat, but also get one from "git-version-gen: ".
12711         Inspired by a patch from Bruce Korb.
12712
12713         update-copyright: adjust test to match changed code
12714         * tests/test-update-copyright.sh: Change test's expected output
12715         to match new actual output.
12716
12717 2011-01-02  Bruno Haible  <bruno@clisp.org>
12718
12719         getlogin_r: Avoid test failure on HP-UX 11.
12720         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
12721         ERANGE when the second argument is zero.
12722         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
12723         portability problem.
12724
12725 2011-01-02  Bruce Korb  <bkorb@gnu.org>
12726
12727         * build-aux/update-copyright: doc Simon's changes
12728
12729 2011-01-02  Simon Josefsson  <simon@josefsson.org>
12730
12731         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
12732         environment variable.
12733
12734 2011-01-02  Bruno Haible  <bruno@clisp.org>
12735
12736         unigbrk: Avoid gcc warnings.
12737         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
12738         unused variable.
12739         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
12740         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
12741         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
12742         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
12743         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
12744         Change type of first argument to 'const char *'.
12745         (main): Remove unused variable.
12746         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
12747         type of first argument to 'const char *'.
12748         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
12749         Likewise.
12750         (main): Change type of variable 's'.
12751         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
12752         to 'int'.
12753
12754 2011-01-02  Bruno Haible  <bruno@clisp.org>
12755
12756         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
12757         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
12758         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
12759         bug.
12760         * lib/pwrite.c: Undo 2010-12-31 patch.
12761         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
12762
12763 2011-01-02  Bruno Haible  <bruno@clisp.org>
12764
12765         pread: Fix test whether it works.
12766         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
12767
12768 2011-01-02  Bruno Haible  <bruno@clisp.org>
12769
12770         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
12771         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
12772         ends in "6". Don't require a specific month name. Try also the locale
12773         names found on HP-UX 11 and Solaris 7.
12774
12775 2011-01-02  Bruno Haible  <bruno@clisp.org>
12776
12777         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
12778         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
12779         C linkage.
12780         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
12781
12782 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
12783
12784         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
12785         for consistency, since the "cluster" term is not used elsewhere.
12786         * lib/unigbrk.in.h: Update name.
12787         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
12788         * lib/unigbrk/u16-grapheme-next.c: Update name.
12789         * lib/unigbrk/u16-grapheme-prev.c: Update name.
12790         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
12791         * lib/unigbrk/u32-grapheme-next.c: Update name.
12792         * lib/unigbrk/u32-grapheme-prev.c: Update name.
12793         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
12794         * lib/unigbrk/u8-grapheme-next.c: Update name.
12795         * lib/unigbrk/u8-grapheme-prev.c: Update name.
12796         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
12797         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
12798         Suggested by Bruno Haible.
12799
12800 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
12801
12802         Remove module 'u8-grapheme-len' as too redundant with
12803         'u8-grapheme-next'.
12804         * modules/unigbrk/u8-grapheme-len: Delete file.
12805         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
12806         * lib/unigbrk.in.h: Remove prototype for deleted function.
12807         * lib/unigbrk/u8-grapheme-len.c: Delete file.
12808         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
12809
12810         Remove module 'u16-grapheme-len' as too redundant with
12811         'u16-grapheme-next'.
12812         * modules/unigbrk/u16-grapheme-len: Delete file.
12813         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
12814         * lib/unigbrk.in.h: Remove prototype for deleted function.
12815         * lib/unigbrk/u16-grapheme-len.c: Delete file.
12816         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
12817
12818         Remove module 'u32-grapheme-len' as too redundant with
12819         'u32-grapheme-next'.
12820         * modules/unigbrk/u32-grapheme-len: Delete file.
12821         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
12822         * lib/unigbrk.in.h: Remove prototype for deleted function.
12823         * lib/unigbrk/u32-grapheme-len.c: Delete file.
12824         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
12825
12826         Suggested by Bruno Haible.
12827
12828 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
12829
12830         * unigbrk.in.h: Fix typo: "ben" => "been".
12831         Reported by Bruno Haible.
12832
12833 2011-01-01  Jim Meyering  <meyering@redhat.com>
12834
12835         maint: update almost all copyright ranges to include 2011
12836         Run the new "make update-copyright" rule.
12837
12838 2011-01-01  Jim Meyering  <meyering@redhat.com>
12839
12840         maint: update-copyright: exempt doc/INSTALL*
12841         * Makefile (update-copyright): Also exclude doc/INSTALL*,
12842         since they are generated.  Suggested by Bruno Haible.
12843
12844 2011-01-01  Jim Meyering  <meyering@redhat.com>
12845
12846         maint: refine the update-copyright rule
12847         * Makefile (update-copyright): Also exclude any file that includes
12848         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
12849         code that merely generates the comment.
12850
12851 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
12852
12853         New module 'u8-grapheme-len'.
12854         * modules/unigbrk/u8-grapheme-len: New file.
12855         * modules/unigbrk/u8-grapheme-len-tests: New file.
12856         * lib/unigbrk.in.h: Add prototype for new function.
12857         * lib/unigbrk/u8-grapheme-len.c: New file.
12858         * tests/unigbrk/test-u8-grapheme-len.c: New file.
12859
12860         New module 'u16-grapheme-len'.
12861         * modules/unigbrk/u16-grapheme-len: New file.
12862         * modules/unigbrk/u16-grapheme-len-tests: New file.
12863         * lib/unigbrk.in.h: Add prototype for new function.
12864         * lib/unigbrk/u16-grapheme-len.c: New file.
12865         * tests/unigbrk/test-u16-grapheme-len.c: New file.
12866
12867         New module 'u32-grapheme-len'.
12868         * modules/unigbrk/u32-grapheme-len: New file.
12869         * modules/unigbrk/u32-grapheme-len-tests: New file.
12870         * lib/unigbrk.in.h: Add prototype for new function.
12871         * lib/unigbrk/u32-grapheme-len.c: New file.
12872         * tests/unigbrk/test-u32-grapheme-len.c: New file.
12873
12874         New module 'u8-grapheme-next'.
12875         * modules/unigbrk/u8-grapheme-next: New file.
12876         * modules/unigbrk/u8-grapheme-next-tests: New file.
12877         * lib/unigbrk.in.h: Add prototype for new function.
12878         * lib/unigbrk/u8-grapheme-next.c: New file.
12879         * tests/unigbrk/test-u8-grapheme-next.c: New file.
12880
12881         New module 'u16-grapheme-next'.
12882         * modules/unigbrk/u16-grapheme-next: New file.
12883         * modules/unigbrk/u16-grapheme-next-tests: New file.
12884         * lib/unigbrk.in.h: Add prototype for new function.
12885         * lib/unigbrk/u16-grapheme-next.c: New file.
12886         * tests/unigbrk/test-u16-grapheme-next.c: New file.
12887
12888         New module 'u32-grapheme-next'.
12889         * modules/unigbrk/u32-grapheme-next: New file.
12890         * modules/unigbrk/u32-grapheme-next-tests: New file.
12891         * lib/unigbrk.in.h: Add prototype for new function.
12892         * lib/unigbrk/u32-grapheme-next.c: New file.
12893         * tests/unigbrk/test-u32-grapheme-next.c: New file.
12894
12895         New module 'u8-grapheme-prev'.
12896         * modules/unigbrk/u8-grapheme-prev: New file.
12897         * modules/unigbrk/u8-grapheme-prev-tests: New file.
12898         * lib/unigbrk.in.h: Add prototype for new function.
12899         * lib/unigbrk/u8-grapheme-prev.c: New file.
12900         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
12901
12902         New module 'u16-grapheme-prev'.
12903         * modules/unigbrk/u16-grapheme-prev: New file.
12904         * modules/unigbrk/u16-grapheme-prev-tests: New file.
12905         * lib/unigbrk.in.h: Add prototype for new function.
12906         * lib/unigbrk/u16-grapheme-prev.c: New file.
12907         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
12908
12909         New module 'u32-grapheme-prev'.
12910         * modules/unigbrk/u32-grapheme-prev: New file.
12911         * modules/unigbrk/u32-grapheme-prev-tests: New file.
12912         * lib/unigbrk.in.h: Add prototype for new function.
12913         * lib/unigbrk/u32-grapheme-prev.c: New file.
12914         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
12915
12916         New module 'u8-grapheme-breaks'.
12917         * modules/unigbrk/u8-grapheme-breaks: New file.
12918         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
12919         * lib/unigbrk.in.h: Add prototype for new function.
12920         * lib/unigbrk/u8-grapheme-breaks.c: New file.
12921         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
12922
12923         New module 'u16-grapheme-breaks'.
12924         * modules/unigbrk/u16-grapheme-breaks: New file.
12925         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
12926         * lib/unigbrk.in.h: Add prototype for new function.
12927         * lib/unigbrk/u16-grapheme-breaks.c: New file.
12928         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
12929
12930         New module 'u32-grapheme-breaks'.
12931         * modules/unigbrk/u32-grapheme-breaks: New file.
12932         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
12933         * lib/unigbrk.in.h: Add prototype for new function.
12934         * lib/unigbrk/u32-grapheme-breaks.c: New file.
12935         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
12936
12937         New module 'ulc-grapheme-breaks'.
12938         * modules/unigbrk/ulc-grapheme-breaks: New file.
12939         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
12940         * m4/locale-ar.m4: New file.
12941         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
12942         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
12943         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
12944
12945 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
12946
12947         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
12948         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
12949         modified how this file was generated before I initially submitted
12950         the module, but failed to regenerate it.  This meant that several
12951         of the level2 entries were wrong.
12952         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
12953         Remove the division-by-2 that is folded into the table now that
12954         gbrkprop.h has been regenerated properly.  Now -1 entries are
12955         handled correctly.
12956
12957         New module 'unigbrk/uc-gbrk-prop-tests'.
12958         * modules/unigbrk/uc-gbrk-prop-tests: New file.
12959         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
12960         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
12961         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
12962
12963 2011-01-01  Bruno Haible  <bruno@clisp.org>
12964
12965         Avoid use of hexadecimal escapes.
12966         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
12967         instead of hexadecimal escapes.
12968
12969 2011-01-01  Jim Meyering  <meyering@redhat.com>
12970
12971         maint: new rule to update copyright year ranges
12972         * Makefile (update-copyright): New rule.
12973
12974         maint: indent with TABs in Makefile
12975         * Makefile: Expand leading sequences of spaces to TABs
12976
12977         version-etc: update the copyright year it reports
12978         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
12979
12980 2010-12-31  Bruno Haible  <bruno@clisp.org>
12981
12982         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
12983         * lib/isfinite.c (zerof, zerod, zerol): New variables.
12984         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
12985         zero.
12986
12987 2010-12-31  Bruno Haible  <bruno@clisp.org>
12988
12989         pwrite: Work around HP-UX 11.11 bug.
12990         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
12991         works and set REPLACE_PWRITE if not.
12992         * lib/pwrite.c (pwrite): Add an implementation that uses the system
12993         function.
12994         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
12995
12996 2010-12-31  Bruno Haible  <bruno@clisp.org>
12997
12998         pread: Work around HP-UX 11 bugs.
12999         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
13000         and set REPLACE_PREAD if not.
13001         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
13002
13003 2010-12-31  Eric Blake  <eblake@redhat.com>
13004
13005         nl_langinfo: fix YESEXPR on Irix 6.5
13006         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
13007         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
13008         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
13009         it.
13010
13011 2010-12-31  Bruno Haible  <bruno@clisp.org>
13012
13013         iconv: Document HP-UX 11 bug.
13014         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
13015
13016 2010-12-31  Bruno Haible  <bruno@clisp.org>
13017
13018         ldexpl: Fix link error on HP-UX 11.
13019         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
13020         LDEXPL_LIBM, using $ISNANL_LIBM.
13021
13022 2010-12-31  Eric Blake  <eblake@redhat.com>
13023
13024         ftello: avoid compilation failure with SunStudio c89
13025         * lib/ftello.c (ftello): Use lseek, not llseek.
13026
13027         tests: avoid failing coreutils tests on cygwin
13028         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
13029         (create_exe_shims_): Return 0 when skipping.
13030
13031 2010-12-31  Bruno Haible  <bruno@clisp.org>
13032
13033         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
13034         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
13035
13036 2010-12-31  Bruno Haible  <bruno@clisp.org>
13037
13038         waitpid: Fix link error in C++ mode.
13039         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
13040
13041 2010-12-31  Bruno Haible  <bruno@clisp.org>
13042
13043         isnan: Use GCC built-ins when possible.
13044         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
13045         __builtin_isnan.
13046         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
13047         (isnan): Define using GCC built-ins for GCC >= 4.0.
13048
13049 2010-12-31  Bruno Haible  <bruno@clisp.org>
13050
13051         isnand: Fix mistake.
13052         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
13053         __builtin_isnand.
13054
13055 2010-12-31  Bruno Haible  <bruno@clisp.org>
13056
13057         open: Avoid C++ error on HP-UX 11.
13058         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
13059
13060 2010-12-31  Bruno Haible  <bruno@clisp.org>
13061
13062         time_r: Add missing declarations on HP-UX 11.
13063         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
13064         instead of HAVE_LOCALTIME_R.
13065         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
13066         HAVE_LOCALTIME_R always.
13067         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
13068         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
13069         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
13070         HAVE_LOCALTIME_R.
13071         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
13072         * doc/posix-functions/localtime_r.texi: Likewise.
13073
13074 2010-12-29  Eric Blake  <eblake@redhat.com>
13075
13076         mountlist: tweak previous commit
13077         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
13078         Reported by Paul Eggert.
13079
13080         mountlist: fix local drive detection on cygwin
13081         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
13082         that works for cygwin.
13083
13084 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
13085
13086         ftoastr, snprintf: ftoastr + snprintf module
13087         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
13088         since the snprintf module now should be good enough here.
13089         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
13090         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
13091         and gl_MODULE_INDICATOR([snprintf]), but the former enables
13092         GNULIB_SNPRINTF only for the test directory, and the latter
13093         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
13094         seems to suffice by itself.
13095
13096 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
13097
13098         alloca: one step towards thread-safety
13099         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
13100         need for a static variable.  All callers changed.  This does not
13101         make the alloca replacement thread-safe, but it's one step.
13102
13103         tests: minor indenting change
13104         * tests/init.sh: Sync from coreutils housekeeping patch
13105         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
13106         to keep lines within 80 columns.
13107
13108 2010-12-28  Jim Meyering  <meyering@redhat.com>
13109
13110         regex: don't infloop on persistent failing calloc
13111         * lib/regexec.c (build_trtable): Return failure indication upon
13112         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
13113         In glibc, this was fixed for version 2.13:
13114         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
13115
13116 2010-12-28  Bruno Haible  <bruno@clisp.org>
13117             Paul Eggert <eggert@cs.ucla.edu>
13118
13119         linkat: Make implementation robust against system behaviour variations.
13120         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
13121         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
13122         way, and to -2 if it needs a generic runtime test.
13123         * lib/linkat.c (solaris_optimized_link_immediate,
13124         solaris_optimized_link_follow): New functions.
13125         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
13126         (check_same_link): Use it.
13127
13128 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
13129
13130         New module 'unigbrk/base'.
13131         * modules/unigbrk/base: New file.
13132         * lib/unigbrk.in.h: New file.
13133
13134         New module 'unigbrk/uc-gbrk-prop'.
13135         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
13136         * modules/unigbrk/uc-gbrk-prop: New file.
13137         * lib/unigbrk/gbrkprop.h: New file.
13138         * lib/unigbrk/uc-gbrk-prop.c: New file.
13139
13140         New module 'unigbrk/uc-is-grapheme-break'.
13141         * modules/unigbrk/uc-is-grapheme-break: New file.
13142         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
13143         * lib/unigbrk/uc-is-grapheme-break.c: New file.
13144         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
13145         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
13146         * tests/unigbrk/GraphemeBreakTest.txt: New file.
13147
13148         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
13149
13150 2010-12-27  Bruno Haible  <bruno@clisp.org>
13151
13152         linkat test: Avoid failure on Solaris 11 2010-11.
13153         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
13154
13155 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
13156
13157         utimens: work around glibc rounding bug on more platforms
13158         * lib/utimens.c (fdutimens): Work around rounding bug even if
13159         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
13160         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
13161
13162 2010-12-27  Bruno Haible  <bruno@clisp.org>
13163
13164         select tests: Improve comments.
13165         * tests/test-select.c (do_select): Add comments.
13166
13167 2010-12-27  Bruno Haible  <bruno@clisp.org>
13168
13169         select tests: Safer way of handling timeout.
13170         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
13171         at every invocation.
13172
13173 2010-12-27  Bruno Haible  <bruno@clisp.org>
13174
13175         select tests: Use 'bool' where appropriate.
13176         * tests/test-select.c (connect_to_socket): Change argument type to
13177         'bool'.
13178
13179 2010-12-27  Bruno Haible  <bruno@clisp.org>
13180
13181         select tests: Use existing modules.
13182         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
13183         (configure.ac): Don't test for unistd.h.
13184         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
13185         declared in <unistd.h>.
13186
13187 2010-12-27  Bruno Haible  <bruno@clisp.org>
13188
13189         mbrtowc: Work around a Solaris 7 bug.
13190         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
13191         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
13192         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
13193         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
13194         MBRTOWC_NULL_ARG1_BUG.
13195         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
13196         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
13197         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
13198         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
13199
13200 2010-12-27  Jim Meyering  <meyering@redhat.com>
13201
13202         read-file.c: tweak syntax
13203         * lib/read-file.c (fread_file): Remove space after "*" in function
13204         definitions.
13205
13206 2010-12-27  Bruno Haible  <bruno@clisp.org>
13207
13208         times test: Avoid gcc warnings on OSF/1.
13209         * tests/test-times.c (main): Cast printf arguments from clock_t to
13210         'long int'.
13211
13212 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
13213
13214         utimens: work around glibc rounding bug on older Linux kernels
13215         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
13216         on Linux with a glibc whose utimes might not work, then work
13217         around a longstanding glibc bug involving rounding rather than
13218         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
13219         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
13220
13221 2010-12-26  Bruno Haible  <bruno@clisp.org>
13222
13223         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
13224         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
13225         _GL_CXXALIAS_SYS.
13226         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13227
13228 2010-12-26  Bruno Haible  <bruno@clisp.org>
13229
13230         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
13231         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
13232         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
13233         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
13234         looking for the declaration.
13235         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
13236         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
13237         problem.
13238         * doc/posix-functions/inet_pton.texi: Likewise.
13239
13240 2010-12-26  Bruno Haible  <bruno@clisp.org>
13241
13242         arpa_inet: Use the common idioms with C++ support.
13243         * lib/arpa_inet.in.h: Include c++defs.h.
13244         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
13245         support.
13246         * modules/arpa_inet (Depends-on): Add c++defs.
13247         (Makefile.am): Substitute the contents of c++defs.h.
13248         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
13249         * modules/arpa_inet-c++-tests: New file.
13250         * tests/test-arpa_inet-c++.cc: New file.
13251
13252 2010-12-25  Bruno Haible  <bruno@clisp.org>
13253
13254         Fix more C++ link errors on Solaris 8.
13255         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
13256         $(LIB_EACCESS).
13257         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
13258         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
13259         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
13260         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
13261         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
13262
13263 2010-12-25  Bruno Haible  <bruno@clisp.org>
13264
13265         printf-posix: Fix link error when a non-GCC compiler is used.
13266         * lib/stdio.in.h (printf): When not using GCC, override printf
13267         correctly.
13268         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13269
13270 2010-12-25  Bruno Haible  <bruno@clisp.org>
13271
13272         strerror_r-posix: Update doc.
13273         * doc/posix-functions/strerror_r.texi: Update doc about the return
13274         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
13275
13276 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
13277
13278         utimens: simplify the logic of the previous change
13279         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
13280         This should not affect whether the test succeeds or fails.
13281
13282         utimens: configure better on hosts with NFS clock skew
13283         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
13284         uses the clock of the local host.  It might use the clock of the
13285         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
13286         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
13287
13288 2010-12-25  Bruno Haible  <bruno@clisp.org>
13289
13290         ptsname test: Avoid failure on Solaris.
13291         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
13292         open a pseudo-terminal; don't use BSD-style ptys.
13293         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
13294
13295 2010-12-25  Bruno Haible  <bruno@clisp.org>
13296
13297         ptsname: Avoid ERANGE failure on some systems.
13298         * lib/ptsname.c (buffer): Increase size.
13299
13300 2010-12-25  Bruno Haible  <bruno@clisp.org>
13301
13302         rename, renameat: Avoid test failures at NFS mounted locations.
13303         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
13304         so that subsequent mkdir calls succeed.
13305
13306 2010-12-25  Bruno Haible  <bruno@clisp.org>
13307
13308         iswblank: Fix C++ link error on Solaris 8.
13309         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
13310         _GL_FUNCDECL_SYS.
13311
13312 2010-12-25  Bruno Haible  <bruno@clisp.org>
13313
13314         unistd: Fix C++ link error on Solaris 8.
13315         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
13316
13317 2010-12-25  Bruno Haible  <bruno@clisp.org>
13318
13319         readlink doc: Mention an old glibc bug.
13320         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
13321
13322 2010-12-25  Bruno Haible  <bruno@clisp.org>
13323
13324         fcntl-h: Fix for use of C++ on glibc systems.
13325         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
13326         also on glibc systems in C++ mode.
13327         Reported by Gary V. Vaughan <gary@gnu.org>.
13328
13329 2010-12-25  Bruno Haible  <bruno@clisp.org>
13330
13331         roundl-ieee: Make it work on OSF/1 5.1 with cc.
13332         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
13333
13334 2010-12-25  Bruno Haible  <bruno@clisp.org>
13335
13336         truncl-ieee: Make it work on OSF/1 5.1 with cc.
13337         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
13338         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
13339         test whether truncl works according to ISO C 99 with IEC 60559.
13340         * m4/truncl-ieee.m4: New file.
13341         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
13342         m4/signbit.m4.
13343         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
13344
13345 2010-12-25  Bruno Haible  <bruno@clisp.org>
13346
13347         ceill-ieee: Make it work on OSF/1 5.1 with cc.
13348         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
13349         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
13350         test whether ceill works according to ISO C 99 with IEC 60559.
13351         * m4/ceill-ieee.m4: New file.
13352         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
13353         m4/signbit.m4.
13354         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
13355
13356 2010-12-25  Bruno Haible  <bruno@clisp.org>
13357
13358         Ensure all prerequisites of <wchar.h> are included.
13359         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
13360         before <wchar.h>.
13361         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
13362         gl_MBRLEN_NUL_RETVAL): Likewise.
13363         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
13364         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
13365         AC_FUNC_MBRTOWC): Likewise.
13366         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
13367         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
13368         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
13369         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
13370         Likewise.
13371         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
13372         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
13373         (gl_WCHAR_H): Improve comments.
13374         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
13375
13376 2010-12-25  Bruno Haible  <bruno@clisp.org>
13377
13378         strtok_r: Fix C syntax error in autoconf macro.
13379         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
13380         characters in test program.
13381
13382 2010-12-24  Bruno Haible  <bruno@clisp.org>
13383
13384         ceil, trunc, round: Fix gcc warnings.
13385         * lib/ceil.c (MIN): Undefine before redefining.
13386         * lib/trunc.c (MIN): Likewise.
13387         * lib/round.c (MIN): Likewise.
13388         Include <math.h> first.
13389
13390 2010-12-24  Bruno Haible  <bruno@clisp.org>
13391
13392         select tests: Avoid failures on OSF/1 5.1.
13393         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
13394         failure of closing the last socket; it may fail with ECONNRESET.
13395
13396 2010-12-24  Eric Blake  <eblake@redhat.com>
13397
13398         stdint: avoid HP-UX 10.20 preprocessor bug
13399         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
13400         than #if.
13401         * tests/test-floor2.c (main): Likewise.
13402         Reported by Peter O'Gorman.
13403
13404         pipe: make obsoletion transition easier
13405         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
13406         * modules/pipe (Files): Include revived file.
13407         (Include): Drop reference, to mirror getdate's behavior.
13408
13409 2010-12-24  Bruno Haible  <bruno@clisp.org>
13410
13411         sys_socket: Hide mismatch of declarations on NonStop Kernel.
13412         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
13413         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
13414         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13415
13416 2010-12-24  Bruno Haible  <bruno@clisp.org>
13417
13418         gethostname: Ensure declaration on NonStop Kernel.
13419         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
13420         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13421
13422 2010-12-24  Bruno Haible  <bruno@clisp.org>
13423
13424         sys_select: Ensure all necessary types on NonStop Kernel.
13425         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
13426         include <sys/time.h>.
13427         * doc/posix-headers/sys_select.texi: Mention that it's missing on
13428         NonStop Kernel.
13429         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13430
13431 2010-12-24  Bruno Haible  <bruno@clisp.org>
13432
13433         sys_select: Remove unneeded include.
13434         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
13435         have <sys/select.h>.
13436
13437 2010-12-24  Bruno Haible  <bruno@clisp.org>
13438
13439         gethostname: Provide a fallback for HOST_NAME_MAX.
13440         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
13441         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
13442         instead.
13443         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13444
13445 2010-12-24  Bruno Haible  <bruno@clisp.org>
13446
13447         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
13448         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
13449         (SA_RESTART): Likewise.
13450         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13451
13452 2010-12-24  Bruno Haible  <bruno@clisp.org>
13453
13454         signal: Define NSIG.
13455         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
13456         * tests/test-signal.c (nsig): New variable.
13457         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13458
13459 2010-12-24  Bruno Haible  <bruno@clisp.org>
13460
13461         rename, renameat: Avoid test failures on OSF/1 5.1.
13462         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
13463         alternative error codes.
13464         * tests/test-renameat.c (main): Likewise.
13465
13466 2010-12-24  Bruno Haible  <bruno@clisp.org>
13467
13468         *printf: Detect large precisions bug on Solaris 10/SPARC.
13469         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
13470         by Paul Eggert.
13471         * tests/test-snprintf-posix.h (test_function): Add this test code here
13472         too.
13473         * tests/test-sprintf-posix.h (test_function): Likewise.
13474         * tests/test-vasnprintf-posix.c (test_function): Likewise.
13475         * tests/test-vasprintf-posix.c (test_function): Likewise.
13476         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
13477         around by gnulib.
13478         * doc/posix-functions/printf.texi: Likewise.
13479         * doc/posix-functions/snprintf.texi: Likewise.
13480         * doc/posix-functions/sprintf.texi: Likewise.
13481         * doc/posix-functions/vfprintf.texi: Likewise.
13482         * doc/posix-functions/vprintf.texi: Likewise.
13483         * doc/posix-functions/vsnprintf.texi: Likewise.
13484         * doc/posix-functions/vsprintf.texi: Likewise.
13485         * doc/posix-functions/dprintf.texi: Undo last commit.
13486         * doc/posix-functions/vdprintf.texi: Likewise.
13487
13488 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
13489
13490         tests: port test-fdutimensat.c to Solaris 8
13491         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
13492         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
13493         On Solaris 8, it fails with errno == ENOSYS, because there is no
13494         futimens (so it can't use the fd), and there is no lutimens (so it
13495         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
13496
13497         vsnprintf: make more consistent with snprintf; doc fixes
13498
13499         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
13500         the byte count return problem was promoted from the snprintf-posix
13501         to the snprintf module.
13502         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
13503         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
13504         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
13505         * tests/test-snprintf.c (main): Check the byte count returned.
13506         * tests/test-vsnprintf.c (main): Likewise.
13507
13508 2010-12-23  Eric Blake  <eblake@redhat.com>
13509
13510         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
13511         * modules/sigpipe (License): Relax license.
13512
13513 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
13514
13515         doc: document Solaris printf bug with large float precisions
13516         * doc/posix-functions/dprintf.texi (dprintf):
13517         * doc/posix-functions/fprintf.texi (fprintf):
13518         * doc/posix-functions/printf.texi (printf):
13519         * doc/posix-functions/snprintf.texi (snprintf):
13520         * doc/posix-functions/sprintf.texi (sprintf):
13521         * doc/posix-functions/vdprintf.texi (vdprintf):
13522         * doc/posix-functions/vfprintf.texi (vfprintf):
13523         * doc/posix-functions/vprintf.texi (vprintf):
13524         * doc/posix-functions/vsnprintf.texi (vsnprintf):
13525         * doc/posix-functions/vsprintf.texi (vsprintf):
13526         Mention that these functions mishandle large floating point
13527         precisions on Solaris 10.  The same bug is also present in Solaris
13528         8, and I assume earlier.  This causes "cd gnulib-tests; make
13529         check" to fail on Solaris 8 (and I assume, later) when building
13530         the latest coreutils, in test-vasprintf-posix's call to
13531         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
13532         the wide flavors (e.g., wprintf) so this patch just updates the
13533         documentation for the narrow ones.
13534
13535         test-posixtm.c: add two tests
13536         * tests/test-posixtm.c: Add two tests, to highlight the
13537         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
13538         around this bug; this is merely to document it.
13539
13540 2010-12-22  Bruno Haible  <bruno@clisp.org>
13541
13542         getlogin_r: Work around portability problem on OSF/1.
13543         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
13544         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
13545         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
13546         test for a truncated result.
13547         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
13548         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
13549         * modules/getlogin_r (Depends-on): Add memchr.
13550         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
13551
13552 2010-12-22  Bruno Haible  <bruno@clisp.org>
13553
13554         ptsname: Avoid test failure on OSF/1 5.1.
13555         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
13556         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
13557         (same_slave): New function.
13558         (main): Use it to compare ptsname's result with the expected file name.
13559
13560 2010-12-22  Bruno Haible  <bruno@clisp.org>
13561
13562         Port extended stdio modules to HP NonStop Kernel.
13563         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
13564         macros.
13565         * lib/fbufmode.c: Update comments.
13566         * lib/fflush.c: Likewise.
13567         * lib/fpurge.c: Likewise.
13568         * lib/freadable.c: Likewise.
13569         * lib/freadahead.c: Likewise.
13570         * lib/freading.c: Likewise.
13571         * lib/freadptr.c: Likewise.
13572         * lib/freadseek.c: Likewise.
13573         * lib/fseeko.c: Likewise.
13574         * lib/fseterr.c: Likewise.
13575         * lib/fwritable.c: Likewise.
13576         * lib/fwriting.c: Likewise.
13577         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13578
13579 2010-12-22  Bruno Haible  <bruno@clisp.org>
13580
13581         ttyname_r: Work around bug on OSF/1 5.1.
13582         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
13583         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
13584         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
13585         present.
13586         * lib/ttyname_r.c (ttyname_r): Update comments.
13587
13588 2010-12-22  Bruno Haible  <bruno@clisp.org>
13589
13590         round: Implement result sign according to IEEE 754.
13591         * lib/round.c (MIN, MINUS_ZERO): New macros.
13592         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
13593         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
13594         * tests/test-round-ieee.c (main): Likewise.
13595         * tests/test-roundl-ieee.c (main): Likewise.
13596
13597         trunc: Implement result sign according to IEEE 754.
13598         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
13599         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
13600         * tests/test-trunc2.c: Include minus-zero.h.
13601         (MINUS_ZERO): New macro.
13602         (trunc_reference): Keep in sync with lib/trunc.c.
13603         * tests/test-truncf2.c: Include minus-zero.h.
13604         (MINUS_ZERO): New macro.
13605         (truncf_reference): Keep in sync with lib/trunc.c.
13606         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
13607         * tests/test-trunc-ieee.c (main): Likewise.
13608         * tests/test-truncl-ieee.c (main): Likewise.
13609
13610         ceil: Implement result sign according to IEEE 754.
13611         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
13612         (FUNC): Return -0.0 for -1 < x < 0.
13613         * tests/test-ceil2.c: Include minus-zero.h.
13614         (MINUS_ZERO): New macro.
13615         (ceil_reference): Keep in sync with lib/ceil.c.
13616         * tests/test-ceilf2.c: Include minus-zero.h.
13617         (MINUS_ZERO): New macro.
13618         (ceilf_reference): Keep in sync with lib/ceil.c.
13619         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
13620         * tests/test-ceil-ieee.c (main): Likewise.
13621         * tests/test-ceill-ieee.c (main): Likewise.
13622
13623         floor: Implement result sign according to IEEE 754.
13624         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
13625         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
13626         * tests/test-floorf2.c (floorf_reference): Likewise.
13627         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
13628         * tests/test-floor-ieee.c (main): Likewise.
13629         * tests/test-floorl-ieee.c (main): Likewise.
13630
13631 2010-12-22  Bruno Haible  <bruno@clisp.org>
13632
13633         getaddrinfo: Update doc.
13634         * doc/posix-functions/gai_strerror.texi: Return type is also different
13635         on AIX and HP-UX.
13636
13637 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
13638
13639         getaddrinfo, inet_ntop: Update doc for Solaris.
13640         * doc/posix-functions/gai_strerror.texi: Return type is also an
13641         issue on Solaris 9 and earlier.
13642         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
13643         on Solaris 10 and earlier.
13644
13645 2010-12-21  Bruno Haible  <bruno@clisp.org>
13646
13647         New module 'roundl-ieee'.
13648         * modules/roundl-ieee: New file.
13649         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
13650         test whether roundl works according to ISO C 99 with IEC 60559.
13651         * m4/roundl-ieee.m4: New file.
13652         * modules/roundl-ieee-tests: New file.
13653         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
13654         * tests/test-roundl.c (main): Remove signbit tests.
13655         * modules/roundl-tests (Depends-on): Remove signbit.
13656         * doc/posix-functions/roundl.texi: Mention the new module.
13657
13658 2010-12-21  Bruno Haible  <bruno@clisp.org>
13659
13660         New module 'truncl-ieee'.
13661         * modules/truncl-ieee: New file.
13662         * modules/truncl-ieee-tests: New file.
13663         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
13664         * tests/test-truncl.c (main): Remove signbit tests.
13665         * modules/truncl-tests (Depends-on): Remove signbit.
13666         * doc/posix-functions/truncl.texi: Mention the new module.
13667
13668 2010-12-21  Bruno Haible  <bruno@clisp.org>
13669
13670         New module 'ceill-ieee'.
13671         * modules/ceill-ieee: New file.
13672         * modules/ceill-ieee-tests: New file.
13673         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
13674         * tests/test-ceill.c (main): Remove signbit tests.
13675         * modules/ceill-tests (Depends-on): Remove signbit.
13676         * doc/posix-functions/ceill.texi: Mention the new module.
13677
13678 2010-12-21  Bruno Haible  <bruno@clisp.org>
13679
13680         New module 'floorl-ieee'.
13681         * modules/floorl-ieee: New file.
13682         * modules/floorl-ieee-tests: New file.
13683         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
13684         * tests/test-floorl.c (main): Remove signbit tests.
13685         * modules/floorl-tests (Depends-on): Remove signbit.
13686         * doc/posix-functions/floorl.texi: Mention the new module.
13687
13688 2010-12-21  Bruno Haible  <bruno@clisp.org>
13689
13690         New module 'round-ieee'.
13691         * modules/round-ieee: New file.
13692         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
13693         whether round works according to ISO C 99 with IEC 60559.
13694         * m4/round-ieee.m4: New file.
13695         * modules/round-ieee-tests: New file.
13696         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
13697         * tests/test-round1.c (main): Remove signbit tests.
13698         * modules/round-tests (Depends-on): Remove 'signbit'.
13699         * doc/posix-functions/round.texi: Mention the new module.
13700
13701 2010-12-21  Bruno Haible  <bruno@clisp.org>
13702
13703         New module 'trunc-ieee'.
13704         * modules/trunc-ieee: New file.
13705         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
13706         whether trunc works according to ISO C 99 with IEC 60559.
13707         * m4/trunc-ieee.m4: New file.
13708         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
13709         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
13710         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
13711         * modules/trunc-ieee-tests: New file.
13712         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
13713         * tests/test-trunc1.c (main): Remove signbit tests.
13714         * modules/trunc-tests (Depends-on): Remove 'signbit'.
13715         * doc/posix-functions/trunc.texi: Mention the new module.
13716
13717 2010-12-21  Bruno Haible  <bruno@clisp.org>
13718
13719         New module 'ceil-ieee'.
13720         * modules/ceil-ieee: New file.
13721         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
13722         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
13723         ISO C 99 with IEC 60559.
13724         * m4/ceil-ieee.m4: New file.
13725         * modules/ceil (Files): Add lib/ceil.c.
13726         (Depends-on): Add 'float'.
13727         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
13728         * lib/math.in.h (ceil): New declaration.
13729         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
13730         REPLACE_CEIL.
13731         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
13732         * modules/ceil-ieee-tests: New file.
13733         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
13734         * tests/test-math-c++.cc: Check the signature of 'ceil'.
13735         * doc/posix-functions/ceil.texi: Mention the new module.
13736
13737 2010-12-21  Bruno Haible  <bruno@clisp.org>
13738
13739         New module 'floor-ieee'.
13740         * modules/floor-ieee: New file.
13741         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
13742         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
13743         ISO C 99 with IEC 60559.
13744         * m4/floor-ieee.m4: New file.
13745         * modules/floor (Files): Add lib/floor.c.
13746         (Depends-on): Add 'float'.
13747         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
13748         * lib/math.in.h (floor): New declaration.
13749         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
13750         REPLACE_FLOOR.
13751         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
13752         * modules/floor-ieee-tests: New file.
13753         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
13754         * tests/test-math-c++.cc: Check the signature of 'floor'.
13755         * doc/posix-functions/floor.texi: Mention the new module.
13756
13757 2010-12-21  Bruno Haible  <bruno@clisp.org>
13758
13759         New module 'roundf-ieee'.
13760         * modules/roundf-ieee: New file.
13761         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
13762         test whether roundf works according to ISO C 99 with IEC 60559.
13763         * m4/roundf-ieee.m4: New file.
13764         * modules/roundf-ieee-tests: New file.
13765         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
13766         * tests/test-roundf1.c (main): Remove signbit tests.
13767         * modules/roundf-tests (Depends-on): Remove 'signbit'.
13768         * doc/posix-functions/roundf.texi: Mention the new module.
13769
13770 2010-12-21  Bruno Haible  <bruno@clisp.org>
13771
13772         New module 'truncf-ieee'.
13773         * modules/truncf-ieee: New file.
13774         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
13775         test whether truncf works according to ISO C 99 with IEC 60559.
13776         * m4/truncf-ieee.m4: New file.
13777         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
13778         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
13779         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
13780         * modules/truncf-ieee-tests: New file.
13781         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
13782         * tests/test-truncf1.c (main): Remove signbit tests.
13783         * modules/truncf-tests (Depends-on): Remove 'signbit'.
13784         * doc/posix-functions/truncf.texi: Mention the new module.
13785
13786 2010-12-21  Bruno Haible  <bruno@clisp.org>
13787
13788         New module 'ceilf-ieee'.
13789         * modules/ceilf-ieee: New file.
13790         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
13791         test whether ceilf works according to ISO C 99 with IEC 60559.
13792         * m4/ceilf-ieee.m4: New file.
13793         * modules/ceilf-ieee-tests: New file.
13794         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
13795         * tests/test-ceilf1.c (main): Remove signbit tests.
13796         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
13797         * doc/posix-functions/ceilf.texi: Mention the new module.
13798
13799 2010-12-21  Bruno Haible  <bruno@clisp.org>
13800
13801         New module 'floorf-ieee'.
13802         * modules/floorf-ieee: New file.
13803         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
13804         test whether floorf works according to ISO C 99 with IEC 60559.
13805         * m4/floorf-ieee.m4: New file.
13806         * modules/floorf-ieee-tests: New file.
13807         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
13808         * tests/test-floorf1.c (main): Remove signbit tests.
13809         * modules/floorf-tests (Depends-on): Remove 'signbit'.
13810         * doc/posix-functions/floorf.texi: Mention the new module.
13811
13812 2010-12-21  Bruno Haible  <bruno@clisp.org>
13813
13814         Support for minus zero in autoconf macros.
13815         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
13816         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
13817         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
13818         * tests/minus-zero.h: Update comments.
13819
13820 2010-12-21  Bruno Haible  <bruno@clisp.org>
13821
13822         Tests for module 'ceil'.
13823         * modules/ceil-tests: New file.
13824         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
13825         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
13826
13827 2010-12-21  Bruno Haible  <bruno@clisp.org>
13828
13829         Tests for module 'floor'.
13830         * modules/floor-tests: New file.
13831         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
13832         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
13833
13834 2010-12-21  Bruno Haible  <bruno@clisp.org>
13835
13836         math: Fix indentation.
13837         * lib/math.in.h (floorf): Fix indentation.
13838
13839 2010-12-21  Bruno Haible  <bruno@clisp.org>
13840
13841         Fix cross-compilation guesses on Solaris.
13842         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
13843         not match "solaris2.10".
13844         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
13845         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
13846         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
13847
13848 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
13849
13850         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
13851         This fixes a problem observed with the latest coreutils snapshot
13852         that caused a test to fail on Solaris 8.  src/csplit.c's call
13853         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
13854         earlier, instead of returning the number of bytes that would have
13855         been generated; this causes csplit to incorrectly report memory
13856         exhaustion.
13857         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
13858         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
13859         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
13860         comments to match.
13861         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
13862         Fix typo in matching older versions of Solaris: "solaris2.10"
13863         is matched by the shell pattern "solaris2.[0-9]*".  This matters
13864         only for guessing while cross-compiling.
13865         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
13866
13867 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
13868
13869         ftoastr: fix comment again
13870         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
13871         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
13872         Also, simplify example a bit by using flags = 0.
13873
13874 2010-12-20  Bruno Haible  <bruno@clisp.org>
13875
13876         round*, trunc*: Update documentation regarding glibc.
13877         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
13878         * doc/posix-functions/round.texi: Likewise.
13879         * doc/posix-functions/roundl.texi: Likewise.
13880         * doc/posix-functions/truncf.texi: Likewise.
13881         * doc/posix-functions/trunc.texi: Likewise.
13882         * doc/posix-functions/truncl.texi: Likewise.
13883
13884 2010-12-20  Bruno Haible  <bruno@clisp.org>
13885
13886         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
13887         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
13888         * doc/posix-functions/round.texi: Likewise.
13889         * doc/posix-functions/roundl.texi: Likewise.
13890
13891 2010-12-20  Bruno Haible  <bruno@clisp.org>
13892
13893         ttyname_r: Add missing declaration on HP-UX 11.
13894         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
13895         HAVE_TTYNAME_R.
13896         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
13897         declared. Set HAVE_TTYNAME_R always.
13898         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
13899         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
13900         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
13901         HAVE_TTYNAME_R.
13902         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
13903
13904 2010-12-20  Bruno Haible  <bruno@clisp.org>
13905
13906         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
13907         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
13908         * doc/posix-functions/getlogin_r.texi: Likewise.
13909         * tests/test-getlogin.c: Include <errno.h>.
13910         (main): Avoid test failure on HP-UX 11.11.
13911         * tests/test-getlogin_r.c (main): Likewise.
13912
13913 2010-12-20  Bruno Haible  <bruno@clisp.org>
13914
13915         getlogin_r: Add missing declaration on HP-UX 11.
13916         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
13917         declared also when it exists as a function.
13918         * doc/posix-functions/getlogin_r.texi: Document this workaround.
13919
13920 2010-12-20  Bruno Haible  <bruno@clisp.org>
13921
13922         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
13923         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
13924         through wcrtomb.
13925
13926 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
13927
13928         ftoastr: fix comment
13929         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
13930         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
13931
13932 2010-12-19  Bruno Haible  <bruno@clisp.org>
13933
13934         isnan: Ensure it is a macro.
13935         * lib/math.in.h (isnan): Define as a macro if not already a macro.
13936         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
13937         Solaris.
13938
13939 2010-12-19  Bruno Haible  <bruno@clisp.org>
13940
13941         ldexpl test: Fix link error on OSF/1 5.1.
13942         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
13943
13944 2010-12-19  Bruno Haible  <bruno@clisp.org>
13945
13946         wctype: Make it work in C++ mode on OSF/1 5.1.
13947         * lib/wctype.in.h (iswblank): Declare but not define here.
13948         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
13949         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
13950         * modules/wctype (Files): Add lib/iswblank.c.
13951
13952 2010-12-19  Bruno Haible  <bruno@clisp.org>
13953
13954         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
13955         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
13956         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
13957
13958 2010-12-19  Bruno Haible  <bruno@clisp.org>
13959
13960         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
13961         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
13962         _POSIX_PII_SOCKET.
13963         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
13964         * doc/posix-functions/recvfrom.texi: Likewise.
13965         * doc/posix-functions/send.texi: Likewise.
13966         * doc/posix-functions/sendto.texi: Likewise.
13967
13968 2010-12-19  Bruno Haible  <bruno@clisp.org>
13969
13970         tcgetsid: Add missing declaration on OSF/1 5.1.
13971         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
13972         HAVE_TCGETSID.
13973         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
13974         Don't set HAVE_TCGETSID.
13975         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
13976         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
13977         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
13978         HAVE_TCGETSID.
13979         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
13980
13981 2010-12-19  Bruno Haible  <bruno@clisp.org>
13982
13983         stdio: Fix problem with popen() declaration on OSF/1 5.1.
13984         * lib/stdio.in.h: During the include_next statement, let recursive
13985         includes of this file include only the system header file.
13986
13987 2010-12-19  Bruno Haible  <bruno@clisp.org>
13988
13989         iconv_open: Fix regression from 2010-12-04.
13990         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
13991         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
13992
13993 2010-12-19  Bruno Haible  <bruno@clisp.org>
13994
13995         stdbool test: Avoid a gcc warning.
13996         * tests/test-stdbool.c (main): Fail if e1 is false.
13997         Reported by Jim Meyering.
13998
13999 2010-12-19  Jim Meyering  <meyering@redhat.com>
14000
14001         setenv: restore to working order
14002         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
14003         mistakenly removed.
14004         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
14005         HAVE_SETENV.
14006         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
14007         HAVE_SETENV.
14008
14009 2010-12-19  Bruno Haible  <bruno@clisp.org>
14010
14011         Document some different function declarations on OSF/1 5.1.
14012         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
14013         * doc/posix-functions/inet_ntop.texi: Likewise.
14014         * doc/posix-functions/gethostname.texi: Likewise.
14015         * lib/unistd.in.h (gethostname): Update comment.
14016
14017 2010-12-19  Bruno Haible  <bruno@clisp.org>
14018
14019         doc: Mention vasprintf-posix module.
14020         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
14021         the 'vasprintf-posix' module.
14022         * doc/glibc-functions/vasprintf.texi: Likewise.
14023
14024 2010-12-19  Bruno Haible  <bruno@clisp.org>
14025
14026         unsetenv: Add missing declaration on OSF/1 5.1.
14027         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
14028         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
14029         Don't set HAVE_UNSETENV. In the test program, set _BSD.
14030         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
14031         not HAVE_UNSETENV.
14032         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
14033         HAVE_UNSETENV.
14034         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
14035
14036 2010-12-19  Bruno Haible  <bruno@clisp.org>
14037
14038         setenv: Add missing declaration on OSF/1 5.1.
14039         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
14040         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
14041         declared. Don't set HAVE_SETENV.
14042         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
14043         not HAVE_SETENV.
14044         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
14045         HAVE_SETENV.
14046         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
14047
14048 2010-12-19  Bruno Haible  <bruno@clisp.org>
14049
14050         nl_langinfo tests: Avoid gcc warning.
14051         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
14052
14053 2010-12-19  Bruno Haible  <bruno@clisp.org>
14054
14055         mknod: Avoid error in C++ mode on OSF/1 with GCC.
14056         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
14057         _GL_CXXALIAS_SYS.
14058
14059 2010-12-19  Bruno Haible  <bruno@clisp.org>
14060
14061         stdbool: Relax test.
14062         * tests/test-stdbool.c (e): Don't require that casts from a variable's
14063         address to 'bool' work in static initializer, for compilers other than
14064         GCC.
14065
14066 2010-12-19  Bruno Haible  <bruno@clisp.org>
14067
14068         ftello: Add missing declaration on OSF/1 5.1.
14069         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
14070         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
14071         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
14072         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
14073         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
14074
14075 2010-12-19  Bruno Haible  <bruno@clisp.org>
14076
14077         fseeko: Add missing declaration on OSF/1 5.1.
14078         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
14079         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
14080         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
14081         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
14082         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
14083
14084 2010-12-19  Bruno Haible  <bruno@clisp.org>
14085
14086         fchdir: Add missing declaration on OSF/1 5.1.
14087         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
14088         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
14089         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
14090         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
14091         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
14092
14093 2010-12-19  Bruno Haible  <bruno@clisp.org>
14094
14095         relocatable-prog-wrapper: Separate from relocatable-prog.
14096         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
14097         uninstall-relocwrapper rule here.
14098         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
14099         Reported by Ian Beckwith <ianb@erislabs.net>.
14100
14101 2010-12-19  Bruno Haible  <bruno@clisp.org>
14102
14103         unistr/u8-mbsnlen: Add missing dependency.
14104         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
14105         Reported by Ian Beckwith <ianb@erislabs.net>.
14106
14107 2010-12-19  Bruno Haible  <bruno@clisp.org>
14108
14109         iconv: Make it possible again to use this module without 'iconv-h'.
14110         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
14111         if it is not defined.
14112         Reported by Ian Beckwith <ianb@erislabs.net>.
14113
14114 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
14115
14116         acl: port to Solaris 8 when copying from tmpfs to ufs
14117         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
14118         error number.  Problem observed on Solaris 8 with latest
14119         coreutils, with "mv A B", where A is on a tmpfs file system and B
14120         is on a ufs file system.  This caused coreutils' mv/part-symlink
14121         test to fail.
14122
14123         tests: set fail=0 at start
14124         * tests/init.sh (setup_): Move fail=0 initialization here ...
14125         (mktempd_): ... from here, so that tests can rely on fail being
14126         set to 0 initially.  This fixes a problem in coreutils; see:
14127         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
14128
14129 2010-12-18  Bruno Haible  <bruno@clisp.org>
14130
14131         memmem-simple: Stylistic changes.
14132         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
14133         Fix preprocessor directive indentation.
14134
14135 2010-12-15  Pádraig Brady <P@draigBrady.com>
14136
14137         memmem, memmem-simple: reorganize and expand empty needle check
14138         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
14139         functional checks to memmem-simple so that one has a fully functional
14140         memmem by using just this module.
14141         Restrict the performance only check to the memmem module.
14142         Also expand the empty needle check to ensure the correct
14143         pointer is returned, not just a non NULL pointer.
14144         * doc/glibc-functions/memmem.texi: Rearrange the portability
14145         documentation to correlate with the rearranged checks.
14146         Clarify exactly how the memmem and memmem-simple modules
14147         relate to each other.
14148
14149 2010-12-15  Pádraig Brady <P@draigBrady.com>
14150             Bruno Haible  <bruno@clisp.org>
14151
14152         Improve cross-compilation guesses for uClibc.
14153         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
14154         that uClibc does not have the glibc bug.
14155         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
14156         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
14157
14158 2010-12-14  Eric Blake  <eblake@redhat.com>
14159
14160         configmake: provide fallbacks for oldest supported autotools
14161         * m4/configmake.m4: New file.
14162         * modules/configmake (Files): Ship it.
14163         (configure.ac): Use it to guarantee fallbacks.
14164
14165 2010-12-13  Pádraig Brady <P@draigBrady.com>
14166
14167         read-file: Improve handling of large files
14168         * lib/read-file.c (fread_file): Minimize realloc()s
14169         for regular files, and better manage sizes around SIZE_MAX.
14170
14171 2010-12-13  Eric Blake  <eblake@redhat.com>
14172
14173         cloexec, fcntl: relax license
14174         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
14175         consent from all contributors.
14176         * modules/fcntl (License): Likewise.
14177
14178 2010-12-10  Bruno Haible  <bruno@clisp.org>
14179
14180         Tests for module 'pipe-posix'.
14181         * modules/pipe-posix-tests: New file.
14182         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
14183
14184 2010-12-10  Bruno Haible  <bruno@clisp.org>
14185
14186         pipe-posix: Make it work in C++ mode.
14187         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
14188         (pipe): Use common idiom, not a macro definition.
14189         * lib/pipe.c: New file.
14190         * m4/pipe.m4: New file.
14191         * modules/pipe-posix (Description): Enhance.
14192         (Files): Add lib/pipe.c, m4/pipe.m4.
14193         (configure.ac): Invoke gl_FUNC_PIPE.
14194         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
14195         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
14196         * tests/test-unistd-c++.cc: Check the signature of pipe.
14197
14198 2010-12-10  Bruno Haible  <bruno@clisp.org>
14199
14200         Rename module 'pipe' to 'spawn-pipe'.
14201         * modules/spawn-pipe: New file, renamed from modules/pipe.
14202         (Files, configure.ac, Makefile.am): Update.
14203         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
14204         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
14205         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
14206         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
14207         "spawn-pipe.h" instead of "pipe.h".
14208         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
14209         to gl_SPAWN_PIPE.
14210         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
14211         (Files, Makefile.am): Update.
14212         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
14213         Update.
14214         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
14215         Include "spawn-pipe.h" instead of "pipe.h".
14216         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
14217         * lib/javacomp.c: Likewise.
14218         * lib/javaversion.c: Likewise.
14219         * lib/pipe-filter-gi.c: Likewise.
14220         * lib/pipe-filter-ii.c: Likewise.
14221         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
14222         * modules/javacomp (Depends-on): Likewise.
14223         * modules/javaversion (Depends-on): Likewise.
14224         * modules/pipe-filter-gi (Depends-on): Likewise.
14225         * modules/pipe-filter-ii (Depends-on): Likewise.
14226         * MODULES.html.sh (Executing programs): Update.
14227         * NEWS: Mention the change.
14228
14229 2010-12-10  Eric Blake  <eblake@redhat.com>
14230
14231         pipe-posix: new module
14232         * modules/pipe-posix: New file.
14233         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
14234         (gl_UNISTD_H): Check for declaration.
14235         * modules/unistd (Makefile.am): Substitute it.
14236         * lib/unistd.in.h (pipe): Provide it for mingw.
14237         * doc/posix-functions/pipe.texi (pipe): Update documentation.
14238         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
14239
14240 2010-12-07  Bruno Haible  <bruno@clisp.org>
14241
14242         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
14243         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
14244         u8_strcmp_gnu.
14245         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
14246
14247 2010-12-06  Bruno Haible  <bruno@clisp.org>
14248
14249         Update internal documentation.
14250         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
14251
14252 2010-12-04  Bruno Haible  <bruno@clisp.org>
14253
14254         Put more information about failed tests into the test return codes.
14255         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
14256         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
14257         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
14258         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
14259         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
14260         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
14261         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
14262         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
14263         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
14264         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
14265         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
14266         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
14267         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
14268         * m4/stdint.m4 (gl_STDINT_H): Likewise.
14269         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
14270         returns a bit mask.
14271         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
14272         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
14273         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
14274         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
14275         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
14276         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
14277         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
14278         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
14279         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
14280         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
14281         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
14282         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
14283         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
14284         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
14285         * m4/link.m4 (gl_FUNC_LINK): Likewise.
14286         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
14287         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
14288         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
14289         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
14290         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
14291         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
14292         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
14293         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
14294         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
14295         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
14296         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
14297         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
14298         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
14299         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
14300         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
14301         gl_PRINTF_PRECISION): Likewise.
14302         * m4/regex.m4 (gl_REGEX): Likewise.
14303         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
14304         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
14305         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
14306         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
14307         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
14308         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
14309         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
14310         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
14311         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
14312         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
14313         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
14314         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
14315         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
14316         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
14317         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
14318         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
14319         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
14320         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
14321         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
14322         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
14323         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
14324         enumerated value.
14325         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
14326
14327 2010-12-04  Bruno Haible  <bruno@clisp.org>
14328
14329         Update for Solaris 11 2010-11.
14330         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
14331         Express, released in November 2010.
14332
14333 2010-12-04  Bruno Haible  <bruno@clisp.org>
14334
14335         nproc: Relax license.
14336         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
14337         and Paul Eggert.
14338         Requested by Ludovic Courtès <ludo@gnu.org>.
14339
14340 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
14341
14342         utimecmp: fine-grained src to nearby coarse-grained dest
14343
14344         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
14345         and the source is on a file system with higher-resolution time
14346         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
14347         not work, and the time stamps are close together, the algorithm to
14348         determine the exact resolution from the read-back mtime was buggy:
14349         it had a "!=" where it should have had an "==".  This bug has been
14350         in the code ever since it was introduced to gnulib.
14351         Problem reported by Dan Jacobson in
14352         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
14353
14354 2010-11-30  Bruno Haible  <bruno@clisp.org>
14355
14356         strerror_r-posix: Fix autoconf test.
14357         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
14358
14359 2010-11-28  Bruno Haible  <bruno@clisp.org>
14360             Paul Eggert  <eggert@cs.ucla.edu>
14361
14362         Tests for module 'getdomainname'.
14363         * modules/getdomainname-tests: New file.
14364         * tests/test-getdomainname.c: New file, based on
14365         tests/test-gethostname.c.
14366
14367 2010-11-28  Bruno Haible  <bruno@clisp.org>
14368             Paul Eggert  <eggert@cs.ucla.edu>
14369
14370         getdomainname: Use the system function when possible.
14371         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
14372         (getdomainname): Replace if needed. Provide the declaration if it is
14373         missing. Don't use _GL_CXXALIAS_SYS_CAST.
14374         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
14375         (getdomainname): When the system has getdomainname, call the system
14376         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
14377         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
14378         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
14379         found in libnsl. Look for the declaration also in <netdb.h>. Replace
14380         the function if its second argument is of type 'int' or if it is found
14381         in libnsl.
14382         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
14383         <sys/systeminfo.h> and sysinfo().
14384         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
14385         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14386         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
14387         HAVE_GETDOMAINNAME.
14388         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
14389         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
14390         * doc/glibc-functions/getdomainname.texi: Document the problems with
14391         the getdomainname declaration.
14392
14393 2010-11-28  Bruno Haible  <bruno@clisp.org>
14394
14395         sys_socket: Ensure ss_family field on AIX.
14396         * lib/sys_socket.in.h (ss_family): New macro definition.
14397         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
14398         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
14399         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
14400         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
14401         * modules/sys_socket (Makefile.am): Substitute
14402         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
14403         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
14404
14405 2010-11-27  Bruno Haible  <bruno@clisp.org>
14406
14407         readline: Improve configure output.
14408         * m4/readline.m4 (gl_FUNC_READLINE): Make the
14409         "checking for readline..." result understandable.
14410
14411 2010-11-27  Bruno Haible  <bruno@clisp.org>
14412
14413         *printf-posix: Detect a bug on Solaris 10/x86.
14414         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
14415         for floating-point output.
14416         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
14417         directive.
14418         * tests/test-snprintf-posix.h (test_function): Likewise.
14419         * tests/test-sprintf-posix.h (test_function): Likewise.
14420         * tests/test-vasprintf-posix.c (test_function): Likewise.
14421         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
14422         * doc/posix-functions/printf.texi: Likewise.
14423         * doc/posix-functions/snprintf.texi: Likewise.
14424         * doc/posix-functions/sprintf.texi: Likewise.
14425         * doc/posix-functions/vfprintf.texi: Likewise.
14426         * doc/posix-functions/vprintf.texi: Likewise.
14427         * doc/posix-functions/vsnprintf.texi: Likewise.
14428         * doc/posix-functions/vsprintf.texi: Likewise.
14429         * doc/glibc-functions/obstack_printf.texi: Likewise.
14430         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
14431
14432 2010-11-27  Bruno Haible  <bruno@clisp.org>
14433
14434         Fix link error when module libunistring-optional is in use.
14435         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
14436         * modules/striconveha-tests (Makefile.am): Likewise.
14437
14438 2010-11-27  Bruno Haible  <bruno@clisp.org>
14439
14440         regex: Mention link dependencies.
14441         * modules/regex (Link): New section.
14442         * modules/rpmatch (Link): Likewise.
14443         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
14444
14445 2010-11-27  Bruno Haible  <bruno@clisp.org>
14446
14447         ftoastr: Fix compilation error on Solaris.
14448         * lib/ftoastr.c: Include <config.h>.
14449
14450 2010-11-27  Bruno Haible  <bruno@clisp.org>
14451
14452         getloadavg: Update documentation.
14453         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
14454
14455 2010-11-27  Bruno Haible  <bruno@clisp.org>
14456
14457         sys_socket: Fix test whether the functions are declared.
14458         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
14459         not <sys/select.h>.
14460
14461 2010-11-27  Bruno Haible  <bruno@clisp.org>
14462
14463         getpass: Make sure to get system declaration on some platforms.
14464         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
14465         gl_USE_SYSTEM_EXTENSIONS.
14466         * modules/getpass (Depends-on): Add extensions.
14467
14468 2010-11-26  Bruno Haible  <bruno@clisp.org>
14469
14470         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
14471         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
14472         'iconv' module is present.
14473         (ICONV_CONST): New macro.
14474         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
14475         ICONV_CONST.
14476         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
14477         set ICONV_CONST.
14478         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
14479         here.
14480         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
14481         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
14482         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
14483         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
14484         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
14485         present.
14486
14487 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
14488
14489         ftoastr: comment fix
14490         * lib/ftoastr.c: "little" -> "little or no" in comment
14491
14492 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
14493
14494         stdint: port to GCC 4.3 + OSX + Octave
14495         On this platform, stdint.h is buggy and defines int64_t to long
14496         long int.  The replacement defined it to long int, causing
14497         problems with C++ style name mangling.  Instead, trust the system
14498         definition if INT64_MAX is defined, and likewise for the unsigned
14499         variant.   Problem reported by Jarno Rajahalme in
14500         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
14501         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
14502         and don't mess with int64_t and INT64_MAX in this case.
14503         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
14504
14505 2010-11-24  Bruno Haible  <bruno@clisp.org>
14506
14507         doc: Corrections regarding MacOS X 10.4 and 10.5.
14508         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
14509         MacOS X.
14510         Reported by Simon Josefsson.
14511
14512 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
14513
14514         Uninstall ".bin" files installed by relocwrapper.
14515         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
14516         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
14517         unless it is already there.
14518
14519 2010-11-21  Bruno Haible  <bruno@clisp.org>
14520
14521         Update for NetBSD 5.0.
14522         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
14523         NetBSD; the test fails on NetBSD 5.0.
14524         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
14525         about NetBSD.
14526
14527 2010-11-21  Bruno Haible  <bruno@clisp.org>
14528
14529         Update for HP-UX 11.23 and HP-UX 11.31.
14530         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
14531         HP-UX.
14532
14533 2010-11-21  Bruno Haible  <bruno@clisp.org>
14534
14535         Update for MacOS X 10.5.
14536         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
14537         MacOS X; the test fails on MacOS X 10.5.8.
14538         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
14539         about MacOS X.
14540
14541 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
14542
14543         bootstrap: add bootstrap_sync option.
14544         See discussion at
14545         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
14546         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
14547         * build-aux/bootstrap: Accept --bootstrap-sync to update
14548         bootstrap if it is not identical to the local gnulib's
14549         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
14550         enable this by default.  Accept --no-bootstrap-sync to disable
14551         it.
14552
14553 2010-11-20  Bruno Haible  <bruno@clisp.org>
14554
14555         Ensure that <features.h> is included before __GLIBC__ is tested.
14556         * lib/printf-parse.h: Include <features.h>.
14557         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
14558         Reported by Mike Frysinger <vapier@gentoo.org>.
14559
14560         Ensure that <features.h> is included before __GLIBC__ is tested.
14561         * lib/wchar.in.h: Include <features.h>.
14562         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
14563         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
14564         Reported by Mike Frysinger <vapier@gentoo.org>.
14565
14566         Ensure that <features.h> is included before __GLIBC__ is tested.
14567         * lib/arpa_inet.in.h: Include <features.h>.
14568         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
14569         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
14570         Reported by Mike Frysinger <vapier@gentoo.org>.
14571
14572         Ensure that <features.h> is included before __GLIBC__ is tested.
14573         * build-aux/link-warning.h: Include <features.h>.
14574         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
14575         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
14576         Reported by Mike Frysinger <vapier@gentoo.org>.
14577
14578         Ensure that <features.h> is included before __GLIBC__ is tested.
14579         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
14580         Reported by Mike Frysinger <vapier@gentoo.org>.
14581
14582 2010-11-20  Bruno Haible  <bruno@clisp.org>
14583
14584         memmem: Fix autoconf test.
14585         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
14586
14587 2010-11-20  Bruno Haible  <bruno@clisp.org>
14588
14589         Port to uClibc.
14590         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
14591         * lib/fcntl.in.h: Likewise.
14592         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
14593         * lib/mbrtowc.c (mbrtowc): Likewise.
14594         * lib/relocatable.c (find_shared_library_fullname): Likewise.
14595         * lib/strerror_r.c: Likewise.
14596         * lib/unistr/u8-strnlen.c: Likewise.
14597         * lib/vasnprintf.c (decimal_point_char): Likewise.
14598         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
14599         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
14600         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
14601         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
14602         * tests/test-sigaction.c (handler, main): Likewise.
14603         * lib/freading.h: Treat uClibc like a non-glibc platform.
14604         * lib/freading.c: Likewise.
14605         * lib/gettext.h: Likewise.
14606         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
14607         Likewise.
14608         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
14609         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
14610         * lib/propername.c (proper_name_utf8): Likewise.
14611         * lib/spawn.in.h: Likewise.
14612         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
14613         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
14614         mem_cd_iconveh_internal): Likewise.
14615         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
14616         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
14617         strstr, strcasestr): Likewise.
14618         * lib/unicodeio.c (unicode_to_mb): Likewise.
14619         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
14620         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
14621         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
14622         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
14623         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
14624         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
14625         * lib/unistr/u8-stpncpy.c: Likewise.
14626         * lib/vasnprintf.c (VASNPRINTF): Likewise.
14627         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
14628         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
14629         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
14630         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
14631         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
14632         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
14633         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
14634         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
14635         Likewise.
14636         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
14637         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
14638         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
14639         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
14640         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
14641         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
14642         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
14643         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
14644         * tests/test-getopt.h (OPTIND_MIN): Likewise.
14645         * tests/test-striconveha.c (main): Likewise.
14646         * tests/test-vasnprintf-posix.c (test_function): Likewise.
14647         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
14648         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
14649         * doc/posix-functions/getline.texi: Likewise.
14650         Reported by Mike Frysinger <vapier@gentoo.org>.
14651
14652 2010-11-20  Bruno Haible  <bruno@clisp.org>
14653
14654         nproc: Fix condition.
14655         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
14656         HAVE_PTHREAD_AFFINITY_NP.
14657
14658 2010-11-20  Bruno Haible  <bruno@clisp.org>
14659
14660         Fix a comment.
14661         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
14662
14663 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
14664
14665         ftoastr: don't assume snprintf
14666         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
14667         Implement a subset of snprintf here, by using sprintf safely.
14668         * modules/ftoastr (Depends-on): Remove snprintf.
14669
14670 2010-11-19  Jim Meyering  <meyering@redhat.com>
14671
14672         test-rename.h: fix compilation failure
14673         * tests/test-rename.h (test_rename): Add omitted "}".
14674
14675 2010-11-17  Jim Meyering  <meyering@redhat.com>
14676
14677         maint.mk: add a URL discussing the no-@acronym policy
14678         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
14679
14680 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
14681
14682         ftoastr: depend on snprintf, improve comments
14683         * lib/ftoastr.c: Also mention Loitsch's draft.
14684         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
14685         needed in the current implementation, but it might simplify
14686         speeding up the code later.
14687         * modules/ftoastr: Depend on snprintf; this improves portability.
14688         Suggested by Bruno Haible in the same email.
14689
14690         ftoastr: port to hosts lacking strtof and strtold
14691         Problem reported by Bruno Haible in
14692         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
14693         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
14694         environment and strtold (and presumably strtof) are not available.
14695         * modules/ftoastr (Files): Add m4/c-strtod.m4.
14696         (configure.ac): Require gl_C99_STRTOLD.
14697
14698 2010-11-18  Bruno Haible  <bruno@clisp.org>
14699
14700         c-strtold: Avoid link error on AIX 7.
14701         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
14702         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
14703         (gl_C_STRTOLD): Test whether strtold_l exists.
14704         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
14705
14706 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
14707
14708         intprops: new macro INT_BITS_STRLEN_BOUND
14709         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
14710         ftoastr.h.  This exposes an internal of intprops.h that was formerly
14711         not exposed.  Also, it uses a slightly tighter bound than before;
14712         though this makes no practical difference, we might as well be as
14713         tight as we easily can.
14714
14715         ftoastr: new module, for lossless conversion of floats to short strings
14716         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
14717         * modules/ftoastr: New files.
14718
14719 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
14720
14721         bootstrap: port to Solaris sed
14722         * build-aux/bootstrap (get_version): Port to Solaris sed.
14723         See Ralf Wildenhues's note in
14724         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
14725
14726 2010-11-14  Jim Meyering  <meyering@redhat.com>
14727
14728         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
14729         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
14730         and move definition closer to sole use.
14731
14732 2010-11-13  Jim Meyering  <meyering@redhat.com>
14733
14734         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
14735         Now we require at least autoconf-2.59, which means the work-around
14736         is no longer needed.
14737         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
14738         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
14739         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
14740         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
14741         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
14742
14743 2010-11-13  Bruno Haible  <bruno@clisp.org>
14744
14745         rename, renameat: Avoid test failures at NFS mounted locations.
14746         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
14747         functions.
14748         (test_rename): Use assert_nonexistent.
14749         * tests/test-rename.c: Include <dirent.h>.
14750         * tests/test-renameat.c: Likewise.
14751         Reported by Gary V. Vaughan <gary@gnu.org>.
14752
14753         rename, renameat: Document Linux bug with NFS
14754         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
14755         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
14756         * doc/posix-functions/renameat.texi: Likewise.
14757         Suggested by Eric Blake.
14758
14759 2010-11-13  Bruno Haible  <bruno@clisp.org>
14760
14761         rename test: Add comments.
14762         * tests/test-rename.h (test_rename): Add structure and comments.
14763
14764 2010-11-13  Eric Blake  <eblake@redhat.com>
14765
14766         maintainer-makefile: cover a few more files
14767         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
14768         scripts generated within C files, for libvirt.
14769
14770 2010-11-13  Bruno Haible  <bruno@clisp.org>
14771
14772         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
14773         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
14774         character, return the number of bytes that belong together, not always
14775         1.
14776         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
14777         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
14778         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
14779         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
14780         number of bytes of an invalid character.
14781         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
14782         (main): Invoke it.
14783         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
14784         results.
14785         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
14786         malformed byte sequences.
14787         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
14788         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
14789         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
14790         Reported by Ben Pfaff and Paolo Bonzini.
14791
14792 2010-11-13  Bruno Haible  <bruno@clisp.org>
14793
14794         openat: Work around glibc bug with fchownat() and empty file names.
14795         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
14796         (gl_FUNC_FCHOWNAT): Invoke it.
14797         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
14798         * doc/posix-functions/fchownat.texi: Document the glibc bug.
14799         Reported by Gary V. Vaughan <gary@gnu.org>.
14800
14801 2010-11-13  Bruno Haible  <bruno@clisp.org>
14802
14803         openat: Ensure autoconf macro ordering.
14804         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
14805         gl_USE_SYSTEM_EXTENSIONS.
14806         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
14807
14808 2010-11-13  Bruno Haible  <bruno@clisp.org>
14809
14810         Update comments.
14811         * lib/unistr/u8-check.c: Update file name in comments.
14812         * lib/unistr/u8-mblen.c: Likewise.
14813         * lib/unistr/u8-prev.c: Likewise.
14814         * lib/unistr/u8-strmblen.c: Likewise.
14815         * lib/unistr/u8-strmbtouc.c: Likewise.
14816
14817 2010-11-13  Jim Meyering  <meyering@redhat.com>
14818
14819         tests: avoid test failure on Solaris 10 due to lack of PATH export
14820         * tests/test-update-copyright.sh: Don't forget to export PATH.
14821
14822         init.sh: ensure that IFS is defined, just in case...
14823         * tests/init.sh (setup_): Ensure that IFS is defined,
14824         so that saving and restoring it works as expected.  This
14825         appears to be useful at least for an old version of dash
14826         from a long time ago (RH 6).  See here for details:
14827         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
14828
14829         maint.mk: tighten "test a == b" check
14830         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
14831         test to files that contain something like #!/bin/sh.
14832         Without this, coreutils would get two false positives in
14833         the comments of C source files.
14834
14835 2010-11-12  Eric Blake  <eblake@redhat.com>
14836
14837         bootstrap: fix typo in previous attempt
14838         * build-aux/bootstrap (buildreq): Correct the grouping.
14839         Reported by Paul Eggert.
14840
14841         maintainer-makefile: prohibit test x == x
14842         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
14843         Based on a report by Matthias Bolte.
14844
14845         bootstrap: allow FreeBSD gzip
14846         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
14847         which has no '.' and goes to stderr.
14848         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
14849         Reported by Matthias Bolte.
14850
14851         maintainer-makefile: check for i18n setup
14852         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
14853         will likely work.
14854
14855 2010-11-12  Bruno Haible  <bruno@clisp.org>
14856
14857         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
14858         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
14859         * lib/nanosleep.c (nanosleep): Likewise.
14860
14861 2010-11-11  Bruno Haible  <bruno@clisp.org>
14862
14863         fcntl-h: Fix for use of C++ on glibc systems.
14864         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
14865         also on glibc systems in C++ mode.
14866         Reported by Gary V. Vaughan <gary@gnu.org>.
14867
14868 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
14869
14870         mknod: avoid false failure with dash
14871         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
14872
14873 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
14874
14875         unlink: Fix "is it should" typo in diagnostic.
14876         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
14877         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
14878
14879 2010-11-11  Bruno Haible  <bruno@clisp.org>
14880
14881         Tests for module 'strerror_r-posix'.
14882         * modules/strerror_r-posix-tests: New file.
14883         * tests/test-strerror_r.c: New file.
14884         * tests/test-string-c++.cc: Check the signature of strerror_r.
14885
14886         New module 'strerror_r-posix'.
14887         * lib/string.in.h (strerror_r): New declaration.
14888         * lib/strerror_r.c: New file.
14889         * m4/strerror_r.m4: New file.
14890         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
14891         of strerror_r.
14892         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
14893         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
14894         * modules/strerror_r-posix: New file.
14895         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
14896         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
14897         * doc/posix-functions/strerror_r.texi: Mention the new module and the
14898         portability problems.
14899
14900 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
14901
14902         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
14903         line is also considered for output. Quoted function name in shell
14904         command, so temporary files for functions like MyClass::operator()
14905         are removed correctly without errors.
14906
14907 2010-11-09  Bruno Haible  <bruno@clisp.org>
14908
14909         * doc/posix-functions/strerror.texi: List more failing platforms.
14910
14911         * doc/posix-functions/strerror.texi: Add a comment.
14912
14913 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
14914
14915         fdopendir: fix bug on MacOS X when low on file descriptors
14916
14917         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
14918         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
14919         All callers changed.
14920         (fdopendir): Invoke save_cwd at the top level, not after using
14921         multiple dup() calls to use up file descriptors.  Then retry
14922         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
14923         less than the maximum number of open file descriptors, because
14924         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
14925         on Mac OS X 10.6.4 for tar 1.24
14926         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
14927         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
14928         and for tar 1.25
14929         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
14930
14931 2010-11-07  Bruno Haible  <bruno@clisp.org>
14932
14933         vasnprintf: Support I flag on glibc systems.
14934         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
14935         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
14936         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
14937         snprintf function.
14938         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
14939         glibc systems.
14940         * tests/test-vasnprintf-posix3.c: New file.
14941         * modules/vasnprintf-posix-tests (Files): Add it.
14942         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
14943
14944 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
14945
14946         [html] Fix copy/paste bug: Use unique name for compiler warnings.
14947         * MODULES.html.sh: For compiler warnings, use name
14948         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
14949
14950 2010-11-05  Eric Blake  <eblake@redhat.com>
14951
14952         ceil, floor: avoid spurious failure with icc
14953         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
14954         [denormals-as-zero] when optimizing without -mieee-fp option.
14955         * tests/test-floorf2.c (floorf_reference): Likewise.
14956         * tests/test-ceilf1.c (dummy): New function.
14957         (main): Use it to outsmart icc's optimization.
14958         * tests/test-floorf1.c (dummy, main): Likewise.
14959
14960         tests: require working signbit
14961         * modules/ceilf-tests (Depends-on): Add signbit.
14962         * modules/ceill-tests (Depends-on): Likewise.
14963         * modules/floorf-tests (Depends-on): Likewise.
14964         * modules/floorl-tests (Depends-on): Likewise.
14965         * modules/round-tests (Depends-on): Likewise.
14966         * modules/roundf-tests (Depends-on): Likewise.
14967         * modules/roundl-tests (Depends-on): Likewise.
14968         * modules/trunc-tests (Depends-on): Likewise.
14969         * modules/truncf-tests (Depends-on): Likewise.
14970         * modules/truncl-tests (Depends-on): Likewise.
14971
14972         strtod: work around icc bug
14973         * lib/strtod.c (minus_zero): Define to working value.
14974         (strtod): Use it to avoid icc bug.
14975
14976         copysign: enhance tests
14977         * modules/copysign-tests (Files): Add minus-zero.h.
14978         * tests/test-copysign.c (main): Also test zeros.
14979
14980 2010-11-04  Eric Blake  <eblake@redhat.com>
14981
14982         ceil, floor, round, trunc: enhance tests of -0
14983         * tests/test-ceilf1.c (main): Ensure correct sign of result.
14984         * tests/test-ceill.c (main): Likewise.
14985         * tests/test-floorf1.c (main): Likewise.
14986         * tests/test-floorl.c (main): Likewise.
14987         * tests/test-round1.c (main): Likewise.
14988         * tests/test-roundf1.c (main): Likewise.
14989         * tests/test-roundl.c (main): Likewise.
14990         * tests/test-trunc1.c (main): Likewise.
14991         * tests/test-truncf1.c (main): Likewise.
14992         * tests/test-truncl.c (main): Likewise.
14993
14994 2010-11-04  Eric Blake  <eblake@redhat.com>
14995
14996         frexp, tests: work around ICC bug with -zero
14997         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
14998         works with more compilers.
14999         * tests/minus-zero.h: New file.
15000         * modules/ceilf-tests (Files): Include it.
15001         * modules/ceill-tests (Files): Likewise.
15002         * modules/floorf-tests (Files): Likewise.
15003         * modules/floorl-tests (Files): Likewise.
15004         * modules/frexp-nolibm-tests (Files): Likewise.
15005         * modules/frexp-tests (Files): Likewise.
15006         * modules/frexpl-nolibm-tests (Files): Likewise.
15007         * modules/frexpl-tests (Files): Likewise.
15008         * modules/isnan-tests (Files): Likewise.
15009         * modules/isnand-nolibm-tests (Files): Likewise.
15010         * modules/isnand-tests (Files): Likewise.
15011         * modules/isnanf-nolibm-tests (Files): Likewise.
15012         * modules/isnanf-tests (Files): Likewise.
15013         * modules/isnanl-nolibm-tests (Files): Likewise.
15014         * modules/isnanl-tests (Files): Likewise.
15015         * modules/round-tests (Files): Likewise.
15016         * modules/roundf-tests (Files): Likewise.
15017         * modules/roundl-tests (Files): Likewise.
15018         * modules/ldexpl-tests (Files): Likewise.
15019         * modules/signbit-tests (Files): Likewise.
15020         * modules/snprintf-posix-tests (Files): Likewise.
15021         * modules/sprintf-posix-tests (Files): Likewise.
15022         * modules/strtod-tests (Files): Likewise.
15023         * modules/trunc-tests (Files): Likewise.
15024         * modules/truncf-tests (Files): Likewise.
15025         * modules/truncl-tests (Files): Likewise.
15026         * modules/vsnprintf-posix-tests (Files): Likewise.
15027         * modules/vsprintf-posix-tests (Files): Likewise.
15028         * modules/vasnprintf-posix-tests (Files): Likewise.
15029         * modules/vasprintf-posix-tests (Files): Likewise.
15030         * tests/test-ceilf1.c (main): Use it.
15031         * tests/test-ceill.c (main): Likewise.
15032         * tests/test-floorf1.c (main): Likewise.
15033         * tests/test-floorl.c (main): Likewise.
15034         * tests/test-frexp.c (main): Likewise.
15035         * tests/test-frexpl.c (main): Likewise.
15036         * tests/test-isnan.c (main): Likewise.
15037         * tests/test-isnand.h (main): Likewise.
15038         * tests/test-isnanf.h (main): Likewise.
15039         * tests/test-isnanl.h (main): Likewise.
15040         * tests/test-ldexpl.c (main): Likewise.
15041         * tests/test-round.c (main): Likewise.
15042         * tests/test-roundf.c (main): Likewise.
15043         * tests/test-roundl.c (main): Likewise.
15044         * tests/test-signbit.c (test_signbitf, test_signbitd)
15045         (test_signbitl): Likewise.
15046         * tests/test-snprintf-posix.h (test_function): Likewise.
15047         * tests/test-sprintf-posix.h (test_function): Likewise.
15048         * tests/test-strtod.c (main): Likewise.
15049         * tests/test-trunc1.c (main): Likewise.
15050         * tests/test-truncf1.c (main): Likewise.
15051         * tests/test-truncl.c (main): Likewise.
15052
15053         isnanl: work around icc bug
15054         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
15055
15056 2010-11-03  Eric Blake  <eblake@redhat.com>
15057
15058         tests: fix compiler warnings
15059         * tests/test-getopt.h (test_getopt): Fix condition.
15060         * tests/test-getopt_long.h (test_getopt_long): Likewise.
15061         * tests/test-pipe2.c (main): Likewise.
15062         * tests/test-quotearg-simple.c (main): Avoid icc warning.
15063
15064         utimens: fix broken m4 test
15065         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
15066
15067 2010-10-28  Bruno Haible  <bruno@clisp.org>
15068
15069         posix_spawn*, getdtablesize: Relax license.
15070         * modules/posix_spawn (License): Change to LGPLv2+.
15071         * modules/posix_spawnp (License): Likewise.
15072         * modules/posix_spawn-internal (License): Likewise.
15073         * modules/posix_spawnattr_init (License): Likewise.
15074         * modules/posix_spawnattr_getflags (License): Likewise.
15075         * modules/posix_spawnattr_setflags (License): Likewise.
15076         * modules/posix_spawnattr_getpgroup (License): Likewise.
15077         * modules/posix_spawnattr_setpgroup (License): Likewise.
15078         * modules/posix_spawnattr_getschedparam (License): Likewise.
15079         * modules/posix_spawnattr_setschedparam (License): Likewise.
15080         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
15081         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
15082         * modules/posix_spawnattr_getsigdefault (License): Likewise.
15083         * modules/posix_spawnattr_setsigdefault (License): Likewise.
15084         * modules/posix_spawnattr_getsigmask (License): Likewise.
15085         * modules/posix_spawnattr_setsigmask (License): Likewise.
15086         * modules/posix_spawnattr_destroy (License): Likewise.
15087         * modules/posix_spawn_file_actions_init (License): Likewise.
15088         * modules/posix_spawn_file_actions_addclose (License): Likewise.
15089         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
15090         * modules/posix_spawn_file_actions_addopen (License): Likewise.
15091         * modules/posix_spawn_file_actions_destroy (License): Likewise.
15092         * modules/getdtablesize (License): Likewise.
15093         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
15094
15095 2010-10-26  Bruno Haible  <bruno@clisp.org>
15096
15097         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
15098         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
15099         Cygwin and mingw.
15100         Suggested by Eric Blake.
15101
15102 2010-10-26  Bruno Haible  <bruno@clisp.org>
15103
15104         stdio: Work around compilation error due to renameat() on Solaris 10.
15105         * lib/stdio.in.h: Include <unistd.h> on Solaris.
15106         * lib/renameat.c: Don't include <unistd.h> here.
15107         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
15108         Reported by Paul Eggert and Eric Blake.
15109
15110 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
15111
15112         renameat: port to Solaris 10, which declares renameat in unistd.h
15113
15114         * lib/renameat.c: Include unistd.h before stdio.h, because
15115         Solaris 10 declares renameat in unistd.h.  Problem encountered
15116         when building GNU tar 1.24 on Solaris 10.
15117
15118 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
15119
15120         fdopendir: fix C89 compilation
15121         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
15122         compilers.
15123
15124 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
15125
15126         inttostr: simplify by removing unnecessary redundancy
15127         * lib/anytostr.c: Don't include verify.h.
15128         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
15129         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
15130         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
15131         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
15132         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
15133         Likewise.
15134         * modules/inttostr (Depends-on): Remove 'verify'.
15135
15136 2010-10-23  Bruno Haible  <bruno@clisp.org>
15137
15138         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
15139         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
15140         Reported by Eric Blake.
15141
15142 2010-10-23  Bruno Haible  <bruno@clisp.org>
15143
15144         Tests: Fix LOCALE_JA on MirBSD 10.
15145         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
15146         to an UTF-8 locale.
15147         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
15148         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
15149         Reported by Eric Blake.
15150
15151 2010-10-21  Bruno Haible  <bruno@clisp.org>
15152
15153         nl_langinfo test: Avoid test failure on NetBSD 5.
15154         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
15155         Reported by Eric Blake.
15156
15157 2010-10-21  Eric Blake  <eblake@redhat.com>
15158
15159         c-stack: work around libsigsegv 2.8 bug
15160         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
15161         overflow on at least PowerPC64.
15162
15163 2010-10-17  Bruno Haible  <bruno@clisp.org>
15164
15165         userspec: Drop redundant file.
15166         * modules/userspec (Files): Remove lib/inttostr.h.
15167
15168 2010-10-17  Bruno Haible  <bruno@clisp.org>
15169
15170         nl_langinfo tests: Silence some warnings.
15171         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
15172         Reported by Jim Meyering.
15173
15174 2010-10-17  Bruno Haible  <bruno@clisp.org>
15175
15176         Make use of GCC's attribute __alloc_size__.
15177         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
15178         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
15179         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
15180         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
15181         __alloc_size__.
15182         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
15183         Suggested by Jim Meyering.
15184
15185 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
15186
15187         bootstrap: anchor .gitignore entries.
15188         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
15189         with...
15190         (insert_vc_ignore): ... this new function, which prepends `/' to
15191         all .gitignore entries before passing them to
15192         insert_sorted_if_absent.
15193
15194 2010-10-16  Bruno Haible  <bruno@clisp.org>
15195
15196         nextafter: Fix configure check.
15197         * modules/nextafter (configure.ac): Correct expected prototype.
15198
15199 2010-10-16  Bruno Haible  <bruno@clisp.org>
15200
15201         termios: Update documentation.
15202         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
15203
15204 2010-10-16  Bruno Haible  <bruno@clisp.org>
15205
15206         tests: Make them compile with TinyCC.
15207         * tests/test-strstr.c (main): Remove parentheses around array
15208         initializer.
15209
15210 2010-10-15  Eric Blake  <eblake@redhat.com>
15211
15212         ignore-value: make header idempotent
15213         * lib/ignore-value.h: Add double-inclusion guards.
15214         Reported by Stefan Berger.
15215
15216 2010-10-15  Jim Meyering  <meyering@redhat.com>
15217
15218         GNUmakefile: handle "stable" target, not "major"
15219         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
15220         lists in maint.mk and announce-gen.  Without this, "make stable"
15221         would fail to ensure that $(VERSION) is up to date.
15222
15223 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
15224
15225         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
15226         & co.
15227
15228 2010-10-14  Bruno Haible  <bruno@clisp.org>
15229
15230         vasnprintf: Don't set errno to 0.
15231         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
15232         block that sets it to 0.
15233         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
15234
15235 2010-10-14  Bruno Haible  <bruno@clisp.org>
15236
15237         socketlib: Fix.
15238         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
15239         gl_PREREQ_SYS_H_WINSOCK2.
15240         Reported by Ian Beckwith <ianb@erislabs.net>.
15241
15242 2010-10-13  Jim Meyering  <meyering@redhat.com>
15243
15244         test-select-stdin.c: avoid warn_unused_result warnings
15245         * tests/test-select-stdin.c: Include "macros.h".
15246         ASSERT that read and fflush succeed.
15247
15248 2010-10-13  Jim Meyering  <meyering@redhat.com>
15249
15250         git-version-gen: do require git-VC'd files in cwd
15251         * build-aux/git-version-gen: Reject a git version string
15252         if there are no commits associated with the current directory.
15253         This avoids an unlikely false-positive (unrelated dir whose parent
15254         repository also contains a tag matching v*), as pointed out
15255         by Giuseppe Scrivano in
15256         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
15257
15258 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
15259
15260         argv-iter: omit nonconforming declaration
15261         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
15262         enum arg_iter_err declaration, which doesn't conform to C99.
15263         Solaris 10 cc warns about this.
15264
15265 2010-10-13  Eric Blake  <eblake@redhat.com>
15266
15267         termios: fix compilation on mingw
15268         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
15269         (gl_TERMIOS_H): Adjust it on mingw.
15270         * modules/termios (Makefile.am): Substitute new key.
15271         * lib/termios.in.h (includes): Make include_next conditional.
15272         * doc/posix-headers/termios.texi (termios.h): Update
15273         documentation.
15274         Reported by Daniel P. Berrange.
15275
15276 2010-10-13  Jim Meyering  <meyering@redhat.com>
15277
15278         git-version-gen: don't require that .git/ be in the current dir
15279         * build-aux/git-version-gen: Adjust this script so that it works
15280         when run from any working directory beneath the top-level .git/-
15281         containing directory.  Inspired by a patch from Giuseppe Scrivano,
15282         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
15283
15284         test-select: avoid warn_unused_result warnings
15285         * tests/test-select.c: Include "macros.h".
15286         ASSERT that each call to read, write, and pipe succeeds.
15287         While not technically required, also check each "close".
15288         * modules/select-tests (Files): Add tests/macros.h.
15289
15290         test-symlinkat: remove declaration of unused local
15291         * tests/test-symlinkat.c (main): Remove unused local, "buf".
15292
15293         test-inttostr: avoid shadowing warnings
15294         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
15295         and use malloc rather than the stack for the same reason as
15296         mentioned in the comment justifying the other allocation.
15297
15298 2010-10-11  Bruno Haible  <bruno@clisp.org>
15299
15300         stdlib: Allow multiple gnulib generated replacements to coexist.
15301         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
15302         Reported by Sam Steingold <sds@gnu.org>.
15303
15304 2010-10-11  Jim Meyering  <meyering@redhat.com>
15305
15306         fix a documentation typo
15307         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
15308
15309 2010-10-11  Eric Blake  <eblake@redhat.com>
15310
15311         futimens: work around Solaris 11 bug
15312         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
15313         * tests/test-futimens.h (test_futimens): Enhance, rather than
15314         weaken test.
15315         * doc/posix-functions/futimens.texi (futimens): Document the bug.
15316
15317 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
15318
15319         Indentation.
15320         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
15321         higher-level operators more to the left.
15322
15323 2010-10-11  Jim Meyering  <meyering@redhat.com>
15324
15325         test-futimens: avoid unwarranted test failure on Solaris 5.11
15326         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
15327         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
15328         because it tries to dereference the NULL name argument.
15329
15330 2010-10-11  Bruno Haible  <bruno@clisp.org>
15331
15332         Indentation.
15333         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
15334         indentation.
15335
15336 2010-10-11  Jim Meyering  <meyering@redhat.com>
15337
15338         spawn.in.h: make indentation consistent with parentheses
15339         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
15340         Make indentation consistent with parentheses.
15341
15342 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
15343
15344         Fix mismatched parens in previous commit
15345         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
15346         parens.
15347
15348 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
15349
15350         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
15351
15352         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
15353         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
15354         * lib/malloca.c: Include "verify.h".
15355         (verify1): Remove, replacing with a verify call.
15356         * lib/relocwrapper.c (verify1): Likewise.
15357         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
15358         Likewise.
15359         * modules/malloca (Depends-on): Add 'verify'.
15360         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
15361         * modules/vasnprintf (Depends-on): Add 'verify'.
15362         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
15363         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
15364         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
15365         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
15366         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
15367         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
15368         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
15369
15370         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
15371
15372         Formerly the style was sometimes 2*X - 1, because the C standard
15373         was wrongly thought to disallow ?: in integral constant expressions.
15374         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
15375         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
15376         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
15377         * lib/stdint.in.h (_verify_intmax_size): Likewise.
15378         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
15379         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
15380         verify that time_t cannot be floating.
15381
15382 2010-10-08  Eric Blake  <eblake@redhat.com>
15383
15384         time: enforce recent POSIX ruling that time_t is integral
15385         * lib/time.in.h (__time_t_must_be_integral): Detect any
15386         problematic systems, allowing the rest of gnulib to assume POSIX.
15387
15388 2010-10-08  Jim Meyering  <meyering@redhat.com>
15389
15390         fdopendir: fix a bug on systems lacking openat and /proc support
15391         OpenBSD 4.7 is one such system.  The most noticeable effect was
15392         failure of any application making nontrivial use of fts: rm, du,
15393         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
15394           ./rm: traversal failed: `a': Bad file descriptor
15395         Debugging that, you see that even though FD 6 was closed just
15396         prior to the opendir call in fd_clone_opendir, its resulting
15397         dir->dd_fd was 8, rather than the expected value of 6:
15398
15399         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
15400         93                close (fd);
15401         (gdb) n
15402         94                dir = fd_clone_opendir (dupfd);
15403         (gdb) n
15404         95                saved_errno = errno;
15405         (gdb) p dir->dd_fd
15406         $11 = 8
15407
15408         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
15409         The problem is that on OpenBSD, fd_clone_opendir has to resort
15410         to using the old-style save/restore CWD mechanism, due to its
15411         lack of openat/proc support, and *that* would steal the FD (6)
15412         that opendir was supposed to use.
15413
15414         The fix is to squirrel away the desired FD so that save_cwd uses a
15415         different one, and then free the dest FD right before calling opendir.
15416         That guarantees opendir will use the required file descriptor.
15417
15418         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
15419
15420 2010-10-08  Bruno Haible  <bruno@clisp.org>
15421
15422         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
15423         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
15424
15425 2010-10-08  Bruno Haible  <bruno@clisp.org>
15426
15427         nanosleep: Make replacement POSIX compliant.
15428         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
15429         is out of range.
15430         Reported by Jim Meyering.
15431
15432 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
15433
15434         bootstrap: add hook for altering gnulib.mk, for Bison
15435         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
15436         the Bison bootstrapping process can rewrite file names and variables
15437         in this file before later parts of 'bootstrap' use the file.
15438         Bison wants to include lib/gnulib.mk from the top-level makefile,
15439         so it needs the file names in this file to be relative to the top
15440         level, not relative to lib; plus it needs variable names to be
15441         rewritten.
15442         (slurp): Use the new function.
15443
15444         bootstrap: reformat for readability
15445         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
15446
15447 2010-10-08  Eric Blake  <eblake@redhat.com>
15448
15449         docs: update cygwin progress
15450         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
15451         1.7.7.
15452         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
15453         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
15454         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
15455         * doc/posix-functions/carg.texi (carg): Likewise.
15456         * doc/posix-functions/cargf.texi (cargf): Likewise.
15457         * doc/posix-functions/casin.texi (casin): Likewise.
15458         * doc/posix-functions/casinf.texi (casinf): Likewise.
15459         * doc/posix-functions/casinh.texi (casinh): Likewise.
15460         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
15461         * doc/posix-functions/catan.texi (catan): Likewise.
15462         * doc/posix-functions/catanf.texi (catanf): Likewise.
15463         * doc/posix-functions/catanh.texi (catanh): Likewise.
15464         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
15465         * doc/posix-functions/ccos.texi (ccos): Likewise.
15466         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
15467         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
15468         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
15469         * doc/posix-functions/cexp.texi (cexp): Likewise.
15470         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
15471         * doc/posix-functions/cimag.texi (cimag): Likewise.
15472         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
15473         * doc/posix-functions/clog.texi (clog): Likewise.
15474         * doc/posix-functions/clogf.texi (clogf): Likewise.
15475         * doc/posix-functions/conj.texi (conj): Likewise.
15476         * doc/posix-functions/conjf.texi (conjf): Likewise.
15477         * doc/posix-functions/cpow.texi (cpow): Likewise.
15478         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
15479         * doc/posix-functions/cproj.texi (cproj): Likewise.
15480         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
15481         * doc/posix-functions/creal.texi (creal): Likewise.
15482         * doc/posix-functions/crealf.texi (crealf): Likewise.
15483         * doc/posix-functions/csin.texi (csin): Likewise.
15484         * doc/posix-functions/csinf.texi (csinf): Likewise.
15485         * doc/posix-functions/csinh.texi (csinh): Likewise.
15486         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
15487         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
15488         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
15489         * doc/posix-functions/ctan.texi (ctan): Likewise.
15490         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
15491         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
15492         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
15493         * doc/posix-headers/complex.texi (complex.h): Likewise.
15494
15495 2010-10-07  Jim Meyering  <meyering@redhat.com>
15496
15497         parse-datetime: avoid compilation failure on OpenBSD 4.7
15498         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
15499         This works around a compilation failure on OpenBSD 4.7:
15500         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
15501
15502 2010-10-07  Eric Blake  <eblake@redhat.com>
15503
15504         docs: update cygwin progress
15505         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
15506         1.7.6.
15507         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
15508         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
15509         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
15510         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
15511         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
15512         Likewise.
15513         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
15514         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
15515         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
15516         Likewise.
15517         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
15518         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
15519         Likewise.
15520         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
15521         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
15522         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
15523         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
15524         Likewise.
15525         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
15526         Likewise.
15527         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
15528
15529         docs: update parse-datetime history
15530         * doc/parse-datetime.texi (Authors of parse_datetime): Better
15531         documentation of this function's history and alternatives.
15532
15533         cygwin: use more robust version check
15534         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
15535         exclude an eventual cygwin 1.9.1.
15536         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
15537         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
15538         (gl_FUNC_STRCASESTR): Likewise.
15539         Reported by Bruno Haible.
15540
15541 2010-10-06  Bruno Haible  <bruno@clisp.org>
15542
15543         string, sys_select: Avoid #including large headers unless necessary.
15544         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
15545         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
15546         OSF/1, BeOS, Haiku.
15547         Reported by Jim Meyering.
15548
15549 2010-10-05  Eric Blake  <eblake@redhat.com>
15550
15551         memmem, strstr, strcasestr: fix bug with long periodic needle
15552         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
15553         periodic needle having false positive.
15554         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
15555         and cygwin 1.7.7.
15556         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
15557         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
15558         (gl_FUNC_STRCASESTR): Likewise.
15559         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
15560         * tests/test-memmem.c (main): Expose the bug.
15561         * tests/test-strcasestr.c (main): Likewise.
15562         * tests/test-strstr.c (main): Likewise.
15563         * tests/test-c-strcasestr.c (main): Likewise.
15564         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
15565         * doc/posix-functions/strstr.texi (strstr): Likewise.
15566         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
15567         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
15568
15569 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
15570
15571         parse-datetime: do some more renaming
15572         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
15573         parse_datetime, not get_date.  Mention the renaming.
15574         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
15575         in comments.
15576         * m4/bison.m4: Likewise.
15577
15578 2010-10-05  Eric Blake  <eblake@redhat.com>
15579
15580         parse-datetime: better name than get_date
15581         * NEWS: Reword the deprecation notice.
15582         * modules/get_date: Rename to modules/parse-datetime.
15583         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
15584         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
15585         * lib/get_date.y: Rename to lib/parse-datetime.y.
15586         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
15587         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
15588         * doc/getdate.texi: Provide fallback wrapper.
15589         * lib/getdate.h: Move guts, and wrap...
15590         * lib/parse-datetime.h: ...new file.
15591         * lib/parse-datetime.y (get_date): Rename...
15592         (parse_datetime): ...to this.
15593         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
15594         (gl_PARSE_DATETIME): ...to this.
15595         * doc/posix-functions/getdate.texi (get_date): Provide fallback
15596         documentation.
15597         * modules/getdate (Files): Provide fallback docs and header.
15598         (Notice, Depends-on): Update references.
15599         * tests/test-parse-datetime.c: Likewise.
15600         * DEPENDENCIES: Likewise.
15601         * MODULES.html.sh (Date and time <time.h>): Likewise.
15602         * doc/parse-datetime.texi (Date input formats)
15603         (Authors of parse_datetime): Likewise.
15604         * modules/parse-datetime (Files, configure.ac, Makefile.am)
15605         (Include): Likewise.
15606         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
15607         * gnulib-tool: Likewise.
15608         * m4/bison.m4 (gl_BISON): Likewise.
15609         Suggested by Bruno Haible.
15610
15611 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
15612
15613         more ports to Solaris tr, which needs [] around ranges
15614         * gnulib-tool: Solaris tr needs [] around ranges.
15615         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
15616         * tests/test-pipe-filter-gi1.c (main): Likewise.
15617         * tests/test-pipe-filter-ii1.c (main): Likewise.
15618
15619 2010-10-05  Eric Blake  <eblake@redhat.com>
15620
15621         bootstrap: fix Solaris regression
15622         * build-aux/bootstrap (check_versions): Solaris tr still needs []
15623         around ranges.
15624         Reported by Pádraig Brady.
15625
15626         bootstrap: work with pkg-config
15627         * build-aux/bootstrap (check_versions): Also transliterate - in
15628         prerequisite name.
15629         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
15630         prerequisites that were already found, to avoid confusion.
15631         Reported by Justin Clift.
15632
15633         faccessat: remove unused wrappers
15634         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
15635         presence of these wrappers dragged in -lgen on Solaris.
15636         Reported by Clemens Brogi; fix suggested by Paul Eggert.
15637
15638 2010-10-05  Jim Meyering  <meyering@redhat.com>
15639
15640         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
15641         * Makefile (sc_pragma_columns): New syntax-check rule.
15642
15643 2010-10-04  Bruno Haible  <bruno@clisp.org>
15644
15645         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
15646         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
15647         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
15648         Reported by Bruce Korb and Eric Blake.
15649
15650 2010-10-04  Bruno Haible  <bruno@clisp.org>
15651
15652         threadlib: Make option --with-libpth-prefix work.
15653         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
15654         use $LIBPTH, not just -lpth.
15655
15656 2010-10-04  Bruno Haible  <bruno@clisp.org>
15657
15658         Avoid line length limitation from HP NonStop system header files.
15659         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
15660         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
15661         * lib/ctype.in.h: Likewise.
15662         * lib/dirent.in.h: Likewise.
15663         * lib/errno.in.h: Likewise.
15664         * lib/fcntl.in.h: Likewise.
15665         * lib/float.in.h: Likewise.
15666         * lib/getopt.in.h: Likewise.
15667         * lib/iconv.in.h: Likewise.
15668         * lib/inttypes.in.h: Likewise.
15669         * lib/langinfo.in.h: Likewise.
15670         * lib/locale.in.h: Likewise.
15671         * lib/math.in.h: Likewise.
15672         * lib/netdb.in.h: Likewise.
15673         * lib/netinet_in.in.h: Likewise.
15674         * lib/poll.in.h: Likewise.
15675         * lib/pthread.in.h: Likewise.
15676         * lib/pty.in.h: Likewise.
15677         * lib/sched.in.h: Likewise.
15678         * lib/se-selinux.in.h: Likewise.
15679         * lib/search.in.h: Likewise.
15680         * lib/signal.in.h: Likewise.
15681         * lib/spawn.in.h: Likewise.
15682         * lib/stdarg.in.h: Likewise.
15683         * lib/stddef.in.h: Likewise.
15684         * lib/stdint.in.h: Likewise.
15685         * lib/stdio.in.h: Likewise.
15686         * lib/stdlib.in.h: Likewise.
15687         * lib/string.in.h: Likewise.
15688         * lib/strings.in.h: Likewise.
15689         * lib/sys_file.in.h: Likewise.
15690         * lib/sys_ioctl.in.h: Likewise.
15691         * lib/sys_select.in.h: Likewise.
15692         * lib/sys_socket.in.h: Likewise.
15693         * lib/sys_stat.in.h: Likewise.
15694         * lib/sys_time.in.h: Likewise.
15695         * lib/sys_times.in.h: Likewise.
15696         * lib/sys_utsname.in.h: Likewise.
15697         * lib/sys_wait.in.h: Likewise.
15698         * lib/sysexits.in.h: Likewise.
15699         * lib/termios.in.h: Likewise.
15700         * lib/time.in.h: Likewise.
15701         * lib/unistd.in.h: Likewise.
15702         * lib/wchar.in.h: Likewise.
15703         * lib/wctype.in.h: Likewise.
15704         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
15705         * modules/ctype (Makefile.am): Likewise.
15706         * modules/dirent (Makefile.am): Likewise.
15707         * modules/errno (Makefile.am): Likewise.
15708         * modules/fcntl-h (Makefile.am): Likewise.
15709         * modules/float (Makefile.am): Likewise.
15710         * modules/getopt-posix (Makefile.am): Likewise.
15711         * modules/iconv-h (Makefile.am): Likewise.
15712         * modules/inttypes (Makefile.am): Likewise.
15713         * modules/langinfo (Makefile.am): Likewise.
15714         * modules/locale (Makefile.am): Likewise.
15715         * modules/math (Makefile.am): Likewise.
15716         * modules/netdb (Makefile.am): Likewise.
15717         * modules/netinet_in (Makefile.am): Likewise.
15718         * modules/poll-h (Makefile.am): Likewise.
15719         * modules/pthread (Makefile.am): Likewise.
15720         * modules/pty (Makefile.am): Likewise.
15721         * modules/sched (Makefile.am): Likewise.
15722         * modules/search (Makefile.am): Likewise.
15723         * modules/selinux-h (Makefile.am): Likewise.
15724         * modules/signal (Makefile.am): Likewise.
15725         * modules/spawn (Makefile.am): Likewise.
15726         * modules/stdarg (Makefile.am): Likewise.
15727         * modules/stddef (Makefile.am): Likewise.
15728         * modules/stdint (Makefile.am): Likewise.
15729         * modules/stdio (Makefile.am): Likewise.
15730         * modules/stdlib (Makefile.am): Likewise.
15731         * modules/string (Makefile.am): Likewise.
15732         * modules/strings (Makefile.am): Likewise.
15733         * modules/sys_file (Makefile.am): Likewise.
15734         * modules/sys_ioctl (Makefile.am): Likewise.
15735         * modules/sys_select (Makefile.am): Likewise.
15736         * modules/sys_socket (Makefile.am): Likewise.
15737         * modules/sys_stat (Makefile.am): Likewise.
15738         * modules/sys_time (Makefile.am): Likewise.
15739         * modules/sys_times (Makefile.am): Likewise.
15740         * modules/sys_utsname (Makefile.am): Likewise.
15741         * modules/sys_wait (Makefile.am): Likewise.
15742         * modules/sysexits (Makefile.am): Likewise.
15743         * modules/termios (Makefile.am): Likewise.
15744         * modules/time (Makefile.am): Likewise.
15745         * modules/unistd (Makefile.am): Likewise.
15746         * modules/wchar (Makefile.am): Likewise.
15747         * modules/wctype (Makefile.am): Likewise.
15748
15749 2010-10-04  Bruno Haible  <bruno@clisp.org>
15750
15751         read-file tests: Avoid a test failure on NonStop Kernel.
15752         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
15753         a regular file.
15754         Reported by Joachim Schmitz <schmitz@hp.com>.
15755
15756 2010-10-03  Bruno Haible  <bruno@clisp.org>
15757
15758         gnulib-tool: Fixes for --create-testdir with --libtool.
15759         * gnulib-tool (func_get_automake_snippet): Don't augment
15760         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
15761         an executable.
15762         (func_create_testdir): Handle module 'alloca' like func_import.
15763         Reported by Bruce Korb <bruce.korb@gmail.com>.
15764
15765 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
15766
15767         Avoid some lines longer than 80 characters.
15768         * lib/stdint.in.h: Break long comment lines.
15769         * lib/math.in.h: Likewise.
15770         (_GL_NUM_UINT_WORDS): New macro, for readability.
15771         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
15772         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
15773         * lib/stdlib.in.h: Likewise.
15774         * lib/spawn.in.h: Likewise.
15775         * lib/sys_socket.in.h: Update an URL.
15776         * lib/sys_stat.in.h: Break long line.
15777
15778 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
15779
15780         Improve pmccabe2html.
15781         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
15782         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
15783         when the sources change. Remove the line in the HTML about "Used
15784         ranges" (which implied that there might be other unused ranges),
15785         rename "Resume" to "Summary" (easier to understand for more users).
15786         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
15787         styles, and some unnecessary blank lines.
15788
15789 2010-10-03  Bruno Haible  <bruno@clisp.org>
15790             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
15791
15792         acl: Add support for ACLs on NonStop Kernel.
15793         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
15794         Check whether the function aclsort() exists.
15795         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
15796         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
15797         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
15798         (acl_nontrivial [HAVE_ACLSORT]: New function.
15799         (file_has_acl): Implement for NonStop Kernel.
15800         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
15801         (qset_acl): Implement for NonStop Kernel.
15802         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
15803         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
15804         (main): Implement for NonStop Kernel.
15805         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
15806         Kernel. Handle this flavor.
15807         * tests/test-set-mode-acl.sh: Likewise.
15808         * tests/test-copy-acl.sh: Likewise.
15809         * tests/test-copy-file.sh: Likewise.
15810
15811 2010-10-03  Bruno Haible  <bruno@clisp.org>
15812
15813         Info about ACLs on NonStop Kernel.
15814         * doc/acl-resources.txt: Add info about NonStop Kernel.
15815         References by Joachim Schmitz <schmitz@hp.com>.
15816
15817 2010-10-02  Bruno Haible  <bruno@clisp.org>
15818
15819         Define missing EDQUOT on NonStop Kernel.
15820         * lib/errno.in.h (EDQUOT): Assign a value if missing.
15821         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
15822         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
15823         missing.
15824         * doc/posix-headers/errno.texi: Mention the NSK bug.
15825         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
15826         Reported by Joachim Schmitz <schmitz@hp.com>.
15827
15828 2010-10-02  Bruno Haible  <bruno@clisp.org>
15829
15830         Update doc for POSIX:2008.
15831         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
15832         Update URL of POSIX specification.
15833
15834 2010-10-02  Bruno Haible  <bruno@clisp.org>
15835
15836         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
15837         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
15838         from gnulib, not from Automake.
15839
15840 2010-10-02  Bruno Haible  <bruno@clisp.org>
15841
15842         New module 'system-posix'.
15843         * modules/system-posix: New file.
15844         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
15845         module is present.
15846         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
15847         GNULIB_SYSTEM_POSIX.
15848         * modules/stdlib (Depends-on): Remove sys_wait.
15849         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
15850         * doc/posix-functions/system.texi: Mention the new module.
15851         * doc/posix-headers/stdlib.texi: Likewise.
15852         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
15853         define test_sys_wait_macros to a no-op.
15854         Reported by Sam Steingold <sds@gnu.org>.
15855
15856 2010-09-30  Bruno Haible  <bruno@clisp.org>
15857
15858         More renaming from 'getdate' to 'get_date'.
15859         * doc/get_date.texi: Renamed from doc/getdate.texi.
15860         * modules/get_date (Files): Update.
15861         * MODULES.html.sh (Date and time <time.h>): Update.
15862         * DEPENDENCIES: Update.
15863         * gnulib-tool: Update comment.
15864         * m4/bison.m4 (gl_BISON): Likewise.
15865         * m4/get_date.m4 (gl_GET_DATE): Likewise.
15866
15867 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
15868
15869         bootstrap: support ACLOCAL_FLAGS during aclocal
15870         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
15871         can add additional -I dir for third-party .m4 files.
15872
15873 2010-09-30  Eric Blake  <eblake@redhat.com>
15874
15875         bootstrap: use glibtoolize on MacOS
15876         * build-aux/bootstrap (check_versions): Convert libtool into
15877         libtoolize.
15878         (tool search): Move libtool check earlier, and look for
15879         glibtoolize for MacOS.
15880         (gnulib_tool_options): Auto-add --libtool when appropriate.
15881         Reported by Justin Clift.
15882
15883         poll: fix typo that broke test on MacOS
15884         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
15885         Reported by Justin Clift.
15886
15887         getdate: rename to get_date
15888         Note: getdate.h is not renamed, to minimize client impact.
15889         * modules/getdate: Mark obsolete.  Move old contents...
15890         * modules/get_date: ...to new module name.
15891         * modules/getdate-tests: Move...
15892         * modules/get_date-tests: ...here.
15893         * m4/getdate.m4: Move...
15894         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
15895         * lib/getdate.y: Move...
15896         * lib/get_date.y: ...here.
15897         * tests/test-getdate.c: Move...
15898         * tests/test-get_date.c: ...here.
15899         * doc/posix-functions/getdate.texi (getdate): Update name.
15900         * NEWS: Mention the change.
15901
15902 2010-09-29  Bruno Haible  <bruno@clisp.org>
15903
15904         Separate the module 'waitpid' from the module 'sys_wait'.
15905         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
15906         present.
15907         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
15908         gl_MODULE_INDICATOR_FOR_TESTS.
15909         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
15910         * modules/sys_wait (Depends-on): Remove waitpid.
15911         (Makefile.am): Substitute GNULIB_WAITPID.
15912         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
15913         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
15914         signature only if the 'waitpid' module is present.
15915         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
15916         * NEWS: Mention the change.
15917         * modules/grantpt (Depends-on): Add waitpid.
15918         * modules/wait-process (Depends-on): Likewise.
15919
15920 2010-09-29  Bruno Haible  <bruno@clisp.org>
15921
15922         More tests for module 'sys_wait'.
15923         * modules/sys_wait-c++-tests: New file.
15924         * tests/test-sys_wait-c++.cc: New file.
15925         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
15926         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
15927
15928 2010-09-29  Bruno Haible  <bruno@clisp.org>
15929
15930         New module 'waitpid'.
15931         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
15932         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
15933         Don't include <process.h>.
15934         (waitpid): Declare only, using modern idiom.
15935         * m4/waitpid.m4: New file.
15936         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
15937         * modules/waitpid: New file.
15938         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
15939         (Makefile.am): Update.
15940         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
15941
15942 2010-09-28  Bruno Haible  <bruno@clisp.org>
15943
15944         poll: Assume ANSI C.
15945         * lib/poll.c (poll): Use an ANSI C declaration.
15946
15947 2010-09-28  Bruno Haible  <bruno@clisp.org>
15948
15949         poll-h: Create poll.h on all platforms.
15950         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
15951         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
15952         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
15953         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
15954         (gl_REPLACE_POLL_H): Don't set POLL_H.
15955         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
15956         * modules/poll-h (Depends-on): Add include_next.
15957         (Makefile.am): Create poll.h unconditionally. Substitute also
15958         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
15959
15960 2010-09-28  Bruno Haible  <bruno@clisp.org>
15961
15962         Tests for module 'poll-h'.
15963         * modules/poll-h-c++-tests: New file.
15964         * tests/test-poll-h-c++.cc: New file.
15965
15966         Tests for module 'poll-h'.
15967         * modules/poll-h-tests: New file.
15968         * tests/test-poll-h.c: New file.
15969
15970 2010-09-28  Bruno Haible  <bruno@clisp.org>
15971
15972         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
15973         * modules/poll-h (Depends-on): Add 'extensions'.
15974
15975 2010-09-28  Bruno Haible  <bruno@clisp.org>
15976
15977         New module 'poll-h'.
15978         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
15979         (poll): Use modern idiom.
15980         * modules/poll-h: New file.
15981         * modules/poll (Files): Remove lib/poll.in.h.
15982         (Depends-on): Add poll-h.
15983         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
15984         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
15985         * m4/poll_h.m4: New file.
15986         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
15987         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
15988         and invoke gl_REPLACE_POLL_H.
15989         * lib/poll.c: Use common idiom.
15990         * tests/test-poll.c: Likewise.
15991         * doc/posix-headers/poll.texi: Mention the poll-h module.
15992         Suggested by Eric Blake.
15993
15994 2010-09-26  Bruno Haible  <bruno@clisp.org>
15995
15996         sys_wait: Implement WSTOPSIG.
15997         * lib/sys_wait.in.h (WSTOPSIG): New macro.
15998         Reported by Simon Josefsson.
15999
16000 2010-09-26  Simon Josefsson  <simon@josefsson.org>
16001
16002         stdlib, sys_wait: Avoid compilation error on mingw.
16003         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
16004
16005 2010-09-26  Bruno Haible  <bruno@clisp.org>
16006
16007         stdlib tests: Avoid code duplication.
16008         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
16009         * modules/sys_wait-tests (Files): Likewise.
16010         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
16011         * tests/test-stdlib.c: Include test-sys_wait.h.
16012         (main): Invoke test_sys_wait_macros.
16013         * tests/test-sys_wait.c: Include test-sys_wait.h.
16014         (main): Invoke test_sys_wait_macros.
16015
16016 2010-09-25  Simon Josefsson  <simon@josefsson.org>
16017
16018         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
16019         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
16020         sure Windows sockets are working before calling getaddrinfo.
16021         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
16022         * doc/gnulib.texi (Windows sockets): Fix typo.
16023
16024 2010-09-25  Bruno Haible  <bruno@clisp.org>
16025
16026         Tests for module 'regex-quote'.
16027         * modules/regex-quote-tests: New file.
16028         * tests/test-regex-quote.c: New file.
16029
16030         New module 'regex-quote'.
16031         * lib/regex-quote.h: New file.
16032         * lib/regex-quote.c: New file.
16033         * modules/regex-quote: New file.
16034         Suggested by Reuben Thomas <rrt@sc3d.org>.
16035
16036 2010-09-24  Bruno Haible  <bruno@clisp.org>
16037
16038         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
16039         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
16040
16041 2010-09-23  Bruno Haible  <bruno@clisp.org>
16042
16043         setenv: Relax license.
16044         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
16045         Blake.
16046         Requested by Eric Blake.
16047
16048 2010-09-22  Bruno Haible  <bruno@clisp.org>
16049
16050         termios: Relax license.
16051         * modules/termios (License): Change to LGPLv2+.
16052         Requested by Eric Blake.
16053
16054 2010-09-22  Bruno Haible  <bruno@clisp.org>
16055
16056         threadlib: Allow the package to change the default to 'no'.
16057         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
16058         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
16059         Reported by Paul Eggert.
16060
16061 2010-09-22  Pádraig Brady  <P@draigbrady.com>
16062             Bruno Haible  <bruno@clisp.org>
16063
16064         Fix endless loop in mbmemcasecoll.
16065         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
16066         byte.
16067         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
16068
16069 2010-09-22  Bruno Haible  <bruno@clisp.org>
16070
16071         Tests for module 'memcoll'.
16072         * modules/memcoll-tests: New file.
16073         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
16074
16075         memcoll, xmemcoll: Clarify size vs. length.
16076         * modules/memcoll.c (memcoll0): Clarify specification.
16077         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
16078         passed to collate_error.
16079
16080 2010-09-22  Bruno Haible  <bruno@clisp.org>
16081
16082         Tests for module 'memcasecmp'.
16083         * modules/memcasecmp-tests: New file.
16084         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
16085
16086 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
16087
16088         * lib/pthread.in.h: Add split double-inclusion guard, and include
16089         system <pthread.h> if there is one.  Use @@-style as in other
16090         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
16091         pthread.h doesn't.
16092         (pthread_mutexattr_destroy, pthread_mutexattr_init):
16093         (pthread_mutexattr_settype, pthread_mutex_trylock):
16094         New static inline functions, if there's no system <pthread.h>.
16095         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
16096         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
16097         Approximate with mutexes if the system lacks spinlocks, as in
16098         MacOS.
16099         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
16100         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
16101         @@-style.  Check for spinlocks separately.
16102         (gl_PTHREAD_DEFAULTS): New macro.
16103         * modules/pthread: Redo to use a more typical style for in.h files.
16104
16105 2010-09-21  Eric Blake  <eblake@redhat.com>
16106
16107         net_if: enhance tests
16108         * tests/test-net_if.c (main): Move signature checks earlier.
16109         Print failures to stderr.
16110         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
16111         Document the bug that we do not yet fix.
16112
16113 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
16114
16115         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
16116         about gnulib, not GSS.
16117
16118 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
16119
16120         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
16121         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
16122         for Emacs.
16123         * build-aux/pmccabe2html: Make Makefile.am example code more
16124         cut-and-paste friendly.
16125
16126 2010-09-21  Simon Josefsson  <simon@josefsson.org>
16127
16128         * tests/test-net_if.c: New file.
16129         * modules/net_if-tests: New file.
16130
16131 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
16132
16133         pthread: add pthread_spin_destroy
16134         * lib/pthread.in.h (pthread_spin_destroy): New function.
16135
16136 2010-09-19  Bruno Haible  <bruno@clisp.org>
16137
16138         gnulib-tool: Fix --help output.
16139         * gnulib-tool (func_usage): Fix help message.
16140         Reported by Reuben Thomas <rrt@sc3d.org>.
16141
16142 2010-09-18  Jim Meyering  <meyering@redhat.com>
16143
16144         maint.mk: avoid unexpanded \n in two diagnostics
16145         * top/maint.mk (sc_prohibit_always_true_header_tests):
16146         Don't use a literal \n in a halt=... assignment.  It would not be
16147         expanded, and the two \n bytes would appear in the diagnostic output
16148         rather than the desired newline.  Use halt=$$(printf ... instead.
16149         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
16150
16151 2010-09-18  Bruno Haible  <bruno@clisp.org>
16152
16153         netinet_in: Doc tweak.
16154         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
16155         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16156
16157 2010-09-18  Jim Meyering  <meyering@redhat.com>
16158
16159         init.sh: correct an outdated comment
16160         * tests/init.sh (create_exe_shims_):  s/function/alias/
16161
16162         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
16163         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
16164         a file named "*.exe" is removed between the glob expansion and the
16165         processing of that oddly named file.
16166
16167 2010-09-17  Eric Blake  <eblake@redhat.com>
16168
16169         mirbsd: add some more support
16170         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
16171         in BSD family.
16172         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
16173         devices as OpenBSD.
16174         * m4/host-os.m4 (mirbsd): Add MirBSD.
16175
16176         tests: fix unportable assumption on sys/wait.h
16177         * tests/test-sys_wait.c (main): Relax test.
16178         * tests/test-stdlib.c (main): Likewise.
16179
16180         init.sh: accomodate directory with no .exes
16181         * tests/init.sh: Accomodate directory containing only scripts.
16182
16183         tests: avoid compiler warning
16184         * tests/test-stdlib.c (main): Use the variable.
16185
16186         fdutimens, fdutimensat: update signature, again
16187         * lib/utimens.h (gl_futimens): Delete, and move signature...
16188         (fdutimens): ...here.
16189         (fdutimensat): Rearrange signature.
16190         (lutimensat): Rename variable for clarity.
16191         * lib/fdutimensat.c (fdutimensat): Update signature.
16192         * lib/utimens.c (fdutimens): Likewise.
16193         (gl_futimens): Delete.
16194         (utimens, lutimens): Update callers.
16195         * lib/futimens.c (futimens): Likewise.
16196         * tests/test-fdutimensat.c: Likewise.
16197         * tests/test-utimens.c: Likewise.
16198         * tests/test-futimens.h: Update comment.
16199         * NEWS: Mention this.
16200         Suggested by Paul Eggert.
16201
16202 2010-09-17  Bruno Haible  <bruno@clisp.org>
16203
16204         Take over the maintenance of some older macros from Autoconf.
16205         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
16206         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
16207         GNU Autoconf.
16208         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
16209         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
16210
16211 2010-09-17  Eric Blake  <eblake@redhat.com>
16212
16213         fdutimensat: drop atflag validation
16214         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
16215         with valid fd, to close a race scenario where futimens is
16216         unsupported and FILE was replaced by a symlink.
16217         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
16218         accordingly.
16219         Suggested by Paul Eggert.
16220
16221 2010-09-16  Bruno Haible  <bruno@clisp.org>
16222
16223         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
16224         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
16225
16226 2010-09-16  Bruno Haible  <bruno@clisp.org>
16227
16228         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
16229         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
16230         login_tty exists.
16231         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16232
16233 2010-09-16  Bruno Haible  <bruno@clisp.org>
16234
16235         login_tty: Make the replacement code work on BSD systems.
16236         * lib/login_tty.c: Include <sys/ioctl.h>.
16237         (login_tty): Use ioctl TIOCSCTTY when available.
16238         * modules/login_tty (Depends-on): Add sys_ioctl.
16239         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16240
16241 2010-09-16  Bruno Haible  <bruno@clisp.org>
16242
16243         login_tty: Stricter unit test.
16244         * modules/login_tty-tests (Depends-on): Add tcgetsid.
16245         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
16246         and tcgetsid() after login_tty.
16247         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16248
16249 2010-09-16  Bruno Haible  <bruno@clisp.org>
16250
16251         New module 'tcgetsid'.
16252         * lib/tcgetsid.c: New file.
16253         * m4/tcgetsid.m4: New file.
16254         * modules/tcgetsid: New file.
16255         * modules/termios (Depends-on): Add c++defs, warn-on-use.
16256         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
16257         GNULIB_TCGETSID, HAVE_TCGETSID.
16258         * lib/termios.in.h: Include <sys/types.h>.
16259         (tcgetsid): New declaration.
16260         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
16261         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
16262         * doc/posix-functions/tcgetsid.texi: Mention the new module.
16263         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
16264
16265 2010-09-16  Bruno Haible  <bruno@clisp.org>
16266
16267         Tests for module 'termios'.
16268         * modules/termios-c++-tests: New file.
16269         * modules/termios-tests: New file.
16270         * tests/test-termios-c++.cc: New file.
16271         * tests/test-termios.c: New file.
16272
16273         New module 'termios'.
16274         * modules/termios: New file.
16275         * lib/termios.in.h: New file.
16276         * m4/termios_h.m4: New file.
16277         * doc/posix-headers/termios.texi: Mention the new module.
16278
16279 2010-09-16  Eric Blake  <eblake@redhat.com>
16280
16281         fdutimensat: add an atflag parameter
16282         * lib/fdutimensat.c (fdutimensat): Add new parameter.
16283         * lib/utimens.h (fdutimensat): Update prototype.
16284         * tests/test-fdutimensat.c: Adjust test to match.
16285         * NEWS: Document the change.
16286         Suggested by Paul Eggert.
16287
16288 2010-09-16  Bruno Haible  <bruno@clisp.org>
16289
16290         Fix typos in comments.
16291         * lib/striconveh.h: Fix typo in comment.
16292         * lib/login_tty.c (login_tty): Likewise.
16293
16294 2010-09-15  Bruno Haible  <bruno@clisp.org>
16295
16296         stdlib: clarify MirBSD WEXITSTATUS bug
16297         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
16298         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
16299
16300 2010-09-15  Eric Blake  <eblake@redhat.com>
16301
16302         stdlib: work around MirBSD WEXITSTATUS bug
16303         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
16304         * modules/stdlib (Depends-on): Add sys_wait.
16305         * tests/test-sys_wait.c (main): Enhance test.
16306         * tests/test-stdlib.c (main): Likewise.
16307         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
16308
16309         docs: mention MacOS issue with WEXITSTATUS(constant)
16310         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
16311         issue.
16312         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
16313
16314         strnlen: add tests
16315         * modules/strnlen-tests: New file.
16316         * tests/test-strnlen.c: Likewise.
16317
16318 2010-09-14  Bruno Haible  <bruno@clisp.org>
16319
16320         unistr/base: Avoid link errors when module 'libunistring' is also used.
16321         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
16322         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
16323         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
16324         Declare also when HAVE_LIBUNISTRING is set.
16325         Reported by Pádraig Brady <P@draigbrady.com>.
16326
16327 2010-09-14  Eric Blake  <eblake@redhat.com>
16328
16329         test-rawmemchr: make more robust
16330         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
16331         (Depends-on, configure.ac): Add needed prerequisites to use it.
16332         * modules/memchr-tests (Files, Depends-on, configure.ac):
16333         Likewise, to avoid implicit reliance on memchr module prereqs.
16334         * tests/test-memchr.c (main): Ensure proper masking.
16335         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
16336         reads.
16337
16338         memchr: detect glibc Alpha bug
16339         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
16340         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
16341         Alpha.
16342         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
16343         * tests/test-memchr.c (main): Enhance test.
16344         Reported by Nelson H. F. Beebe.
16345
16346 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
16347
16348         fts, getcwd, glob: audit for dirfd returning -1
16349         * lib/fts.c (opendir): Remove #define; no longer used.
16350         (opendirat): New arg PDIR_FD.  All callers changed.
16351         (fts_build, _opendir2): Use new opendirat to avoid the need for
16352         dirfd, or for checking whether dirfd returns a negative value.
16353         Don't use opendir; always use openat followed by fdopendir.
16354         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
16355         it.
16356         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
16357         returns -1 here.
16358         * modules/fts (Depends-on): Remove dirfd.
16359         * modules/getcwd (Depends-on): Likewise.
16360
16361 2010-09-13  Eric Blake  <eblake@redhat.com>
16362
16363         float: fix broken MirBSD header
16364         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
16365         * doc/posix-headers/float.texi (float.h): Document it.
16366
16367 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
16368
16369         fts: use O_NOFOLLOW to avoid race condition when opening a directory
16370         * lib/fts.c (opendirat): New arg extra_flags.
16371         (__opendir2): Use it to avoid following symlinks when opening
16372         a directory, if symlinks are not supposed to be followed.  See
16373         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
16374
16375         fdopendir: preserve argument fd before returning
16376         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
16377         (fdopendir_with_dup, fd_clone_opendir): New static functions.
16378         (fdopendir): Use them, arranging for FD to be open to the same
16379         directory that it was when it started.  (It might be temporarily
16380         closed while fdopendir is running, so this not thread- or
16381         signal-safe.)  Be careful to do the right thing even when file
16382         descriptors are scarce and dup fails with errno == EMFILE.  See
16383         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
16384
16385 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
16386
16387         regex: Pass the system regex if its only problem is 32-bit regoff_t.
16388         * NEWS: Document change.
16389         * m4/regex.m4: Disable test for regoff_t size.
16390
16391 2010-09-13  Jim Meyering  <meyering@redhat.com>
16392
16393         fts: don't operate on an invalid file descriptor after failed dup
16394         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
16395         negative file descriptor.
16396
16397 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
16398
16399         savedir: add streamsavedir, deprecate fdsavedir
16400         * NEWS: Mention deprecation of fdsavedir.
16401         * lib/savedir.c (streamsavedir): New extern function, whose name
16402         ends in "savedir" to be consistent with the others.  This differs
16403         from savedirstream in that it doesn't close its argument.  The
16404         next version of GNU tar will use this instead of fdsavedir, to
16405         avoid some race conditions and conserve file descriptors.
16406         (savedirstream): Reimplement as a wrapper around streamsavedir.
16407         (fdsavedir): Add a comment deprecating this function.  As far as
16408         I know, only GNU tar used it, and GNU tar doesn't need it any more.
16409         * lib/savedir.h (streamsavedir): New decl.
16410         (fdsavedir): Add a comment deprecating this.
16411
16412 2010-09-10  Bruno Haible  <bruno@clisp.org>
16413
16414         langinfo: Fix last commit.
16415         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
16416         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
16417         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16418
16419 2010-09-10  Bruno Haible  <bruno@clisp.org>
16420
16421         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
16422         * lib/progreloc.c (O_EXEC): Define fallback.
16423
16424 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
16425
16426         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
16427         * NEWS: Document recent changes to fcntl-h.
16428         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
16429         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
16430         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
16431         Similarly for O_SEARCH; this last was already true, but not documented.
16432         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
16433         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
16434         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
16435         Likewise.
16436         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
16437         is zero, not whether it is defined.
16438         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
16439         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
16440         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
16441
16442 2010-09-10  Bruno Haible  <bruno@clisp.org>
16443
16444         langinfo, nl_langinfo: Fix for IRIX 5.3.
16445         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
16446         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
16447         HAVE_LANGINFO_YESEXPR.
16448         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
16449         HAVE_LANGINFO_YESEXPR.
16450         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
16451         HAVE_LANGINFO_T_FMT_AMPM is 0.
16452         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
16453         HAVE_LANGINFO_YESEXPR is 0.
16454         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
16455         NOEXPR.
16456         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
16457         * doc/posix-functions/nl_langinfo.texi: Likewise.
16458         Reported by Eric Blake.
16459
16460 2010-09-10  Bruno Haible  <bruno@clisp.org>
16461
16462         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
16463         * doc/glibc-functions/login_tty.texi: Mention the include file problem
16464         on FreeBSD 8.0 and OpenBSD 4.6.
16465         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
16466         * m4/pty_h.m4 (gl_PTY_H): Likewise.
16467         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
16468         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
16469         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
16470         ac_includes_default.
16471         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16472
16473 2010-09-09  Eric Blake  <eblake@redhat.com>
16474
16475         strsignal: work around NetBSD bug
16476         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
16477         * lib/string.in.h (includes): Likewise.
16478         * doc/posix-functions/strsignal.texi (strsignal): Document the
16479         bug.
16480         Reported by Nelson H. F. Beebe.
16481
16482         gnulib-tool: work with NetBSD /bin/sh
16483         * gnulib-tool (func_cache_var, func_cache_lookup_module)
16484         (func_get_description, func_get_comment, func_get_status)
16485         (func_get_notice, func_get_applicability, func_get_filelist)
16486         (func_get_dependencies, func_get_autoconf_early_snippet)
16487         (func_get_autoconf_snippet, func_get_automake_snippet)
16488         (func_get_include_directive, func_get_link_directive)
16489         (func_get_license, func_get_maintainer, func_import): Avoid
16490         shell syntax errors from parsing syntax extensions.
16491
16492 2010-09-09  Bruno Haible  <bruno@clisp.org>
16493
16494         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
16495         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
16496         a reliable way to determine whether the 'alias' command works.
16497
16498 2010-09-08  Jim Meyering  <meyering@redhat.com>
16499
16500         init.sh: penalize a set-x-impaired shell; don't disqualify it
16501         * tests/init.sh: Too many shells corrupt application stderr when
16502         you set -x, so we can't afford to disqualify them, since at least
16503         on Irix-6.5, that would disqualify all bourne shells.
16504         Instead, use a two-pass approach.
16505         On the first pass, try to find a shell that meets the stricter
16506         condition that set -x does not corrupt stderr.
16507         If no shell meets the stricter condition, retest each candidate
16508         shell, but without that extra condition.  Finally, when
16509         VERBOSE=yes is requested and set -x might cause trouble, simply
16510         issue a warning and refrain from enabling debug output.
16511
16512 2010-09-08  Eric Blake  <eblake@redhat.com>
16513
16514         unsetenv: fix OpenBSD bug
16515         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
16516         * doc/posix-functions/unsetenv.texi (unsetenv): Update
16517         documentation.
16518         Reported by Jim Meyering.
16519
16520         strtod: work around IRIX 6.5 bug
16521         * lib/strtod.c (strtod): Reparse number on shorter string if
16522         exponent parse was invalid.
16523         * tests/test-strtod.c (main): Add check for "0x1p 2".
16524         Reported by Tom G. Christensen.
16525
16526         getopt: optimize previous patch
16527         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
16528         empty variable.  Speed up awk script.
16529         Reported by Paolo Bonzini.
16530
16531 2010-09-08  Jim Meyering  <meyering@redhat.com>
16532
16533         test.sh: disqualify shells for which set -x corrupts stderr
16534         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
16535         and OpenBSD 4.7.  They make it so with "set -x", environment settings
16536         appear in stderr output.  For example, this command:
16537             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
16538         prints "P=1" on those two systems:
16539
16540 2010-09-08  Bruno Haible  <bruno@clisp.org>
16541
16542         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
16543         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
16544         commands, because some shells ignore redirections when there is an
16545         error in the command lookup.
16546         Reported by Eric Blake.
16547
16548 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
16549
16550         * lib/regex.h: Fix a mention of `regex_compile' (should be
16551         `re_compile_pattern').
16552         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
16553         (re_set_registers): Correct name of parameter in comment.
16554
16555         * doc/regex.texi: Add documentation for missing syntax flags.
16556         Remove commented-out documentation of defunct syntax option
16557         RE_NO_EMPTY_ALTS.
16558         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
16559         Add documentation of re_set_registers.
16560         Document trick to re-use a pattern buffer by setting fastmap manually.
16561         Update documentation of struct re_pattern_buffer per public members.
16562         Uncomment documentation of equivalence class operators and
16563         collating symbol operators, since they are now implemented,
16564         Explain leftmost-longest matching in relation to alternatives.
16565         Tidy documentation of substring matching.
16566         Remove POSIX documentation, which is done better in
16567         glibc, and refer the reader there. Keep BSD API documentation, as
16568         that is not readily available elsewhere.
16569
16570 2010-09-07  Eric Blake  <eblake@redhat.com>
16571
16572         getopt: handle POSIXLY_CORRECT set but not exported
16573         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
16574         export state of POSIXLY_CORRECT, due to bash set -o posix.
16575         Reported by Dustin J. Mitchell.
16576
16577 2010-09-05  Bruno Haible  <bruno@clisp.org>
16578
16579         gnulib-tool: Highlight the changed options.
16580         * gnulib-tool (func_usage): Display the --import, --add-import,
16581         --remove-import explanations in bold font.
16582
16583 2010-09-06  Karl Berry  <karl@gnu.org>
16584
16585         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
16586
16587 2010-09-05  Bruno Haible  <bruno@clisp.org>
16588
16589         uniwidth/width: Update comment.
16590         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
16591         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
16592
16593 2010-09-05  Bruno Haible  <bruno@clisp.org>
16594
16595         isinf, isnan: Relax license.
16596         * modules/isinf (License): Change from GPL to LGPL, with consent from
16597         Ben Pfaff.
16598         * modules/isnan (License): Likewise.
16599         Requested by Ludovic Courtès.
16600
16601 2010-09-04  Bruno Haible  <bruno@clisp.org>
16602
16603         gnulib-tool: Help migration from --import to --add-import or --update.
16604         * gnulib-tool: Emit a verbose error message when --import is used
16605         without any module name.
16606
16607 2010-09-04  Bruno Haible  <bruno@clisp.org>
16608
16609         Update doc about gnulib-tool.
16610         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
16611         'gnulib-tool --update' in more detail.
16612         Reported by Eric Blake.
16613
16614 2010-09-04  Bruno Haible  <bruno@clisp.org>
16615
16616         gnulib-tool: Change --import. New options --add/remove-import.
16617         * gnulib-tool: New options --add-import, --remove-import.
16618         (func_usage): Document them.
16619         (have_associative): Define always.
16620         (func_import): In import mode, don't merge the specified settings with
16621         the cached settings. Implement remove-import mode.
16622         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
16623         Explain when to use them versus --import.
16624         (Simple update): Use --add-import instead of --import.
16625         * NEWS: Mention the change.
16626
16627 2010-09-04  Bruno Haible  <bruno@clisp.org>
16628
16629         * doc/gnulib-tool.texi (Initial import): Update paragraph about
16630         separate gnulib.mk.
16631
16632 2010-09-04  Bruno Haible  <bruno@clisp.org>
16633
16634         gnulib-tool: Don't talk about CVS any more.
16635         * gnulib-tool (func_usage, func_import): Write "version control"
16636         instead of CVS.
16637
16638 2010-09-04  Jim Meyering  <meyering@redhat.com>
16639
16640         maint.mk: avoid obscure sc_copyright_check failure in coreutils
16641         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
16642         false positives (whose names may be ill-chosen) when searching
16643         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
16644         would cause a false-positive.
16645
16646         avoid coreutils "make distcheck" failure
16647         Coreutils tests with an absolute build directory name that contains
16648         a space.  Not quoting this directory name caused a failure.
16649         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
16650         * tests/test-vc-list-files-cvs.sh: Likewise.
16651
16652 2010-09-04  Bruno Haible  <bruno@clisp.org>
16653
16654         gnulib-tool: Avoid error when run in a package without Makefile.am.
16655         * gnulib-tool: When collecting the m4dirs in a package that does not
16656         have a Makefile.am, eliminate those directories that contain no
16657         gnulib-cache.m4. Fix expression that counts these directories.
16658
16659 2010-09-04  Bruno Haible  <bruno@clisp.org>
16660
16661         update-copyright test: Improve output when perl is missing or too old.
16662         * tests/test-update-copyright.sh: Move test of Perl version down after
16663         the test whether Perl exists. Provide an explanation relating Perl's
16664         error message to Automake's SKIP: message.
16665
16666 2010-09-04  Bruno Haible  <bruno@clisp.org>
16667
16668         Don't augment PATH in TESTS_ENVIRONMENT.
16669         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
16670         set abs_aux_dir instead of augmenting PATH.
16671         * modules/vc-list-files-tests (Makefile.am): Likewise.
16672         * tests/test-update-copyright.sh: Augment PATH here.
16673         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
16674         path_prepend_.
16675         * tests/test-vc-list-files-git.sh: Likewise.
16676
16677 2010-09-04  Jim Meyering  <meyering@redhat.com>
16678
16679         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
16680         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
16681
16682 2010-09-04  Bruno Haible  <bruno@clisp.org>
16683
16684         strdup: Fix compilation error in C++ mode.
16685         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
16686         the macro.
16687
16688 2010-09-04  Bruno Haible  <bruno@clisp.org>
16689
16690         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
16691         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
16692         macro into a function.
16693         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
16694
16695 2010-09-04  Bruno Haible  <bruno@clisp.org>
16696
16697         Set PATH_SEPARATOR the same way autoconf does.
16698         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
16699         the value of PATH_SEPARATOR the same way autoconf-generated configure
16700         scripts do.
16701         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
16702         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
16703
16704 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
16705
16706         Set PATH_SEPARATOR the same way autoconf does.
16707         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
16708         the same way autoconf-generated configure scripts do.
16709         * posix-modules: Likewise.
16710
16711 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
16712
16713         hash: fix safe_hasher const typo
16714         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
16715         const; otherwise, there is a type error later.
16716
16717 2010-09-02  Jim Meyering  <meyering@redhat.com>
16718
16719         test-update-copyright.sh: require perl 5.8.0
16720         * tests/test-update-copyright.sh: Require 5.8.0,
16721         which Tom G. Christensen has confirmed is adequate,
16722         while 5.6.1 is not.
16723
16724 2010-09-02  Eric Blake  <eblake@redhat.com>
16725
16726         tests: init.sh improvements for re-exec'ing with zsh
16727         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
16728         -vx through shell re-exec.
16729         Reported by Tom G. Christensen.
16730
16731         wctype: fix typo in previous commit
16732         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
16733         Reported by Ludovic Courtès.
16734
16735 2010-09-02  Jim Meyering  <meyering@redhat.com>
16736
16737         test-update-copyright.sh: skip test if Perl is too old
16738         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
16739         Reported by Tom G. Christensen.
16740
16741 2010-09-02  Bruno Haible  <bruno@clisp.org>
16742
16743         wctype: Avoid compilation error on IRIX 6.5.30.
16744         * lib/wctype.in.h (iswblank): Declare with a replacement if
16745         REPLACE_ISWBLANK is set.
16746         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
16747         declared. Set REPLACE_ISWBLANK.
16748         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
16749         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
16750         * doc/posix-headers/wctype.texi: Likewise.
16751         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16752
16753 2010-09-01  Bruno Haible  <bruno@clisp.org>
16754
16755         New module 'socketlib'.
16756         * modules/socketlib: New file.
16757         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
16758         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
16759         * modules/sockets (Depends-on): Add socketlib.
16760         Suggested by Sam Steingold <sds@gnu.org>.
16761
16762 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
16763
16764         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
16765
16766         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
16767         when one needs search access to a directory but not read access.
16768         On systems where it is available, it works in some cases where
16769         O_RDONLY does not, namely on directories that are searchable but
16770         not readable, and which need only to be searchable.  If O_SEARCH
16771         is not available, fall back to the traditional method of using
16772         O_RDONLY.
16773
16774         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
16775         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
16776         when opening a directory that needs only to be searchable.
16777         * lib/chdir-safer.c (chdir_no_follow): Likewise.
16778         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
16779         * lib/openat-proc.c (openat_proc_name): Likewise.
16780         * lib/openat.c (openat_needs_fchdir): Likewise.
16781         * lib/save-cwd.c (save_cwd): Likewise.
16782         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
16783
16784 2010-08-28  Bruno Haible  <bruno@clisp.org>
16785
16786         New module 'host-cpu-c-abi'.
16787         * modules/host-cpu-c-abi: New file.
16788         * m4/host-cpu-c-abi.m4: New file, based on part of
16789         clisp/src/m4/general.m4.
16790         Requested by Sam Steingold <sds@gnu.org>.
16791
16792 2010-08-31  Eric Blake  <eblake@redhat.com>
16793         and Jim Meyering  <meyering@redhat.com>
16794
16795         hash: factor, and guard against misbehaving hasher function
16796         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
16797         of table->hasher's return value.  Also protect against a hash value
16798         so large that adding it to table->bucket results in a NULL pointer.
16799         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
16800         Use it in place of open-coded check-and-abort.
16801
16802 2010-08-30  Bruno Haible  <bruno@clisp.org>
16803
16804         hash: silence spurious clang warning
16805         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
16806         Reported by Eric Blake.
16807
16808 2010-08-30  Eric Blake  <eblake@redhat.com>
16809
16810         strstr, memmem, strcasestr: avoid leaked shell message
16811         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
16812         FreeBSD.
16813         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
16814         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
16815
16816         tests: silence clang warning
16817         * tests/test-malloca.c (do_allocation): Avoid dead store.
16818
16819 2010-08-29  Bruno Haible  <bruno@clisp.org>
16820
16821         gettext: Fix recent mistake.
16822         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
16823
16824 2010-08-29  Bruno Haible  <bruno@clisp.org>
16825
16826         selinux-h: Offer a --without-selinux option.
16827         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
16828         --without-selinux was specified, skip all tests and define
16829         HAVE_SELINUX_SELINUX_H to 0.
16830         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
16831         set LIB_SELINUX to empty.
16832         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
16833         gl_LIBSELINUX. If --without-selinux was specified, replace
16834         selinux/context.h.
16835         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
16836
16837 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16838             Bruno Haible  <bruno@clisp.org>
16839
16840         Make the module 'realloc-gnu' work again on AIX and OSF/1.
16841         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
16842         of HAVE_REALLOC.
16843         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
16844         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
16845         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
16846         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
16847
16848 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16849             Bruno Haible  <bruno@clisp.org>
16850
16851         Make the module 'calloc-gnu' work again on AIX and OSF/1.
16852         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
16853         HAVE_CALLOC.
16854         * lib/xmalloc.c: Update accordingly.
16855         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
16856         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
16857         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
16858
16859 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16860             Bruno Haible  <bruno@clisp.org>
16861
16862         Make the module 'malloc-gnu' work again on AIX and OSF/1.
16863         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
16864         HAVE_MALLOC.
16865         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
16866         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
16867         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
16868
16869 2010-08-29  Bruno Haible  <bruno@clisp.org>
16870
16871         Update modules list.
16872         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
16873         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
16874         (String handling <string.h>): Add astrxfrm.
16875         (File system functions): Add readlinkat.
16876
16877 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16878
16879         Tests for module 'realloc-gnu'.
16880         * modules/realloc-gnu-tests: New file.
16881         * tests/test-realloc-gnu.c: New file.
16882
16883         Tests for module 'calloc-gnu'.
16884         * modules/calloc-gnu-tests: New file.
16885         * tests/test-calloc-gnu.c: New file.
16886
16887         Tests for module 'malloc-gnu'.
16888         * modules/malloc-gnu-tests: New file.
16889         * tests/test-malloc-gnu.c: New file.
16890
16891 2010-08-28  Bruno Haible  <bruno@clisp.org>
16892
16893         Rename module 'realloc' -> 'realloc-gnu'.
16894         * modules/realloc-gnu: New file, copied from modules/realloc.
16895         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
16896         obsolete.
16897         * modules/mgetgroups (Depends-on): Update.
16898         * doc/posix-functions/realloc.texi: Update.
16899         * NEWS: Mention the change.
16900
16901         Rename module 'calloc' -> 'calloc-gnu'.
16902         * modules/calloc-gnu: New file, copied from modules/calloc.
16903         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
16904         obsolete.
16905         * doc/posix-functions/calloc.texi: Update.
16906         * NEWS: Mention the change.
16907
16908         Rename module 'malloc' -> 'malloc-gnu'.
16909         * modules/malloc-gnu: New file, copied from modules/malloc.
16910         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
16911         obsolete.
16912         * modules/argp (Depends-on): Update.
16913         * modules/regex (Depends-on): Update.
16914         * doc/posix-functions/malloc.texi: Update.
16915         * NEWS: Mention the change.
16916
16917 2010-08-28  Eric Blake  <eblake@redhat.com>
16918
16919         pread, pwrite: add missing dependency
16920         * modules/pread (Depends-on): Add extensions.
16921         * modules/pwrite (Depends-on): Likewise.
16922
16923 2010-08-28  Bruno Haible  <bruno@clisp.org>
16924
16925         unistr/u*-strchr: Fix tests dependencies.
16926         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
16927         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
16928         Reported by Ian Beckwith <ianb@erislabs.net>.
16929
16930 2010-08-28  Bruno Haible  <bruno@clisp.org>
16931
16932         read-file: Don't occupy too much unused memory.
16933         * lib/read-file.c (fread_file): Shrink the buffer at the end.
16934
16935 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
16936             Eric Blake  <eblake@redhat.com>
16937             Bruno Haible  <bruno@clisp.org>
16938
16939         read-file: Avoid memory reallocations with regular files.
16940         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
16941         (fread_file): With regular files, use the remaining length as the
16942         initial buffer size.  Check against overflow.
16943         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
16944         sys_stat.
16945
16946 2010-08-28  Bruno Haible  <bruno@clisp.org>
16947
16948         ftello: Relax license.
16949         * modules/ftello (License): Relax to LGPLv2+.
16950         Reported by Eric Blake.
16951
16952 2010-08-28  Bruno Haible  <bruno@clisp.org>
16953
16954         Avoid relocwrapper link errors due to gnulib replacement functions.
16955         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
16956         function.
16957         Reported by Ben Pfaff <blp@cs.stanford.edu>.
16958
16959 2010-08-28  Bruno Haible  <bruno@clisp.org>
16960
16961         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
16962         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
16963         defined.
16964         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
16965         Suggested by Eric Blake.
16966
16967 2010-08-28  Bruno Haible  <bruno@clisp.org>
16968
16969         sys_socket, netdb: Ensure socklen_t gets defined.
16970         * modules/sys_socket (Depends-on): Add socklen.
16971         * modules/netdb (Depends-on): Likewise.
16972         * modules/getaddrinfo (Depends-on): Remove socklen.
16973         * modules/getsockopt (Depends-on): Likewise.
16974         * modules/setsockopt (Depends-on): Likewise.
16975         * tests/test-sys_socket.c: Check that socklen_t is defined.
16976         * tests/test-netdb.c: Likewise.
16977         * m4/socklen.m4: Update comments.
16978         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16979
16980 2010-08-27  Eric Blake  <eblake@redhat.com>
16981
16982         login_tty: add missing dependency
16983         * modules/login_tty (Depends-on): Add pty.
16984
16985 2010-08-26  Eric Blake  <eblake@redhat.com>
16986
16987         lib-symbol-versions: fix m4 quoting
16988         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
16989         format for AC_LINK_IFELSE.
16990
16991         glob: fix compile test
16992         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
16993
16994         btowc: fix missing file
16995         * modules/btowc (Files): Also ship locale-fr.m4.
16996
16997         lseek: fix link test
16998         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
16999         AC_LINK_IFELSE.
17000
17001         include_next: silence autoconf 2.68 warning
17002         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
17003         AC_COMPILE_IFELSE as special.
17004         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
17005         autoconf < 2.68.
17006
17007         acl: fix compilation test
17008         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
17009         AC_COMPILE_IFELSE.
17010
17011 2010-08-26  Bruno Haible  <bruno@clisp.org>
17012
17013         Modernize AC_TRY_RUN invocations.
17014         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
17015         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
17016         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
17017         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
17018         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
17019         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
17020         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
17021         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
17022         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
17023         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
17024         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
17025         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
17026         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
17027         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
17028         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
17029         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
17030         gl_MBRLEN_NUL_RETVAL): Likewise.
17031         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
17032         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
17033         Likewise.
17034         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
17035         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
17036         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
17037         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
17038         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
17039         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
17040         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
17041         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
17042         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
17043         Likewise.
17044         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
17045         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
17046         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
17047         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
17048         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
17049         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
17050         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
17051         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
17052         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
17053         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
17054
17055 2010-08-26  Bruno Haible  <bruno@clisp.org>
17056
17057         Modernize AC_TRY_LINK invocations.
17058         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
17059         AC_TRY_LINK.
17060         * m4/argp.m4 (gl_ARGP): Likewise.
17061         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
17062         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
17063         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
17064         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
17065         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
17066         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
17067         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
17068         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
17069         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
17070         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
17071         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
17072         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
17073         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
17074         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
17075         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
17076         * m4/hostent.m4 (gl_HOSTENT): Likewise.
17077         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
17078         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
17079         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
17080         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
17081         Likewise.
17082         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
17083         Likewise.
17084         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
17085         Likewise.
17086         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
17087         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
17088         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
17089         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
17090         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
17091         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
17092         * m4/servent.m4 (gl_SERVENT): Likewise.
17093         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
17094         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
17095         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
17096         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
17097         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
17098         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
17099         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
17100         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
17101         * modules/tsearch-tests (configure.ac): Likewise.
17102
17103 2010-08-26  Bruno Haible  <bruno@clisp.org>
17104
17105         Modernize AC_TRY_COMPILE invocations.
17106         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
17107         AC_TRY_COMPILE.
17108         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
17109         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
17110         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
17111         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
17112         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
17113         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
17114         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
17115         * m4/lock.m4 (gl_LOCK): Likewise.
17116         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
17117         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
17118         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
17119         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
17120         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
17121         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
17122         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
17123         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
17124         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
17125         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
17126         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
17127         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
17128         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
17129         extraneous semicolon.
17130
17131 2010-08-26  Jim Meyering  <meyering@redhat.com>
17132
17133         stat-time: relax license LGPL
17134         * modules/stat-time (License): Change from GPL to LGPL,
17135         with consent from all contributors, for use in libguile.
17136         Requested by Ludovic Courtès.
17137
17138 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
17139
17140         poll: return immediately on POLLHUP.
17141         * lib/poll.c (poll): Always set timeout before wait_timeout is
17142         computed.
17143
17144 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17145
17146         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
17147         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
17148         rmdir ("dir/.//"), unlinkat.
17149
17150 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
17151
17152         stdbool: avoid spurious failure with modern xlc
17153         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
17154
17155 2010-08-24  Bruno Haible  <bruno@clisp.org>
17156
17157         getloadavg: simplify code
17158         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
17159         gl_have_func. Update comments.
17160
17161 2010-08-24  Eric Blake  <eblake@redhat.com>
17162
17163         getloadavg: don't define SVR4 on cygwin
17164         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
17165         only define SVR4 when -lkvm is required.
17166         Reported by Yaakov Selkowitz.
17167
17168 2010-08-24  Bruno Haible  <bruno@clisp.org>
17169
17170         priv-set: fix comment
17171         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
17172
17173 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
17174
17175         priv-set: fix comments
17176         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
17177         to match code, as suggested by David Bartley in:
17178         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
17179
17180 2010-08-23  Eric Blake  <eblake@redhat.com>
17181
17182         stdbool: avoid rejecting clang
17183         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
17184         * tests/test-stdbool.c: Enable more tests if using the system
17185         <stdbool.h> instead of the gnulib replacement.
17186         (main): Move xlc bug test to a runtime test for all compilers.
17187         Reported by Anders Kaseorg.
17188
17189         argz: fix shell quoting issue
17190         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
17191         Reported by Charles Wilson.
17192
17193 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
17194             Erik Faye-Lund <kusmabite@gmail.com>
17195
17196         poll, select: handle ERROR_BROKEN_PIPE.
17197         * lib/poll.c (win32_compute_revents): Return POLLHUP when
17198         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
17199         * lib/select.c (win32_compute_revents): Do not mark a pipe
17200         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
17201
17202 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
17203
17204         fts: allow compilation with C++
17205         * lib/fts_.h: Specify extern "C" linkage with C++.
17206
17207 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17208
17209         Fix gnulib-tool sed script de-commentation for AIX sed.
17210         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
17211         sed.
17212
17213 2010-08-17  Eric Blake  <eblake@redhat.com>
17214
17215         test-stddef: test for (some) offsetof bugs
17216         * tests/test-stddef.c: Enhance test to ensure correct type of
17217         offsetof.
17218         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
17219         that we are not fixing at this time.
17220
17221 2010-08-15  Bruno Haible  <bruno@clisp.org>
17222
17223         stpncpy: Allow stpncpy to be defined as a macro.
17224         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
17225         if it's already correctly declared.
17226         * lib/string.in.h (stpncpy): Undefine before redefining.
17227         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
17228
17229 2010-08-14  Bruno Haible  <bruno@clisp.org>
17230
17231         Rename module 'memxfrm' to 'amemxfrm'.
17232         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
17233         (amemxfrm): Renamed from memxfrm.
17234         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
17235         (amemxfrm): Renamed from memxfrm.
17236         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
17237         * NEWS: Mention the change.
17238         * MODULES.html.sh (String handling <string.h>): Update.
17239         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
17240         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
17241         * lib/unicase/u16-casexfrm.c: Likewise.
17242         * lib/unicase/u32-casexfrm.c: Likewise.
17243         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
17244         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
17245         * lib/uninorm/u16-normxfrm.c: Likewise.
17246         * lib/uninorm/u32-normxfrm.c: Likewise.
17247         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
17248         memxfrm.
17249         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
17250         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
17251         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
17252         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
17253         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
17254         Suggested by Paul Eggert.
17255
17256 2010-08-14  Bruno Haible  <bruno@clisp.org>
17257
17258         Tests for module 'astrxfrm'.
17259         * modules/astrxfrm-tests: New file.
17260         * tests/test-astrxfrm.c: New file.
17261
17262         New module 'astrxfrm'.
17263         * lib/astrxfrm.h: New file.
17264         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
17265         * modules/astrxfrm: New file.
17266
17267 2010-08-14  Reuben Thomas <rrt@sc3d.org>
17268
17269         regex: Tweak doc.
17270         * doc/regex.texi (Overview): Don't mention regex.c.
17271         (GNU Regular Expression Compiling): Likewise.
17272         (Match-end-of-line Operator): Mention 'not_eol'.
17273
17274 2010-08-14  Brian Gough  <bjg@gnu.org>
17275             Bruno Haible  <bruno@clisp.org>
17276
17277         git-merge-changelog: add doc relating to use with bzr and hg.
17278         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
17279
17280 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
17281
17282         pthread: fix pthread.h creation for srcdir != builddir
17283         * modules/pthread (Makefile.am): Fix the rule to work also in a
17284         non-srcdir build.
17285
17286 2010-08-13  Karl Berry  <karl@gnu.org>
17287
17288         * doc/regex.texi (Predefined Syntaxes): @smallexample.
17289         * doc/posix-*/*: force line break before @url of POSIX
17290         specifications.
17291         Suggested by Werner Lemberg.
17292
17293 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
17294
17295         strtod: fix const diagnostic
17296         * lib/strtod.c (strtod): Don't assign const char * to char *,
17297         as this elicits a warning from GCC when warnings are enabled.
17298
17299 2010-08-10  Pádraig Brady <P@draigbrady.com>
17300         and Eric Blake  <eblake@redhat.com>
17301
17302         copy-acl: ignore ENOTSUP on HP-UX
17303         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
17304         so that it is available for HP-UX.
17305         * lib/copy-acl.c (qcopy_acl): Use it.
17306         Reported by Patrick M. Callahan.
17307
17308 2010-08-10  Eric Blake  <eblake@redhat.com>
17309
17310         open, chown: relax license
17311         * modules/open (License): Change to LGPLv2+, with consent by all
17312         authors, for use in augeas.
17313         * modules/chown (License): Likewise.
17314         * modules/lchown (Likewise): Likewise.
17315         Requested by Adam Stokes.
17316
17317 2010-08-09  Karl Berry  <karl@gnu.org>
17318
17319         * build-aux/ar-lib: new file, import from Automake.
17320         * config/srclist.txt: autocheck for updates.
17321
17322 2010-08-09  Eric Blake  <eblake@redhat.com>
17323
17324         readlinkat: adjust client modules
17325         * modules/areadlinkat (Depends-on): Use readlinkat, not
17326         symlinkat.
17327         * modules/areadlinkat-with-size (Depends-on): Likewise.
17328
17329         mknod: be more vocal about danger of running tests as root
17330         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
17331         root, since that is just asking for problems.
17332         Suggested by Bruno Haible, based on a report by Rainer Tammer.
17333
17334         readlinkat: split into its own module
17335         * modules/symlinkat: Split readlinkat...
17336         * modules/readlinkat: ...into separate module.
17337         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
17338         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
17339         * lib/symlinkat.c (readlinkat): Move...
17340         * lib/readlinkat.c: ...into new file.
17341         * modules/symlinkat-tests: Split readlinkat test...
17342         * modules/readlinkat-tests: ...into separate module.
17343         * tests/test-symlinkat.c: Split...
17344         * tests/test-readlinkat.c: ...into new file.
17345         * NEWS: Document the split.
17346         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
17347         * lib/unistd.in.h (readlinkat): Likewise.
17348         Suggested by Bruno Haible.
17349
17350 2010-08-08  Bruno Haible  <bruno@clisp.org>
17351
17352         memxfrm: Speed up.
17353         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
17354         that usually only one call to strxfrm is necessary for each string
17355         part.
17356         Reported by Paul Eggert <eggert@cs.ucla.edu>.
17357
17358 2010-08-07  Karl Berry  <karl@gnu.org>
17359
17360         * doc/posix-headers/limits.texi,
17361         * doc/posix-functions/malloc.texi,
17362         * doc/posix-functions/strsignal.texi: missing @item.
17363         * doc/ld-version-script.texi: spurious leading i.
17364         * doc/regex.texi (Interval Operators): no commas inside @var.
17365
17366 2010-08-01  Bruno Haible  <bruno@clisp.org>
17367
17368         Integrate the regex documentation.
17369         * doc/gnulib.texi: Define 'cn' index.
17370         (Regular expressions): New a chapter that includes regex.texi and
17371         regexprops-generic.texi.
17372         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
17373         syntax.
17374
17375         Whitespace cleanup.
17376         * doc/regex.texi: Remove trailing spaces.
17377
17378         Add regex documentation.
17379         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
17380         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
17381         Written by Kathy A. Hargreaves and Karl Berry.
17382
17383 2010-08-01  Bruno Haible  <bruno@clisp.org>
17384
17385         link: Update documentation.
17386         * doc/posix-functions/link.texi: Update regarding Solaris.
17387
17388 2010-07-31  Bruno Haible  <bruno@clisp.org>
17389
17390         Update modules list.
17391         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
17392         (String handling <string.h>): Add memcmp2, memxfrm.
17393         (Container data structures): Add xlist, xsublist, xoset.
17394         (Core language properties): Add alignof, unused-parameter.
17395         (Process control, Numeric conversion functions <stdlib.h>): Renamed
17396         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
17397         (Unibyte characters <ctype.h>): New section.
17398         (String handling <string.h>): New section.
17399         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
17400         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
17401         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
17402         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
17403         tan, tanh, tanl, y0, y1, yn.
17404         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
17405         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
17406         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
17407         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
17408         unlockpt, vdprintf, vdprintf-posix.
17409         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
17410         (File system functions): Add concat-filename, sys_file, sys_ioctl,
17411         xconcat-filename.
17412         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
17413         getdtablesize, pipe2, pipe2-safer.
17414         (Security): New section.
17415         (Networking functions): Add accept4.
17416         (Signal handling): Add sigpipe.
17417         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
17418         mbmemcasecoll.
17419         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
17420         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
17421         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
17422         pipe-filter-ii.
17423         (Misc): Add argp-version-etc, login_tty, parse-duration.
17424
17425 2010-07-31  Bruno Haible  <bruno@clisp.org>
17426
17427         Improve doc in MODULES.html.
17428         * modules/linkat (Description): Add the word "function".
17429         * modules/mkfifo (Description): Likewise.
17430         * modules/mknod (Description): Likewise.
17431         * modules/remove (Description): Likewise.
17432         * modules/renameat (Description): Likewise.
17433         * modules/stat (Description): Likewise.
17434         * modules/symlink (Description): Likewise.
17435         * modules/unlink (Description): Likewise.
17436
17437 2010-07-31  Bruno Haible  <bruno@clisp.org>
17438
17439         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
17440         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
17441         option --enable/disable-c++ instead of --enable/disable-cxx.
17442         * NEWS: Mention the change.
17443
17444 2010-07-31  Bruno Haible  <bruno@clisp.org>
17445
17446         readlink, areadlink: Relax test a bit.
17447         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
17448         alternative to ENOTDIR.
17449         * tests/test-areadlink.h (test_areadlink): Likewise.
17450         Reported by Rainer Tammer.
17451
17452 2010-07-31  Bruno Haible  <bruno@clisp.org>
17453
17454         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
17455         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
17456         character, perform the search using U_STRCHR.
17457         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
17458         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
17459         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
17460         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
17461         Suggested by Paolo Bonzini.
17462
17463 2010-07-31  Bruno Haible  <bruno@clisp.org>
17464
17465         unistr/u*-strstr: Fix dependencies.
17466         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
17467         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
17468         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
17469
17470 2010-07-31  Bruno Haible  <bruno@clisp.org>
17471
17472         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
17473         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
17474         the beginning of the loop.
17475         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
17476         cases in 'switch' statement.
17477
17478         unistr/u8-strchr: Fix several bugs.
17479         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
17480         the string. When not found, return NULL, not a pointer near the end.
17481
17482         More tests for unistr/u8-strchr.
17483         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
17484         that the function does not read past the first occurrence of the byte
17485         being searched.
17486         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
17487         * tests/unistr/test-u16-strchr.c (main): New function.
17488         * tests/unistr/test-u32-strchr.c (main): New function.
17489
17490 2010-07-31  Bruno Haible  <bruno@clisp.org>
17491
17492         posix-modules: Ignore backup files of documentation files.
17493         * posix-modules: grep only through files named *.texi.
17494
17495 2010-07-31  Bruno Haible  <bruno@clisp.org>
17496
17497         symlinkat: Fix documentation.
17498         * doc/posix-functions/readlinkat.texi: Fix module name.
17499
17500 2010-07-31  Bruno Haible  <bruno@clisp.org>
17501
17502         fchownat: Replace also when chown has the trailing slash bug.
17503         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
17504         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
17505         introduced on 2010-04-10.
17506         Reported by Rainer Tammer.
17507
17508 2010-07-31  Bruno Haible  <bruno@clisp.org>
17509
17510         linkat: Work around AIX 7.1 bug.
17511         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
17512         whether linkat handles trailing slash correctly. If not, replace linkat
17513         and define LINKAT_TRAILING_SLASH_BUG.
17514         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
17515         check whether (fd1,file1) points to a directory if file1 or file2 ends
17516         in a slash. Code taken from lib/link.c.
17517         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
17518         Reported by Rainer Tammer.
17519
17520 2010-07-31  Bruno Haible  <bruno@clisp.org>
17521
17522         Correctly determine whether pow is available in libc on AIX 7 with xlc.
17523         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
17524         This disables an xlc optimization that was causing wrong test results.
17525         Reported by Rainer Tammer.
17526
17527 2010-07-31  Bruno Haible  <bruno@clisp.org>
17528
17529         iconv: Work around AIX 6.1..7.1 bug.
17530         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
17531         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
17532         cross-compiling, guess no on all versions of AIX.
17533         Reported by Rainer Tammer.
17534
17535 2010-07-31  Bruno Haible  <bruno@clisp.org>
17536
17537         readlink: Relax test a bit.
17538         * tests/test-readlink.h (test_readlink): Allow different errno value
17539         when readlink is called with a file name that ends in / and refers to
17540         a file.
17541         Suggested by Eric Blake.
17542         Reported by Rainer Tammer.
17543
17544 2010-07-31  Bruno Haible  <bruno@clisp.org>
17545
17546         copysign: Does not require -lm on glibc systems.
17547         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
17548         gl_COMMON_DOUBLE_MATHFUNC.
17549         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
17550
17551 2010-07-31  Bruno Haible  <bruno@clisp.org>
17552
17553         duplocale: Work around AIX 7.1 bug.
17554         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
17555         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
17556         * lib/duplocale.c (rpl_duplocale): Update comment.
17557         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
17558         Reported by Rainer Tammer.
17559
17560 2010-07-30  Bruno Haible  <bruno@clisp.org>
17561
17562         dirfd: Avoid link error on AIX 7.1.
17563         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
17564         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
17565         exist, set REPLACE_DIRFD.
17566         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
17567         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
17568         * doc/posix-functions/dirfd.texi: Update.
17569         Reported by Rainer Tammer.
17570
17571 2010-07-30  Eric Blake  <eblake@redhat.com>
17572
17573         strtod: next round of AIX fixes
17574         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
17575         exponent.
17576         * tests/test-strtod.c (main): Enhance tests.
17577         * doc/posix-functions/strtod.texi (strtod): Document next bug.
17578         Reported by Rainer Tammer.
17579
17580         futimens: fix configure check
17581         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
17582         Reported by Bruno Haible.
17583
17584 2010-07-30  Bruno Haible  <bruno@clisp.org>
17585
17586         getline: Update regarding AIX.
17587         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
17588         Reported by Rainer Tammer.
17589
17590 2010-07-30  Bruno Haible  <bruno@clisp.org>
17591
17592         wcwidth: Drop replacement on AIX 7.
17593         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
17594         AIX 7.
17595         Reported by Rainer Tammer.
17596
17597 2010-07-30  Bruno Haible  <bruno@clisp.org>
17598
17599         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
17600         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
17601         a 'char *'.
17602         Reported by Rainer Tammer.
17603
17604 2010-07-30  Bruno Haible  <bruno@clisp.org>
17605
17606         unlink: Update regarding AIX.
17607         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
17608         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
17609         Reported by Rainer Tammer.
17610
17611 2010-07-30  Bruno Haible  <bruno@clisp.org>
17612
17613         symlink: Update regarding AIX.
17614         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
17615         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
17616         Reported by Rainer Tammer.
17617
17618 2010-07-30  Bruno Haible  <bruno@clisp.org>
17619
17620         strndup: Update regarding AIX.
17621         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
17622         AIX 7.
17623         Reported by Rainer Tammer.
17624
17625 2010-07-30  Bruno Haible  <bruno@clisp.org>
17626
17627         stat: Update regarding AIX.
17628         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
17629         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
17630         Reported by Rainer Tammer.
17631
17632 2010-07-30  Bruno Haible  <bruno@clisp.org>
17633
17634         truncl: Fix autoconf test.
17635         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
17636         whether truncl works.
17637         Reported by Rainer Tammer.
17638
17639 2010-07-30  Bruno Haible  <bruno@clisp.org>
17640
17641         round: Update regarding AIX.
17642         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
17643         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
17644         Reported by Rainer Tammer.
17645
17646 2010-07-30  Bruno Haible  <bruno@clisp.org>
17647
17648         rename: Update regarding AIX.
17649         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
17650         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
17651         Reported by Rainer Tammer.
17652
17653 2010-07-30  Bruno Haible  <bruno@clisp.org>
17654
17655         printf.m4: Update regarding AIX.
17656         * m4/printf.m4: Update comments regarding AIX.
17657         Reported by Rainer Tammer.
17658
17659 2010-07-30  Bruno Haible  <bruno@clisp.org>
17660
17661         iconv: Update regarding AIX.
17662         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
17663         AIX 7.
17664         Reported by Rainer Tammer.
17665
17666 2010-07-30  Bruno Haible  <bruno@clisp.org>
17667
17668         getopt: Update regarding AIX.
17669         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
17670         no on AIX.
17671         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
17672         Reported by Rainer Tammer.
17673
17674 2010-07-30  Bruno Haible  <bruno@clisp.org>
17675
17676         ldexpl; Update regarding AIX.
17677         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
17678         on AIX 7.
17679         Reported by Rainer Tammer.
17680
17681 2010-07-30  Bruno Haible  <bruno@clisp.org>
17682
17683         frexpl: Update regarding AIX.
17684         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
17685         on AIX 7.
17686         Reported by Rainer Tammer.
17687
17688 2010-07-30  Bruno Haible  <bruno@clisp.org>
17689
17690         open, fopen: Update regarding AIX.
17691         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
17692         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
17693         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
17694         * doc/posix-functions/fopen.texi: Likewise.
17695         Reported by Rainer Tammer.
17696
17697 2010-07-30  Bruno Haible  <bruno@clisp.org>
17698
17699         chown: Update doc regarding AIX.
17700         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
17701         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
17702         Reported by Rainer Tammer.
17703
17704 2010-07-30  Eric Blake  <eblake@redhat.com>
17705
17706         strtod: fix bug in replacement function on AIX
17707         * lib/strtod.c (strtod): Special case broken "0x" parse in
17708         underlying strtod.
17709         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
17710         * doc/posix-functions/strtod.texi (strtod): Likewise.
17711         Reported by Rainer Tammer.
17712
17713 2010-07-30  Bruno Haible  <bruno@clisp.org>
17714
17715         mbrlen: Fix cross-compilation guess for AIX.
17716         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
17717         guess. Leftover from 2008-12-22.
17718
17719 2010-07-30  Bruno Haible  <bruno@clisp.org>
17720
17721         mbrtowc: Fix cross-compilation guess for AIX.
17722         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
17723         guess. Leftover from 2008-12-21.
17724
17725 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
17726
17727         init.sh: work around trap limitation of some shells
17728         * tests/init.sh (setup_): Move exit trap outside of shell function.
17729
17730 2010-07-29  Eric Blake  <eblake@redhat.com>
17731
17732         strtod: aid debugging
17733         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
17734         understanding why strtod is rejected.
17735
17736 2010-07-28  Bruno Haible  <bruno@clisp.org>
17737
17738         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
17739         * lib/unistr/u8-chr.c: Include <string.h>.
17740         * tests/unistr/test-u8-chr.c: Likewise.
17741         * tests/unistr/test-u16-chr.c: Likewise.
17742         * tests/unistr/test-u32-chr.c: Likewise.
17743         * tests/unistr/test-u8-strchr.c: Likewise.
17744         * tests/unistr/test-u16-strchr.c: Likewise.
17745         * tests/unistr/test-u32-strchr.c: Likewise.
17746         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
17747         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
17748         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
17749         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
17750
17751 2010-07-28  Bruno Haible  <bruno@clisp.org>
17752
17753         Use spaces for indentation, not tabs.
17754         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
17755
17756 2010-07-27  Bruno Haible  <bruno@clisp.org>
17757
17758         mbspcasecmp: Fix function specification.
17759         * lib/string.in.h (mbspcasecmp): Fix specification comment.
17760         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
17761         Reported by Eric Blake <eblake@redhat.com>.
17762
17763 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
17764
17765         timespec: use cast and not conditional, as truncation isn't possible
17766         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
17767         instead of a conditional.  Comment about the situation in more detail.
17768         This undoes most of the 2009-10-29 patch.
17769
17770 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
17771
17772         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
17773         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
17774         * lib/unistr/u8-strchr.c: Likewise.
17775         * modules/unistr/u8-chr: Depend on memchr.
17776
17777         unistr/u*-strchr: add tests
17778         * modules/unistr/u8-strchr-tests: New file.
17779         * modules/unistr/u16-strchr-tests: New file.
17780         * modules/unistr/u32-strchr-tests: New file.
17781         * tests/unistr/test-strchr.h: New file.
17782         * tests/unistr/test-u8-strchr.c: New file.
17783         * tests/unistr/test-u16-strchr.c: New file.
17784         * tests/unistr/test-u32-strchr.c: New file.
17785
17786         unistr/u*-chr: test multibyte sequences more
17787         * tests/unistr/test-chr.h: Do complete testing of the characters in the
17788         test vector.
17789         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
17790         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
17791         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
17792
17793         unistr/u*-chr: test multibyte sequences
17794         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
17795
17796         unistr/u*-chr: prepare for multibyte tests
17797         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
17798         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
17799         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
17800         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
17801         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
17802         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
17803
17804 2010-07-18  Bruno Haible  <bruno@clisp.org>
17805
17806         unistr/u8-strchr: Optimize non-ASCII argument case.
17807         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
17808         because the first byte often matches anyway.
17809         Reported by Pádraig Brady <P@draigbrady.com>.
17810
17811 2010-07-15  Karl Berry  <karl@gnu.org>
17812
17813         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
17814
17815 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
17816
17817         getcwd: on Solaris, work better if ancestors are inaccessible
17818         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
17819         buffer and size, try again with a large buffer.  This works better
17820         on Solaris, since its getcwd succeeds even if the path to the root
17821         is inaccessible, and this is helpful in common cases such as .zfs
17822         hidden directories.  Problem reported by J Chapman Flack in
17823         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
17824         Use system getcwd if it's declared, not merely if it's partly
17825         working; use the partly-working test only to avoid needless effort
17826         if the system getcwd fails.
17827         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
17828         comment that was already obsolete and is now even more obsolete.
17829         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
17830         now might call strdup.
17831
17832 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
17833
17834         pthread: Add enough so that coreutils/src/sort.c compiles.
17835         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
17836         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
17837         gnulib. Include <sched.h> and <time.h>, as per POSIX.
17838         Include <sys/types.h>, in case it defines pthread_t.
17839         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
17840         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
17841         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
17842         (pthread_rwlockattr_t, pthread_spinlock_t):
17843         New typedefs, if HAVE_PTHREAD_T is not defined.
17844         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
17845         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
17846         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
17847         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
17848         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
17849         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
17850         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
17851         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
17852         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
17853         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
17854         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
17855         New macros.
17856         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
17857         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
17858         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
17859         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
17860         (pthread_spin_unlock): New dummy functions.
17861         (pthread_create): Return EAGAIN; don't set errno.
17862         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
17863         require AC_C_INLINE.
17864         * modules/pthread (Depends-on): Add sched, time.
17865         (pthread.h): Use AM_V_GEN.
17866
17867 2010-07-13  Bruno Haible  <bruno@clisp.org>
17868
17869         striconveh: Don't malloc memory if the result buffer is sufficient.
17870         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
17871         buffer if its size is sufficient.
17872         Reported by Ludovic Courtès <ludo@gnu.org>.
17873
17874 2010-07-13  Bruno Haible  <bruno@clisp.org>
17875
17876         strtod: Add safety check.
17877         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
17878
17879 2010-07-12  Bruno Haible  <bruno@clisp.org>
17880
17881         Unify tests that set gl_cv_func_ldexpl_no_libm.
17882         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
17883         gl_FUNC_LDEXPL.
17884         (gl_FUNC_LDEXPL): Invoke it.
17885         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
17886
17887 2010-07-12  Bruno Haible  <bruno@clisp.org>
17888
17889         Unify tests that set gl_cv_func_ldexp_no_libm.
17890         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
17891         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
17892         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
17893         (configure.ac): Simply invoke gl_FUNC_LDEXP.
17894         * modules/strtod (Files): Add m4/ldexp.m4.
17895
17896 2010-07-12  Bruno Haible  <bruno@clisp.org>
17897
17898         Unify tests that set gl_cv_func_frexpl_no_libm.
17899         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
17900         gl_FUNC_FREXPL_NO_LIBM.
17901         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
17902         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
17903
17904 2010-07-12  Bruno Haible  <bruno@clisp.org>
17905
17906         Unify tests that set gl_cv_func_frexp_no_libm.
17907         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
17908         gl_FUNC_FREXP_NO_LIBM.
17909         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
17910         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
17911
17912 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
17913
17914         memcoll: clarify sizes versus lengths, document better, and tweak perf
17915         * lib/memcoll.c (strcoll_loop, memcoll0):
17916         Improve quality of descriptive comments.  Name variables
17917         consistently as to whether they are lengths (which do not include
17918         terminating null) versus sizes (which do).
17919         * lib/xmemcoll.c (xmemcoll0): Likewise.
17920         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
17921         returned when s1size == 0; this is easier to compile and saves
17922         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
17923
17924 2010-07-12  Bruno Haible  <bruno@clisp.org>
17925
17926         Tests for module '_Exit'.
17927         * modules/_Exit-tests: New file.
17928         * tests/test-_Exit.sh: New file.
17929         * tests/test-_Exit.c: New file.
17930
17931         New module '_Exit'.
17932         * lib/stdlib.in.h (__attribute__): New macro.
17933         (_Exit): New declaration.
17934         * lib/_Exit.c: New file.
17935         * m4/_Exit.m4: New file.
17936         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
17937         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
17938         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
17939         * modules/_Exit: New file.
17940         * tests/test-stdlib-c++.cc (_Exit): Check signature.
17941         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
17942
17943 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
17944
17945         strtod: make it more-accurate typically, and don't require libm
17946         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
17947         Include limits.h.  Don't include string.h.
17948         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
17949         (locale_isspace): New function, so that no casts are needed to
17950         check whether *s is a space.
17951         (ldexp): Provide an unused dummy if not available.
17952         (scale_radix_exp, parse_number, underlying_strtod): New functions.
17953         (strtod): Use them.  This implementation prefers to use the
17954         underlying strtod if available, falling back on our own code
17955         only to fix known bugs.  This is more likely to produce an
17956         accurate result.  Also, it avoids the use of libm functions.
17957         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
17958         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
17959         was absent, but it caused a test failure with coreutils.
17960         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
17961         with libm.
17962         * modules/strtod (Makefile.am, Link): libm is no longer needed.
17963         * modules/strtod-tests (Makefile.am): Likewise.
17964
17965 2010-07-11  Pádraig Brady  <P@draigBrady.com>
17966             Bruno Haible  <bruno@clisp.org>
17967
17968         unistr/u8-strchr: Optimize ASCII argument case.
17969         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
17970
17971 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
17972
17973         (x)memcoll: minor tweaks
17974         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
17975         is after the type that it qualifies.
17976         (memcoll0): Likewise.
17977         * lib/memcoll.h (memcoll0): Likewise.
17978         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
17979         * lib/xmemcoll.h (xmemcoll0): Likewise.
17980         * lib/memcoll.c (memcoll0): Correct the comment.  This function
17981         differs from memcoll in that the NUL byte is part of the argument.
17982         Omit the abort-checks, as performance is a real issue here.  Plus,
17983         the checks were wrong anyway (an off-by-one error).  Omit local
17984         variable 'diff', as it's a bit clearer that way.
17985         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
17986         no longer needed.
17987
17988 2010-07-08  Chen Guo <chenguo4@yahoo.com>
17989
17990         (x)memcoll: speedup when input is known to be NUL delimited
17991         * lib/memcoll.c: Include stdlib.
17992         (memcoll0): New function.
17993         (strcoll_loop): New function, refactored for use in both memcoll
17994         and memcoll0.
17995         * lib/memcoll.h (memcoll0): Add prototype.
17996         * lib/xmemcoll.c (xmemcoll0): New function.
17997         (collate_error): New function, refactored for use in both xmemcoll
17998         and xmemcoll0.
17999         * lib/xmemcoll.h (xmemcoll0): Add prototype.
18000         * m4/memcoll.m4: add inline invocation.
18001
18002 2010-07-06  Pádraig Brady  <P@draigBrady.com>
18003
18004         * build-aux/bootstrap: Remove any local translations
18005         from the translation project synchronization directory,
18006         so that local only translations are not distributed.
18007
18008 2010-07-04  Bruno Haible  <bruno@clisp.org>
18009
18010         fsusage: Clarify which code applies to which platforms.
18011         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
18012         platform.
18013         * lib/fsusage.c (get_fs_usage): Likewise.
18014
18015 2010-07-04  Bruno Haible  <bruno@clisp.org>
18016
18017         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
18018         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
18019         Reported by Martin Lambers <marlam@marlam.de>.
18020
18021 2010-07-04  Jim Meyering  <meyering@redhat.com>
18022
18023         hash: once again explicitly disallow insertion of NULL
18024         * lib/hash.c (hash_insert0): Reinstate just-removed test:
18025         inserting a NULL pointer cannot work with these functions.
18026         Add a comment with details.
18027         This reverts part of the 2010-07-01 commit, 5bef1a35
18028         "hash: extend module to deal with non-pointer keys".
18029
18030 2010-07-01  Bruno Haible  <bruno@clisp.org>
18031
18032         stdbool: Update doc.
18033         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
18034         Info from Christian Weisgerber <naddy@mips.inka.de>.
18035
18036 2010-07-01  Jim Meyering  <meyering@redhat.com>
18037
18038         hash: extend module to deal with non-pointer keys
18039         * lib/hash.c (hash_insert0): New interface, much like hash_insert
18040         but that allows insertion of non-pointer entries.
18041         Do not disallow an ENTRY value of NULL.
18042         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
18043         * lib/hash.h (hash_insert0): Declare.
18044
18045 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
18046
18047         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
18048         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
18049         not present (i.e. with autoconf 2.59 and when using gettextize, not
18050         gnulib), require AC_GNU_SOURCE instead.
18051
18052 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
18053
18054         idpriv-drop: Fix tests.
18055         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
18056         not to the test-idpriv-droptemp program.
18057
18058 2010-06-29  Bruno Haible  <bruno@clisp.org>
18059
18060         string: Fix syntax error with g++ 2.96.
18061         * lib/string.in.h (__pure__): Remove definition.
18062         (_GL_ATTRIBUTE_PURE): New macro.
18063         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
18064         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
18065         Reported by Christian Weisgerber <naddy@mips.inka.de>.
18066
18067 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
18068
18069         unitypes: Fix bug introduced on 2010-05-18.
18070         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
18071
18072 2010-06-22  Eric Blake  <eblake@redhat.com>
18073
18074         memmem: slight optimization
18075         * lib/str-two-way.h (critical_factorization): Update comments.
18076         Reduce work during factorization phase.
18077         Reported by Carlos Bueno <carlos@bueno.org>.
18078
18079 2010-06-21  Bruno Haible  <bruno@clisp.org>
18080
18081         Fix HAVE_CALLOC_POSIX misnomer.
18082         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
18083         !HAVE_CALLOC_POSIX.
18084         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
18085         HAVE_CALLOC_POSIX.
18086         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
18087         instead of HAVE_CALLOC_POSIX.
18088         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
18089         HAVE_CALLOC_POSIX.
18090
18091         Use modern idiom for calloc() replacement.
18092         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
18093         AC_FUNC_CALLOC.
18094         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
18095         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
18096         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
18097         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
18098         (gl_REPLACE_CALLOC): New macro.
18099
18100 2010-06-21  Bruno Haible  <bruno@clisp.org>
18101
18102         Fix HAVE_REALLOC_POSIX misnomer.
18103         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
18104         !HAVE_REALLOC_POSIX.
18105         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
18106         HAVE_REALLOC_POSIX.
18107         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
18108         instead of HAVE_REALLOC_POSIX.
18109         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
18110         HAVE_REALLOC_POSIX.
18111
18112         Use modern idiom for realloc() replacement.
18113         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
18114         AC_FUNC_REALLOC.
18115         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
18116         Autoconf's AC_FUNC_REALLOC.
18117         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
18118         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
18119         (gl_REPLACE_REALLOC): New macro.
18120         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
18121
18122 2010-06-21  Bruno Haible  <bruno@clisp.org>
18123
18124         Fix HAVE_MALLOC_POSIX misnomer.
18125         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
18126         !HAVE_MALLOC_POSIX.
18127         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
18128         HAVE_MALLOC_POSIX.
18129         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
18130         instead of HAVE_MALLOC_POSIX.
18131         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
18132         HAVE_MALLOC_POSIX.
18133
18134         Use modern idiom for malloc() replacement.
18135         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
18136         AC_FUNC_MALLOC.
18137         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
18138         Autoconf's AC_FUNC_MALLOC.
18139         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
18140         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
18141         (gl_REPLACE_MALLOC): New macro.
18142         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
18143
18144 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
18145
18146         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
18147         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
18148         This macro takes 3 arguments, not 4.
18149
18150 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
18151
18152         ipv6: fix detection under mingw
18153         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
18154         in6_addr.
18155
18156 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
18157
18158         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
18159         that strtod() works when cross-compiling to a glibc version known
18160         to work.
18161
18162 2010-06-15  Bruno Haible  <bruno@clisp.org>
18163
18164         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
18165
18166 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
18167
18168         select: Correct timeout.
18169         * lib/select.c (rpl_select): Compute wait_timeout correctly.
18170
18171 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
18172
18173         git-version-gen: init shell var to avoid env var influence
18174         * build-aux/git-version-gen (v): Init shell var to empty.
18175
18176 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
18177
18178         priv-set: Don't assume that priv.h exists merely because getppriv does.
18179         See Jan Andersen's bug report about AIX 5L in
18180         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
18181         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
18182         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
18183         * lib/priv-set.h: Likewise.
18184         * tests/test-priv-set.c: Likewise.
18185
18186 2010-06-13  Bruno Haible  <bruno@clisp.org>
18187
18188         relocatable: Make it easier to test whether to install wrappers.
18189         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
18190         RELOCATABLE_VIA_WRAPPER.
18191
18192 2010-06-13  Bruno Haible  <bruno@clisp.org>
18193
18194         gnulib-tool: Display specified modules and dependencies differently.
18195         * gnulib-tool (func_show_module_list): New function.
18196         (func_import, func_create_testdir): Invoke it.
18197         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
18198
18199 2010-06-13  Bruno Haible  <bruno@clisp.org>
18200
18201         gnulib-tool: Align code of func_import and func_create_testdir.
18202         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
18203         specified_modules.
18204
18205 2010-06-12  Jim Meyering  <meyering@redhat.com>
18206
18207         test-inttostr: avoid spurious failure on Solaris 9
18208         * tests/test-inttostr.c (main): Skip the test when snprintf fails
18209         to accept "%ju".  Reported by Bruno Haible.
18210
18211 2010-06-11  Jim Meyering  <meyering@redhat.com>
18212
18213         test-sys_socket: mark variables as used more readably
18214         * tests/test-sys_socket.c (main): Mark otherwise unused variables
18215         as "used" explicitly via (void) statement casts.  This is more
18216         readable than using them in an artificial return expression.
18217         Suggestion from Bruno Haible.
18218
18219 2010-06-11  Bruno Haible  <bruno@clisp.org>
18220
18221         Avoid some more warnings from "gcc -Wwrite-strings".
18222         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
18223         to 'const char *'.
18224         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
18225         * tests/test-c-strcasestr.c (main): Likewise.
18226         * tests/test-mbscasestr1.c (main): Likewise.
18227         * tests/test-mbscasestr2.c (main): Likewise.
18228         * tests/test-memmem.c (main): Likewise.
18229         * tests/test-strstr.c (main): Likewise.
18230         * tests/test-strcasestr.c (main): Likewise.
18231
18232 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18233
18234         init.sh: change framework_failure_ to fail with status 99, not 1
18235         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
18236         automake's parallel-tests rule that this is an unexpected failure,
18237         even if the test is listed in XFAIL_TESTS.
18238
18239 2010-06-11  Jim Meyering  <meyering@redhat.com>
18240
18241         test-inttostr: avoid warnings about 4-6KB literal strings
18242         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
18243         Include "macros.h", for its definition of ASSERT.
18244         (CK): s/assert/ASSERT/
18245         * modules/inttostr-tests (Files): Add macros.h.
18246
18247         init.sh: don't use $ME_ or skip_ before they are defined
18248         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
18249         their first uses.  Also hoist their companions: warn_, fail_,
18250         framework_failure_, $stderr_fileno.  Prompted by a patch from
18251         Stefano Lattarini.
18252
18253         test-sys_socket: avoid set-but-not-used warnings from gcc
18254         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
18255         avoid warning about set-but-not-used variables.
18256
18257         test-xvasprintf: avoid 'const' discard warnings
18258         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
18259         "const" when assigning from literal strings.
18260         (test_xasprintf): Add "void" in function argument list to placate
18261         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
18262
18263         tests: avoid compilation warnings in argmatch and exclude tests...
18264         in packages that define ARGMATCH_DIE_DECL, like coreutils.
18265         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
18266         Since it always exits, declare with the "noreturn" attribute.
18267         * tests/test-argmatch.c: Likewise.
18268
18269         tests: avoid 'const' discard warnings in mbsstr tests
18270         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
18271         * tests/test-mbsstr2.c (main): Likewise.
18272
18273         test-verify: avoid warning from gcc's -Wmissing-declarations
18274         * tests/test-verify.c (function): Declare to be static.
18275
18276         test-inttostr.c: include <string.h> for use of strcmp
18277         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
18278
18279         test-linkat: avoid failed assertion on "other" architectures
18280         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
18281         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
18282         sparc: https://bugs.launchpad.net/bugs/591968
18283
18284 2010-06-11  Jim Meyering  <meyering@redhat.com>
18285
18286         printf.m4: avoid autoconf's "Expanded Before Required" warning
18287         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
18288         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
18289         autoconf warning.
18290
18291 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
18292
18293         Replacement header templates are now named with ".in", not "_".
18294         * doc/gnulib-intro.texi: Correct.
18295
18296 2010-06-10  Jim Meyering  <meyering@redhat.com>
18297
18298         inttostr-tests: depend on snprintf, not snprintf-posix
18299         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
18300         snprintf-posix, to avoid this aclocal failure:
18301           missing file gnulib-tests/vasnprintf.c
18302           configure.ac:45: error: expected source file, required through \
18303           AC_LIBSOURCES, not found
18304
18305 2010-06-10  Jim Meyering  <meyering@redhat.com>
18306
18307         inttostr: add a new function, inttostr, and tests
18308         The namesake function was not available.  The existence of the
18309         template file, inttostr.c makes its addition nontrivial.
18310         * lib/anytostr.c: Rename from inttostr.c.
18311         (anytostr): Rename from inttostr.
18312         * lib/inttostr.c: New file.
18313         * modules/inttostr (Files): Add anytostr.c.
18314         (Makefile.am): Set lib_SOURCES instead of ...
18315         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
18316         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
18317         * lib/offtostr.c: Likewise.
18318         * lib/uinttostr.c: Likewise.
18319         * lib/umaxtostr.c: Likewise.
18320         * modules/inttostr-tests: New file.
18321         * tests/test-inttostr.c: New file.  Test these functions.
18322
18323 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
18324             Bruno Haible  <bruno@clisp.org>
18325
18326         Add "Extending Gnulib" chapter to manual.
18327         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
18328         chapter.
18329         (Extending Gnulib): New chapter.
18330         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
18331         chapter.
18332
18333 2010-06-09  Bruno Haible  <bruno@clisp.org>
18334
18335         Avoid relocwrapper link errors due to gnulib replacement functions.
18336         * lib/areadlink.c: Use the system's malloc, realloc functions.
18337         (areadlink): Set errno to ENOMEM explicitly.
18338         * modules/areadlink (Depends-on): Remove malloc-posix.
18339         Reported by Ben Pfaff <blp@cs.stanford.edu>.
18340
18341 2010-06-09  Bruno Haible  <bruno@clisp.org>
18342
18343         Avoid relocwrapper link errors due to gnulib replacement functions.
18344         * lib/canonicalize-lgpl.c: Use the system's malloc function.
18345         * lib/malloca.c: Likewise.
18346         * lib/relocatable.c: Likewise.
18347         * lib/progreloc.c: Use the system's malloc, sprintf functions.
18348         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
18349         * lib/setenv.c: Use the system's malloc, realloc functions.
18350         * lib/strerror.c: Use the system's sprintf function.
18351         Reported by Ben Pfaff <blp@cs.stanford.edu>.
18352
18353 2010-06-04  Bruno Haible  <bruno@clisp.org>
18354
18355         Prefer documented low-level autoconf macro names.
18356         * m4/lib-link.m4: Use m4_translit instead of translit.
18357         * m4/environ.m4: Likewise.
18358         * m4/mathfunc.m4: Likewise.
18359         * m4/onceonly.m4: Likewise.
18360         * m4/stdint.m4: Likewise.
18361         Suggested by Eric Blake.
18362
18363 2010-06-04  Martin Lambers  <marlam@marlam.de>
18364             Bruno Haible  <bruno@clisp.org>
18365
18366         havelib: Allow library names with '+' characters.
18367         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
18368         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
18369
18370 2010-06-09  Bruno Haible  <bruno@clisp.org>
18371
18372         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
18373         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
18374         realloc failed.
18375
18376 2010-06-08  Peter Simons  <simons@cryp.to>
18377
18378         maint.mk: make the news-check rule more configurable
18379         * top/maint.mk (news-check-lines-spec): New variable.
18380         (news-check): Use "sed -n 1,10p" in place of "head".
18381
18382 2010-06-07  Jim Meyering  <meyering@redhat.com>
18383
18384         do-release-commit-and-tag: fix typo in --help
18385         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
18386
18387         regex: avoid new dead-code warning with gcc-4.6.0
18388         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
18389         if-block containing a while-loop.  It's been unused for at least
18390         5 years.
18391
18392 2010-06-05  Bruno Haible  <bruno@clisp.org>
18393
18394         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
18395         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
18396
18397 2010-06-04  Bruno Haible  <bruno@clisp.org>
18398
18399         Update to GNU gettext 0.18.1.
18400         * modules/gettext (configure.ac): Require gettext infrastructure from
18401         version 0.18.1.
18402
18403 2010-06-03  Bruno Haible  <bruno@clisp.org>
18404
18405         Don't use AC_LIBOBJ with file names in subdirectories.
18406         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
18407         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
18408         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
18409         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
18410         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
18411         gl_LIBUNISTRING_LIBSOURCE.
18412         (Makefile.am): Augment lib_SOURCES here, conditionally.
18413         * NEWS: Drop requirement for Automake option 'subdir-objects'.
18414
18415 2010-06-03  Bruno Haible  <bruno@clisp.org>
18416
18417         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
18418         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
18419         expansion does not end with a newline.
18420         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
18421         unnecessary newline.
18422
18423 2010-06-03  Bruno Haible  <bruno@clisp.org>
18424
18425         Reduce dependencies.
18426         * tests/test-quotearg.h: New file, extracted from
18427         tests/test-quotearg.c.
18428         * tests/test-quotearg-simple.c: New file, extracted from
18429         tests/test-quotearg.c.
18430         * tests/test-quotearg.c: Don't include <ctype.h>.
18431         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
18432         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
18433         use_quote_double_quotes, use_quotearg_colon): Moved to
18434         tests/test-quotearg.h.
18435         (results_g, flag_results, custom_quotes, custom_results): Moved
18436         to tests/test-quotearg-simple.c.
18437         (main): Moved the part that does not depend on gettext to
18438         tests/test-quotearg-simple.c. Return 77 if the test cannot be
18439         performed.
18440         * modules/quotearg-simple: New file.
18441         * modules/quotearg-simple-tests: New file.
18442         * modules/quotearg (Depends-on): Add quotearg-simple.
18443         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
18444         (Files): Add tests/test-quotearg.h.
18445         Reported by Paolo Bonzini.
18446
18447 2010-06-03  Bruno Haible  <bruno@clisp.org>
18448
18449         Reduce dependencies.
18450         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
18451
18452 2010-06-03  Bruno Haible  <bruno@clisp.org>
18453
18454         time: Undefine more broken macros.
18455         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
18456         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
18457         Reported by Eric Blake.
18458
18459 2010-06-03  Bruno Haible  <bruno@clisp.org>
18460
18461         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
18462         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
18463         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
18464         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
18465         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
18466         Reported by Ludovic Courtès <ludo@gnu.org>.
18467
18468 2010-06-02  Eric Blake  <eblake@redhat.com>
18469
18470         time: work with mingw + pthreads-win32 library
18471         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
18472         if timespec is defined only in pthread.h.
18473         * modules/time (Makefile.am): Substitute it.
18474         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
18475         <pthread.h>, when needed.
18476         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
18477         from the library.
18478
18479 2010-05-31  Bruno Haible  <bruno@clisp.org>
18480
18481         Avoid expanding two macros in the wrong order.
18482         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
18483         gl_LIBUNISTRING if it is defined.
18484         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
18485         autoconf >= 2.64.
18486         Reported by Ludovic Courtès <ludo@gnu.org>.
18487
18488 2010-05-27  Jim Meyering  <meyering@redhat.com>
18489
18490         maint.mk: also prohibit "#undef" of always-defined symbols
18491         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
18492         Allow more than one space before the symbol name.
18493         (sc_prohibit_always-defined_macros): Use grep's -E, now that
18494         the regexp uses alternation.
18495
18496 2010-05-26  Eric Blake  <eblake@redhat.com>
18497
18498         maint.mk: avoid echo -e
18499         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
18500         Convert all uses of echo -* to printf.
18501         Reported by Matthias Bolte.
18502
18503 2010-05-25  Bruno Haible  <bruno@clisp.org>
18504
18505         Update to GNU gettext 0.18, part 2.
18506         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
18507         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
18508
18509 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18510
18511         Add missing include in test-pwrite.c.
18512         * tests/test-pwrite.c: Include string.h, for strcmp.
18513
18514 2010-05-24  Bruno Haible  <bruno@clisp.org>
18515
18516         * NEWS: Mention requirement for Automake option 'subdir-objects'.
18517
18518 2010-05-24  Bruno Haible  <bruno@clisp.org>
18519
18520         Don't use conversion with transliteration in u{8,16,32}_strcoll.
18521         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
18522         iconveh_error argument.
18523         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
18524         U_STRCONV_TO_LOCALE.
18525         * lib/unistr/u16-strcoll.c: Likewise.
18526         * lib/unistr/u32-strcoll.c: Likewise.
18527         * modules/unistr/u8-strcoll (Depends-on): Add
18528         uniconv/u8-strconv-to-enc, localcharset. Remove
18529         uniconv/u8-strconv-to-locale.
18530         (configure.ac): Bump version number.
18531         * modules/unistr/u16-strcoll (Depends-on): Add
18532         uniconv/u16-strconv-to-enc, localcharset. Remove
18533         uniconv/u16-strconv-to-locale.
18534         (configure.ac): Bump version number.
18535         * modules/unistr/u32-strcoll (Depends-on): Add
18536         uniconv/u32-strconv-to-enc, localcharset. Remove
18537         uniconv/u32-strconv-to-locale.
18538         (configure.ac): Bump version number.
18539
18540 2010-05-24  Bruno Haible  <bruno@clisp.org>
18541
18542         Avoid a test failure on NetBSD 5.0.
18543         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
18544         an iconv() bug.
18545
18546 2010-05-24  Bruno Haible  <bruno@clisp.org>
18547
18548         Adjust #include directive style.
18549         * modules/regex (Includes): Recommend to write <regex.h>.
18550
18551 2010-05-24  Bruno Haible  <bruno@clisp.org>
18552
18553         regex: Don't require alloca.
18554         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
18555         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
18556         only inside if (0).
18557
18558 2010-05-23  Jim Meyering  <meyering@redhat.com>
18559
18560         test-renameat.c: include <sys/stat.h>
18561         * tests/test-renameat.c: Include <sys/stat.h>; required for
18562         definition of S_IS* macros.
18563
18564 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
18565
18566         Update maintainer documentation for 'relocatable-prog' module.
18567         * doc/relocatable-maint.texi: Update.
18568         Comments by Bruno Haible.
18569
18570 2010-05-23  Bruno Haible  <bruno@clisp.org>
18571
18572         git-merge-changelog: Enable --split-merged-entry by default.
18573         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
18574         (usage): Don't mention this option any more.
18575         Reported by Ralf Wildenhues.
18576
18577 2010-05-23  Jim Meyering  <meyering@redhat.com>
18578
18579         test-pwrite: do not leave behind a test file named "out"
18580         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
18581         The trivial-looking use of init.sh is really necessary.
18582         It ensures that the temporary file, "out", is created in
18583         a temporary directory, and removed upon termination.
18584         * tests/test-pwrite.sh: Re-add file.
18585         * modules/pwrite-tests: Reference it.
18586
18587 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18588
18589         Fix output redirection buglet in init.sh.
18590         * tests/init.sh: Fix redirection of stderr.
18591
18592 2010-05-20  Simon Josefsson  <simon@josefsson.org>
18593
18594         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
18595
18596 2010-05-17  Simon Josefsson  <simon@josefsson.org>
18597
18598         * modules/valgrind-tests: New file.
18599         * m4/valgrind-tests.m4: New file.
18600         * doc/valgrind-tests.texi: New file.
18601         * doc/gnulib.texi (Running self-tests under valgrind): New
18602         section.
18603
18604 2010-05-19  Bruno Haible  <bruno@clisp.org>
18605
18606         Clean up dead code in recent commit.
18607         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
18608         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
18609         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
18610         Suggested by Paolo Bonzini.
18611
18612 2010-05-19  Bruno Haible  <bruno@clisp.org>
18613
18614         Avoid valgrind error reports from libunistring.
18615         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
18616         * modules/libunistring (Files): Add it.
18617         * modules/libunistring-optional (Files): Likewise.
18618
18619 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
18620             Bruno Haible  <bruno@clisp.org>
18621
18622         New module 'libunistring-optional'.
18623         * modules/libunistring-optional: New file.
18624         * m4/libunistring-base.m4: New file.
18625         * m4/libunistring-optional.m4: New file.
18626         * lib/unicase.in.h: Renamed from lib/unicase.h.
18627         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
18628         * lib/unictype.in.h: Renamed from lib/unictype.h.
18629         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
18630         * lib/uniname.in.h: Renamed from lib/uniname.h.
18631         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
18632         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
18633         * lib/unistr.in.h: Renamed from lib/unistr.h.
18634         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
18635         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
18636         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
18637         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
18638         gl_LIBUNISTRING. If the library was found, determine the installed
18639         version and set LIBUNISTRING_VERSION.
18640         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
18641         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
18642         handle a configuration option --with-included-libunistring.
18643         * modules/libunistring (Files): Add m4/absolute-header.m4.
18644         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
18645         Add m4/libunistring-base.m4.
18646         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18647         (Makefile.am): Build unicase.h from unicase.in.h.
18648         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
18649         Add m4/libunistring-base.m4.
18650         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18651         (Makefile.am): Build uniconv.h from uniconv.in.h.
18652         * modules/unictype/base (Files): Use unictype.in.h instead of
18653         unictype.h. Add m4/libunistring-base.m4.
18654         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18655         (Makefile.am): Build unictype.h from unictype.in.h.
18656         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
18657         Add m4/libunistring-base.m4.
18658         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18659         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
18660         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
18661         Add m4/libunistring-base.m4.
18662         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18663         (Makefile.am): Build uniname.h from uniname.in.h.
18664         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
18665         Add m4/libunistring-base.m4.
18666         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18667         (Makefile.am): Build uninorm.h from uninorm.in.h.
18668         * modules/unistdio/base (Files): Use unistdio.in.h instead of
18669         unistdio.h. Add m4/libunistring-base.m4.
18670         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18671         (Makefile.am): Build unistdio.h from unistdio.in.h.
18672         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
18673         Add m4/libunistring-base.m4.
18674         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18675         (Makefile.am): Build unistr.h from unistr.in.h.
18676         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
18677         Add m4/libunistring-base.m4.
18678         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18679         (Makefile.am): Build unitypes.h from unitypes.in.h.
18680         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
18681         Add m4/libunistring-base.m4.
18682         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18683         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
18684         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
18685         uniwidth.h. Add m4/libunistring-base.m4.
18686         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18687         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
18688         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
18689         instead of augmenting lib_SOURCES.
18690         * modules/unicase/empty-suffix-context: Likewise.
18691         * modules/unicase/locale-language: Likewise.
18692         * modules/unicase/tolower: Likewise.
18693         * modules/unicase/totitle: Likewise.
18694         * modules/unicase/toupper: Likewise.
18695         * modules/unicase/u8-casecmp: Likewise.
18696         * modules/unicase/u8-casecoll: Likewise.
18697         * modules/unicase/u8-casefold: Likewise.
18698         * modules/unicase/u8-casexfrm: Likewise.
18699         * modules/unicase/u8-ct-casefold: Likewise.
18700         * modules/unicase/u8-ct-tolower: Likewise.
18701         * modules/unicase/u8-ct-totitle: Likewise.
18702         * modules/unicase/u8-ct-toupper: Likewise.
18703         * modules/unicase/u8-is-cased: Likewise.
18704         * modules/unicase/u8-is-casefolded: Likewise.
18705         * modules/unicase/u8-is-lowercase: Likewise.
18706         * modules/unicase/u8-is-titlecase: Likewise.
18707         * modules/unicase/u8-is-uppercase: Likewise.
18708         * modules/unicase/u8-prefix-context: Likewise.
18709         * modules/unicase/u8-suffix-context: Likewise.
18710         * modules/unicase/u8-tolower: Likewise.
18711         * modules/unicase/u8-totitle: Likewise.
18712         * modules/unicase/u8-toupper: Likewise.
18713         * modules/unicase/u16-casecmp: Likewise.
18714         * modules/unicase/u16-casecoll: Likewise.
18715         * modules/unicase/u16-casefold: Likewise.
18716         * modules/unicase/u16-casexfrm: Likewise.
18717         * modules/unicase/u16-ct-casefold: Likewise.
18718         * modules/unicase/u16-ct-tolower: Likewise.
18719         * modules/unicase/u16-ct-totitle: Likewise.
18720         * modules/unicase/u16-ct-toupper: Likewise.
18721         * modules/unicase/u16-is-cased: Likewise.
18722         * modules/unicase/u16-is-casefolded: Likewise.
18723         * modules/unicase/u16-is-lowercase: Likewise.
18724         * modules/unicase/u16-is-titlecase: Likewise.
18725         * modules/unicase/u16-is-uppercase: Likewise.
18726         * modules/unicase/u16-prefix-context: Likewise.
18727         * modules/unicase/u16-suffix-context: Likewise.
18728         * modules/unicase/u16-tolower: Likewise.
18729         * modules/unicase/u16-totitle: Likewise.
18730         * modules/unicase/u16-toupper: Likewise.
18731         * modules/unicase/u32-casecmp: Likewise.
18732         * modules/unicase/u32-casecoll: Likewise.
18733         * modules/unicase/u32-casefold: Likewise.
18734         * modules/unicase/u32-casexfrm: Likewise.
18735         * modules/unicase/u32-ct-casefold: Likewise.
18736         * modules/unicase/u32-ct-tolower: Likewise.
18737         * modules/unicase/u32-ct-totitle: Likewise.
18738         * modules/unicase/u32-ct-toupper: Likewise.
18739         * modules/unicase/u32-is-cased: Likewise.
18740         * modules/unicase/u32-is-casefolded: Likewise.
18741         * modules/unicase/u32-is-lowercase: Likewise.
18742         * modules/unicase/u32-is-titlecase: Likewise.
18743         * modules/unicase/u32-is-uppercase: Likewise.
18744         * modules/unicase/u32-prefix-context: Likewise.
18745         * modules/unicase/u32-suffix-context: Likewise.
18746         * modules/unicase/u32-tolower: Likewise.
18747         * modules/unicase/u32-totitle: Likewise.
18748         * modules/unicase/u32-toupper: Likewise.
18749         * modules/unicase/ulc-casecmp: Likewise.
18750         * modules/unicase/ulc-casecoll: Likewise.
18751         * modules/unicase/ulc-casexfrm: Likewise.
18752         * modules/uniconv/u8-conv-from-enc: Likewise.
18753         * modules/uniconv/u8-conv-to-enc: Likewise.
18754         * modules/uniconv/u8-strconv-from-enc: Likewise.
18755         * modules/uniconv/u8-strconv-from-locale: Likewise.
18756         * modules/uniconv/u8-strconv-to-enc: Likewise.
18757         * modules/uniconv/u8-strconv-to-locale: Likewise.
18758         * modules/uniconv/u16-conv-from-enc: Likewise.
18759         * modules/uniconv/u16-conv-to-enc: Likewise.
18760         * modules/uniconv/u16-strconv-from-enc: Likewise.
18761         * modules/uniconv/u16-strconv-from-locale: Likewise.
18762         * modules/uniconv/u16-strconv-to-enc: Likewise.
18763         * modules/uniconv/u16-strconv-to-locale: Likewise.
18764         * modules/uniconv/u32-conv-from-enc: Likewise.
18765         * modules/uniconv/u32-conv-to-enc: Likewise.
18766         * modules/uniconv/u32-strconv-from-enc: Likewise.
18767         * modules/uniconv/u32-strconv-from-locale: Likewise.
18768         * modules/uniconv/u32-strconv-to-enc: Likewise.
18769         * modules/uniconv/u32-strconv-to-locale: Likewise.
18770         * modules/unictype/bidicategory-byname: Likewise.
18771         * modules/unictype/bidicategory-name: Likewise.
18772         * modules/unictype/bidicategory-of: Likewise.
18773         * modules/unictype/bidicategory-test: Likewise.
18774         * modules/unictype/block-list: Likewise.
18775         * modules/unictype/block-test: Likewise.
18776         * modules/unictype/category-C: Likewise.
18777         * modules/unictype/category-Cc: Likewise.
18778         * modules/unictype/category-Cf: Likewise.
18779         * modules/unictype/category-Cn: Likewise.
18780         * modules/unictype/category-Co: Likewise.
18781         * modules/unictype/category-Cs: Likewise.
18782         * modules/unictype/category-L: Likewise.
18783         * modules/unictype/category-Ll: Likewise.
18784         * modules/unictype/category-Lm: Likewise.
18785         * modules/unictype/category-Lo: Likewise.
18786         * modules/unictype/category-Lt: Likewise.
18787         * modules/unictype/category-Lu: Likewise.
18788         * modules/unictype/category-M: Likewise.
18789         * modules/unictype/category-Mc: Likewise.
18790         * modules/unictype/category-Me: Likewise.
18791         * modules/unictype/category-Mn: Likewise.
18792         * modules/unictype/category-N: Likewise.
18793         * modules/unictype/category-Nd: Likewise.
18794         * modules/unictype/category-Nl: Likewise.
18795         * modules/unictype/category-No: Likewise.
18796         * modules/unictype/category-P: Likewise.
18797         * modules/unictype/category-Pc: Likewise.
18798         * modules/unictype/category-Pd: Likewise.
18799         * modules/unictype/category-Pe: Likewise.
18800         * modules/unictype/category-Pf: Likewise.
18801         * modules/unictype/category-Pi: Likewise.
18802         * modules/unictype/category-Po: Likewise.
18803         * modules/unictype/category-Ps: Likewise.
18804         * modules/unictype/category-S: Likewise.
18805         * modules/unictype/category-Sc: Likewise.
18806         * modules/unictype/category-Sk: Likewise.
18807         * modules/unictype/category-Sm: Likewise.
18808         * modules/unictype/category-So: Likewise.
18809         * modules/unictype/category-Z: Likewise.
18810         * modules/unictype/category-Zl: Likewise.
18811         * modules/unictype/category-Zp: Likewise.
18812         * modules/unictype/category-Zs: Likewise.
18813         * modules/unictype/category-and: Likewise.
18814         * modules/unictype/category-and-not: Likewise.
18815         * modules/unictype/category-byname: Likewise.
18816         * modules/unictype/category-name: Likewise.
18817         * modules/unictype/category-none: Likewise.
18818         * modules/unictype/category-of: Likewise.
18819         * modules/unictype/category-or: Likewise.
18820         * modules/unictype/category-test: Likewise.
18821         * modules/unictype/combining-class: Likewise.
18822         * modules/unictype/ctype-alnum: Likewise.
18823         * modules/unictype/ctype-alpha: Likewise.
18824         * modules/unictype/ctype-blank: Likewise.
18825         * modules/unictype/ctype-cntrl: Likewise.
18826         * modules/unictype/ctype-digit: Likewise.
18827         * modules/unictype/ctype-graph: Likewise.
18828         * modules/unictype/ctype-lower: Likewise.
18829         * modules/unictype/ctype-print: Likewise.
18830         * modules/unictype/ctype-punct: Likewise.
18831         * modules/unictype/ctype-space: Likewise.
18832         * modules/unictype/ctype-upper: Likewise.
18833         * modules/unictype/ctype-xdigit: Likewise.
18834         * modules/unictype/decimal-digit: Likewise.
18835         * modules/unictype/digit: Likewise.
18836         * modules/unictype/mirror: Likewise.
18837         * modules/unictype/numeric: Likewise.
18838         * modules/unictype/property-alphabetic: Likewise.
18839         * modules/unictype/property-ascii-hex-digit: Likewise.
18840         * modules/unictype/property-bidi-arabic-digit: Likewise.
18841         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
18842         * modules/unictype/property-bidi-block-separator: Likewise.
18843         * modules/unictype/property-bidi-boundary-neutral: Likewise.
18844         * modules/unictype/property-bidi-common-separator: Likewise.
18845         * modules/unictype/property-bidi-control: Likewise.
18846         * modules/unictype/property-bidi-embedding-or-override: Likewise.
18847         * modules/unictype/property-bidi-eur-num-separator: Likewise.
18848         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
18849         * modules/unictype/property-bidi-european-digit: Likewise.
18850         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
18851         * modules/unictype/property-bidi-left-to-right: Likewise.
18852         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
18853         * modules/unictype/property-bidi-other-neutral: Likewise.
18854         * modules/unictype/property-bidi-pdf: Likewise.
18855         * modules/unictype/property-bidi-segment-separator: Likewise.
18856         * modules/unictype/property-bidi-whitespace: Likewise.
18857         * modules/unictype/property-byname: Likewise.
18858         * modules/unictype/property-combining: Likewise.
18859         * modules/unictype/property-composite: Likewise.
18860         * modules/unictype/property-currency-symbol: Likewise.
18861         * modules/unictype/property-dash: Likewise.
18862         * modules/unictype/property-decimal-digit: Likewise.
18863         * modules/unictype/property-default-ignorable-code-point: Likewise.
18864         * modules/unictype/property-deprecated: Likewise.
18865         * modules/unictype/property-diacritic: Likewise.
18866         * modules/unictype/property-extender: Likewise.
18867         * modules/unictype/property-format-control: Likewise.
18868         * modules/unictype/property-grapheme-base: Likewise.
18869         * modules/unictype/property-grapheme-extend: Likewise.
18870         * modules/unictype/property-grapheme-link: Likewise.
18871         * modules/unictype/property-hex-digit: Likewise.
18872         * modules/unictype/property-hyphen: Likewise.
18873         * modules/unictype/property-id-continue: Likewise.
18874         * modules/unictype/property-id-start: Likewise.
18875         * modules/unictype/property-ideographic: Likewise.
18876         * modules/unictype/property-ids-binary-operator: Likewise.
18877         * modules/unictype/property-ids-trinary-operator: Likewise.
18878         * modules/unictype/property-ignorable-control: Likewise.
18879         * modules/unictype/property-iso-control: Likewise.
18880         * modules/unictype/property-join-control: Likewise.
18881         * modules/unictype/property-left-of-pair: Likewise.
18882         * modules/unictype/property-line-separator: Likewise.
18883         * modules/unictype/property-logical-order-exception: Likewise.
18884         * modules/unictype/property-lowercase: Likewise.
18885         * modules/unictype/property-math: Likewise.
18886         * modules/unictype/property-non-break: Likewise.
18887         * modules/unictype/property-not-a-character: Likewise.
18888         * modules/unictype/property-numeric: Likewise.
18889         * modules/unictype/property-other-alphabetic: Likewise.
18890         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
18891         * modules/unictype/property-other-grapheme-extend: Likewise.
18892         * modules/unictype/property-other-id-continue: Likewise.
18893         * modules/unictype/property-other-id-start: Likewise.
18894         * modules/unictype/property-other-lowercase: Likewise.
18895         * modules/unictype/property-other-math: Likewise.
18896         * modules/unictype/property-other-uppercase: Likewise.
18897         * modules/unictype/property-paired-punctuation: Likewise.
18898         * modules/unictype/property-paragraph-separator: Likewise.
18899         * modules/unictype/property-pattern-syntax: Likewise.
18900         * modules/unictype/property-pattern-white-space: Likewise.
18901         * modules/unictype/property-private-use: Likewise.
18902         * modules/unictype/property-punctuation: Likewise.
18903         * modules/unictype/property-quotation-mark: Likewise.
18904         * modules/unictype/property-radical: Likewise.
18905         * modules/unictype/property-sentence-terminal: Likewise.
18906         * modules/unictype/property-soft-dotted: Likewise.
18907         * modules/unictype/property-space: Likewise.
18908         * modules/unictype/property-terminal-punctuation: Likewise.
18909         * modules/unictype/property-test: Likewise.
18910         * modules/unictype/property-titlecase: Likewise.
18911         * modules/unictype/property-unassigned-code-value: Likewise.
18912         * modules/unictype/property-unified-ideograph: Likewise.
18913         * modules/unictype/property-uppercase: Likewise.
18914         * modules/unictype/property-variation-selector: Likewise.
18915         * modules/unictype/property-white-space: Likewise.
18916         * modules/unictype/property-xid-continue: Likewise.
18917         * modules/unictype/property-xid-start: Likewise.
18918         * modules/unictype/property-zero-width: Likewise.
18919         * modules/unictype/scripts: Likewise.
18920         * modules/unictype/syntax-c-ident: Likewise.
18921         * modules/unictype/syntax-c-whitespace: Likewise.
18922         * modules/unictype/syntax-java-ident: Likewise.
18923         * modules/unictype/syntax-java-whitespace: Likewise.
18924         * modules/unilbrk/u8-possible-linebreaks: Likewise.
18925         * modules/unilbrk/u8-width-linebreaks: Likewise.
18926         * modules/unilbrk/u16-possible-linebreaks: Likewise.
18927         * modules/unilbrk/u16-width-linebreaks: Likewise.
18928         * modules/unilbrk/u32-possible-linebreaks: Likewise.
18929         * modules/unilbrk/u32-width-linebreaks: Likewise.
18930         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
18931         * modules/unilbrk/ulc-width-linebreaks: Likewise.
18932         * modules/uniname/uniname: Likewise.
18933         * modules/uninorm/canonical-decomposition: Likewise.
18934         * modules/uninorm/composition: Likewise.
18935         * modules/uninorm/decomposing-form: Likewise.
18936         * modules/uninorm/decomposition: Likewise.
18937         * modules/uninorm/filter: Likewise.
18938         * modules/uninorm/nfc: Likewise.
18939         * modules/uninorm/nfd: Likewise.
18940         * modules/uninorm/nfkc: Likewise.
18941         * modules/uninorm/nfkd: Likewise.
18942         * modules/uninorm/u8-normalize: Likewise.
18943         * modules/uninorm/u8-normcmp: Likewise.
18944         * modules/uninorm/u8-normcoll: Likewise.
18945         * modules/uninorm/u8-normxfrm: Likewise.
18946         * modules/uninorm/u16-normalize: Likewise.
18947         * modules/uninorm/u16-normcmp: Likewise.
18948         * modules/uninorm/u16-normcoll: Likewise.
18949         * modules/uninorm/u16-normxfrm: Likewise.
18950         * modules/uninorm/u32-normalize: Likewise.
18951         * modules/uninorm/u32-normcmp: Likewise.
18952         * modules/uninorm/u32-normcoll: Likewise.
18953         * modules/uninorm/u32-normxfrm: Likewise.
18954         * modules/unistdio/u8-asnprintf: Likewise.
18955         * modules/unistdio/u8-asprintf: Likewise.
18956         * modules/unistdio/u8-snprintf: Likewise.
18957         * modules/unistdio/u8-sprintf: Likewise.
18958         * modules/unistdio/u8-u8-asnprintf: Likewise.
18959         * modules/unistdio/u8-u8-asprintf: Likewise.
18960         * modules/unistdio/u8-u8-snprintf: Likewise.
18961         * modules/unistdio/u8-u8-sprintf: Likewise.
18962         * modules/unistdio/u8-u8-vasnprintf: Likewise.
18963         * modules/unistdio/u8-u8-vasprintf: Likewise.
18964         * modules/unistdio/u8-u8-vsnprintf: Likewise.
18965         * modules/unistdio/u8-u8-vsprintf: Likewise.
18966         * modules/unistdio/u8-vasnprintf: Likewise.
18967         * modules/unistdio/u8-vasprintf: Likewise.
18968         * modules/unistdio/u8-vsnprintf: Likewise.
18969         * modules/unistdio/u8-vsprintf: Likewise.
18970         * modules/unistdio/u16-asnprintf: Likewise.
18971         * modules/unistdio/u16-asprintf: Likewise.
18972         * modules/unistdio/u16-snprintf: Likewise.
18973         * modules/unistdio/u16-sprintf: Likewise.
18974         * modules/unistdio/u16-u16-asnprintf: Likewise.
18975         * modules/unistdio/u16-u16-asprintf: Likewise.
18976         * modules/unistdio/u16-u16-snprintf: Likewise.
18977         * modules/unistdio/u16-u16-sprintf: Likewise.
18978         * modules/unistdio/u16-u16-vasnprintf: Likewise.
18979         * modules/unistdio/u16-u16-vasprintf: Likewise.
18980         * modules/unistdio/u16-u16-vsnprintf: Likewise.
18981         * modules/unistdio/u16-u16-vsprintf: Likewise.
18982         * modules/unistdio/u16-vasnprintf: Likewise.
18983         * modules/unistdio/u16-vasprintf: Likewise.
18984         * modules/unistdio/u16-vsnprintf: Likewise.
18985         * modules/unistdio/u16-vsprintf: Likewise.
18986         * modules/unistdio/u32-asnprintf: Likewise.
18987         * modules/unistdio/u32-asprintf: Likewise.
18988         * modules/unistdio/u32-snprintf: Likewise.
18989         * modules/unistdio/u32-sprintf: Likewise.
18990         * modules/unistdio/u32-u32-asnprintf: Likewise.
18991         * modules/unistdio/u32-u32-asprintf: Likewise.
18992         * modules/unistdio/u32-u32-snprintf: Likewise.
18993         * modules/unistdio/u32-u32-sprintf: Likewise.
18994         * modules/unistdio/u32-u32-vasnprintf: Likewise.
18995         * modules/unistdio/u32-u32-vasprintf: Likewise.
18996         * modules/unistdio/u32-u32-vsnprintf: Likewise.
18997         * modules/unistdio/u32-u32-vsprintf: Likewise.
18998         * modules/unistdio/u32-vasnprintf: Likewise.
18999         * modules/unistdio/u32-vasprintf: Likewise.
19000         * modules/unistdio/u32-vsnprintf: Likewise.
19001         * modules/unistdio/u32-vsprintf: Likewise.
19002         * modules/unistdio/ulc-asnprintf: Likewise.
19003         * modules/unistdio/ulc-asprintf: Likewise.
19004         * modules/unistdio/ulc-fprintf: Likewise.
19005         * modules/unistdio/ulc-snprintf: Likewise.
19006         * modules/unistdio/ulc-sprintf: Likewise.
19007         * modules/unistdio/ulc-vasnprintf: Likewise.
19008         * modules/unistdio/ulc-vasprintf: Likewise.
19009         * modules/unistdio/ulc-vfprintf: Likewise.
19010         * modules/unistdio/ulc-vsnprintf: Likewise.
19011         * modules/unistdio/ulc-vsprintf: Likewise.
19012         * modules/unistr/u8-check: Likewise.
19013         * modules/unistr/u8-chr: Likewise.
19014         * modules/unistr/u8-cmp: Likewise.
19015         * modules/unistr/u8-cmp2: Likewise.
19016         * modules/unistr/u8-cpy: Likewise.
19017         * modules/unistr/u8-cpy-alloc: Likewise.
19018         * modules/unistr/u8-endswith: Likewise.
19019         * modules/unistr/u8-mblen: Likewise.
19020         * modules/unistr/u8-mbsnlen: Likewise.
19021         * modules/unistr/u8-mbtouc: Likewise.
19022         * modules/unistr/u8-mbtouc-unsafe: Likewise.
19023         * modules/unistr/u8-mbtoucr: Likewise.
19024         * modules/unistr/u8-move: Likewise.
19025         * modules/unistr/u8-next: Likewise.
19026         * modules/unistr/u8-prev: Likewise.
19027         * modules/unistr/u8-set: Likewise.
19028         * modules/unistr/u8-startswith: Likewise.
19029         * modules/unistr/u8-stpcpy: Likewise.
19030         * modules/unistr/u8-stpncpy: Likewise.
19031         * modules/unistr/u8-strcat: Likewise.
19032         * modules/unistr/u8-strchr: Likewise.
19033         * modules/unistr/u8-strcmp: Likewise.
19034         * modules/unistr/u8-strcoll: Likewise.
19035         * modules/unistr/u8-strcpy: Likewise.
19036         * modules/unistr/u8-strcspn: Likewise.
19037         * modules/unistr/u8-strdup: Likewise.
19038         * modules/unistr/u8-strlen: Likewise.
19039         * modules/unistr/u8-strmblen: Likewise.
19040         * modules/unistr/u8-strmbtouc: Likewise.
19041         * modules/unistr/u8-strncat: Likewise.
19042         * modules/unistr/u8-strncmp: Likewise.
19043         * modules/unistr/u8-strncpy: Likewise.
19044         * modules/unistr/u8-strnlen: Likewise.
19045         * modules/unistr/u8-strpbrk: Likewise.
19046         * modules/unistr/u8-strrchr: Likewise.
19047         * modules/unistr/u8-strspn: Likewise.
19048         * modules/unistr/u8-strstr: Likewise.
19049         * modules/unistr/u8-strtok: Likewise.
19050         * modules/unistr/u8-to-u16: Likewise.
19051         * modules/unistr/u8-to-u32: Likewise.
19052         * modules/unistr/u8-uctomb: Likewise.
19053         * modules/unistr/u16-check: Likewise.
19054         * modules/unistr/u16-chr: Likewise.
19055         * modules/unistr/u16-cmp: Likewise.
19056         * modules/unistr/u16-cmp2: Likewise.
19057         * modules/unistr/u16-cpy: Likewise.
19058         * modules/unistr/u16-cpy-alloc: Likewise.
19059         * modules/unistr/u16-endswith: Likewise.
19060         * modules/unistr/u16-mblen: Likewise.
19061         * modules/unistr/u16-mbsnlen: Likewise.
19062         * modules/unistr/u16-mbtouc: Likewise.
19063         * modules/unistr/u16-mbtouc-unsafe: Likewise.
19064         * modules/unistr/u16-mbtoucr: Likewise.
19065         * modules/unistr/u16-move: Likewise.
19066         * modules/unistr/u16-next: Likewise.
19067         * modules/unistr/u16-prev: Likewise.
19068         * modules/unistr/u16-set: Likewise.
19069         * modules/unistr/u16-startswith: Likewise.
19070         * modules/unistr/u16-stpcpy: Likewise.
19071         * modules/unistr/u16-stpncpy: Likewise.
19072         * modules/unistr/u16-strcat: Likewise.
19073         * modules/unistr/u16-strchr: Likewise.
19074         * modules/unistr/u16-strcmp: Likewise.
19075         * modules/unistr/u16-strcoll: Likewise.
19076         * modules/unistr/u16-strcpy: Likewise.
19077         * modules/unistr/u16-strcspn: Likewise.
19078         * modules/unistr/u16-strdup: Likewise.
19079         * modules/unistr/u16-strlen: Likewise.
19080         * modules/unistr/u16-strmblen: Likewise.
19081         * modules/unistr/u16-strmbtouc: Likewise.
19082         * modules/unistr/u16-strncat: Likewise.
19083         * modules/unistr/u16-strncmp: Likewise.
19084         * modules/unistr/u16-strncpy: Likewise.
19085         * modules/unistr/u16-strnlen: Likewise.
19086         * modules/unistr/u16-strpbrk: Likewise.
19087         * modules/unistr/u16-strrchr: Likewise.
19088         * modules/unistr/u16-strspn: Likewise.
19089         * modules/unistr/u16-strstr: Likewise.
19090         * modules/unistr/u16-strtok: Likewise.
19091         * modules/unistr/u16-to-u32: Likewise.
19092         * modules/unistr/u16-to-u8: Likewise.
19093         * modules/unistr/u16-uctomb: Likewise.
19094         * modules/unistr/u32-check: Likewise.
19095         * modules/unistr/u32-chr: Likewise.
19096         * modules/unistr/u32-cmp: Likewise.
19097         * modules/unistr/u32-cmp2: Likewise.
19098         * modules/unistr/u32-cpy: Likewise.
19099         * modules/unistr/u32-cpy-alloc: Likewise.
19100         * modules/unistr/u32-endswith: Likewise.
19101         * modules/unistr/u32-mblen: Likewise.
19102         * modules/unistr/u32-mbsnlen: Likewise.
19103         * modules/unistr/u32-mbtouc: Likewise.
19104         * modules/unistr/u32-mbtouc-unsafe: Likewise.
19105         * modules/unistr/u32-mbtoucr: Likewise.
19106         * modules/unistr/u32-move: Likewise.
19107         * modules/unistr/u32-next: Likewise.
19108         * modules/unistr/u32-prev: Likewise.
19109         * modules/unistr/u32-set: Likewise.
19110         * modules/unistr/u32-startswith: Likewise.
19111         * modules/unistr/u32-stpcpy: Likewise.
19112         * modules/unistr/u32-stpncpy: Likewise.
19113         * modules/unistr/u32-strcat: Likewise.
19114         * modules/unistr/u32-strchr: Likewise.
19115         * modules/unistr/u32-strcmp: Likewise.
19116         * modules/unistr/u32-strcoll: Likewise.
19117         * modules/unistr/u32-strcpy: Likewise.
19118         * modules/unistr/u32-strcspn: Likewise.
19119         * modules/unistr/u32-strdup: Likewise.
19120         * modules/unistr/u32-strlen: Likewise.
19121         * modules/unistr/u32-strmblen: Likewise.
19122         * modules/unistr/u32-strmbtouc: Likewise.
19123         * modules/unistr/u32-strncat: Likewise.
19124         * modules/unistr/u32-strncmp: Likewise.
19125         * modules/unistr/u32-strncpy: Likewise.
19126         * modules/unistr/u32-strnlen: Likewise.
19127         * modules/unistr/u32-strpbrk: Likewise.
19128         * modules/unistr/u32-strrchr: Likewise.
19129         * modules/unistr/u32-strspn: Likewise.
19130         * modules/unistr/u32-strstr: Likewise.
19131         * modules/unistr/u32-strtok: Likewise.
19132         * modules/unistr/u32-to-u16: Likewise.
19133         * modules/unistr/u32-to-u8: Likewise.
19134         * modules/unistr/u32-uctomb: Likewise.
19135         * modules/uniwbrk/u8-wordbreaks: Likewise.
19136         * modules/uniwbrk/u16-wordbreaks: Likewise.
19137         * modules/uniwbrk/u32-wordbreaks: Likewise.
19138         * modules/uniwbrk/ulc-wordbreaks: Likewise.
19139         * modules/uniwbrk/wordbreak-property: Likewise.
19140         * modules/uniwidth/u8-strwidth: Likewise.
19141         * modules/uniwidth/u8-width: Likewise.
19142         * modules/uniwidth/u16-strwidth: Likewise.
19143         * modules/uniwidth/u16-width: Likewise.
19144         * modules/uniwidth/u32-strwidth: Likewise.
19145         * modules/uniwidth/u32-width: Likewise.
19146         * modules/uniwidth/width: Likewise.
19147         * modules/unicase/cased-tests (Makefile.am): Link all test programs
19148         with $(LIBUNISTRING).
19149         * modules/unicase/ignorable-tests: Likewise.
19150         * modules/unicase/locale-language-tests: Likewise.
19151         * modules/unicase/tolower-tests: Likewise.
19152         * modules/unicase/totitle-tests: Likewise.
19153         * modules/unicase/toupper-tests: Likewise.
19154         * modules/unicase/u8-casecmp-tests: Likewise.
19155         * modules/unicase/u8-casecoll-tests: Likewise.
19156         * modules/unicase/u8-casefold-tests: Likewise.
19157         * modules/unicase/u8-is-cased-tests: Likewise.
19158         * modules/unicase/u8-is-casefolded-tests: Likewise.
19159         * modules/unicase/u8-is-lowercase-tests: Likewise.
19160         * modules/unicase/u8-is-titlecase-tests: Likewise.
19161         * modules/unicase/u8-is-uppercase-tests: Likewise.
19162         * modules/unicase/u8-tolower-tests: Likewise.
19163         * modules/unicase/u8-totitle-tests: Likewise.
19164         * modules/unicase/u8-toupper-tests: Likewise.
19165         * modules/unicase/u16-casecmp-tests: Likewise.
19166         * modules/unicase/u16-casecoll-tests: Likewise.
19167         * modules/unicase/u16-casefold-tests: Likewise.
19168         * modules/unicase/u16-is-cased-tests: Likewise.
19169         * modules/unicase/u16-is-casefolded-tests: Likewise.
19170         * modules/unicase/u16-is-lowercase-tests: Likewise.
19171         * modules/unicase/u16-is-titlecase-tests: Likewise.
19172         * modules/unicase/u16-is-uppercase-tests: Likewise.
19173         * modules/unicase/u16-tolower-tests: Likewise.
19174         * modules/unicase/u16-totitle-tests: Likewise.
19175         * modules/unicase/u16-toupper-tests: Likewise.
19176         * modules/unicase/u32-casecmp-tests: Likewise.
19177         * modules/unicase/u32-casecoll-tests: Likewise.
19178         * modules/unicase/u32-casefold-tests: Likewise.
19179         * modules/unicase/u32-is-cased-tests: Likewise.
19180         * modules/unicase/u32-is-casefolded-tests: Likewise.
19181         * modules/unicase/u32-is-lowercase-tests: Likewise.
19182         * modules/unicase/u32-is-titlecase-tests: Likewise.
19183         * modules/unicase/u32-is-uppercase-tests: Likewise.
19184         * modules/unicase/u32-tolower-tests: Likewise.
19185         * modules/unicase/u32-totitle-tests: Likewise.
19186         * modules/unicase/u32-toupper-tests: Likewise.
19187         * modules/unicase/ulc-casecmp-tests: Likewise.
19188         * modules/unicase/ulc-casecoll-tests: Likewise.
19189         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
19190         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
19191         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
19192         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
19193         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
19194         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
19195         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
19196         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
19197         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
19198         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
19199         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
19200         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
19201         * modules/unictype/bidicategory-byname-tests: Likewise.
19202         * modules/unictype/bidicategory-name-tests: Likewise.
19203         * modules/unictype/bidicategory-of-tests: Likewise.
19204         * modules/unictype/bidicategory-test-tests: Likewise.
19205         * modules/unictype/block-list-tests: Likewise.
19206         * modules/unictype/block-of-tests: Likewise.
19207         * modules/unictype/block-test-tests: Likewise.
19208         * modules/unictype/category-C-tests: Likewise.
19209         * modules/unictype/category-Cc-tests: Likewise.
19210         * modules/unictype/category-Cf-tests: Likewise.
19211         * modules/unictype/category-Cn-tests: Likewise.
19212         * modules/unictype/category-Co-tests: Likewise.
19213         * modules/unictype/category-Cs-tests: Likewise.
19214         * modules/unictype/category-L-tests: Likewise.
19215         * modules/unictype/category-Ll-tests: Likewise.
19216         * modules/unictype/category-Lm-tests: Likewise.
19217         * modules/unictype/category-Lo-tests: Likewise.
19218         * modules/unictype/category-Lt-tests: Likewise.
19219         * modules/unictype/category-Lu-tests: Likewise.
19220         * modules/unictype/category-M-tests: Likewise.
19221         * modules/unictype/category-Mc-tests: Likewise.
19222         * modules/unictype/category-Me-tests: Likewise.
19223         * modules/unictype/category-Mn-tests: Likewise.
19224         * modules/unictype/category-N-tests: Likewise.
19225         * modules/unictype/category-Nd-tests: Likewise.
19226         * modules/unictype/category-Nl-tests: Likewise.
19227         * modules/unictype/category-No-tests: Likewise.
19228         * modules/unictype/category-P-tests: Likewise.
19229         * modules/unictype/category-Pc-tests: Likewise.
19230         * modules/unictype/category-Pd-tests: Likewise.
19231         * modules/unictype/category-Pe-tests: Likewise.
19232         * modules/unictype/category-Pf-tests: Likewise.
19233         * modules/unictype/category-Pi-tests: Likewise.
19234         * modules/unictype/category-Po-tests: Likewise.
19235         * modules/unictype/category-Ps-tests: Likewise.
19236         * modules/unictype/category-S-tests: Likewise.
19237         * modules/unictype/category-Sc-tests: Likewise.
19238         * modules/unictype/category-Sk-tests: Likewise.
19239         * modules/unictype/category-Sm-tests: Likewise.
19240         * modules/unictype/category-So-tests: Likewise.
19241         * modules/unictype/category-Z-tests: Likewise.
19242         * modules/unictype/category-Zl-tests: Likewise.
19243         * modules/unictype/category-Zp-tests: Likewise.
19244         * modules/unictype/category-Zs-tests: Likewise.
19245         * modules/unictype/category-and-not-tests: Likewise.
19246         * modules/unictype/category-and-tests: Likewise.
19247         * modules/unictype/category-byname-tests: Likewise.
19248         * modules/unictype/category-name-tests: Likewise.
19249         * modules/unictype/category-none-tests: Likewise.
19250         * modules/unictype/category-of-tests: Likewise.
19251         * modules/unictype/category-or-tests: Likewise.
19252         * modules/unictype/category-test-withtable-tests: Likewise.
19253         * modules/unictype/combining-class-tests: Likewise.
19254         * modules/unictype/ctype-alnum-tests: Likewise.
19255         * modules/unictype/ctype-alpha-tests: Likewise.
19256         * modules/unictype/ctype-blank-tests: Likewise.
19257         * modules/unictype/ctype-cntrl-tests: Likewise.
19258         * modules/unictype/ctype-digit-tests: Likewise.
19259         * modules/unictype/ctype-graph-tests: Likewise.
19260         * modules/unictype/ctype-lower-tests: Likewise.
19261         * modules/unictype/ctype-print-tests: Likewise.
19262         * modules/unictype/ctype-punct-tests: Likewise.
19263         * modules/unictype/ctype-space-tests: Likewise.
19264         * modules/unictype/ctype-upper-tests: Likewise.
19265         * modules/unictype/ctype-xdigit-tests: Likewise.
19266         * modules/unictype/decimal-digit-tests: Likewise.
19267         * modules/unictype/digit-tests: Likewise.
19268         * modules/unictype/mirror-tests: Likewise.
19269         * modules/unictype/numeric-tests: Likewise.
19270         * modules/unictype/property-alphabetic-tests: Likewise.
19271         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
19272         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
19273         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
19274         * modules/unictype/property-bidi-block-separator-tests: Likewise.
19275         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
19276         * modules/unictype/property-bidi-common-separator-tests: Likewise.
19277         * modules/unictype/property-bidi-control-tests: Likewise.
19278         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
19279         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
19280         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
19281         * modules/unictype/property-bidi-european-digit-tests: Likewise.
19282         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
19283         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
19284         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
19285         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
19286         * modules/unictype/property-bidi-pdf-tests: Likewise.
19287         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
19288         * modules/unictype/property-bidi-whitespace-tests: Likewise.
19289         * modules/unictype/property-byname-tests: Likewise.
19290         * modules/unictype/property-combining-tests: Likewise.
19291         * modules/unictype/property-composite-tests: Likewise.
19292         * modules/unictype/property-currency-symbol-tests: Likewise.
19293         * modules/unictype/property-dash-tests: Likewise.
19294         * modules/unictype/property-decimal-digit-tests: Likewise.
19295         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
19296         * modules/unictype/property-deprecated-tests: Likewise.
19297         * modules/unictype/property-diacritic-tests: Likewise.
19298         * modules/unictype/property-extender-tests: Likewise.
19299         * modules/unictype/property-format-control-tests: Likewise.
19300         * modules/unictype/property-grapheme-base-tests: Likewise.
19301         * modules/unictype/property-grapheme-extend-tests: Likewise.
19302         * modules/unictype/property-grapheme-link-tests: Likewise.
19303         * modules/unictype/property-hex-digit-tests: Likewise.
19304         * modules/unictype/property-hyphen-tests: Likewise.
19305         * modules/unictype/property-id-continue-tests: Likewise.
19306         * modules/unictype/property-id-start-tests: Likewise.
19307         * modules/unictype/property-ideographic-tests: Likewise.
19308         * modules/unictype/property-ids-binary-operator-tests: Likewise.
19309         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
19310         * modules/unictype/property-ignorable-control-tests: Likewise.
19311         * modules/unictype/property-iso-control-tests: Likewise.
19312         * modules/unictype/property-join-control-tests: Likewise.
19313         * modules/unictype/property-left-of-pair-tests: Likewise.
19314         * modules/unictype/property-line-separator-tests: Likewise.
19315         * modules/unictype/property-logical-order-exception-tests: Likewise.
19316         * modules/unictype/property-lowercase-tests: Likewise.
19317         * modules/unictype/property-math-tests: Likewise.
19318         * modules/unictype/property-non-break-tests: Likewise.
19319         * modules/unictype/property-not-a-character-tests: Likewise.
19320         * modules/unictype/property-numeric-tests: Likewise.
19321         * modules/unictype/property-other-alphabetic-tests: Likewise.
19322         * modules/unictype/property-other-default-ignorable-code-point-tests:
19323         Likewise.
19324         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
19325         * modules/unictype/property-other-id-continue-tests: Likewise.
19326         * modules/unictype/property-other-id-start-tests: Likewise.
19327         * modules/unictype/property-other-lowercase-tests: Likewise.
19328         * modules/unictype/property-other-math-tests: Likewise.
19329         * modules/unictype/property-other-uppercase-tests: Likewise.
19330         * modules/unictype/property-paired-punctuation-tests: Likewise.
19331         * modules/unictype/property-paragraph-separator-tests: Likewise.
19332         * modules/unictype/property-pattern-syntax-tests: Likewise.
19333         * modules/unictype/property-pattern-white-space-tests: Likewise.
19334         * modules/unictype/property-private-use-tests: Likewise.
19335         * modules/unictype/property-punctuation-tests: Likewise.
19336         * modules/unictype/property-quotation-mark-tests: Likewise.
19337         * modules/unictype/property-radical-tests: Likewise.
19338         * modules/unictype/property-sentence-terminal-tests: Likewise.
19339         * modules/unictype/property-soft-dotted-tests: Likewise.
19340         * modules/unictype/property-space-tests: Likewise.
19341         * modules/unictype/property-terminal-punctuation-tests: Likewise.
19342         * modules/unictype/property-test-tests: Likewise.
19343         * modules/unictype/property-titlecase-tests: Likewise.
19344         * modules/unictype/property-unassigned-code-value-tests: Likewise.
19345         * modules/unictype/property-unified-ideograph-tests: Likewise.
19346         * modules/unictype/property-uppercase-tests: Likewise.
19347         * modules/unictype/property-variation-selector-tests: Likewise.
19348         * modules/unictype/property-white-space-tests: Likewise.
19349         * modules/unictype/property-xid-continue-tests: Likewise.
19350         * modules/unictype/property-xid-start-tests: Likewise.
19351         * modules/unictype/property-zero-width-tests: Likewise.
19352         * modules/unictype/scripts-tests: Likewise.
19353         * modules/unictype/syntax-c-ident-tests: Likewise.
19354         * modules/unictype/syntax-c-whitespace-tests: Likewise.
19355         * modules/unictype/syntax-java-ident-tests: Likewise.
19356         * modules/unictype/syntax-java-whitespace-tests: Likewise.
19357         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
19358         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
19359         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
19360         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
19361         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
19362         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
19363         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
19364         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
19365         * modules/uniname/uniname-tests: Likewise.
19366         * modules/uninorm/canonical-decomposition-tests: Likewise.
19367         * modules/uninorm/compat-decomposition-tests: Likewise.
19368         * modules/uninorm/composition-tests: Likewise.
19369         * modules/uninorm/decomposing-form-tests: Likewise.
19370         * modules/uninorm/decomposition-tests: Likewise.
19371         * modules/uninorm/filter-tests: Likewise.
19372         * modules/uninorm/nfc-tests: Likewise.
19373         * modules/uninorm/nfd-tests: Likewise.
19374         * modules/uninorm/nfkc-tests: Likewise.
19375         * modules/uninorm/nfkd-tests: Likewise.
19376         * modules/uninorm/u8-normcmp-tests: Likewise.
19377         * modules/uninorm/u8-normcoll-tests: Likewise.
19378         * modules/uninorm/u16-normcmp-tests: Likewise.
19379         * modules/uninorm/u16-normcoll-tests: Likewise.
19380         * modules/uninorm/u32-normcmp-tests: Likewise.
19381         * modules/uninorm/u32-normcoll-tests: Likewise.
19382         * modules/unistdio/u8-asnprintf-tests: Likewise.
19383         * modules/unistdio/u8-vasnprintf-tests: Likewise.
19384         * modules/unistdio/u8-vasprintf-tests: Likewise.
19385         * modules/unistdio/u8-vsnprintf-tests: Likewise.
19386         * modules/unistdio/u8-vsprintf-tests: Likewise.
19387         * modules/unistdio/u16-asnprintf-tests: Likewise.
19388         * modules/unistdio/u16-vasnprintf-tests: Likewise.
19389         * modules/unistdio/u16-vasprintf-tests: Likewise.
19390         * modules/unistdio/u16-vsnprintf-tests: Likewise.
19391         * modules/unistdio/u16-vsprintf-tests: Likewise.
19392         * modules/unistdio/u32-asnprintf-tests: Likewise.
19393         * modules/unistdio/u32-vasnprintf-tests: Likewise.
19394         * modules/unistdio/u32-vasprintf-tests: Likewise.
19395         * modules/unistdio/u32-vsnprintf-tests: Likewise.
19396         * modules/unistdio/u32-vsprintf-tests: Likewise.
19397         * modules/unistdio/ulc-asnprintf-tests: Likewise.
19398         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
19399         * modules/unistdio/ulc-vasprintf-tests: Likewise.
19400         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
19401         * modules/unistdio/ulc-vsprintf-tests: Likewise.
19402         * modules/unistr/u8-check-tests: Likewise.
19403         * modules/unistr/u8-chr-tests: Likewise.
19404         * modules/unistr/u8-cmp-tests: Likewise.
19405         * modules/unistr/u8-cmp2-tests: Likewise.
19406         * modules/unistr/u8-cpy-alloc-tests: Likewise.
19407         * modules/unistr/u8-cpy-tests: Likewise.
19408         * modules/unistr/u8-mblen-tests: Likewise.
19409         * modules/unistr/u8-mbsnlen-tests: Likewise.
19410         * modules/unistr/u8-mbtouc-tests: Likewise.
19411         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
19412         * modules/unistr/u8-mbtoucr-tests: Likewise.
19413         * modules/unistr/u8-move-tests: Likewise.
19414         * modules/unistr/u8-next-tests: Likewise.
19415         * modules/unistr/u8-prev-tests: Likewise.
19416         * modules/unistr/u8-set-tests: Likewise.
19417         * modules/unistr/u8-stpcpy-tests: Likewise.
19418         * modules/unistr/u8-stpncpy-tests: Likewise.
19419         * modules/unistr/u8-strcat-tests: Likewise.
19420         * modules/unistr/u8-strcmp-tests: Likewise.
19421         * modules/unistr/u8-strcoll-tests: Likewise.
19422         * modules/unistr/u8-strcpy-tests: Likewise.
19423         * modules/unistr/u8-strdup-tests: Likewise.
19424         * modules/unistr/u8-strlen-tests: Likewise.
19425         * modules/unistr/u8-strmblen-tests: Likewise.
19426         * modules/unistr/u8-strmbtouc-tests: Likewise.
19427         * modules/unistr/u8-strncat-tests: Likewise.
19428         * modules/unistr/u8-strncmp-tests: Likewise.
19429         * modules/unistr/u8-strncpy-tests: Likewise.
19430         * modules/unistr/u8-strnlen-tests: Likewise.
19431         * modules/unistr/u8-to-u16-tests: Likewise.
19432         * modules/unistr/u8-to-u32-tests: Likewise.
19433         * modules/unistr/u8-uctomb-tests: Likewise.
19434         * modules/unistr/u16-check-tests: Likewise.
19435         * modules/unistr/u16-chr-tests: Likewise.
19436         * modules/unistr/u16-cmp-tests: Likewise.
19437         * modules/unistr/u16-cmp2-tests: Likewise.
19438         * modules/unistr/u16-cpy-alloc-tests: Likewise.
19439         * modules/unistr/u16-cpy-tests: Likewise.
19440         * modules/unistr/u16-mblen-tests: Likewise.
19441         * modules/unistr/u16-mbsnlen-tests: Likewise.
19442         * modules/unistr/u16-mbtouc-tests: Likewise.
19443         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
19444         * modules/unistr/u16-mbtoucr-tests: Likewise.
19445         * modules/unistr/u16-move-tests: Likewise.
19446         * modules/unistr/u16-next-tests: Likewise.
19447         * modules/unistr/u16-prev-tests: Likewise.
19448         * modules/unistr/u16-set-tests: Likewise.
19449         * modules/unistr/u16-stpcpy-tests: Likewise.
19450         * modules/unistr/u16-stpncpy-tests: Likewise.
19451         * modules/unistr/u16-strcat-tests: Likewise.
19452         * modules/unistr/u16-strcmp-tests: Likewise.
19453         * modules/unistr/u16-strcoll-tests: Likewise.
19454         * modules/unistr/u16-strcpy-tests: Likewise.
19455         * modules/unistr/u16-strdup-tests: Likewise.
19456         * modules/unistr/u16-strlen-tests: Likewise.
19457         * modules/unistr/u16-strmblen-tests: Likewise.
19458         * modules/unistr/u16-strmbtouc-tests: Likewise.
19459         * modules/unistr/u16-strncat-tests: Likewise.
19460         * modules/unistr/u16-strncmp-tests: Likewise.
19461         * modules/unistr/u16-strncpy-tests: Likewise.
19462         * modules/unistr/u16-strnlen-tests: Likewise.
19463         * modules/unistr/u16-to-u32-tests: Likewise.
19464         * modules/unistr/u16-to-u8-tests: Likewise.
19465         * modules/unistr/u16-uctomb-tests: Likewise.
19466         * modules/unistr/u32-check-tests: Likewise.
19467         * modules/unistr/u32-chr-tests: Likewise.
19468         * modules/unistr/u32-cmp-tests: Likewise.
19469         * modules/unistr/u32-cmp2-tests: Likewise.
19470         * modules/unistr/u32-cpy-alloc-tests: Likewise.
19471         * modules/unistr/u32-cpy-tests: Likewise.
19472         * modules/unistr/u32-mblen-tests: Likewise.
19473         * modules/unistr/u32-mbsnlen-tests: Likewise.
19474         * modules/unistr/u32-mbtouc-tests: Likewise.
19475         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
19476         * modules/unistr/u32-mbtoucr-tests: Likewise.
19477         * modules/unistr/u32-move-tests: Likewise.
19478         * modules/unistr/u32-next-tests: Likewise.
19479         * modules/unistr/u32-prev-tests: Likewise.
19480         * modules/unistr/u32-set-tests: Likewise.
19481         * modules/unistr/u32-stpcpy-tests: Likewise.
19482         * modules/unistr/u32-stpncpy-tests: Likewise.
19483         * modules/unistr/u32-strcat-tests: Likewise.
19484         * modules/unistr/u32-strcmp-tests: Likewise.
19485         * modules/unistr/u32-strcoll-tests: Likewise.
19486         * modules/unistr/u32-strcpy-tests: Likewise.
19487         * modules/unistr/u32-strdup-tests: Likewise.
19488         * modules/unistr/u32-strlen-tests: Likewise.
19489         * modules/unistr/u32-strmblen-tests: Likewise.
19490         * modules/unistr/u32-strmbtouc-tests: Likewise.
19491         * modules/unistr/u32-strncat-tests: Likewise.
19492         * modules/unistr/u32-strncmp-tests: Likewise.
19493         * modules/unistr/u32-strncpy-tests: Likewise.
19494         * modules/unistr/u32-strnlen-tests: Likewise.
19495         * modules/unistr/u32-to-u16-tests: Likewise.
19496         * modules/unistr/u32-to-u8-tests: Likewise.
19497         * modules/unistr/u32-uctomb-tests: Likewise.
19498         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
19499         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
19500         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
19501         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
19502         * modules/uniwidth/u8-strwidth-tests: Likewise.
19503         * modules/uniwidth/u8-width-tests: Likewise.
19504         * modules/uniwidth/u16-strwidth-tests: Likewise.
19505         * modules/uniwidth/u16-width-tests: Likewise.
19506         * modules/uniwidth/u32-strwidth-tests: Likewise.
19507         * modules/uniwidth/u32-width-tests: Likewise.
19508         * modules/uniwidth/width-tests: Likewise.
19509
19510 2010-05-18  Richard Jones  <rjones@redhat.com>
19511
19512         doc: users.txt: list hivex
19513         * users.txt: Add hivex.
19514
19515 2010-05-18  Richard Jones  <rjones@redhat.com>
19516
19517         doc: users.txt: list febootstrap
19518         * users.txt: Add febootstrap.
19519
19520 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
19521
19522         bootstrap: fix an error when gnulib is not used as a git submodule
19523         * build-aux/bootstrap (gnulib_path): If its length is zero then
19524         assign "gnulib" to it.
19525         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
19526
19527 2010-05-16  Bruno Haible  <bruno@clisp.org>
19528
19529         Avoid autoconf warnings about AM_ICONV.
19530         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
19531         2.64.
19532
19533 2010-05-16  Bruno Haible  <bruno@clisp.org>
19534
19535         absolute-header: Make the macro usable in more situations.
19536         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
19537         from gl_ABSOLUTE_HEADER.
19538         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
19539
19540 2010-05-16  James Youngman  <jay@gnu.org>
19541
19542         doc: update users.txt
19543         * users.txt: Add CSSC.
19544
19545 2010-05-16  Jim Meyering  <meyering@redhat.com>
19546
19547         init.sh: fix an error in the previous change; add more comments
19548         * tests/init.sh: Compare exit code in loop against 9, not 2.
19549         Patch by Bruno Haible.
19550         Make the two tests more similar by adding an empty "then" clause.
19551         Add comments.
19552
19553         init.sh: avoid unnecessary shell re-exec
19554         * tests/init.sh: Improve the re-exec-required check to first test the
19555         current shell.  If it passes the test, do not search for a shell that
19556         does pass, and do not re-exec.  This test is particularly contorted to
19557         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
19558         of $(...) evokes a syntax error and causes immediate shell exit with
19559         status 2.  Bruno Haible reported that the re-exec made it impossible
19560         to single-step through any init.sh-using script.
19561
19562 2010-05-16  Bruno Haible  <bruno@clisp.org>
19563
19564         Fix collision between gnulib's and libintl's printf replacements.
19565         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
19566         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
19567         (printf): When using GNU C, map the __printf__ function to rpl_printf
19568         via __asm__. When not using GNU C, define rpl_printf instead of
19569         __printf__.
19570         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
19571         commit.
19572         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
19573         commit.
19574         * m4/asm-underscore.m4: New file.
19575         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
19576         * modules/stdio (Files): Add m4/asm-underscore.m4.
19577         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
19578         Reported by Ben Pfaff.
19579
19580 2010-05-16  Bruno Haible  <bruno@clisp.org>
19581
19582         verify: Avoid skipping the test on openSUSE 11.0.
19583         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
19584
19585 2010-05-13  Bruno Haible  <bruno@clisp.org>
19586
19587         Avoid useless warnings from G++.
19588         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
19589         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
19590         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
19591
19592 2010-05-11  Jim Meyering  <meyering@redhat.com>
19593
19594         maint.mk: tweak preceding change
19595         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
19596         regexps tighter by anchoring at EOL, and make the new group "shy"
19597         for slightly decreased overhead.
19598
19599 2010-05-11  Eric Blake  <eblake@redhat.com>
19600
19601         maint.mk: gnulib doesn't guarantee NSIG
19602         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
19603
19604 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
19605
19606         test-pwrite.c: Remove unused variable declaration.
19607         * tests/test-pwrite.c (main): Remove read_buf declaration.
19608
19609         Remove useless test-pwrite.sh file.
19610         * tests/test-pwrite.sh: Delete file.
19611         * modules/pwrite-tests: Remove references.
19612         Reported by Bruno Haible.
19613
19614 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
19615
19616         init.sh: fix a typo
19617         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
19618
19619 2010-05-10  Jim Meyering  <meyering@redhat.com>
19620
19621         maint.mk: avoid using a temporary file in the always-defined-macros check
19622         * top/maint.mk (.re-defmac): Remove rule.
19623         (gl_trap_): Remove definition.
19624         (sc_prohibit_always-defined_macros): Rewrite not to create and
19625         depend on a temporary file.  Instead, depend on GNU grep's ability
19626         to read a list of regular expressions from stdin when given "-f -".
19627
19628 2010-05-09  Bruno Haible  <bruno@clisp.org>
19629
19630         Update to GNU gettext 0.18, part 1.
19631         * m4/gettext.m4: Update to GNU gettext 0.18.
19632         * m4/intl.m4: Likewise.
19633         * m4/po.m4: Likewise.
19634         * modules/gettext (Files): Add m4/fcntl-o.m4.
19635         (configure.ac): Require gettext infrastructure from version 0.18.
19636
19637 2010-05-09  Jim Meyering  <meyering@redhat.com>
19638
19639         init.sh: enable MALLOC_PERTURB_
19640         * tests/init.sh: Enable glibc's malloc-perturbing option.
19641
19642         maint.mk: improve sc_cross_check_PATH_usage_in_tests
19643         With my recent change in init.sh from the two-line form:
19644             -#   : ${srcdir=.}
19645             -#   . "$srcdir/init.sh"; path_prepend_ .
19646             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
19647         I noticed that using the one-line form would cause this test
19648         to fail with a false-positive, or to stop working altogether,
19649         depending on whether help-version changed or all the tests did.
19650         * top/maint.mk (_hv_regex): Remove this definition.
19651         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
19652         (_hv_regex_strong): Use a stronger regex to check for conformance.
19653         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
19654         Give a separate diagnostic for lack of conforming use.
19655
19656         maint.mk: prohibit definition of symbols defined by gnulib
19657         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
19658         definition of symbols defined by gnulib.
19659
19660 2010-05-09  Bruno Haible  <bruno@clisp.org>
19661
19662         acl: Avoid test failure on Cygwin-hosted mingw.
19663         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
19664
19665 2010-05-09  Bruno Haible  <bruno@clisp.org>
19666
19667         error: Use system's fcntl function.
19668         * lib/error.c (fcntl): Undefine.
19669
19670 2010-05-09  Jim Meyering  <meyering@redhat.com>
19671
19672         verify: adjust formatting to be more consistent
19673         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
19674         argument-list '('s, and after one comma.
19675
19676 2010-05-09  Bruno Haible  <bruno@clisp.org>
19677
19678         error: More reliable output on mingw.
19679         * lib/error.c: Include <windows.h>.
19680         (is_open): New function.
19681         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
19682         defined.
19683
19684 2010-05-09  Bruno Haible  <bruno@clisp.org>
19685
19686         vasnprintf: Fix syntax errors in libintl build on mingw.
19687         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
19688         pad_ourselves and prec_ourselves after use.
19689
19690 2010-05-08  Bruno Haible  <bruno@clisp.org>
19691
19692         * lib/config.charset: Update comments for Cygwin 1.7.
19693         * lib/localcharset.c: Likewise.
19694
19695 2010-05-07  Jim Meyering  <meyering@redhat.com>
19696
19697         init.sh: improve comments
19698         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
19699         . "${srcdir=.}/init.sh"; path_prepend_ .
19700         Add a note about path_prepend_ and the alternative of using
19701         TESTS_ENVIRONMENT.
19702
19703 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
19704
19705         exclude: Unescape hashed patterns in wildcard mode.
19706         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
19707         to the hash list.
19708         * tests/test-exclude8.sh: New test case.
19709         * modules/exclude-tests: Add new test.
19710
19711 2010-05-05  Eric Blake  <eblake@redhat.com>
19712
19713         verify: automate tests
19714         * modules/verify-tests: New module.
19715         * tests/test-verify.sh: New file.
19716         * tests/test-verify.c: Guard each negative test with a unique id.
19717         Also avoid warning about unused left hand of comma expressions.
19718
19719 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
19720
19721         Further improvements to verify.h, suggested by Eric Blake.
19722         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
19723         the GL_* versions, to avoid collision with OpenGL.
19724         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
19725         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
19726         than testing merely whether it's defined.
19727
19728         Modify verify.h to pacify gcc -Wredundant_decls.
19729         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
19730         These use the prefix "GL_" since they're likely to be useful elsewhere.
19731         We may need to break them out into a different .h file.
19732         (__COUNTER__): Define to 0 if the compiler doesn't support it.
19733         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
19734         of verify_function__.
19735
19736 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
19737
19738         Tests for module pwrite.
19739         * modules/pwrite-tests: New file.
19740         * tests/test-pwrite.sh: New file.
19741         * tests/test-pwrite.c: New file.
19742
19743         New module pwrite.
19744         * lib/unistd.in.h (pwrite): New declaration.
19745         * lib/pwrite.c: New file, from glibc with modifications.
19746         * m4/pwrite.m4: New file.
19747         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
19748         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
19749         REPLACE_PWRITE.
19750         * modules/pwrite: New file.
19751         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
19752         REPLACE_PWRITE.
19753         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
19754         * doc/posix-functions/pwrite.texi: Mention the new module.
19755
19756 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
19757
19758         pread: Update documentation.
19759         * doc/posix-functions/pread.texi: Mention the 'pread' module.
19760
19761 2010-05-04  Eric Blake  <eblake@redhat.com>
19762
19763         docs: update cygwin progress
19764         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
19765         this bug.
19766         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
19767         Added in cygwin 1.7.2.
19768         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
19769         Likewise.
19770         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
19771         Likewise.
19772         * doc/glibc-functions/dup3.texi (dup3): Likewise.
19773         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
19774         * doc/glibc-functions/accept4.texi (accept4): Likewise.
19775         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
19776         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
19777         Mention nproc module.
19778         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
19779         bug in cygwin 1.7.5 addition.
19780         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
19781         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
19782         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
19783         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
19784         1.7.5.
19785         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
19786         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
19787         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
19788         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
19789         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
19790         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
19791         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
19792         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
19793         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
19794         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
19795         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
19796         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
19797         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
19798         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
19799         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
19800         Likewise.
19801         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
19802         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
19803         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
19804         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
19805         Likewise.
19806         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
19807         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
19808         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
19809         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
19810         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
19811         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
19812         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
19813         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
19814         Likewise.
19815         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
19816         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
19817         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
19818         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
19819         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
19820         Likewise.
19821         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
19822         Likewise.
19823         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
19824         Likewise.
19825         * doc/glibc-functions/xdrrec_endofrecord.texi
19826         (xdrrec_endofrecord): Likewise.
19827         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
19828         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
19829         Likewise.
19830         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
19831         Likewise.
19832
19833 2010-05-04  Jim Meyering  <meyering@redhat.com>
19834
19835         gendocs.sh: make its "-s FILE" option more useful
19836         * build-aux/gendocs.sh: When honoring the -s FILE option, update
19837         $PACKAGE to reflect the probably-different basename of "FILE".
19838
19839 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
19840
19841         bootstrap: don't ignore download_po_files failure
19842         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
19843         failure.
19844
19845 2010-05-03  Jim Meyering  <meyering@redhat.com>
19846
19847         maint.mk: allow to pass options to gendocs.sh
19848         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
19849         (gendocs_options_): New overridable variable.
19850
19851         gnu-web-doc-update: don't ignore configure or build failure
19852         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
19853
19854         announce-gen: backslash-escape '@'s in --help output
19855         * build-aux/announce-gen: Fix syntax errors.
19856
19857         maint.mk, announce-gen: allow project-specific announcement mail headers
19858         * top/maint.mk (translation_project_): Define default.
19859         (announcement_Cc_, announcement_mail_headers_): Likewise.
19860         (announcement): Invoke announce-gen with new --mail-headers option.
19861         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
19862
19863         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
19864         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
19865         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
19866         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
19867         line in the "err2" output file when running "make check" in verbose
19868         mode (i.e., with set -x enabled).
19869
19870 2010-05-03  Bruno Haible  <bruno@clisp.org>
19871
19872         wctob: Fix for weird platforms.
19873         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
19874         argument value.
19875
19876 2010-05-03  Jim Meyering  <meyering@redhat.com>
19877
19878         maint.mk: prohibit unwarranted use of <strings.h>
19879         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
19880         strings.h in a file that does not also use strcasecmp, strncasecmp,
19881         ffs or ffsll.
19882
19883         maint.mk: remove obsolete comments
19884         * top/maint.mk: Remove stale, commented-out rules.
19885
19886 2010-05-02  Bruno Haible  <bruno@clisp.org>
19887
19888         wcwidth: Declare also when it's aliased.
19889         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
19890         macro.
19891
19892 2010-05-02  Bruno Haible  <bruno@clisp.org>
19893
19894         Fix regression from 2010-04-25.
19895         * gnulib-tool (func_modules_transitive_closure): Check the status of
19896         all modules, not only of the tests that are of the form foo-tests where
19897         foo is a module.
19898
19899 2010-05-02  Bruno Haible  <bruno@clisp.org>
19900
19901         wctob: Work around nasty Cygwin 1.7.2 bug.
19902         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
19903         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
19904
19905 2010-05-01  Bruno Haible  <bruno@clisp.org>
19906
19907         fpurge: Sharper test.
19908         * tests/test-fpurge.c (main): Add one more ftell check.
19909         * modules/fpurge-tests (Depends-on): Add ftell.
19910         Suggested by Eric Blake.
19911
19912 2010-05-01  Bruno Haible  <bruno@clisp.org>
19913
19914         ftello: Another test.
19915         * tests/test-ftello3.c: New file.
19916         * modules/ftello-tests (Files): Add it.
19917         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
19918         MOSTLYCLEANFILES.
19919
19920         ftell: Another test.
19921         * tests/test-ftell3.c: New file.
19922         * modules/ftell-tests (Files): Add it.
19923         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
19924         MOSTLYCLEANFILES.
19925
19926 2010-05-01  Bruno Haible  <bruno@clisp.org>
19927
19928         ftell, ftello: Work around Solaris bug.
19929         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
19930         * lib/ftello.c: Include stdio-impl.h.
19931         (ftello): On Solaris, when _IOWRT is set, compute the result without
19932         looking at _IOREAD.
19933         * modules/ftello (Files): Add lib/stdio-impl.h.
19934         * doc/posix-functions/ftell.texi: Mention Solaris bug.
19935         * doc/posix-functions/ftello.texi: Likewise.
19936         Reported by Eric Blake.
19937
19938 2010-05-01  Bruno Haible  <bruno@clisp.org>
19939
19940         freading: Adapt to special meaning of _IOREAD flag on Solaris.
19941         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
19942         the _IOWRT flag is also set.
19943
19944 2010-05-01  Bruno Haible  <bruno@clisp.org>
19945
19946         Fix doc about a HP-UX stdio bug.
19947         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
19948         * doc/posix-functions/ftello.texi: Likewise.
19949
19950 2010-05-01  Bruno Haible  <bruno@clisp.org>
19951
19952         lseek test: Fix failure on Solaris.
19953         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
19954         output.
19955
19956 2010-04-30  Jim Meyering  <meyering@redhat.com>
19957
19958         bootstrap: don't ignore failure to generate po*/Makevars
19959         * build-aux/bootstrap (with_gettext): Don't ignore failure
19960         to create po/Makevars or runtime-po/Makevars.
19961
19962 2010-04-29  Eric Blake  <eblake@redhat.com>
19963
19964         headers: relax license to LGPLv2+
19965         * modules/fcntl-h (License): Relax license.
19966         * modules/getopt-posix (License): Likewise.
19967         * modules/locale (License): Likewise.
19968         * modules/math (License): Likewise.
19969         * modules/pty (License): Likewise.
19970         * modules/sched (License): Likewise.
19971         * modules/search (License): Likewise.
19972         * modules/spawn (License): Likewise.
19973         * modules/stdarg (License): Likewise.
19974         * modules/sysexits (License): Likewise.
19975
19976 2010-04-29  Jim Meyering  <meyering@redhat.com>
19977
19978         inttypes: relax license to LGPLv2+
19979         * modules/inttypes (License): Relax license.
19980
19981 2010-04-29  Simon Josefsson  <simon@josefsson.org>
19982
19983         * top/maint.mk (indent): Run twice to produce idempotent results.
19984
19985 2010-04-28  Bruno Haible  <bruno@clisp.org>
19986
19987         getdate: Generate getdate.c in the source directory.
19988         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
19989         MOSTLYCLEANFILES.
19990         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
19991
19992 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
19993
19994         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
19995         is not declared as a const *; avoid warnings in that case.
19996
19997 2010-04-28  Eric Blake  <eblake@redhat.com>
19998
19999         canonicalize-lgpl: avoid compiler warning
20000         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
20001         declaration' / 'extraneous semicolon' warning with some compilers.
20002         Reported by Andreas Gruenbacher.
20003
20004 2010-04-28  Jim Meyering  <meyering@redhat.com>
20005
20006         init.sh: ensure a more reliable exit status when exiting via trap
20007         * tests/init.sh (setup_): Don't rely on $? in signal handler.
20008         Inspired by patches from Dmitry V. Levin.
20009         Also trap on signal 3 (SIGQUIT).
20010
20011 2010-04-27  Bruno Haible  <bruno@clisp.org>
20012
20013         Update doc about utimes().
20014         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
20015         'utimens' module.
20016         Reported by Andreas Gruenbacher <agruen@suse.de>.
20017
20018 2010-04-27  Eric Blake  <eblake@redhat.com>
20019
20020         full-read, full-write: relax license
20021         * modules/full-read (License): Drop to LGPLv2+.
20022         * modules/full-write (License): Likewise.
20023         * modules/safe-read (License): Likewise.
20024         * modules/safe-write (License): Likewise.
20025
20026         pthread: mention library for linking
20027         * modules/pthread (Link): Mention $(LIB_PTHREAD).
20028
20029 2010-04-27  Jim Meyering  <meyering@redhat.com>
20030
20031         maint.mk: fix a bug introduced in last change
20032         * top/maint.mk (gl_assured_headers_): Now that all names are on
20033         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
20034         is not anchored to end of word, it should be adequate.
20035
20036         maint.mk: avoid side-effect in latest syntax-check
20037         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
20038         to run commands via $(shell...), and hence to incur cost only when
20039         the new rule is actually run.
20040
20041         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
20042         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
20043         and use that to create a regexp used to detect all #if HAVE_..._H uses.
20044         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
20045         (gl_assured_headers_, az_, AZ_): Define.
20046         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
20047
20048 2010-04-26  Jim Meyering  <jim@meyering.net>
20049             Bruno Haible  <bruno@clisp.org>
20050
20051         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
20052         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
20053         Prompted by an exchange with Gilles Espinasse.
20054
20055 2010-04-26  Jim Meyering  <meyering@redhat.com>
20056
20057         git-version-gen: aesthetic tweak
20058         * build-aux/git-version-gen: Use "$nl" rather than a literal,
20059         so that the command remains on a single line.
20060
20061 2010-04-26  Eric Blake  <eblake@redhat.com>
20062
20063         git-version-gen: allow use on EBCDIC hosts
20064         * build-aux/git-version-gen (dirty): Use literal rather than tying
20065         ourselves to ascii.
20066         Reported by Steve Goetze.
20067
20068 2010-04-25  Bruno Haible  <bruno@clisp.org>
20069
20070         netdb: Add support for GNULIB_POSIXCHECK.
20071         * lib/netdb.in.h: Include warn-on-use.h.
20072         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
20073         functions are used when GNULIB_POSIXCHECK is defined and the
20074         getaddrinfo module is not in use.
20075         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
20076         freeaddrinfo, gai_strerror, getnameinfo are declared.
20077         * modules/netdb (Depends-on): Add warn-on-use.
20078         (Makefile.am): Include warn-on-use.h in netdb.h.
20079
20080 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
20081
20082         build: avoid "make check" failure without .git/ directory
20083         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
20084         there is no .git/ directory.
20085
20086 2010-04-25  Bruno Haible  <bruno@clisp.org>
20087
20088         ptsname: Fix misuse of ttyname_r.
20089         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
20090         of errno.
20091
20092 2010-04-25  Bruno Haible  <bruno@clisp.org>
20093
20094         ttyname_r: Make it work on Solaris 10.
20095         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
20096         if the system function has the POSIX declaration. Test whether the
20097         function fails if the buffer is less than 128 bytes large.
20098         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
20099         system's ttyname_r function. Provide a reasonably large buffer.
20100         * modules/ttyname_r (Depends-on): Add extensions.
20101         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
20102
20103 2010-04-25  Bruno Haible  <bruno@clisp.org>
20104
20105         Use the 'extensions' module for some more functions on Solaris.
20106         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
20107         module.
20108         * doc/posix-functions/ctime_r.texi: Likewise.
20109         * doc/posix-functions/getgrgid_r.texi: Likewise.
20110         * doc/posix-functions/getgrnam_r.texi: Likewise.
20111         * doc/posix-functions/getpwnam_r.texi: Likewise.
20112         * doc/posix-functions/getpwuid_r.texi: Likewise.
20113         * doc/posix-functions/readdir_r.texi: Likewise.
20114         * doc/posix-functions/sigwait.texi: Likewise.
20115         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
20116         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
20117
20118 2010-04-25  Bruno Haible  <bruno@clisp.org>
20119
20120         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
20121         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
20122         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
20123         * lib/ttyname_r.c: Include <limits.h>.
20124         (ttyname_r): Define using the system's ttyname_r function, if it exists
20125         and not on Solaris.
20126         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
20127         set.
20128         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
20129         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
20130         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
20131         Reported by Simon Josefsson.
20132
20133 2010-04-25  Bruno Haible  <bruno@clisp.org>
20134
20135         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
20136         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
20137         * doc/posix-functions/ctime_r.texi: Likewise.
20138         * doc/posix-functions/getgrgid_r.texi: Likewise.
20139         * doc/posix-functions/getgrnam_r.texi: Likewise.
20140         * doc/posix-functions/getlogin_r.texi: Likewise.
20141         * doc/posix-functions/getpwnam_r.texi: Likewise.
20142         * doc/posix-functions/getpwuid_r.texi: Likewise.
20143         * doc/posix-functions/readdir_r.texi: Likewise.
20144         * doc/posix-functions/sigwait.texi: Likewise.
20145         * doc/posix-functions/ttyname_r.texi: Likewise.
20146         Reported by Simon Josefsson.
20147
20148 2010-04-25  Bruno Haible  <bruno@clisp.org>
20149
20150         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
20151         * gnulib-tool (func_usage): Document that --with-*-tests options apply
20152         also to --create-testdir.
20153         (func_acceptable): Don't consider the status of *-tests modules here.
20154         (func_modules_transitive_closure): Consider it here, before including a
20155         test module.
20156         (func_import, func_create_testdir): Set inc_all_direct_tests,
20157         inc_all_indirect_tests.
20158         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
20159         --create-testdir and --create-megatestdir.
20160
20161 2010-04-25  Bruno Haible  <bruno@clisp.org>
20162
20163         gnulib-tool: Add --without-*-tests options.
20164         * gnulib-tool (func_usage): Document the --without-*-tests options.
20165         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
20166         excl_unportable_tests): New variables.
20167         Fail if they are specified with --import or --update.
20168         (func_acceptable): Respect the excl_*_tests variables.
20169         (func_import): Set the excl_*_tests variables to empty.
20170
20171 2010-04-25  Simon Josefsson  <simon@josefsson.org>
20172             Bruno Haible  <bruno@clisp.org>
20173
20174         Work around a MacOS X 10.4 bug with openpty.
20175         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
20176         * tests/test-openpty.c (main): Close the master side explicitly.
20177
20178 2010-04-25  Bruno Haible  <bruno@clisp.org>
20179
20180         strnlen: Fix a C++ test error on MacOS X and Solaris.
20181         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
20182         the function is not declared.
20183         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
20184         Simon Josefsson.
20185
20186 2010-04-24  Bruno Haible  <bruno@clisp.org>
20187
20188         Avoid a gcc warning.
20189         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
20190         of correct type for %08lx directive.
20191         Reported by Eric Blake.
20192
20193 2010-04-24  Bruno Haible  <bruno@clisp.org>
20194
20195         vasnprintf: Correct errno value in case of out-of-memory.
20196         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
20197         or sprintf. Use the errno value from SNPRINTF or sprintf.
20198         Reported by Ian Beckwith <ianb@erislabs.net>.
20199
20200 2010-04-24  Bruno Haible  <bruno@clisp.org>
20201
20202         ansi-c++-opt: Find correct compiler when cross-compiling.
20203         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
20204         AC_CHECK_PROGS.
20205         Reported by Simon Josefsson.
20206
20207 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
20208
20209         vc-list-files: Add support for subversion
20210         * build-aux/vc-list-files: Use "svn list" to generate the list of
20211         files controlled by subversion.
20212
20213 2010-04-23  Jim Meyering  <meyering@redhat.com>
20214
20215         vc-list-files tests: convert to use init.sh
20216         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
20217         path_prepend_.
20218         Use Exit, not exit.
20219         Use skip_ rather than open coding it.
20220         Remove trap set-up and compare definitions.
20221         * tests/test-vc-list-files-git.sh: Likewise.
20222         * modules/vc-list-files-tests (Files): Add tests/init.sh.
20223
20224 2010-04-22  Simon Josefsson  <simon@josefsson.org>
20225
20226         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
20227         backup files.
20228
20229 2010-04-21  Simon Josefsson  <simon@josefsson.org>
20230
20231         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
20232
20233 2010-04-20  Eric Blake  <eblake@redhat.com>
20234
20235         tests: be robust to ignored SIGPIPE
20236         * tests/test-select-in.sh: Consume all output.
20237         * tests/test-lseek.sh: Check correct exit status, while avoiding
20238         EPIPE.
20239
20240 2010-04-20  Simon Josefsson  <simon@josefsson.org>
20241             Bruno Haible  <bruno@clisp.org>
20242
20243         visibility: Don't use -fvisibility if it leads to a warning.
20244         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
20245         yes, don't pretend that visibility works if it leads to a warning.
20246         Reported by Mike Gran <spk121@yahoo.com>.
20247
20248 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
20249
20250         * build-aux/bootstrap: Use "git -h" for testing for supported options
20251         instead of "git --help".  The short-form option only shows a summary,
20252         and doesn't layout the full man page.  Grep for the full option name
20253         in the summary, too.
20254
20255 2010-04-19  Bruno Haible  <bruno@clisp.org>
20256
20257         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
20258         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
20259         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
20260         mention of RELOCATABLE_STRIP.
20261         Reported by Sylvain Beucler <beuc@beuc.net>.
20262
20263 2010-04-19  Bruno Haible  <bruno@clisp.org>
20264
20265         * lib/diffseq.h: Fix typo in comment.
20266         Reported by Eric Blake.
20267
20268 2010-04-19  Bruno Haible  <bruno@clisp.org>
20269
20270         ioctl: Move autoconf macro to a .m4 file.
20271         * m4/ioctl.m4: New file, extracted from modules/ioctl.
20272         * modules/ioctl (Files): Add it.
20273         (configure.ac): Simply invoke gl_FUNC_IOCTL.
20274         Reported by Ian Beckwith <ianb@erislabs.net>.
20275
20276 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
20277             Bruno Haible  <bruno@clisp.org>
20278
20279         diffseq: Accommodate use-case with abstract arrays.
20280         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
20281         is not defined.
20282         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
20283         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
20284
20285 2010-04-18  Bruno Haible  <bruno@clisp.org>
20286
20287         * doc/posix-headers/stdbool.texi: More precise wording.
20288
20289 2010-04-17  Jim Meyering  <meyering@redhat.com>
20290
20291         maint.mk: use gnu-style indentation in an embedded perl script
20292         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
20293         Rename variable: s/two/last_two_bytes/
20294
20295 2010-04-16  Eric Blake  <eblake@redhat.com>
20296
20297         test-stdbool: skip test that fails with Solaris CC
20298         * tests/test-stdbool.c (f): Skip test that causes compilation
20299         error under buggy C++ compiler.
20300         * lib/stdbool.in.h: Document the limitation.
20301         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
20302
20303         setenv: allow compilation with C++
20304         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
20305         register keyword.
20306
20307         stdint: allow test to pass with C++
20308         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
20309
20310         getopt: allow compilation with C++
20311         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
20312         struct.
20313         * lib/getopt.c (_getopt_internal_r): Use correct type.
20314         Reported by Dagobert Michelson, via Joel E. Denny.
20315
20316 2010-04-16  Bruno Haible  <bruno@clisp.org>
20317
20318         Override netdb.h always.
20319         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
20320         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
20321         Reported by Ludovic Courtès <ludo@gnu.org>.
20322
20323 2010-04-15  Bruno Haible  <bruno@clisp.org>
20324
20325         openpty: Fix mistake from 2010-03-21.
20326         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
20327         Reported by Simon Josefsson.
20328
20329 2010-04-15  Eric Blake  <eblake@redhat.com>
20330
20331         test-forkpty: fix expected signature
20332         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
20333         Reported by Simon Josefsson.
20334
20335 2010-04-15  Jim Meyering  <meyering@redhat.com>
20336
20337         maint.mk: texinfo_suffix_re_: correct the default regexp
20338         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
20339
20340         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
20341         make it configurable via texinfo_suffix_re_.
20342
20343 2010-04-14  Eric Blake  <eblake@redhat.com>
20344
20345         strtok_r: relax license to LGPLv2+
20346         * modules/strtok_r (License): Relax license.
20347         Reported by Matthias Bolte.
20348
20349 2010-04-14  Simon Josefsson  <simon@josefsson.org>
20350
20351         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
20352         version 1.4.4 by default instead of requiring the libgcrypt
20353         version used during build.  This makes it possible to use the
20354         application with older but still binary compatible libgcrypt
20355         versions.
20356
20357 2010-04-13  Eric Blake  <eblake@redhat.com>
20358
20359         getopt-gnu: match recent glibc fixes and posix ruling
20360         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
20361         '+' handling, when requesting extensions.
20362         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
20363         'W;' handling.
20364         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
20365         * doc/posix-functions/getopt.texi (getopt): Document this.
20366         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
20367         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
20368         Likewise.
20369
20370         getopt: merge bug fixes from glibc
20371         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
20372         diagnostics.  Honor '+:' correctly.  Reject ';'.
20373
20374         getopt-posix: detect MacOS bug
20375         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
20376         optind when missing a required argument.
20377         * doc/posix-functions/getopt.texi (getopt): Document the bug.
20378         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
20379         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
20380         Likewise.
20381
20382         getopt-posix: avoid spurious failure on Solaris
20383         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
20384         an indicator that setting optind=1 is sufficient for reset.
20385
20386         getopt-posix: avoid spurious failure on FreeBSD
20387         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
20388         in POSIX mode, since the m4 test uses it.
20389
20390         gnulib-tool: silence warning on BSD sh
20391         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
20392
20393 2010-04-13  Jim Meyering  <meyering@redhat.com>
20394
20395         doc: users.txt: GNU patch now uses gnulib
20396         * users.txt: Add patch.
20397
20398 2010-04-12  Jim Meyering  <meyering@redhat.com>
20399
20400         maint.mk: generate more concise timing data for syntax-check rules
20401         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
20402         " done" from each line that reports a syntax-check test duration.
20403
20404 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
20405
20406         git-version-gen: use "git update-index..." rather than "git status"
20407         * build-aux/git-version-gen: Use git update-index --refresh, not
20408         "git status".  With some versions of git, "git status" would fail
20409         to update the index and result in an unwarranted "-dirty" suffix.
20410
20411 2010-04-11  Jim Meyering  <meyering@redhat.com>
20412
20413         openat: correct formatting (no semantic change)
20414         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
20415         Suggested by Bruno Haible.
20416
20417 2010-04-11  Bruno Haible  <bruno@clisp.org>
20418
20419         Stricter declaration checking in testdirs.
20420         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
20421         If for_tests is true, augment AM_CPPFLAGS to define
20422         GNULIB_STRICT_CHECKING.
20423         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
20424         GNULIB_STRICT_CHECKING is defined, verify that the function is
20425         declared.
20426
20427 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
20428             Bruno Haible  <bruno@clisp.org>
20429
20430         libunistring: Improve configure output.
20431         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
20432         Don't say "consider installing GNU libunistring" when checking again
20433         with libiconv.
20434
20435 2010-04-11  Bruno Haible  <bruno@clisp.org>
20436
20437         libunistring: Correct value of $LTLIBUNISTRING.
20438         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
20439         correct the value of $LTLIBUNISTRING.
20440
20441 2010-04-11  Bruno Haible  <bruno@clisp.org>
20442
20443         havelib: Add static libraries to LIBS in the right order.
20444         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
20445         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
20446
20447 2010-04-11  Bruno Haible  <bruno@clisp.org>
20448
20449         libunistring: Detect libunistring also when it depends on libiconv.
20450         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
20451         the second AC_LIB_HAVE_LINKFLAGS invocation.
20452
20453 2010-04-11  James Youngman  <jay@gnu.org>
20454
20455         close-stream: declare local scalars to be "const"
20456         * lib/close-stream.c (close_stream): Make boolean variables const
20457         to document the fact that we set but do not change them.
20458
20459 2010-04-11  Bruno Haible  <bruno@clisp.org>
20460
20461         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
20462
20463 2010-04-11  Jim Meyering  <meyering@redhat.com>
20464
20465         maint.mk: don't include dist-check.mk
20466         * top/maint.mk: Remove bogus include directive.
20467
20468         maint.mk: improve empty-line-at-EOF check
20469         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
20470         solution, rather than tail+Perl-based one.  The latter would read
20471         a few kilobytes from the end of each file, and did not handle empty
20472         files properly.
20473
20474         maint.mk: print the elapsed time for each syntax-check rule
20475         * top/maint.mk (sc_m_rules_): Save start time in a file.
20476         (sc_z_rules_): New rules: remove temp file and print elapsed time.
20477         (local-check): Interpose the .z rules
20478
20479 2010-04-11  Jim Meyering  <meyering@redhat.com>
20480
20481         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
20482         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
20483         empty file with one that ends in an empty line.
20484
20485 2010-04-10  Bruno Haible  <bruno@clisp.org>
20486
20487         mkdir: Make it work on mingw64.
20488         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
20489         * lib/mkdir.c: Update comment.
20490         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
20491
20492 2010-04-10  Bruno Haible  <bruno@clisp.org>
20493
20494         Don't override improved macro from newer autoconf.
20495         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
20496         autoconf >= 2.62.
20497         Reported by Joel E. Denny <jdenny@clemson.edu>.
20498
20499 2010-04-10  Jim Meyering  <meyering@redhat.com>
20500
20501         maint.mk: new syntax-check rule: prohibit empty lines at end of file
20502         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
20503
20504         maint.mk: correct a diagnostic
20505         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
20506         in diagnostic; now use $prohibit.
20507
20508 2010-04-10  Bruno Haible  <address@hidden>
20509
20510         fchownat: Fix a C++ test error on Solaris 8.
20511         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
20512         the function does not exist.
20513
20514 2010-04-10  Bruno Haible  <bruno@clisp.org>
20515
20516         vasnprintf: Add more tests.
20517         * tests/test-vasnprintf-posix.c: Include <errno.h>.
20518         (test_function): Test converting an invalid wide string.
20519
20520         vasnprintf: Correct handling of unconvertible wide string arguments.
20521         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
20522         VASNPRINTF.
20523         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
20524         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
20525         smaller than the expected maximum need for the directive. Set errno to
20526         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
20527         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
20528         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
20529         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
20530         * modules/vasnprintf (Files): Add m4/printf.m4.
20531         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20532
20533 2010-04-10  Bruno Haible  <bruno@clisp.org>
20534
20535         vasnprintf: Fix crash in %ls directive.
20536         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
20537         string is passed as argument to %ls, with no precision and no width.
20538         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20539
20540 2010-04-10  Bruno Haible  <bruno@clisp.org>
20541
20542         vasnprintf: Fix multiple test failures on mingw.
20543         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
20544         _snprintf, or snwprintf, not _snwprintf.
20545
20546 2010-04-10  Bruno Haible  <bruno@clisp.org>
20547
20548         write: Fix a C++ test error on mingw.
20549         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
20550
20551 2010-04-10  Bruno Haible  <bruno@clisp.org>
20552
20553         vasnprintf test: Reduce code duplication.
20554         * tests/test-vasnprintf.c (test_function): New function, extracted from
20555         test_vasnprintf.
20556         (test_vasnprintf, test_asnprintf): Invoke it.
20557
20558 2010-04-10  Bruno Haible  <bruno@clisp.org>
20559
20560         strnlen: Fix warning in C++ mode on MacOS X.
20561         * lib/string.in.h (strnlen): Use the modern idiom.
20562         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
20563         defining strnlen as a macro already in <config.h>.
20564         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
20565         REPLACE_STRNLEN.
20566         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
20567         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20568
20569 2010-04-08  James Youngman  <jay@gnu.org>
20570
20571         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
20572         the example.
20573
20574 2010-04-09  Jim Meyering  <meyering@redhat.com>
20575
20576         maint.mk: print better diagnostic when there is no $(_hv_file)
20577         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
20578         announce that when $(_hv_file) (aka help-version) does not exist.
20579
20580         init.sh: run tr in the "C" locale to avoid multibyte interpretation
20581         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
20582         not try to interpret its random input bytes.  Jarno Rajahalme reported
20583         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
20584         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
20585         (mktempd_): Likewise, just in case.
20586
20587         ftruncate: add two years to projected module removal date: 2012
20588         * m4/ftruncate.m4: Adjust comments.
20589
20590         ftruncate: mark module as obsolete; even MinGW provides it, now
20591         * modules/ftruncate (Status): Obsolete.
20592         (Notice): Say that.
20593         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
20594         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
20595
20596 2010-04-08  Bruno Haible  <bruno@clisp.org>
20597
20598         Fix side effects from tests-related modules.
20599         * modules/dprintf-posix (Comment): New section.
20600         * modules/fprintf-posix (Comment): Likewise.
20601         * modules/obstack-printf-posix (Comment): Likewise.
20602         * modules/printf-posix (Comment): Likewise.
20603         * modules/snprintf-posix (Comment): Likewise.
20604         * modules/sprintf-posix (Comment): Likewise.
20605         * modules/vasnprintf-posix (Comment): Likewise.
20606         * modules/vasprintf-posix (Comment): Likewise.
20607         * modules/vdprintf-posix (Comment): Likewise.
20608         * modules/vfprintf-posix (Comment): Likewise.
20609         * modules/vprintf-posix (Comment): Likewise.
20610         * modules/vsnprintf-posix (Comment): Likewise.
20611         * modules/vsprintf-posix (Comment): Likewise.
20612         * modules/xprintf-posix (Comment): Likewise.
20613         * modules/xvasprintf-posix (Comment): Likewise.
20614         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
20615         * modules/floorf-tests (Depends-on): Likewise.
20616         * modules/round-tests (Depends-on): Likewise.
20617         * modules/roundf-tests (Depends-on): Likewise.
20618         * modules/trunc-tests (Depends-on): Likewise.
20619         * modules/truncf-tests (Depends-on): Likewise.
20620         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
20621         'fprintf-posix' module is not present.
20622         * tests/test-floorf2.c (check): Likewise.
20623         * tests/test-trunc2.c (check): Likewise.
20624         * tests/test-truncf2.c (check): Likewise.
20625         * tests/test-round2.c (equal): Likewise.
20626         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20627
20628 2010-04-07  Karl Berry  <karl@gnu.org>
20629
20630         * config/srclist.txt,
20631         * config/srclistvars.sh,
20632         * config/srclist-update: doc fixes.
20633
20634 2010-04-07  Jim Meyering  <meyering@redhat.com>
20635
20636         maint.mk: add a PATH crosschecking syntax-check rule
20637         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
20638         Useful if you use a test like the one in help-version (coreutils,
20639         diffutils, grep, gzip) that ensures $(VERSION) matches what is
20640         printed by prog --version.
20641
20642 2010-04-06  Bruno Haible  <bruno@clisp.org>
20643
20644         Fix link error on mingw.
20645         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
20646         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
20647
20648 2010-04-06  Bruno Haible  <bruno@clisp.org>
20649
20650         Assume rmdir exists.
20651         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
20652
20653 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
20654
20655         doc: update users.txt
20656         * users.txt: Add gcal.
20657
20658 2010-04-06  Jim Meyering  <meyering@redhat.com>
20659
20660         init.sh: simply unset TMPDIR rather than risking env -i
20661         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
20662         although it probably works fine on all Unix-based systems, some
20663         systems (Cygwin?) cannot tolerate a totally cleared environment.
20664         Suggestion from Eric Blake.
20665
20666 2010-04-06  Jim Meyering  <meyering@redhat.com>
20667
20668         init.sh: portability fix: use env's POSIX-specified -i option not -u
20669         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
20670         than unportable env -u.  Solaris 5.11's env lacks support for -u.
20671
20672 2010-04-05  Bruno Haible  <bruno@clisp.org>
20673
20674         btowc: Work around Cygwin 1.7.2 bug.
20675         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
20676         does not map NUL to 0.
20677         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
20678
20679 2010-04-05  Bruno Haible  <bruno@clisp.org>
20680
20681         Make the multithread modules work on Cygwin 1.7.2.
20682         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
20683         imported symbols can be declared weak, so that it returns "no" on
20684         Cygwin 1.7.2.
20685
20686 2010-04-05  Bruno Haible  <bruno@clisp.org>
20687
20688         Use the module 'strncat'.
20689         * modules/unistr/u8-strncat (Depends-on): Add strncat.
20690
20691         Tests for module 'strncat'.
20692         * modules/strncat-tests: New file.
20693         * tests/test-strncat.c: New file.
20694
20695         New module 'strncat'.
20696         * lib/string.in.h (strncat): New declaration.
20697         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
20698         * m4/strncat.m4: New file, based on m4/memchr.m4.
20699         * modules/strncat: New file.
20700         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
20701         is declared.
20702         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
20703         REPLACE_STRNCAT.
20704         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
20705         REPLACE_STRNCAT.
20706         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
20707         module.
20708         * tests/test-string-c++.cc: Check signature of strncat.
20709
20710 2010-04-05  Jim Meyering  <meyering@redhat.com>
20711
20712         xstrtoumax-tests: convert to use init.sh
20713         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
20714         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
20715         Use Exit, not exit.
20716         Remove uses of $EXEEXT and "./" to run a program in the current dir.
20717
20718         xstrtoimax-tests: convert to use init.sh
20719         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
20720         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
20721         Use Exit, not exit.
20722         Remove uses of $EXEEXT and "./" to run a program in the current dir.
20723
20724 2010-04-05  Bruno Haible  <bruno@clisp.org>
20725
20726         sys_socket: Avoid #define replacements in C++ mode.
20727         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
20728         warning to the function if possible, rather than #defining the symbol
20729         to a dysfunctional alias.
20730
20731 2010-04-05  Bruno Haible  <bruno@clisp.org>
20732
20733         fseeko: Fix C++ test error on mingw.
20734         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
20735         gl_FUNC_FSEEKO.
20736         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
20737         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
20738         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
20739         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
20740
20741 2010-04-05  Bruno Haible  <bruno@clisp.org>
20742
20743         duplocale: Improve test output.
20744         * tests/test-duplocale.c (main): Print reason for skipped test.
20745
20746 2010-04-05  Bruno Haible  <bruno@clisp.org>
20747
20748         Assume rmdir exists.
20749         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
20750         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
20751
20752 2010-04-05  Bruno Haible  <bruno@clisp.org>
20753
20754         Fix link error on Solaris 8 with cc.
20755         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
20756
20757 2010-04-05  Bruno Haible  <bruno@clisp.org>
20758
20759         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
20760         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
20761
20762 2010-04-05  Bruno Haible  <bruno@clisp.org>
20763
20764         vasprintf: Update documentation.
20765         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
20766
20767 2010-04-05  Bruno Haible  <bruno@clisp.org>
20768
20769         ptsname: Improve test.
20770         * tests/test-ptsname.c (main): Also try the various master names of BSD
20771         systems.
20772
20773 2010-04-05  Bruno Haible  <bruno@clisp.org>
20774
20775         memchr: Avoid a possible C++ test error.
20776         * lib/string.in.h (memchr): Provide declaration if function is missing.
20777         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
20778         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
20779         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
20780         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
20781
20782 2010-04-05  Bruno Haible  <bruno@clisp.org>
20783
20784         strtok_r: Improve idiom.
20785         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
20786         AC_LIBOBJ is used.
20787
20788 2010-04-05  Bruno Haible  <bruno@clisp.org>
20789
20790         strdup: Improve idiom.
20791         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
20792         AC_LIBOBJ is used.
20793         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
20794         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
20795         when AC_LIBOBJ is used.
20796
20797 2010-04-05  Bruno Haible  <bruno@clisp.org>
20798
20799         mbsinit, mbrtowc, wcrtomb: Improve idioms.
20800         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
20801         don't set REPLACE_MBSINIT to 1.
20802         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
20803         don't set REPLACE_MBRTOWC to 1.
20804         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
20805         exist, don't set REPLACE_MBSRTOWCS to 1.
20806         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
20807         exist, don't set REPLACE_MBSNRTOWCS to 1.
20808         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
20809         don't set REPLACE_WCRTOMB to 1.
20810         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
20811         exist, don't set REPLACE_WCSRTOMBS to 1.
20812         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
20813         exist, don't set REPLACE_WCSNRTOMBS to 1.
20814
20815 2010-04-05  Bruno Haible  <bruno@clisp.org>
20816
20817         ldexpl: Improve idiom.
20818         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
20819         make sure to set HAVE_DECL_LDEXPL to 0.
20820
20821 2010-04-05  Jim Meyering  <meyering@redhat.com>
20822
20823         xstrtol-tests: convert to use init.sh
20824         * modules/xstrtol-tests (Files): Add tests/init.sh.
20825         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
20826         Use Exit, not exit.
20827         Remove uses of $EXEEXT and "./" to run a program in the current dir.
20828
20829         atexit-tests: convert to use init.sh
20830         * modules/atexit-tests (Files): Add tests/init.sh.
20831         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
20832         Use Exit, not exit.
20833         Remove uses of $EXEEXT and "./" to run a program in the current dir.
20834
20835         init.sh: fix typo
20836         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
20837
20838         init.sh: make it easier for a test script to write to the tty, ...
20839         when using automake's parallel-tests mode.
20840         * tests/init.sh (stderr_fileno_): Define overridable variable.
20841         (warn_): New function, to use it.
20842         (fail_, skip_, framework_failure_): Use warn_.
20843
20844 2010-04-04  Bruno Haible  <bruno@clisp.org>
20845
20846         btowc: Avoid warning.
20847         * lib/btowc.c: Include <stdlib.h>.
20848         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
20849
20850 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
20851             Bruno Haible  <bruno@clisp.org>
20852
20853         wchar: Port to NetBSD 1.5.
20854         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
20855         * lib/wctype.in.h (WEOF): Likewise.
20856
20857 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
20858             Bruno Haible  <bruno@clisp.org>
20859
20860         Port extended stdio to NetBSD 1.5.
20861         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
20862         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
20863         older.
20864
20865 2010-04-04  Bruno Haible  <bruno@clisp.org>
20866
20867         string: Remove unused substitution.
20868         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
20869         HAVE_DECL_STRERROR.
20870         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
20871
20872 2010-04-04  Bruno Haible  <bruno@clisp.org>
20873
20874         strtod: Avoid a possible C++ test error.
20875         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
20876         set REPLACE_STRTOD.
20877
20878 2010-04-04  Bruno Haible  <bruno@clisp.org>
20879
20880         strerror: Update documentation.
20881         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
20882
20883 2010-04-04  Bruno Haible  <bruno@clisp.org>
20884
20885         stdio: Fix some C++ test errors on Solaris 8 with GCC.
20886         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
20887         _GL_CXXALIAS_SYS_CAST.
20888
20889 2010-04-04  Bruno Haible  <bruno@clisp.org>
20890
20891         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
20892         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
20893         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
20894         REPLACE_FREXPL to 1.
20895         * doc/posix-functions/frexpl.texi: Update documentation.
20896
20897 2010-04-04  Bruno Haible  <bruno@clisp.org>
20898
20899         math: Fix some C++ test errors on Solaris 8 and Cygwin.
20900         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
20901
20902 2010-04-04  Bruno Haible  <bruno@clisp.org>
20903
20904         Implement nanosleep for native Windows.
20905         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
20906
20907 2010-04-04  Bruno Haible  <bruno@clisp.org>
20908
20909         math: Fix some C++ test errors on Solaris 8.
20910         * lib/math.in.h (truncf, trunc): Use simpler idiom.
20911
20912 2010-04-04  Bruno Haible  <bruno@clisp.org>
20913
20914         math: Fix some C++ test errors on Cygwin.
20915         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
20916         truncl): Provide declaration if the system does not have it.
20917         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
20918         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
20919         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
20920         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
20921         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
20922         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
20923         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
20924         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
20925         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
20926         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
20927         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
20928         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
20929         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
20930         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
20931         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
20932         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
20933         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
20934         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
20935         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
20936         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
20937         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
20938         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
20939
20940 2010-04-04  Bruno Haible  <bruno@clisp.org>
20941
20942         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
20943         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
20944         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
20945         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
20946         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
20947         * m4/isinf.m4 (gl_ISINF): Likewise.
20948         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
20949
20950 2010-04-04  Bruno Haible  <bruno@clisp.org>
20951
20952         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
20953         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
20954
20955 2010-04-04  Bruno Haible  <bruno@clisp.org>
20956
20957         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
20958         * modules/tmpfile (configure.ac): Update.
20959
20960         tmpfile: Fix C++ test error on mingw.
20961         * lib/stdio.in.h (tmpfile): New declaration.
20962         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
20963         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
20964         * modules/tmpfile (Depends-on): Add stdio.
20965         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
20966         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
20967         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
20968         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
20969         REPLACE_TMPFILE.
20970         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
20971
20972 2010-04-04  Bruno Haible  <bruno@clisp.org>
20973
20974         ioctl: Fix C++ test error on mingw.
20975         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
20976         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
20977         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
20978
20979 2010-04-03  Bruno Haible  <bruno@clisp.org>
20980
20981         wcwidth: Fix C++ test error on mingw.
20982         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
20983         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
20984         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
20985
20986 2010-04-03  Bruno Haible  <bruno@clisp.org>
20987
20988         nanosleep: Fix C++ test error on mingw.
20989         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
20990         * lib/time.in.h (nanosleep): Use modern idiom.
20991         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
20992         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
20993         REPLACE_NANOSLEEP to 1.
20994         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
20995         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
20996
20997 2010-04-03  Bruno Haible  <bruno@clisp.org>
20998
20999         strptime: Fix C++ test error on mingw.
21000         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
21001         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
21002         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
21003         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
21004         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
21005         not REPLACE_STRPTIME.
21006         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
21007         REPLACE_STRPTIME.
21008
21009 2010-04-03  Bruno Haible  <bruno@clisp.org>
21010
21011         timegm: Fix C++ test error on mingw.
21012         * lib/time.in.h (timegm): Use modern idiom.
21013         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
21014         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
21015         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
21016         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
21017
21018 2010-04-03  Bruno Haible  <bruno@clisp.org>
21019
21020         timegm: Assume declaration if function exists.
21021         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
21022         if it exists. Don't clobber ac_cv_func_timegm.
21023
21024 2010-04-03  Bruno Haible  <bruno@clisp.org>
21025
21026         time_r: Fix C++ test error on mingw.
21027         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
21028         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
21029         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
21030         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
21031         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
21032
21033 2010-04-03  Bruno Haible  <bruno@clisp.org>
21034
21035         time_r: Minor updates.
21036         * modules/time_r (Description): Mention the provided functions.
21037         * lib/time_r.c: Don't include <string.h>.
21038         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
21039         * doc/posix-functions/localtime_r.texi: Likewise.
21040
21041 2010-04-03  Bruno Haible  <bruno@clisp.org>
21042
21043         time: Fix regression introduced on 2010-03-08.
21044         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
21045         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
21046
21047 2010-04-03  Jim Meyering  <meyering@redhat.com>
21048
21049         maint.mk: don't silently disable project-specific syntax-check rules
21050         * top/maint.mk (_prohibit_regexp): Define, to help people realize
21051         that they need to convert their project-specific syntax-check rules
21052         to use the new _sc_search_regexp.
21053
21054 2010-04-03  Bruno Haible  <bruno@clisp.org>
21055
21056         fchdir: Fix regression introduced on 2010-03-08.
21057         * lib/unistd.in.h (fchdir): Fix declaration.
21058         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
21059         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
21060         REPLACE_FCHDIR.
21061         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
21062         REPLACE_FCHDIR.
21063
21064 2010-04-03  Bruno Haible  <bruno@clisp.org>
21065
21066         getpagesize: Fix C++ test error on mingw.
21067         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
21068         system does not declare the function.
21069         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
21070         declared.
21071         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21072         HAVE_DECL_GETPAGESIZE.
21073         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
21074
21075 2010-04-03  Bruno Haible  <bruno@clisp.org>
21076
21077         stdio: Make C++ tests work on mingw.
21078         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
21079         does not declare the function.
21080
21081 2010-04-03  Bruno Haible  <bruno@clisp.org>
21082
21083         ftello: Fix C++ test error on mingw.
21084         * lib/stdio.in.h (ftello): Use modern idiom.
21085         * lib/ftello.c (ftello): Renamed from rpl_ftello.
21086         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
21087         is missing and that it needs to be replaced.
21088         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
21089         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
21090         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
21091
21092 2010-04-03  Bruno Haible  <bruno@clisp.org>
21093
21094         fseeko: Fix C++ test error on mingw.
21095         * lib/stdio.in.h (fseeko): Use modern idiom.
21096         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
21097         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
21098         is missing and that it needs to be replaced.
21099         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
21100         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
21101         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
21102
21103 2010-04-03  Bruno Haible  <bruno@clisp.org>
21104
21105         mkstemp: Fix C++ test error on mingw.
21106         * lib/stdlib.in.h (mkstemp): Use modern idiom.
21107         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
21108         function is missing and that it needs to be replaced.
21109         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
21110         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
21111
21112 2010-04-03  Bruno Haible  <bruno@clisp.org>
21113
21114         stpncpy: Fix C++ test error on mingw.
21115         * lib/string.in.h (stpncpy): Use modern idiom.
21116         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
21117         function is missing and that it needs to be replaced.
21118         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
21119         REPLACE_STPNCPY.
21120         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
21121
21122 2010-04-03  Bruno Haible  <bruno@clisp.org>
21123
21124         sys_stat: Fix C++ test error on mingw.
21125         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
21126         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
21127
21128 2010-04-03  Bruno Haible  <bruno@clisp.org>
21129
21130         pty: Update doc.
21131         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
21132
21133 2010-04-03  Bruno Haible  <bruno@clisp.org>
21134
21135         unistd: Fix C++ test error on mingw.
21136         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
21137
21138 2010-04-03  Bruno Haible  <bruno@clisp.org>
21139
21140         Update doc regarding mingw.
21141         * doc/glibc-functions/openpty.texi: Update regarding mingw.
21142         * doc/glibc-functions/login_tty.texi: Likewise.
21143         * doc/glibc-functions/forkpty.texi: Likewise.
21144
21145 2010-04-03  Bruno Haible  <bruno@clisp.org>
21146
21147         stdlib: Avoid compilation failure of c-strtold on mingw.
21148         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
21149
21150 2010-04-03  Bruno Haible  <bruno@clisp.org>
21151
21152         locale: Make C++ tests work on Cygwin and mingw.
21153         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
21154         cannot provide the function.
21155         Reported by Simon Josefsson.
21156
21157 2010-04-03  Bruno Haible  <bruno@clisp.org>
21158
21159         localename: Port to MacOS X 10.6.
21160         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
21161         memory layout of the locales in MacOS X 10.6 as well.
21162         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
21163
21164 2010-04-02  Bruno Haible  <bruno@clisp.org>
21165
21166         gnulib-tool: Ensure that long-running tests are executed last.
21167         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
21168         running tests after the one for the other tests.
21169
21170 2010-04-02  Bruno Haible  <bruno@clisp.org>
21171
21172         gnulib-tool: Ensure the tests in the main directory are executed first.
21173         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
21174         start with the current directory.
21175
21176 2010-04-02  Bruno Haible  <bruno@clisp.org>
21177
21178         Tests for module 'havelib', moved here from GNU gettext.
21179         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
21180         modifications.
21181         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
21182         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
21183         with modifications.
21184         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
21185         modifications.
21186         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
21187         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
21188         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
21189         with modifications.
21190         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
21191         with modifications.
21192         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
21193         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
21194         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
21195         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
21196         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
21197         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
21198         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
21199         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
21200         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
21201         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
21202         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
21203         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
21204         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
21205         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
21206         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
21207         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
21208         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
21209         with modifications.
21210         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
21211         with modifications.
21212         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
21213         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
21214         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
21215         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
21216         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
21217         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
21218         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
21219         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
21220         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
21221         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
21222         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
21223         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
21224         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
21225         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
21226         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
21227         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
21228         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
21229         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
21230         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
21231         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
21232         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
21233         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
21234         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
21235         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
21236         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
21237         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
21238         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
21239         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
21240         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
21241         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
21242         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
21243         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
21244         * tests/havelib/rpathx/rpathx.c: New file, from
21245         gettext/autoconf-lib-link.
21246         * tests/havelib/rpathx/Makefile.am: New file, from
21247         gettext/autoconf-lib-link.
21248         * tests/havelib/rpathx/configure.ac: New file, from
21249         gettext/autoconf-lib-link with modifications.
21250         * tests/havelib/rpathy/rpathy.c: New file, from
21251         gettext/autoconf-lib-link.
21252         * tests/havelib/rpathy/Makefile.am: New file, from
21253         gettext/autoconf-lib-link.
21254         * tests/havelib/rpathy/configure.ac: New file, from
21255         gettext/autoconf-lib-link with modifications.
21256         * tests/havelib/rpathz/rpathz.c: New file, from
21257         gettext/autoconf-lib-link.
21258         * tests/havelib/rpathz/Makefile.am: New file, from
21259         gettext/autoconf-lib-link.
21260         * tests/havelib/rpathz/configure.ac: New file, from
21261         gettext/autoconf-lib-link with modifications.
21262         * tests/havelib/rpathlx/usex.c: New file, from
21263         gettext/autoconf-lib-link.
21264         * tests/havelib/rpathlx/Makefile.am: New file, from
21265         gettext/autoconf-lib-link.
21266         * tests/havelib/rpathlx/configure.ac: New file, from
21267         gettext/autoconf-lib-link with modifications.
21268         * tests/havelib/rpathly/usey.c: New file, from
21269         gettext/autoconf-lib-link.
21270         * tests/havelib/rpathly/Makefile.am: New file, from
21271         gettext/autoconf-lib-link.
21272         * tests/havelib/rpathly/configure.ac: New file, from
21273         gettext/autoconf-lib-link with modifications.
21274         * tests/havelib/rpathlz/usez.c: New file, from
21275         gettext/autoconf-lib-link.
21276         * tests/havelib/rpathlz/Makefile.am: New file, from
21277         gettext/autoconf-lib-link.
21278         * tests/havelib/rpathlz/configure.ac: New file, from
21279         gettext/autoconf-lib-link with modifications.
21280         * tests/havelib/rpathlyx/usey.c: New file, from
21281         gettext/autoconf-lib-link.
21282         * tests/havelib/rpathlyx/Makefile.am: New file, from
21283         gettext/autoconf-lib-link.
21284         * tests/havelib/rpathlyx/configure.ac: New file, from
21285         gettext/autoconf-lib-link with modifications.
21286         * tests/havelib/rpathlzyx/usez.c: New file, from
21287         gettext/autoconf-lib-link.
21288         * tests/havelib/rpathlzyx/Makefile.am: New file, from
21289         gettext/autoconf-lib-link.
21290         * tests/havelib/rpathlzyx/configure.ac: New file, from
21291         gettext/autoconf-lib-link with modifications.
21292         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
21293         with modifications.
21294
21295 2010-04-02  Bruno Haible  <bruno@clisp.org>
21296
21297         gnulib-tool: Create distributed built sources also for the tests.
21298         * gnulib-tool (func_create_testdir): Also generate distributed built
21299         sources in the tests directory.
21300
21301 2010-04-02  Bruno Haible  <bruno@clisp.org>
21302
21303         gnulib-tool: Obey user's environment variables.
21304         * gnulib-tool (func_create_testdir): When creating built sources,
21305         respect the environment variables for autoconf, automake, etc. given by
21306         the user.
21307
21308 2010-04-02  Bruno Haible  <bruno@clisp.org>
21309
21310         gnulib-tool: Provide the value of --m4-base to modules.
21311         * gnulib-tool (func_import, func_create_testdir): Emit a definition
21312         of gl_m4_base.
21313
21314 2010-04-02  Eric Blake  <eblake@redhat.com>
21315
21316         maint.mk: fix some fallout
21317         * NEWS: Document the incompatible change, and its effect on cfg.mk.
21318         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
21319
21320 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
21321
21322         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
21323         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
21324         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
21325         (sc_cast_of_x_alloc_return_value): Likewise.
21326         (sc_cast_of_alloca_return_value): Likewise.
21327         (sc_space_tab): Likewise.
21328         (sc_prohibit_atoi_atof): Likewise.
21329         (sc_prohibit_magic_number_exit): Likewise.
21330         (sc_error_exit_success): Likewise.
21331         (sc_file_system): Likewise.
21332         (sc_prohibit_have_config_h): Likewise.
21333         (sc_require_config_h): Likewise.
21334         (sc_prohibit_HAVE_MBRTOWC): Likewise.
21335         (sc_obsolete_symbols): Likewise.
21336         (sc_changelog): Likewise.
21337         (sc_program_name): Likewise.
21338         (sc_the_the): Likewise.
21339         (sc_trailing_blank): Likewise.
21340         (sc_two_space_separator_in_usage): Likewise.
21341         (sc_useless_cpp_parens): Likewise.
21342         (sc_GPL_version): Likewise.
21343         (sc_GFDL_version): Likewise.
21344         (sc_texinfo_acronym): Likewise.
21345         (sc_prohibit_cvs_keyword): Likewise.
21346         (sc_prohibit_stat_st_blocks): Likewise.
21347         (sc_prohibit_S_IS_definition): Likewise.
21348         (sc_redundant_const): Likewise.
21349         (sc_makefile_TAB_only_indentation): Likewise.
21350         (sc_m4_quote_check): Likewise.
21351         (sc_makefile_path_separator_check): Likewise.
21352         (sc_copyright_check): Likewise.
21353         (sc_Wundef_boolean): Likewise.
21354         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
21355
21356         maint.mk: match 0 or more whitespace-before-function-call '('
21357         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
21358         that have zero or two-and-more spaces between the function name
21359         and the open parenthesis.
21360         (sc_error_message_warn_fatal): Likewise.
21361         (sc_error_message_uppercase): Likewise.
21362         (sc_error_message_period): Likewise.
21363
21364 2010-03-31  Eric Blake  <eblake@redhat.com>
21365
21366         maint.mk: check for [ as well as test
21367         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
21368         Based on a libvirt report by Matthias Bolte.
21369
21370         gnumakefile: don't squelch _version output
21371         * top/GNUmakefile (_version): Create one-shot dependency rather
21372         than using $(shell) when version must be regenerated.
21373         (_autoreconf): Run verbosely, by default.
21374
21375         sys_time: avoid compiler warnings
21376         * lib/sys_time.in.h (includes): Ensure gcc pragma is
21377         unconditional, fixing regression from 2010-03-29.
21378         Reported by Simon Josefsson.
21379
21380 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
21381
21382         maint.mk: s/_header_without_use/_sc_header_without_use/
21383         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
21384         (sc_prohibit_assert_without_use): Use the new name.
21385         (sc_prohibit_close_stream_without_use): Likewise.
21386         (sc_prohibit_getopt_without_use): Likewise.
21387         (sc_prohibit_quotearg_without_use): Likewise.
21388         (sc_prohibit_quote_without_use): Likewise.
21389         (sc_prohibit_long_options_without_use): Likewise.
21390         (sc_prohibit_inttostr_without_use): Likewise.
21391         (sc_prohibit_ignore_value_without_use): Likewise.
21392         (sc_prohibit_error_without_use): Likewise.
21393         (sc_prohibit_xalloc_without_use): Likewise.
21394         (sc_prohibit_hash_without_use): Likewise.
21395         (sc_prohibit_hash_pjw_without_use): Likewise.
21396         (sc_prohibit_safe_read_without_use): Likewise.
21397         (sc_prohibit_argmatch_without_use): Likewise.
21398         (sc_prohibit_canonicalize_without_use): Likewise.
21399         (sc_prohibit_root_dev_ino_without_use): Likewise.
21400         (sc_prohibit_openat_without_use): Likewise.
21401         (sc_prohibit_c_ctype_without_use): Likewise.
21402         (sc_prohibit_signal_without_use): Likewise.
21403         (sc_prohibit_intprops_without_use): Likewise.
21404
21405 2010-03-30  Eric Blake  <eblake@redhat.com>
21406
21407         maint: improve module indicators
21408         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
21409         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
21410         columns, and avoid extra macro expansion.
21411
21412         fdopendir: work around FreeBSD bug
21413         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
21414         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
21415         * modules/dirent (Makefile.am): Substitute it.
21416         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
21417         declaration.
21418         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
21419         fix.
21420         Reported by Christian Weisgerber <naddy@mips.inka.de>.
21421
21422 2010-03-29  Bruno Haible  <bruno@clisp.org>
21423
21424         Emit #pragma system_header after the inclusion guard, not before.
21425         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
21426         guard that spans the entire file, not before. This enables an
21427         optimization in GCC's preprocessor.
21428         * lib/ctype.in.h: Likewise.
21429         * lib/dirent.in.h: Likewise.
21430         * lib/errno.in.h: Likewise.
21431         * lib/float.in.h: Likewise.
21432         * lib/getopt.in.h: Likewise.
21433         * lib/iconv.in.h: Likewise.
21434         * lib/langinfo.in.h: Likewise.
21435         * lib/locale.in.h: Likewise.
21436         * lib/math.in.h: Likewise.
21437         * lib/netdb.in.h: Likewise.
21438         * lib/netinet_in.in.h: Likewise.
21439         * lib/pty.in.h: Likewise.
21440         * lib/sched.in.h: Likewise.
21441         * lib/se-selinux.in.h: Likewise.
21442         * lib/search.in.h: Likewise.
21443         * lib/spawn.in.h: Likewise.
21444         * lib/stdarg.in.h: Likewise.
21445         * lib/stdint.in.h: Likewise.
21446         * lib/string.in.h: Likewise.
21447         * lib/strings.in.h: Likewise.
21448         * lib/sys_file.in.h: Likewise.
21449         * lib/sys_ioctl.in.h: Likewise.
21450         * lib/sys_time.in.h: Likewise.
21451         * lib/sys_times.in.h: Likewise.
21452         * lib/sys_utsname.in.h: Likewise.
21453         * lib/sys_wait.in.h: Likewise.
21454         * lib/sysexits.in.h: Likewise.
21455         * lib/wctype.in.h: Likewise.
21456
21457 2010-03-28  James Youngman  <jay@gnu.org>
21458
21459         save-cwd: don't leak a file descriptor when the caller execs.
21460         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
21461         saved file descriptor.
21462         * modules/save-cwd (Depends-on): Depend on cloexec.
21463
21464 2010-03-29  Bruno Haible  <bruno@clisp.org>
21465
21466         Remove vestiges of fts-lgpl module.
21467         * lib/fts_.h: Assume GNULIB_FTS is 1.
21468         * lib/fts.c: Likewise.
21469         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
21470
21471 2010-03-28  Bruno Haible  <bruno@clisp.org>
21472
21473         Fix definition of tests witness macro.
21474         * gnulib-tool (func_import): Fix definition of witness macro.
21475
21476 2010-03-28  Bruno Haible  <bruno@clisp.org>
21477
21478         Fix ioctl's protoype on glibc systems.
21479         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
21480         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
21481         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
21482         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
21483         signature. If not, arrange to replace the ioctl function.
21484         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
21485         REPLACE_IOCTL.
21486         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
21487         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
21488         Reported by Ludovic Courtès <ludo@gnu.org>.
21489
21490 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
21491
21492         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
21493         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
21494         made it so grep -r --include=GLOB* ... did not work.
21495
21496 2010-03-26  Jim Meyering  <meyering@redhat.com>
21497             Eric Blake  <eblake@redhat.com>
21498
21499         maint.mk: prohibit use of test's -o and -a operators
21500         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
21501
21502 2010-03-28  Bruno Haible  <bruno@clisp.org>
21503
21504         Remove unused GNULIB_XYZ macro definitions.
21505         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
21506         invocation.
21507
21508 2010-03-28  Bruno Haible  <bruno@clisp.org>
21509
21510         Mark privileged tests modules.
21511         * modules/idpriv-drop-tests (Status): New section.
21512         * modules/idpriv-droptemp-tests (Status): New section.
21513
21514 2010-03-28  Bruno Haible  <bruno@clisp.org>
21515
21516         Split C++ tests into separate tests modules.
21517         * modules/dirent-c++-tests: New file, extracted from
21518         modules/dirent-tests.
21519         * modules/dirent-tests: Depend on it.
21520         * modules/fcntl-h-c++-tests: New file, extracted from
21521         modules/fcntl-h-tests.
21522         * modules/fcntl-h-tests: Depend on it.
21523         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
21524         * modules/glob-tests: Depend on it.
21525         * modules/iconv-h-c++-tests: New file, extracted from
21526         modules/iconv-h-tests.
21527         * modules/iconv-h-tests: Depend on it.
21528         * modules/langinfo-c++-tests: New file, extracted from
21529         modules/langinfo-tests.
21530         * modules/langinfo-tests: Depend on it.
21531         * modules/locale-c++-tests: New file, extracted from
21532         modules/locale-tests.
21533         * modules/locale-tests: Depend on it.
21534         * modules/math-c++-tests: New file, extracted from modules/math-tests.
21535         * modules/math-tests: Depend on it.
21536         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
21537         * modules/pty-tests: Depend on it.
21538         * modules/search-c++-tests: New file, extracted from
21539         modules/search-tests.
21540         * modules/search-tests: Depend on it.
21541         * modules/signal-c++-tests: New file, extracted from
21542         modules/signal-tests.
21543         * modules/signal-tests: Depend on it.
21544         * modules/spawn-c++-tests: New file, extracted from
21545         modules/spawn-tests.
21546         * modules/spawn-tests: Depend on it.
21547         * modules/stdio-c++-tests: New file, extracted from
21548         modules/stdio-tests.
21549         * modules/stdio-tests: Depend on it.
21550         * modules/stdlib-c++-tests: New file, extracted from
21551         modules/stdlib-tests.
21552         * modules/stdlib-tests: Depend on it.
21553         * modules/string-c++-tests: New file, extracted from
21554         modules/string-tests.
21555         * modules/string-tests: Depend on it.
21556         * modules/sys_ioctl-c++-tests: New file, extracted from
21557         modules/sys_ioctl-tests.
21558         * modules/sys_ioctl-tests: Depend on it.
21559         * modules/sys_select-c++-tests: New file, extracted from
21560         modules/sys_select-tests.
21561         * modules/sys_select-tests: Depend on it.
21562         * modules/sys_socket-c++-tests: New file, extracted from
21563         modules/sys_socket-tests.
21564         * modules/sys_socket-tests: Depend on it.
21565         * modules/sys_stat-c++-tests: New file, extracted from
21566         modules/sys_stat-tests.
21567         * modules/sys_stat-tests: Depend on it.
21568         * modules/sys_time-c++-tests: New file, extracted from
21569         modules/sys_time-tests.
21570         * modules/sys_time-tests: Depend on it.
21571         * modules/time-c++-tests: New file, extracted from modules/time-tests.
21572         * modules/time-tests: Depend on it.
21573         * modules/unistd-c++-tests: New file, extracted from
21574         modules/unistd-tests.
21575         * modules/unistd-tests: Depend on it.
21576         * modules/wchar-c++-tests: New file, extracted from
21577         modules/wchar-tests.
21578         * modules/wchar-tests: Depend on it.
21579         * modules/wctype-c++-tests: New file, extracted from
21580         modules/wctype-tests.
21581         * modules/wctype-tests: Depend on it.
21582         Reported by Simon Josefsson.
21583
21584 2010-03-28  Bruno Haible  <bruno@clisp.org>
21585
21586         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
21587         * gnulib-tool (func_exists_module): New function, extracted from
21588         func_verify_module.
21589         (func_verify_module): Use it.
21590         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
21591         'foo' only if 'foo' exists.
21592         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
21593         module.
21594
21595 2010-03-28  Bruno Haible  <bruno@clisp.org>
21596
21597         gnulib-tool: Add support for special categories of tests.
21598         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
21599         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
21600         (func_usage): Document them.
21601         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
21602         inc_unportable_tests, inc_all_tests): New variables.
21603         (func_acceptable): Consider these variables.
21604         (func_modules_transitive_closure): Make it work when the 'Status' field
21605         consists of multiple words.
21606         (func_import): Store and restore the values of inc_cxx_tests,
21607         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
21608         inc_all_tests in gnulib-comp.m4.
21609         (func_create_testdir): Set inc_all_tests to true.
21610         * doc/gnulib.texi (Extra tests modules): New section.
21611         Suggested by Jim Meyering.
21612
21613 2010-03-28  Bruno Haible  <bruno@clisp.org>
21614
21615         ansi-c++-opt: Allow turning off the C++ build by default.
21616         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
21617         gl_CXX_CHOICE_DEFAULT_NO is defined.
21618         Requested by Eric Blake.
21619
21620 2010-03-28  Bruno Haible  <bruno@clisp.org>
21621
21622         unistd: Avoid #define replacements in C++ mode.
21623         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
21624         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
21625         setsockopt, shutdown, select): In C++, attach a warning to the function
21626         if possible, rather than #defining the symbol to a dysfunctional alias.
21627         Reported by John W. Eaton <jwe@gnu.org>.
21628
21629 2010-03-28  Bruno Haible  <bruno@clisp.org>
21630
21631         Fix link errors on mingw.
21632         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
21633         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
21634         $(LIBSOCKET).
21635         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
21636         $(LIBSOCKET).
21637
21638 2010-03-28  Bruno Haible  <bruno@clisp.org>
21639             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21640
21641         lib-ignore: Determine different options for different compilers.
21642         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
21643         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
21644         Add comments.
21645         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
21646         * NEWS: Mention the change.
21647
21648 2010-03-27  Bruno Haible  <bruno@clisp.org>
21649
21650         Remove unused GNULIB_XYZ macro definitions.
21651         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
21652         * modules/fseek (configure.ac): Likewise.
21653         * modules/ioctl (configure.ac): Likewise.
21654         * modules/open (configure.ac): Likewise.
21655         * modules/stdlib-safer (configure.ac): Likewise.
21656
21657 2010-03-27  Bruno Haible  <bruno@clisp.org>
21658
21659         Add a remark about certain modules.
21660         * modules/malloc (Comment): New section.
21661         * modules/realloc (Comment): Likewise.
21662         * modules/sigpipe (Comment): Likewise.
21663
21664 2010-03-27  Bruno Haible  <bruno@clisp.org>
21665
21666         Resolve conflict between the two kinds of module indicators.
21667         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
21668         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
21669         * modules/canonicalize (configure.ac): Invoke
21670         gl_MODULE_INDICATOR_FOR_TESTS.
21671         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
21672         GNULIB_XYZ.
21673         * tests/test-dirent-c++.cc: Likewise.
21674         * tests/test-dirent-safer.c: Likewise.
21675         * tests/test-dup2.c: Likewise.
21676         * tests/test-fchdir.c: Likewise.
21677         * tests/test-fcntl-h-c++.cc: Likewise.
21678         * tests/test-getopt.c: Likewise.
21679         * tests/test-getopt.h: Likewise.
21680         * tests/test-langinfo-c++.cc: Likewise.
21681         * tests/test-locale-c++.cc: Likewise.
21682         * tests/test-math-c++.cc: Likewise.
21683         * tests/test-pty-c++.cc: Likewise.
21684         * tests/test-search-c++.cc: Likewise.
21685         * tests/test-signal-c++.cc: Likewise.
21686         * tests/test-spawn-c++.cc: Likewise.
21687         * tests/test-stdio-c++.cc: Likewise.
21688         * tests/test-stdlib-c++.cc: Likewise.
21689         * tests/test-string-c++.cc: Likewise.
21690         * tests/test-sys_ioctl-c++.cc: Likewise.
21691         * tests/test-sys_select-c++.cc: Likewise.
21692         * tests/test-sys_socket-c++.cc: Likewise.
21693         * tests/test-sys_stat-c++.cc: Likewise.
21694         * tests/test-sys_time-c++.cc: Likewise.
21695         * tests/test-time-c++.cc: Likewise.
21696         * tests/test-unistd-c++.cc: Likewise.
21697         * tests/test-wchar-c++.cc: Likewise.
21698         * tests/uninorm/test-u8-nfc.c: Likewise.
21699         * tests/uninorm/test-u8-nfd.c: Likewise.
21700         * tests/uninorm/test-u8-nfkc.c: Likewise.
21701         * tests/uninorm/test-u8-nfkd.c: Likewise.
21702         * tests/uninorm/test-u16-nfc.c: Likewise.
21703         * tests/uninorm/test-u16-nfd.c: Likewise.
21704         * tests/uninorm/test-u16-nfkc.c: Likewise.
21705         * tests/uninorm/test-u16-nfkd.c: Likewise.
21706         * tests/uninorm/test-u32-nfc.c: Likewise.
21707         * tests/uninorm/test-u32-nfc-big.c: Likewise.
21708         * tests/uninorm/test-u32-nfd.c: Likewise.
21709         * tests/uninorm/test-u32-nfd-big.c: Likewise.
21710         * tests/uninorm/test-u32-nfkc.c: Likewise.
21711         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
21712         * tests/uninorm/test-u32-nfkd.c: Likewise.
21713         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
21714         * tests/uninorm/test-u32-normalize-big.c: Likewise.
21715
21716 2010-03-27  Bruno Haible  <bruno@clisp.org>
21717
21718         Distinguish two kinds of module indicators.
21719         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
21720         gl_MODULE_INDICATOR.
21721         (gl_MODULE_INDICATOR): New macro.
21722         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
21723         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
21724         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
21725         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
21726         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
21727         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
21728         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
21729         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
21730         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
21731         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
21732         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
21733         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
21734         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
21735         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
21736         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
21737         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
21738         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
21739         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
21740         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
21741         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
21742         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
21743         * modules/cloexec (configure.ac): Likewise.
21744         * modules/getopt-gnu (configure.ac): Likewise.
21745         * modules/uninorm/u8-normalize (configure.ac): Likewise.
21746         * modules/uninorm/u16-normalize (configure.ac): Likewise.
21747         * modules/uninorm/u32-normalize (configure.ac): Likewise.
21748         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
21749
21750 2010-03-27  Bruno Haible  <bruno@clisp.org>
21751
21752         New module description field 'Comment'.
21753         * gnulib-tool: New option --extract-comment.
21754         (func_usage): Document it.
21755         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
21756         (func_get_comment): New function.
21757         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
21758
21759 2010-03-27  Bruno Haible  <bruno@clisp.org>
21760
21761         Addendum to 2010-02-07 commit.
21762         * gnulib-tool (func_usage): Document --extract-applicability option.
21763
21764 2010-03-27  Bruno Haible  <bruno@clisp.org>
21765
21766         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
21767         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
21768         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
21769         rather than link errors.
21770
21771 2010-03-27  Bruno Haible  <bruno@clisp.org>
21772
21773         Avoid side effects from tests-related modules on the compilation of lib.
21774         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
21775         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
21776         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
21777         parameter. Emit into AM_CPPFLAGS a definition of the designated C
21778         macro.
21779         (func_import): Define a witness macro. Assign it a value that depends
21780         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
21781         tests-related modules.
21782         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
21783         Reported by Jim Meyering.
21784
21785 2010-03-27  Bruno Haible  <bruno@clisp.org>
21786
21787         Factorize common .m4 code.
21788         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
21789         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
21790         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
21791         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
21792         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
21793         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
21794         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
21795         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
21796         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
21797         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
21798         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
21799         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
21800         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
21801         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
21802         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
21803         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
21804         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
21805         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
21806         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
21807         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
21808         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
21809         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
21810         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
21811         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
21812         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
21813         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
21814         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
21815         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
21816         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
21817         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
21818         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
21819         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
21820
21821 2010-03-27  Bruno Haible  <bruno@clisp.org>
21822
21823         Fix a compilation error on Cygwin with g++ >= 4.3.
21824         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
21825         if it is undefined or if we alias it to chmod.
21826         (lstat): Don't warn about the use of this function if it is undefined
21827         or if we alias it to stat.
21828         Reported by Simon Josefsson.
21829
21830 2010-03-27  Bruno Haible  <bruno@clisp.org>
21831
21832         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
21833         * modules/getlogin (configure.ac): Update.
21834
21835         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
21836         * modules/getlogin_r (configure.ac): Update.
21837
21838         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
21839         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
21840         * modules/inet_ntop (configure.ac): Update.
21841
21842         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
21843         * modules/inet_pton (configure.ac): Update.
21844
21845         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
21846         * modules/mbslen (configure.ac): Update.
21847
21848         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
21849         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
21850         * modules/forkpty (configure.ac): Update.
21851         * modules/openpty (configure.ac): Update.
21852
21853 2010-03-26  Simon Josefsson  <simon@josefsson.org>
21854
21855         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
21856         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
21857
21858 2010-03-25  Eric Blake  <eblake@redhat.com>
21859
21860         maint: use pragma consistently across replacement headers
21861         * lib/ctype.in.h (system_header): Hoist for consistent placement.
21862         * lib/dirent.in.h (system_header): Likewise.
21863         * lib/errno.in.h (system_header): Likewise.
21864         * lib/float.in.h (system_header): Likewise.
21865         * lib/getopt.in.h (system_header): Likewise.
21866         * lib/iconv.in.h (system_header): Likewise.
21867         * lib/inttypes.in.h (system_header): Likewise.
21868         * lib/langinfo.in.h (system_header): Likewise.
21869         * lib/locale.in.h (system_header): Likewise.
21870         * lib/math.in.h (system_header): Likewise.
21871         * lib/netdb.in.h (system_header): Likewise.
21872         * lib/netinet_in.in.h (system_header): Likewise.
21873         * lib/pty.in.h (system_header): Likewise.
21874         * lib/sched.in.h (system_header): Likewise.
21875         * lib/se-selinux.in.h (system_header): Likewise.
21876         * lib/search.in.h (system_header): Likewise.
21877         * lib/spawn.in.h (system_header): Likewise.
21878         * lib/stdarg.in.h (system_header): Likewise.
21879         * lib/stdint.in.h (system_header): Likewise.
21880         * lib/string.in.h (system_header): Likewise.
21881         * lib/strings.in.h (system_header): Likewise.
21882         * lib/sys_file.in.h (system_header): Likewise.
21883         * lib/sys_ioctl.in.h (system_header): Likewise.
21884         * lib/sys_socket.in.h (system_header): Likewise.
21885         * lib/sys_times.in.h (system_header): Likewise.
21886         * lib/sys_utsname.in.h (system_header): Likewise.
21887         * lib/sys_wait.in.h (system_header): Likewise.
21888         * lib/sysexits.in.h (system_header): Likewise.
21889         * lib/unistd.in.h (system_header): Likewise.
21890         * lib/wctype.in.h (system_header): Likewise.
21891
21892         arpa/inet: fix mingw compilation warning
21893         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
21894         Reported by Matthew Bolte.
21895
21896 2010-03-25  Bruno Haible  <bruno@clisp.org>
21897
21898         Avoid collision between gnulib wrapper and libintl wrapper.
21899         * lib/printf.c (printf): Don't define if a printf wrapper is already
21900         defined in intl/printf.c.
21901         Reported by Michel Boaventura <michel@michelboaventura.com>.
21902
21903 2010-03-25  Bruno Haible  <bruno@clisp.org>
21904
21905         Use ANSI C.
21906         * lib/readutmp.h (getutent): Provide ANSI C prototype.
21907
21908 2010-03-25  Bruno Haible  <bruno@clisp.org>
21909
21910         Minor formatting changes.
21911         * lib/acosl.c: Insert space before function argument list.
21912         * lib/argz.c: Likewise.
21913         * lib/asinl.c: Likewise.
21914         * lib/expl.c: Likewise.
21915         * lib/gen-uni-tables.c: Likewise.
21916         * lib/gettext.h: Likewise.
21917         * lib/glthread/lock.h: Likewise.
21918         * lib/tanl.c: Likewise.
21919         * lib/uniname/uniname.c: Likewise.
21920         * tests/test-idpriv-drop.c: Likewise.
21921         * tests/test-idpriv-droptemp.c: Likewise.
21922         * tests/test-lock.c: Likewise.
21923         * tests/test-tls.c: Likewise.
21924         * lib/argp-help.c: Insert space before function-like macro argument
21925         list.
21926         * lib/memcmp.c: Likewise.
21927         * tests/test-base64.c: Likewise.
21928         * lib/localename.c: Insert space before sizeof's argument list.
21929         * lib/safe-alloc.h: Likewise.
21930         * lib/file-set.h: Insert space before macro argument list.
21931         * tests/test-argp.c: Likewise.
21932         * lib/argp-namefrob.h: Insert space before function parameter list.
21933         * lib/getaddrinfo.c: Likewise.
21934         * lib/netdb.in.h: Likewise.
21935         * lib/parse-duration.h: Likewise.
21936         * lib/parse-duration.c: Likewise.
21937         * lib/poll.c: Likewise.
21938         * lib/select.c: Likewise.
21939         * lib/trim.h: Likewise.
21940         * tests/test-usleep.c: Likewise.
21941         * lib/ldexpl.c: Insert space before function parameter list and before
21942         function argument list.
21943         * lib/logl.c: Likewise.
21944         * lib/sqrtl.c: Likewise.
21945         * lib/trim.c: Likewise.
21946         * lib/cosl.c: Use GNU style indentation. Insert space before function
21947         argument list.
21948         * lib/sinl.c: Likewise.
21949         * lib/tsearch.c: Insert space after 'for'.
21950         Reported by Jim Meyering.
21951
21952 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
21953
21954         * maint.mk (sc_Wundef_boolean): Check for the presence of the
21955         config header before grepping, as it's not present before
21956         autoreconf/configure are run.  Reported by Simon Josefsson.
21957
21958 2010-03-23  Bruno Haible  <bruno@clisp.org>
21959
21960         pt_chown: Make it work with automake < 1.11.
21961         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
21962         Reported by Simon Josefsson.
21963
21964 2010-03-23  Bruno Haible  <bruno@clisp.org>
21965
21966         pt_chown: Don't depend on GPLed modules.
21967         * lib/pt_chown.c: Don't include idpriv.h.
21968         (main): Don't drop privileges.
21969         * modules/pt_chown (Depends-on): Remove idpriv-drop.
21970         Reported by Simon Josefsson.
21971
21972 2010-03-24  Simon Josefsson  <simon@josefsson.org>
21973
21974         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
21975         suggestions from karl@freefriends.org (Karl Berry).
21976
21977 2010-03-22  Eric Blake  <eblake@redhat.com>
21978
21979         gethostname: further tweaks
21980         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
21981         are overriding gethostname.
21982         Suggested by Bruno Haible.
21983
21984 2010-03-21  Bruno Haible  <bruno@clisp.org>
21985
21986         Fix comments.
21987         * lib/forkpty.c (rpl_forkpty): Fix comment.
21988         * lib/openpty.c (rpl_openpty): Likewise.
21989         Reported by Eric Blake.
21990
21991 2010-03-22  Eric Blake  <eblake@redhat.com>
21992
21993         gethostname: fix build on mingw
21994         * lib/unistd.in.h (includes): Work around fact that mingw
21995         <winsock2.h> re-includes <unistd.h>, by avoiding any
21996         redeclarations if we are being included by <winsock2.h>.
21997         Reported by Matthias Bolte.
21998
21999 2010-03-21  Bruno Haible  <bruno@clisp.org>
22000
22001         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
22002         * lib/forkpty.c (forkpty): New replacement function, from glibc with
22003         modifications.
22004         * lib/pty.in.h (forkpty): Update declaration. Add comments.
22005         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
22006         provide the replacement.
22007         * modules/forkpty (Depends-on): Add openpty, login_tty.
22008         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
22009         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
22010         * doc/glibc-functions/forkpty.texi: More supported platforms.
22011         * config/srclist.txt: Add forkpty.c (commented).
22012
22013 2010-03-21  Bruno Haible  <bruno@clisp.org>
22014
22015         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
22016         (Makefile.am): Verify that PTY_LIB is defined.
22017
22018         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
22019
22020 2010-03-21  Bruno Haible  <bruno@clisp.org>
22021
22022         Tests for module 'login_tty'.
22023         * modules/login_tty-tests: New file.
22024         * tests/test-login_tty.c: New file.
22025
22026         New module 'login_tty'.
22027         * lib/login_tty.c: New file.
22028         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
22029         * modules/login_tty: New file.
22030         * doc/glibc-functions/login_tty.texi: Mention the new module.
22031
22032 2010-03-21  Bruno Haible  <bruno@clisp.org>
22033
22034         login_tty: Documentation.
22035         * doc/glibc-functions/login_tty.texi: New file.
22036         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
22037
22038 2010-03-21  Bruno Haible  <bruno@clisp.org>
22039
22040         pty: Consistent macro naming.
22041         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
22042         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
22043         * modules/pty (configure.ac): Update.
22044
22045 2010-03-21  Bruno Haible  <bruno@clisp.org>
22046
22047         Tests for openpty: Make stricter.
22048         * tests/test-openpty.c (main): Add test of canonical processing and
22049         erase.
22050         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
22051
22052         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
22053         * lib/openpty.c (openpty): New replacement function.
22054         * lib/pty.in.h: Include <termios.h>.
22055         (openpty): Update declaration. Add comments.
22056         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
22057         is not declared, arrange to provide the replacement. Check for _getpty
22058         and posix_openpt.
22059         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
22060         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
22061         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
22062         * modules/pty-tests (test_pty_c___LDADD): New variable.
22063         * doc/glibc-functions/openpty.texi: More supported platforms.
22064
22065 2010-03-21  Bruno Haible  <bruno@clisp.org>
22066
22067         setenv: Tweaks.
22068         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
22069         the test program.
22070         * doc/posix-functions/setenv.texi: Update platforms list.
22071
22072 2010-03-21  Bruno Haible  <bruno@clisp.org>
22073
22074         New module 'unlockpt'.
22075         * lib/unlockpt.c: New file, from glibc with modifications.
22076         * m4/unlockpt.m4: New file.
22077         * modules/unlockpt: New file.
22078         * lib/stdlib.in.h (unlockpt): New declaration.
22079         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
22080         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
22081         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
22082         HAVE_UNLOCKPT.
22083         * doc/posix-functions/unlockpt.texi: Mention the new module.
22084         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
22085         * config/srclist.txt: Add unlockpt.c (commented).
22086
22087 2010-03-21  Jim Meyering  <meyering@redhat.com>
22088
22089         maint.mk: prohibit inclusion of "intprops.h" without use
22090         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
22091
22092 2010-03-21  Bruno Haible  <bruno@clisp.org>
22093
22094         New module 'grantpt'.
22095         * lib/grantpt.c: New file, from glibc with modifications.
22096         * m4/grantpt.m4: New file.
22097         * modules/grantpt: New file.
22098         * lib/stdlib.in.h (grantpt): New declaration.
22099         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
22100         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
22101         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
22102         HAVE_GRANTPT.
22103         * doc/posix-functions/grantpt.texi: Mention the new module.
22104         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
22105         * config/srclist.txt: Add grantpt.c (commented).
22106
22107 2010-03-21  Bruno Haible  <bruno@clisp.org>
22108
22109         New module 'pt_chown'.
22110         * lib/pt_chown.c: New file, from glibc with modifications.
22111         * lib/pty-private.h: New file, from glibc with modifications.
22112         * modules/pt_chown: New file.
22113         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
22114
22115 2010-03-21  Bruno Haible  <bruno@clisp.org>
22116
22117         Tests for module 'ptsname'.
22118         * modules/ptsname-tests: New file.
22119         * tests/test-ptsname.c: New file.
22120
22121         New module 'ptsname'.
22122         * lib/ptsname.c: New file, from glibc with modifications.
22123         * m4/ptsname.m4: New file.
22124         * modules/ptsname: New file.
22125         * lib/stdlib.in.h (ptsname): New declaration.
22126         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
22127         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
22128         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
22129         HAVE_PTSNAME.
22130         * doc/posix-functions/ptsname.texi: Mention the new module.
22131         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
22132         * config/srclist.txt: Add ptsname.c (commented).
22133
22134 2010-03-21  Bruno Haible  <bruno@clisp.org>
22135
22136         Tests for module 'ttyname_r'.
22137         * modules/ttyname_r-tests: New file.
22138         * tests/test-ttyname_r.c: New file.
22139
22140         New module 'ttyname_r'.
22141         * lib/ttyname_r.c: New file.
22142         * m4/ttyname_r.m4: New file.
22143         * modules/ttyname_r: New file.
22144         * lib/unistd.in.h (ttyname_r): New declaration.
22145         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
22146         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
22147         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
22148         HAVE_TTYNAME_R.
22149         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
22150         * doc/posix-functions/ttyname_r.texi: Mention the new module.
22151
22152 2010-03-20  Bruno Haible  <bruno@clisp.org>
22153
22154         signal: Undefine macro definitions in C++ mode.
22155         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
22156         sigfillset): Undefine macro definitions from the system header in C++
22157         mode.
22158         Reported by John W. Eaton <jwe@gnu.org>.
22159
22160 2010-03-20  Bruno Haible  <bruno@clisp.org>
22161
22162         Ensure no #include statements inside extern "C" { ... }.
22163         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
22164         contain #include statements.
22165         * lib/time.in.h: Likewise.
22166
22167 2010-03-20  Bruno Haible  <bruno@clisp.org>
22168
22169         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
22170         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
22171         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
22172         Reported by John W. Eaton <jwe@gnu.org>.
22173
22174 2010-03-20  Bruno Haible  <bruno@clisp.org>
22175
22176         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
22177         Reported by Jim Meyering.
22178
22179 2010-03-20  Bruno Haible  <bruno@clisp.org>
22180
22181         pipe: Set errno upon failure.
22182         * lib/pipe.h: Specify that when -1 is returned, errno is set.
22183         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
22184         errno value in error message.
22185
22186 2010-03-20  Bruno Haible  <bruno@clisp.org>
22187             Jim Meyering  <meyering@redhat.com>
22188
22189         lchown: Avoid "unused variable" warning.
22190         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
22191
22192 2010-03-20  Bruno Haible  <bruno@clisp.org>
22193
22194         Work around unlink() bug on MacOS X 10.5.6.
22195         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
22196         attempting to unlink a parent directory.
22197         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
22198         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
22199         activate for the replacement function.
22200         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
22201
22202 2010-03-20  Bruno Haible  <bruno@clisp.org>
22203
22204         Fix link errors on Solaris 8.
22205         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
22206         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
22207
22208 2010-03-19  Jim Meyering  <meyering@redhat.com>
22209
22210         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
22211         The _LIBC implementation of build_range_exp correctly honors the
22212         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
22213         However, the non-_LIBC implementation would ignore that syntax-bit
22214         flag and return REG_ERANGE unconditionally.
22215         This change makes it honor that flag.
22216         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
22217         Make two pointer parameters "const".
22218         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
22219         (parse_bracket_exp): Update caller.
22220
22221         regex.m4: correct the reversed range endpoint ([b-a]) test
22222         * m4/regex.m4: When requiring that [b-a] evoke failure,
22223         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
22224         test pass once again for x86-based systems.
22225
22226 2010-03-19  Bruno Haible  <bruno@clisp.org>
22227
22228         scandir: Fix link error on Solaris 8.
22229         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
22230         macros.
22231
22232 2010-03-19  Bruno Haible  <bruno@clisp.org>
22233
22234         getusershell: Fix documentation.
22235         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
22236         module.
22237         * doc/glibc-functions/setusershell.texi: Likewise.
22238
22239         getusershell: Provide declaration, missing on Solaris 9.
22240         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
22241         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
22242         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
22243         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
22244         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22245         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
22246         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
22247         HAVE_GETUSERSHELL.
22248         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
22249
22250 2010-03-19  Bruno Haible  <bruno@clisp.org>
22251
22252         wctype: Provide iswblank function.
22253         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
22254         exists and is fine.
22255         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
22256         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
22257         * tests/test-wctype.c (main): Re-enable the iswblank tests.
22258         * doc/posix-functions/iswblank.texi: Update.
22259
22260 2010-03-19  Bruno Haible  <bruno@clisp.org>
22261
22262         Tests of module 'pty' in C++ mode.
22263         * modules/pty-tests: New file.
22264         * tests/test-pty-c++.cc: New file.
22265         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
22266
22267 2010-03-19  Eric Blake  <eblake@redhat.com>
22268
22269         logb: fix documentation
22270         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
22271         1.5 declaration bug.
22272
22273         forkpty, openpty: prefer glibc's const-safe prototype
22274         * lib/forkpty.c (rpl_forkpty): New file.
22275         * lib/openpty.c (rpl_openpty): Likewise.
22276         * modules/forkpty (Files): Distribute it.
22277         * modules/openpty (Files): Likewise.
22278         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
22279         check...
22280         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
22281         replacement for for non-const BSD signature.
22282         * modules/pty (Makefile.am): Substitute witnesses.
22283         * lib/pty.in.h (forkpty, openpty): Declare replacements.
22284         * tests/test-forkpty.c: Update signature check.
22285         * tests/test-openpty.c: Likewise.
22286         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
22287         * doc/glibc-functions/openpty.texi (openpty): Likewise.
22288
22289         forkpty, openpty: split functions into new modules
22290         * modules/pty (Makefile.am): Substitute new witnesses.
22291         (Libraries): Move library detection...
22292         * modules/forkpty: ...into new module.
22293         * modules/openpty: Another new module.
22294         * modules/pty-tests: Rename and split...
22295         * modules/forkpty-tests: ...to this...
22296         * modules/openpty-tests: ...and this.
22297         * tests/test-pty.c: Rename and split...
22298         * tests/test-forkpty.c: ...to this...
22299         * tests/test-openpty.c: ...and this.
22300         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
22301         (gl_PTY): Split library searching...
22302         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
22303         (gl_FORKPTY, gl_OPENPTY): New macros.
22304         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
22305         * NEWS: Mention the split.
22306         * MODULES.html.sh (Misc): Document the modules.
22307         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
22308         * doc/glibc-functions/openpty.texi (openpty): Likewise.
22309
22310         pty: improve replacement header
22311         * lib/pty.in.h: New file.
22312         * modules/pty (Files): Ship it.
22313         (Makefile.am): Always build replacement.
22314         * m4/pty.m4: Rename...
22315         * m4/pty_h.m4: ...to this.
22316         (gl_PTY): Modernize setting of witness macros; update check of
22317         forkpty to take proper advantage of cache.
22318         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
22319
22320         getopt: avoid compiler warning
22321         * lib/getopt.c (attribute_hidden): Remove unused macro.
22322
22323 2010-03-18  Bruno Haible  <bruno@clisp.org>
22324
22325         Fix link errors on Solaris 8.
22326         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
22327         * modules/search-tests (test_search_c___LDADD): Likewise.
22328         * modules/signal-tests (test_signal_c___LDADD): Likewise.
22329         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
22330         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
22331         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
22332         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
22333         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
22334         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
22335
22336 2010-03-18  Bruno Haible  <bruno@clisp.org>
22337
22338         Fix bug introduced on 2010-03-14.
22339         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
22340         (gl_SPAWN_H): Require it.
22341         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
22342         Reported by Simon Josefsson.
22343
22344 2010-03-18  Bruno Haible  <bruno@clisp.org>
22345
22346         Fix typo introduced on 2009-12-31.
22347         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
22348         posix_spawn_file_actions_adddup2.
22349
22350 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
22351         and Eric Blake  <eblake@redhat.com>
22352
22353         test-vc-list-files-git: make more robust
22354         * tests/test-vc-list-files-git.sh: Unset problematic environment
22355         variables.  Chain commands together.
22356
22357 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
22358
22359         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
22360         `AC_CHECK_DECL' invocation.
22361
22362 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
22363
22364         * lib/inttostr.c (inttostr): Make sure the invocation of verify
22365         appears before executable statements. Suggested by Petr Sumbera
22366         <Petr.Sumbera@Sun.COM>.
22367
22368 2010-03-14  Bruno Haible  <bruno@clisp.org>
22369
22370         * tests/test-flock.c (test_exclusive): Comment out a test that causes
22371         portability problems. Instead use a simpler test.
22372         (main): Check that invalid arguments are rejected only on Linux.
22373
22374 2010-03-14  Bruno Haible  <bruno@clisp.org>
22375
22376         Fix bug introduced on 2009-12-31.
22377         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
22378         gl_PREREQ_SYS_H_WINSOCK2 always.
22379         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
22380         SYS_SOCKET_H variable.
22381         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
22382         Update comments.
22383         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
22384         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
22385         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
22386         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
22387         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
22388
22389 2010-03-14  Bruno Haible  <bruno@clisp.org>
22390
22391         Fix values returned by sinl, cosl.
22392         * lib/trigl.h: Add specification comments.
22393         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
22394         that combines the values from the precomputed table with the values of
22395         the Chebyshev polynomials.
22396
22397 2010-03-14  Bruno Haible  <bruno@clisp.org>
22398
22399         Fix compilation error when modules 'posix_spawn[p]' are not used.
22400         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
22401         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
22402
22403 2010-03-14  Bruno Haible  <bruno@clisp.org>
22404
22405         Fix compilation error on mingw when module 'time_r' is not used.
22406         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
22407         is 1.
22408         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
22409         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
22410         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
22411         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
22412
22413 2010-03-14  Bruno Haible  <bruno@clisp.org>
22414
22415         Fix compilation error with Sun C.
22416         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
22417         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
22418         instead of GCC specific ULONG_LONG_MAX.
22419         * lib/xstrtoll.c: Likewise.
22420         * lib/xstrtoull.c: Likewise.
22421
22422 2010-03-13  Bruno Haible  <bruno@clisp.org>
22423
22424         Allow the user to disable C++ code and tests.
22425         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
22426         (gl_PROG_ANSI_CXX): Require it.
22427
22428 2010-03-13  Bruno Haible  <bruno@clisp.org>
22429
22430         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
22431         cases.
22432
22433 2010-03-13  Bruno Haible  <bruno@clisp.org>
22434
22435         Test that gnulib does not break the standard C++ headers.
22436         * tests/test-locale-c++2.cc: New file.
22437         * modules/locale-tests (Files): Add it.
22438         (Makefile.am): Compile it for test-locale-c++.
22439         * tests/test-math-c++2.cc: New file.
22440         * modules/math-tests (Files): Add it.
22441         (Makefile.am): Compile it for test-math-c++.
22442         * tests/test-signal-c++2.cc: New file.
22443         * modules/signal-tests (Files): Add it.
22444         (Makefile.am): Compile it for test-signal-c++.
22445         * tests/test-stdio-c++2.cc: New file.
22446         * modules/stdio-tests (Files): Add it.
22447         (Makefile.am): Compile it for test-stdio-c++.
22448         * tests/test-stdlib-c++2.cc: New file.
22449         * modules/stdlib-tests (Files): Add it.
22450         (Makefile.am): Compile it for test-stdlib-c++.
22451         * tests/test-string-c++2.cc: New file.
22452         * modules/string-tests (Files): Add it.
22453         (Makefile.am): Compile it for test-string-c++.
22454         * tests/test-time-c++2.cc: New file.
22455         * modules/time-tests (Files): Add it.
22456         (Makefile.am): Compile it for test-time-c++.
22457         Reported by John W. Eaton <jwe@gnu.org>.
22458
22459 2010-03-13  Bruno Haible  <bruno@clisp.org>
22460
22461         * gnulib-tool (func_usage): Clarify which options are available for
22462         --create-testdir and --create-megatestdir.
22463
22464 2010-03-13  Bruno Haible  <bruno@clisp.org>
22465
22466         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
22467         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
22468         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
22469         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
22470         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
22471         when appropriate.
22472         Reported by Jim Meyering.
22473
22474 2010-03-12  Simon Josefsson  <simon@josefsson.org>
22475
22476         * gnulib-tool (func_import): Explain origin of code.
22477
22478 2010-03-12  Bruno Haible  <bruno@clisp.org>
22479
22480         Fix problem with automake's definition of CXXLINK.
22481         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
22482         Reported by Simon Josefsson and Ludovic Courtès.
22483
22484 2010-03-12  Bruno Haible  <bruno@clisp.org>
22485
22486         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
22487         stable releases.
22488
22489 2010-03-11  Bruno Haible  <bruno@clisp.org>
22490
22491         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
22492         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
22493         whether the system provides one variant or multiple variants of the
22494         function.
22495         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
22496         C++ compilers.
22497         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
22498         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
22499         Reported by Jim Meyering.
22500
22501 2010-03-09  Simon Josefsson  <simon@josefsson.org>
22502
22503         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
22504
22505 2010-03-08  Bruno Haible  <bruno@clisp.org>
22506
22507         gnulib-tool: Add support for --libtool in --create-testdir.
22508         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
22509         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
22510
22511 2010-03-08  Eric Blake  <eblake@redhat.com>
22512
22513         gnulib-tool.texi: mention possibility of git submodule
22514         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
22515         submodules.
22516         * doc/.gitignore: Ignore another generated file.
22517
22518 2010-03-08  Karl Berry  <karl@gnu.org>
22519
22520         * doc/gnulib-tool.texi (VCS Issues): Mention third option
22521         of committing gnulib files while skipping others.
22522
22523 2010-03-07  Bruno Haible  <bruno@clisp.org>
22524
22525         Tests of module 'wctype' in C++ mode.
22526         * tests/test-wctype-c++.cc: New file.
22527         * modules/wctype-tests (Files): Add it and tests/signature.h.
22528         (Depends-on): Add ansi-c++-opt.
22529         (Makefile.am): Arrange to compile and run test-wctype-c++.
22530
22531         Tests of module 'wchar' in C++ mode.
22532         * tests/test-wchar-c++.cc: New file.
22533         * modules/wchar-tests (Files): Add it and tests/signature.h.
22534         (Depends-on): Add ansi-c++-opt.
22535         (Makefile.am): Arrange to compile and run test-wchar-c++.
22536         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
22537         gl_MODULE_INDICATOR.
22538
22539         Tests of module 'unistd' in C++ mode.
22540         * tests/test-unistd-c++.cc: New file.
22541         * modules/unistd-tests (Files): Add it and tests/signature.h.
22542         (Depends-on): Add ansi-c++-opt.
22543         (Makefile.am): Arrange to compile and run test-unistd-c++.
22544         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
22545         gl_MODULE_INDICATOR.
22546
22547         Tests of module 'time' in C++ mode.
22548         * tests/test-time-c++.cc: New file.
22549         * modules/time-tests (Files): Add it and tests/signature.h.
22550         (Depends-on): Add ansi-c++-opt.
22551         (Makefile.am): Arrange to compile and run test-time-c++.
22552         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
22553
22554         Tests of module 'sys_time' in C++ mode.
22555         * tests/test-sys_time-c++.cc: New file.
22556         * modules/sys_time-tests (Files): Add it and tests/signature.h.
22557         (Depends-on): Add ansi-c++-opt.
22558         (Makefile.am): Arrange to compile and run test-sys_time-c++.
22559         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
22560         gl_MODULE_INDICATOR.
22561
22562         Tests of module 'sys_stat' in C++ mode.
22563         * tests/test-sys_stat-c++.cc: New file.
22564         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
22565         (Depends-on): Add ansi-c++-opt.
22566         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
22567         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
22568         gl_MODULE_INDICATOR.
22569
22570         Tests of module 'sys_socket' in C++ mode.
22571         * tests/test-sys_socket-c++.cc: New file.
22572         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
22573         (Depends-on): Add ansi-c++-opt.
22574         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
22575         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
22576         gl_MODULE_INDICATOR.
22577
22578         Tests of module 'sys_select' in C++ mode.
22579         * tests/test-sys_select-c++.cc: New file.
22580         * modules/sys_select-tests (Files): Add it and tests/signature.h.
22581         (Depends-on): Add ansi-c++-opt.
22582         (Makefile.am): Arrange to compile and run test-sys_select-c++.
22583         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
22584         gl_MODULE_INDICATOR.
22585
22586         Tests of module 'sys_ioctl' in C++ mode.
22587         * tests/test-sys_ioctl-c++.cc: New file.
22588         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
22589         (Depends-on): Add ansi-c++-opt.
22590         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
22591         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
22592         gl_MODULE_INDICATOR.
22593
22594         Tests of module 'string' in C++ mode.
22595         * tests/test-string-c++.cc: New file.
22596         * modules/string-tests (Files): Add it and tests/signature.h.
22597         (Depends-on): Add ansi-c++-opt.
22598         (Makefile.am): Arrange to compile and run test-string-c++.
22599         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
22600         gl_MODULE_INDICATOR.
22601
22602         Tests of module 'stdlib' in C++ mode.
22603         * tests/test-stdlib-c++.cc: New file.
22604         * modules/stdlib-tests (Files): Add it and tests/signature.h.
22605         (Depends-on): Add ansi-c++-opt.
22606         (Makefile.am): Arrange to compile and run test-stdlib-c++.
22607         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
22608         gl_MODULE_INDICATOR.
22609
22610         Tests of module 'stdio' in C++ mode.
22611         * tests/test-stdio-c++.cc: New file.
22612         * modules/stdio-tests (Files): Add it and tests/signature.h.
22613         (Depends-on): Add ansi-c++-opt.
22614         (Makefile.am): Arrange to compile and run test-stdio-c++.
22615         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
22616         gl_MODULE_INDICATOR.
22617
22618         Tests of module 'spawn' in C++ mode.
22619         * tests/test-spawn-c++.cc: New file.
22620         * modules/spawn-tests (Files): Add it and tests/signature.h.
22621         (Depends-on): Add ansi-c++-opt.
22622         (Makefile.am): Arrange to compile and run test-spawn-c++.
22623         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
22624         gl_MODULE_INDICATOR.
22625
22626         Tests of module 'signal' in C++ mode.
22627         * tests/test-signal-c++.cc: New file.
22628         * modules/signal-tests (Files): Add it and tests/signature.h.
22629         (Depends-on): Add ansi-c++-opt.
22630         (Makefile.am): Arrange to compile and run test-signal-c++.
22631         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
22632         gl_MODULE_INDICATOR.
22633
22634         Tests of module 'search' in C++ mode.
22635         * tests/test-search-c++.cc: New file.
22636         * modules/search-tests (Files): Add it and tests/signature.h.
22637         (Depends-on): Add ansi-c++-opt.
22638         (Makefile.am): Arrange to compile and run test-search-c++.
22639         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
22640         gl_MODULE_INDICATOR.
22641
22642         Tests of module 'math' in C++ mode.
22643         * tests/test-math-c++.cc: New file.
22644         * modules/math-tests (Files): Add it and tests/signature.h.
22645         (Depends-on): Add ansi-c++-opt.
22646         (Makefile.am): Arrange to compile and run test-math-c++.
22647         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
22648
22649         Tests of module 'locale' in C++ mode.
22650         * tests/test-locale-c++.cc: New file.
22651         * modules/locale-tests (Files): Add it and tests/signature.h.
22652         (Depends-on): Add ansi-c++-opt.
22653         (Makefile.am): Arrange to compile and run test-locale-c++.
22654         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
22655         gl_MODULE_INDICATOR.
22656
22657         Tests of module 'langinfo' in C++ mode.
22658         * tests/test-langinfo-c++.cc: New file.
22659         * modules/langinfo-tests (Files): Add it and tests/signature.h.
22660         (Depends-on): Add ansi-c++-opt.
22661         (Makefile.am): Arrange to compile and run test-langinfo-c++.
22662         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
22663         gl_MODULE_INDICATOR.
22664
22665         Tests of module 'iconv-h' in C++ mode.
22666         * tests/test-iconv-h-c++.cc: New file.
22667         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
22668         (Depends-on): Add ansi-c++-opt.
22669         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
22670
22671         Tests of module 'glob' in C++ mode.
22672         * tests/test-glob-c++.cc: New file.
22673         * modules/glob-tests (Files): Add it.
22674         (Depends-on): Add ansi-c++-opt.
22675         (Makefile.am): Arrange to compile and run test-glob-c++.
22676
22677         Tests of module 'fcntl-h' in C++ mode.
22678         * tests/test-fcntl-h-c++.cc: New file.
22679         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
22680         (Depends-on): Add ansi-c++-opt.
22681         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
22682         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
22683         gl_MODULE_INDICATOR.
22684
22685         Tests of module 'dirent' in C++ mode.
22686         * tests/test-dirent-c++.cc: New file.
22687         * modules/dirent-tests (Files): Add it and tests/signature.h.
22688         (Depends-on): Add ansi-c++-opt.
22689         (Makefile.am): Arrange to compile and run test-dirent-c++.
22690         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
22691         gl_MODULE_INDICATOR.
22692
22693         New module 'ansi-c++-opt'.
22694         * modules/ansi-c++-opt: New file.
22695         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
22696
22697         Document C++ namespace mode.
22698         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
22699
22700         wctype: Avoid #define replacements in C++ mode.
22701         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
22702         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
22703         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
22704         In C++, define a namespaced alias symbol.
22705         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
22706         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
22707         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
22708         rule.
22709
22710         wchar: Avoid #define replacements in C++ mode.
22711         * lib/wchar.in.h: Include c++defs.h.
22712         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
22713         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
22714         symbol.
22715         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
22716         * modules/wchar (Depends-on): Add c++defs.
22717         (Makefile.am): Update wchar.h rule.
22718
22719         unistd: Avoid #define replacements in C++ mode.
22720         * lib/unistd.in.h: Include c++defs.h.
22721         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
22722         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
22723         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
22724         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
22725         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
22726         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
22727         symbol.
22728         (environ): Update.
22729         * modules/unistd (Depends-on): Add c++defs.
22730         (Makefile.am): Update unistd.h rule.
22731
22732         time: Avoid #define replacements in C++ mode.
22733         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
22734         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
22735         define a namespaced alias symbol.
22736         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
22737         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
22738         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
22739         * modules/time (Depends-on): Add c++defs, warn-on-use.
22740         (Makefile.am): Update time.h rule.
22741         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
22742         * modules/nanosleep (configure.ac): Likewise.
22743         * modules/strptime (configure.ac): Likewise.
22744         * modules/timegm (configure.ac): Likewise.
22745
22746         sys_time: Avoid #define replacements in C++ mode.
22747         * lib/sys_time.in.h: Include c++defs.h.
22748         (gettimeofday): In C++, define a namespaced alias symbol.
22749         * modules/sys_time (Depends-on): Add c++defs.
22750         (Makefile.am): Update sys/time.h rule.
22751
22752         sys_stat: Avoid #define replacements in C++ mode.
22753         * lib/sys_stat.in.h: Include c++defs.h.
22754         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
22755         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
22756         namespaced alias symbol.
22757         In C++, define a namespaced alias symbol.
22758         * modules/sys_stat (Depends-on): Add c++defs.
22759         (Makefile.am): Update sys/stat.h rule.
22760
22761         sys_socket: Avoid #define replacements in C++ mode.
22762         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
22763         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
22764         definitions also when the system has a <sys/socket.h>.
22765         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
22766         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
22767         In C++, define a namespaced alias symbol.
22768         * modules/sys_socket (Depends-on): Add c++defs.
22769         (Makefile.am): Update sys/socket.h rule.
22770
22771         sys_select: Avoid #define replacements in C++ mode.
22772         * lib/sys_select.in.h: Include c++defs.h. Enable the function
22773         definitions also when the system has a <sys/select.h>.
22774         (select): In C++, define a namespaced alias symbol.
22775         * modules/sys_select (Depends-on): Add c++defs.
22776         (Makefile.am): Update sys/select.h rule.
22777
22778         sys_ioctl: Avoid #define replacements in C++ mode.
22779         * lib/sys_ioctl.in.h: Include c++defs.h.
22780         (ioctl): In C++, define a namespaced alias symbol.
22781         * modules/sys_ioctl (Depends-on): Add c++defs.
22782         (Makefile.am): Update sys/ioctl.h rule.
22783
22784         string: Avoid #define replacements in C++ mode.
22785         * lib/string.in.h: Include c++defs.h.
22786         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
22787         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
22788         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
22789         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
22790         strsignal, strverscmp): In C++, define a namespaced alias symbol.
22791         * modules/string (Depends-on): Add c++defs.
22792         (Makefile.am): Update string.h rule.
22793
22794         stdlib: Avoid #define replacements in C++ mode.
22795         * lib/stdlib.in.h: Include c++defs.h.
22796         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
22797         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
22798         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
22799         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
22800         symbol.
22801         * modules/stdlib (Depends-on): Add c++defs.
22802         (Makefile.am): Update stdlib.h rule.
22803
22804         stdio: Avoid #define replacements in C++ mode.
22805         * lib/stdio.in.h: Include c++defs.h.
22806         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
22807         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
22808         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
22809         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
22810         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
22811         namespaced alias symbol.
22812         * modules/stdio (Depends-on): Add c++defs.
22813         (Makefile.am): Update stdio.h rule.
22814
22815         spawn: Avoid #define replacements in C++ mode.
22816         * lib/spawn.in.h: Include c++defs.h.
22817         (posix_spawn, posix_spawnp, posix_spawnattr_init,
22818         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
22819         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
22820         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
22821         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
22822         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
22823         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
22824         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
22825         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
22826         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
22827         In C++, define a namespaced alias symbol.
22828         * modules/spawn (Depends-on): Add c++defs.
22829         (Makefile.am): Update spawn.h rule.
22830
22831         signal: Avoid #define replacements in C++ mode.
22832         * lib/signal.in.h: Include c++defs.h.
22833         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
22834         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
22835         namespaced alias symbol.
22836         * modules/signal (Depends-on): Add c++defs.
22837         (Makefile.am): Update signal.h rule.
22838
22839         search: Avoid #define replacements in C++ mode.
22840         * lib/search.in.h: Include c++defs.h.
22841         (_gl_search_compar_fn, _gl_search_action_fn): New types.
22842         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
22843         symbol.
22844         * modules/search (Depends-on): Add c++defs.
22845         (Makefile.am): Update search.h rule.
22846
22847         math: Avoid #define replacements in C++ mode.
22848         * lib/math.in.h: Include c++defs.h.
22849         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
22850         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
22851         trunc, truncl): In C++, define a namespaced alias symbol.
22852         * modules/math (Depends-on): Add c++defs.
22853         (Makefile.am): Update math.h rule.
22854
22855         locale: Avoid #define replacements in C++ mode.
22856         * lib/locale.in.h: Include c++defs.h.
22857         (duplocale): In C++, define a namespaced alias symbol.
22858         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
22859         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
22860         * modules/locale (Depends-on): Add c++defs.
22861         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
22862
22863         langinfo: Avoid #define replacements in C++ mode.
22864         * lib/langinfo.in.h: Include c++defs.h.
22865         (nl_langinfo): In C++, define a namespaced alias symbol.
22866         * modules/langinfo (Depends-on): Add c++defs.
22867         (Makefile.am): Update langinfo.h rule.
22868
22869         iconv-h: Avoid #define replacements in C++ mode.
22870         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
22871         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
22872         symbol.
22873         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
22874         whenever iconv is present.
22875         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
22876         (Makefile.am): Update iconv.h rule.
22877
22878         glob: Avoid #define replacements in C++ mode.
22879         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
22880         (_gl_glob_errfunc_fn): New type.
22881         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
22882         symbol.
22883         * modules/glob (Depends-on): Add c++defs, warn-on-use.
22884         (Makefile.am): Update glob.h rule.
22885
22886         fcntl-h: Avoid #define replacements in C++ mode.
22887         * lib/fcntl.in.h: Include c++defs.h.
22888         (fcntl, open, openat): In C++, define a namespaced alias symbol.
22889         * modules/fcntl-h (Depends-on): Add c++defs.
22890         (Makefile.am): Update fcntl.h rule.
22891
22892         dirent: Avoid #define replacements in C++ mode.
22893         * lib/dirent.in.h: Include c++defs.h.
22894         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
22895         namespaced alias symbol.
22896         (dirfd): Update declaration.
22897         * modules/dirent (Depends-on): Add c++defs.
22898         (Makefile.am): Update dirent.h rule.
22899
22900         ctype: Make it usable in C++ code.
22901         * lib/ctype.in.h: Include c++defs.h.
22902         (isblank): Declare as extern "C".
22903         * modules/ctype (Depends-on): Add c++defs.
22904         (Makefile.am): Update ctype.h rule.
22905
22906         New module 'c++defs'.
22907         * modules/c++defs: New file.
22908         * build-aux/c++defs.h: New file.
22909         Reported by John W. Eaton <jwe@gnu.org>.
22910
22911 2010-03-07  Bruno Haible  <bruno@clisp.org>
22912
22913         logb: Provide missing declaration for Cygwin.
22914         * lib/math.in.h (logb): New declaration.
22915         * m4/logb.m4: New file.
22916         * modules/logb (Files): Add m4/logb.m4.
22917         (Depends-on): Add math.
22918         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
22919         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
22920         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
22921         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
22922         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
22923
22924 2010-03-07  Bruno Haible  <bruno@clisp.org>
22925
22926         Fix test-cond link error.
22927         * tests/test-cond.c: Include <stdio.h>.
22928
22929 2010-03-07  Bruno Haible  <bruno@clisp.org>
22930
22931         Fix test-dirent-safer link error.
22932         * modules/dirent-safer-tests (Makefile.am): Define
22933         test_dirent_safer_LDADD.
22934
22935 2010-03-07  Bruno Haible  <bruno@clisp.org>
22936
22937         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
22938         among default module list.
22939
22940 2010-03-07  Bruno Haible  <bruno@clisp.org>
22941
22942         Fix link error on platforms with GNU libiconv.
22943         * modules/unistr/u8-strcoll-tests (Makefile): Define
22944         test_u8_strcoll_LDADD.
22945         * modules/unistr/u16-strcoll-tests (Makefile): Define
22946         test_u16_strcoll_LDADD.
22947         * modules/unistr/u32-strcoll-tests (Makefile): Define
22948         test_u32_strcoll_LDADD.
22949
22950 2010-03-07  Bruno Haible  <bruno@clisp.org>
22951
22952         Use POSIX declarations for socket functions.
22953         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
22954         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
22955         rpl_sendto): Change declaration to match POSIX.
22956         * lib/connect.c (rpl_connect): Likewise.
22957         * lib/accept.c (rpl_accept): Likewise.
22958         * lib/bind.c (rpl_bind): Likewise.
22959         * lib/getpeername.c (rpl_getpeername): Likewise.
22960         * lib/getsockname.c (rpl_getsockname): Likewise.
22961         * lib/recv.c (rpl_recv): Likewise.
22962         * lib/send.c (rpl_send): Likewise.
22963         * lib/recvfrom.c (rpl_recvfrom): Likewise.
22964         * lib/sendto.c (rpl_sendto): Likewise.
22965
22966 2010-03-06  Bruno Haible  <bruno@clisp.org>
22967
22968         Clarify access, euidaccess, faccessat.
22969         * doc/posix-functions/faccessat.texi: Mention security problem under
22970         "Other problems", not "Portability problems".
22971         * doc/posix-functions/access.texi: Likewise. Mention a related security
22972         problem.
22973         * doc/glibc-functions/euidaccess.texi: Mention security problems.
22974         * lib/euidaccess.c: Add comments about platforms.
22975         * lib/unistd.in.h (access, euidaccess): Add warnings.
22976
22977 2010-03-07  Bruno Haible  <bruno@clisp.org>
22978
22979         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
22980         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
22981         (POSIX_SPAWN_SETSCHEDULER): Likewise.
22982         (POSIX_SPAWN_USEVFORK): Define in a way that works when
22983         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
22984         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
22985         declare when POSIX_SPAWN_SETSCHEDULER is zero.
22986         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
22987         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
22988         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
22989         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
22990         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
22991         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
22992         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
22993         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
22994         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
22995         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
22996         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
22997         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
22998         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
22999         Likewise.
23000         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
23001         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
23002         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
23003         Likewise.
23004         * tests/test-spawn.c (main): Make it work when
23005         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
23006
23007 2010-03-07  Bruno Haible  <bruno@clisp.org>
23008
23009         Fix incorrect Makefile.am generation in German locale.
23010         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
23011         Execute sed command with character range in C locale.
23012
23013 2010-03-06  Bruno Haible  <bruno@clisp.org>
23014
23015         Tests for module 'iconv-h'.
23016         * modules/iconv-h-tests: New file.
23017         * tests/test-iconv-h.c: New file.
23018
23019         New module 'iconv-h'.
23020         * modules/iconv-h: New file.
23021         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
23022         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
23023         (configure.ac): Remove gl_ICONV_H.
23024         (Makefile.am): Remove rule for iconv.h.
23025
23026 2010-03-06  Bruno Haible  <bruno@clisp.org>
23027
23028         More consistent naming of *.m4 files.
23029         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
23030         * modules/wctype (Files): Update.
23031
23032         More consistent naming of *.m4 files.
23033         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
23034         * modules/wchar (Files): Update.
23035
23036 2010-03-06  Jim Meyering  <meyering@redhat.com>
23037
23038         euidaccess: relax license to LGPLv2+
23039         * modules/euidaccess (License): Relax to LGPLv2+.
23040
23041 2010-03-06  Bruno Haible  <bruno@clisp.org>
23042
23043         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
23044         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
23045         (Makefile.am): Augment lib_SOURCES instead.
23046
23047 2010-03-04  Jim Meyering  <meyering@redhat.com>
23048
23049         utime: remove obsolete module
23050         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
23051         unnecessary for years, and has been marked as obsolete for 10 months.
23052         * modules/utime: Remove file.
23053         * lib/utime.c: Remove file.
23054         * m4/utime.m4: Remove file.
23055         * m4/utimes-null.m4: Remove file.
23056         * doc/posix-functions/utime.texi (utime): Remove reference to
23057         the module.  Move the sole "fixed by gnulib" item into the
23058         "problems not fixed by Gnulib" list.
23059         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
23060
23061 2010-03-05  Simon Josefsson  <simon@josefsson.org>
23062
23063         * modules/exit (License): Relax license to LGPLv2+.
23064         (Status): Mark as obsolete.
23065         * NEWS: Mention deprecated 'exit' module.
23066         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
23067         of now obsolete 'exit'.
23068
23069 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23070
23071         fts-lgpl: remove unused module
23072         * modules/fts-lgpl: Remove.
23073         * MODULES.html.sh (func_all_modules): Adjust.
23074         * check-module (find_included_lib_files): Adjust.
23075         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
23076
23077 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
23078
23079         copy-acl: enhance Solaris ACL error handling
23080         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
23081         * lib/set-mode-acl.c (qset_acl): Likewise.
23082
23083 2010-03-02  Bruno Haible  <bruno@clisp.org>
23084
23085         spawn: Don't override the system defined values on FreeBSD 8.
23086         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
23087         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
23088         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
23089         if HAVE_POSIX_SPAWN is 1.
23090         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
23091
23092 2010-03-01  Bruno Haible  <bruno@clisp.org>
23093
23094         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
23095         regarding Automake.
23096
23097 2010-02-25  Bruno Haible  <bruno@clisp.org>
23098
23099         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
23100         * gnulib-tool: Define 'echo' as a function only before the ksh alias
23101         setting, not afterwards.
23102         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
23103
23104 2010-02-24  Eric Blake  <eblake@redhat.com>
23105
23106         bootstrap, git-version-gen: use timestamp
23107         * build-aux/git-version-gen (scriptversion): Force UTC.
23108         * build-aux/bootstrap (scriptversion): New variable.
23109
23110         bootstrap: allow older git
23111         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
23112         older than 1.6.4.  Requested by the libvirt project.
23113
23114 2010-02-23  Eric Blake  <eblake@redhat.com>
23115
23116         warn-on-use: work with old autoconf
23117         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
23118         AS_VAR semantics of autoconf 2.60.
23119         Reported by Bruno Haible.
23120
23121         bootstrap: improve some comments
23122         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
23123         clarification comments.
23124
23125         gettimeofday: provide correct function
23126         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
23127         when replacement is declared, otherwise provide gettimeofday.
23128         Reported by Michael Goffioul.
23129
23130 2010-02-23  Jim Meyering  <meyering@redhat.com>
23131
23132         lib-ignore: relax license to "unlimited", not LGPLv2+
23133         * modules/lib-ignore (License): Relax to "unlimited".
23134
23135 2010-02-23  Jim Meyering  <meyering@redhat.com>
23136
23137         lib-ignore: relax license to LGPLv2+
23138         * modules/lib-ignore (License): Relax to LGPLv2+.
23139
23140 2010-02-22  Eric Blake  <eblake@redhat.com>
23141
23142         lseek: avoid bash 3.2 broken pipe bug
23143         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
23144         warning from bash 3.2.
23145         Reported by Ben Pfaff, with analysis from Bruno Haible.
23146
23147         bootstrap: support non-FSF copyright holder
23148         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
23149         bootstrap.conf override of COPYRIGHT_HOLDER.
23150         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
23151
23152         bootstrap: interoperate with gettext 0.14.1
23153         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
23154
23155         bootstrap: allow for alternate submodule location
23156         * build-aux/bootstrap (gnulib_path): New variable; use instead of
23157         hardcoding submodule location.
23158         (gnulib_mk): Allow direct use of Makefile.am.
23159
23160         bootstrap: use GNULIB_SRCDIR to reduce disk usage
23161         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
23162         rather than reconfiguring where the submodule points.
23163
23164         gettimeofday: restore support for platforms that lack function
23165         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
23166         replacement if function is missing.
23167         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
23168         * modules/sys_time (Makefile.am): Substitute it.
23169         * lib/sys_time.in.h (gettimeofday): Check it.
23170         Reported by Michael Goffioul.
23171
23172 2010-02-21  Bruno Haible  <bruno@clisp.org>
23173
23174         * lib/stdio.in.h (obstack_printf): Fix typo.
23175
23176 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
23177
23178         vc-list-files: use bzr ls's -R option
23179         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
23180         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
23181
23182 2010-02-21  Jim Meyering  <meyering@redhat.com>
23183
23184         init.sh: fix EXEEXT shims to work also for names like test-prog
23185         * tests/init.sh: Re-exec a better shell, when needed.
23186         If the current shell lacks support for posix $(...), an init.sh-using
23187         test will now try to find a shell that supports that.  If EXEEXT is
23188         nonempty, we also require support for hyphen-in-alias-name and shell
23189         substitutions like ${var#glob}.  Failure to find such a shell results
23190         in a skipped test.
23191
23192 2010-02-21  Bruno Haible  <bruno@clisp.org>
23193
23194         Really work around around "broken pipe" error message from bash 3.2.
23195         * gnulib-tool (func_reset_sigpipe): Remove function.
23196         (echo): In bash 3.2, define to a function that uses printf.
23197         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
23198
23199 2010-02-20  Bruno Haible  <bruno@clisp.org>
23200
23201         Restore support for automake 1.9.6 with autoconf 2.61.
23202         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
23203         Reported by James Youngman <jay@gnu.org>.
23204
23205 2010-02-20  Bruno Haible  <bruno@clisp.org>
23206
23207         Improve *printf warning condition.
23208         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
23209         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
23210         and the function is overridden due to SIGPIPE emulation.
23211
23212 2010-02-20  Bruno Haible  <bruno@clisp.org>
23213
23214         * lib/stdio.in.h: Tweak comments.
23215
23216 2010-02-19  Bruno Haible  <bruno@clisp.org>
23217
23218         Make it easier to find modules. New gnulib-tool option '--find'.
23219         * gnulib-tool: New option --find.
23220         (func_usage): Document it.
23221         (func_sanitize_modulelist): New function, extracted from
23222         func_all_modules.
23223         (func_all_modules): Invoke it.
23224         * doc/gnulib-tool.texi (Which modules?): New node.
23225
23226 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
23227
23228         * lib/sys_select.in.h: Provide select replacement even if
23229         sys/select.h exists on a system, for Interix.
23230
23231 2010-02-18  Jim Meyering  <meyering@redhat.com>
23232
23233         init.sh: don't use $(...) just yet
23234         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
23235         to accommodate e.g., Solaris' /bin/sh.
23236
23237 2010-02-17  Bruno Haible  <bruno@clisp.org>
23238
23239         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
23240         Reported by Ludovic Courtès <ludo@gnu.org>.
23241
23242 2010-02-16  Simon Josefsson  <simon@josefsson.org>
23243
23244         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
23245         linking with -lintl.
23246
23247 2010-02-17  Simon Josefsson  <simon@josefsson.org>
23248
23249         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
23250         if not provided by the system's netdb.h.  Reported by
23251         ludo@gnu.org (Ludovic Courtès).
23252
23253 2010-02-15  Jim Meyering  <meyering@redhat.com>
23254
23255         init.sh: improve portability and efficiency
23256         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
23257         "dummy" in a for loop.
23258         Use '!', not '^' to select the complement of a character set used
23259         in a "case" statement.
23260         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
23261         Suggestions from Eric Blake.
23262
23263         init.sh: automatically accommodate programs with the .exe suffix
23264         Automatically arrange for an invocation of "prog" to execute the
23265         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
23266         may use the simpler "prog", yet still work when built on a system
23267         that requires specifying the added suffix.
23268         Do this by constructing a function named "prog" that invokes
23269         "prog.exe" for each .exe file in selected directories.
23270         * tests/init.sh (find_exe_basenames_): New function.
23271         (create_exe_shim_functions_): New function.
23272         (path_prepend_): Use it.
23273
23274         maint.mk: mark syntax-check sc_*.m rules as .PHONY
23275         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
23276         "make -t syntax-check" doesn't create a ton of sc_*.m files.
23277
23278 2010-02-14  Jim Meyering  <meyering@redhat.com>
23279
23280         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
23281         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
23282         (sc_prohibit_hash_pjw_without_use): New rule.
23283
23284         maint.mk: allow the default upload destination dir to be overridden
23285         * top/maint.mk (upload_dest_dir_): Define with a default that
23286         preserves the status quo.
23287         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
23288         Reported by Peter Simons.
23289
23290         maint.mk: prohibit inclusion of "hash.h" without_use
23291         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
23292
23293 2010-02-10  Jim Meyering  <meyering@redhat.com>
23294
23295         maint.mk: prohibit inclusion of "ignore-value.h" without_use
23296         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
23297
23298 2010-02-09  Eric Blake  <ebb9@byu.net>
23299         and Bruno Haible  <bruno@clisp.org>
23300
23301         obstack-printf-posix: ensure declaration
23302         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
23303         extracted from gl_FUNC_OBSTACK_PRINTF.
23304         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
23305         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
23306         Likewise.
23307         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
23308         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
23309         0.
23310
23311 2010-02-08  Bruno Haible  <bruno@clisp.org>
23312
23313         gnulib-tool: Fix typo in 2010-02-07 commit.
23314         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
23315         Reported by Eric Blake.
23316
23317 2010-02-07  Bruno Haible  <bruno@clisp.org>
23318
23319         gnulib-tool: Fix up caching patches.
23320         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
23321         option --no-cache. Use associative arrays when supported by the shell.
23322         (sed_comments): New variable.
23323         (modcache): Renamed from do_cache.
23324         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
23325         abbreviate unnecessarily.
23326         (have_associative): New variable.
23327         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
23328         way also for ksh and zsh.
23329         (func_init_sed_convert_to_cache_statements): New function, extracted
23330         from func_cache_lookup_module. Add support for associative arrays.
23331         Don't set the c_MODULE_cached variable here. Ignore all lines before
23332         the first field header. Remove only the final newline, not all trailing
23333         newlines. Support empty fields correctly. Limit the use of 'eval' to
23334         assignments.
23335         (func_get_description, func_get_status, func_get_notice,
23336         func_get_applicability, func_get_filelist, func_get_dependencies,
23337         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
23338         func_get_automake_snippet, func_get_include_directive,
23339         func_get_link_directive, func_get_license, func_get_maintainer):
23340         Update documentation. List the unoptimized code first. Add support for
23341         associative arrays. Limit the use of 'eval' to assignments.
23342         (func_get_applicability): Undo stylistic pessimisations.
23343         (func_get_automake_snippet, func_get_include_directive): Reduce code
23344         duplication.
23345         (func_modules_transitive_closure, func_modules_add_dummy,
23346         func_modules_notice, func_modules_to_filelist, func_add_file,
23347         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
23348         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
23349         func_create_testdir, func_create_megatestdir): Update documentation.
23350
23351 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23352
23353         * gnulib-tool (func_cache_lookup_module): Store the module name
23354         belonging to the cache variable; error out if two different
23355         module names map to the same cache variable name.
23356
23357 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23358
23359         gnulib-tool: Make caching optional.
23360         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
23361         Update matching short versions of --no-changelog.
23362         (func_usage): Update.
23363         (sed_extract_cache_prog): Renamed from ...
23364         (sed_extract_prog): ... this; revert to old extraction script.
23365         (func_get_description, func_get_status)
23366         (func_get_notice, func_get_applicability, func_get_filelist)
23367         (func_get_dependencies, func_get_autoconf_early_snippet)
23368         (func_get_autoconf_snippet, func_get_automake_snippet)
23369         (func_get_include_directive, func_get_link_directive)
23370         (func_get_license, func_get_maintainer): If $do_cache is false,
23371         use old, non-caching extraction scripts.
23372         Suggestion by Bruno Haible.
23373
23374 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23375
23376         gnulib-tool: cache module metainformation.
23377         * gnulib-tool (sed_extract_prog): Match newline before each
23378         header, and rewrite header to a shell variable suffix.
23379         (func_cache_var, func_cache_lookup_module): New functions,
23380         to turn a module name into a cache variable prefix, and to
23381         look up and cache module metainformation.
23382         (func_get_description, func_get_status)
23383         (func_get_notice, func_get_applicability, func_get_filelist)
23384         (func_get_dependencies, func_get_autoconf_early_snippet)
23385         (func_get_autoconf_snippet, func_get_automake_snippet)
23386         (func_get_include_directive, func_get_link_directive)
23387         (func_get_license, func_get_maintainer): Use
23388         func_cache_lookup_module.
23389
23390 2010-02-07  Bruno Haible  <bruno@clisp.org>
23391
23392         fnctl: Fix missing dependency.
23393         * modules/fcntl (Depends-on): Add getdtablesize.
23394         Reported by John W. Eaton <jwe@gnu.org>.
23395
23396 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
23397
23398         Argp: fix recognition of short alias options.
23399
23400         * lib/argp-parse.c (convert_options): Fix improper use of
23401         `|' between character values.
23402         * tests/test-argp.c (group1_option): New alias option
23403         --read (-r).
23404         (group1_parser): Special handling for 'r'.
23405         (test15): New test case.
23406         (test_fun): Add test15.
23407         * tests/test-argp-2.sh: Update expected --help and --usage
23408         outputs.
23409
23410 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
23411
23412         * tests/test-argp.c: Fix indentation.
23413
23414 2010-02-04  Eric Blake  <ebb9@byu.net>
23415
23416         gettimeofday: expose type of second argument
23417         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
23418         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
23419         * tests/test-gettimeofday.c: Use it to silence warning.
23420         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
23421         the issue.
23422
23423 2010-02-03  Jim Meyering  <meyering@redhat.com>
23424
23425         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
23426         * lib/regcomp.c (TYPE_SIGNED): Define.
23427         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
23428
23429         regcomp.c: avoid a new -Wshadow warning
23430         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
23431
23432 2010-02-01  Jim Meyering  <meyering@redhat.com>
23433
23434         removing useless parentheses in cpp #define directives
23435         For motivation, see commit c0221df4, "define STREQ(a,b)
23436         consistently, removing useless parentheses"
23437         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
23438         * lib/mountlist.c (MNT_IGNORE): Likewise.
23439         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
23440
23441 2010-02-01  Eric Blake  <ebb9@byu.net>
23442
23443         sys_time: use link-warning
23444         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
23445         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
23446         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
23447         * modules/sys_time (Depends-on): Add warn-on-use.
23448         (Makefile.am): Always build replacement.
23449         (configure.ac): Update substitutions.
23450         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
23451         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
23452         bother with SYS_TIME_H.
23453         * modules/gettimeofday (configure.ac): Declare indicator.
23454         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
23455         in use.
23456
23457         closein-tests: silence compiler warning
23458         * tests/test-closein.c (main): Ignore fread result.
23459         * modules/closein-tests (Depends-on): Add ignore-value.
23460
23461         tests: silence warning about system return
23462         * tests/test-areadlink-with-size.c (main): Ignore system result.
23463         * tests/test-areadlink.c (main): Likewise.
23464         * tests/test-areadlinkat-with-size.c (main): Likewise.
23465         * tests/test-areadlinkat.c (main): Likewise.
23466         * tests/test-canonicalize-lgpl.c (main): Likewise.
23467         * tests/test-canonicalize.c (main): Likewise.
23468         * tests/test-chown.c (main): Likewise.
23469         * tests/test-fchownat.c (main): Likewise.
23470         * tests/test-fdutimensat.c (main): Likewise.
23471         * tests/test-fstatat.c (main): Likewise.
23472         * tests/test-futimens.c (main): Likewise.
23473         * tests/test-lchown.c (main): Likewise.
23474         * tests/test-link.c (main): Likewise.
23475         * tests/test-linkat.c (main): Likewise.
23476         * tests/test-lstat.c (main): Likewise.
23477         * tests/test-mkdir.c (main): Likewise.
23478         * tests/test-mkdirat.c (main): Likewise.
23479         * tests/test-mkfifo.c (main): Likewise.
23480         * tests/test-mkfifoat.c (main): Likewise.
23481         * tests/test-mknod.c (main): Likewise.
23482         * tests/test-readlink.c (main): Likewise.
23483         * tests/test-remove.c (main): Likewise.
23484         * tests/test-rename.c (main): Likewise.
23485         * tests/test-renameat.c (main): Likewise.
23486         * tests/test-rmdir.c (main): Likewise.
23487         * tests/test-symlink.c (main): Likewise.
23488         * tests/test-symlinkat.c (main): Likewise.
23489         * tests/test-unlink.c (main): Likewise.
23490         * tests/test-unlinkat.c (main): Likewise.
23491         * tests/test-utimens.c (main): Likewise.
23492         * tests/test-utimensat.c (main): Likewise.
23493         * modules/areadlink-tests (Depends-on): Add ignore-value.
23494         * modules/areadlink-with-size-tests (Depends-on): Likewise.
23495         * modules/areadlinkat-tests (Depends-on): Likewise.
23496         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
23497         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
23498         * modules/canonicalize-tests (Depends-on): Likewise.
23499         * modules/chown-tests (Depends-on): Likewise.
23500         * modules/fdutimensat-tests (Depends-on): Likewise.
23501         * modules/futimens-tests (Depends-on): Likewise.
23502         * modules/lchown-tests (Depends-on): Likewise.
23503         * modules/link-tests (Depends-on): Likewise.
23504         * modules/linkat-tests (Depends-on): Likewise.
23505         * modules/lstat-tests (Depends-on): Likewise.
23506         * modules/mkdir-tests (Depends-on): Likewise.
23507         * modules/mkfifo-tests (Depends-on): Likewise.
23508         * modules/mkfifoat-tests (Depends-on): Likewise.
23509         * modules/mknod-tests (Depends-on): Likewise.
23510         * modules/openat-tests (Depends-on): Likewise.
23511         * modules/readlink-tests (Depends-on): Likewise.
23512         * modules/remove-tests (Depends-on): Likewise.
23513         * modules/rename-tests (Depends-on): Likewise.
23514         * modules/renameat-tests (Depends-on): Likewise.
23515         * modules/rmdir-tests (Depends-on): Likewise.
23516         * modules/symlink-tests (Depends-on): Likewise.
23517         * modules/symlinkat-tests (Depends-on): Likewise.
23518         * modules/unlink-tests (Depends-on): Likewise.
23519         * modules/utimens-tests (Depends-on): Likewise.
23520         * modules/utimensat-tests (Depends-on): Likewise.
23521
23522 2010-01-31  Bruno Haible  <bruno@clisp.org>
23523
23524         Perform the same test for many <math.h> functions.
23525         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
23526         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
23527         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
23528         of gl_MATHFUNC.
23529         * modules/acos (configure.ac): Likewise.
23530         * modules/asin (configure.ac): Likewise.
23531         * modules/atan (configure.ac): Likewise.
23532         * modules/atan2 (configure.ac): Likewise.
23533         * modules/cbrt (configure.ac): Likewise.
23534         * modules/copysign (configure.ac): Likewise.
23535         * modules/cos (configure.ac): Likewise.
23536         * modules/cosh (configure.ac): Likewise.
23537         * modules/erf (configure.ac): Likewise.
23538         * modules/erfc (configure.ac): Likewise.
23539         * modules/exp (configure.ac): Likewise.
23540         * modules/fmod (configure.ac): Likewise.
23541         * modules/hypot (configure.ac): Likewise.
23542         * modules/j0 (configure.ac): Likewise.
23543         * modules/j1 (configure.ac): Likewise.
23544         * modules/jn (configure.ac): Likewise.
23545         * modules/lgamma (configure.ac): Likewise.
23546         * modules/log (configure.ac): Likewise.
23547         * modules/log10 (configure.ac): Likewise.
23548         * modules/log1p (configure.ac): Likewise.
23549         * modules/pow (configure.ac): Likewise.
23550         * modules/remainder (configure.ac): Likewise.
23551         * modules/sin (configure.ac): Likewise.
23552         * modules/sinh (configure.ac): Likewise.
23553         * modules/tan (configure.ac): Likewise.
23554         * modules/tanh (configure.ac): Likewise.
23555         * modules/y0 (configure.ac): Likewise.
23556         * modules/y1 (configure.ac): Likewise.
23557         * modules/yn (configure.ac): Likewise.
23558         Suggested by Paolo Bonzini.
23559
23560 2010-01-31  Bruno Haible  <bruno@clisp.org>
23561
23562         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
23563
23564 2010-01-31  Bruno Haible  <bruno@clisp.org>
23565
23566         Work around getdelim() bug on FreeBSD 8.0.
23567         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
23568         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
23569         not work.
23570         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
23571         is 1.
23572         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
23573         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
23574         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
23575         a non-zero size.
23576         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
23577
23578 2010-01-31  Bruno Haible  <bruno@clisp.org>
23579
23580         Work around getline() bug on FreeBSD 8.0.
23581         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
23582         and a non-zero size.
23583         * tests/test-getline.c (main): Likewise.
23584         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
23585         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
23586
23587 2010-01-28  Eric Blake  <ebb9@byu.net>
23588
23589         regex: fix build failure
23590         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
23591         platforms.
23592
23593 2010-01-28  Jim Meyering  <meyering@redhat.com>
23594
23595         regex: do not ignore memory allocation failure
23596         * lib/regex_internal.c (create_cd_newstate): Detect
23597         re_node_set_init_copy failure.   Extracted from glibc commit
23598         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
23599
23600         regex: sync more white-space changes from libc
23601         * lib/regex_internal.c: White-space only changes.
23602         * lib/regexec.c: Likewise.
23603
23604         regex: add many uses of __attribute_warn_unused_result__
23605         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
23606         * lib/regexec.c: Likewise.
23607         Extracted from a messy glibc commit.
23608
23609         regcomp.c: spelling and merge-artifact from glibc
23610         * lib/regcomp.c: Merge remainder of glibc's
23611         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
23612
23613         regcomp.c: sync white-space changes from glibc
23614         * lib/regcomp.c: Merge to accommodate white space
23615         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
23616
23617         regcomp.c: do not ignore internal return values
23618         * lib/regcomp.c: Do not ignore internal return values.
23619         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
23620         but without its white-space changes and spelling fixes.
23621
23622         regex_internal.h: define __attribute_warn_unused_result__
23623         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
23624
23625         maint: add a syntax-check rule to check for vulnerable Makefile.in
23626         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
23627
23628 2010-01-27  Jim Meyering  <meyering@redhat.com>
23629
23630         ncftpput-ftp: clean up spaces
23631         * build-aux/ncftpput-ftp: Make Copyright line consistent.
23632         Remove trailing blanks.
23633
23634 2010-01-27  Simon Josefsson  <simon@josefsson.org>
23635
23636         * build-aux/git-version-gen: Fix copyright statement.
23637         * build-aux/gnupload: Likewise.
23638         * tests/test-arcfour.c: Likewise.
23639         * tests/test-arctwo.c: Likewise.
23640         * tests/test-count-one-bits.c: Likewise.
23641         * tests/test-crc.c: Likewise.
23642         * tests/test-des.c: Likewise.
23643         * tests/test-gc-arcfour.c: Likewise.
23644         * tests/test-gc-arctwo.c: Likewise.
23645         * tests/test-gc-des.c: Likewise.
23646         * tests/test-gc-hmac-md5.c: Likewise.
23647         * tests/test-gc-hmac-sha1.c: Likewise.
23648         * tests/test-gc-md2.c: Likewise.
23649         * tests/test-gc-md4.c: Likewise.
23650         * tests/test-gc-md5.c: Likewise.
23651         * tests/test-gc-pbkdf2-sha1.c: Likewise.
23652         * tests/test-gc-rijndael.c: Likewise.
23653         * tests/test-gc-sha1.c: Likewise.
23654         * tests/test-gc.c: Likewise.
23655         * tests/test-gethostname.c: Likewise.
23656         * tests/test-gettimeofday.c: Likewise.
23657         * tests/test-hash.c: Likewise.
23658         * tests/test-hmac-md5.c: Likewise.
23659         * tests/test-hmac-sha1.c: Likewise.
23660         * tests/test-md2.c: Likewise.
23661         * tests/test-md4.c: Likewise.
23662         * tests/test-md5.c: Likewise.
23663         * tests/test-memchr.c: Likewise.
23664         * tests/test-memchr2.c: Likewise.
23665         * tests/test-memcmp.c: Likewise.
23666         * tests/test-memmem.c: Likewise.
23667         * tests/test-memrchr.c: Likewise.
23668         * tests/test-rawmemchr.c: Likewise.
23669         * tests/test-read-file.c: Likewise.
23670         * tests/test-rijndael.c: Likewise.
23671         * tests/test-sockets.c: Likewise.
23672         * tests/test-strchrnul.c: Likewise.
23673         * tests/test-strstr.c: Likewise.
23674         * tests/test-strtod.c: Likewise.
23675         * build-aux/ncftpput-ftp: Likewise.
23676
23677 2010-01-26  Eric Blake  <ebb9@byu.net>
23678
23679         ignore-value: update recommended header name
23680         * modules/ignore-value (Include): Only use <> for headers that
23681         exist in glibc.
23682
23683 2010-01-26  Jim Meyering  <meyering@redhat.com>
23684
23685         test-userspec.c: avoid compiler warnings
23686         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
23687         and "initialization discards qualifiers..." warnings.
23688         Put the first "uid" in its own scope, and make char* members "const".
23689
23690 2010-01-25  Bruno Haible  <bruno@clisp.org>
23691
23692         gnulib-tool: Make warning diagnostics consistent.
23693         * gnulib-tool (func_warning): New function.
23694         Use it everywhere where gnulib-tool produces output to stderr and it is
23695         not a fatal error.
23696
23697 2010-01-25  Bruno Haible  <bruno@clisp.org>
23698
23699         Fix test dependencies.
23700         * modules/xstrtol-tests (Depends-on): Add inttypes.
23701         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
23702
23703 2010-01-25 Pádraig Brady <P@draigBrady.com>
23704
23705         syntax-check: detect incorrect boolean macro values in config.h
23706         * modules/maintainer-makefile (configure.ac): Parameterize the location
23707         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
23708         The logic is from Eric Blake and the location indicated by Jim Meyering.
23709         Note the more natural CONFIG_HEADER name is prohibited by automake
23710         for backwards compatibility reasons.
23711         * top/maint.mk (sc_Wundef_boolean): New rule.
23712
23713 2010-01-25  Jim Meyering  <meyering@redhat.com>
23714
23715         bootstrap: detect MacOS 10.6's shasum, too
23716         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
23717         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
23718
23719 2010-01-23  Jim Meyering  <meyering@redhat.com>
23720
23721         xstrtoll: new module
23722         * modules/xstrtoll: New file.
23723         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
23724         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
23725         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
23726         ./configure fails if you use this module and lack "long long".
23727         * modules/xstrtoll-tests: New module.
23728         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
23729         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
23730         new init.sh-based test framework.
23731
23732 2010-01-24  Bruno Haible  <bruno@clisp.org>
23733
23734         Tests for module 'yn'.
23735         * modules/yn-tests: New file.
23736         * tests/test-yn.c: New file.
23737
23738         Tests for module 'y1'.
23739         * modules/y1-tests: New file.
23740         * tests/test-y1.c: New file.
23741
23742         Tests for module 'y0'.
23743         * modules/y0-tests: New file.
23744         * tests/test-y0.c: New file.
23745
23746         Tests for module 'tanh'.
23747         * modules/tanh-tests: New file.
23748         * tests/test-tanh.c: New file.
23749
23750         Tests for module 'tan'.
23751         * modules/tan-tests: New file.
23752         * tests/test-tan.c: New file.
23753
23754         Tests for module 'sqrt'.
23755         * modules/sqrt-tests: New file.
23756         * tests/test-sqrt.c: New file.
23757
23758         Tests for module 'sinh'.
23759         * modules/sinh-tests: New file.
23760         * tests/test-sinh.c: New file.
23761
23762         Tests for module 'sin'.
23763         * modules/sin-tests: New file.
23764         * tests/test-sin.c: New file.
23765
23766         Tests for module 'rint'.
23767         * modules/rint-tests: New file.
23768         * tests/test-rint.c: New file.
23769
23770         Tests for module 'remainder'.
23771         * modules/remainder-tests: New file.
23772         * tests/test-remainder.c: New file.
23773
23774         Tests for module 'pow'.
23775         * modules/pow-tests: New file.
23776         * tests/test-pow.c: New file.
23777
23778         Tests for module 'nextafter'.
23779         * modules/nextafter-tests: New file.
23780         * tests/test-nextafter.c: New file.
23781
23782         Tests for module 'modf'.
23783         * modules/modf-tests: New file.
23784         * tests/test-modf.c: New file.
23785
23786         Tests for module 'logb'.
23787         * modules/logb-tests: New file.
23788         * tests/test-logb.c: New file.
23789
23790         Tests for module 'log1p'.
23791         * modules/log1p-tests: New file.
23792         * tests/test-log1p.c: New file.
23793
23794         Tests for module 'log10'.
23795         * modules/log10-tests: New file.
23796         * tests/test-log10.c: New file.
23797
23798         Tests for module 'log'.
23799         * modules/log-tests: New file.
23800         * tests/test-log.c: New file.
23801
23802         Tests for module 'lgamma'.
23803         * modules/lgamma-tests: New file.
23804         * tests/test-lgamma.c: New file.
23805
23806         Tests for module 'ldexp'.
23807         * modules/ldexp-tests: New file.
23808         * tests/test-ldexp.c: New file.
23809
23810         Tests for module 'jn'.
23811         * modules/jn-tests: New file.
23812         * tests/test-jn.c: New file.
23813
23814         Tests for module 'j1'.
23815         * modules/j1-tests: New file.
23816         * tests/test-j1.c: New file.
23817
23818         Tests for module 'j0'.
23819         * modules/j0-tests: New file.
23820         * tests/test-j0.c: New file.
23821
23822         Tests for module 'hypot'.
23823         * modules/hypot-tests: New file.
23824         * tests/test-hypot.c: New file.
23825
23826         Tests for module 'fmod'.
23827         * modules/fmod-tests: New file.
23828         * tests/test-fmod.c: New file.
23829
23830         Tests for module 'fabs'.
23831         * modules/fabs-tests: New file.
23832         * tests/test-fabs.c: New file.
23833
23834         Tests for module 'exp'.
23835         * modules/exp-tests: New file.
23836         * tests/test-exp.c: New file.
23837
23838         Tests for module 'erfc'.
23839         * modules/erfc-tests: New file.
23840         * tests/test-erfc.c: New file.
23841
23842         Tests for module 'erf'.
23843         * modules/erf-tests: New file.
23844         * tests/test-erf.c: New file.
23845
23846         Tests for module 'cosh'.
23847         * modules/cosh-tests: New file.
23848         * tests/test-cosh.c: New file.
23849
23850         Tests for module 'cos'.
23851         * modules/cos-tests: New file.
23852         * tests/test-cos.c: New file.
23853
23854         Tests for module 'copysign'.
23855         * modules/copysign-tests: New file.
23856         * tests/test-copysign.c: New file.
23857
23858         Tests for module 'cbrt'.
23859         * modules/cbrt-tests: New file.
23860         * tests/test-cbrt.c: New file.
23861
23862         Tests for module 'atan2'.
23863         * modules/atan2-tests: New file.
23864         * tests/test-atan2.c: New file.
23865
23866         Tests for module 'atan'.
23867         * modules/atan-tests: New file.
23868         * tests/test-atan.c: New file.
23869
23870         Tests for module 'asin'.
23871         * modules/asin-tests: New file.
23872         * tests/test-asin.c: New file.
23873
23874         Tests for module 'acos'.
23875         * modules/acos-tests: New file.
23876         * tests/test-acos.c: New file.
23877
23878 2010-01-24  Bruno Haible  <bruno@clisp.org>
23879
23880         Fix tests for common <math.h> functions.
23881         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
23882         code snippet that references the function pointer, rather than merely
23883         calling the function. Substitute the FUNC_LIBM variable.
23884         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
23885         * modules/acos (configure.ac): Likewise.
23886         * modules/asin (configure.ac): Likewise.
23887         * modules/atan (configure.ac): Likewise.
23888         * modules/atan2 (configure.ac): Likewise.
23889         * modules/cbrt (configure.ac): Likewise.
23890         * modules/copysign (configure.ac): Likewise.
23891         * modules/cos (configure.ac): Likewise.
23892         * modules/cosh (configure.ac): Likewise.
23893         * modules/erf (configure.ac): Likewise.
23894         * modules/erfc (configure.ac): Likewise.
23895         * modules/exp (configure.ac): Likewise.
23896         * modules/fabs (configure.ac): Likewise.
23897         * modules/fmod (configure.ac): Likewise.
23898         * modules/hypot (configure.ac): Likewise.
23899         * modules/j0 (configure.ac): Likewise.
23900         * modules/j1 (configure.ac): Likewise.
23901         * modules/jn (configure.ac): Likewise.
23902         * modules/ldexp (configure.ac): Likewise.
23903         * modules/lgamma (configure.ac): Likewise.
23904         * modules/log (configure.ac): Likewise.
23905         * modules/log10 (configure.ac): Likewise.
23906         * modules/log1p (configure.ac): Likewise.
23907         * modules/logb (configure.ac): Likewise.
23908         * modules/modf (configure.ac): Likewise.
23909         * modules/nextafter (configure.ac): Likewise.
23910         * modules/pow (configure.ac): Likewise.
23911         * modules/remainder (configure.ac): Likewise.
23912         * modules/rint (configure.ac): Likewise.
23913         * modules/sin (configure.ac): Likewise.
23914         * modules/sinh (configure.ac): Likewise.
23915         * modules/tan (configure.ac): Likewise.
23916         * modules/tanh (configure.ac): Likewise.
23917         * modules/y0 (configure.ac): Likewise.
23918         * modules/y1 (configure.ac): Likewise.
23919         * modules/yn (configure.ac): Likewise.
23920
23921 2010-01-24  Bruno Haible  <bruno@clisp.org>
23922
23923         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
23924         * tests/test-acosl.c (x): New variable.
23925         (main): Store argument in x and fetch it from x.
23926         * tests/test-asinl.c (x): New variable.
23927         (main): Store argument in x and fetch it from x.
23928         * tests/test-atanl.c (x): New variable.
23929         (main): Store argument in x and fetch it from x.
23930         * tests/test-cosl.c (x): New variable.
23931         (main): Store argument in x and fetch it from x.
23932         * tests/test-expl.c (x): New variable.
23933         (main): Store argument in x and fetch it from x.
23934         * tests/test-logl.c (x): New variable.
23935         (main): Store argument in x and fetch it from x.
23936         * tests/test-sinl.c (x): New variable.
23937         (main): Store argument in x and fetch it from x.
23938         * tests/test-sqrtl.c (x): New variable.
23939         (main): Store argument in x and fetch it from x.
23940         * tests/test-tanl.c (x): New variable.
23941         (main): Store argument in x and fetch it from x.
23942
23943 2010-01-24  Bruno Haible  <bruno@clisp.org>
23944
23945         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
23946         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
23947         assignments to the initial TESTS_ENVIRONMENT.
23948         * doc/gnulib.texi (Unit test modules): Document it.
23949         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
23950         TESTS_ENVIRONMENT.
23951         * modules/btowc-tests (Makefile.am): Likewise.
23952         * modules/c-stack-tests (Makefile.am): Likewise.
23953         * modules/c-strcase-tests (Makefile.am): Likewise.
23954         * modules/copy-file-tests (Makefile.am): Likewise.
23955         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
23956         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
23957         * modules/mbrtowc-tests (Makefile.am): Likewise.
23958         * modules/mbscasecmp-tests (Makefile.am): Likewise.
23959         * modules/mbscasestr-tests (Makefile.am): Likewise.
23960         * modules/mbschr-tests (Makefile.am): Likewise.
23961         * modules/mbscspn-tests (Makefile.am): Likewise.
23962         * modules/mbsinit-tests (Makefile.am): Likewise.
23963         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
23964         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
23965         * modules/mbspbrk-tests (Makefile.am): Likewise.
23966         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
23967         * modules/mbsrchr-tests (Makefile.am): Likewise.
23968         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
23969         * modules/mbsspn-tests (Makefile.am): Likewise.
23970         * modules/mbsstr-tests (Makefile.am): Likewise.
23971         * modules/nl_langinfo-tests (Makefile.am): Likewise.
23972         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
23973         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
23974         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
23975         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
23976         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
23977         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
23978         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
23979         * modules/wcrtomb-tests (Makefile.am): Likewise.
23980         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
23981         * modules/wcsrtombs-tests (Makefile.am): Likewise.
23982         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
23983         assignments from TESTS_ENVIRONMENT.
23984         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
23985         augmentation.
23986         * modules/argp-version-etc-tests (Makefile.am): Likewise.
23987         * modules/atexit-tests (Makefile.am): Likewise.
23988         * modules/binary-io-tests (Makefile.am): Likewise.
23989         * modules/closein-tests (Makefile.am): Likewise.
23990         * modules/dprintf-posix-tests (Makefile.am): Likewise.
23991         * modules/exclude-tests (Makefile.am): Likewise.
23992         * modules/fflush-tests (Makefile.am): Likewise.
23993         * modules/fpending-tests (Makefile.am): Likewise.
23994         * modules/fprintf-posix-tests (Makefile.am): Likewise.
23995         * modules/freadahead-tests (Makefile.am): Likewise.
23996         * modules/freadptr-tests (Makefile.am): Likewise.
23997         * modules/freadseek-tests (Makefile.am): Likewise.
23998         * modules/fseek-tests (Makefile.am): Likewise.
23999         * modules/fseeko-tests (Makefile.am): Likewise.
24000         * modules/ftell-tests (Makefile.am): Likewise.
24001         * modules/ftello-tests (Makefile.am): Likewise.
24002         * modules/idpriv-drop-tests (Makefile.am): Likewise.
24003         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
24004         * modules/lseek-tests (Makefile.am): Likewise.
24005         * modules/parse-duration-tests (Makefile.am): Likewise.
24006         * modules/perror-tests (Makefile.am): Likewise.
24007         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
24008         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
24009         * modules/pipe-tests (Makefile.am): Likewise.
24010         * modules/pread-tests (Makefile.am): Likewise.
24011         * modules/printf-posix-tests (Makefile.am): Likewise.
24012         * modules/select-tests (Makefile.am): Likewise.
24013         * modules/sigpipe-tests (Makefile.am): Likewise.
24014         * modules/tsearch-tests (Makefile.am): Likewise.
24015         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
24016         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
24017         * modules/uniname/uniname-tests (Makefile.am): Likewise.
24018         * modules/uniwidth/width-tests (Makefile.am): Likewise.
24019         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
24020         * modules/version-etc-tests (Makefile.am): Likewise.
24021         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
24022         * modules/vprintf-posix-tests (Makefile.am): Likewise.
24023         * modules/xalloc-die-tests (Makefile.am): Likewise.
24024         * modules/xprintf-posix-tests (Makefile.am): Likewise.
24025         * modules/xstrtoimax-tests (Makefile.am): Likewise.
24026         * modules/xstrtol-tests (Makefile.am): Likewise.
24027         * modules/xstrtoumax-tests (Makefile.am): Likewise.
24028         * modules/yesno-tests (Makefile.am): Likewise.
24029         Suggested by Jim Meyering.
24030
24031 2010-01-24  Bruno Haible  <bruno@clisp.org>
24032
24033         More documentation.
24034         * doc/gnulib.texi (Writing modules): New chapter.
24035         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
24036         the new chapter.
24037
24038 2010-01-24  Jim Meyering  <meyering@redhat.com>
24039
24040         maint.mk: do not prepend "./" after filtering
24041         * top/maint.mk (_prepend_srcdir_prefix): New variable
24042         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
24043         "./" when $(srcdir) is ".".
24044
24045         define STREQ(a,b) consistently, removing useless parentheses
24046         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
24047         since the only risk is that "a" or "b" contains an unparenthesized
24048         comma, but if either did that, STREQ would have 3 or more arguments.
24049         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
24050         * lib/fts.c (STREQ): Remove unnecessary parentheses.
24051         * lib/hash-triple.c (STREQ): Likewise.
24052         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
24053         * lib/getugroups.c (STREQ): Likewise.
24054
24055 2010-01-23  Jim Meyering  <meyering@redhat.com>
24056
24057         maint.mk: fix syntax-check in a non-srcdir build directory
24058         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
24059         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
24060
24061 2010-01-22  Jim Meyering  <meyering@redhat.com>
24062
24063         userspec: add unit tests
24064         * tests/test-userspec.c: New file.
24065         * modules/userspec-tests: Likewise.
24066
24067 2010-01-21  Jim Meyering  <meyering@redhat.com>
24068
24069         maint.mk: handle source file names containing "." robustly
24070         * top/maint.mk (_dot_escaped_srcdir): Define.
24071         (VC_LIST): Use it in LHS of sed substitution.
24072
24073 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
24074
24075         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
24076         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
24077         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
24078         from a non-srcdir build.
24079
24080 2010-01-20  Eric Blake  <ebb9@byu.net>
24081
24082         warn-on-use: use instead of link-warning
24083         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
24084         * modules/unistd (Depends-on, Makefile.am): Likewise.
24085         * modules/arpa_inet (Depends-on): Replace link-warning with
24086         warn-on-use.
24087         (Makefile.am): Update rules accordingly.
24088         * modules/ctype (Depends-on, Makefile.am): Likewise.
24089         * modules/dirent (Depends-on, Makefile.am): Likewise.
24090         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
24091         * modules/inttypes (Depends-on, Makefile.am): Likewise.
24092         * modules/langinfo (Depends-on, Makefile.am): Likewise.
24093         * modules/locale (Depends-on, Makefile.am): Likewise.
24094         * modules/math (Depends-on, Makefile.am): Likewise.
24095         * modules/search (Depends-on, Makefile.am): Likewise.
24096         * modules/signal (Depends-on, Makefile.am): Likewise.
24097         * modules/spawn (Depends-on, Makefile.am): Likewise.
24098         * modules/stdlib (Depends-on, Makefile.am): Likewise.
24099         * modules/string (Depends-on, Makefile.am): Likewise.
24100         * modules/strings (Depends-on, Makefile.am): Likewise.
24101         * modules/sys_file (Depends-on, Makefile.am): Likewise.
24102         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
24103         * modules/sys_select (Depends-on, Makefile.am): Likewise.
24104         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
24105         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
24106         * modules/sys_times (Depends-on, Makefile.am): Likewise.
24107         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
24108         * modules/wchar (Depends-on, Makefile.am): Likewise.
24109         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
24110         should be poisoned.
24111         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
24112         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
24113         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
24114         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
24115         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
24116         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
24117         * m4/math_h.m4 (gl_MATH_H): Likewise.
24118         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
24119         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
24120         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
24121         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
24122         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
24123         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
24124         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
24125         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
24126         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
24127         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24128         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
24129         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
24130         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
24131         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
24132         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
24133         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
24134         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
24135         GL_LINK_WARNING.
24136         * lib/ctype.in.h: Likewise.
24137         * lib/dirent.in.h: Likewise.
24138         * lib/fcntl.in.h: Likewise.
24139         * lib/inttypes.in.h: Likewise.
24140         * lib/langinfo.in.h: Likewise.
24141         * lib/locale.in.h: Likewise.
24142         * lib/math.in.h: Likewise.
24143         * lib/search.in.h: Likewise.
24144         * lib/signal.in.h: Likewise.
24145         * lib/spawn.in.h: Likewise.
24146         * lib/stdio.in.h: Likewise.
24147         * lib/stdlib.in.h: Likewise.
24148         * lib/string.in.h: Likewise.
24149         * lib/strings.in.h: Likewise.
24150         * lib/sys_file.in.h: Likewise.
24151         * lib/sys_ioctl.in.h: Likewise.
24152         * lib/sys_select.in.h: Likewise.
24153         * lib/sys_socket.in.h: Likewise.
24154         * lib/sys_stat.in.h: Likewise.
24155         * lib/sys_times.in.h: Likewise.
24156         * lib/sys_utsname.in.h: Likewise.
24157         * lib/unistd.in.h: Likewise.
24158         * lib/wchar.in.h: Likewise.
24159
24160 2010-01-20  Bruno Haible  <bruno@clisp.org>
24161
24162         Avoid duplicate -lm.
24163         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
24164         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
24165         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
24166         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
24167         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
24168         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
24169         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
24170         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
24171         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
24172         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
24173         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
24174         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
24175         Reported by Paolo Bonzini.
24176
24177 2010-01-19  Bruno Haible  <bruno@clisp.org>
24178
24179         langinfo, nl_langinfo: Relicense under LGPLv2+.
24180         * modules/langinfo (License): Change to LGPLv2+.
24181         * modules/nl_langinfo (License): Likewise.
24182         Patch by David Lutterkort <lutter@redhat.com>.
24183
24184 2010-01-19  Bruno Haible  <bruno@clisp.org>
24185
24186         Avoid compilation error with cc on OSF/1 5.1.
24187         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
24188         statement, not before.
24189         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24190
24191 2010-01-18  Bruno Haible  <bruno@clisp.org>
24192
24193         Avoid a link error due to the __printf__ symbol.
24194         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
24195         and 2.6.x.
24196         (__format__, __printf__): Remove definitions.
24197         * lib/argp-fmtstream.h: Likewise.
24198         * lib/argp.h: Likewise.
24199         * lib/error.h: Likewise.
24200         * lib/vasnprintf.h: Likewise.
24201         * lib/xprintf.h: Likewise.
24202         * lib/xvasprintf.h: Likewise.
24203         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24204
24205 2010-01-18  Bruno Haible  <bruno@clisp.org>
24206
24207         Tests for module 'tanl'.
24208         * modules/tanl-tests: New file.
24209         * tests/test-tanl.c: New file.
24210
24211         Tests for module 'sqrtl'.
24212         * modules/sqrtl-tests: New file.
24213         * tests/test-sqrtl.c: New file.
24214
24215         Tests for module 'sinl'.
24216         * modules/sinl-tests: New file.
24217         * tests/test-sinl.c: New file.
24218
24219         Tests for module 'logl'.
24220         * modules/logl-tests: New file.
24221         * tests/test-logl.c: New file.
24222
24223         Tests for module 'expl'.
24224         * modules/expl-tests: New file.
24225         * tests/test-expl.c: New file.
24226
24227         Tests for module 'cosl'.
24228         * modules/cosl-tests: New file.
24229         * tests/test-cosl.c: New file.
24230
24231         Tests for module 'atanl'.
24232         * modules/atanl-tests: New file.
24233         * tests/test-atanl.c: New file.
24234
24235         Tests for module 'asinl'.
24236         * modules/asinl-tests: New file.
24237         * tests/test-asinl.c: New file.
24238
24239         Tests for module 'acosl'.
24240         * modules/acosl-tests: New file.
24241         * tests/test-acosl.c: New file.
24242
24243         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
24244         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
24245         tanl): Use the standard gnulib idiom.
24246         * lib/cosl.c: Don't include trigl.c and sincosl.c.
24247         * lib/sinl.c: Likewise.
24248         * lib/tanl.c: Don't include trigl.c.
24249         (kernel_tanl): Make static.
24250         * lib/sincosl.c: Include trigl.h first.
24251         * lib/trigl.c: Likewise.
24252         * m4/acosl.m4: New file.
24253         * m4/asinl.m4: New file.
24254         * m4/atanl.m4: New file.
24255         * m4/cosl.m4: New file.
24256         * m4/expl.m4: New file.
24257         * m4/logl.m4: New file.
24258         * m4/sinl.m4: New file.
24259         * m4/sqrtl.m4: New file.
24260         * m4/tanl.m4: New file.
24261         * m4/mathl.m4: Remove file.
24262         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
24263         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
24264         Don't initialize GNULIB_MATHL.
24265         * modules/acosl: New file.
24266         * modules/asinl: New file.
24267         * modules/atanl: New file.
24268         * modules/cosl: New file.
24269         * modules/expl: New file.
24270         * modules/logl: New file.
24271         * modules/sinl: New file.
24272         * modules/sqrtl: New file.
24273         * modules/tanl: New file.
24274         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
24275         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
24276         substitute GNULIB_MATHL.
24277         * modules/mathl: Rewritten.
24278         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
24279         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
24280         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
24281         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
24282         * doc/posix-functions/expl.texi: Mention the 'expl' module.
24283         * doc/posix-functions/logl.texi: Mention the 'logl' module.
24284         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
24285         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
24286         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
24287
24288 2010-01-18  Bruno Haible  <bruno@clisp.org>
24289
24290         sqrt: Make gl_FUNC_SQRT requirable.
24291         * m4/sqrt.m4: New file.
24292         * modules/sqrt (Files): Add it.
24293         (configure.ac): Invoke gl_FUNC_SQRT.
24294
24295 2010-01-18  Bruno Haible  <bruno@clisp.org>
24296
24297         New modules for common <math.h> functions.
24298         * m4/mathfunc.m4: New file.
24299         * modules/acos: New file.
24300         * modules/asin: New file.
24301         * modules/atan: New file.
24302         * modules/atan2: New file.
24303         * modules/cbrt: New file.
24304         * modules/copysign: New file.
24305         * modules/cos: New file.
24306         * modules/cosh: New file.
24307         * modules/erf: New file.
24308         * modules/erfc: New file.
24309         * modules/exp: New file.
24310         * modules/fabs: New file.
24311         * modules/fmod: New file.
24312         * modules/hypot: New file.
24313         * modules/j0: New file.
24314         * modules/j1: New file.
24315         * modules/jn: New file.
24316         * modules/ldexp: New file.
24317         * modules/lgamma: New file.
24318         * modules/log: New file.
24319         * modules/log10: New file.
24320         * modules/log1p: New file.
24321         * modules/logb: New file.
24322         * modules/modf: New file.
24323         * modules/nextafter: New file.
24324         * modules/pow: New file.
24325         * modules/remainder: New file.
24326         * modules/rint: New file.
24327         * modules/sin: New file.
24328         * modules/sinh: New file.
24329         * modules/sqrt: New file.
24330         * modules/tan: New file.
24331         * modules/tanh: New file.
24332         * modules/y0: New file.
24333         * modules/y1: New file.
24334         * modules/yn: New file.
24335         * doc/posix-functions/acos.texi: Mention the 'acos' module.
24336         * doc/posix-functions/asin.texi: Mention the 'asin' module.
24337         * doc/posix-functions/atan.texi: Mention the 'atan' module.
24338         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
24339         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
24340         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
24341         * doc/posix-functions/cos.texi: Mention the 'cos' module.
24342         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
24343         * doc/posix-functions/erf.texi: Mention the 'erf' module.
24344         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
24345         * doc/posix-functions/exp.texi: Mention the 'exp' module.
24346         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
24347         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
24348         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
24349         * doc/posix-functions/j0.texi: Mention the 'j0' module.
24350         * doc/posix-functions/j1.texi: Mention the 'j1' module.
24351         * doc/posix-functions/jn.texi: Mention the 'jn' module.
24352         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
24353         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
24354         * doc/posix-functions/log.texi: Mention the 'log' module.
24355         * doc/posix-functions/log10.texi: Mention the 'log10' module.
24356         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
24357         * doc/posix-functions/logb.texi: Mention the 'logb' module.
24358         * doc/posix-functions/modf.texi: Mention the 'modf' module.
24359         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
24360         * doc/posix-functions/pow.texi: Mention the 'pow' module.
24361         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
24362         * doc/posix-functions/rint.texi: Mention the 'rint' module.
24363         * doc/posix-functions/sin.texi: Mention the 'sin' module.
24364         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
24365         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
24366         * doc/posix-functions/tan.texi: Mention the 'tan' module.
24367         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
24368         * doc/posix-functions/y0.texi: Mention the 'y0' module.
24369         * doc/posix-functions/y1.texi: Mention the 'y1' module.
24370         * doc/posix-functions/yn.texi: Mention the 'yn' module.
24371
24372 2010-01-18  Jim Meyering  <meyering@redhat.com>
24373
24374         ignore-value: relax license to LGPLv2+
24375         * modules/ignore-value (License): Relax to LGPLv2+.
24376
24377         getdate: don't leak when TZ contains two or more '"'s
24378         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
24379         double quote in TZ after the first one.
24380
24381         readtokens: do not leak internal token_lengths buffer
24382         * lib/readtokens.c (readtokens): Free the local, lengths,
24383         when the supplied "token_lengths" parameter is NULL.
24384
24385 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24386
24387         Fix a couple of missing LIBTHREAD link failures on AIX.
24388         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
24389         $(LIBTHREAD).
24390         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
24391
24392         Link test-poll against INET_PTON_LIB.
24393         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
24394         for inet_pton on Solaris 10.
24395
24396 2010-01-17  Bruno Haible  <bruno@clisp.org>
24397
24398         unistdio/*-sprintf: Fix typo in module description.
24399         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
24400         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
24401         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
24402         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
24403         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
24404         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
24405         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
24406         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24407
24408 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24409
24410         gnulib-tool: fix filelist for AIX, HP-UX ksh.
24411         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
24412         variables in shell case patterns, for AIX and HP-UX ksh.
24413
24414         Split large sed scripts, for HP-UX sed.
24415         * modules/stdio: Split sed scripts around 50 sed commands,
24416         to avoid HP-UX limit of 99 commands, in the near future.
24417         * modules/string: Likewise.
24418         * modules/unistd: Likewise.
24419
24420         gnulib-tool: avoid writing in the current directory.
24421         * gnulib-tool (func_emit_lib_Makefile_am)
24422         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
24423         not in the current directory, so concurrent gnulib-tool
24424         instances do not interfere.
24425
24426 2010-01-16  Jim Meyering  <meyering@redhat.com>
24427
24428         doc: update users.txt
24429         * users.txt: Add grep.
24430         (diffutils, gzip): Update URLs.
24431
24432 2010-01-12  Bruno Haible  <bruno@clisp.org>
24433
24434         posix_spawn: Avoid test failure on Cygwin.
24435         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
24436         characters.
24437         Reported by Simon Josefsson.
24438
24439 2010-01-12  Bruno Haible  <bruno@clisp.org>
24440
24441         * tests/test-cond.c (main): When skipping the test, show the reason.
24442
24443 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24444
24445         * lib/striconv.c (str_cd_iconv): Avoid if before free.
24446
24447 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24448
24449         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
24450         VC_LIST_ALWAYS_EXCLUDE_REGEX.
24451
24452 2010-01-12  Eric Blake  <ebb9@byu.net>
24453
24454         build: guarantee AS_VAR_IF
24455         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
24456         (gl_AS_VAR_IF): Move...
24457         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
24458         Reported by Simon Josefsson.
24459
24460 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24461
24462         * lib/stdio.in.h: Fix typo.
24463
24464 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24465
24466         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
24467         libgpg-error.
24468
24469 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24470
24471         * tests/test-xalloc-die.sh: Use $EXEEXT.
24472
24473 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24474             Bruno Haible  <bruno@clisp.org>
24475
24476         getlogin, getlogin_r: Avoid test failure.
24477         * tests/test-getlogin.c: Include <stdio.h>.
24478         (main): Skip the test when the function fails because stdin is not a
24479         tty.
24480         * tests/test-getlogin_r.c: Include <stdio.h>.
24481         (main): Skip the test when the function fails because stdin is not a
24482         tty.
24483
24484 2010-01-11  Eric Blake  <ebb9@byu.net>
24485
24486         tests: avoid more large file warnings
24487         * tests/test-fflush.c: Avoid warning about ftell use.
24488         * tests/test-fseek.c: Avoid warning about fseek use.
24489
24490 2010-01-10  Bruno Haible  <bruno@clisp.org>
24491
24492         nproc: Work better on Linux when /proc and /sys are not mounted.
24493         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
24494         as lower bound when, on glibc/Linux systems,
24495         sysconf (_SC_NPROCESSORS_CONF) returns 1.
24496         Suggested by Pádraig Brady <P@draigbrady.com>.
24497         Reported by Dmitry V. Levin <ldv@altlinux.org>.
24498
24499         nproc: Refactor.
24500         * lib/nproc.c (num_processors_via_affinity_mask): New function,
24501         extracted from num_processors.
24502         (num_processors): Call it.
24503
24504 2010-01-11  Jim Meyering  <meyering@redhat.com>
24505
24506         utimecmp: avoid new warning from upcoming gcc-4.5.0
24507         * lib/utimecmp.c (BILLION): Define using #define rather than an
24508         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
24509
24510 2010-01-11  Eric Blake  <ebb9@byu.net>
24511
24512         math: add portability warnings for classification macros
24513         * modules/math (Depends-on): Add warn-on-use.
24514         (Makefile.am): Provide new substitutions.
24515         * m4/math_h.m4 (gl_MATH_H): Require inline.
24516         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
24517         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
24518         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
24519         implement warnings.
24520
24521         unistd: warn on use of environ without module
24522         * modules/unistd (Depends-on): Add warn-on-use.
24523         (Makefile.am): Provide new substitutions.
24524         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
24525         * lib/unistd.in.h (environ): Wrap with a warning helper function.
24526
24527         stdio: warn on suspicious uses
24528         * modules/stdio (Depends-on): Add warn-on-use.
24529         (Makefile.am): Provide new substitutions.
24530         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
24531         fseeko.
24532         * lib/stdio.in.h (gets): Always warn on use.
24533         (fseek, ftell): Adjust when warnings are issued, and honor
24534         _GL_NO_LARGE_FILES as a way to silence the warning.
24535         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
24536         any warning about large file offsets.
24537         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
24538         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
24539         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
24540         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
24541         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
24542         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
24543         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
24544         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
24545
24546         warn-on-use: new module
24547         * modules/warn-on-use: New file.
24548         * build-aux/warn-on-use.h: Likewise.
24549         * m4/warn-on-use.m4: Likewise.
24550         * MODULES.html.sh (Support for building): Mention it.
24551
24552 2010-01-10  Bruno Haible  <bruno@clisp.org>
24553
24554         Tests for module 'unistr/u32-strdup'.
24555         * modules/unistr/u32-strdup-tests: New file.
24556         * tests/unistr/test-u32-strdup.c: New file.
24557
24558         Tests for module 'unistr/u16-strdup'.
24559         * modules/unistr/u16-strdup-tests: New file.
24560         * tests/unistr/test-u16-strdup.c: New file.
24561
24562         Tests for module 'unistr/u8-strdup'.
24563         * modules/unistr/u8-strdup-tests: New file.
24564         * tests/unistr/test-u8-strdup.c: New file.
24565         * tests/unistr/test-strdup.h: New file.
24566
24567         Tests for module 'unistr/u32-strncmp'.
24568         * modules/unistr/u32-strncmp-tests: New file.
24569         * tests/unistr/test-u32-strncmp.c: New file.
24570
24571         Tests for module 'unistr/u16-strncmp'.
24572         * modules/unistr/u16-strncmp-tests: New file.
24573         * tests/unistr/test-u16-strncmp.c: New file.
24574
24575         Tests for module 'unistr/u8-strncmp'.
24576         * modules/unistr/u8-strncmp-tests: New file.
24577         * tests/unistr/test-u8-strncmp.c: New file.
24578         * tests/unistr/test-strncmp.h: New file.
24579
24580         Tests for module 'unistr/u32-strcoll'.
24581         * modules/unistr/u32-strcoll-tests: New file.
24582         * tests/unistr/test-u32-strcoll.c: New file.
24583
24584         Tests for module 'unistr/u16-strcoll'.
24585         * modules/unistr/u16-strcoll-tests: New file.
24586         * tests/unistr/test-u16-strcoll.c: New file.
24587
24588         Tests for module 'unistr/u8-strcoll'.
24589         * modules/unistr/u8-strcoll-tests: New file.
24590         * tests/unistr/test-u8-strcoll.c: New file.
24591
24592         Tests for module 'unistr/u32-strcmp'.
24593         * modules/unistr/u32-strcmp-tests: New file.
24594         * tests/unistr/test-u32-strcmp.c: New file.
24595         * tests/unistr/test-u32-strcmp.h: New file.
24596
24597         Tests for module 'unistr/u16-strcmp'.
24598         * modules/unistr/u16-strcmp-tests: New file.
24599         * tests/unistr/test-u16-strcmp.c: New file.
24600         * tests/unistr/test-u16-strcmp.h: New file.
24601
24602         Tests for module 'unistr/u8-strcmp'.
24603         * modules/unistr/u8-strcmp-tests: New file.
24604         * tests/unistr/test-u8-strcmp.c: New file.
24605         * tests/unistr/test-u8-strcmp.h: New file.
24606         * tests/unistr/test-strcmp.h: New file.
24607
24608         Tests for module 'unistr/u32-strncat'.
24609         * modules/unistr/u32-strncat-tests: New file.
24610         * tests/unistr/test-u32-strncat.c: New file.
24611
24612         Tests for module 'unistr/u16-strncat'.
24613         * modules/unistr/u16-strncat-tests: New file.
24614         * tests/unistr/test-u16-strncat.c: New file.
24615
24616         Tests for module 'unistr/u8-strncat'.
24617         * modules/unistr/u8-strncat-tests: New file.
24618         * tests/unistr/test-u8-strncat.c: New file.
24619         * tests/unistr/test-strncat.h: New file.
24620
24621         Tests for module 'unistr/u32-strcat'.
24622         * modules/unistr/u32-strcat-tests: New file.
24623         * tests/unistr/test-u32-strcat.c: New file.
24624
24625         Tests for module 'unistr/u16-strcat'.
24626         * modules/unistr/u16-strcat-tests: New file.
24627         * tests/unistr/test-u16-strcat.c: New file.
24628
24629         Tests for module 'unistr/u8-strcat'.
24630         * modules/unistr/u8-strcat-tests: New file.
24631         * tests/unistr/test-u8-strcat.c: New file.
24632         * tests/unistr/test-strcat.h: New file.
24633
24634         Tests for module 'unistr/u32-stpncpy'.
24635         * modules/unistr/u32-stpncpy-tests: New file.
24636         * tests/unistr/test-u32-stpncpy.c: New file.
24637
24638         Tests for module 'unistr/u16-stpncpy'.
24639         * modules/unistr/u16-stpncpy-tests: New file.
24640         * tests/unistr/test-u16-stpncpy.c: New file.
24641
24642         Tests for module 'unistr/u8-stpncpy'.
24643         * modules/unistr/u8-stpncpy-tests: New file.
24644         * tests/unistr/test-u8-stpncpy.c: New file.
24645         * tests/unistr/test-stpncpy.h: New file.
24646
24647         Tests for module 'unistr/u32-strncpy'.
24648         * modules/unistr/u32-strncpy-tests: New file.
24649         * tests/unistr/test-u32-strncpy.c: New file.
24650
24651         Tests for module 'unistr/u16-strncpy'.
24652         * modules/unistr/u16-strncpy-tests: New file.
24653         * tests/unistr/test-u16-strncpy.c: New file.
24654
24655         Tests for module 'unistr/u8-strncpy'.
24656         * modules/unistr/u8-strncpy-tests: New file.
24657         * tests/unistr/test-u8-strncpy.c: New file.
24658         * tests/unistr/test-strncpy.h: New file.
24659
24660         Tests for module 'unistr/u32-stpcpy'.
24661         * modules/unistr/u32-stpcpy-tests: New file.
24662         * tests/unistr/test-u32-stpcpy.c: New file.
24663
24664         Tests for module 'unistr/u16-stpcpy'.
24665         * modules/unistr/u16-stpcpy-tests: New file.
24666         * tests/unistr/test-u16-stpcpy.c: New file.
24667
24668         Tests for module 'unistr/u8-stpcpy'.
24669         * modules/unistr/u8-stpcpy-tests: New file.
24670         * tests/unistr/test-u8-stpcpy.c: New file.
24671         * tests/unistr/test-stpcpy.h: New file.
24672
24673         Tests for module 'unistr/u32-strcpy'.
24674         * modules/unistr/u32-strcpy-tests: New file.
24675         * tests/unistr/test-u32-strcpy.c: New file.
24676
24677         Tests for module 'unistr/u16-strcpy'.
24678         * modules/unistr/u16-strcpy-tests: New file.
24679         * tests/unistr/test-u16-strcpy.c: New file.
24680
24681         Tests for module 'unistr/u8-strcpy'.
24682         * modules/unistr/u8-strcpy-tests: New file.
24683         * tests/unistr/test-u8-strcpy.c: New file.
24684         * tests/unistr/test-strcpy.h: New file.
24685
24686         Tests for module 'unistr/u32-strnlen'.
24687         * modules/unistr/u32-strnlen-tests: New file.
24688         * tests/unistr/test-u32-strnlen.c: New file.
24689
24690         Tests for module 'unistr/u16-strnlen'.
24691         * modules/unistr/u16-strnlen-tests: New file.
24692         * tests/unistr/test-u16-strnlen.c: New file.
24693
24694         Tests for module 'unistr/u8-strnlen'.
24695         * modules/unistr/u8-strnlen-tests: New file.
24696         * tests/unistr/test-u8-strnlen.c: New file.
24697         * tests/unistr/test-strnlen.h: New file.
24698
24699         Tests for module 'unistr/u32-strlen'.
24700         * modules/unistr/u32-strlen-tests: New file.
24701         * tests/unistr/test-u32-strlen.c: New file.
24702
24703         Tests for module 'unistr/u16-strlen'.
24704         * modules/unistr/u16-strlen-tests: New file.
24705         * tests/unistr/test-u16-strlen.c: New file.
24706
24707         Tests for module 'unistr/u8-strlen'.
24708         * modules/unistr/u8-strlen-tests: New file.
24709         * tests/unistr/test-u8-strlen.c: New file.
24710
24711         Tests for module 'unistr/u32-prev'.
24712         * modules/unistr/u32-prev-tests: New file.
24713         * tests/unistr/test-u32-prev.c: New file.
24714
24715         Tests for module 'unistr/u16-prev'.
24716         * modules/unistr/u16-prev-tests: New file.
24717         * tests/unistr/test-u16-prev.c: New file.
24718
24719         Tests for module 'unistr/u8-prev'.
24720         * modules/unistr/u8-prev-tests: New file.
24721         * tests/unistr/test-u8-prev.c: New file.
24722
24723         Tests for module 'unistr/u32-next'.
24724         * modules/unistr/u32-next-tests: New file.
24725         * tests/unistr/test-u32-next.c: New file.
24726
24727         Tests for module 'unistr/u16-next'.
24728         * modules/unistr/u16-next-tests: New file.
24729         * tests/unistr/test-u16-next.c: New file.
24730
24731         Tests for module 'unistr/u8-next'.
24732         * modules/unistr/u8-next-tests: New file.
24733         * tests/unistr/test-u8-next.c: New file.
24734
24735         Tests for module 'unistr/u32-strmbtouc'.
24736         * modules/unistr/u32-strmbtouc-tests: New file.
24737         * tests/unistr/test-u32-strmbtouc.c: New file.
24738
24739         Tests for module 'unistr/u16-strmbtouc'.
24740         * modules/unistr/u16-strmbtouc-tests: New file.
24741         * tests/unistr/test-u16-strmbtouc.c: New file.
24742
24743         Tests for module 'unistr/u8-strmbtouc'.
24744         * modules/unistr/u8-strmbtouc-tests: New file.
24745         * tests/unistr/test-u8-strmbtouc.c: New file.
24746
24747         Tests for module 'unistr/u32-strmblen'.
24748         * modules/unistr/u32-strmblen-tests: New file.
24749         * tests/unistr/test-u32-strmblen.c: New file.
24750
24751         Tests for module 'unistr/u16-strmblen'.
24752         * modules/unistr/u16-strmblen-tests: New file.
24753         * tests/unistr/test-u16-strmblen.c: New file.
24754
24755         Tests for module 'unistr/u8-strmblen'.
24756         * modules/unistr/u8-strmblen-tests: New file.
24757         * tests/unistr/test-u8-strmblen.c: New file.
24758
24759         Tests for module 'unistr/u32-cpy-alloc'.
24760         * modules/unistr/u32-cpy-alloc-tests: New file.
24761         * tests/unistr/test-u32-cpy-alloc.c: New file.
24762
24763         Tests for module 'unistr/u16-cpy-alloc'.
24764         * modules/unistr/u16-cpy-alloc-tests: New file.
24765         * tests/unistr/test-u16-cpy-alloc.c: New file.
24766
24767         Tests for module 'unistr/u8-cpy-alloc'.
24768         * modules/unistr/u8-cpy-alloc-tests: New file.
24769         * tests/unistr/test-u8-cpy-alloc.c: New file.
24770         * tests/unistr/test-cpy-alloc.h: New file.
24771
24772         Tests for module 'unistr/u32-mbsnlen'.
24773         * modules/unistr/u32-mbsnlen-tests: New file.
24774         * tests/unistr/test-u32-mbsnlen.c: New file.
24775
24776         Tests for module 'unistr/u16-mbsnlen'.
24777         * modules/unistr/u16-mbsnlen-tests: New file.
24778         * tests/unistr/test-u16-mbsnlen.c: New file.
24779
24780         Tests for module 'unistr/u8-mbsnlen'.
24781         * modules/unistr/u8-mbsnlen-tests: New file.
24782         * tests/unistr/test-u8-mbsnlen.c: New file.
24783
24784         Tests for module 'unistr/u32-chr'.
24785         * modules/unistr/u32-chr-tests: New file.
24786         * tests/unistr/test-u32-chr.c: New file.
24787
24788         Tests for module 'unistr/u16-chr'.
24789         * modules/unistr/u16-chr-tests: New file.
24790         * tests/unistr/test-u16-chr.c: New file.
24791
24792         Tests for module 'unistr/u8-chr'.
24793         * modules/unistr/u8-chr-tests: New file.
24794         * tests/unistr/test-u8-chr.c: New file.
24795         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
24796
24797         Tests for module 'unistr/u32-cmp2'.
24798         * modules/unistr/u32-cmp2-tests: New file.
24799         * tests/unistr/test-u32-cmp2.c: New file.
24800
24801         Tests for module 'unistr/u16-cmp2'.
24802         * modules/unistr/u16-cmp2-tests: New file.
24803         * tests/unistr/test-u16-cmp2.c: New file.
24804
24805         Tests for module 'unistr/u8-cmp2'.
24806         * modules/unistr/u8-cmp2-tests: New file.
24807         * tests/unistr/test-u8-cmp2.c: New file.
24808         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
24809
24810         Tests for module 'unistr/u32-cmp'.
24811         * modules/unistr/u32-cmp-tests: New file.
24812         * tests/unistr/test-u32-cmp.c: New file.
24813
24814         Tests for module 'unistr/u16-cmp'.
24815         * modules/unistr/u16-cmp-tests: New file.
24816         * tests/unistr/test-u16-cmp.c: New file.
24817
24818         Tests for module 'unistr/u8-cmp'.
24819         * modules/unistr/u8-cmp-tests: New file.
24820         * tests/unistr/test-u8-cmp.c: New file.
24821         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
24822
24823         Tests for module 'unistr/u32-set'.
24824         * modules/unistr/u32-set-tests: New file.
24825         * tests/unistr/test-u32-set.c: New file.
24826
24827         Tests for module 'unistr/u16-set'.
24828         * modules/unistr/u16-set-tests: New file.
24829         * tests/unistr/test-u16-set.c: New file.
24830
24831         Tests for module 'unistr/u8-set'.
24832         * modules/unistr/u8-set-tests: New file.
24833         * tests/unistr/test-u8-set.c: New file.
24834         * tests/unistr/test-set.h: New file.
24835
24836         Tests for module 'unistr/u32-move'.
24837         * modules/unistr/u32-move-tests: New file.
24838         * tests/unistr/test-u32-move.c: New file.
24839
24840         Tests for module 'unistr/u16-move'.
24841         * modules/unistr/u16-move-tests: New file.
24842         * tests/unistr/test-u16-move.c: New file.
24843
24844         Tests for module 'unistr/u8-move'.
24845         * modules/unistr/u8-move-tests: New file.
24846         * tests/unistr/test-u8-move.c: New file.
24847         * tests/unistr/test-move.h: New file.
24848
24849         Tests for module 'unistr/u32-cpy'.
24850         * modules/unistr/u32-cpy-tests: New file.
24851         * tests/unistr/test-u32-cpy.c: New file.
24852
24853         Tests for module 'unistr/u16-cpy'.
24854         * modules/unistr/u16-cpy-tests: New file.
24855         * tests/unistr/test-u16-cpy.c: New file.
24856
24857         Tests for module 'unistr/u8-cpy'.
24858         * modules/unistr/u8-cpy-tests: New file.
24859         * tests/unistr/test-u8-cpy.c: New file.
24860         * tests/unistr/test-cpy.h: New file.
24861
24862 2010-01-09  Bruno Haible  <bruno@clisp.org>
24863
24864         Tests for module 'unistr/u32-uctomb'.
24865         * modules/unistr/u32-uctomb-tests: New file.
24866         * tests/unistr/test-u32-uctomb.c: New file.
24867
24868         Tests for module 'unistr/u16-uctomb'.
24869         * modules/unistr/u16-uctomb-tests: New file.
24870         * tests/unistr/test-u16-uctomb.c: New file.
24871
24872         Tests for module 'unistr/u8-uctomb'.
24873         * modules/unistr/u8-uctomb-tests: New file.
24874         * tests/unistr/test-u8-uctomb.c: New file.
24875
24876         Tests for module 'unistr/u32-mbtoucr'.
24877         * modules/unistr/u32-mbtoucr-tests: New file.
24878         * tests/unistr/test-u32-mbtoucr.c: New file.
24879
24880         Tests for module 'unistr/u16-mbtoucr'.
24881         * modules/unistr/u16-mbtoucr-tests: New file.
24882         * tests/unistr/test-u16-mbtoucr.c: New file.
24883
24884         Tests for module 'unistr/u8-mbtoucr'.
24885         * modules/unistr/u8-mbtoucr-tests: New file.
24886         * tests/unistr/test-u8-mbtoucr.c: New file.
24887
24888         Tests for module 'unistr/u32-mbtouc'.
24889         * modules/unistr/u32-mbtouc-tests: New file.
24890         * tests/unistr/test-u32-mbtouc.c: New file.
24891
24892         Tests for module 'unistr/u16-mbtouc'.
24893         * modules/unistr/u16-mbtouc-tests: New file.
24894         * tests/unistr/test-u16-mbtouc.c: New file.
24895
24896         Tests for module 'unistr/u8-mbtouc'.
24897         * modules/unistr/u8-mbtouc-tests: New file.
24898         * tests/unistr/test-u8-mbtouc.c: New file.
24899
24900         Tests for module 'unistr/u32-mbtouc-unsafe'.
24901         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
24902         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
24903         * tests/unistr/test-u32-mbtouc.h: New file.
24904
24905         Tests for module 'unistr/u16-mbtouc-unsafe'.
24906         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
24907         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
24908         * tests/unistr/test-u16-mbtouc.h: New file.
24909
24910         Tests for module 'unistr/u8-mbtouc-unsafe'.
24911         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
24912         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
24913         * tests/unistr/test-u8-mbtouc.h: New file.
24914
24915         Tests for module 'unistr/u32-mblen'.
24916         * modules/unistr/u32-mblen-tests: New file.
24917         * tests/unistr/test-u32-mblen.c: New file.
24918
24919         Tests for module 'unistr/u16-mblen'.
24920         * modules/unistr/u16-mblen-tests: New file.
24921         * tests/unistr/test-u16-mblen.c: New file.
24922
24923         Tests for module 'unistr/u8-mblen'.
24924         * modules/unistr/u8-mblen-tests: New file.
24925         * tests/unistr/test-u8-mblen.c: New file.
24926
24927         Tests for module 'unistr/u32-to-u16'.
24928         * modules/unistr/u32-to-u16-tests: New file.
24929         * tests/unistr/test-u32-to-u16.c: New file.
24930
24931         Tests for module 'unistr/u32-to-u8'.
24932         * modules/unistr/u32-to-u8-tests: New file.
24933         * tests/unistr/test-u32-to-u8.c: New file.
24934
24935         Tests for module 'unistr/u16-to-u32'.
24936         * modules/unistr/u16-to-u32-tests: New file.
24937         * tests/unistr/test-u16-to-u32.c: New file.
24938
24939         Tests for module 'unistr/u16-to-u8'.
24940         * modules/unistr/u16-to-u8-tests: New file.
24941         * tests/unistr/test-u16-to-u8.c: New file.
24942
24943         Tests for module 'unistr/u8-to-u32'.
24944         * modules/unistr/u8-to-u32-tests: New file.
24945         * tests/unistr/test-u8-to-u32.c: New file.
24946
24947         Tests for module 'unistr/u8-to-u16'.
24948         * modules/unistr/u8-to-u16-tests: New file.
24949         * tests/unistr/test-u8-to-u16.c: New file.
24950
24951         Tests for module 'unistr/u32-check'.
24952         * modules/unistr/u32-check-tests: New file.
24953         * tests/unistr/test-u32-check.c: New file.
24954
24955         Tests for module 'unistr/u16-check'.
24956         * modules/unistr/u16-check-tests: New file.
24957         * tests/unistr/test-u16-check.c: New file.
24958
24959         Tests for module 'unistr/u8-check'.
24960         * modules/unistr/u8-check-tests: New file.
24961         * tests/unistr/test-u8-check.c: New file.
24962
24963         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
24964         (category_equals): New function.
24965         (main): Add more tests.
24966         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
24967
24968         * tests/unictype/test-bidi_byname.c (main): Add more tests.
24969
24970 2010-01-10  Bruno Haible  <bruno@clisp.org>
24971
24972         unistr/u*-strcoll: Try harder to distinguish different strings.
24973         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
24974         compare s1 and s2 to see if they are different.
24975
24976 2010-01-10  Bruno Haible  <bruno@clisp.org>
24977
24978         unistr/u*-stpncpy: Fix the return value.
24979         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
24980         description of the return value consistent with stpncpy in glibc.
24981         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
24982         written non-NUL unit.
24983
24984 2010-01-10  Bruno Haible  <bruno@clisp.org>
24985
24986         unistr/u*-next: Add missing dependencies.
24987         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
24988         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
24989         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
24990
24991 2010-01-10  Bruno Haible  <bruno@clisp.org>
24992
24993         unistr/u8-mbsnlen: Fix return value for incomplete character.
24994         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
24995         u8_mblen.
24996         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
24997         Remove unistr/u8-mblen.
24998         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
24999         u16_mblen.
25000         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
25001         Remove unistr/u16-mblen.
25002
25003 2010-01-10  Bruno Haible  <bruno@clisp.org>
25004
25005         wchar: Fix compilation error when <wchar.h> is used from coreutils.
25006         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
25007         Reported by Brian Gough <bjg@gnu.org> and
25008         Chris Clayton <chris2553@googlemail.com> via
25009         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
25010
25011 2010-01-09  Bruno Haible  <bruno@clisp.org>
25012
25013         unistr/u16-to-u32: Reject invalid input.
25014         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
25015         u16_mbtouc.
25016         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
25017         Remove unistr/u16-mbtouc.
25018
25019         unistr/u16-to-u8: Reject invalid input.
25020         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
25021         u16_mbtouc.
25022         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
25023         Remove unistr/u16-mbtouc.
25024
25025         unistr/u8-to-u32: Reject invalid input.
25026         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
25027         u8_mbtouc.
25028         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
25029         Remove unistr/u8-mbtouc.
25030
25031         unistr/u8-to-u16: Reject invalid input.
25032         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
25033         u8_mbtouc.
25034         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
25035         Remove unistr/u8-mbtouc.
25036
25037 2010-01-09  Bruno Haible  <bruno@clisp.org>
25038
25039         Tests for module 'getlogin'.
25040         * modules/getlogin-tests: New file.
25041         * tests/test-getlogin.c: New file.
25042
25043         New module 'getlogin'.
25044         * lib/unistd.in.h (getlogin): New declaration.
25045         * lib/getlogin.c: New file.
25046         * m4/getlogin.m4: New file.
25047         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
25048         HAVE_GETLOGIN.
25049         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
25050         HAVE_GETLOGIN.
25051         * modules/getlogin: New file.
25052         * doc/posix-functions/getlogin.texi: Mention the new module.
25053         Reported by John W. Eaton <jwe@gnu.org>.
25054
25055 2010-01-09  Bruno Haible  <bruno@clisp.org>
25056
25057         getlogin_r: Support for native Windows.
25058         * lib/getlogin_r.c: Include <windows.h>
25059         (getlogin_r): Implement for native Windows.
25060         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
25061         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
25062         via John W. Eaton <jwe@gnu.org>.
25063
25064 2010-01-09  Bruno Haible  <bruno@clisp.org>
25065
25066         getlogin_r: Small fixes.
25067         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
25068         succeeds.
25069         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
25070         before testing whether getlogin_r is declared. No need to set
25071         HAVE_DECL_GETLOGIN_R to 1.
25072         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
25073
25074 2010-01-09  Bruno Haible  <bruno@clisp.org>
25075
25076         * lib/unistd.in.h (getlogin_r): Add comment.
25077
25078 2010-01-09  Bruno Haible  <bruno@clisp.org>
25079
25080         Tests for module 'getlogin_r'.
25081         * modules/getlogin_r-tests: New file.
25082         * tests/test-getlogin_r.c: New file.
25083
25084 2010-01-09  Jim Meyering  <meyering@redhat.com>
25085
25086         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
25087         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
25088         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
25089
25090 2010-01-08  Simon Josefsson  <simon@josefsson.org>
25091
25092         * lib/dup2.c (rpl_dup2): Improve comment.
25093
25094 2010-01-08  Eric Blake  <ebb9@byu.net>
25095
25096         maint.mk: allow packages to add makefile @@ exceptions
25097         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
25098         (sc_makefile_check): Rename...
25099         (sc_makefile_at_at_check): ...to this, and use hook.
25100
25101         dup2: work around mingw bug
25102         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
25103         Reported by Simon Josefsson.
25104
25105 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
25106
25107         glob: Fix C++ compilation.
25108         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
25109         C++.
25110
25111 2010-01-07  Bruno Haible  <bruno@clisp.org>
25112
25113         Fix indentation of wctype.in.h, broken since 2007-01-06.
25114         * lib/wctype.in.h: Fix indentation of preprocessor directives.
25115
25116 2010-01-07  Bruno Haible  <bruno@clisp.org>
25117
25118         mbslen: Avoid collision with system function.
25119         * lib/string.in.h [MirBSD]: Include <wchar.h>.
25120         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
25121         * m4/mbslen.m4: New file.
25122         * modules/mbslen (Files): Add it.
25123         (configure.ac): Invoke gl_MBSLEN.
25124         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
25125         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
25126         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
25127         via Ian Beckwith <ianb@erislabs.net>.
25128
25129 2010-01-07  Bruno Haible  <bruno@clisp.org>
25130
25131         dirent: Document the last fix.
25132         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
25133
25134 2010-01-07  Bruno Haible  <bruno@clisp.org>
25135
25136         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
25137         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
25138         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
25139         va_list are defined.
25140         * doc/posix-headers/stdio.texi: Document the bug of missing types.
25141         Reported by Eric Blake.
25142
25143 2010-01-07  Bruno Haible  <bruno@clisp.org>
25144
25145         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
25146         * modules/xlist (Depends-on): Add 'list',
25147         * modules/xoset (Depends-on): Add 'oset'.
25148         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25149
25150 2010-01-07  Bruno Haible  <bruno@clisp.org>
25151
25152         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
25153         * doc/posix-functions/strncasecmp.texi: Likewise.
25154
25155 2010-01-07  Bruno Haible  <bruno@clisp.org>
25156
25157         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
25158
25159 2010-01-07  John W. Eaton  <jwe@octave.org>
25160
25161         wctype: allow C++ use
25162         * lib/wctype.in.h: Add extern "C" block for C++.
25163
25164 2010-01-06  Eric Blake  <ebb9@byu.net>
25165
25166         maint.mk: detect incorrect GFDL usage
25167         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
25168
25169 2010-01-06  Jim Meyering  <meyering@redhat.com>
25170         and Eric Blake  <ebb9@byu.net>
25171
25172         maint.mk: ignore multi-line copyright in NEWS
25173         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
25174
25175 2010-01-06  Eric Blake  <ebb9@byu.net>
25176
25177         select: add missing dependency
25178         * modules/select-tests (Depends-on): Move sockets dependency...
25179         * modules/select (Depends-on): ...here.
25180         Reported by Ian Beckwith.
25181
25182         doc: regenerate INSTALL
25183         * doc/INSTALL: Reflect recent autoconf update.
25184         * doc/INSTALL.ISO: Likewise.
25185         * doc/INSTALL.UTF-8: Likewise.
25186
25187         pread: fix compilation on glibc
25188         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
25189         Reported by Ralf Wildenhues.
25190
25191         dirent: fix test failure
25192         * lib/dirent.in.h (includes): Guarantee ino_t.
25193         Reported by Ralf Wildenhues.
25194
25195 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
25196
25197         linkat, renameat: avoid bad free
25198         * lib/at-func2.c (at_func2): Fix typo.
25199         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
25200
25201 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25202
25203         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
25204         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
25205         to avoid failure of symlink test later.
25206
25207 2010-01-06  Eric Blake  <ebb9@byu.net>
25208
25209         stdio, unistd: guarantee ssize_t
25210         * lib/unistd.in.h (includes): Ensure that types required by POSIX
25211         2008 are exposed when needed.
25212         * lib/stdio.in.h (includes): Likewise.
25213         Reported by Ralf Wildenhues.
25214
25215 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
25216
25217         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
25218         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
25219         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
25220
25221 2010-01-06  Jim Meyering  <meyering@redhat.com>
25222
25223         readtokens: this module *does* require xalloc.h
25224         It uses only functions that were omitted by the old syntax-check rule.
25225         * lib/readtokens.c: Include "xalloc.h" once again.
25226         * modules/readtokens (Depends-on): Add xalloc.
25227         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
25228
25229 2010-01-05  Eric Blake  <ebb9@byu.net>
25230
25231         maint: support 'make announcement' from a VPATH build
25232         * top/maint.mk (announcement): Look for correct NEWS file.
25233
25234 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
25235
25236         utimens (fdutimens): ignore a negative FD, per contract
25237         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
25238         when we have a valid file descriptor.  Otherwise, using a brand
25239         new glibc (with just-patched futimens that now fails with EBADF)
25240         would cause this function to fail with ENOSYS.
25241         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
25242         See also http://bugzilla.redhat.com/552320.
25243
25244 2010-01-05  Eric Blake  <ebb9@byu.net>
25245
25246         strcase: document what it provides
25247         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
25248         gnulib module.
25249         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
25250         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
25251
25252 2010-01-05  Jim Meyering  <meyering@redhat.com>
25253
25254         maint: remove useless inclusions of "xalloc.h"
25255         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
25256         * lib/readtokens.c: Likewise.
25257         * lib/same.c: Likewise.
25258         * modules/getloadavg (Depends-on): Remove xalloc.
25259         * modules/readtokens: Likewise.
25260         * modules/same: Likewise.
25261
25262         maint.mk: include 4 more function names in alloca.h-checking regexp
25263         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
25264         regexp.  Before, we would give a false-positive (saying alloca.h
25265         is included unnecessarily) when the only uses involved omitted symbols.
25266
25267         xalloc.h: use consistent formatting
25268         * lib/xalloc.h: Move declarations to start in the first column.
25269
25270 2010-01-05  Eric Blake  <ebb9@byu.net>
25271
25272         mkdir: avoid xalloc
25273         * lib/mkdir.c (includes): Drop unused header.
25274         Reported by John W. Eaton.
25275
25276 2010-01-04  Jim Meyering  <meyering@redhat.com>
25277
25278         nl_langinfo: avoid configure-time syntax error
25279         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
25280         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
25281         the empty string.  Don't let that provoke a shell syntax error.
25282
25283         regcomp, regexec, fnmatch: avoid array bounds read error
25284         * lib/regcomp.c (build_equiv_class): From glibc:
25285         Use only the low 24 bits of a findidx return value as an index
25286         into the weights array.  Patch by Ulrich Drepper:
25287         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
25288         * lib/regexec.c (check_node_accept_bytes): Likewise.
25289         * lib/fnmatch_loop.c (FCT): Likewise.
25290
25291         regcomp: skip collseq lookup when there are no rules
25292         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
25293         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
25294
25295         regcomp: recognize ill-formed { } expressions
25296         * lib/regcomp.c (parse_dup_op): From glibc:
25297         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
25298
25299         regcomp: fix typo in comment
25300         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
25301         s/satisfy/satisfies/.
25302
25303         regcomp: sync from glibc: remove dead store
25304         * lib/regcomp.c (duplicate_node_closure): Remove useless
25305         search_duplicated_node call and dead store.
25306
25307         regcomp: sync from glibc; always use nl_langinfo
25308         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
25309         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
25310         * modules/regex (Depends-on): Add nl_langinfo.
25311
25312 2010-01-04  Eric Blake  <ebb9@byu.net>
25313
25314         fdopendir: fix configure test
25315         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
25316
25317 2010-01-01  Bruno Haible  <bruno@clisp.org>
25318
25319         wchar: Remove unused configure check.
25320         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
25321
25322 2010-01-01  Eric Blake  <ebb9@byu.net>
25323
25324         headers: make check of system header explicit
25325         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
25326         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
25327         ourselves.
25328         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
25329         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25330         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
25331         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
25332         internals.
25333         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
25334         missing.
25335         Suggested by Bruno Haible.
25336
25337 2010-01-01  Jim Meyering  <meyering@redhat.com>
25338
25339         ChangeLog: tweak to eliminate unnecessary copyright line
25340         * ChangeLog: Remove a copyright line that was mistakenly updated
25341         by today's update-copyright run.  Reported by Eric Blake.
25342
25343         test-update-copyright: don't let envvar setting cause test failure
25344         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
25345
25346 2010-01-01  Bruno Haible  <bruno@clisp.org>
25347
25348         localename: Avoid gcc warning.
25349         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
25350         function if it is not used.
25351
25352 2010-01-01  Jim Meyering  <meyering@redhat.com>
25353
25354         update nearly all FSF copyright year lists to include 2010
25355         Use the same procedure as for 2009, outlined in
25356         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
25357
25358         version-etc: set COPYRIGHT_YEAR to 2010
25359         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
25360
25361 2009-12-31  Eric Blake  <ebb9@byu.net>
25362
25363         doc: correct availability of cygwin 1.5.x getopt
25364         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
25365         variables.
25366         * doc/posix-functions/opterr.texi (opterr): Likewise.
25367         * doc/posix-functions/optind.texi (optind): Likewise.
25368         * doc/posix-functions/optopt.texi (optopt): Likewise.
25369         * doc/posix-functions/tzname.texi (tzname): Likewise.
25370
25371         openat: update maintainer
25372         * modules/openat (Maintainer): Add myself.
25373
25374         utimens: avoid shadowing warning
25375         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
25376         buffers into one, to avoid shadowing, as well as avoiding a
25377         redundant stat.
25378         Reported by Jim Meyering.
25379
25380         test-dup2: avoid compiler warning
25381         * tests/test-dup2.c (is_inheritable): Only define if used.
25382
25383 2010-01-01  Bruno Haible  <bruno@clisp.org>
25384
25385         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
25386         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
25387         defined, use wctomb instead of wcrtomb.
25388
25389 2010-01-01  Bruno Haible  <bruno@clisp.org>
25390
25391         iconv: Reject native Solaris iconv.
25392         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
25393         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
25394
25395 2009-12-31  Bruno Haible  <bruno@clisp.org>
25396
25397         * tests/test-signal.c (main): Remove test of 'SIG'.
25398
25399 2009-12-31  Bruno Haible  <bruno@clisp.org>
25400
25401         spawn: Fix incomplete fix.
25402         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
25403         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
25404         warnings for GNULIB_POSIXCHECK again.
25405         Reported by Eric Blake.
25406
25407 2009-12-31  Bruno Haible  <bruno@clisp.org>
25408
25409         Avoid namespace pollution on glibc systems.
25410         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
25411         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
25412         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
25413         glibc systems.
25414
25415 2009-12-31  Bruno Haible  <bruno@clisp.org>
25416
25417         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
25418         (gl_REPLACE_WCHAR_H): Turn into a no-op.
25419         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
25420         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
25421         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
25422         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
25423         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
25424
25425 2009-12-31  Bruno Haible  <bruno@clisp.org>
25426
25427         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
25428         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
25429         afterwards.
25430
25431 2009-12-31  Bruno Haible  <bruno@clisp.org>
25432
25433         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
25434         SYS_UTSNAME_H.
25435
25436 2009-12-31  Bruno Haible  <bruno@clisp.org>
25437
25438         spawn: Fix misapplied patch.
25439         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
25440         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
25441         warnings for GNULIB_POSIXCHECK.
25442
25443 2009-12-31  Bruno Haible  <bruno@clisp.org>
25444
25445         times: Update after sys_times changed.
25446         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
25447         * modules/times (Files): Add it.
25448         (configure.ac): Invoke gl_FUNC_TIMES.
25449
25450 2009-12-31  Bruno Haible  <bruno@clisp.org>
25451
25452         Use AC_C_INLINE where necessary.
25453         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
25454         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
25455         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
25456         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
25457         * m4/mbfile.m4 (gl_MBFILE): Likewise.
25458         * m4/mbiter.m4 (gl_MBITER): Likewise.
25459         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
25460         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
25461         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
25462         * modules/u64 (configure.ac): Likewise.
25463
25464 2009-12-31  Bruno Haible  <bruno@clisp.org>
25465
25466         Use AC_C_INLINE instead of module 'inline' where possible.
25467         * modules/inline (Description): Clarify purpose.
25468         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
25469         * modules/count-one-bits (Depends-on): Remove inline.
25470         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
25471         * modules/openat (Depends-on): Remove inline.
25472         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
25473         instead of depending on module 'inline'.
25474         * modules/filevercmp (Depends-on, configure.ac): Likewise.
25475         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
25476         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
25477         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
25478         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
25479         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
25480         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
25481         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
25482         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
25483         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
25484         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
25485         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
25486         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
25487         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
25488         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
25489         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
25490         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
25491         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
25492         Likewise.
25493         * modules/unictype/property-ascii-hex-digit (Depends-on,
25494         configure.ac): Likewise.
25495         * modules/unictype/property-bidi-arabic-digit (Depends-on,
25496         configure.ac): Likewise.
25497         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
25498         configure.ac): Likewise.
25499         * modules/unictype/property-bidi-block-separator (Depends-on,
25500         configure.ac): Likewise.
25501         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
25502         configure.ac): Likewise.
25503         * modules/unictype/property-bidi-common-separator (Depends-on,
25504         configure.ac): Likewise.
25505         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
25506         Likewise.
25507         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
25508         configure.ac): Likewise.
25509         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
25510         configure.ac): Likewise.
25511         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
25512         configure.ac): Likewise.
25513         * modules/unictype/property-bidi-european-digit (Depends-on,
25514         configure.ac): Likewise.
25515         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
25516         configure.ac): Likewise.
25517         * modules/unictype/property-bidi-left-to-right (Depends-on,
25518         configure.ac): Likewise.
25519         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
25520         configure.ac): Likewise.
25521         * modules/unictype/property-bidi-other-neutral (Depends-on,
25522         configure.ac): Likewise.
25523         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
25524         Likewise.
25525         * modules/unictype/property-bidi-segment-separator (Depends-on,
25526         configure.ac): Likewise.
25527         * modules/unictype/property-bidi-whitespace (Depends-on,
25528         configure.ac): Likewise.
25529         * modules/unictype/property-combining (Depends-on, configure.ac):
25530         Likewise.
25531         * modules/unictype/property-composite (Depends-on, configure.ac):
25532         Likewise.
25533         * modules/unictype/property-currency-symbol (Depends-on,
25534         configure.ac): Likewise.
25535         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
25536         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
25537         Likewise.
25538         * modules/unictype/property-default-ignorable-code-point (Depends-on,
25539         configure.ac): Likewise.
25540         * modules/unictype/property-deprecated (Depends-on, configure.ac):
25541         Likewise.
25542         * modules/unictype/property-diacritic (Depends-on, configure.ac):
25543         Likewise.
25544         * modules/unictype/property-extender (Depends-on, configure.ac):
25545         Likewise.
25546         * modules/unictype/property-format-control (Depends-on, configure.ac):
25547         Likewise.
25548         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
25549         Likewise.
25550         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
25551         Likewise.
25552         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
25553         Likewise.
25554         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
25555         Likewise.
25556         * modules/unictype/property-hyphen (Depends-on, configure.ac):
25557         Likewise.
25558         * modules/unictype/property-id-continue (Depends-on, configure.ac):
25559         Likewise.
25560         * modules/unictype/property-id-start (Depends-on, configure.ac):
25561         Likewise.
25562         * modules/unictype/property-ideographic (Depends-on, configure.ac):
25563         Likewise.
25564         * modules/unictype/property-ids-binary-operator (Depends-on,
25565         configure.ac): Likewise.
25566         * modules/unictype/property-ids-trinary-operator (Depends-on,
25567         configure.ac): Likewise.
25568         * modules/unictype/property-ignorable-control (Depends-on,
25569         configure.ac): Likewise.
25570         * modules/unictype/property-iso-control (Depends-on, configure.ac):
25571         Likewise.
25572         * modules/unictype/property-join-control (Depends-on, configure.ac):
25573         Likewise.
25574         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
25575         Likewise.
25576         * modules/unictype/property-line-separator (Depends-on, configure.ac):
25577         Likewise.
25578         * modules/unictype/property-logical-order-exception (Depends-on,
25579         configure.ac): Likewise.
25580         * modules/unictype/property-lowercase (Depends-on, configure.ac):
25581         Likewise.
25582         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
25583         * modules/unictype/property-non-break (Depends-on, configure.ac):
25584         Likewise.
25585         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
25586         Likewise.
25587         * modules/unictype/property-numeric (Depends-on, configure.ac):
25588         Likewise.
25589         * modules/unictype/property-other-alphabetic (Depends-on,
25590         configure.ac): Likewise.
25591         * modules/unictype/property-other-default-ignorable-code-point
25592         (Depends-on, configure.ac): Likewise.
25593         * modules/unictype/property-other-grapheme-extend (Depends-on,
25594         configure.ac): Likewise.
25595         * modules/unictype/property-other-id-continue (Depends-on,
25596         configure.ac): Likewise.
25597         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
25598         Likewise.
25599         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
25600         Likewise.
25601         * modules/unictype/property-other-math (Depends-on, configure.ac):
25602         Likewise.
25603         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
25604         Likewise.
25605         * modules/unictype/property-paired-punctuation (Depends-on,
25606         configure.ac): Likewise.
25607         * modules/unictype/property-paragraph-separator (Depends-on,
25608         configure.ac): Likewise.
25609         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
25610         Likewise.
25611         * modules/unictype/property-pattern-white-space (Depends-on,
25612         configure.ac): Likewise.
25613         * modules/unictype/property-private-use (Depends-on, configure.ac):
25614         Likewise.
25615         * modules/unictype/property-punctuation (Depends-on, configure.ac):
25616         Likewise.
25617         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
25618         Likewise.
25619         * modules/unictype/property-radical (Depends-on, configure.ac):
25620         Likewise.
25621         * modules/unictype/property-sentence-terminal (Depends-on,
25622         configure.ac): Likewise.
25623         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
25624         Likewise.
25625         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
25626         * modules/unictype/property-terminal-punctuation (Depends-on,
25627         configure.ac): Likewise.
25628         * modules/unictype/property-titlecase (Depends-on, configure.ac):
25629         Likewise.
25630         * modules/unictype/property-unassigned-code-value (Depends-on,
25631         configure.ac): Likewise.
25632         * modules/unictype/property-unified-ideograph (Depends-on,
25633         configure.ac): Likewise.
25634         * modules/unictype/property-uppercase (Depends-on, configure.ac):
25635         Likewise.
25636         * modules/unictype/property-variation-selector (Depends-on,
25637         configure.ac): Likewise.
25638         * modules/unictype/property-white-space (Depends-on, configure.ac):
25639         Likewise.
25640         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
25641         Likewise.
25642         * modules/unictype/property-xid-start (Depends-on, configure.ac):
25643         Likewise.
25644         * modules/unictype/property-zero-width (Depends-on, configure.ac):
25645         Likewise.
25646         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
25647         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
25648         Likewise.
25649
25650 2009-12-31  Bruno Haible  <bruno@clisp.org>
25651
25652         Remove unnecessary AC_C_INLINE invocation.
25653         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
25654         since 2009-08-21.
25655
25656 2009-12-31  Jim Meyering  <meyering@redhat.com>
25657
25658         maint.mk: don't require explicit gpg_key_ID in cfg.mk
25659         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
25660         With this change, we can all remove the gpg_key_ID = ... definition
25661         from our respective cfg.mk files.
25662
25663         maint.mk: create announcement template in ~/, not in /tmp
25664         * top/maint.mk (emit_upload_commands): Adjust.
25665         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
25666         Remove temporary file, .ci-msg.
25667
25668 2009-12-31  Eric Blake  <ebb9@byu.net>
25669
25670         link-warning: always build headers with link warnings
25671         * modules/arpa_inet (Makefile.am): Always build replacement
25672         header.
25673         * modules/ctype (Makefile.am): Likewise.
25674         * modules/dirent (Makefile.am): Likewise.
25675         * modules/inttypes (Makefile.am): Likewise.
25676         * modules/langinfo (Makefile.am): Likewise.
25677         * modules/locale (Makefile.am): Likewise.
25678         * modules/spawn (Makefile.am): Likewise.
25679         * modules/sys_file (Makefile.am): Likewise.
25680         * modules/sys_ioctl (Makefile.am): Likewise.
25681         * modules/sys_select (Makefile.am): Likewise.
25682         * modules/sys_socket (Makefile.am): Likewise.
25683         * modules/sys_times (Makefile.am): Likewise.
25684         * modules/sys_utsname (Makefile.am): Likewise.
25685         * modules/sys_wait (Makefile.am): Likewise.
25686         * modules/wchar (Makefile.am): Likewise.
25687         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
25688         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
25689         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
25690         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
25691         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
25692         Likewise.
25693         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
25694         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
25695         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
25696         Likewise.
25697         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
25698         Likewise.
25699         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
25700         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
25701         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
25702         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25703         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
25704         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
25705         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
25706         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
25707         (gl_WCHAR_H_DEFAULTS): Likewise.
25708
25709 2009-12-31  Eric Blake  <ebb9@byu.net>
25710
25711         signal, spawn: use link warnings
25712         * lib/signal.in.h (sigset_t): Make unconditional.
25713         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
25714         (sigpending, sigprocmask, sigaction): Add link warnings.
25715         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
25716         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
25717         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
25718         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
25719         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
25720         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
25721         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
25722         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
25723         (posix_spawn_file_actions_destroy)
25724         (posix_spawn_file_actions_addopen)
25725         (posix_spawn_file_actions_addclose)
25726         (posix_spawn_file_actions_adddup2): Likewise.
25727         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
25728         * tests/test-signal.c (main): Enhance test.
25729
25730         spawn: improve wrapper support
25731         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
25732         (gl_SPAWN_H_DEFAULTS): New defaults.
25733         * modules/spawn (Makefile.am): Substitute them.
25734         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
25735         Only declare if missing or broken.
25736
25737         sys_times, sys_utsname: use include_next
25738         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
25739         header.
25740         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
25741         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
25742         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
25743         * modules/sys_times (Depends-on): Add include_next.
25744         (Makefile.am): Substitute additional values.
25745         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
25746         * lib/sys_times.in.h (includes): Include native header, if
25747         available.
25748         * lib/sys_utsname.in.h (includes): Likewise.
25749         * tests/test-sys_times.c (main): Enhance test.
25750
25751         fdutimensat: revert prior patch
25752         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
25753         utimens.h.
25754         Reported by Bruno Haible.
25755
25756 2009-12-30  Eric Blake  <ebb9@byu.net>
25757
25758         sys_wait: drop link-warning dependency
25759         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
25760         link-warning efforts.
25761         * lib/sys_wait.in.h: Likewise.
25762
25763         fdutimensat: remove bogus dependency
25764         * modules/fdutimensat (Depends-on): Drop inline.
25765
25766         unistd: fix typo
25767         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
25768
25769 2009-12-30  Bruno Haible  <bruno@clisp.org>
25770
25771         Fix compilation error with Solaris cc.
25772         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
25773         * lib/unicase/u16-is-invariant.c: Likewise.
25774         * lib/unicase/u32-is-invariant.c: Likewise.
25775         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
25776
25777 2009-12-30  Bruno Haible  <bruno@clisp.org>
25778
25779         Fix test crash.
25780         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
25781         locales.
25782         Reported by Simon Josefsson <simon@josefsson.org>.
25783
25784 2009-12-30  Bruno Haible  <bruno@clisp.org>
25785
25786         Fix compilation error on most platforms.
25787         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
25788         Reported by Simon Josefsson <simon@josefsson.org>
25789         and Nelson H. F. Beebe <beebe@math.utah.edu>.
25790
25791 2009-12-30  Eric Blake  <ebb9@byu.net>
25792
25793         futimens, utimensat: work around ntfs-3g bug
25794         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
25795         a ctime bug is present, and expand workaround to cover ntfs-3g.
25796         * lib/utimens.c (fdutimens, lutimens): Likewise.
25797         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
25798         (validate_timespec): Adjust return value.
25799         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
25800         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
25801         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
25802
25803 2009-12-29  Eric Blake  <ebb9@byu.net>
25804
25805         link-warning: make usage consistent
25806         * modules/ctype (Depends-on): Add link-warning.
25807         (Makefile.am): Update rules accordingly.
25808         * modules/langinfo (Depends-on, Makefile.am): Likewise.
25809         * modules/locale (Depends-on, Makefile.am): Likewise.
25810         * modules/sys_file (Makefile.am): Likewise.
25811         * modules/getopt-posix (Makefile.am): Delete unused link warning
25812         efforts.
25813         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
25814         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
25815         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
25816         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
25817
25818         stdio: remove unused variables
25819         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
25820         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
25821         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
25822
25823         tests: test more substitute headers
25824         * modules/ctype-tests: New file.
25825         * modules/dirent-tests: Likewise.
25826         * modules/spawn-tests: Likewise.
25827         * modules/sys_file-tests: Likewise.
25828         * modules/sys_ioctl-tests: Likewise.
25829         * modules/sys_wait-tests: Likewise.
25830         * tests/test-ctype.c: Likewise.
25831         * tests/test-dirent.c: Likewise.
25832         * tests/test-spawn.c: Likewise.
25833         * tests/test-sys_file.c: Likewise.
25834         * tests/test-sys_ioctl.c: Likewise.
25835         * tests/test-sys_wait.c: Likewise.
25836         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
25837         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
25838         whether or not flock is in use.
25839
25840         tests: remove License section from module
25841         * modules/arpa_inet-tests: Remove unneeded section.
25842         * modules/byteswap-tests: Likewise.
25843         * modules/ceilf-tests: Likewise.
25844         * modules/ceill-tests: Likewise.
25845         * modules/crypto/des-tests: Likewise.
25846         * modules/crypto/gc-arcfour-tests: Likewise.
25847         * modules/crypto/gc-arctwo-tests: Likewise.
25848         * modules/crypto/gc-des-tests: Likewise.
25849         * modules/crypto/gc-hmac-md5-tests: Likewise.
25850         * modules/crypto/gc-hmac-sha1-tests: Likewise.
25851         * modules/crypto/gc-md2-tests: Likewise.
25852         * modules/crypto/gc-md4-tests: Likewise.
25853         * modules/crypto/gc-md5-tests: Likewise.
25854         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
25855         * modules/crypto/gc-rijndael-tests: Likewise.
25856         * modules/crypto/gc-sha1-tests: Likewise.
25857         * modules/crypto/gc-tests: Likewise.
25858         * modules/crypto/md2-tests: Likewise.
25859         * modules/crypto/md4-tests: Likewise.
25860         * modules/fcntl-h-tests: Likewise.
25861         * modules/floorf-tests: Likewise.
25862         * modules/floorl-tests: Likewise.
25863         * modules/frexp-nolibm-tests: Likewise.
25864         * modules/frexp-tests: Likewise.
25865         * modules/frexpl-nolibm-tests: Likewise.
25866         * modules/frexpl-tests: Likewise.
25867         * modules/getaddrinfo-tests: Likewise.
25868         * modules/inttypes-tests: Likewise.
25869         * modules/isfinite-tests: Likewise.
25870         * modules/isinf-tests: Likewise.
25871         * modules/ldexpl-tests: Likewise.
25872         * modules/locale-tests: Likewise.
25873         * modules/math-tests: Likewise.
25874         * modules/netdb-tests: Likewise.
25875         * modules/netinet_in-tests: Likewise.
25876         * modules/printf-frexp-tests: Likewise.
25877         * modules/printf-frexpl-tests: Likewise.
25878         * modules/priv-set-tests: Likewise.
25879         * modules/random_r-tests: Likewise.
25880         * modules/round-tests: Likewise.
25881         * modules/roundf-tests: Likewise.
25882         * modules/roundl-tests: Likewise.
25883         * modules/search-tests: Likewise.
25884         * modules/select-tests: Likewise.
25885         * modules/signal-tests: Likewise.
25886         * modules/stdbool-tests: Likewise.
25887         * modules/stddef-tests: Likewise.
25888         * modules/stdint-tests: Likewise.
25889         * modules/stdio-tests: Likewise.
25890         * modules/stdlib-tests: Likewise.
25891         * modules/string-tests: Likewise.
25892         * modules/strings-tests: Likewise.
25893         * modules/sys_select-tests: Likewise.
25894         * modules/sys_socket-tests: Likewise.
25895         * modules/sys_stat-tests: Likewise.
25896         * modules/sys_time-tests: Likewise.
25897         * modules/sys_utsname-tests: Likewise.
25898         * modules/sysexits-tests: Likewise.
25899         * modules/time-tests: Likewise.
25900         * modules/trunc-tests: Likewise.
25901         * modules/truncf-tests: Likewise.
25902         * modules/truncl-tests: Likewise.
25903         * modules/tsearch-tests: Likewise.
25904         * modules/unistd-tests: Likewise.
25905         * modules/wchar-tests: Likewise.
25906         * modules/wctype-tests: Likewise.
25907
25908         tests: fix license on several tests
25909         * tests/test-des.c: Update to GPLv3+.
25910         * tests/test-flock.c: Likewise.
25911         * tests/test-fsync.c: Likewise.
25912         * tests/test-futimens.h: Likewise.
25913         * tests/test-gc-arcfour.c: Likewise.
25914         * tests/test-gc-arctwo.c: Likewise.
25915         * tests/test-gc-des.c: Likewise.
25916         * tests/test-gc-hmac-md5.c: Likewise.
25917         * tests/test-gc-hmac-sha1.c: Likewise.
25918         * tests/test-gc-md2.c: Likewise.
25919         * tests/test-gc-md4.c: Likewise.
25920         * tests/test-gc-md5.c: Likewise.
25921         * tests/test-gc-pbkdf2-sha1.c: Likewise.
25922         * tests/test-gc-rijndael.c: Likewise.
25923         * tests/test-gc-sha1.c: Likewise.
25924         * tests/test-gc.c: Likewise.
25925         * tests/test-getcwd.c: Likewise.
25926         * tests/test-link.c: Likewise.
25927         * tests/test-link.h: Likewise.
25928         * tests/test-lutimens.h: Likewise.
25929         * tests/test-md2.c: Likewise.
25930         * tests/test-md4.c: Likewise.
25931         * tests/test-mkdir.h: Likewise.
25932         * tests/test-rename.c: Likewise.
25933         * tests/test-rename.h: Likewise.
25934         * tests/test-safe-alloc.c: Likewise.
25935         * tests/test-utimens-common.h: Likewise.
25936         * tests/test-utimens.h: Likewise.
25937
25938         maint: sync license texts
25939         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
25940         * doc/gpl-3.0.texi: Revert copyright year update.
25941         * doc/lgpl-3.0.texi: Likewise.
25942
25943 2009-12-29  Jim Meyering  <meyering@redhat.com>
25944
25945         update nearly all FSF copyright year lists to include 2009
25946         The files named by the following are exempted:
25947             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
25948               test -f "$dst" && { echo "$dst"; continue; }
25949               test -d "$dst" || continue
25950               echo "$dst"/$(basename "$src")
25951             done > exempt
25952             git ls-files tests/unictype >> exempt
25953         In the remaining files, convert to all-interval notation if
25954         - there is already at least one year interval like 2000-2003
25955         - the file is maintained by me
25956         - the file is in lib/uni*/, where that style already prevails
25957         Otherwise, use update-copyright's default.
25958
25959 2009-12-29  Simon Josefsson  <simon@josefsson.org>
25960         and Eric Blake  <ebb9@byu.net>
25961
25962         tests: don't require debug system() to pass
25963         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
25964         * tests/test-rmdir.h (test_rmdir_func): Likewise.
25965         * tests/test-unlink.h (test_unlink_func): Likewise.
25966         * tests/test-fstatat.c (main): ...into callers.
25967         * tests/test-lstat.c (main): Likewise.
25968         * tests/test-rmdir.c (main): Likewise.
25969         * tests/test-unlink.c (main): Likewise.
25970         * tests/test-unlinkat.c (main): Likewise.
25971         * tests/test-areadlink-with-size.c (main): Don't require a
25972         debug-only system call to pass, aiding cross-testing to mingw.
25973         * tests/test-areadlink.c (main): Likewise.
25974         * tests/test-areadlinkat-with-size.c (main): Likewise.
25975         * tests/test-areadlinkat.c (main): Likewise.
25976         * tests/test-canonicalize-lgpl.c (main): Likewise.
25977         * tests/test-canonicalize.c (main): Likewise.
25978         * tests/test-chown.c (main): Likewise.
25979         * tests/test-fchownat.c (main): Likewise.
25980         * tests/test-lchown.c (main): Likewise.
25981         * tests/test-fdutimensat.c (main): Likewise.
25982         * tests/test-futimens.c (main): Likewise.
25983         * tests/test-link.c (main): Likewise.
25984         * tests/test-linkat.c (main): Likewise.
25985         * tests/test-mkdir.c (main): Likewise.
25986         * tests/test-mkdirat.c (main): Likewise.
25987         * tests/test-mkfifo.c (main): Likewise.
25988         * tests/test-mkfifoat.c (main): Likewise.
25989         * tests/test-mknod.c (main): Likewise.
25990         * tests/test-readlink.c (main): Likewise.
25991         * tests/test-remove.c (main): Likewise.
25992         * tests/test-rename.c (main): Likewise.
25993         * tests/test-renameat.c (main): Likewise.
25994         * tests/test-symlink.c (main): Likewise.
25995         * tests/test-symlinkat.c (main): Likewise.
25996         * tests/test-utimens.c (main): Likewise.
25997         * tests/test-utimensat.c (main): Likewise.
25998
25999 2009-12-29  Simon Josefsson  <simon@josefsson.org>
26000
26001         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
26002         on $(UNUSED_PARAMETER_H) to avoid build failure.
26003
26004 2009-12-28  Jim Meyering  <meyering@redhat.com>
26005
26006         update-copyright: you may specify a max. line length other than 72
26007         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
26008
26009         maint: use consistent FSF copyright line syntax
26010         * lib/posixtm.c: Add missing comma in FSF copyright line.
26011         * lib/posixtm.h: Likewise.
26012         * lib/getugroups.c: Add missing ", Inc.".
26013
26014         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
26015         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
26016         FSF copyright line.  Remove trailing blanks.
26017
26018 2009-12-28  Eric Blake  <ebb9@byu.net>
26019
26020         test-dup2: reduce dependencies
26021         * modules/cloexec (Configure.ac): Set witness.
26022         * modules/dup2-tests (Depends-on): Drop cloexec.
26023         * tests/test-dup2.c (main): Skip portion of test if cloexec module
26024         not present.
26025         Suggested by Bruno Haible.
26026
26027 2009-12-26  Bruno Haible  <bruno@clisp.org>
26028
26029         Remove an unneeded dependency.
26030         * modules/fseterr (Depends-on): Remove dup2.
26031
26032 2009-12-26  Eric Blake  <ebb9@byu.net>
26033
26034         tests: use macros.h in more places
26035         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
26036         (ASSERT_STREAM): Provide default of stderr.
26037         * tests/test-dirent-safer.c: Include macros.h, using alternate
26038         stream for assertions.
26039         * tests/test-dup-safer.c: Likewise.
26040         * tests/test-freopen-safer.c: Likewise.
26041         * tests/test-getopt.c: Likewise.
26042         * tests/test-openat-safer.c: Likewise.
26043         * tests/test-pipe.c: Likewise.
26044         * tests/test-popen-safer.c: Likewise.
26045         * modules/dirent-safer-tests (Files): Include macros.h.
26046         * modules/unistd-safer-tests (Files): Likewise.
26047         * modules/freopen-safer-tests (Files): Likewise.
26048         * modules/getopt-posix-tests (Files): Likewise.
26049         * modules/openat-safer-tests (Files): Likewise.
26050         * modules/pipe-tests (Files): Likewise.
26051
26052 2009-12-26  Bruno Haible  <bruno@clisp.org>
26053
26054         javacomp: Portability fix.
26055         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
26056         that it also works on Solaris.
26057
26058 2009-12-26  Bruno Haible  <bruno@clisp.org>
26059
26060         localename: Fix storage allocation of gl_locale_name_thread's result.
26061         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
26062         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
26063         all platforms that have 'uselocale'.
26064         (gl_locale_name_thread_unsafe): New function, extracted from
26065         gl_locale_name_thread.
26066         (gl_locale_name_thread): Call struniq on all platforms that have
26067         'uselocale'.
26068         * tests/test-localename.c (test_locale_name_thread): Check that the
26069         resulting strings are permanently allocated.
26070         * modules/localename-tests (Depends-on): Add strdup.
26071
26072 2009-12-26  Bruno Haible  <bruno@clisp.org>
26073
26074         * tests/test-localename.c (categories): Fill in the strings.
26075
26076 2009-12-26  Jim Meyering  <meyering@redhat.com>
26077
26078         isdir: complete the removal of m4/isdir.m4
26079         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
26080
26081         isdir: clean up, since at least grep still uses it
26082         * lib/isdir.c: Include "isdir.h".
26083         (S_ISDIR): Remove now-unneeded definition.
26084         * modules/isdir (Files): Add lib/isdir.h.
26085         * lib/isdir.h: New file, with declaration.
26086         * m4/isdir.m4: Remove file -- unneeded.
26087
26088 2009-12-25  Bruno Haible  <bruno@clisp.org>
26089
26090         selinux-h: Make generated .h files standalone.
26091         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
26092         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
26093         * lib/se-selinux.in.h: Likewise.
26094         * modules/selinux-h (Depends-on): Add unused-parameter.
26095         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
26096         selinux/selinux.h and selinux/context.h.
26097         Suggested by Eric Blake.
26098
26099 2009-12-25  Bruno Haible  <bruno@clisp.org>
26100
26101         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
26102         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
26103         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
26104         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
26105         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
26106
26107 2009-12-24  Bruno Haible  <bruno@clisp.org>
26108
26109         openat: Fix warning.
26110         * lib/openat-proc.c: Include <unistd.h>.
26111
26112 2009-12-24  Bruno Haible  <bruno@clisp.org>
26113
26114         New module 'unused-parameter'.
26115         * build-aux/unused-parameter.h: New file, extracted from earlier
26116         gnulib-common.m4.
26117         * modules/unused-parameter: New file.
26118         * lib/unistr.h: Include unused-parameter.h.
26119         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
26120         _GL_UNUSED.
26121         * modules/unistr/base (Depends-on): Add unused-parameter.
26122
26123 2009-12-24  Bruno Haible  <bruno@clisp.org>
26124
26125         Add missing dependencies to 'extensions' module.
26126         * m4/extensions.m4: Add comment.
26127         * modules/accept4 (Depends-on): Add extensions.
26128         * modules/dup3 (Depends-on): Likewise.
26129         * modules/fcntl (Depends-on): Likewise.
26130         * modules/futimens (Depends-on): Likewise.
26131         * modules/mknod (Depends-on): Likewise.
26132         * modules/pipe2 (Depends-on): Likewise.
26133         * modules/stat-time (Depends-on): Likewise.
26134         * modules/strcasestr-simple (Depends-on): Likewise.
26135         * modules/strsignal (Depends-on): Likewise.
26136         * modules/utimensat (Depends-on): Likewise.
26137         * modules/localcharset (Depends-on): Likewise. Needed because of
26138         gl_FCNTL_O_FLAGS.
26139         * modules/wcrtomb (Depends-on): Likewise. Needed because of
26140         AC_TYPE_MBSTATE_T.
26141         * modules/wcsnrtombs (Depends-on): Likewise.
26142         * modules/wcsrtombs (Depends-on): Likewise.
26143
26144 2009-12-24  Bruno Haible  <bruno@clisp.org>
26145
26146         binary-io: Avoid gcc warning due to SET_BINARY.
26147         * lib/binary-io.h (SET_BINARY): Cast the result to void.
26148         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
26149
26150 2009-12-24  Bruno Haible  <bruno@clisp.org>
26151
26152         Avoid future namespace pollution on glibc systems.
26153         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
26154         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
26155         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
26156         glibc systems.
26157
26158 2009-12-24  Bruno Haible  <bruno@clisp.org>
26159
26160         Refactor common macros used in tests.
26161         * tests/macros.h: New file.
26162         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
26163         and/or <stdlib.h>, if appropriate.
26164         (ASSERT, SIZEOF): Remove macros.
26165         * tests/test-areadlink-with-size.c: Likewise.
26166         * tests/test-areadlinkat.c: Likewise.
26167         * tests/test-areadlinkat-with-size.c: Likewise.
26168         * tests/test-argmatch.c: Likewise.
26169         * tests/test-argv-iter.c: Likewise.
26170         * tests/test-array-mergesort.c: Likewise.
26171         * tests/test-array_list.c: Likewise.
26172         * tests/test-array_oset.c: Likewise.
26173         * tests/test-avltree_list.c: Likewise.
26174         * tests/test-avltree_oset.c: Likewise.
26175         * tests/test-avltreehash_list.c: Likewise.
26176         * tests/test-base64.c: Likewise.
26177         * tests/test-binary-io.c: Likewise.
26178         * tests/test-bitrotate.c: Likewise.
26179         * tests/test-btowc.c: Likewise.
26180         * tests/test-byteswap.c: Likewise.
26181         * tests/test-c-ctype.c: Likewise.
26182         * tests/test-c-stack.c: Likewise.
26183         * tests/test-c-strcasecmp.c: Likewise.
26184         * tests/test-c-strcasestr.c: Likewise.
26185         * tests/test-c-strncasecmp.c: Likewise.
26186         * tests/test-c-strstr.c: Likewise.
26187         * tests/test-canonicalize-lgpl.c: Likewise.
26188         * tests/test-canonicalize.c: Likewise.
26189         * tests/test-carray_list.c: Likewise.
26190         * tests/test-ceilf1.c: Likewise.
26191         * tests/test-ceilf2.c: Likewise.
26192         * tests/test-ceill.c: Likewise.
26193         * tests/test-chown.c: Likewise.
26194         * tests/test-cloexec.c: Likewise.
26195         * tests/test-copy-acl.c: Likewise.
26196         * tests/test-copy-file.c: Likewise.
26197         * tests/test-count-one-bits.c: Likewise.
26198         * tests/test-dprintf-posix.c: Likewise.
26199         * tests/test-dup2.c: Likewise.
26200         * tests/test-dup3.c: Likewise.
26201         * tests/test-duplocale.c: Likewise.
26202         * tests/test-fbufmode.c: Likewise.
26203         * tests/test-fchdir.c: Likewise.
26204         * tests/test-fchownat.c: Likewise.
26205         * tests/test-fcntl-safer.c: Likewise.
26206         * tests/test-fcntl.c: Likewise.
26207         * tests/test-fdopendir.c: Likewise.
26208         * tests/test-fdutimensat.c: Likewise.
26209         * tests/test-fflush2.c: Likewise.
26210         * tests/test-file-has-acl.c: Likewise.
26211         * tests/test-filevercmp.c: Likewise.
26212         * tests/test-flock.c: Likewise.
26213         * tests/test-floorf1.c: Likewise.
26214         * tests/test-floorf2.c: Likewise.
26215         * tests/test-floorl.c: Likewise.
26216         * tests/test-fnmatch.c: Likewise.
26217         * tests/test-fopen.h: Likewise.
26218         * tests/test-fpending.c: Likewise.
26219         * tests/test-fprintf-posix.c: Likewise.
26220         * tests/test-fpurge.c: Likewise.
26221         * tests/test-freadable.c: Likewise.
26222         * tests/test-freadahead.c: Likewise.
26223         * tests/test-freading.c: Likewise.
26224         * tests/test-freadptr.c: Likewise.
26225         * tests/test-freadptr2.c: Likewise.
26226         * tests/test-freadseek.c: Likewise.
26227         * tests/test-freopen.c: Likewise.
26228         * tests/test-frexp.c: Likewise.
26229         * tests/test-frexpl.c: Likewise.
26230         * tests/test-fseek.c: Likewise.
26231         * tests/test-fseeko.c: Likewise.
26232         * tests/test-fstatat.c: Likewise.
26233         * tests/test-fstrcmp.c: Likewise.
26234         * tests/test-fsync.c: Likewise.
26235         * tests/test-ftell.c: Likewise.
26236         * tests/test-ftello.c: Likewise.
26237         * tests/test-func.c: Likewise.
26238         * tests/test-futimens.c: Likewise.
26239         * tests/test-fwritable.c: Likewise.
26240         * tests/test-fwriting.c: Likewise.
26241         * tests/test-getcwd.c: Likewise.
26242         * tests/test-getdate.c: Likewise.
26243         * tests/test-getdelim.c: Likewise.
26244         * tests/test-getdtablesize.c: Likewise.
26245         * tests/test-getgroups.c: Likewise.
26246         * tests/test-getline.c: Likewise.
26247         * tests/test-getndelim2.c: Likewise.
26248         * tests/test-glob.c: Likewise.
26249         * tests/test-hash.c: Likewise.
26250         * tests/test-i-ring.c: Likewise.
26251         * tests/test-iconv-utf.c: Likewise.
26252         * tests/test-iconv.c: Likewise.
26253         * tests/test-idpriv-drop.c: Likewise.
26254         * tests/test-idpriv-droptemp.c: Likewise.
26255         * tests/test-inet_ntop.c: Likewise.
26256         * tests/test-inet_pton.c: Likewise.
26257         * tests/test-isblank.c: Likewise.
26258         * tests/test-isfinite.c: Likewise.
26259         * tests/test-isinf.c: Likewise.
26260         * tests/test-isnan.c: Likewise.
26261         * tests/test-isnand.h: Likewise.
26262         * tests/test-isnanf.h: Likewise.
26263         * tests/test-isnanl.h: Likewise.
26264         * tests/test-lchown.c: Likewise.
26265         * tests/test-ldexpl.c: Likewise.
26266         * tests/test-link.c: Likewise.
26267         * tests/test-linkat.c: Likewise.
26268         * tests/test-linked_list.c: Likewise.
26269         * tests/test-linkedhash_list.c: Likewise.
26270         * tests/test-localename.c: Likewise.
26271         * tests/test-lseek.c: Likewise.
26272         * tests/test-lstat.c: Likewise.
26273         * tests/test-mbmemcasecmp.c: Likewise.
26274         * tests/test-mbmemcasecoll.c: Likewise.
26275         * tests/test-mbrtowc.c: Likewise.
26276         * tests/test-mbscasecmp.c: Likewise.
26277         * tests/test-mbscasestr1.c: Likewise.
26278         * tests/test-mbscasestr2.c: Likewise.
26279         * tests/test-mbscasestr3.c: Likewise.
26280         * tests/test-mbscasestr4.c: Likewise.
26281         * tests/test-mbschr.c: Likewise.
26282         * tests/test-mbscspn.c: Likewise.
26283         * tests/test-mbsinit.c: Likewise.
26284         * tests/test-mbsncasecmp.c: Likewise.
26285         * tests/test-mbsnrtowcs.c: Likewise.
26286         * tests/test-mbspbrk.c: Likewise.
26287         * tests/test-mbspcasecmp.c: Likewise.
26288         * tests/test-mbsrchr.c: Likewise.
26289         * tests/test-mbsrtowcs.c: Likewise.
26290         * tests/test-mbsspn.c: Likewise.
26291         * tests/test-mbsstr1.c: Likewise.
26292         * tests/test-mbsstr2.c: Likewise.
26293         * tests/test-mbsstr3.c: Likewise.
26294         * tests/test-memchr.c: Likewise.
26295         * tests/test-memchr2.c: Likewise.
26296         * tests/test-memcmp.c: Likewise.
26297         * tests/test-memmem.c: Likewise.
26298         * tests/test-memrchr.c: Likewise.
26299         * tests/test-mkdir.c: Likewise.
26300         * tests/test-mkdirat.c: Likewise.
26301         * tests/test-mkfifo.c: Likewise.
26302         * tests/test-mkfifoat.c: Likewise.
26303         * tests/test-mknod.c: Likewise.
26304         * tests/test-nanosleep.c: Likewise.
26305         * tests/test-nl_langinfo.c: Likewise.
26306         * tests/test-obstack-printf.c: Likewise.
26307         * tests/test-open.c: Likewise.
26308         * tests/test-openat.c: Likewise.
26309         * tests/test-pipe-filter-gi1.c: Likewise.
26310         * tests/test-pipe-filter-gi2-main.c: Likewise.
26311         * tests/test-pipe-filter-ii1.c: Likewise.
26312         * tests/test-pipe-filter-ii2-main.c: Likewise.
26313         * tests/test-pipe2.c: Likewise.
26314         * tests/test-popen.h: Likewise.
26315         * tests/test-posixtm.c: Likewise.
26316         * tests/test-pread.c: Likewise.
26317         * tests/test-printf-frexp.c: Likewise.
26318         * tests/test-printf-frexpl.c: Likewise.
26319         * tests/test-printf-posix.c: Likewise.
26320         * tests/test-priv-set.c: Likewise.
26321         * tests/test-quotearg.c: Likewise.
26322         * tests/test-random_r.c: Likewise.
26323         * tests/test-rawmemchr.c: Likewise.
26324         * tests/test-rbtree_list.c: Likewise.
26325         * tests/test-rbtree_oset.c: Likewise.
26326         * tests/test-rbtreehash_list.c: Likewise.
26327         * tests/test-readlink.c: Likewise.
26328         * tests/test-remove.c: Likewise.
26329         * tests/test-rename.c: Likewise.
26330         * tests/test-renameat.c: Likewise.
26331         * tests/test-rmdir.c: Likewise.
26332         * tests/test-round1.c: Likewise.
26333         * tests/test-roundf1.c: Likewise.
26334         * tests/test-roundl.c: Likewise.
26335         * tests/test-safe-alloc.c: Likewise.
26336         * tests/test-sameacls.c: Likewise.
26337         * tests/test-set-mode-acl.c: Likewise.
26338         * tests/test-setenv.c: Likewise.
26339         * tests/test-sigaction.c: Likewise.
26340         * tests/test-signbit.c: Likewise.
26341         * tests/test-sleep.c: Likewise.
26342         * tests/test-snprintf-posix.c: Likewise.
26343         * tests/test-snprintf.c: Likewise.
26344         * tests/test-sprintf-posix.c: Likewise.
26345         * tests/test-stat-time.c: Likewise.
26346         * tests/test-stat.c: Likewise.
26347         * tests/test-strcasestr.c: Likewise.
26348         * tests/test-strchrnul.c: Likewise.
26349         * tests/test-strerror.c: Likewise.
26350         * tests/test-striconv.c: Likewise.
26351         * tests/test-striconveh.c: Likewise.
26352         * tests/test-striconveha.c: Likewise.
26353         * tests/test-strsignal.c: Likewise.
26354         * tests/test-strstr.c: Likewise.
26355         * tests/test-strtod.c: Likewise.
26356         * tests/test-strverscmp.c: Likewise.
26357         * tests/test-symlink.c: Likewise.
26358         * tests/test-symlinkat.c: Likewise.
26359         * tests/test-trunc1.c: Likewise.
26360         * tests/test-trunc2.c: Likewise.
26361         * tests/test-truncf1.c: Likewise.
26362         * tests/test-truncf2.c: Likewise.
26363         * tests/test-truncl.c: Likewise.
26364         * tests/test-uname.c: Likewise.
26365         * tests/test-unlink.c: Likewise.
26366         * tests/test-unlinkat.c: Likewise.
26367         * tests/test-unsetenv.c: Likewise.
26368         * tests/test-usleep.c: Likewise.
26369         * tests/test-utimens.c: Likewise.
26370         * tests/test-utimensat.c: Likewise.
26371         * tests/test-vasnprintf-posix.c: Likewise.
26372         * tests/test-vasnprintf-posix2.c: Likewise.
26373         * tests/test-vasnprintf.c: Likewise.
26374         * tests/test-vasprintf-posix.c: Likewise.
26375         * tests/test-vasprintf.c: Likewise.
26376         * tests/test-vdprintf-posix.c: Likewise.
26377         * tests/test-vfprintf-posix.c: Likewise.
26378         * tests/test-vprintf-posix.c: Likewise.
26379         * tests/test-vsnprintf-posix.c: Likewise.
26380         * tests/test-vsnprintf.c: Likewise.
26381         * tests/test-vsprintf-posix.c: Likewise.
26382         * tests/test-wcrtomb.c: Likewise.
26383         * tests/test-wcsnrtombs.c: Likewise.
26384         * tests/test-wcsrtombs.c: Likewise.
26385         * tests/test-wctype.c: Likewise.
26386         * tests/test-wcwidth.c: Likewise.
26387         * tests/test-xfprintf-posix.c: Likewise.
26388         * tests/test-xmemdup0.c: Likewise.
26389         * tests/test-xprintf-posix.c: Likewise.
26390         * tests/test-xvasprintf.c: Likewise.
26391         * tests/unicase/test-locale-language.c: Likewise.
26392         * tests/unicase/test-mapping-part1.h: Likewise.
26393         * tests/unicase/test-predicate-part1.h: Likewise.
26394         * tests/unicase/test-u8-casecmp.c: Likewise.
26395         * tests/unicase/test-u8-casecoll.c: Likewise.
26396         * tests/unicase/test-u8-casefold.c: Likewise.
26397         * tests/unicase/test-u8-is-cased.c: Likewise.
26398         * tests/unicase/test-u8-is-casefolded.c: Likewise.
26399         * tests/unicase/test-u8-is-lowercase.c: Likewise.
26400         * tests/unicase/test-u8-is-titlecase.c: Likewise.
26401         * tests/unicase/test-u8-is-uppercase.c: Likewise.
26402         * tests/unicase/test-u8-tolower.c: Likewise.
26403         * tests/unicase/test-u8-totitle.c: Likewise.
26404         * tests/unicase/test-u8-toupper.c: Likewise.
26405         * tests/unicase/test-u16-casecmp.c: Likewise.
26406         * tests/unicase/test-u16-casecoll.c: Likewise.
26407         * tests/unicase/test-u16-casefold.c: Likewise.
26408         * tests/unicase/test-u16-is-cased.c: Likewise.
26409         * tests/unicase/test-u16-is-casefolded.c: Likewise.
26410         * tests/unicase/test-u16-is-lowercase.c: Likewise.
26411         * tests/unicase/test-u16-is-titlecase.c: Likewise.
26412         * tests/unicase/test-u16-is-uppercase.c: Likewise.
26413         * tests/unicase/test-u16-tolower.c: Likewise.
26414         * tests/unicase/test-u16-totitle.c: Likewise.
26415         * tests/unicase/test-u16-toupper.c: Likewise.
26416         * tests/unicase/test-u32-casecmp.c: Likewise.
26417         * tests/unicase/test-u32-casecoll.c: Likewise.
26418         * tests/unicase/test-u32-casefold.c: Likewise.
26419         * tests/unicase/test-u32-is-cased.c: Likewise.
26420         * tests/unicase/test-u32-is-casefolded.c: Likewise.
26421         * tests/unicase/test-u32-is-lowercase.c: Likewise.
26422         * tests/unicase/test-u32-is-titlecase.c: Likewise.
26423         * tests/unicase/test-u32-is-uppercase.c: Likewise.
26424         * tests/unicase/test-u32-tolower.c: Likewise.
26425         * tests/unicase/test-u32-totitle.c: Likewise.
26426         * tests/unicase/test-u32-toupper.c: Likewise.
26427         * tests/unicase/test-ulc-casecmp.c: Likewise.
26428         * tests/unicase/test-ulc-casecoll.c: Likewise.
26429         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
26430         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
26431         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
26432         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
26433         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
26434         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
26435         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
26436         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
26437         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
26438         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
26439         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
26440         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
26441         * tests/unictype/test-bidi_byname.c: Likewise.
26442         * tests/unictype/test-bidi_name.c: Likewise.
26443         * tests/unictype/test-bidi_of.c: Likewise.
26444         * tests/unictype/test-bidi_test.c: Likewise.
26445         * tests/unictype/test-block_list.c: Likewise.
26446         * tests/unictype/test-block_of.c: Likewise.
26447         * tests/unictype/test-block_test.c: Likewise.
26448         * tests/unictype/test-categ_and.c: Likewise.
26449         * tests/unictype/test-categ_and_not.c: Likewise.
26450         * tests/unictype/test-categ_byname.c: Likewise.
26451         * tests/unictype/test-categ_name.c: Likewise.
26452         * tests/unictype/test-categ_none.c: Likewise.
26453         * tests/unictype/test-categ_of.c: Likewise.
26454         * tests/unictype/test-categ_or.c: Likewise.
26455         * tests/unictype/test-categ_test_withtable.c: Likewise.
26456         * tests/unictype/test-combining.c: Likewise.
26457         * tests/unictype/test-decdigit.c: Likewise.
26458         * tests/unictype/test-digit.c: Likewise.
26459         * tests/unictype/test-mirror.c: Likewise.
26460         * tests/unictype/test-numeric.c: Likewise.
26461         * tests/unictype/test-pr_byname.c: Likewise.
26462         * tests/unictype/test-pr_test.c: Likewise.
26463         * tests/unictype/test-predicate-part1.h: Likewise.
26464         * tests/unictype/test-scripts.c: Likewise.
26465         * tests/unictype/test-sy_c_ident.c: Likewise.
26466         * tests/unictype/test-sy_java_ident.c: Likewise.
26467         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
26468         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
26469         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
26470         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
26471         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
26472         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
26473         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
26474         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
26475         * tests/uninorm/test-canonical-decomposition.c: Likewise.
26476         * tests/uninorm/test-compat-decomposition.c: Likewise.
26477         * tests/uninorm/test-composition.c: Likewise.
26478         * tests/uninorm/test-decomposing-form.c: Likewise.
26479         * tests/uninorm/test-decomposition.c: Likewise.
26480         * tests/uninorm/test-u8-nfc.c: Likewise.
26481         * tests/uninorm/test-u8-nfd.c: Likewise.
26482         * tests/uninorm/test-u8-nfkc.c: Likewise.
26483         * tests/uninorm/test-u8-nfkd.c: Likewise.
26484         * tests/uninorm/test-u8-normcmp.c: Likewise.
26485         * tests/uninorm/test-u8-normcoll.c: Likewise.
26486         * tests/uninorm/test-u16-nfc.c: Likewise.
26487         * tests/uninorm/test-u16-nfd.c: Likewise.
26488         * tests/uninorm/test-u16-nfkc.c: Likewise.
26489         * tests/uninorm/test-u16-nfkd.c: Likewise.
26490         * tests/uninorm/test-u16-normcmp.c: Likewise.
26491         * tests/uninorm/test-u16-normcoll.c: Likewise.
26492         * tests/uninorm/test-u32-nfc.c: Likewise.
26493         * tests/uninorm/test-u32-nfd.c: Likewise.
26494         * tests/uninorm/test-u32-nfkc.c: Likewise.
26495         * tests/uninorm/test-u32-nfkd.c: Likewise.
26496         * tests/uninorm/test-u32-normalize-big.c: Likewise.
26497         * tests/uninorm/test-u32-normcmp.c: Likewise.
26498         * tests/uninorm/test-u32-normcoll.c: Likewise.
26499         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
26500         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
26501         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
26502         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
26503         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
26504         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
26505         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
26506         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
26507         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
26508         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
26509         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
26510         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
26511         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
26512         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
26513         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
26514         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
26515         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
26516         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
26517         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
26518         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
26519         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
26520         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
26521         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
26522         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
26523         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
26524         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
26525         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
26526         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
26527         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
26528         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
26529         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
26530         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
26531         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
26532         * tests/uniwidth/test-u8-strwidth.c: Likewise.
26533         * tests/uniwidth/test-u8-width.c: Likewise.
26534         * tests/uniwidth/test-u16-strwidth.c: Likewise.
26535         * tests/uniwidth/test-u16-width.c: Likewise.
26536         * tests/uniwidth/test-u32-strwidth.c: Likewise.
26537         * tests/uniwidth/test-u32-width.c: Likewise.
26538         * tests/uniwidth/test-uc_width.c: Likewise.
26539         * tests/uniwidth/test-uc_width2.c: Likewise.
26540         * modules/acl-tests (Files): Add tests/macros.h.
26541         * modules/areadlink-tests (Files): Likewise.
26542         * modules/areadlink-with-size-tests (Files): Likewise.
26543         * modules/areadlinkat-tests (Files): Likewise.
26544         * modules/areadlinkat-with-size-tests (Files): Likewise.
26545         * modules/argmatch-tests (Files): Likewise.
26546         * modules/argv-iter-tests (Files): Likewise.
26547         * modules/array-list-tests (Files): Likewise.
26548         * modules/array-mergesort-tests (Files): Likewise.
26549         * modules/array-oset-tests (Files): Likewise.
26550         * modules/avltree-list-tests (Files): Likewise.
26551         * modules/avltree-oset-tests (Files): Likewise.
26552         * modules/avltreehash-list-tests (Files): Likewise.
26553         * modules/base64-tests (Files): Likewise.
26554         * modules/binary-io-tests (Files): Likewise.
26555         * modules/bitrotate-tests (Files): Likewise.
26556         * modules/btowc-tests (Files): Likewise.
26557         * modules/byteswap-tests (Files): Likewise.
26558         * modules/c-ctype-tests (Files): Likewise.
26559         * modules/c-stack-tests (Files): Likewise.
26560         * modules/c-strcase-tests (Files): Likewise.
26561         * modules/c-strcasestr-tests (Files): Likewise.
26562         * modules/c-strstr-tests (Files): Likewise.
26563         * modules/canonicalize-lgpl-tests (Files): Likewise.
26564         * modules/canonicalize-tests (Files): Likewise.
26565         * modules/carray-list-tests (Files): Likewise.
26566         * modules/ceilf-tests (Files): Likewise.
26567         * modules/ceill-tests (Files): Likewise.
26568         * modules/chown-tests (Files): Likewise.
26569         * modules/cloexec-tests (Files): Likewise.
26570         * modules/copy-file-tests (Files): Likewise.
26571         * modules/count-one-bits-tests (Files): Likewise.
26572         * modules/dprintf-posix-tests (Files): Likewise.
26573         * modules/dup2-tests (Files): Likewise.
26574         * modules/dup3-tests (Files): Likewise.
26575         * modules/duplocale-tests (Files): Likewise.
26576         * modules/fbufmode-tests (Files): Likewise.
26577         * modules/fchdir-tests (Files): Likewise.
26578         * modules/fcntl-safer-tests (Files): Likewise.
26579         * modules/fcntl-tests (Files): Likewise.
26580         * modules/fdopendir-tests (Files): Likewise.
26581         * modules/fdutimensat-tests (Files): Likewise.
26582         * modules/fflush-tests (Files): Likewise.
26583         * modules/filevercmp-tests (Files): Likewise.
26584         * modules/flock-tests (Files): Likewise.
26585         * modules/floorf-tests (Files): Likewise.
26586         * modules/floorl-tests (Files): Likewise.
26587         * modules/fnmatch-tests (Files): Likewise.
26588         * modules/fopen-safer-tests (Files): Likewise.
26589         * modules/fopen-tests (Files): Likewise.
26590         * modules/fpending-tests (Files): Likewise.
26591         * modules/fprintf-posix-tests (Files): Likewise.
26592         * modules/fpurge-tests (Files): Likewise.
26593         * modules/freadable-tests (Files): Likewise.
26594         * modules/freadahead-tests (Files): Likewise.
26595         * modules/freading-tests (Files): Likewise.
26596         * modules/freadptr-tests (Files): Likewise.
26597         * modules/freadseek-tests (Files): Likewise.
26598         * modules/freopen-tests (Files): Likewise.
26599         * modules/frexp-nolibm-tests (Files): Likewise.
26600         * modules/frexp-tests (Files): Likewise.
26601         * modules/frexpl-nolibm-tests (Files): Likewise.
26602         * modules/frexpl-tests (Files): Likewise.
26603         * modules/fseek-tests (Files): Likewise.
26604         * modules/fseeko-tests (Files): Likewise.
26605         * modules/fstrcmp-tests (Files): Likewise.
26606         * modules/fsync-tests (Files): Likewise.
26607         * modules/ftell-tests (Files): Likewise.
26608         * modules/ftello-tests (Files): Likewise.
26609         * modules/func-tests (Files): Likewise.
26610         * modules/futimens-tests (Files): Likewise.
26611         * modules/fwritable-tests (Files): Likewise.
26612         * modules/fwriting-tests (Files): Likewise.
26613         * modules/getcwd-tests (Files): Likewise.
26614         * modules/getdate-tests (Files): Likewise.
26615         * modules/getdelim-tests (Files): Likewise.
26616         * modules/getdtablesize-tests (Files): Likewise.
26617         * modules/getgroups-tests (Files): Likewise.
26618         * modules/getline-tests (Files): Likewise.
26619         * modules/getndelim2-tests (Files): Likewise.
26620         * modules/glob-tests (Files): Likewise.
26621         * modules/hash-tests (Files): Likewise.
26622         * modules/i-ring-tests (Files): Likewise.
26623         * modules/iconv-tests (Files): Likewise.
26624         * modules/iconv_open-utf-tests (Files): Likewise.
26625         * modules/idpriv-drop-tests (Files): Likewise.
26626         * modules/idpriv-droptemp-tests (Files): Likewise.
26627         * modules/inet_ntop-tests (Files): Likewise.
26628         * modules/inet_pton-tests (Files): Likewise.
26629         * modules/isblank-tests (Files): Likewise.
26630         * modules/isfinite-tests (Files): Likewise.
26631         * modules/isinf-tests (Files): Likewise.
26632         * modules/isnan-tests (Files): Likewise.
26633         * modules/isnand-nolibm-tests (Files): Likewise.
26634         * modules/isnand-tests (Files): Likewise.
26635         * modules/isnanf-nolibm-tests (Files): Likewise.
26636         * modules/isnanf-tests (Files): Likewise.
26637         * modules/isnanl-nolibm-tests (Files): Likewise.
26638         * modules/isnanl-tests (Files): Likewise.
26639         * modules/lchown-tests (Files): Likewise.
26640         * modules/ldexpl-tests (Files): Likewise.
26641         * modules/link-tests (Files): Likewise.
26642         * modules/linkat-tests (Files): Likewise.
26643         * modules/linked-list-tests (Files): Likewise.
26644         * modules/linkedhash-list-tests (Files): Likewise.
26645         * modules/localename-tests (Files): Likewise.
26646         * modules/lseek-tests (Files): Likewise.
26647         * modules/lstat-tests (Files): Likewise.
26648         * modules/mbmemcasecmp-tests (Files): Likewise.
26649         * modules/mbmemcasecoll-tests (Files): Likewise.
26650         * modules/mbrtowc-tests (Files): Likewise.
26651         * modules/mbscasecmp-tests (Files): Likewise.
26652         * modules/mbscasestr-tests (Files): Likewise.
26653         * modules/mbschr-tests (Files): Likewise.
26654         * modules/mbscspn-tests (Files): Likewise.
26655         * modules/mbsinit-tests (Files): Likewise.
26656         * modules/mbsncasecmp-tests (Files): Likewise.
26657         * modules/mbsnrtowcs-tests (Files): Likewise.
26658         * modules/mbspbrk-tests (Files): Likewise.
26659         * modules/mbspcasecmp-tests (Files): Likewise.
26660         * modules/mbsrchr-tests (Files): Likewise.
26661         * modules/mbsrtowcs-tests (Files): Likewise.
26662         * modules/mbsspn-tests (Files): Likewise.
26663         * modules/mbsstr-tests (Files): Likewise.
26664         * modules/memchr-tests (Files): Likewise.
26665         * modules/memchr2-tests (Files): Likewise.
26666         * modules/memcmp-tests (Files): Likewise.
26667         * modules/memmem-tests (Files): Likewise.
26668         * modules/memrchr-tests (Files): Likewise.
26669         * modules/mkdir-tests (Files): Likewise.
26670         * modules/mkfifo-tests (Files): Likewise.
26671         * modules/mkfifoat-tests (Files): Likewise.
26672         * modules/mknod-tests (Files): Likewise.
26673         * modules/nanosleep-tests (Files): Likewise.
26674         * modules/nl_langinfo-tests (Files): Likewise.
26675         * modules/obstack-printf-tests (Files): Likewise.
26676         * modules/open-tests (Files): Likewise.
26677         * modules/openat-tests (Files): Likewise.
26678         * modules/pipe-filter-gi-tests (Files): Likewise.
26679         * modules/pipe-filter-ii-tests (Files): Likewise.
26680         * modules/pipe2-tests (Files): Likewise.
26681         * modules/popen-safer-tests (Files): Likewise.
26682         * modules/popen-tests (Files): Likewise.
26683         * modules/posixtm-tests (Files): Likewise.
26684         * modules/pread-tests (Files): Likewise.
26685         * modules/printf-frexp-tests (Files): Likewise.
26686         * modules/printf-frexpl-tests (Files): Likewise.
26687         * modules/printf-posix-tests (Files): Likewise.
26688         * modules/priv-set-tests (Files): Likewise.
26689         * modules/quotearg-tests (Files): Likewise.
26690         * modules/random_r-tests (Files): Likewise.
26691         * modules/rawmemchr-tests (Files): Likewise.
26692         * modules/rbtree-list-tests (Files): Likewise.
26693         * modules/rbtree-oset-tests (Files): Likewise.
26694         * modules/rbtreehash-list-tests (Files): Likewise.
26695         * modules/readlink-tests (Files): Likewise.
26696         * modules/remove-tests (Files): Likewise.
26697         * modules/rename-tests (Files): Likewise.
26698         * modules/renameat-tests (Files): Likewise.
26699         * modules/rmdir-tests (Files): Likewise.
26700         * modules/round-tests (Files): Likewise.
26701         * modules/roundf-tests (Files): Likewise.
26702         * modules/roundl-tests (Files): Likewise.
26703         * modules/safe-alloc-tests (Files): Likewise.
26704         * modules/setenv-tests (Files): Likewise.
26705         * modules/sigaction-tests (Files): Likewise.
26706         * modules/signbit-tests (Files): Likewise.
26707         * modules/sleep-tests (Files): Likewise.
26708         * modules/snprintf-posix-tests (Files): Likewise.
26709         * modules/snprintf-tests (Files): Likewise.
26710         * modules/sprintf-posix-tests (Files): Likewise.
26711         * modules/stat-tests (Files): Likewise.
26712         * modules/stat-time-tests (Files): Likewise.
26713         * modules/strcasestr-tests (Files): Likewise.
26714         * modules/strchrnul-tests (Files): Likewise.
26715         * modules/strerror-tests (Files): Likewise.
26716         * modules/striconv-tests (Files): Likewise.
26717         * modules/striconveh-tests (Files): Likewise.
26718         * modules/striconveha-tests (Files): Likewise.
26719         * modules/strsignal-tests (Files): Likewise.
26720         * modules/strstr-tests (Files): Likewise.
26721         * modules/strtod-tests (Files): Likewise.
26722         * modules/strverscmp-tests (Files): Likewise.
26723         * modules/symlink-tests (Files): Likewise.
26724         * modules/symlinkat-tests (Files): Likewise.
26725         * modules/trunc-tests (Files): Likewise.
26726         * modules/truncf-tests (Files): Likewise.
26727         * modules/truncl-tests (Files): Likewise.
26728         * modules/uname-tests (Files): Likewise.
26729         * modules/unicase/cased-tests (Files): Likewise.
26730         * modules/unicase/ignorable-tests (Files): Likewise.
26731         * modules/unicase/locale-language-tests (Files): Likewise.
26732         * modules/unicase/tolower-tests (Files): Likewise.
26733         * modules/unicase/totitle-tests (Files): Likewise.
26734         * modules/unicase/toupper-tests (Files): Likewise.
26735         * modules/unicase/u8-casecmp-tests (Files): Likewise.
26736         * modules/unicase/u8-casecoll-tests (Files): Likewise.
26737         * modules/unicase/u8-casefold-tests (Files): Likewise.
26738         * modules/unicase/u8-is-cased-tests (Files): Likewise.
26739         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
26740         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
26741         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
26742         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
26743         * modules/unicase/u8-tolower-tests (Files): Likewise.
26744         * modules/unicase/u8-totitle-tests (Files): Likewise.
26745         * modules/unicase/u8-toupper-tests (Files): Likewise.
26746         * modules/unicase/u16-casecmp-tests (Files): Likewise.
26747         * modules/unicase/u16-casecoll-tests (Files): Likewise.
26748         * modules/unicase/u16-casefold-tests (Files): Likewise.
26749         * modules/unicase/u16-is-cased-tests (Files): Likewise.
26750         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
26751         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
26752         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
26753         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
26754         * modules/unicase/u16-tolower-tests (Files): Likewise.
26755         * modules/unicase/u16-totitle-tests (Files): Likewise.
26756         * modules/unicase/u16-toupper-tests (Files): Likewise.
26757         * modules/unicase/u32-casecmp-tests (Files): Likewise.
26758         * modules/unicase/u32-casecoll-tests (Files): Likewise.
26759         * modules/unicase/u32-casefold-tests (Files): Likewise.
26760         * modules/unicase/u32-is-cased-tests (Files): Likewise.
26761         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
26762         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
26763         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
26764         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
26765         * modules/unicase/u32-tolower-tests (Files): Likewise.
26766         * modules/unicase/u32-totitle-tests (Files): Likewise.
26767         * modules/unicase/u32-toupper-tests (Files): Likewise.
26768         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
26769         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
26770         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
26771         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
26772         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
26773         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
26774         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
26775         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
26776         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
26777         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
26778         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
26779         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
26780         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
26781         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
26782         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
26783         * modules/unictype/bidicategory-name-tests (Files): Likewise.
26784         * modules/unictype/bidicategory-of-tests (Files): Likewise.
26785         * modules/unictype/bidicategory-test-tests (Files): Likewise.
26786         * modules/unictype/block-list-tests (Files): Likewise.
26787         * modules/unictype/block-of-tests (Files): Likewise.
26788         * modules/unictype/block-test-tests (Files): Likewise.
26789         * modules/unictype/category-C-tests (Files): Likewise.
26790         * modules/unictype/category-Cc-tests (Files): Likewise.
26791         * modules/unictype/category-Cf-tests (Files): Likewise.
26792         * modules/unictype/category-Cn-tests (Files): Likewise.
26793         * modules/unictype/category-Co-tests (Files): Likewise.
26794         * modules/unictype/category-Cs-tests (Files): Likewise.
26795         * modules/unictype/category-L-tests (Files): Likewise.
26796         * modules/unictype/category-Ll-tests (Files): Likewise.
26797         * modules/unictype/category-Lm-tests (Files): Likewise.
26798         * modules/unictype/category-Lo-tests (Files): Likewise.
26799         * modules/unictype/category-Lt-tests (Files): Likewise.
26800         * modules/unictype/category-Lu-tests (Files): Likewise.
26801         * modules/unictype/category-M-tests (Files): Likewise.
26802         * modules/unictype/category-Mc-tests (Files): Likewise.
26803         * modules/unictype/category-Me-tests (Files): Likewise.
26804         * modules/unictype/category-Mn-tests (Files): Likewise.
26805         * modules/unictype/category-N-tests (Files): Likewise.
26806         * modules/unictype/category-Nd-tests (Files): Likewise.
26807         * modules/unictype/category-Nl-tests (Files): Likewise.
26808         * modules/unictype/category-No-tests (Files): Likewise.
26809         * modules/unictype/category-P-tests (Files): Likewise.
26810         * modules/unictype/category-Pc-tests (Files): Likewise.
26811         * modules/unictype/category-Pd-tests (Files): Likewise.
26812         * modules/unictype/category-Pe-tests (Files): Likewise.
26813         * modules/unictype/category-Pf-tests (Files): Likewise.
26814         * modules/unictype/category-Pi-tests (Files): Likewise.
26815         * modules/unictype/category-Po-tests (Files): Likewise.
26816         * modules/unictype/category-Ps-tests (Files): Likewise.
26817         * modules/unictype/category-S-tests (Files): Likewise.
26818         * modules/unictype/category-Sc-tests (Files): Likewise.
26819         * modules/unictype/category-Sk-tests (Files): Likewise.
26820         * modules/unictype/category-Sm-tests (Files): Likewise.
26821         * modules/unictype/category-So-tests (Files): Likewise.
26822         * modules/unictype/category-Z-tests (Files): Likewise.
26823         * modules/unictype/category-Zl-tests (Files): Likewise.
26824         * modules/unictype/category-Zp-tests (Files): Likewise.
26825         * modules/unictype/category-Zs-tests (Files): Likewise.
26826         * modules/unictype/category-and-not-tests (Files): Likewise.
26827         * modules/unictype/category-and-tests (Files): Likewise.
26828         * modules/unictype/category-byname-tests (Files): Likewise.
26829         * modules/unictype/category-name-tests (Files): Likewise.
26830         * modules/unictype/category-none-tests (Files): Likewise.
26831         * modules/unictype/category-of-tests (Files): Likewise.
26832         * modules/unictype/category-or-tests (Files): Likewise.
26833         * modules/unictype/category-test-withtable-tests (Files): Likewise.
26834         * modules/unictype/combining-class-tests (Files): Likewise.
26835         * modules/unictype/ctype-alnum-tests (Files): Likewise.
26836         * modules/unictype/ctype-alpha-tests (Files): Likewise.
26837         * modules/unictype/ctype-blank-tests (Files): Likewise.
26838         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
26839         * modules/unictype/ctype-digit-tests (Files): Likewise.
26840         * modules/unictype/ctype-graph-tests (Files): Likewise.
26841         * modules/unictype/ctype-lower-tests (Files): Likewise.
26842         * modules/unictype/ctype-print-tests (Files): Likewise.
26843         * modules/unictype/ctype-punct-tests (Files): Likewise.
26844         * modules/unictype/ctype-space-tests (Files): Likewise.
26845         * modules/unictype/ctype-upper-tests (Files): Likewise.
26846         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
26847         * modules/unictype/decimal-digit-tests (Files): Likewise.
26848         * modules/unictype/digit-tests (Files): Likewise.
26849         * modules/unictype/mirror-tests (Files): Likewise.
26850         * modules/unictype/numeric-tests (Files): Likewise.
26851         * modules/unictype/property-alphabetic-tests (Files): Likewise.
26852         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
26853         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
26854         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
26855         Likewise.
26856         * modules/unictype/property-bidi-block-separator-tests (Files):
26857         Likewise.
26858         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
26859         Likewise.
26860         * modules/unictype/property-bidi-common-separator-tests (Files):
26861         Likewise.
26862         * modules/unictype/property-bidi-control-tests (Files): Likewise.
26863         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
26864         Likewise.
26865         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
26866         Likewise.
26867         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
26868         Likewise.
26869         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
26870         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
26871         Likewise.
26872         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
26873         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
26874         Likewise.
26875         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
26876         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
26877         * modules/unictype/property-bidi-segment-separator-tests (Files):
26878         Likewise.
26879         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
26880         * modules/unictype/property-byname-tests (Files): Likewise.
26881         * modules/unictype/property-combining-tests (Files): Likewise.
26882         * modules/unictype/property-composite-tests (Files): Likewise.
26883         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
26884         * modules/unictype/property-dash-tests (Files): Likewise.
26885         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
26886         * modules/unictype/property-default-ignorable-code-point-tests (Files):
26887         Likewise.
26888         * modules/unictype/property-deprecated-tests (Files): Likewise.
26889         * modules/unictype/property-diacritic-tests (Files): Likewise.
26890         * modules/unictype/property-extender-tests (Files): Likewise.
26891         * modules/unictype/property-format-control-tests (Files): Likewise.
26892         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
26893         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
26894         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
26895         * modules/unictype/property-hex-digit-tests (Files): Likewise.
26896         * modules/unictype/property-hyphen-tests (Files): Likewise.
26897         * modules/unictype/property-id-continue-tests (Files): Likewise.
26898         * modules/unictype/property-id-start-tests (Files): Likewise.
26899         * modules/unictype/property-ideographic-tests (Files): Likewise.
26900         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
26901         * modules/unictype/property-ids-trinary-operator-tests (Files):
26902         Likewise.
26903         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
26904         * modules/unictype/property-iso-control-tests (Files): Likewise.
26905         * modules/unictype/property-join-control-tests (Files): Likewise.
26906         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
26907         * modules/unictype/property-line-separator-tests (Files): Likewise.
26908         * modules/unictype/property-logical-order-exception-tests (Files):
26909         Likewise.
26910         * modules/unictype/property-lowercase-tests (Files): Likewise.
26911         * modules/unictype/property-math-tests (Files): Likewise.
26912         * modules/unictype/property-non-break-tests (Files): Likewise.
26913         * modules/unictype/property-not-a-character-tests (Files): Likewise.
26914         * modules/unictype/property-numeric-tests (Files): Likewise.
26915         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
26916         * modules/unictype/property-other-default-ignorable-code-point-tests
26917         (Files): Likewise.
26918         * modules/unictype/property-other-grapheme-extend-tests (Files):
26919         Likewise.
26920         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
26921         * modules/unictype/property-other-id-start-tests (Files): Likewise.
26922         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
26923         * modules/unictype/property-other-math-tests (Files): Likewise.
26924         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
26925         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
26926         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
26927         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
26928         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
26929         * modules/unictype/property-private-use-tests (Files): Likewise.
26930         * modules/unictype/property-punctuation-tests (Files): Likewise.
26931         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
26932         * modules/unictype/property-radical-tests (Files): Likewise.
26933         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
26934         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
26935         * modules/unictype/property-space-tests (Files): Likewise.
26936         * modules/unictype/property-terminal-punctuation-tests (Files):
26937         Likewise.
26938         * modules/unictype/property-test-tests (Files): Likewise.
26939         * modules/unictype/property-titlecase-tests (Files): Likewise.
26940         * modules/unictype/property-unassigned-code-value-tests (Files):
26941         Likewise.
26942         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
26943         * modules/unictype/property-uppercase-tests (Files): Likewise.
26944         * modules/unictype/property-variation-selector-tests (Files): Likewise.
26945         * modules/unictype/property-white-space-tests (Files): Likewise.
26946         * modules/unictype/property-xid-continue-tests (Files): Likewise.
26947         * modules/unictype/property-xid-start-tests (Files): Likewise.
26948         * modules/unictype/property-zero-width-tests (Files): Likewise.
26949         * modules/unictype/scripts-tests (Files): Likewise.
26950         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
26951         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
26952         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
26953         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
26954         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
26955         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
26956         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
26957         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
26958         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
26959         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
26960         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
26961         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
26962         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
26963         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
26964         * modules/uninorm/composition-tests (Files): Likewise.
26965         * modules/uninorm/decomposing-form-tests (Files): Likewise.
26966         * modules/uninorm/decomposition-tests (Files): Likewise.
26967         * modules/uninorm/filter-tests (Files): Likewise.
26968         * modules/uninorm/nfc-tests (Files): Likewise.
26969         * modules/uninorm/nfd-tests (Files): Likewise.
26970         * modules/uninorm/nfkc-tests (Files): Likewise.
26971         * modules/uninorm/nfkd-tests (Files): Likewise.
26972         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
26973         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
26974         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
26975         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
26976         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
26977         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
26978         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
26979         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
26980         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
26981         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
26982         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
26983         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
26984         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
26985         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
26986         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
26987         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
26988         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
26989         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
26990         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
26991         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
26992         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
26993         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
26994         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
26995         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
26996         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
26997         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
26998         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
26999         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
27000         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
27001         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
27002         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
27003         * modules/uniwidth/u8-width-tests (Files): Likewise.
27004         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
27005         * modules/uniwidth/u16-width-tests (Files): Likewise.
27006         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
27007         * modules/uniwidth/u32-width-tests (Files): Likewise.
27008         * modules/uniwidth/width-tests (Files): Likewise.
27009         * modules/unlink-tests (Files): Likewise.
27010         * modules/unsetenv-tests (Files): Likewise.
27011         * modules/usleep-tests (Files): Likewise.
27012         * modules/utimens-tests (Files): Likewise.
27013         * modules/utimensat-tests (Files): Likewise.
27014         * modules/vasnprintf-posix-tests (Files): Likewise.
27015         * modules/vasnprintf-tests (Files): Likewise.
27016         * modules/vasprintf-posix-tests (Files): Likewise.
27017         * modules/vasprintf-tests (Files): Likewise.
27018         * modules/vdprintf-posix-tests (Files): Likewise.
27019         * modules/vfprintf-posix-tests (Files): Likewise.
27020         * modules/vprintf-posix-tests (Files): Likewise.
27021         * modules/vsnprintf-posix-tests (Files): Likewise.
27022         * modules/vsnprintf-tests (Files): Likewise.
27023         * modules/vsprintf-posix-tests (Files): Likewise.
27024         * modules/wcrtomb-tests (Files): Likewise.
27025         * modules/wcsnrtombs-tests (Files): Likewise.
27026         * modules/wcsrtombs-tests (Files): Likewise.
27027         * modules/wctype-tests (Files): Likewise.
27028         * modules/wcwidth-tests (Files): Likewise.
27029         * modules/xmemdup0-tests (Files): Likewise.
27030         * modules/xprintf-posix-tests (Files): Likewise.
27031         * modules/xvasprintf-tests (Files): Likewise.
27032
27033 2009-12-24  Eric Blake  <ebb9@byu.net>
27034
27035         test-nanosleep: fix typo
27036         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
27037         patch.
27038         Reported by Bruno Haible.
27039
27040 2009-12-24  Bruno Haible  <bruno@clisp.org>
27041
27042         Reduce namespace pollution on glibc systems.
27043         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
27044         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
27045         systems.
27046         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
27047         <getopt.h> on glibc systems.
27048         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
27049         systems.
27050         * lib/fcntl.c: Include <unistd.h> here instead.
27051
27052 2009-12-24  Bruno Haible  <bruno@clisp.org>
27053
27054         * lib/stdlib.in.h (includes): Fix typo in today's commit.
27055
27056 2009-12-24  Eric Blake  <ebb9@byu.net>
27057
27058         tests: add signature checks
27059         * tests/signature.h (SIGNATURE_CHECK): New file.
27060         * modules/atexit-tests (Files): Use it.
27061         * modules/btowc-tests (Files): Likewise.
27062         * modules/canonicalize-lgpl-tests (Files): Likewise.
27063         * modules/ceilf-tests (Files): Likewise.
27064         * modules/ceill-tests (Files): Likewise.
27065         * modules/chown-tests (Files): Likewise.
27066         * modules/dprintf-posix-tests (Files): Likewise.
27067         * modules/dup2-tests (Files): Likewise.
27068         * modules/dup3-tests (Files): Likewise.
27069         * modules/duplocale-tests (Files): Likewise.
27070         * modules/fchdir-tests (Files): Likewise.
27071         * modules/fcntl-tests (Files): Likewise.
27072         * modules/fdopendir-tests (Files): Likewise.
27073         * modules/fflush-tests (Files): Likewise.
27074         * modules/flock-tests (Files): Likewise.
27075         * modules/floorf-tests (Files): Likewise.
27076         * modules/floorl-tests (Files): Likewise.
27077         * modules/fnmatch-tests (Files): Likewise.
27078         * modules/fopen-tests (Files): Likewise.
27079         * modules/fprintf-posix-tests (Files): Likewise.
27080         * modules/freopen-tests (Files): Likewise.
27081         * modules/frexp-nolibm-tests (Files): Likewise.
27082         * modules/frexp-tests (Files): Likewise.
27083         * modules/frexpl-nolibm-tests (Files): Likewise.
27084         * modules/frexpl-tests (Files): Likewise.
27085         * modules/fseek-tests (Files): Likewise.
27086         * modules/fseeko-tests (Files): Likewise.
27087         * modules/fsync-tests (Files): Likewise.
27088         * modules/ftell-tests (Files): Likewise.
27089         * modules/ftello-tests (Files): Likewise.
27090         * modules/futimens-tests (Files): Likewise.
27091         * modules/getaddrinfo-tests (Files): Likewise.
27092         * modules/getcwd-tests (Files): Likewise.
27093         * modules/getdelim-tests (Files): Likewise.
27094         * modules/getdtablesize-tests (Files): Likewise.
27095         * modules/getgroups-tests (Files): Likewise.
27096         * modules/gethostname-tests (Files): Likewise.
27097         * modules/getline-tests (Files): Likewise.
27098         * modules/getopt-posix-tests (Files): Likewise.
27099         * modules/gettimeofday-tests (Files): Likewise.
27100         * modules/glob-tests (Files): Likewise.
27101         * modules/iconv-tests (Files): Likewise.
27102         * modules/inet_ntop-tests (Files): Likewise.
27103         * modules/inet_pton-tests (Files): Likewise.
27104         * modules/isblank-tests (Files): Likewise.
27105         * modules/lchown-tests (Files): Likewise.
27106         * modules/ldexpl-tests (Files): Likewise.
27107         * modules/link-tests (Files): Likewise.
27108         * modules/linkat-tests (Files): Likewise.
27109         * modules/lseek-tests (Files): Likewise.
27110         * modules/lstat-tests (Files): Likewise.
27111         * modules/mbrtowc-tests (Files): Likewise.
27112         * modules/mbsinit-tests (Files): Likewise.
27113         * modules/mbsnrtowcs-tests (Files): Likewise.
27114         * modules/mbsrtowcs-tests (Files): Likewise.
27115         * modules/memchr-tests (Files): Likewise.
27116         * modules/memcmp-tests (Files): Likewise.
27117         * modules/memmem-tests (Files): Likewise.
27118         * modules/memrchr-tests (Files): Likewise.
27119         * modules/mkdir-tests (Files): Likewise.
27120         * modules/mkfifo-tests (Files): Likewise.
27121         * modules/mkfifoat-tests (Files): Likewise.
27122         * modules/mknod-tests (Files): Likewise.
27123         * modules/nanosleep-tests (Files): Likewise.
27124         * modules/nl_langinfo-tests (Files): Likewise.
27125         * modules/obstack-printf-tests (Files): Likewise.
27126         * modules/open-tests (Files): Likewise.
27127         * modules/openat-tests (Files): Likewise.
27128         * modules/perror-tests (Files): Likewise.
27129         * modules/pipe2-tests (Files): Likewise.
27130         * modules/poll-tests (Files): Likewise.
27131         * modules/popen-tests (Files): Likewise.
27132         * modules/posix_spawn-tests (Files): Likewise.
27133         * modules/posix_spawnp-tests (Files): Likewise.
27134         * modules/pread-tests (Files): Likewise.
27135         * modules/printf-posix-tests (Files): Likewise.
27136         * modules/pty-tests (Files): Likewise.
27137         * modules/random_r-tests (Files): Likewise.
27138         * modules/rawmemchr-tests (Files): Likewise.
27139         * modules/readlink-tests (Files): Likewise.
27140         * modules/remove-tests (Files): Likewise.
27141         * modules/rename-tests (Files): Likewise.
27142         * modules/renameat-tests (Files): Likewise.
27143         * modules/rmdir-tests (Files): Likewise.
27144         * modules/round-tests (Files): Likewise.
27145         * modules/roundf-tests (Files): Likewise.
27146         * modules/roundl-tests (Files): Likewise.
27147         * modules/select-tests (Files): Likewise.
27148         * modules/setenv-tests (Files): Likewise.
27149         * modules/sigaction-tests (Files): Likewise.
27150         * modules/sleep-tests (Files): Likewise.
27151         * modules/snprintf-posix-tests (Files): Likewise.
27152         * modules/snprintf-tests (Files): Likewise.
27153         * modules/sprintf-posix-tests (Files): Likewise.
27154         * modules/stat-tests (Files): Likewise.
27155         * modules/strcasestr-tests (Files): Likewise.
27156         * modules/strchrnul-tests (Files): Likewise.
27157         * modules/strerror-tests (Files): Likewise.
27158         * modules/strsignal-tests (Files): Likewise.
27159         * modules/strstr-tests (Files): Likewise.
27160         * modules/strtod-tests (Files): Likewise.
27161         * modules/strverscmp-tests (Files): Likewise.
27162         * modules/symlink-tests (Files): Likewise.
27163         * modules/symlinkat-tests (Files): Likewise.
27164         * modules/times-tests (Files): Likewise.
27165         * modules/trunc-tests (Files): Likewise.
27166         * modules/truncf-tests (Files): Likewise.
27167         * modules/truncl-tests (Files): Likewise.
27168         * modules/tsearch-tests (Files): Likewise.
27169         * modules/uname-tests (Files): Likewise.
27170         * modules/unlink-tests (Files): Likewise.
27171         * modules/unsetenv-tests (Files): Likewise.
27172         * modules/usleep-tests (Files): Likewise.
27173         * modules/utimensat-tests (Files): Likewise.
27174         * modules/vasprintf-tests (Files): Likewise.
27175         * modules/vdprintf-posix-tests (Files): Likewise.
27176         * modules/vfprintf-posix-tests (Files): Likewise.
27177         * modules/vprintf-posix-tests (Files): Likewise.
27178         * modules/vsnprintf-posix-tests (Files): Likewise.
27179         * modules/vsnprintf-tests (Files): Likewise.
27180         * modules/vsprintf-posix-tests (Files): Likewise.
27181         * modules/wcrtomb-tests (Files): Likewise.
27182         * modules/wcsnrtombs-tests (Files): Likewise.
27183         * modules/wcsrtombs-tests (Files): Likewise.
27184         * modules/wcwidth-tests (Files): Likewise.
27185         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
27186         * tests/test-isinf.c (isinf): Likewise.
27187         * tests/test-isnan.c (isnan): Likewise.
27188         * tests/test-signbit.c (signbit): Likewise.
27189         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
27190         declaration, either as macro or with correct signature.
27191         (select): Ensure function under test is declared with correct
27192         signature in correct header.
27193         * tests/test-atexit.c (atexit): Likewise.
27194         * tests/test-btowc.c (btowc): Likewise.
27195         * tests/test-canonicalize-lgpl.c (realpath)
27196         (canonicalize_file_name): Likewise.
27197         * tests/test-ceilf1.c (ceilf): Likewise.
27198         * tests/test-ceill.c (ceill): Likewise.
27199         * tests/test-chown.c (chown): Likewise.
27200         * tests/test-dprintf-posix.c (dprintf): Likewise.
27201         * tests/test-dup2.c (dup2): Likewise.
27202         * tests/test-dup3.c (dup3): Likewise.
27203         * tests/test-duplocale.c (duplocale): Likewise.
27204         * tests/test-fchdir.c (fchdir): Likewise.
27205         * tests/test-fchownat.c (fchownat): Likewise.
27206         * tests/test-fcntl.c (fcntl): Likewise.
27207         * tests/test-fdopendir.c (fdopendir): Likewise.
27208         * tests/test-fflush.c (fflush): Likewise.
27209         * tests/test-flock.c (flock): Likewise.
27210         * tests/test-floorf1.c (floorf): Likewise.
27211         * tests/test-floorl.c (floorl): Likewise.
27212         * tests/test-fnmatch.c (fnmatch): Likewise.
27213         * tests/test-fopen.c (fopen): Likewise.
27214         * tests/test-fprintf-posix.c (fprintf): Likewise.
27215         * tests/test-freopen.c (freopen): Likewise.
27216         * tests/test-frexp.c (frexp): Likewise.
27217         * tests/test-frexpl.c (frexpl): Likewise.
27218         * tests/test-fseek.c (fseek): Likewise.
27219         * tests/test-fseeko.c (fseeko): Likewise.
27220         * tests/test-fstatat.c (fstatat): Likewise.
27221         * tests/test-fsync.c (fsync): Likewise.
27222         * tests/test-ftell.c (ftell): Likewise.
27223         * tests/test-ftello.c (ftello): Likewise.
27224         * tests/test-futimens.c (futimens): Likewise.
27225         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
27226         (gai_strerror): Likewise.
27227         * tests/test-getcwd.c (getcwd): Likewise.
27228         * tests/test-getdelim.c (getdelim): Likewise.
27229         * tests/test-getdtablesize.c (getdtablesize): Likewise.
27230         * tests/test-getgroups.c (getgroups): Likewise.
27231         * tests/test-gethostname.c (gethostname): Likewise.
27232         * tests/test-getline.c (getline): Likewise.
27233         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
27234         Likewise.
27235         * tests/test-gettimeofday.c (gettimeofday): Likewise.
27236         * tests/test-glob.c (glob, globfree): Likewise.
27237         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
27238         * tests/test-inet_ntop.c (inet_ntop): Likewise.
27239         * tests/test-inet_pton.c (inet_pton): Likewise.
27240         * tests/test-isblank.c (isblank): Likewise.
27241         * tests/test-lchown.c (lchown): Likewise.
27242         * tests/test-ldexpl.c (ldexpl): Likewise.
27243         * tests/test-link.c (link): Likewise.
27244         * tests/test-linkat.c (linkat): Likewise.
27245         * tests/test-lseek.c (lseek): Likewise.
27246         * tests/test-lstat.c (lstat): Likewise.
27247         * tests/test-mbrtowc.c (mbrtowc): Likewise.
27248         * tests/test-mbsinit.c (mbsinit): Likewise.
27249         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
27250         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
27251         * tests/test-memchr.c (memchr): Likewise.
27252         * tests/test-memcmp.c (memcmp): Likewise.
27253         * tests/test-memmem.c (memmem): Likewise.
27254         * tests/test-memrchr.c (memrchr): Likewise.
27255         * tests/test-mkdir.c (mkdir): Likewise.
27256         * tests/test-mkdirat.c (mkdirat): Likewise.
27257         * tests/test-mkfifo.c (mkfifo): Likewise.
27258         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
27259         * tests/test-mknod.c (mknod): Likewise.
27260         * tests/test-nanosleep.c (nanosleep): Likewise.
27261         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
27262         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
27263         Likewise.
27264         * tests/test-open.c (open): Likewise.
27265         * tests/test-openat.c (openat): Likewise.
27266         * tests/test-perror.c (perror): Likewise.
27267         * tests/test-pipe2.c (pipe2): Likewise.
27268         * tests/test-poll.c (poll): Likewise.
27269         * tests/test-popen.c (popen, pclose): Likewise.
27270         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
27271         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
27272         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
27273         (posix_spawn_file_actions_destroy)
27274         (posix_spawn_file_actions_addclose)
27275         (posix_spawn_file_actions_addopen)
27276         (posix_spawn_file_actions_adddup2): Likewise.
27277         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
27278         * tests/test-pread.c (pread): Likewise.
27279         * tests/test-printf-posix.c (printf): Likewise.
27280         * tests/test-pty.c (openpty, forkpty): Likewise.
27281         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
27282         (random_r): Likewise.
27283         * tests/test-rawmemchr.c (rawmemchr): Likewise.
27284         * tests/test-readlink.c (readlink): Likewise.
27285         * tests/test-remove.c (remove): Likewise.
27286         * tests/test-rename.c (rename): Likewise.
27287         * tests/test-renameat.c (renameat): Likewise.
27288         * tests/test-rmdir.c (rmdir): Likewise.
27289         * tests/test-round1.c (round): Likewise.
27290         * tests/test-roundf1.c (roundf): Likewise.
27291         * tests/test-roundl.c (roundl): Likewise.
27292         * tests/test-setenv.c (setenv): Likewise.
27293         * tests/test-sigaction.c (sigaction): Likewise.
27294         * tests/test-sleep.c (sleep): Likewise.
27295         * tests/test-snprintf.c (snprintf): Likewise.
27296         * tests/test-sprintf-posix.c (sprintf): Likewise.
27297         * tests/test-stat.c (stat): Likewise.
27298         * tests/test-stpncpy.c (stpncpy): Likewise.
27299         * tests/test-strcasestr.c (strcasestr): Likewise.
27300         * tests/test-strchrnul.c (strchrnul): Likewise.
27301         * tests/test-strerror.c (strerror): Likewise.
27302         * tests/test-strsignal.c (strsignal): Likewise.
27303         * tests/test-strstr.c (strstr): Likewise.
27304         * tests/test-strtod.c (strtod): Likewise.
27305         * tests/test-strverscmp.c (strverscmp): Likewise.
27306         * tests/test-symlink.c (symlink): Likewise.
27307         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
27308         * tests/test-times.c (times): Likewise.
27309         * tests/test-trunc1.c (trunc): Likewise.
27310         * tests/test-truncf1.c (truncf): Likewise.
27311         * tests/test-truncl.c (truncl): Likewise.
27312         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
27313         Likewise.
27314         * tests/test-uname.c (uname): Likewise.
27315         * tests/test-unlink.c (unlink): Likewise.
27316         * tests/test-unlinkat.c (unlinkat): Likewise.
27317         * tests/test-unsetenv.c (unsetenv): Likewise.
27318         * tests/test-usleep.c (usleep): Likewise.
27319         * tests/test-utimensat.c (utimensat): Likewise.
27320         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
27321         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
27322         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
27323         * tests/test-vprintf-posix.c (vprintf): Likewise.
27324         * tests/test-vsnprintf.c (vsnprintf): Likewise.
27325         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
27326         * tests/test-wcrtomb.c (wcrtomb): Likewise.
27327         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
27328         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
27329         * tests/test-wcwidth.c (wcwidth): Likewise.
27330
27331         build: pull in conditional headers during GNULIB_POSIXCHECK
27332         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
27333         definitions from any conditionally-included headers.
27334         * lib/stdlib.in.h (includes): Likewise.
27335         * lib/unistd.in.h (includes): Likewise.
27336
27337 2009-12-24  Bruno Haible  <bruno@clisp.org>
27338
27339         * tests/test-argv-iter.c: Include header file being tested immediately
27340         after config.h.
27341         * tests/test-base64.c: Likewise.
27342         * tests/test-flock.c: Likewise.
27343         * tests/test-fsync.c: Likewise.
27344         * tests/test-getdate.c: Likewise.
27345         * tests/test-getndelim2.c: Likewise.
27346         * tests/test-isfinite.c: Likewise.
27347         * tests/test-isinf.c: Likewise.
27348         * tests/test-strerror.c: Likewise.
27349         * tests/test-strsignal.c: Likewise.
27350
27351 2009-12-23  Eric Blake  <ebb9@byu.net>
27352
27353         unistd: work around cygwin bug
27354         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
27355         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
27356         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
27357
27358 2009-12-23  Bruno Haible  <bruno@clisp.org>
27359
27360         localename: More tests.
27361         * tests/test-localename.c (SIZEOF): New macro.
27362         (categories): New variable.
27363         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
27364         test_locale_name_default): Add test w.r.t. thread locale.
27365         (test_locale_name_thread): New function.
27366         (main): Invoke it.
27367
27368         localename: Make aware of thread locale.
27369         * lib/localename.h (gl_locale_name_thread): New declaration.
27370         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
27371         behaviour with respect to thread locale.
27372         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
27373         <langinfo.h>, glthread/lock.h.
27374         (SIZE_BITS): New macro.
27375         (string_hash): New function.
27376         (struct hash_node): New type.
27377         (HASH_TABLE_SIZE): New macro.
27378         (struniq_hash_table, struniq_lock): New variables.
27379         (struniq): New function.
27380         (gl_locale_name_thread): New function.
27381         (gl_locale_name): Invoke it.
27382         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
27383         * modules/localename (Depends-on): Add lock.
27384         Reported by Mike Gran <spk121@yahoo.com>.
27385
27386 2009-12-23  Eric Blake  <ebb9@byu.net>
27387
27388         va-args: new module
27389         * modules/va-args: New file.
27390         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
27391         * MODULES.html.sh (Core language properties): Mention it.
27392
27393         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
27394         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
27395         named alias for __attribute__((__unused__)).
27396         * lib/chown.c: Update client.
27397         * lib/fchmodat.c: Likewise.
27398         * lib/fts.c: Likewise.
27399         * lib/getdate.y: Likewise.
27400         * lib/getgroups.c: Likewise.
27401         * lib/getopt.c: Likewise.
27402         * lib/getugroups.c: Likewise.
27403         * lib/mkdir.c: Likewise.
27404         * lib/mkfifo.c: Likewise.
27405         * lib/mkfifoat.c: Likewise.
27406         * lib/mknod.c: Likewise.
27407         * lib/mknodat.c: Likewise.
27408         * lib/readlink.c: Likewise.
27409         * lib/se-context.in.h: Likewise.
27410         * lib/se-selinux.in.h: Likewise.
27411         * lib/sockets.c: Likewise.
27412         * lib/symlink.c: Likewise.
27413         * lib/symlinkat.c: Likewise.
27414         * lib/unicodeio.c: Likewise.
27415         * lib/unistr.h: Likewise.
27416         * tests/test-areadlink.c: Likewise.
27417         * tests/test-areadlinkat.c: Likewise.
27418         * tests/test-filenamecat.c: Likewise.
27419         * tests/test-fseeko.c: Likewise.
27420         * tests/test-ftello.c: Likewise.
27421         * tests/test-getdate.c: Likewise.
27422         * tests/test-getgroups.c: Likewise.
27423         * tests/test-gethostname.c: Likewise.
27424         * tests/test-quotearg.c: Likewise.
27425         * tests/test-version-etc.c: Likewise.
27426         * tests/test-xalloc-die.c: Likewise.
27427         * tests/test-xfprintf-posix.c: Likewise.
27428         * tests/test-xprintf-posix.c: Likewise.
27429         * tests/test-xvasprintf.c: Likewise.
27430
27431         tests: avoid compiler warnings
27432         * tests/test-fcntl.c (main): Delete unused parameters.
27433         * tests/test-freopen-safer.c (main): Likewise.
27434         * tests/test-xalloc-die.c (main): Mark unused parameters.
27435         * tests/test-fseeko.c (main): Likewise.
27436         * tests/test-ftello.c (main): Likewise.
27437         * tests/test-nanosleep.c (main): Avoid declaration warning.
27438         * tests/test-sleep.c (main): Likewise.
27439         * tests/test-unsetenv.c (main): Silence warning about string
27440         literal.
27441         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
27442
27443 2009-12-23  Bruno Haible  <bruno@clisp.org>
27444
27445         * tests/test-localename.c (test_locale_name): New function, extracted
27446         from main. Also test mixed situations.
27447         (test_locale_name_posix, test_locale_name_environ,
27448         test_locale_name_default): New functions.
27449         (main): Invoke them all.
27450         * modules/localename-tests (configure.ac): Test for newlocale.
27451
27452 2009-12-23  Bruno Haible  <bruno@clisp.org>
27453
27454         unistd: Ensure getcwd gets declared before being overridden.
27455         * lib/unistd.in.h: Conditionally include <io.h>.
27456
27457 2009-12-22  Bruno Haible  <bruno@clisp.org>
27458
27459         wchar: Diagnose broken combination of glibc and gcc versions and flags.
27460         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
27461         (gl_WCHAR_H): Invoke it.
27462         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
27463         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
27464         Reported by Karl Berry <karl@freefriends.org>.
27465
27466 2009-12-22  Eric Blake  <ebb9@byu.net>
27467
27468         math, unistd: avoid redundant includes
27469         * lib/math.in.h (isnan): No need to re-include <math.h>.
27470         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
27471
27472         getsubopt: work around cygwin bug
27473         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
27474         avoid conflicting with system getsubopt.
27475         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
27476         bug.
27477
27478         getopt: synchronize from glibc
27479         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
27480         parameter order.  Adjust all callers.
27481         (_getopt_internal_r, main): Adjust quoting in error messages.
27482         Drop considerations for outdated POSIX 1003.2 error message.
27483         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
27484         callers.
27485         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
27486
27487         test-getopt: test stderr behavior
27488         * modules/getopt-posix-tests (Depends-on): Add dup2.
27489         * tests/test-getopt.c (ASSERT): Avoid stderr.
27490         (main): Move stderr to a temporary file.
27491         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
27492         Instead, add parameter to inform caller if output occurred.
27493         (test_getopt): Adjust all existing tests to expect silence, and
27494         add new tests of leading ":".
27495         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
27496         glibc shortcomings with leading "-:" or "+:" in optstring.
27497         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
27498         Likewise.
27499         * doc/posix-functions/getopt.texi (getopt): Likewise.
27500
27501         test-getopt: enhance test
27502         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
27503         supports optind=0.
27504         * tests/test-getopt.c (OPTIND_MIN): Move...
27505         * tests/test-getopt.h (OPTIND_MIN): ...here.
27506         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
27507         Require that optind=0 works, since modern BSD supports it in
27508         addition to optreset, and since coreutils expects it.
27509         (test_getopt_long_only): New test.
27510         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
27511         glibc shortcomings with 'W;', and enforcement of optind=0.
27512         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
27513         Likewise.
27514
27515 2009-12-21  Bruno Haible  <bruno@clisp.org>
27516
27517         localename: Improvements for MacOS X and Cygwin.
27518         * lib/localename.h (gl_locale_name_environ): New declaration.
27519         * lib/localename.c (gl_locale_name_environ): New function, extracted from
27520         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
27521         (gl_locale_name_posix): Invoke it.
27522         (gl_locale_name_default): Add comments. Use Windows native API also on
27523         Cygwin.
27524
27525 2009-12-21  Bruno Haible  <bruno@clisp.org>
27526
27527         Update list of Win32 locale ids.
27528         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
27529         (LANG_SAMI): Renamed from LANG_SAAMI.
27530         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
27531         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
27532         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
27533         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
27534         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
27535         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
27536         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
27537         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
27538         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
27539         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
27540         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
27541         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
27542         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
27543         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
27544         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
27545         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
27546         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
27547         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
27548         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
27549         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
27550         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
27551         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
27552         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
27553         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
27554         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
27555         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
27556         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
27557         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
27558         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
27559         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
27560         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
27561         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
27562         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
27563         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
27564         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
27565         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
27566         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
27567         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
27568         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
27569         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
27570         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
27571         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
27572         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
27573         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
27574         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
27575         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
27576         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
27577         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
27578         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
27579         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
27580         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
27581         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
27582         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
27583         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
27584         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
27585         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
27586         Add more languages and countries for Sami, Sorbian. Add more countries
27587         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
27588         for Pashto. Change country for Syriac, Tswana.
27589
27590 2009-12-21  Eric Blake  <ebb9@byu.net>
27591
27592         test-utimens: avoid spurious failure
27593         * tests/test-chown.h (nap): Factor...
27594         * tests/nap.h: ...into new file.
27595         * tests/test-lchown.h (nap): Avoid duplication.
27596         * tests/test-utimens-common.h (nap): Use shared implementation,
27597         necessary on file systems with 1-second resolution.
27598         * modules/chown-tests (Files): Include new file.
27599         * modules/fdutimensat-tests (Files): Likewise.
27600         * modules/futimens-tests (Files): Likewise.
27601         * modules/lchown-tests (Files): Likewise.
27602         * modules/openat-tests (Files): Likewise.
27603         * modules/utimens-tests (Files): Likewise.
27604         * modules/utimensat-tests (Files): Likewise.
27605
27606 2009-12-19  Eric Blake  <ebb9@byu.net>
27607
27608         futimens, utimensat: work around Linux bug
27609         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
27610         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
27611         * lib/utimensat.c (rpl_utimensat): Work around it.
27612         * lib/futimens.c (rpl_futimens): Adjust comment.
27613
27614         utimens: work around Linux ctime bug
27615         * lib/utimens.c (detect_ctime_bug): New helper function.
27616         (update_timespec): Differentiate between workaround needed for
27617         this bug vs. what is needed for systems that lack utimensat.
27618         (fdutimens, lutimens): Work around bug.
27619
27620         utimens: check for ctime update
27621         * tests/test-utimens-common.h (check_ctime): Define.
27622         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
27623         * tests/test-futimens.h (test_futimens): Likewise.
27624         * tests/test-lutimens.h (test_lutimens): Likewise.
27625         * doc/posix-functions/futimens.texi (futimens): Document the bug.
27626         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
27627
27628 2009-12-19  Bruno Haible  <bruno@clisp.org>
27629
27630         dprintf-posix: Check against memory leak fixed on 2009-12-15.
27631         * tests/test-dprintf-posix2.sh: New file.
27632         * tests/test-dprintf-posix2.c: New file.
27633         * modules/dprintf-posix-tests (Files): Add them.
27634         (configure.ac): Check for getrlimit and setrlimit.
27635         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
27636
27637 2009-12-19  Bruno Haible  <bruno@clisp.org>
27638
27639         fprintf-posix: Check against memory leak fixed on 2009-12-15.
27640         * tests/test-fprintf-posix3.sh: New file.
27641         * tests/test-fprintf-posix3.c: New file.
27642         * modules/fprintf-posix-tests (Files): Add them.
27643         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
27644
27645 2009-12-19  Eric Blake  <ebb9@byu.net>
27646
27647         dirfd: fix prototype
27648         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
27649         * lib/dirfd.c (dirfd): Likewise.
27650
27651         canonicalize: reduce memory usage
27652         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
27653         allocation to size.
27654         Reported by Solar Designer <solar@openwall.com>.
27655
27656 2009-12-19  Bruno Haible  <bruno@clisp.org>
27657
27658         New module attribute 'Applicability'.
27659         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
27660         * gnulib-tool: New option --extract-applicability.
27661         (func_usage): Document it.
27662         (sed_extract_prog): Recognize it.
27663         (func_get_applicability): New function.
27664         (func_import): Generalize handling of 'link-warning' module.
27665         * modules/link-warning (Applicability): New section.
27666         * modules/arg-nonnull (Applicability): New section.
27667         Repoted by Simon Josefsson <simon@josefsson.org>.
27668
27669 2009-12-19  Bruno Haible  <bruno@clisp.org>
27670
27671         fflush: tweak
27672         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
27673         * lib/fseeko.c (rpl_fseeko): Likewise.
27674
27675 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
27676
27677         * lib/gl_list.h: Fix typo in comment.
27678
27679 2009-12-16  Eric Blake  <ebb9@byu.net>
27680
27681         fcntl: use to simplify other modules
27682         * modules/cloexec (Depends-on): Add fcntl.
27683         * modules/fchdir (Depends-on): Likewise.
27684         * modules/fd-safer-flag (Depends-on): Likewise.
27685         * modules/unistd-safer (Depends-on): Likewise.
27686         * modules/dup3 (configure.ac): Set module indicator.
27687         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
27688         missing.
27689         * lib/fchdir.c (_gl_register_dup): Fix comment.
27690         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
27691         * lib/dup-safer.c (dup_safer): Likewise.
27692         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
27693         * lib/dup3.c (dup3): Likewise.
27694         * tests/test-fchdir.c (main): Enhance test.
27695         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
27696
27697         fcntl: port portions of fcntl to mingw
27698         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
27699         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
27700         replacement for mingw.
27701         * modules/fcntl (Description): Update.
27702         (Depends-on): Add dup2.
27703         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
27704         * modules/fcntl-h (Makefile.am): Substitute it.
27705         * lib/fcntl.in.h (fcntl): Update declaration.
27706         (F_DUPFD, F_GETFD): New macros, when needed.
27707         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
27708         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
27709         * tests/test-fcntl.c (check_flags, main): Enhance test for items
27710         we now guarantee.
27711
27712         fcntl: work around cygwin bug in F_DUPFD
27713         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
27714         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
27715         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
27716         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
27717         * doc/posix-functions/fcntl.texi (fcntl): Document it.
27718
27719         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
27720         * modules/fcntl (Files): List new files.
27721         (configure.ac): Run a test.
27722         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
27723         * lib/fcntl.c (rpl_fcntl): Likewise.
27724         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
27725         (gl_FCNTL_H): Always replace fcntl.h.
27726         * modules/fcntl-h (Makefile.am): Substitute witnesses.
27727         * lib/fcntl.in.h (fcntl): Declare replacement.
27728         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
27729         needed, plus a witness.
27730         * doc/posix-functions/fcntl.texi (fcntl): Document this.
27731         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
27732         * tests/test-fcntl.c: New file.
27733         * modules/fcntl-tests: Likewise.
27734
27735         binary-io: avoid potential compilation warning
27736         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
27737         directives.
27738
27739         fflush: avoid compilation error on NetBSD
27740         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
27741         between off_t and fpos_t, since the latter is sometimes a struct.
27742         * lib/fseeko.c (rpl_fseeko): Likewise.
27743         Reported by Alexander Nasonov <alnsn@yandex.ru>.
27744
27745 2009-12-15  Eric Blake  <ebb9@byu.net>
27746
27747         fcntl-h, stdio, sys_ioctl: fix declarations
27748         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
27749         function must not take arguments.
27750         * lib/sys_ioctl.in.h (ioctl): Likewise.
27751         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
27752         (open): Add a link warning.
27753
27754 2009-12-15  Jim Meyering  <meyering@redhat.com>
27755
27756         areadlink, areadlink-with-size: relax license to LGPLv2+
27757         * modules/areadlink (License): Relax to LGPLv2+.
27758         * modules/areadlink-with-size (License): Likewise.
27759
27760 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
27761             Bruno Haible  <bruno@clisp.org>
27762
27763         *printf: Fix memory leak.
27764         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
27765         * lib/vfprintf.c (vfprintf): Likewise.
27766         * lib/dprintf.c (dprintf): Likewise.
27767         * lib/vdprintf.c (vdprintf): Likewise.
27768
27769 2009-12-14  Eric Blake  <ebb9@byu.net>
27770
27771         accept4: adjust module dependencies
27772         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
27773
27774         utimens: one more try at avoiding compiler warning
27775         * lib/utimens.c (lutimens): Lower scope of result.
27776
27777 2009-12-13  Bruno Haible  <bruno@clisp.org>
27778
27779         Move the malloc checking from module 'list' to new module 'xlist'.
27780         * modules/xlist: New file.
27781         * lib/gl_xlist.h: New file.
27782         * lib/gl_xlist.c: New file.
27783         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
27784         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
27785         gl_list_add_last, gl_list_add_before, gl_list_add_after,
27786         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
27787         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
27788         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
27789         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
27790         gl_sortedlist_nx_add): New declarations.
27791         (struct gl_list_implementation): Rename and change methods accordingly.
27792         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
27793         (gl_list_nx_create): Renamed from gl_list_create.
27794         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
27795         (gl_list_nx_set_at): Renamed from gl_list_set_at.
27796         (gl_list_nx_add_first): Renamed from gl_list_add_first.
27797         (gl_list_nx_add_last): Renamed from gl_list_add_last.
27798         (gl_list_nx_add_before): Renamed from gl_list_add_before.
27799         (gl_list_nx_add_after): Renamed from gl_list_add_after.
27800         (gl_list_nx_add_at): Renamed from gl_list_add_at.
27801         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
27802         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
27803         gl_list_create_empty.
27804         (gl_list_nx_create): Renamed from gl_list_create.
27805         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
27806         (gl_list_nx_set_at): Renamed from gl_list_set_at.
27807         (gl_list_nx_add_first): Renamed from gl_list_add_first.
27808         (gl_list_nx_add_last): Renamed from gl_list_add_last.
27809         (gl_list_nx_add_before): Renamed from gl_list_add_before.
27810         (gl_list_nx_add_after): Renamed from gl_list_add_after.
27811         (gl_list_nx_add_at): Renamed from gl_list_add_at.
27812         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
27813         * lib/gl_array_list.c: Don't include xalloc.h.
27814         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
27815         NULL upon out-of-memory.
27816         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
27817         out-of-memory.
27818         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
27819         Change return type to 'int'.
27820         (gl_array_nx_set_at): Renamed from gl_array_set_at.
27821         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
27822         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
27823         upon out-of-memory.
27824         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
27825         upon out-of-memory.
27826         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
27827         upon out-of-memory.
27828         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
27829         upon out-of-memory.
27830         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
27831         out-of-memory.
27832         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
27833         Update.
27834         (gl_array_list_implementation): Update.
27835         * lib/gl_carray_list.c: Don't include xalloc.h.
27836         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
27837         Return NULL upon out-of-memory.
27838         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
27839         out-of-memory.
27840         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
27841         Change return type to 'int'.
27842         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
27843         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
27844         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
27845         upon out-of-memory.
27846         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
27847         upon out-of-memory.
27848         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
27849         out-of-memory.
27850         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
27851         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
27852         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
27853         Update.
27854         (gl_carray_list_implementation): Update.
27855         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
27856         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
27857         gl_linked_create_empty. Return NULL upon out-of-memory.
27858         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
27859         out-of-memory.
27860         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
27861         Change return type to 'int'. Return -1 upon out-of-memory.
27862         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
27863         out-of-memory.
27864         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
27865         upon out-of-memory.
27866         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
27867         upon out-of-memory.
27868         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
27869         NULL upon out-of-memory.
27870         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
27871         upon out-of-memory.
27872         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
27873         out-of-memory.
27874         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
27875         Update.
27876         * lib/gl_linked_list.c: Don't include xalloc.h.
27877         (gl_linked_list_implementation): Update.
27878         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
27879         (add_to_bucket): Change return type to 'int'.
27880         (gl_linkedhash_list_implementation): Update.
27881         * lib/gl_anytree_list1.h (free_subtree): New function.
27882         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
27883         gl_tree_create_empty. Return NULL upon out-of-memory.
27884         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
27885         Change return type to 'int'. Return -1 upon out-of-memory.
27886         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
27887         out-of-memory.
27888         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
27889         (gl_tree_remove_node): New function, moved here from
27890         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
27891         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
27892         Update.
27893         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
27894         malloc, not xmalloc. Return NULL upon out-of-memory.
27895         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
27896         out-of-memory.
27897         (gl_tree_remove_node_from_tree): New function, extracted from
27898         gl_tree_remove_node.
27899         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
27900         upon out-of-memory.
27901         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
27902         out-of-memory.
27903         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
27904         upon out-of-memory.
27905         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
27906         upon out-of-memory.
27907         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
27908         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
27909         not xmalloc. Return NULL upon out-of-memory.
27910         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
27911         out-of-memory.
27912         (gl_tree_remove_node_from_tree): New function, extracted from
27913         gl_tree_remove_node.
27914         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
27915         upon out-of-memory.
27916         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
27917         out-of-memory.
27918         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
27919         upon out-of-memory.
27920         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
27921         upon out-of-memory.
27922         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
27923         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
27924         gl_anytree_list1.h before gl_anyavltree_list2.h.
27925         (gl_avltree_list_implementation): Update.
27926         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
27927         gl_anytree_list1.h before gl_anyavltree_list2.h.
27928         (gl_rbtree_list_implementation): Update.
27929         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
27930         Change return type to 'int'. Return -1 upon out-of-memory. Use
27931         __builtin_expect.
27932         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
27933         (gl_avltreehash_list_implementation): Update.
27934         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
27935         (gl_rbtreehash_list_implementation): Update.
27936         * modules/array-list (Depends-on): Remove xalloc.
27937         * modules/carray-list (Depends-on): Likewise.
27938         * modules/linked-list (Depends-on): Likewise.
27939         * modules/linkedhash-list (Depends-on): Likewise.
27940         * modules/avltree-list (Depends-on): Likewise.
27941         * modules/rbtree-list (Depends-on): Likewise.
27942         * modules/avltreehash-list (Depends-on): Likewise.
27943         * modules/rbtreehash-list (Depends-on): Likewise.
27944
27945         * modules/xsublist: New file.
27946         * lib/gl_xsublist.h: New file.
27947         * lib/gl_xsublist.c: New file.
27948         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
27949         (gl_sublist_nx_create): New declaration.
27950         * lib/gl_sublist.c: Don't include xalloc.h.
27951         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
27952         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
27953         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
27954         Change return type to 'int'. Return -1 upon out-of-memory.
27955         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
27956         upon out-of-memory.
27957         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
27958         NULL upon out-of-memory.
27959         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
27960         upon out-of-memory.
27961         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
27962         NULL upon out-of-memory.
27963         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
27964         NULL upon out-of-memory.
27965         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
27966         upon out-of-memory.
27967         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
27968         (gl_sublist_list_implementation): Update.
27969         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
27970         upon out-of-memory.
27971         * modules/sublist (Depends-on): Remove xalloc.
27972
27973         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
27974         * tests/test-carray_list.c: Likewise.
27975         * tests/test-linked_list.c: Likewise.
27976         * tests/test-linkedhash_list.c: Likewise.
27977         * tests/test-avltree_list.c: Likewise.
27978         * tests/test-rbtree_list.c: Likewise.
27979         * tests/test-avltreehash_list.c: Likewise.
27980         * tests/test-rbtreehash_list.c: Likewise.
27981         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
27982         * modules/carray-list-tests (Makefile.am): Likewise.
27983         * modules/linked-list-tests (Makefile.am): Likewise.
27984         * modules/linkedhash-list-tests (Makefile.am): Likewise.
27985         * modules/avltree-list-tests (Makefile.am): Likewise.
27986         * modules/rbtree-list-tests (Makefile.am): Likewise.
27987         * modules/avltreehash-list-tests (Makefile.am): Likewise.
27988         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
27989
27990         * NEWS: Mention the changes.
27991
27992         * lib/clean-temp.c: Include gl_xlist.h.
27993         * modules/clean-temp (Depends-on): Add xlist.
27994
27995         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
27996         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
27997
27998         * tests/test-array_oset.c: Include gl_xlist.h.
27999         * modules/array-oset-tests (Depends-on): Add xlist.
28000
28001         Reported by José E. Marchesi <jemarch@gnu.org>.
28002
28003 2009-12-13  Bruno Haible  <bruno@clisp.org>
28004
28005         Move the malloc checking from module 'oset' to new module 'xoset'.
28006         * modules/xoset: New file.
28007         * lib/gl_xoset.h: New file.
28008         * lib/gl_xoset.c: New file.
28009         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
28010         declarations.
28011         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
28012         (struct gl_oset_implementation): Rename and change methods accordingly.
28013         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
28014         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
28015         'int'. Mark as __warn_unused_result__.
28016         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
28017         gl_oset_create_empty.
28018         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
28019         'int'.
28020         * lib/gl_array_oset.c: Don't include xalloc.h.
28021         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
28022         malloc, not xmalloc.
28023         (grow): Change return type to 'int'. Don't call xalloc_die.
28024         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
28025         to 'int'.
28026         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
28027         'int'.
28028         (gl_array_oset_implementation): Update.
28029         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
28030         gl_tree_create_empty.
28031         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
28032         'int'.
28033         * lib/gl_avltree_oset.c: Don't include xalloc.h.
28034         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
28035         xmalloc.
28036         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
28037         not xmalloc.
28038         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
28039         xmalloc.
28040         (gl_avltree_oset_implementation): Update.
28041         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
28042         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
28043         xmalloc.
28044         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
28045         not xmalloc.
28046         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
28047         xmalloc.
28048         (gl_rbtree_oset_implementation): Update.
28049         * modules/array-oset (Depends-on): Remove xalloc.
28050         * modules/avltree-oset (Depends-on): Likewise.
28051         * modules/rbtree-oset (Depends-on): Likewise.
28052         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
28053         * tests/test-avltree_oset.c: Likewise.
28054         * tests/test-rbtree_oset.c: Likewise.
28055         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
28056         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
28057         * modules/rbtree-oset-tests (Makefile.am): Likewise.
28058         * NEWS: Mention the change.
28059
28060 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
28061
28062         maint.mk: allow a project to override release-prep commands
28063         * top/maint.mk (alpha, beta, stable): Move release-preparatory
28064         commands into a new rule.
28065         (release-prep): New rule.
28066         (release-prep-hook): New overridable variable.
28067
28068 2009-12-13  Bruno Haible  <bruno@clisp.org>
28069
28070         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
28071
28072 2009-12-13  Jim Meyering  <meyering@redhat.com>
28073
28074         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
28075         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
28076
28077 2009-12-12  Bruno Haible  <bruno@clisp.org>
28078
28079         duplocale: Tweak.
28080         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
28081
28082 2009-12-12  Karl Berry  <karl@gnu.org>
28083
28084         * config/srclist.txt (strtoll.c): tab changes, no more sync.
28085
28086 2009-12-12  Bruno Haible  <bruno@clisp.org>
28087
28088         * m4/po.m4: Undo incorrect untabification.
28089
28090 2009-12-12  Bruno Haible  <bruno@clisp.org>
28091
28092         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
28093         * modules/c-strtod (Depends-on): Add locale.
28094         * modules/c-strtold (Depends-on): Likewise.
28095
28096 2009-12-12  Bruno Haible  <bruno@clisp.org>
28097
28098         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
28099
28100 2009-12-11  Eric Blake  <ebb9@byu.net>
28101
28102         setenv: relax requirement in light of POSIX ruling
28103         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
28104         not NULL.
28105         * tests/test-setenv.c (main): Relax test.
28106         * tests/test-unsetenv.c (main): Likewise.
28107         * doc/posix-functions/setenv.texi (setenv): Document this.
28108         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
28109
28110 2009-12-11  Bruno Haible  <bruno@clisp.org>
28111
28112         New module 'fd-safer-flag'.
28113         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
28114         * lib/dup-safer.c (dup_safer_flag): Remove function.
28115         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
28116         * lib/fd-safer.c (fd_safer_flag): Remove function.
28117         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
28118         * modules/cloexec (configure.ac): Drop indicator macro.
28119         * modules/fd-safer-flag: New file.
28120         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
28121         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
28122         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
28123
28124 2009-12-11  Bruno Haible  <bruno@clisp.org>
28125
28126         Tests for module 'nl_langinfo'.
28127         * modules/nl_langinfo-tests: New file.
28128         * tests/test-nl_langinfo.sh: New file.
28129         * tests/test-nl_langinfo.c: New file.
28130
28131         New module 'nl_langinfo'.
28132         * lib/nl_langinfo.c: New file.
28133         * m4/nl_langinfo.m4: New file.
28134         * modules/nl_langinfo: New file.
28135         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
28136
28137 2009-12-11  Bruno Haible  <bruno@clisp.org>
28138
28139         Tests for module 'langinfo'.
28140         * modules/langinfo-tests: New file.
28141         * tests/test-langinfo.c: New file.
28142
28143         New module 'langinfo'.
28144         * lib/langinfo.in.h: New file.
28145         * m4/langinfo_h.m4: New file.
28146         * modules/langinfo: New file.
28147         * doc/posix-headers/langinfo.texi: Mention the new module.
28148
28149 2009-12-11  Bruno Haible  <bruno@clisp.org>
28150
28151         * lib/config.charset: Untabify.
28152
28153 2009-12-11  Bruno Haible  <bruno@clisp.org>
28154
28155         * modules/unistd-safer (configure.ac): Drop indicator macro.
28156
28157 2009-12-11  Bruno Haible  <bruno@clisp.org>
28158
28159         Move pipe2-safer code to its own file.
28160         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
28161         * lib/pipe-safer.c (pipe2_safer): Remove function.
28162         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
28163         (Makefile.am): Add it to lib_SOURCES.
28164
28165 2009-12-10  Bruno Haible  <bruno@clisp.org>
28166
28167         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
28168
28169 2009-12-10  Bruno Haible  <bruno@clisp.org>
28170
28171         Declare which arguments expect non-NULL values, for GCC and clang.
28172         * build-aux/arg-nonnull.h: New file.
28173         * modules/arg-nonnull: New file.
28174         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
28175         (inet_ntop, inet_pton): Use it.
28176         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
28177         (closedir, dirfd, opendir, scandir, alphasort): Use it.
28178         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
28179         (open, openat): Use it.
28180         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
28181         (fnmatch): Use it.
28182         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
28183         (getopt, getopt_long, getopt_long_only): Use it.
28184         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
28185         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
28186         Use it.
28187         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
28188         (iconv_open): Use it.
28189         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
28190         (strtoimax, strtoumax): Use it.
28191         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
28192         (duplocale): Use it.
28193         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
28194         (frexp, frexpl): Use it.
28195         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
28196         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
28197         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
28198         (tsearch, tfind, tdelete, twalk): Use it.
28199         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
28200         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
28201         sigpending): Use it.
28202         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
28203         (posix_spawn, posix_spawnp, posix_spawnattr_init,
28204         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
28205         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
28206         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
28207         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
28208         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
28209         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
28210         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
28211         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
28212         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
28213         Use it.
28214         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
28215         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
28216         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
28217         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
28218         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
28219         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
28220         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
28221         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
28222         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
28223         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
28224         strtoull, unsetenv): Use it.
28225         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
28226         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
28227         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
28228         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
28229         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
28230         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
28231         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
28232         (strcasecmp, strncasecmp): Use it.
28233         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
28234         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
28235         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
28236         rpl_setsockopt): Use it.
28237         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
28238         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
28239         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
28240         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
28241         (gettimeofday): Use it.
28242         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
28243         (times): Use it.
28244         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
28245         (uname): Use it.
28246         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
28247         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
28248         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
28249         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
28250         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
28251         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
28252         unlinkat, write): Use it.
28253         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
28254         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
28255         * lib/argv-iter.h: Include arg-nonnull.h.
28256         (_ATTRIBUTE_NONNULL_): Remove macro.
28257         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
28258         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
28259         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
28260         optimization.
28261         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
28262         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
28263         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
28264         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
28265         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
28266         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
28267         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
28268         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
28269         * modules/arpa_inet (Depends-on): Add arg-nonnull.
28270         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
28271         * modules/dirent (Depends-on): Add arg-nonnull.
28272         (Makefile.am): Insert arg-nonnull.h into dirent.h.
28273         * modules/fcntl-h (Depends-on): Add arg-nonnull.
28274         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
28275         * modules/fnmatch (Depends-on): Add arg-nonnull.
28276         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
28277         * modules/getopt-posix (Depends-on): Add arg-nonnull.
28278         (Makefile.am): Insert arg-nonnull.h into getopt.h.
28279         * modules/glob (Depends-on): Add arg-nonnull.
28280         (Makefile.am): Insert arg-nonnull.h into glob.h.
28281         * modules/iconv_open (Depends-on): Add arg-nonnull.
28282         (Makefile.am): Insert arg-nonnull.h into iconv.h.
28283         * modules/inttypes (Depends-on): Add arg-nonnull.
28284         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
28285         * modules/locale (Depends-on): Add arg-nonnull.
28286         (Makefile.am): Insert arg-nonnull.h into locale.h.
28287         * modules/math (Depends-on): Add arg-nonnull.
28288         (Makefile.am): Insert arg-nonnull.h into math.h.
28289         * modules/netdb (Depends-on): Add arg-nonnull.
28290         (Makefile.am): Insert arg-nonnull.h into netdb.h.
28291         * modules/search (Depends-on): Add arg-nonnull.
28292         (Makefile.am): Insert arg-nonnull.h into search.h.
28293         * modules/signal (Depends-on): Add arg-nonnull.
28294         (Makefile.am): Insert arg-nonnull.h into signal.h.
28295         * modules/spawn (Depends-on): Add arg-nonnull.
28296         (Makefile.am): Insert arg-nonnull.h into spawn.h.
28297         * modules/stdio (Depends-on): Add arg-nonnull.
28298         (Makefile.am): Insert arg-nonnull.h into stdio.h.
28299         * modules/stdlib (Depends-on): Add arg-nonnull.
28300         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
28301         * modules/string (Depends-on): Add arg-nonnull.
28302         (Makefile.am): Insert arg-nonnull.h into string.h.
28303         * modules/strings (Depends-on): Add arg-nonnull.
28304         (Makefile.am): Insert arg-nonnull.h into strings.h.
28305         * modules/sys_socket (Depends-on): Add arg-nonnull.
28306         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
28307         * modules/sys_stat (Depends-on): Add arg-nonnull.
28308         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
28309         * modules/sys_time (Depends-on): Add arg-nonnull.
28310         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
28311         * modules/sys_times (Depends-on): Add arg-nonnull.
28312         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
28313         * modules/sys_utsname (Depends-on): Add arg-nonnull.
28314         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
28315         * modules/time (Depends-on): Add arg-nonnull.
28316         (Makefile.am): Insert arg-nonnull.h into time.h.
28317         * modules/unistd (Depends-on): Add arg-nonnull.
28318         (Makefile.am): Insert arg-nonnull.h into unistd.h.
28319         * modules/wchar (Depends-on): Add arg-nonnull.
28320         (Makefile.am): Insert arg-nonnull.h into wchar.h.
28321         * modules/argv-iter (Depends-on): Add arg-nonnull.
28322         * tests/test-canonicalize.c (null_ptr): New function.
28323         (main): Use it.
28324         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
28325         (main): Use it.
28326         * tests/test-memmem.c (null_ptr): New function.
28327         (main): Use it.
28328         Reported by Jim Meyering.
28329
28330 2009-12-10  Bruno Haible  <bruno@clisp.org>
28331
28332         Use spaces for indentation, not tabs.
28333         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
28334         * m4/*.m4: Untabify.
28335         * build-aux/*.h: Untabify.
28336         * tests/**/*.[hc]: Untabify.
28337         * README: New section "Indent with spaces, not TABs", based on
28338         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
28339         * NEWS: Mention the change.
28340
28341 2009-12-10  Bruno Haible  <bruno@clisp.org>
28342
28343         pty test: Fix link error.
28344         * modules/pty-tests (Makefile.am): Add the default LDADD value to
28345         test_pty_LDADD.
28346
28347 2009-12-07  Simon Josefsson  <simon@josefsson.org>
28348
28349         * modules/pty: New file.
28350         * modules/pty-tests: New file.
28351         * m4/pty.m4: New file.
28352         * tests/test-pty.c: New file.
28353         * doc/glibc-headers/pty.texi: Modified.
28354         * doc/glibc-functions/forkpty.texi: Modified.
28355         * doc/glibc-functions/openpty.texi: Modified.
28356
28357 2009-12-10  Bruno Haible  <bruno@clisp.org>
28358
28359         Avoid syntax error in C++ mode.
28360         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
28361
28362 2009-12-10  Bruno Haible  <bruno@clisp.org>
28363
28364         Use sed with option -e.
28365         * gnulib-tool (func_version, func_emit_copyright_notice,
28366         func_emit_initmacro_end, func_import, func_create_testdir): Pass
28367         option -e to sed.
28368         * modules/link-warning (Makefile.am): Likewise.
28369
28370 2009-12-10  Jim Meyering  <meyering@redhat.com>
28371
28372         mgetgroups: do not write bytes beyond end of malloc'd buffer
28373         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
28374         username, we call getgroups with a one-element-shorter buffer,
28375         but still told it the length was original, max_n_groups.
28376
28377 2009-12-09  Eric Blake  <ebb9@byu.net>
28378
28379         cloexec: relax license
28380         * modules/cloexec (Maintainer): Add myself.
28381         (License): Use LGPL, not GPL.
28382
28383         link-warning: optimize generation
28384         * modules/link-warning (Makefile.am): Reduce process usage.
28385
28386 2009-12-09  Bruno Haible  <bruno@clisp.org>
28387
28388         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
28389         workaround was added on 2009-11-17.
28390
28391 2009-12-09  Jim Meyering  <meyering@redhat.com>
28392             Bruno Haible  <bruno@clisp.org>
28393
28394         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
28395         * modules/link-warning (Makefile.am): Make the comment-removing sed
28396         command more robust in the face of bootstrap-prepended comment lines.
28397
28398 2009-12-09  Bruno Haible  <bruno@clisp.org>
28399
28400         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
28401         most one group.
28402
28403 2009-12-09  Simon Josefsson <simon@josefsson.org>
28404             Bruno Haible  <bruno@clisp.org>
28405
28406         * build-aux/link-warning.h: Add copyright notice.
28407         * modules/link-warning (Makefile.am): Generate link-warning.h from
28408         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
28409         * NEWS: Mention change in link-warning module.
28410         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
28411         * modules/dirent (Makefile.am): Add dependency to dirent.h.
28412         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
28413         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
28414         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
28415         * modules/math (Makefile.am): Add dependency to math.h.
28416         * modules/search (Makefile.am): Add dependency to search.h.
28417         * modules/signal (Makefile.am): Add dependency to signal.h.
28418         * modules/spawn (Makefile.am): Add dependency to spawn.h.
28419         * modules/stdio (Makefile.am): Add dependency to stdio.h.
28420         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
28421         * modules/string (Makefile.am): Add dependency to string.h.
28422         * modules/strings (Makefile.am): Add dependency to strings.h.
28423         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
28424         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
28425         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
28426         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
28427         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
28428         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
28429         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
28430         * modules/unistd (Makefile.am): Add dependency to unistd.h.
28431         * modules/wchar (Makefile.am): Add dependency to wchar.h.
28432
28433 2009-12-09  Bruno Haible  <bruno@clisp.org>
28434
28435         fchdir: Optimize away rpl_fstat when possible.
28436         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
28437         REPLACE_OPEN_DIRECTORY.
28438         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
28439
28440 2009-12-09  Bruno Haible  <bruno@clisp.org>
28441
28442         * lib/fchdir.c: Update comment.
28443
28444 2009-12-09  Bruno Haible  <bruno@clisp.org>
28445
28446         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
28447
28448 2009-12-08  Eric Blake  <ebb9@byu.net>
28449
28450         fchdir: avoid memory leak on re-registration.
28451         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
28452
28453 2009-12-08  Jim Meyering  <meyering@redhat.com>
28454
28455         init.sh: avoid Solaris 10 /bin/sh portability problem
28456         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
28457         sourced script:
28458           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
28459           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
28460           bar
28461         tests/init.sh relied on that, accepting a --set-path=DIR argument,
28462         and two tests used that idiom.
28463         * tests/init.sh: Update suggested usage comments.
28464         (path_prepend_): New function, to be used in place
28465         of the --src-path=DIR option.
28466         (setup_): Move PATH-prepending code into path_prepend_.
28467         * tests/test-pread.sh: Adapt to new usage.
28468         * tests/test-xalloc-die.sh: Likewise.
28469
28470 2009-12-08  Simon Josefsson  <simon@josefsson.org>
28471
28472         * doc/gnulib.texi (Glibc pty.h): Add.
28473         * doc/glibc-functions/forkpty.texi: Add.
28474         * doc/glibc-functions/openpty.texi: Add.
28475         Suggested by Bruno Haible.
28476
28477 2009-12-08  Eric Blake  <ebb9@byu.net>
28478
28479         fchdir: fix logic bugs
28480         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
28481         * tests/test-fchdir.c (main): Enhance test.
28482         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
28483         is in use.
28484
28485         dup2: fix logic bugs
28486         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
28487         REPLACE_DUP2 to decide when rpl_dup2 is needed.
28488         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
28489         exists.
28490         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
28491
28492 2009-12-07  Eric Blake  <ebb9@byu.net>
28493
28494         unlink: fix m4 detection
28495         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
28496
28497         unistd-safer: add unit test
28498         * modules/unistd-safer-tests: New file.
28499         * tests/test-dup-safer.c: Likewise.
28500         * tests/test-cloexec.c (setmode): Avoid compiler warning.
28501         * tests/test-dup2.c (setmode): Likewise.
28502         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
28503
28504         cloexec: preserve text vs. binary across dup_cloexec
28505         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
28506         mode.
28507         * modules/dup2-tests (Depends-on): Add binary-io.
28508         * modules/cloexec-tests (Depends-on): Likewise.
28509         * tests/test-dup2.c (setmode, is_mode): New helpers.
28510         (main): Add tests that translation mode is preserved.
28511         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
28512         Reported by Bruno Haible.
28513
28514         mgetgroups: reduce duplicate listings
28515         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
28516         resulting array.
28517         * tests/test-chown.h (test_chown): Simplify client.
28518         * tests/test-lchown.h (test_lchown): Likewise.
28519
28520 2009-12-06  Bruno Haible  <bruno@clisp.org>
28521
28522         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
28523         value.
28524
28525 2009-12-06  Bruno Haible  <bruno@clisp.org>
28526
28527         * lib/progname.c: Include stdio.h, stdlib.h.
28528         (set_program_name): Reject a NULL argument.
28529
28530 2009-12-05  Eric Blake  <ebb9@byu.net>
28531
28532         pipe2-safer: new module
28533         * modules/pipe2-safer: New file.
28534         * lib/unistd-safer.h (pipe2_safer): New prototype.
28535         * lib/unistd--.h (pipe2): New wrapper.
28536         * lib/pipe-safer.c (pipe2_safer): New function.
28537         * modules/pipe (Depends-on): Add pipe2-safer.
28538         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
28539
28540         stdlib-safer: preserve cloexec flag for mkostemp[s]
28541         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
28542         fd_safer_flag.
28543
28544         unistd-safer: allow preservation of cloexec status via flag
28545         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
28546         prototypes.
28547         * lib/dup-safer.c (dup_safer_flag): New function.
28548         * lib/fd-safer.c (fd_safer_flag): Likewise.
28549         * modules/cloexec (configure.ac): Set witness.
28550
28551         test-dup2: enhance test
28552         * modules/dup2-tests (Depends-on): Add cloexec.
28553         * tests/test-dup2.c (main): Enhance test.
28554
28555         cloexec: add dup_cloexec
28556         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
28557         header and comments.
28558         * lib/cloexec.c (set_cloexec_flag): Add comments.
28559         (dup_cloexec): New function, with mingw implementation borrowed
28560         from...
28561         * lib/w32spawn.h (dup_noinherit): ...here.
28562         * modules/execute (Depends-on): Add cloexec.
28563         * modules/pipe (Depends-on): Likewise.
28564         * modules/cloexec (Depends-on): Add dup2.
28565         * modules/cloexec-tests (Files): New file.
28566         * tests/test-cloexec.c: Likewise.
28567
28568         test-xalloc-die: fix test for mingw
28569         * modules/xalloc-die-tests (Files): Add tests/init.sh.
28570         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
28571         directory and .exe suffix off argv[0] output.
28572
28573         test-fseeko: fix test for mingw
28574         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
28575         than undefining fseek, so test will pass on mingw.
28576
28577 2009-12-05  Bruno Haible  <bruno@clisp.org>
28578
28579         * lib/progname.h (set_program_name): Clarify specification.
28580         * lib/progname.c (set_program_name): Likewise.
28581         Reported by Jim Meyering.
28582
28583 2009-12-05  Jim Meyering  <meyering@redhat.com>
28584
28585         maint.mk: backslash-escape parens in default regexp
28586         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
28587         backslash-escape the literal parentheses.
28588
28589         maint.mk: news-date-check: use grep -E
28590         * top/maint.mk (today): Define a Make variable, not a...
28591         (news-date-check): ...shell variable.
28592         (news-date-regexp): Use the Make variable.
28593         Use grep's -E option.  Change the failing diagnostic to mention
28594         the variable, $(news-date-regexp).
28595
28596 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
28597
28598         maintainer-makefile: allow customization of NEWS entry format
28599         * top/maint.mk (news-date-regexp): New overridable variable.
28600         (news-date-check): Use it.
28601
28602 2009-12-04  Eric Blake  <ebb9@byu.net>
28603
28604         mgetgroups: add xgetgroups, and avoid ENOSYS failures
28605         * lib/mgetgroups.h (xgetgroups): New prototype.
28606         * lib/mgetgroups.c (xgetgroups): New wrapper.
28607         (mgetgroups): Handle ENOSYS.
28608         * modules/mgetgroups (Depends-on): Add realloc.
28609         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
28610
28611         mgetgroups: avoid argument promotion issues with -1
28612         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
28613         for invalid gid_t.
28614         * tests/test-chown.h (getegid, test_chown): Likewise.
28615         * tests/test-lchown.h (getegid, test_lchown): Likewise.
28616
28617 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
28618
28619         exclude: Fix header file problems.
28620         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
28621
28622 2009-12-01  Jim Meyering  <meyering@redhat.com>
28623
28624         fts: fts_open: do not let an empty string cause immediate failure
28625         This is required in support of GNU rm, for which the command
28626         "rm A '' B" must process and remove both A and B, in spite of
28627         the empty string argument.
28628         * lib/fts.c (fts_open): Do not let the presence of an empty string
28629         cause fts_open to fail immediately.  Most fts-using tools must be
28630         able to process all arguments, in order, and can be expected to
28631         diagnose such arguments themselves.
28632
28633 2009-11-30  Eric Blake  <ebb9@byu.net>
28634
28635         utimens: fix compilation error
28636         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
28637         Declare variable at right scope.
28638
28639 2009-11-29  Jim Meyering  <meyering@redhat.com>
28640
28641         bootstrap: handle perl-5.11's changed --version output
28642         * build-aux/bootstrap (get_version): Handle perl separately,
28643         since perl-5.11's --version output is different.
28644
28645 2009-11-28  Jim Meyering  <meyering@redhat.com>
28646
28647         userspec: depend on the inttostr module, too
28648         * modules/userspec (Depends-on): Add inttostr.
28649
28650         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
28651         * lib/userspec.c (parse_with_separator): Do not accept a user ID
28652         number of MAXUID when it evaluates to (uid_t) -1.
28653         Likewise for group ID.  Reported by Matt McCutchen in
28654         <http://savannah.gnu.org/bugs/?28113>
28655
28656         userspec: reformat to use spaces, not TABs
28657         * lib/userspec.c: Expand TABs to spaces.
28658         Add Emacs' "indent-tabs-mode: nil" hint.
28659
28660 2009-11-27  Eric Blake  <ebb9@byu.net>
28661
28662         getopt-gnu: flush out another BSD bug
28663         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
28664         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
28665         flush out BSD bug.
28666         * tests/test-getopt.h (test_getopt): End lists with NULL.
28667         * tests/test-getopt_long.h (test_getopt_long): Likewise.
28668         (test_getopt_long_posix): Enhance test.
28669         * modules/getopt-posix-tests (Depends-on): Add stdbool.
28670         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
28671         getopt-gnu.
28672         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
28673         Likewise.
28674
28675 2009-11-27  Simon Josefsson  <simon@josefsson.org>
28676
28677         * modules/idpriv-droptemp-tests (Notice): Fix text.
28678
28679 2009-11-27  Jim Meyering  <meyering@redhat.com>
28680
28681         test-xalloc-die: avoid spurious failure due to libtool argv difference
28682         In a libtool-enabled project, this test would fail due to a difference
28683         in the emitted program name, e.g.,
28684         -test-xalloc-die: memory exhausted
28685         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
28686         Use program to avoid that.
28687         * modules/xalloc-die-tests (Depends-on): Add progname.
28688         * tests/test-xalloc-die.c: Include progname.h".
28689         (program_name): Remove decl.
28690         (main): Call set_program_name.
28691         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
28692
28693 2009-11-26  Richard Jones  <rjones@redhat.com>
28694
28695         w32sock: leave win32 error in place.
28696         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
28697
28698 2009-11-26  Eric Blake  <ebb9@byu.net>
28699
28700         init.sh: suggest to use skip_ and fail_ functions in comments
28701         * tests/init.sh: Add a sentence.
28702
28703 2009-11-25  Bruno Haible  <bruno@clisp.org>
28704
28705         init.sh: add documentation in comments
28706         * tests/init.sh: Add some developer and user documentation.
28707
28708 2009-11-26  Jim Meyering  <meyering@redhat.com>
28709
28710         init.sh: accommodate even those who specify bogus srcdir manually
28711         * tests/init.sh: Normally, srcdir is guaranteed by automake and
28712         configure-time tests to be sanitized, so that there is no need to
28713         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
28714         (with no double quotes) suffices.  However, since tests may be
28715         invoked manually, and since you may explicitly set srcdir to the
28716         name of a directory containing spaces, do quote its uses here.
28717         * tests/test-pread.sh: Likewise.
28718         Suggested by Bruno Haible.
28719
28720         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
28721         * tests/test-pread.sh: Write no data into the pipe, because
28722         test-pread actually reads none.  This avoids a diagnostic,
28723         "bash: echo: write error: Broken pipe", that arises in the unusual
28724         event something is ignoring SIGPIPE, and might be interpreted
28725         as some sort of failure.  Reported by Bruno Haible.
28726
28727 2009-11-25  Jim Meyering  <meyering@redhat.com>
28728
28729         test-pread: cover failure with ESPIPE and EINVAL
28730         * tests/test-pread.c (main): Test for failure, too.
28731         * tests/test-pread.sh: Invoke with stdin on a pipe.
28732         Suggested by Eric Blake.
28733
28734         pread: improvement and fix
28735         * modules/pread (Depends-on): Depend on lseek, for portability to
28736         e.g., mingw.  Suggested by Eric Blake.
28737         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
28738
28739         unistd.in.h: correct declaration of pread
28740         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
28741         Reported by Richard W.M. Jones.
28742
28743         test-pread.sh: distribute the test script
28744         * modules/pread-tests (Files): Include test-pread.sh.
28745
28746         test-pread.sh: clean up
28747         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
28748         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
28749         That is unnecessary, since it's always ".".
28750         Suggestion from Eric Blake.
28751
28752         test-pread.sh: make executable
28753         * tests/test-pread.sh: Set executable bit.
28754         Reported by Eric Blake.
28755
28756         correct typo in test-pread.sh
28757         * tests/test-pread.sh: Add #! line.
28758
28759         test pread
28760         * tests/test-pread.c: New file.
28761         * tests/test-pread.sh: Likewise.
28762         * modules/pread-tests: Likewise.
28763
28764         pread: new module
28765         * modules/pread: New file.
28766         * lib/unistd.in.h (pread): Define/declare.
28767         * lib/pread.c (pread): New file.
28768         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
28769         * modules/unistd (Makefile.am): Substitute witnesses.
28770         * doc/posix-functions/pread.texi (pread): Update.
28771         * MODULES.html.sh: Add pread.
28772
28773 2009-11-25  Jim Meyering  <meyering@redhat.com>
28774
28775         tests/init.sh: new file to be used via most *.sh tests
28776         * tests/init.sh: New file.
28777
28778 2009-11-25  Eric Blake  <ebb9@byu.net>
28779
28780         utimens: work around older Linux failure with symlinks
28781         * lib/utimens.c (lutimensat_works_really): New variable.
28782         (fdutimens, lutimens): Use it to manage kernels that support
28783         nanosecond times on files, but not on symlinks.
28784         Reported by OndÅ™ej Vašík.
28785
28786         utimes: fix configure grammar
28787         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
28788
28789 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
28790
28791         regex: Fix fastmap for multibyte character ranges.
28792         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
28793         characters when a multibyte character range is included.
28794
28795 2009-11-22  Andy Wingo  <wingo@pobox.com>
28796
28797         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
28798         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
28799
28800 2009-11-24  Bruno Haible  <bruno@clisp.org>
28801
28802         doc: Most *_l functions exist in MacOS X 10.5.
28803         * doc/posix-functions/duplocale.texi: Update platforms list.
28804         * doc/posix-functions/freelocale.texi: Likewise.
28805         * doc/posix-functions/newlocale.texi: Likewise.
28806         * doc/posix-functions/uselocale.texi: Likewise.
28807         * doc/posix-functions/isalnum_l.texi: Likewise.
28808         * doc/posix-functions/isalpha_l.texi: Likewise.
28809         * doc/posix-functions/isblank_l.texi: Likewise.
28810         * doc/posix-functions/iscntrl_l.texi: Likewise.
28811         * doc/posix-functions/isdigit_l.texi: Likewise.
28812         * doc/posix-functions/isgraph_l.texi: Likewise.
28813         * doc/posix-functions/islower_l.texi: Likewise.
28814         * doc/posix-functions/isprint_l.texi: Likewise.
28815         * doc/posix-functions/ispunct_l.texi: Likewise.
28816         * doc/posix-functions/isspace_l.texi: Likewise.
28817         * doc/posix-functions/isupper_l.texi: Likewise.
28818         * doc/posix-functions/iswalnum_l.texi: Likewise.
28819         * doc/posix-functions/iswalpha_l.texi: Likewise.
28820         * doc/posix-functions/iswblank_l.texi: Likewise.
28821         * doc/posix-functions/iswcntrl_l.texi: Likewise.
28822         * doc/posix-functions/iswctype_l.texi: Likewise.
28823         * doc/posix-functions/iswdigit_l.texi: Likewise.
28824         * doc/posix-functions/iswgraph_l.texi: Likewise.
28825         * doc/posix-functions/iswlower_l.texi: Likewise.
28826         * doc/posix-functions/iswprint_l.texi: Likewise.
28827         * doc/posix-functions/iswpunct_l.texi: Likewise.
28828         * doc/posix-functions/iswspace_l.texi: Likewise.
28829         * doc/posix-functions/iswupper_l.texi: Likewise.
28830         * doc/posix-functions/iswxdigit_l.texi: Likewise.
28831         * doc/posix-functions/isxdigit_l.texi: Likewise.
28832         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
28833         * doc/posix-functions/strcasecmp_l.texi: Likewise.
28834         * doc/posix-functions/strcoll_l.texi: Likewise.
28835         * doc/posix-functions/strfmon_l.texi: Likewise.
28836         * doc/posix-functions/strftime_l.texi: Likewise.
28837         * doc/posix-functions/strncasecmp_l.texi: Likewise.
28838         * doc/posix-functions/strxfrm_l.texi: Likewise.
28839         * doc/posix-functions/tolower_l.texi: Likewise.
28840         * doc/posix-functions/toupper_l.texi: Likewise.
28841         * doc/posix-functions/towctrans_l.texi: Likewise.
28842         * doc/posix-functions/towlower_l.texi: Likewise.
28843         * doc/posix-functions/towupper_l.texi: Likewise.
28844         * doc/posix-functions/wcscoll_l.texi: Likewise.
28845         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
28846         * doc/posix-functions/wctrans_l.texi: Likewise.
28847         * doc/posix-functions/wctype_l.texi: Likewise.
28848         * doc/glibc-functions/strptime_l.texi: Likewise.
28849         * doc/glibc-functions/strtod_l.texi: Likewise.
28850         * doc/glibc-functions/strtof_l.texi: Likewise.
28851         * doc/glibc-functions/strtol_l.texi: Likewise.
28852         * doc/glibc-functions/strtold_l.texi: Likewise.
28853         * doc/glibc-functions/strtoll_l.texi: Likewise.
28854         * doc/glibc-functions/strtoul_l.texi: Likewise.
28855         * doc/glibc-functions/strtoull_l.texi: Likewise.
28856         * doc/glibc-functions/wcsftime_l.texi: Likewise.
28857         * doc/glibc-functions/wcstod_l.texi: Likewise.
28858         * doc/glibc-functions/wcstof_l.texi: Likewise.
28859         * doc/glibc-functions/wcstol_l.texi: Likewise.
28860         * doc/glibc-functions/wcstold_l.texi: Likewise.
28861         * doc/glibc-functions/wcstoll_l.texi: Likewise.
28862         * doc/glibc-functions/wcstoul_l.texi: Likewise.
28863         * doc/glibc-functions/wcstoull_l.texi: Likewise.
28864
28865 2009-11-24  Bruno Haible  <bruno@clisp.org>
28866
28867         duplocale: Fix logic bug.
28868         * lib/duplocale.c: Don't include <langinfo.h>.
28869         (_NL_LOCALE_NAME): Remove macro.
28870         (rpl_duplocale): Use setlocale instead of nl_langinfo.
28871         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
28872
28873 2009-11-23  Jim Meyering  <meyering@redhat.com>
28874
28875         test-update-copyright: don't hard-code /usr/bin/perl
28876         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
28877         perl to print the current year.  Gilles Espinasse reported that
28878         the replaced use of perl was hard-coded as /usr/bin/perl.
28879
28880 2009-11-23  Bruno Haible  <bruno@clisp.org>
28881
28882         duplocale: Add support for glibc 2.3.x.
28883         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
28884
28885 2009-11-22  Bruno Haible  <bruno@clisp.org>
28886
28887         vasnprintf: Tiny optimization.
28888         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
28889         MacOS X.
28890
28891 2009-11-22  Bruno Haible  <bruno@clisp.org>
28892
28893         Tests for module 'duplocale'.
28894         * modules/duplocale-tests: New file.
28895         * tests/test-duplocale.c: New file.
28896
28897         New module 'duplocale'.
28898         * m4/duplocale.m4: New file.
28899         * lib/locale.in.h (duplocale): New declaration.
28900         * lib/duplocale.c: New file.
28901         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
28902         gl_LOCALE_H_DEFAULTS): New macros.
28903         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
28904         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
28905         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
28906         REPLACE_DUPLOCALE.
28907         * modules/duplocale: New file.
28908         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
28909
28910 2009-11-22  Bruno Haible  <bruno@clisp.org>
28911
28912         * modules/locale-tests (configure.ac): Test for newlocale function.
28913         * tests/test-locale.c: When the system has extended locale functions,
28914         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
28915
28916         locale: Make locale_t available when possible.
28917         * lib/locale.in.h: Include <xlocale.h> when it exists.
28918         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
28919         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
28920         * modules/locale (Depends-on): Add extensions.
28921         (Makefile.am): Also substitute HAVE_XLOCALE_H.
28922         * doc/posix-headers/locale.texi: Document the problem with locale_t.
28923
28924 2009-11-22  Bruno Haible  <bruno@clisp.org>
28925
28926         Add comments.
28927         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
28928         invocation.
28929         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
28930         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
28931         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
28932
28933 2009-11-22  Bruno Haible  <bruno@clisp.org>
28934
28935         error: account for the possibility of freopen (stdout).
28936         * lib/error.c: Include <unistd.h>.
28937         (flush_stdout): New function, extracted from error and error_at_line.
28938         Determine stdout's fd dynamically.
28939         (error, error_at_line): Invoke flush_stdout.
28940         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
28941         * modules/error (Depends-on): Add unistd.
28942
28943 2009-11-22  Bruno Haible  <bruno@clisp.org>
28944
28945         diffseq: Add comment.
28946         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
28947
28948 2009-11-22  Jim Meyering  <meyering@redhat.com>
28949
28950         c-stack: avoid defining an unused static function
28951         * lib/c-stack.c (find_stack_direction): Do not define this function
28952         when it will not be used.
28953
28954         diffseq: avoid spurious gcc warnings
28955         * lib/diffseq.h (IF_LINT2): Define.
28956         (compareseq): Use it to initialize two members of "part".
28957         This avoids two used-uninitialized warnings.
28958
28959 2009-11-21  Jim Meyering  <meyering@redhat.com>
28960
28961         c-stack: avoid "ignoring return value of `write'" warning
28962         * lib/c-stack.c: Include "ignore-value.h".
28963         (die): Explicitly ignore each write return value.
28964         * modules/c-stack (Depends-on): Add ignore-value.
28965
28966 2009-11-21  Bruno Haible  <bruno@clisp.org>
28967
28968         diffseq: reduce scope of variable 'best'.
28969         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
28970         variable, earlier used for two different purposes.
28971
28972 2009-11-21  Jim Meyering  <meyering@redhat.com>
28973
28974         diffseq: remove useless assignment to "best"
28975         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
28976         assignment.  At that point "best" is already guaranteed to be zero.
28977
28978 2009-11-20  Eric Blake  <ebb9@byu.net>
28979
28980         build: mention ftp redirector in release announcements
28981         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
28982         values that used to come from cfg.mk; mention FTP redirect URL.
28983         * build-aux/announce-gen: Mention the mirror list.
28984         Suggested by Karl Berry.
28985
28986         nanosleep: improve port to mingw
28987         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
28988         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
28989         LIB_NANOSLEEP, but only when needed.
28990         * modules/select (Link): Document LIBSOCKET.
28991         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
28992         enough.
28993
28994         nanosleep: work around cygwin bug
28995         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
28996         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
28997         bug.
28998         (getnow): Delete, not needed.
28999         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
29000         LIB_CLOCK_GETTIME.
29001         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
29002         clock-time, gettime.
29003         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
29004         bug.
29005         * modules/nanosleep-tests: New test.
29006         * tests/test-nanosleep.c: New file.
29007
29008         sleep: work around cygwin bug
29009         * lib/sleep.c (rpl_sleep): Work around the bug.
29010         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
29011         (gl_PREREQ_SLEEP): Delete unused macro.
29012         * modules/sleep (Depends-on): Add verify.
29013         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
29014         * modules/unistd (Makefile.am): Substitute witness.
29015         * lib/unistd.in.h (sleep): Update prototype.
29016         * doc/posix-functions/sleep.texi (sleep): Document the bug.
29017         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
29018         * modules/sleep-tests (Depends-on): Check for alarm.
29019
29020 2009-11-20  Jim Meyering  <meyering@redhat.com>
29021
29022         maint.mk: improve sc_prohibit_magic_number_exit
29023         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
29024         so it does not match uses like System.exit(1).
29025         Add comments showing how to correct all offenders.
29026
29027 2009-11-19  Eric Blake  <ebb9@byu.net>
29028
29029         xalloc-die-tests: add missing library
29030         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
29031
29032         test-xvasprintf: silence compiler warnings
29033         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
29034         empty string from gcc.
29035
29036 2009-11-19  Jim Meyering  <meyering@redhat.com>
29037
29038         xfreopen: new module, from coreutils
29039         * modules/xfreopen: New module.
29040         * lib/xfreopen.c: New file.
29041         * lib/xfreopen.h: New file.
29042         * MODULES.html.sh (File stream based Input/Output"): Add it.
29043
29044 2009-11-19  Eric Blake  <ebb9@byu.net>
29045
29046         manywarnings: depend on warnings
29047         * modules/manywarnings (Depends-on): Add warnings.
29048
29049         build: avoid compiler warnings
29050         * lib/select.c (rpl_select): Delete unused variable.
29051         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
29052
29053 2009-11-18  Eric Blake  <ebb9@byu.net>
29054
29055         tests: avoid false negative with --with-packager
29056         * tests/test-version-etc.sh: Discard packager information.
29057         * tests/test-argp-version-etc-1.sh: Likewise.
29058         Reported by Mike Frysinger.
29059
29060         utimens: fix regression on Solaris
29061         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
29062         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
29063         can only change fd timestamps via futimesat.  Instead, use an
29064         additional witness macro to avoid BSD bug.
29065         Reported by Jim Meyering.
29066
29067 2009-11-17  Eric Blake  <ebb9@byu.net>
29068
29069         usleep: use it to simplify tests
29070         * modules/stat-time-tests (Depends-on): Add usleep.
29071         (configure.ac): Drop usleep check.
29072         * modules/chown-tests (Depends-on, configure.ac): Likewise.
29073         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
29074         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
29075         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
29076         * modules/openat-tests (Depends-on, configure.ac): Likewise.
29077         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
29078         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
29079         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
29080         Likewise.
29081         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
29082         * tests/test-lchown.h (nap): Likewise.
29083         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
29084         * tests/test-stat-time.c (nap): Likewise.
29085         * tests/test-utimens-common.h (nap): Update comments.
29086
29087         usleep: new module
29088         * modules/usleep: New file.
29089         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
29090         * lib/usleep.c (usleep): Likewise.
29091         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
29092         * modules/unistd (Makefile.am): Substitute witnesses.
29093         * lib/unistd.in.h (usleep): Add declaration.
29094         * doc/pastposix-functions/usleep.texi (usleep): Document this.
29095         * MODULES.html.sh (Date and time): Likewise.
29096         * modules/usleep-tests (Depends-on): New test.
29097         * tests/test-usleep.c: New file.
29098
29099         chown: work around OpenBSD bug
29100         * lib/chown.c (rpl_chown): Work around the bug.
29101         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
29102         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
29103         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
29104         * modules/chown (Depends-on): Add stdbool.
29105         * modules/lchown (Depends-on): Likewise.
29106         * doc/posix-functions/chown.texi (chown): Document the bug.
29107         * doc/posix-functions/lchown.texi (lchown): Likewise.
29108         * tests/test-lchown.h (test_chown): Relax test.
29109
29110         mkstemp: avoid conflict with C++ keyword template
29111         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
29112         * lib/mkostemp.c (mkostemp): Likewise.
29113         * lib/mkostemps.c (mkostemps): Likewise.
29114         * lib/mkstemp.c (mkstemp): Likewise.
29115         * lib/mkstemps.c (mkstemps): Likewise.
29116
29117         xalloc-die-tests: optimize
29118         * tests/test-xalloc-die.sh: Reduce number of processes.
29119
29120 2009-11-17  Simon Josefsson  <simon@josefsson.org>
29121
29122         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
29123         patch from ludo@gnu.org (Ludovic Courtès).
29124
29125 2009-11-17  Jim Meyering  <meyering@redhat.com>
29126
29127         version-etc: use proper license string
29128         * modules/version-etc (License): Use LGPL, not LGPLv3+.
29129         * modules/version-etc-fsf: Likewise.
29130
29131 2009-11-17  Simon Josefsson  <simon@josefsson.org>
29132
29133         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
29134         printed to stdout.  Deal with EOL differences.
29135
29136 2009-11-17  Eric Blake  <ebb9@byu.net>
29137
29138         unsetenv: work around Solaris bug
29139         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
29140         * lib/unsetenv.c (rpl_unsetenv): Work around it.
29141         Reported by Jim Meyering.
29142
29143         vasnprintf: avoid compiler warnings
29144         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
29145         variables.
29146         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
29147
29148 2009-11-17  Simon Josefsson  <simon@josefsson.org>
29149
29150         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
29151         settings since xalloc-die is no longer the self test,
29152         xalloc-die.sh is.
29153
29154 2009-11-17  Jim Meyering  <meyering@redhat.com>
29155
29156         test-xalloc-die.sh: make the code agree with the commit log
29157         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
29158         at the end, just in case you happen to have a test-xalloc-die
29159         program in some other PATH directory.
29160
29161         test-xalloc-die.sh: fix a portability bug
29162         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
29163         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
29164         Otherwise, argv[0] (as often seen in diagnostics) would be too
29165         system-dependent, sometimes with, and sometimes without the leading "./".
29166
29167         version-etc-fsf: relax license to LGPLv3+
29168         * modules/version-etc-fsf (License): Relax license.
29169
29170 2009-11-16  Eric Blake  <ebb9@byu.net>
29171
29172         xalloc-die-tests: avoid printing null pointer
29173         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
29174         shell script.
29175         * tests/test-xalloc-die.c (program_name): Declare.
29176         * tests/test-xalloc-die.sh (tmpfiles): New file.
29177
29178         setenv, unsetenv: work around various bugs
29179         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
29180         (setenv) [HAVE_SETENV]: Work around bugs.
29181         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
29182         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
29183         for bugs.
29184         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
29185         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
29186         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
29187         * modules/stdlib (Makefile.am): Update substitutions.
29188         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
29189         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
29190         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
29191         * modules/setenv-tests: New test.
29192         * modules/unsetenv-tests: Likewise.
29193         * tests/test-setenv.c: New file.
29194         * tests/test-unsetenv.c: Likewise.
29195
29196 2009-11-16  Jim Meyering  <meyering@redhat.com>
29197
29198         version-etc: relax license to LGPLv3+
29199         * modules/version-etc (License): Relax license.
29200
29201         better AC_REQUIRE expanded-before-required-warning avoidance
29202         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
29203         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
29204         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
29205         which is no longer needed.
29206
29207 2009-11-16  Eric Blake  <ebb9@byu.net>
29208
29209         test-freading: clean up temporary file
29210         * tests/test-freading.c (main): Remove file on success, and use
29211         ASSERT more liberally.
29212         Reported by Jim Meyering.
29213
29214 2009-11-16  Jim Meyering  <meyering@redhat.com>
29215
29216         avoid new AC_REQUIRE expanded-before-required warnings
29217         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
29218         merely using it.
29219         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
29220         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
29221
29222 2009-11-15  Simon Josefsson  <simon@josefsson.org>
29223
29224         * tests/test-xalloc-die.c: New file.
29225         * modules/xalloc-die-tests: New file.
29226         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
29227         XFAIL_TESTS so it can be appended by modules.
29228
29229 2009-11-15  Simon Josefsson  <simon@josefsson.org>
29230
29231         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
29232         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
29233
29234 2009-11-14  Eric Blake  <ebb9@byu.net>
29235
29236         fnmatch: avoid compiler warning
29237         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
29238         to silence compiler warning about mismatch signedness in ?:.
29239         Reported by Robert Millan.
29240
29241         intprops: add double-inclusion guard
29242         * lib/intprops.h: Allow idempotent includes.
29243         Suggested by Bruce Korb.
29244
29245         openat: detect Solaris fchownat bug
29246         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
29247         penalizing glibc chownat when only lchownat is broken.
29248         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
29249         trailing slash bugs.
29250         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
29251         * modules/openat-tests (Files): Include more files.
29252         (Depends-on): Add mgetgroups, sleep, stat-time.
29253         (configure.ac): Add additional checks.
29254         (Makefile.am): Build new test.
29255         * tests/test-fchownat.c: New file.
29256
29257         lchown: detect Solaris and FreeBSD bug
29258         * lib/lchown.c (rpl_lchown): Work around bug.
29259         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
29260         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29261         * modules/unistd (Makefile.am): Populate it.
29262         * lib/unistd.in.h (lchown): Update declaration.
29263         * doc/posix-functions/lchown.texi (lchown): Document the bug.
29264         * modules/lchown-tests: New file.
29265         * tests/test-lchown.h (test_lchown): Likewise.
29266         * tests/test-lchown.c (main): Likewise.
29267
29268         chown: detect Solaris and FreeBSD bug
29269         * lib/chown.c (rpl_chown): Work around bug.
29270         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
29271         (gl_PREREQ_CHOWN): Delete.
29272         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29273         * modules/unistd (Makefile.am): Populate it.
29274         * lib/unistd.in.h (chown): Update declaration.
29275         * lib/lchown.c (chown): Update client.
29276         * modules/lchown (Depends-on): Add lstat.
29277         * doc/posix-functions/chown.texi (chown): Document the bug.
29278         * doc/posix-functions/getgroups.texi (getgroups): Document
29279         getgroups pitfall.
29280         * modules/chown-tests: New file.
29281         * tests/test-chown.h (test_chown): Likewise.
29282         * tests/test-chown.c (main): Likewise.
29283
29284 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
29285
29286         gnulib-tool: correctly detect absence of m4 directories
29287         * gnulib-tool: Avoid extra newline on data passed to wc -l.
29288
29289 2009-11-14  Jim Meyering  <meyering@redhat.com>
29290
29291         maint.mk: Prohibit inclusion of "xalloc.h" without use.
29292         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
29293
29294 2009-11-14  John W. Eaton  <jwe@gnu.org>
29295
29296         strftime.h: wrap funtion declaration in extern "C" block
29297         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
29298
29299 2009-11-13  Eric Blake  <ebb9@byu.net>
29300
29301         getgroups: avoid compiler warning
29302         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
29303
29304         getgroups: work around FreeBSD bug
29305         * lib/getgroups.c (rpl_getgroups): Work around the bug.
29306         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
29307         * doc/posix-functions/getgroups.texi (getgroups): Document it.
29308         * tests/test-getgroups.c (main): Fix buffer overrun.
29309
29310         getgroups: avoid compilation failure
29311         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
29312         * modules/getgroups (Depends-on): Add stdint.
29313
29314 2009-11-13  Jim Meyering  <meyering@redhat.com>
29315
29316         test-getgroups: avoid compilation failure
29317         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
29318
29319 2009-11-13  Eric Blake  <ebb9@byu.net>
29320
29321         mgetgroups: new module, taken from coreutils
29322         * modules/mgetgroups: New file.
29323         * lib/mgetgroups.h: Likewise.
29324         * lib/mgetgroups.c (mgetgroups): Likewise.
29325         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
29326         * MODULES.html.sh (Users and groups): Mention it.
29327
29328         getgroups: don't expose GETGROUPS_T to user
29329         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
29330         an element at a time if GETGROUPS_T is wrong size.
29331         * lib/getugroups.h (getugroups): Change signature.
29332         * lib/unistd.in.h (getgroups): Likewise.
29333         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
29334         signature needs fixing.
29335         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
29336         AC_TYPE_GETGROUPS.
29337         * modules/group-member (Depends-on): Add getgroups.
29338         * lib/group-member.c (group_info, get_group_info): Use gid_t.
29339         (group_member): Rely on getgroups replacement.
29340         * lib/getugroups.c (getugroups): Use gid_t.
29341         * tests/test-getgroups.c (main): Likewise.
29342         * NEWS: Mention the signature change.
29343         * doc/posix-functions/getgroups.texi (getgroups): Mention the
29344         problem with signature.
29345         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
29346         GETGROUPS_T is still useful for setgroups.
29347
29348         getgroups, getugroups: provide stubs for mingw
29349         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
29350         * lib/getugroups.c (getugroups): Likewise.
29351         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
29352         function.  Modernize replacement scheme.
29353         (gl_PREREQ_GETGROUPS): Delete.
29354         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
29355         * modules/getgroups (configure.ac): Declare witness.
29356         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
29357         * modules/unistd (Depends-on): Substitute witness.
29358         * lib/unistd.in.h (getgroups): Declare replacement.
29359
29360         getgroups: avoid calling exit
29361         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
29362         drop xalloc.
29363         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
29364         dependencies.
29365         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
29366         exiting, in the rare case of malloc failure.
29367
29368         getgroups: fix logic error
29369         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
29370         has more than 20 groups.
29371         * modules/getgroups-tests: New test.
29372         * tests/test-getgroups.c: New file.
29373
29374 2009-11-13  Simon Josefsson  <simon@josefsson.org>
29375
29376         * tests/test-base64.c: Improve.
29377
29378 2009-11-13  Simon Josefsson  <simon@josefsson.org>
29379
29380         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
29381         Blake <ebb9@byu.net>.
29382
29383 2009-11-13  Simon Josefsson  <simon@josefsson.org>
29384
29385         * tests/test-xvasprintf.c: Add %s%s related checks.
29386
29387 2009-11-12  Eric Blake  <ebb9@byu.net>
29388
29389         version-etc: match standards.texi style
29390         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
29391         and use <> only for URLs.
29392
29393 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
29394
29395         fts: do not fail on a submount during traversal
29396         * lib/fts.c (fts_build): Read the stat info again after opening
29397         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
29398         Original report at http://bugzilla.redhat.com/501848.
29399
29400 2009-11-12  Jim Meyering  <meyering@redhat.com>
29401
29402         bootstrap: sync from coreutils
29403         * build-aux/bootstrap (bootstrap_epilogue): New function.
29404         Use git_modules_config in one more place.  This make bootstrap's
29405         --gnulib-srcdir option more useful for testing.
29406
29407         bootstrap: generalize autoheader check
29408         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
29409         AC_CONFIG_HEADERS.
29410
29411 2009-11-11  Eric Blake  <ebb9@byu.net>
29412
29413         mkfifoat: use new modules for Solaris and BSD bugs
29414         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
29415         * lib/mkfifoat.c (mknodat): Split...
29416         * lib/mknodat.c (mknodat): ...into new file.
29417         * modules/mkfifoat (Files): Ship new file.
29418         (Depends-on): Add mkfifo, mknod.
29419         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
29420         (Depends-on): Add symlink.
29421         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
29422         redundant with test_mkfifo.h.
29423         (do_mkfifoat, do_mknodat): New helpers.
29424
29425         mknod: new module
29426         * modules/mknod: New file.
29427         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
29428         * lib/mknod.c (mknod): Likewise.
29429         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
29430         defaults.
29431         * modules/sys_stat (Makefile.am): Substitute them.
29432         * lib/sys_stat.in.h (mknod): Declare replacement.
29433         * MODULES.html.sh (Support for systems lacking POSIX:2008):
29434         Document it.
29435         * doc/posix-functions/mknod.texi (mknod): Likewise.
29436         * modules/mknod-tests: New test.
29437         * tests/test-mknod.c: Likewise.
29438
29439         mkfifo: new module
29440         * modules/mkfifo: New file.
29441         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
29442         * lib/mkfifo.c (mkfifo): Likewise.
29443         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
29444         defaults.
29445         * modules/sys_stat (Makefile.am): Substitute them.
29446         * lib/sys_stat.in.h (mkfifo): Declare replacement.
29447         * MODULES.html.sh (Support for systems lacking POSIX:2008):
29448         Document it.
29449         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
29450         * modules/mkfifo-tests: New test.
29451         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
29452         from test-mkfifoat.c.
29453         * tests/test-mkfifo.c: New file.
29454
29455         readlink: detect FreeBSD bug
29456         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
29457         slash on symlink.
29458         * doc/posix-functions/readlink.texi (readlink): Document the bug.
29459         * tests/test-readlink.h (test_readlink): Enhance test.
29460
29461         symlink: detect FreeBSD bug
29462         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
29463         slash on symlink.
29464         * doc/posix-functions/symlink.texi (symlink): Document the bug.
29465         * tests/test-symlink.h (test_symlink): Enhance test.
29466
29467 2009-11-10  Eric Blake  <ebb9@byu.net>
29468
29469         link: detect FreeBSD bug
29470         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
29471         symlink.
29472         * doc/posix-functions/link.texi (link): Document the bug.
29473         * tests/test-link.h (test_link): Enhance test.
29474         * tests/test-linkat.c (main): Update caller.
29475
29476         unlink, remove: detect FreeBSD bug
29477         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
29478         slash on symlink.
29479         * doc/posix-functions/unlink.texi (unlink): Document the bug.
29480         * doc/posix-functions/remove.texi (remove): Likewise.
29481         * tests/test-unlink.h (test_unlink): Enhance test.
29482         * tests/test-remove.c (main): Likewise.
29483
29484 2009-11-09  Eric Blake  <ebb9@byu.net>
29485
29486         rename: detect FreeBSD bug
29487         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
29488         slash on symlink.
29489         * modules/renameat-tests (Depends-on): Add filenamecat.
29490         * tests/test-rename.h (test_rename): Allow one more errno.
29491         * tests/test-renameat.c (main): Likewise.
29492         * doc/posix-functions/rename.texi (rename): Document the bug.
29493
29494         open: detect FreeBSD bug
29495         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
29496         symlink.
29497         * doc/posix-functions/open.texi (open): Document the bug.
29498         * doc/posix-functions/utimes.texi (utimes): Likewise.
29499         * tests/test-open.h (test_open): Add parameters, and test symlink
29500         handling.
29501         * tests/test-open.c (main): Adjust caller.
29502         * tests/test-fcntl-safer.c (main): Likewise.
29503         * modules/open-tests (Depends-on): Add stdbool, symlink.
29504         * modules/fcntl-safer-tests (Depends-on): Likewise.
29505         * tests/test-openat.c (main): Add test-open tests.
29506
29507         stat: detect FreeBSD bug
29508         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
29509         symlink.
29510         * doc/posix-functions/stat.texi (stat): Document the bug.
29511         * tests/test-stat.h (test_stat_func): Add argument.
29512         * tests/test-stat.c (main): Adjust caller.
29513         * tests/test-fstatat.c (main): Likewise.
29514         * modules/stat-tests (Depends-on): Add stdbool, symlink.
29515         Reported by Jim Meyering.
29516
29517 2009-11-09  James Youngman  <jay@gnu.org>
29518
29519         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
29520         * lib/strftime.c: Correct placement of #include "ignore-value.h".
29521
29522 2009-11-08  Jim Meyering  <meyering@redhat.com>
29523
29524         utimens: remove invalid futimesat call
29525         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
29526         It used the file descriptor of the target file as the DIR_FD
29527         parameter and NULL as the file name.  That caused failure with
29528         errno == EFAULT on FreeBSD-8.0-rc2
29529
29530 2009-11-07  Eric Blake  <ebb9@byu.net>
29531
29532         fflush, freadseek: use fseeko, not fseek
29533         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
29534         (clear_ungetc_buffer): Avoid potential problems on large files.
29535         * lib/freadseek.c (freadseek): Likewise.
29536         * modules/freadseek (Depends-on): Add fseeko.
29537         * modules/fseek (configure.ac): Set a witness.
29538         * tests/test-fflush.c (main): Use fseeko.
29539         * tests/test-fpurge.c (fseek): Disable link warning.
29540         * tests/test-freadable.c (fseek): Likewise.
29541         * tests/test-freading.c (fseek): Likewise.
29542         * tests/test-fseeko.c (fseek): Likewise.
29543         * tests/test-ftell.c (fseek): Likewise.
29544         * tests/test-ftello.c (fseek): Likewise.
29545         * tests/test-fwritable.c (fseek): Likewise.
29546         * tests/test-fwriting.c (fseek): Likewise.
29547
29548 2009-11-06  Simon Josefsson  <simon@josefsson.org>
29549
29550         * modules/memchr (Depends-on): Drop getpagesize dependency.
29551
29552 2009-11-06  Simon Josefsson  <simon@josefsson.org>
29553
29554         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
29555         Reported by Ludovic Courtès.
29556         * build-aux/pmccabe2html: Improve example usage.
29557         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
29558
29559 2009-11-06  Jim Meyering  <meyering@redhat.com>
29560
29561         do-release-commit-and-tag: New module.
29562         Automate the release-commit and tag process.
29563         * build-aux/do-release-commit-and-tag: New script, from coreutils.
29564         * modules/do-release-commit-and-tag: New file.
29565         * MODULES.html.sh (Support for maintaining and releasing): Add it.
29566
29567 2009-11-06  Simon Josefsson  <simon@josefsson.org>
29568
29569         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
29570         because test-select.c uses inet_pton.
29571
29572 2009-11-06  Simon Josefsson  <simon@josefsson.org>
29573
29574         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
29575         GETADDRINFO_LIB.  Bump serial number.
29576         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
29577         Suggested by Eric Blake <ebb9@byu.net>.
29578
29579 2009-11-05  Eric Blake  <ebb9@byu.net>
29580
29581         strtod: detect darwin bug
29582         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
29583         Reported by Leo Davis.
29584
29585         freopen-safer: new module
29586         * modules/freopen-safer: New module.
29587         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
29588         * lib/freopen-safer.c (freopen_safer): New file.
29589         * lib/stdio-safer.h (freopen_safer): New declaration.
29590         * lib/stdio--.h (freopen): New override.
29591         * MODULES.html.sh (File stream based Input/Output): Mention it.
29592         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
29593         freopen-safer module.
29594         * doc/posix-functions/stderr.texi (stderr): Likewise.
29595         * doc/posix-functions/stdin.texi (stdin): Likewise.
29596         * doc/posix-functions/stdout.texi (stdout): Likewise.
29597         * modules/freopen-safer-tests: New test.
29598         * tests/test-reopen-safer.c: New file.
29599
29600 2009-11-05  Jim Meyering  <meyering@redhat.com>
29601
29602         maint.mk: Prohibit inclusion of "close-stream.h" without use.
29603         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
29604
29605 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29606
29607         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
29608
29609 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29610
29611         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
29612
29613 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29614
29615         Fix link error.
29616         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
29617         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
29618
29619 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29620
29621         * tests/test-func.c: Also test value of __func__.
29622
29623 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29624
29625         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
29626         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
29627
29628 2009-11-05  Bruno Haible  <bruno@clisp.org>
29629
29630         Fix link error.
29631         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
29632         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
29633         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
29634
29635 2009-11-05  Bruno Haible  <bruno@clisp.org>
29636
29637         Tests for module 'inet_pton'.
29638         * modules/inet_pton-tests: New file.
29639         * tests/test-inet_pton.c: New file.
29640
29641 2009-11-05  Bruno Haible  <bruno@clisp.org>
29642
29643         Tests for module 'inet_ntop'.
29644         * modules/inet_ntop-tests: New file.
29645         * tests/test-inet_ntop.c: New file.
29646
29647 2009-11-04  Eric Blake  <ebb9@byu.net>
29648
29649         stdlib-safer: wrap all mkstemp variants
29650         * modules/mkostemp (configure.ac): Set witness.
29651         * modules/mkostemps (configure.ac): Likewise.
29652         * modules/mkstemps (configure.ac): Likewise.
29653         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
29654         (mkstemps_safer): Wrap more functions.
29655         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
29656         wrapping.
29657         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
29658         (mkstemps_safer): Implement the wrappers.
29659
29660         mkstemps, mkostemps: new modules
29661         * modules/mkostemps: New module.
29662         * modules/mkstemps: Likewise.
29663         * lib/mkostemps.c (mkostemps): New file.
29664         * lib/mkstemps.c (mkstemps): Likewise.
29665         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
29666         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
29667         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
29668         * modules/stdlib (Makefile.am): Substitute them.
29669         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
29670         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
29671         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
29672         * doc/gnulib.texi (Glibc stdlib.h): Include them.
29673         * MODULES.html.sh (File system functions): Mention them.
29674
29675         tempname: resync from glibc
29676         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
29677         same values for __GT_FILE as glibc.  Abort even when assertions
29678         are disabled.
29679         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
29680         match its value otherwise.  Allow idempotent inclusion.
29681         * lib/mkdtemp.c (mkdtemp): Adjust caller.
29682         * lib/mkostemp.c (mkostemp): Likewise.
29683         * lib/mkstemp.c (mkstemp): Likewise.
29684         * lib/tmpfile.c (tmpfile): Likewise.
29685         * NEWS: Document this.
29686
29687         utimens: fix use of futimens on older Linux
29688         * lib/utimens.c (fdutimens): Use updated, rather than original,
29689         timespec to avoid bug in older Linux kernel.
29690         Reported by Simon Josefsson.
29691
29692 2009-11-04  Bruno Haible  <bruno@clisp.org>
29693
29694         Make num_processors more flexible and consistent.
29695         * lib/nproc.h (enum nproc_query): New type.
29696         (num_processors): Add a 'query' argument.
29697         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
29698         (num_processors): Add a 'query' argument. Test the value of the
29699         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
29700         mingw, count the number of CPUs available for the current process.
29701         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
29702         Check for sched_getaffinity and sched_getaffinity_np.
29703         * modules/nproc (Depends-on): Add c-ctype, extensions.
29704         * NEWS: Mention the change.
29705
29706 2009-11-03  Bruno Haible  <bruno@clisp.org>
29707
29708         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
29709
29710 2009-11-03  Jim Meyering  <meyering@redhat.com>
29711
29712         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
29713         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
29714         if it is defined.
29715
29716 2009-11-02  Eric Blake  <ebb9@byu.net>
29717
29718         mktime, timegm: share common declaration
29719         * lib/mktime-internal.h: New file.
29720         * lib/mktime.c: Use it rather than open-coding a declaration.
29721         * lib/timegm.c: Likewise.
29722         * modules/mktime (Files): Ship it.
29723         * modules/timegm (Files): Likewise.
29724         Suggested by Bruno Haible.
29725
29726         test-update-copyright: update test to match script changes
29727         * tests/test-update-copyright.sh: Avoid hard-coding perl
29728         location.  Don't update *.bak created by earlier runs.
29729
29730 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
29731             Simon Josefsson  <simon@josefsson.org>
29732             Bruno Haible  <bruno@clisp.org>
29733
29734         Fix link error on Solaris 8.
29735         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
29736         also in libnsl. Define also INET_PTON_LIB.
29737         * modules/inet_pton (Link): New section.
29738
29739 2009-11-02  Simon Josefsson  <simon@josefsson.org>
29740             Bruno Haible  <bruno@clisp.org>
29741
29742         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
29743         * modules/inet_ntop (Link): New section.
29744         Reported by Boyan Kasarov <bkasarov@gmail.com>.
29745
29746 2009-11-02  Eric Blake  <ebb9@byu.net>
29747
29748         maint: avoid compiler warnings in m4 macros
29749         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
29750         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
29751
29752 2009-11-02  Simon Josefsson  <simon@josefsson.org>
29753
29754         * m4/pmccabe2html.m4: Remove file.
29755         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
29756         function.  Change maintainer.
29757         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
29758         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
29759         Courtès).
29760
29761 2009-10-31  Eric Blake  <ebb9@byu.net>
29762
29763         fseeko: fix m4 regression
29764         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
29765         regression from 2009-10-27.
29766         Reported by Ralf Wildenhues.
29767
29768 2009-10-31  Jim Meyering  <meyering@redhat.com>
29769
29770         inttostr: aesthetics and improved (compile-time) safety
29771         Define inttype_is_signed rather than inttype_is_unsigned,
29772         since the sole use is via "#if inttype_is_signed".
29773         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
29774         inttype_is_unsigned.
29775         * lib/offtostr.c (inttype_is_signed): Likewise.
29776         * lib/uinttostr.c (inttype_is_signed): Likewise.
29777         * lib/umaxtostr.c (inttype_is_signed): Likewise.
29778         * lib/inttostr.c (inttostr): Use verify to cross-check the
29779         inttype_is_signed value and the signedness of the actual type.
29780         * modules/inttostr (Depends-on): Add verify.
29781
29782 2009-10-30  Eric Blake  <ebb9@byu.net>
29783
29784         build: avoid compiler warnings
29785         * lib/fchmodat.c (lchmod): Mark unused variables.
29786         * lib/getopt.c (_getopt_initialize): Likewise.
29787         * lib/mktime.c (__mktime_internal): Provide prototype.
29788         * lib/inttostr.c (inttostr): Avoid compiler warning even with
29789         older gcc that do not understand #pragma GCC diagnostic.
29790         * lib/uinttostr.c (inttype_is_unsigned): Define.
29791         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
29792
29793 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
29794
29795         stat: fix compilation on AIX
29796         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
29797         only see struct stat64.
29798
29799 2009-10-30  Eric Blake  <ebb9@byu.net>
29800
29801         exclude: make more robust
29802         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
29803         rather than masking a coding bug.
29804         Suggested by Bruno Haible.
29805
29806 2009-10-30  Jim Meyering  <meyering@redhat.com>
29807
29808         perl scripts: remove #!/usr/bin/perl in favor of more portable...
29809         Rather than putting #!/usr/bin/perl on the first line,
29810         start with a variant of what's recommended by "man perlrun" that
29811         invokes the first "perl" program from your shell's search path.
29812         * build-aux/gitlog-to-changelog: Replace #!... as above.
29813         Add a "Local Variables" perl mode setting.
29814         Prompted by a patch from Ludovic Courtès.
29815         Improved by Eric Blake.
29816         * build-aux/useless-if-before-free: Likewise.
29817         * build-aux/announce-gen: Likewise.
29818         * build-aux/update-copyright: Likewise.
29819
29820 2009-10-29  Eric Blake  <ebb9@byu.net>
29821
29822         filenamecat-lgpl: adjust clients
29823         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
29824         filenamecat.
29825         * modules/renameat (Depends-on): Likewise.
29826
29827         filenamecat: split into filenamecat-lgpl
29828         * modules/filenamecat-lgpl: New module.
29829         * modules/filenamecat (Files): Move library-safe files into
29830         filenamecat-lgpl.
29831         (Depends-on): Add filenamecat-lgpl.
29832         (configure.ac): Declare witness.
29833         * lib/filenamecat.h (file_name_concat): Only declare when using
29834         GPL module.
29835         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
29836         Move...
29837         * lib/filenamecat-lgpl.c: ...into new file.
29838         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
29839         (gl_FILE_NAME_CONCAT): Use it.
29840         * MODULES.html.sh (File system functions): Mention new module.
29841
29842         argp: avoid memory leak
29843         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
29844         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
29845         base_name, since the latter malloc()s and can call exit().
29846         Leak introduced 2006-07-03.
29847
29848         dirname-lgpl: adjust clients that don't need full dirname
29849         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
29850         * modules/filenamecat (Depends-on): Likewise.
29851         * modules/linkat (Depends-on): Likewise.
29852         * modules/mkancesdirs (Depends-on): Likewise.
29853         * modules/mkdir (Depends-on): Likewise.
29854         * modules/openat (Depends-on): Likewise.
29855         * modules/savewd (Depends-on): Likewise.
29856         * modules/rename (Depends-on): Likewise.
29857         (License): Relax license.
29858         * modules/mkdir-tests (Depends-on): Drop progname.
29859         (Makefile.am): Delete unneeded LDADD.
29860         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
29861
29862         dirname: split into dirname-lgpl
29863         * modules/dirname-lgpl: New module.
29864         * modules/dirname (Files): Move library-safe files into
29865         dirname-lgpl.
29866         (Depends-on): Add dirname-lgpl.
29867         (configure.ac): Declare witness.
29868         * modules/double-slash-root (License): Relax license.
29869         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
29870         module.
29871         * lib/dirname.c (dir_len, mdir_name): Move...
29872         * lib/dirname-lgpl.c: ...into new file.
29873         * lib/basename.c (last_component, base_len): Move...
29874         * lib/basename-lgpl.c: ...into new file.
29875         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
29876         (gl_DIRNAME): Use it.
29877         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
29878         Mention new module.
29879         * modules/dirname-tests (Depends-on): Add progname.
29880         * tests/test-dirname.c (program_name): Delete.
29881
29882         mkdir: make safe for libraries
29883         * modules/mkdir (Depends-on): Drop xalloc.
29884         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
29885         exit.
29886
29887         tests: avoid some compiler warnings
29888         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
29889         literals.
29890         * tests/test-memchr.c (main): Avoid type mismatch.
29891         * tests/test-arpa_inet.c (main): Avoid unused parameters.
29892         * tests/test-base64.c (main): Likewise.
29893         * tests/test-getdelim.c (main): Likewise.
29894         * tests/test-gethostname.c (main): Likewise.
29895         * tests/test-getline.c (main): Likewise.
29896         * tests/test-netinet_in.c (main): Likewise.
29897         * tests/test-select.c (open_server_socket, main): Likewise.
29898         * tests/test-select-stdin.c (main): Likewise.
29899         * tests/test-sockets.c (main): Likewise.
29900         * tests/test-strsignal.c (main): Likewise.
29901         * tests/test-sys_select.c (main): Likewise.
29902         * tests/test-sys_socket.c (main): Likewise.
29903         * tests/test-u64.c (main): Likewise.
29904         * tests/test-xfprintf-posix.c (main): Likewise.
29905         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
29906
29907         sockets: avoid compiler warning
29908         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
29909
29910         maint: detect usage(1) and other suspicious exits
29911         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
29912
29913 2009-10-29  Jim Meyering  <meyering@redhat.com>
29914
29915         timespec: long-to-int truncation could make timespec_cmp malfunction
29916         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
29917         a multiple of 2^32 nanoseconds as no difference.
29918
29919 2009-10-28  Jim Meyering  <meyering@redhat.com>
29920
29921         fprintftime: wrap macro code argument in "do {...} while(0)"
29922         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
29923         cpy macro must be a statement that can be followed by a semicolon.
29924         Now that the else clause contains a comment and is hence longer
29925         than one line, I require curly braces.  That in turn requires
29926         that we wrap this code block in the standard do...while(0).
29927
29928         fprintftime: remove stray semicolon from previous change
29929         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
29930
29931         fprintftime: avoid a warning about ignored fwrite return value
29932         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
29933         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
29934         that is unsafe.
29935         * modules/fprintftime (Depends-on): Add ignore-value.
29936
29937         exclude: avoid an unwarranted warning
29938         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
29939
29940 2009-10-27  Eric Blake  <ebb9@byu.net>
29941
29942         fseek: avoid compilation failure when fflush is replaced
29943         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
29944         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
29945         module is in use.
29946         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
29947         module is not in use; since REPLACE_FSEEK worked otherwise.
29948         (GNULIB_FTELLO): Likewise for ftell.
29949         Reported by Ian Beckwith and others.
29950
29951 2009-10-27  Bruno Haible  <bruno@clisp.org>
29952
29953         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
29954         Reported by Jim Meyering.
29955
29956 2009-10-27  Jim Meyering  <jim@meyering.net>
29957             Bruno Haible  <bruno@clisp.org>
29958
29959         Avoid warning despite dropping the return value of fwrite.
29960         * lib/unicodeio.c: Include ignore-value.h.
29961         (fwrite_success_callback): Explicitly ignore fwrite's return value.
29962         * modules/unicodeio (Depends-on): Add ignore-value.
29963
29964 2009-10-26  Eric Blake  <ebb9@byu.net>
29965
29966         areadlinkat: fix fallback path
29967         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
29968         pointer and zero.
29969
29970 2009-10-22  Pádraig Brady  <P@draigBrady.com>
29971
29972         Use a better IO block size for modern systems
29973         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
29974         * lib/md2.c: Likewise.
29975         * lib/md4.c: Likewise.
29976         * lib/md5.c: Likewise.
29977         * lib/sha1.c: Likewise.
29978         * lib/sha256.c: Likewise.
29979         * lib/sha512.c: Likewise.
29980
29981 2009-10-22  Eric Blake  <ebb9@byu.net>
29982
29983         tests: avoid several compiler warnings
29984         * tests/test-getcwd.c (main): Avoid buffer underflow.
29985         * tests/test-getdate.c (main): String literals are not safe with
29986         putenv, so use setenv.  Declare unused argument.
29987         * modules/getdate-tests (Depends-on): Add setenv.
29988         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
29989         problems with string literals in char *.
29990         * tests/test-hash.c (main): Avoid shadowing declaration.
29991         (insert_new): Treat string literals as char const *.
29992         * tests/test-getopt.h (test_getopt): Likewise.
29993         (getopt_loop): Alter types to minimize casting elsewhere.
29994         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
29995         (test_getopt_long_posix): Likewise.
29996         (do_getopt_long): Add wrapper to minimize casting.
29997         * tests/test-atexit.c (clear_temp_file): Use void.
29998         * tests/test-areadlink-with-size.c (main): Declare unused
29999         arguments.
30000         * tests/test-areadlink.c (main): Likewise.
30001         * tests/test-areadlinkat-with-size.c (main): Likewise.
30002         * tests/test-areadlinkat.c (main): Likewise.
30003         * tests/test-canonicalize-lgpl.c (main): Likewise.
30004         * tests/test-canonicalize.c (main): Likewise.
30005         * tests/test-dirent-safer.c (main): Likewise.
30006         * tests/test-dirname.c (main): Likewise.
30007         * tests/test-dup2.c (main): Likewise.
30008         * tests/test-fchdir.c (main): Likewise.
30009         * tests/test-fcntl-h.c (main): Likewise.
30010         * tests/test-fcntl-safer.c (main): Likewise.
30011         * tests/test-fdopendir.c (main): Likewise.
30012         * tests/test-fdutimensat.c (main): Likewise.
30013         * tests/test-fflush.c (main): Likewise.
30014         * tests/test-filenamecat.c (main): Likewise.
30015         * tests/test-filevercmp.c (main): Likewise.
30016         * tests/test-fopen-safer.c (main): Likewise.
30017         * tests/test-fopen.c (main): Likewise.
30018         * tests/test-fpending.c (main): Likewise.
30019         * tests/test-fpurge.c (main): Likewise.
30020         * tests/test-freading.c (main): Likewise.
30021         * tests/test-fstatat.c (main): Likewise.
30022         * tests/test-fsync.c (main): Likewise.
30023         * tests/test-futimens.c (main): Likewise.
30024         * tests/test-getndelim2.c (main): Likewise.
30025         * tests/test-gettimeofday.c (main): Likewise.
30026         * tests/test-getopt.c (main): Likewise.
30027         * tests/test-i-ring.c (main): Likewise.
30028         * tests/test-inttypes.c (main): Likewise.
30029         * tests/test-link.c (main): Likewise.
30030         * tests/test-lstat.c (main): Likewise.
30031         * tests/test-math.c (main): Likewise.
30032         * tests/test-md5.c (main): Likewise.
30033         * tests/test-memchr2.c (main): Likewise.
30034         * tests/test-memrchr.c (main): Likewise.
30035         * tests/test-mkdir.c (main): Likewise.
30036         * tests/test-mkdirat.c (main): Likewise.
30037         * tests/test-mkfifoat.c (main): Likewise.
30038         * tests/test-open.c (main): Likewise.
30039         * tests/test-openat-safer.c (main): Likewise.
30040         * tests/test-openat.c (main): Likewise.
30041         * tests/test-quotearg.c (main): Likewise.
30042         * tests/test-rawmemchr.c (main): Likewise.
30043         * tests/test-readlink.c (main): Likewise.
30044         * tests/test-remove.c (main): Likewise.
30045         * tests/test-rename.c (main): Likewise.
30046         * tests/test-renameat.c (main): Likewise.
30047         * tests/test-rmdir.c (main): Likewise.
30048         * tests/test-sha1.c (main): Likewise.
30049         * tests/test-signal.c (main): Likewise.
30050         * tests/test-sigaction.c (main): Likewise.
30051         * tests/test-stat.c (main): Likewise.
30052         * tests/test-stat-time.c (main): Likewise.
30053         * tests/test-stddef.c (main): Likewise.
30054         * tests/test-stdint.c (main): Likewise.
30055         * tests/test-stdio.c (main): Likewise.
30056         * tests/test-stdlib.c (main): Likewise.
30057         * tests/test-strchrnul.c (main): Likewise.
30058         * tests/test-strerror.c (main): Likewise.
30059         * tests/test-string.c (main): Likewise.
30060         * tests/test-strtod.c (main): Likewise.
30061         * tests/test-strverscmp.c (main): Likewise.
30062         * tests/test-symlink.c (main): Likewise.
30063         * tests/test-symlinkat.c (main): Likewise.
30064         * tests/test-sys_stat.c (main): Likewise.
30065         * tests/test-sys_time.c (main): Likewise.
30066         * tests/test-time.c (main): Likewise.
30067         * tests/test-unistd.c (main): Likewise.
30068         * tests/test-unlink.c (main): Likewise.
30069         * tests/test-unlinkat.c (main): Likewise.
30070         * tests/test-utimens.c (main): Likewise.
30071         * tests/test-utimensat.c (main): Likewise.
30072         * tests/test-version-etc.c (main): Likewise.
30073         * tests/test-wchar.c (main): Likewise.
30074         * tests/test-wctype.c (main): Likewise.
30075         * tests/test-xprintf-posix.c (main): Likewise.
30076         * tests/test-posixtm.c (main): Likewise.
30077         (STREQ): Delete unused macro.
30078         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
30079         shadowed variables.
30080         * tests/test-memchr.c (main): Likewise.
30081
30082 2009-10-21  Eric Blake  <ebb9@byu.net>
30083
30084         areadlinkat: avoid failure on older glibc
30085         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
30086         rather than mis-comparing 0 against FUNC_RESULT of char*.
30087
30088 2009-10-21  Bruno Haible  <bruno@clisp.org>
30089
30090         * modules/stpncpy (License): Relicense under LGPLv2+.
30091         Reported by David Lutterkort <lutter@redhat.com>.
30092
30093 2009-10-20  Eric Blake  <ebb9@byu.net>
30094
30095         utimensat: work around Solaris 9 bug
30096         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
30097         has trailing slash bugs.
30098         * tests/test-lutimens.h (test_lutimens): Enhance test.
30099         * tests/test-utimens.h (test_utimens): Likewise.
30100         * doc/posix-functions/utime.texi (utime): Enhance documentation.
30101         * doc/posix-functions/utimes.texi (utimes): Likewise.
30102         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
30103         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
30104         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
30105         * doc/posix-functions/futimens.texi (futimens): Likewise.
30106
30107         fdutimensat: new module
30108         * modules/fdutimensat: New file.
30109         * lib/fdutimensat.c (fdutimensat): Likewise.
30110         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
30111         * MODULES.html.sh (File system functions): Mention module.
30112         * modules/fdutimensat-tests: New test.
30113         * tests/test-fdutimensat.c: Likewise.
30114
30115         doc: regenerate INSTALL
30116         * doc/INSTALL: Reflect recent autoconf update.
30117         * doc/INSTALL.ISO: Likewise.
30118         * doc/INSTALL.UTF-8: Likewise.
30119
30120 2009-10-20  Pádraig Brady  <P@draigBrady.com>
30121
30122         acl: warn if ACL support is not detected
30123         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
30124
30125 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
30126
30127         * lib/nproc.h: Add extern "C" block for C++.
30128
30129 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
30130             Bruno Haible  <bruno@clisp.org>
30131
30132         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
30133         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
30134         * doc/posix-functions/isalpha.texi: Likewise.
30135         * doc/posix-functions/isblank.texi: Likewise.
30136         * doc/posix-functions/iscntrl.texi: Likewise.
30137         * doc/posix-functions/isdigit.texi: Likewise.
30138         * doc/posix-functions/isgraph.texi: Likewise.
30139         * doc/posix-functions/islower.texi: Likewise.
30140         * doc/posix-functions/isprint.texi: Likewise.
30141         * doc/posix-functions/ispunct.texi: Likewise.
30142         * doc/posix-functions/isspace.texi: Likewise.
30143         * doc/posix-functions/isupper.texi: Likewise.
30144         * doc/posix-functions/isxdigit.texi: Likewise.
30145
30146 2009-10-18  Bruno Haible  <bruno@clisp.org>
30147
30148         Tests for module 'isblank'.
30149         * modules/isblank-tests: New file.
30150         * tests/test-isblank.c: New file.
30151
30152         New module 'isblank'.
30153         * lib/isblank.c: New file.
30154         * m4/isblank.m4: New file.
30155         * modules/isblank: New file.
30156         * doc/posix-functions/isblank.texi: Mention the new module.
30157
30158 2009-10-18  Bruno Haible  <bruno@clisp.org>
30159
30160         New module 'ctype'.
30161         * lib/ctype.in.h: New file.
30162         * m4/ctype.m4: New file.
30163         * modules/ctype: New file.
30164         * doc/posix-headers/ctype.texi: Mention the new module.
30165
30166 2009-10-18  Jim Meyering  <meyering@redhat.com>
30167
30168         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
30169         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
30170         right after its initialization, rather than farther down.
30171         Keeping these in close proximity makes it easier to ensure
30172         that each such variable is initialized.  E.g.,
30173
30174             LIB_CLOCK_GETTIME=
30175             AC_SUBST([LIB_CLOCK_GETTIME])
30176
30177         This change also increments these serial numbers.
30178         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
30179         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
30180         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
30181
30182 2009-10-18  Bruno Haible  <bruno@clisp.org>
30183
30184         Don't let environment variables perturb build.
30185         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
30186         (gl_PREREQ_GETHRXTIME): ... not here.
30187
30188 2009-10-18  Bruno Haible  <bruno@clisp.org>
30189
30190         Avoid symlink attack in localcharset module.
30191         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
30192         (O_NOFOLLOW): Define fallback.
30193         (get_charset_aliases): Don't open the file if it is a symbolic link.
30194         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
30195         gl_FCNTL_H.
30196         (gl_FCNTL_H): Require it.
30197         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
30198         * modules/localcharset (Files): Add m4/fcntl_h.m4.
30199         Reported by Fergal Glynn <fglynn@veracode.com>.
30200
30201 2009-10-18  Bruno Haible  <bruno@clisp.org>
30202
30203         Implement nproc for mingw.
30204         * lib/nproc.c: Include <windows.h>
30205         (num_processors): On native Windows platforms, try GetSystemInfo.
30206
30207 2009-10-18  Bruno Haible  <bruno@clisp.org>
30208
30209         Implement nproc for IRIX.
30210         * lib/nproc.c: Include <sys/sysmp.h>.
30211         (num_processors): On IRIX systems, try sysmp.
30212         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
30213
30214 2009-10-18  Bruno Haible  <bruno@clisp.org>
30215
30216         Implement nproc for HP-UX.
30217         * lib/nproc.c: Include <sys/pstat.h>
30218         (num_processors): On HP-UX systems, try pstat_getdynamic.
30219         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
30220         pstat_getdynamic.
30221
30222 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
30223             Bruno Haible  <bruno@clisp.org>
30224
30225         Implement nproc for NetBSD, OpenBSD.
30226         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
30227         (ARRAY_SIZE): New macro.
30228         (num_processors): On BSD systems, try sysctl of HW_NCPU.
30229         * m4/nproc.m4: New file.
30230         * modules/nproc (Files): Add m4/nproc.m4.
30231         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
30232         (Makefile.am): Instead, augment lib_SOURCES.
30233
30234 2009-10-18  Bruno Haible  <bruno@clisp.org>
30235
30236         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
30237         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
30238         sys/param.h.
30239
30240 2009-10-16  Eric Blake  <ebb9@byu.net>
30241
30242         utimensat: new module
30243         * modules/utimensat: New file.
30244         * lib/utimensat.c (utimensat): Likewise.
30245         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
30246         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
30247         so we can work around Linux bugs.
30248         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
30249         * modules/sys_stat (Makefile.am): Substitute them.
30250         * lib/sys_stat.in.h (utimensat): Declare it.
30251         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30252         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
30253         * modules/utimensat-tests: New test.
30254         * tests/test-utimensat.c: Likewise.
30255
30256         utimens: let lutimens work on non-symlinks
30257         * lib/utimens.c (lutimens): Fall back to utimens rather than
30258         failing with ENOSYS, when file is not a symlink.
30259         (utimens): Reduce redirection.
30260         * tests/test-lutimens.h (test_lutimens): Update test to cover
30261         non-symlinks.
30262         * tests/test-utimens.h (test_utimens): Update test to cover
30263         symlinks.
30264         * tests/test-utimens.c (main): Update caller.
30265
30266         utimens: cache whether utimensat syscall works
30267         * lib/utimens.c (utimensat_works_really): New cache variable.
30268         (fdutimens, lutimens): Use it to avoid failing syscall.
30269
30270         test-stat-time, test-utimens: improve portability
30271         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
30272         ext4 on alpha, and for cygwin.
30273         * tests/test-utimens-common.h: New file.
30274         (nap): Factor delays into single function.
30275         * tests/test-lutimens.h (test_lutimens): Use new header.
30276         * tests/test-futimens.h (test_futimens): Likewise.
30277         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
30278         timestamps to occur from same machine, as was done previously for
30279         test_utimens.
30280         * modules/utimens-tests (Files): Ship new file.
30281         * modules/futimens-tests (Files): Likewise.
30282         Reported in part by Jim Meyering.
30283
30284         sys_stat: sort replacement declarations
30285         * lib/sys_stat.in.h: Sort declarations.
30286         * lib/futimens.c (futimens): Fix typo.
30287
30288 2009-10-15  Jim Meyering  <meyering@redhat.com>
30289
30290         don't let environment settings perturb build
30291         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
30292         could cause a configure-time and/or build-time malfunction.
30293         Typically, a configure-time function-in-library test is performed
30294         via code like this:
30295
30296           LIB_VAR=
30297           AC_SUBST([LIB_VAR])
30298           prefix_saved_LIBS=$LIBS
30299             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
30300                        [test "$ac_cv_search_FUNC" = "none required" ||
30301                         LIB_VAR=$ac_cv_search_FUNC])
30302           LIBS=$prefix_saved_LIBS
30303
30304         However, in each of the files affected by this change, the LIB_VAR=
30305         initialization was omitted.  Thus, when set in the environment, its
30306         value would propagate into generated Makefiles when FUNC is not found
30307         in LIB_NAME.
30308         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
30309         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
30310         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
30311
30312 2009-10-14  Eric Blake  <ebb9@byu.net>
30313
30314         fchdir: avoid infinite recursion in mingw
30315         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
30316         recursing.
30317
30318         test-stat-time: port to mingw
30319         * tests/test-stat-time.c (force_unlink): Return a value.
30320         (test_ctime) [W32]: Fix compilation error.
30321         (nap): Don't call usleep with too large an argument.  Use
30322         force_unlink.
30323         * doc/pastposix-functions/usleep.texi (usleep): Document the
30324         portability issue.
30325
30326 2009-10-13  Jim Meyering  <meyering@redhat.com>
30327
30328         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
30329         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
30330         * modules/pipe-filter-ii: Likewise.
30331         * modules/sys_socket-tests: Likewise.
30332         * modules/tsearch-tests: Likewise.
30333         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
30334         (check): Depend on it.
30335
30336 2009-10-12  Eric Blake  <ebb9@byu.net>
30337
30338         utimens-tests: port to NFS file systems
30339         * tests/test-utimens.h (test_utimens): Refactor utimecmp
30340         comparisons to avoid spurious failures from timestamp drift
30341         between NFS machines.
30342
30343 2009-10-12  Eric Blake  <ebb9@byu.net>
30344
30345         stat-time-tests: minor cleanups
30346         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
30347         * tests/test-stat-time.c (nap): Separate assignment from call.
30348         Suggested by Paolo Bonzini and Bruno Haible.
30349
30350         sys_stat: guarantee struct timespec
30351         * lib/sys_stat.in.h (includes): Always include <time.h>
30352         * modules/sys_stat (Depends-on): Add time.
30353         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
30354         mode_t permission values.
30355         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
30356         get at subsecond timestamps.
30357
30358 2009-10-10  Eric Blake  <ebb9@byu.net>
30359
30360         futimens: new module
30361         * modules/futimens: New file.
30362         * lib/futimens.c (futimens): Likewise.
30363         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
30364         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
30365         we can work around Linux bugs.
30366         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
30367         * modules/sys_stat (Makefile.am): Substitute them.
30368         * lib/sys_stat.in.h (futimens): Declare it.
30369         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30370         * doc/posix-functions/futimens.texi (futimens): Likewise.
30371         * modules/futimens-tests: New test.
30372         * tests/test-futimens.c: Likewise.
30373
30374         utimens: introduce fdutimens
30375         * lib/utimens.h (fdutimens): New prototype.
30376         * lib/utimens.c (gl_futimens): Move guts...
30377         (fdutimens): ...to new interface.
30378         * tests/test-utimens.c (do_fdutimens): Use it.
30379
30380         utimens: add UTIME_NOW and UTIME_OMIT support
30381         * lib/utimens.c (validate_timespec, update_timespec): New helper
30382         functions.
30383         (gl_futimens, lutimens): Use them.
30384         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
30385         stdbool, sys_stat.
30386         (Link): Mention resulting library dependency.
30387         * modules/utimecmp (Link): Likewise.
30388         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
30389         (Makefile.am): Pick up library dependency.
30390         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
30391         definition.
30392         * tests/test-sys_stat.c: Test the definitions.
30393         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
30394         * NEWS: Document library dependency.
30395
30396         utimecmp: support symlink timestamps
30397         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
30398         hashing when possible.  Use pathconf when available.
30399         (SYSCALL_RESOLUTION): Recognize tighter resolution.
30400         * modules/utimecmp (Depends-on): Add lstat.
30401
30402         utimens: add lutimens interface
30403         * lib/utimens.c (lutimens): New function.
30404         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
30405         * lib/utimens.h (lutimens): Declare new interface.
30406         * tests/test-utimens.c (main): Enhance test.
30407         * tests/test-lutimens.h (test_lutimens): New file.
30408         * modules/utimens-tests (Files): Distribute it.
30409         (Depends-on): Add symlink.
30410         (configure.ac): Check for usleep.
30411
30412         utimens: validate futimens usage
30413         * lib/utimens.c (gl_futimens): Require valid fd up front, using
30414         fewer syscalls on failure later on.  Avoid compiler warning on
30415         mingw.
30416         * modules/utimens (Depends-on): Add dup2.
30417
30418         utimens: add test
30419         * modules/utimens-tests: New test.
30420         * tests/test-utimens.h: New file.
30421         * tests/test-futimens.h: Likewise.
30422         * tests/test-utimens.c: Likewise.
30423
30424         doc: mention timestamp portability issues
30425         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
30426         instead.
30427         * doc/posix-functions/utime.texi (utime): Likewise.
30428         * doc/posix-functions/utimes.texi (utimes): Likewise.
30429         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
30430         instead.
30431         * doc/posix-functions/futimens.texi (futimens): Mention utimens
30432         module.
30433         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
30434         Mention weakness with symlink timestamps.
30435         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
30436         to utimensat/futimens instead.
30437         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
30438
30439         test-dup2: enhance test
30440         * tests/test-dup2.c (main): Also check AT_FDCWD.
30441
30442         test-stat-time: avoid more spurious failures
30443         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
30444         xfs; and avoid race if the two timestamps cross quantization edge.
30445
30446         relocatable: prefer 'file system' over 'filesystem'
30447         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
30448         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
30449         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
30450         * doc/relocatable.texi (Enabling Relocatability): Likewise.
30451         * lib/relocatable.c (compute_curr_prefix): Likewise.
30452
30453 2009-10-10  Jim Meyering  <meyering@redhat.com>
30454
30455         stat-time-tests: check for the usleep function
30456         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
30457
30458 2009-10-10  Bruno Haible  <bruno@clisp.org>
30459
30460         * modules/xnanosleep: Put the Link section after the Include section.
30461
30462 2009-10-09  Eric Blake  <ebb9@byu.net>
30463
30464         dup2: work around FreeBSD 6.1 bug
30465         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
30466         * doc/posix-functions/dup2.texi (dup2): Document it.
30467         Reported by Nelson H. F. Beebe and Jim Meyering.
30468
30469         test-stat-time: port to buggy NFS clients
30470         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
30471         (test_ctime): Also skip test if mtime and ctime are skewed.
30472
30473         maint: prefer 'file system' over 'filesystem'
30474         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
30475         * doc/posix-functions/lstat.texi (lstat): Likewise.
30476         * lib/file-has-acl.c (file_has_acl): Likewise.
30477         * lib/fwriteerror.c [TEST]: Likewise.
30478         * tests/test-areadlink.h (test_areadlink): Likewise.
30479         * tests/test-areadlinkat-with-size.c (main): Likewise.
30480         * tests/test-areadlinkat.c (main): Likewise.
30481         * tests/test-canonicalize-lgpl.c (main): Likewise.
30482         * tests/test-canonicalize.c (main): Likewise.
30483         * tests/test-fstatat.c (main): Likewise.
30484         * tests/test-linkat.c (main): Likewise.
30485         * tests/test-lstat.h (test_lstat_func): Likewise.
30486         * tests/test-mkdir.h (test_mkdir): Likewise.
30487         * tests/test-readlink.h (test_readlink): Likewise.
30488         * tests/test-remove.c (main): Likewise.
30489         * tests/test-rename.h (test_rename): Likewise.
30490         * tests/test-renameat.c (main): Likewise.
30491         * tests/test-rmdir.h (test_rmdir_func): Likewise.
30492         * tests/test-symlink.h (test_symlink): Likewise.
30493         * tests/test-symlinkat.c (main): Likewise.
30494         * tests/test-unlink.h (test_unlink_func): Likewise.
30495         * tests/test-unlinkat.c (main): Likewise.
30496
30497         maint: make realtime library usage explicit
30498         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
30499         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
30500         * modules/settime (Link): Likewise.
30501         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
30502
30503         test-stat-time: speed up execution
30504         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
30505         warning on mingw.
30506         (nap): New helper function.
30507         (prepare_test): Use it to reduce sleep time.
30508         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
30509         execution.
30510         * modules/stat-time-tests (configure.ac): Check for usleep.
30511
30512 2009-10-09  Jim Meyering  <meyering@redhat.com>
30513
30514         selinux-h: always use getfilecon wrappers
30515         * lib/getfilecon.c: New file.
30516         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
30517         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
30518         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
30519         (fgetfilecon): Provide a stub.
30520         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
30521         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
30522         file unconditionally.
30523         When <selinux/selinux.h> is found, arrange to use wrappers.
30524         * modules/selinux-h (Files): Add getfilecon.c.
30525         (Makefile.am): Substitute include-next-related bits
30526         into the now-always-generated selinux/selinux.h file.
30527         * doc/glibc-functions/lgetfilecon.texi: New file.
30528         * doc/glibc-functions/fgetfilecon.texi: New file.
30529         * doc/glibc-functions/getfilecon.texi: New file.
30530         * doc/glibc-functions/getfilecon-desc.texi: New file.
30531         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
30532         which to pull in the new files.
30533         * MODULES.html.sh (Misc): Add selinux-h.
30534
30535 2009-10-08  Jim Meyering  <meyering@redhat.com>
30536
30537         unistd: fix comment typo
30538         * lib/unistd.in.h (euidaccess): Fix a comment typo.
30539
30540 2009-10-08  Eric Blake  <ebb9@byu.net>
30541
30542         areadlink: use SIZE_MAX consistently
30543         * modules/areadlink (Depends-on): Add stdint.
30544         * modules/areadlink-with-size (Depends-on): Likewise.
30545         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
30546         gives NULL; drop sys/types, since unistd gives size_t; and add
30547         stdint for SIZE_MAX.
30548         (SIZE_MAX): Rely on headers.
30549         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
30550         and add stdint.
30551         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
30552         (SIZE_MAX): Likewise.
30553         (INITIAL_BUF_SIZE): Turn into enum.
30554         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
30555
30556 2009-10-08  Jim Meyering  <meyering@redhat.com>
30557
30558         areadlinkat: avoid compilation failure
30559         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
30560         Fix typo in comment.
30561
30562 2009-10-07  Eric Blake  <ebb9@byu.net>
30563
30564         areadlinkat-with-size: new module
30565         * modules/areadlinkat-with-size: New module.
30566         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
30567         * lib/areadlink.h (areadlinkat): Declare it.
30568         * MODULES.html.sh (File system functions): Mention it.
30569         * modules/areadlinkat-with-size-tests: New test.
30570         * tests/test-areadlinkat-with-size.c: New file.
30571
30572         xreadlinkat: new module
30573         * modules/xreadlinkat: New module.
30574         * lib/xreadlinkat.c (xreadlinkat): New file.
30575         * lib/xreadlink.h (xreadlinkat): Declare it.
30576         * MODULES.html.sh (File system functions): Mention it.
30577
30578         areadlinkat: new module
30579         * lib/at-func.c (FUNC_FAIL): New define.
30580         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
30581         * modules/areadlinkat: New module.
30582         * lib/linkat.c (areadlinkat): Move...
30583         * lib/areadlinkat.c (areadlinkat): ...to new file.
30584         * lib/areadlink.h (areadlinkat): Declare it.
30585         * modules/linkat (Depends-on): Add areadlinkat.
30586         * MODULES.html.sh (File system functions): Mention it.
30587         * modules/areadlinkat-tests: New test.
30588         * tests/test-areadlinkat.c: New file.
30589
30590         areadlink, areadlink-with-size: add tests
30591         * modules/areadlink-tests: New test.
30592         * modules/areadlink-with-size-tests: Likewise.
30593         * tests/test-areadlink.h: New file.
30594         * tests/test-areadlink.c: Likewise.
30595         * tests/test-areadlink-with-size.c: Likewise.
30596
30597         maint: minor cleanups
30598         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
30599         _UNUSED_PARAMETER_ instead.
30600         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
30601         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
30602         * modules/linkat-tests (Files): Distribute test-link.h.
30603
30604         openat, utimens: whitespace cleanup
30605         * lib/openat.c: Prefer space throughout, rather than mix of 8
30606         spaces vs. tabs.
30607         * lib/at-func.c: Likewise.
30608         * lib/utimens.c: Likewise.
30609
30610         openat: avoid using wrong fd
30611         * lib/openat.c (openat_permissive): Reject user's fd if saving the
30612         working directory chooses same fd.
30613         * lib/at-func.c (AT_FUNC_NAME): Likewise.
30614
30615         mkdir, mkdirat: fix cygwin 1.5.x bug
30616         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
30617         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
30618         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
30619         bug.
30620         (gl_PREREQ_MKDIR): Delete unused macro.
30621         * modules/mkdir (Files): Track file rename.
30622         (configure.ac): Update macro name.
30623         * modules/openat (Depends-on): Add mkdir.
30624         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
30625
30626         mkdir, mkdirat: add tests
30627         * modules/mkdir-tests: New test.
30628         * tests/test-mkdir.h: New file.
30629         * tests/test-mkdir.c: Likewise.
30630         * tests/test-mkdirat.c: Likewise.
30631         * modules/openat-tests (Files): Add new files.
30632         (Makefile.am): Run new test.
30633
30634 2009-10-06  Eric Blake  <ebb9@byu.net>
30635
30636         doc: tweak *at function documentation
30637         * doc/posix-functions/faccessat.texi (faccessat): Mention
30638         known issue with replacement.
30639         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
30640         * doc/posix-functions/linkat.texi (linkat): Likewise.
30641         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
30642         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
30643         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
30644         * doc/posix-functions/renameat.texi (renameat): Likewise.
30645         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
30646
30647         openat: fix GNU/Hurd bug in unlinkat
30648         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
30649         broken.
30650         * doc/posix-functions/unlink.texi (unlink): Document this.
30651         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
30652
30653         fdopendir: fix GNU/Hurd bug
30654         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
30655         allowing non-directory fds.
30656         * lib/fdopendir.c (rpl_fdopendir): Work around it.
30657         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
30658         * modules/dirent (Makefile.am): Substitute it.
30659         * lib/dirent.in.h (fdopendir): Declare replacement.
30660         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
30661         * tests/test-fdopendir.c (main): Test something other than
30662         /dev/null, since on Hurd that behaves like a directory.
30663
30664         test-symlink: port to GNU/Hurd
30665         * tests/test-symlink.h (test_symlink): Relax expected errno.
30666
30667         doc: tweak more cygwin information
30668         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
30669         now compatible with glibc.
30670         * doc/posix-functions/getopt.texi (getopt): Likewise.
30671
30672         getopt-gnu: add another test
30673         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
30674         guarantee behavior relied on by m4.
30675         * tests/test-getopt.c (main): Use it.
30676         * modules/getopt-posix-tests (Depends-on): Add setenv.
30677         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
30678
30679         getopt: fix compilation on darwin
30680         * lib/getopt.in.h (includes): Leave breadcrumbs during system
30681         include.
30682         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
30683         Reported by Ludovic Courtès.
30684
30685 2009-10-06  Bruno Haible  <bruno@clisp.org>
30686
30687         * modules/size_max (Description): Discourage its use.
30688         Reported by Simon Josefsson.
30689
30690 2009-10-06  Jim Meyering  <meyering@redhat.com>
30691
30692         linkat: avoid compilation failure
30693         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
30694
30695 2009-10-05  Eric Blake  <ebb9@byu.net>
30696
30697         linkat: support Linux 2.6.17
30698         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
30699         linkat on Linux, but allow cache variable override.
30700         * lib/linkat.c (rpl_linkat): Define override.
30701         * modules/linkat (Depends-on): Add symlinkat.
30702         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
30703         * modules/unistd (Makefile.am): Substitute it.
30704         * lib/unistd.in.h (linkat): Declare replacement.
30705         Reported by Pádraig Brady.
30706
30707         quotearg: port test to systems with C.UTF-8 locale
30708         * tests/test-quotearg.c (struct result_strings): Add another
30709         member, differentiating between C.ASCII and C.UTF-8 handling.
30710         (compare_strings): Add parameter.
30711         (main): Adjust all callers.
30712
30713         getopt: avoid clash with FreeBSD _getopt_internal
30714         * lib/getopt.in.h (_getopt_internal): Override the name.
30715         * lib/getopt_int.h (includes): Pick up any overrides.
30716         Reported by Reuben Thomas.
30717
30718         hash: allow C89 compilation
30719         * lib/hash.c (check_tuning): Move declaration before statement.
30720         Reported by Reuben Thomas.
30721
30722 2009-10-05  Karl Berry  <karl@gnu.org>
30723
30724         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
30725
30726 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
30727             Bruno Haible  <bruno@clisp.org>
30728
30729         * lib/uname.c (uname): Use a table-driven algorithm to compute
30730         Windows NT versions.
30731
30732 2009-10-04  Bruno Haible  <bruno@clisp.org>
30733
30734         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
30735         program_invocation_short_name.
30736         * modules/progname (configure.ac): Test for presence of
30737         program_invocation_short_name.
30738         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
30739
30740 2009-10-04  Bruno Haible  <bruno@clisp.org>
30741
30742         * lib/progname.c (set_program_name): Fix comment.
30743         Reported by Jim Meyering.
30744
30745 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
30746             Bruno Haible  <bruno@clisp.org>
30747
30748         * lib/uname.c: Include <string.h>.
30749         (uname): Do only one call to GetVersionEx in the common case.
30750
30751 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
30752             Bruno Haible  <bruno@clisp.org>
30753
30754         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
30755         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
30756         (uname): Add support for Windows CE and various non-x86 CPU types.
30757
30758 2009-10-03  Bruno Haible  <bruno@clisp.org>
30759
30760         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
30761         invocation to tests/configure.ac.
30762         Reported by Ian Beckwith <ianb@erislabs.net>.
30763
30764 2009-10-02  Eric Blake  <ebb9@byu.net>
30765
30766         fchdir: avoid compiler warning
30767         * lib/fchdir.c (canonicalize_file_name)
30768         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
30769
30770         test-open: support mingw errno values
30771         * tests/test-open.h (test_open): Relax test.
30772         * tests/test-fopen.h (test_fopen): Likewise.
30773         * tests/test-openat-safer.c (main): Likewise.
30774
30775         open: fix opening directory on mingw
30776         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
30777
30778         test-open: on GNU/Hurd, /dev/null is a directory
30779         * tests/test-fopen.h (main): Rename...
30780         (test_fopen): ...to this.  Use a guaranteed non-directory when
30781         confirming open behavior on trailing slash.
30782         * tests/test-openat-safer.c (main): Likewise.
30783         * tests/test-open.h (main): Likewise....
30784         (test_open): ...to this.
30785         * tests/test-fopen.c (main): Adjust caller.
30786         * tests/test-fopen-safer.c (main): Likewise.
30787         * tests/test-open.c (main): Likewise.
30788         * tests/test-fcntl-safer.c (main): Likewise.
30789         Reported by Samuel Thibault.
30790
30791         rename, fchdir: don't ignore chdir failure
30792         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
30793         * lib/rename.c (rpl_rename) [W32]: Likewise.
30794         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
30795         an empty destination directory if source cannot be renamed,
30796         although there is still possibility for failure.
30797         * doc/posix-functions/rename.texi (rename): Document the race.
30798         Reported by Jim Meyering.
30799
30800         maint: cleanup whitespace in recent commits
30801         * lib/rename.c (rpl_rename): Remove tabs.
30802         * tests/test-link.h (test_link): Likewise.
30803         * lib/fchdir.c (get_name): Likewise.
30804         Reported by Jim Meyering.
30805
30806 2009-10-02  Ben Pfaff  <blp@gnu.org>
30807
30808         relocatable-prog-wrapper: Add missing dependency on
30809         double-slash-root.
30810         * modules/relocatable-prog-wrapper: Add dependency.
30811         Reported by Ian Beckwith <ianb@erislabs.net>.
30812
30813 2009-10-02  Eric Blake  <ebb9@byu.net>
30814
30815         renameat: fix Solaris bugs
30816         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
30817         needed fixing.
30818         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
30819         * modules/stdio (Makefile.am): Substitute it.
30820         * lib/stdio.in.h (renameat): Declare replacement.
30821         * lib/renameat.c (rpl_renameat): Implement fix.
30822
30823         renameat: new module
30824         * modules/renameat: New file.
30825         * lib/renameat.c (renameat): Likewise.
30826         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
30827         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
30828         * modules/stdio (Makefile.am): Substitute them.
30829         * lib/stdio.in.h (renameat): Declare it.
30830         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30831         * doc/posix-functions/renameat.texi (renameat): Likewise.
30832         * modules/renameat-tests: New test.
30833         * tests/test-renameat.c: Likewise.
30834
30835         rename: fix mingw bugs
30836         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
30837         directory overwrite bugs.
30838
30839         rename: fix another cygwin 1.5 bug
30840         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
30841         checks.
30842         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
30843         unnecessary cygwin workarounds.  Also work around bug with moving
30844         full directory onto an empty one.
30845         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
30846
30847         rename-dest-slash: merge into rename module
30848         * modules/rename-dest-slash (Status): Mark obsolete.
30849         (Depends-on): Add rename.
30850         (Files): Let rename do it all.
30851         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
30852         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
30853         * m4/rename-dest-slash.m4: ...so this file can be deleted.
30854         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
30855         * lib/rename.c (rpl_rename): Update comments.
30856
30857         rename: fix cygwin 1.5.x bugs
30858         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
30859         * lib/rename.c (rpl_rename): Work around them.
30860         * modules/rename (Depends-on): Add same-inode.
30861
30862         rename: fix Solaris 10 bug
30863         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
30864         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
30865         was the only bug.
30866
30867         rename: fix Solaris 9 bug
30868         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
30869         on non-directory.  Avoid calling exit.
30870         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
30871         strdup.
30872         * modules/rename-tests (Depends-on): Drop lstat.
30873         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
30874         (gl_PREREQ_RENAME): Delete unused macro.
30875
30876         rename-dest-slash: fix NetBSD bug
30877         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
30878         links.
30879         * modules/rename-dest-slash (Depends-on): Add same-inode.
30880
30881         rename-tests: new test, exposes several platform bugs
30882         * modules/rename-tests: New file.
30883         * tests/test-rename.h: Likewise.
30884         * tests/test-rename.c: Likewise.
30885         * doc/posix-functions/rename.texi (rename): Improve documentation,
30886         including bugs that will eventually be fixed in gnulib.
30887
30888 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
30889
30890         * lib/uname.c: Include <stdlib.h>
30891         (uname): Assume version info is available.
30892
30893 2009-10-02  Jim Meyering  <meyering@redhat.com>
30894
30895         gnu-web-doc-update: correct --help output
30896         * build-aux/gnu-web-doc-update: Make --help output relevant.
30897
30898         gnu-web-doc-update: add standard options
30899         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
30900
30901         gnu-web-doc-update: New module.
30902         Use this script to automatically update the on-line web documentation
30903         for your GNU project at http://www.gnu.org/software/$pkg/manual/
30904         * modules/gnu-web-doc-update: New file, from coreutils.
30905         * build-aux/gnu-web-doc-update: New script.
30906
30907 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
30908
30909         link: LoadLibrary is not needed.
30910         * lib/link.c: Use GetModuleHandle.
30911
30912 2009-10-01  Eric Blake  <ebb9@byu.net>
30913
30914         getopt: bump serial number
30915         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
30916         change.
30917
30918         tests: tighten link, rmdir, and remove tests
30919         * tests/test-link.h (includes): No need to use <config.h> here.
30920         Clean up if directory hard link was created, otherwise test for
30921         trailing '.'.
30922         * tests/test-linkat.c (main): Simplify.
30923         * tests/test-remove.c (main): Enhance test for trailing '.'.
30924         * tests/test-rmdir.h (test_rmdir_func): Likewise.
30925
30926 2009-10-01  Jim Meyering  <meyering@redhat.com>
30927
30928         maint.mk: requiring "make major" was annoying, for a "minor" release.
30929         What is intended is "stable", to contrast with alpha and beta,
30930         so require "make stable", not "make major".
30931         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
30932         (get_tool_versions): Likewise.
30933         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
30934
30935 2009-09-30  Ben Pfaff  <blp@gnu.org>
30936
30937         Fix broken build of replacement for Windows tmpfile().
30938         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
30939         flags argument added along with the 'mkostemp' module.
30940
30941 2009-09-28  Bruno Haible  <bruno@clisp.org>
30942
30943         Avoid identifier clash with POSIX function 'remove' defined as a macro.
30944         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
30945         to 'remove_elt'.
30946         (gl_list_remove): Update.
30947         * lib/gl_list.c (gl_list_remove): Update.
30948         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
30949         to 'remove_elt'.
30950         (gl_oset_remove): Update.
30951         * lib/gl_list.c (gl_oset_remove): Update.
30952         Reported by Eric Blake.
30953
30954 2009-09-28  Eric Blake  <ebb9@byu.net>
30955
30956         doc: mention yet more cygwin 1.7 status
30957         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
30958         cygwin.
30959         * doc/glibc-functions/execvpe.texi (execvpe): New file.
30960         * doc/gnulib.texi (Glibc unistd.h): Mention it.
30961
30962         argp: fix test failure
30963         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
30964         that are not upper-case.  Pass correct range to tolower.
30965
30966 2009-09-27  Jim Meyering  <meyering@redhat.com>
30967
30968         test-yesno: work around sparc-dash here-document infelicity
30969         Without this change, the literal \177 byte in a here document
30970         would make dash 0.5.5.1-3 access uninitialized memory.
30971         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
30972         Instead, use a marker, "@", and filter through tr to create the desired
30973         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
30974
30975 2009-09-27  Bruno Haible  <bruno@clisp.org>
30976
30977         Disable untested support for new flavours of ACLs on AIX.
30978         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
30979         progress.
30980         * lib/set-mode-acl.c (qset_acl): Likewise.
30981
30982 2008-12-07  Bruno Haible  <bruno@clisp.org>
30983
30984         Add support for new flavours of ACLs on AIX. (Untested.)
30985         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
30986         (file_has_acl): Add support for newer AIX.
30987         * lib/set-mode-acl.c (qset_acl): Likewise.
30988         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
30989         Rainer Tammer <tammer@tammer.net>.
30990
30991 2009-09-26  Eric Blake  <ebb9@byu.net>
30992
30993         argp: fix compilation of getopt
30994         * lib/getopt.in.h (includes): Use different guard than glibc.
30995         Reported by Sergey Poznyakoff.
30996
30997         doc: mention more cygwin 1.7 status
30998         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
30999         bug.
31000         * doc/posix-functions/execl.texi (execl): Likewise.
31001         * doc/posix-functions/execle.texi (execle): Likewise.
31002         * doc/posix-functions/execlp.texi (execlp): Likewise.
31003         * doc/posix-functions/execv.texi (execv): Likewise.
31004         * doc/posix-functions/execve.texi (execve): Likewise.
31005         * doc/posix-functions/execvp.texi (execvp): Likewise.
31006         * doc/glibc-functions/canonicalize_file_name.texi
31007         (canonicalize_file_name): Cygwin 1.7 now provides this.
31008         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
31009         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
31010         on AT_SYMLINK_NOFOLLOW.
31011
31012 2009-09-24  Eric Blake  <ebb9@byu.net>
31013
31014         test-linkat: make test more robust
31015         * tests/test-linkat.c (main): Avoid collision with EEXIST.
31016
31017         getopt: fix inclusion guards for cygwin
31018         * modules/getopt-posix (Depends-on): Add include-next.
31019         (Makefile.am): Substitute more items in replacement header.
31020         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
31021         <getopt.h>.
31022         * lib/getopt.in.h (includes): Use split inclusion guard, and
31023         prefer <getopt.h> over include <unistd.h> when one is present.
31024         (option): Also override name of 'struct option'.
31025
31026         same-inode: revert prior change; it is not yet ready
31027         * NEWS: Undo mention of this change.
31028         * lib/same-inode.h (same-inode.h): Undo tri-state change.
31029         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
31030         * lib/cycle-check.c (cycle_check): Likewise.
31031         * lib/same.c (same_name): Likewise.
31032         * lib/at-func2.c (at_func2): Likewise.
31033
31034 2009-09-23  Eric Blake  <ebb9@byu.net>
31035
31036         linkat: new module
31037         * modules/linkat: New file.
31038         * lib/at-func2.c (at_func2): Likewise.
31039         * lib/linkat.c (linkat): Likewise.
31040         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
31041         * lib/openat-priv.h (at_func2): Add declaration.
31042         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
31043         * modules/unistd (Makefile.am): Substitute them.
31044         * lib/unistd.in.h (linkat): Declare it.
31045         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31046         * doc/posix-functions/linkat.texi (linkat): Likewise.
31047         * doc/posix-functions/link.texi (link): Tweak wording.
31048         * tests/test-link.c (main): Move guts...
31049         * tests/test-link.h (test_link): ...into new file.
31050         * modules/linkat-tests: New test.
31051         * tests/test-linkat.c: Likewise.
31052         * modules/link-tests (Files): Ship new file.
31053         (Depends-on): Add stdbool.
31054
31055         dirname: add library-safe mdir_name
31056         * lib/dirname.h (mdir_name): New prototype.
31057         * lib/dirname.c (dir_name): Move guts...
31058         (mdir_name): ...to new function that avoids xalloc_die.
31059
31060         fchdir: another mingw fix
31061         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
31062         * lib/fchdir.c (get_name): New helper method; skips canonicalize
31063         on mingw (where it has not yet been ported), and make it optional
31064         elsewhere.
31065         (_gl_register_fd): Use it.
31066
31067         same-inode: make SAME_INODE tri-state, to port to mingw
31068         * NEWS: Mention this change.
31069         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
31070         st_ino always being 0.
31071         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
31072         * lib/cycle-check.c (cycle_check): Likewise.
31073         * lib/same.c (same_name): Likewise.
31074
31075         lstat: avoid mingw compilation error
31076         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
31077         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
31078         lstat ourselves.
31079         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
31080         was adequate.
31081         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
31082         the checks for lstat.
31083         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
31084
31085         link: fix test failure on Solaris 9
31086         * lib/link.c (rpl_link): Don't assume link will catch bogus
31087         trailing slash on source.
31088
31089         test-symlinkat: enhance test
31090         * tests/test-readlink.c (main): Move guts...
31091         * tests/test-readlink.h (test_readlink): ...into new file.
31092         * tests/test-symlink.c (main): Move guts...
31093         * tests/test-symlink.h (test_symlink): ...into new file.
31094         * tests/test-symlinkat.c (main): Use new files for further
31095         coverage.
31096         (do_symlink, do_readlink): New helper functions.
31097         * modules/symlink-tests (Files): Ship new file.
31098         (Depends-on): Add stdbool.
31099         * modules/readlink-tests (Files): Ship new file.
31100         (Depends-on): Add stdbool.
31101         * modules/symlinkat-tests (Files): Use new files.
31102
31103 2009-09-23  Eric Blake  <ebb9@byu.net>
31104
31105         readlink: document portability issue with symlink length
31106         * doc/posix-functions/lstat.texi (lstat): Mention that some file
31107         systems have bogus st_size on symlinks, and mention the
31108         areadlink-with-size module.
31109         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
31110         * doc/posix-functions/readlink.texi (readlink): Mention the
31111         areadlink module, and ERANGE failure.
31112         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
31113         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
31114
31115         readlink: fix Solaris 9 bug with trailing slash
31116         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
31117         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
31118         * doc/posix-functions/readlink.texi (readlink): Document this.
31119         * modules/readlink-tests: New test.
31120         * tests/test-readlink.c: Likewise.
31121
31122         readlink: fix cygwin 1.5.x bug with return type
31123         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
31124         * lib/unistd.in.h (readlink): Use ssize_t.
31125         * lib/readlink.c (readlink): Likewise.
31126         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31127         * modules/unistd (Makefile.am): Substitute it.
31128         * lib/unistd.in.h (readlink): Declare replacement.
31129         * doc/posix-functions/readlink.texi (readlink): Document this.
31130
31131         symlink: use throughout gnulib
31132         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
31133         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
31134         symlink is not used.
31135         * modules/symlinkat (Depends-on): Add symlink.
31136         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
31137         * modules/canonicalize-tests (Depends-on): Likewise.
31138         * modules/lstat-tests (Depends-on): Likewise.
31139         * modules/openat-tests (Depends-on): Likewise.
31140         * modules/remove-tests (Depends-on): Likewise.
31141         * modules/rmdir-tests (Depends-on): Likewise.
31142         * modules/unlink-tests (Depends-on): Likewise.
31143         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
31144         * tests/test-canonicalize.c (symlink): Likewise.
31145         * tests/test-fstatat.c (symlink): Likewise.
31146         * tests/test-lstat.c (symlink): Likewise.
31147         * tests/test-remove.c (symlink): Likewise.
31148         * tests/test-rmdir.c (symlink): Likewise.
31149         * tests/test-unlink.c (symlink): Likewise.
31150         * tests/test-unlinkat.c (symlink): Likewise.
31151
31152         symlink: new module, for Solaris 9 bug
31153         * modules/symlink: New file.
31154         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
31155         * lib/symlink.c: Likewise.
31156         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
31157         * modules/unistd (Makefile.am): Substitute them.
31158         * lib/unistd.in.h (symlink): Declare replacement.
31159         * MODULES.html.sh (File system functions): Mention it.
31160         * doc/posix-functions/symlink.texi (symlink): Likewise.
31161         * modules/symlink-tests: New test.
31162         * tests/test-symlink.c: Likewise.
31163
31164 2009-09-23  Bruno Haible  <bruno@clisp.org>
31165
31166         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
31167         when needed.
31168         Test case: gnulib-tool --import --with-tests atexit inttypes.
31169         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
31170
31171 2009-09-23  Bruno Haible  <bruno@clisp.org>
31172
31173         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
31174         subcommand, not in a subshell.
31175
31176 2009-09-22  Eric Blake  <ebb9@byu.net>
31177
31178         unistd: sort replacement declarations
31179         * lib/unistd.in.h: Sort declarations.
31180
31181         open, openat: minor optimization
31182         * lib/open.c (open): If open succeeded, len is non-zero.
31183         * lib/openat.c (rpl_openat): Likewise.
31184
31185         link-follow: ensure correct result
31186         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
31187         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
31188         distinguish between possible failures.
31189
31190 2009-09-21  Eric Blake  <ebb9@byu.net>
31191
31192         fts: avoid compiler warning
31193         * lib/fts.c (dirent_inode_sort_may_be_useful)
31194         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
31195
31196 2009-09-19  Bruno Haible  <bruno@clisp.org>
31197
31198         * lib/progreloc.c (canonicalize_file_name): New declaration.
31199
31200 2009-09-19  Eric Blake  <ebb9@byu.net>
31201
31202         link: fix quoting
31203         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
31204
31205         openat: fix openat bugs on Solaris 9
31206         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
31207         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
31208         * modules/openat (Depends-on): Add open.
31209         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
31210         * modules/fcntl-h (Makefile.am): Substitute it.
31211         * lib/fcntl.in.h (openat): Declare replacement.
31212         * doc/posix-functions/openat.texi (openat): Document this.
31213
31214         openat: move fstatat and unlinkat into correct files
31215         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
31216         compiled.
31217         * lib/openat.c (fstatat, unlinkat): Move...
31218         * lib/fstatat.c (fstatat): ...into correct files.
31219         * lib/unlinkat.c (unlinkat): Likewise.
31220
31221         openat: fix unlinkat bugs on Solaris 9
31222         * lib/unlinkat.c (unlinkat): New file.
31223         * modules/openat (Depends-on): Add unlink.
31224         (Files): Distribute it.
31225         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
31226         trailing slash behavior is broken.
31227         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31228         * modules/unistd (Makefile.am): Substitute it.
31229         * lib/unistd.in.h (unlinkat): Declare replacement.
31230         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
31231
31232         openat: fix fstatat bugs on Solaris 9
31233         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
31234         stat.
31235         * doc/posix-functions/fstatat.texi (fstatat): Document this.
31236
31237         test-unlinkat: enhance test, to expose Solaris 9 bug
31238         * tests/test-unlink.c (main): Factor guts...
31239         * tests/test-unlink.h (test_rmdir_func): ...into new file.
31240         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
31241         * tests/test-rmdir.c (main): Adjust caller.
31242         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
31243         (unlinker): New helper function.
31244         (rmdirat): Enhance check.
31245         * modules/rmdir-tests (Depends-on): Add stdbool.
31246         * modules/unlink-tests (Depends-on): Likewise.
31247         (Files): Add test-unlink.h.
31248         * modules/openat-tests (Files): Likewise.
31249         (Depends-on): Add unlinkdir.
31250
31251         test-fstatat: new test, to expose Solaris 9 bugs
31252         * tests/test-stat.c (main): Factor guts...
31253         * tests/test-stat.h (test_stat_func): ...into new file.
31254         * tests/test-lstat.c (main): Factor guts...
31255         * tests/test-lstat.h (test_lstat_func): ...into new file.
31256         * tests/test-fstatat.c: New file.
31257         * modules/stat-tests (Files): Add test-stat.h.
31258         * modules/lstat-tests (Files): Add test-lstat.h.
31259         (Depends-on): Add stdbool.
31260         * modules/openat-tests (Depends-on): Add pathmax.
31261         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
31262         (Makefile.am): Run new test.
31263
31264         remove: new module, for mingw and Solaris 9 bugs
31265         * modules/remove: New file.
31266         * lib/remove.c: Likewise.
31267         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
31268         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
31269         * modules/stdio (Makefile.am): Use them.
31270         * lib/stdio.in.h (remove): Declare replacement.
31271         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31272         * doc/posix-functions/remove.texi (remove): Likewise.
31273         * modules/remove-tests: New test.
31274         * tests/test-remove.c: Likewise.
31275
31276         unlink: new module, for Solaris 9 bug
31277         * modules/unlink: New file.
31278         * lib/unlink.c: Likewise.
31279         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
31280         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
31281         * modules/unistd (Makefile.am): Use them.
31282         * lib/unistd.in.h (stat): Declare replacement.
31283         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31284         * doc/posix-functions/unlink.texi (unlink): Likewise.
31285         * modules/unlink-tests: New test.
31286         * tests/test-unlink.c: Likewise.
31287
31288         lstat: fix Solaris 9 bug
31289         * lib/lstat.c (lstat): Also check for trailing slash on
31290         non-symlink, non-directories.  Use stat module to simplify logic.
31291         * doc/posix-functions/lstat.texi (lstat): Document it.
31292         * modules/lstat-tests (Depends-on): Add errno, same-inode.
31293         (configure.ac): Check for symlink.
31294         * tests/test-lstat.c (main): Add more tests.
31295
31296         stat: add as dependency to other modules
31297         * modules/chown (Depends-on): Add stat.
31298         * modules/euidaccess (Depends-on): Likewise.
31299         * modules/fchdir (Depends-on): Likewise.
31300         * modules/isdir (Depends-on): Likewise.
31301         * modules/link (Depends-on): Likewise.
31302         * modules/lstat (Depends-on): Likewise.
31303         * modules/mkdir-p (Depends-on): Likewise.
31304         * modules/modechange (Depends-on): Likewise.
31305         * modules/open (Depends-on): Likewise.
31306         * modules/readlink (Depends-on): Likewise.
31307         * modules/same (Depends-on): Likewise.
31308
31309         stat: fix Solaris 9 bug
31310         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
31311         slash.
31312         * lib/stat.c (rpl_stat): Work around it.
31313         * doc/posix-functions/stat.texi (stat): Update documentation.
31314
31315         stat: new module, for mingw bug
31316         * modules/stat: New file.
31317         * lib/stat.c: Likewise.
31318         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
31319         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
31320         * modules/sys_stat (Makefile.am): Use them.
31321         * lib/sys_stat.in.h (stat): Declare replacement.
31322         * lib/openat.c (fstatat): Deal with lstat and stat being function
31323         macros.
31324         * modules/openat (Depends-on): Add inline.
31325         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31326         * doc/posix-functions/stat.texi (stat): Likewise.
31327         * modules/stat-tests: New test.
31328         * tests/test-stat.c: Likewise.
31329
31330 2009-09-19  Jim Meyering  <meyering@redhat.com>
31331
31332         syntax-check: detect unnecessary inclusion of canonicalize.h
31333         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
31334
31335 2009-09-19  Eric Blake  <ebb9@byu.net>
31336
31337         canonicalize-lgpl: adjust clients to use correct header
31338         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
31339         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
31340         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
31341         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
31342         * lib/progreloc.c (includes): Likewise.
31343
31344 2009-09-19  Jim Meyering  <meyering@redhat.com>
31345
31346         test-posixtm.c: correct a comment
31347         * tests/test-posixtm.c: Correct first-line comment.
31348         Spotted by Eric Blake.
31349
31350 2009-09-16  Jim Meyering  <meyering@redhat.com>
31351
31352         posixtm-tests: make T const-correct; add a test case
31353         * tests/test-posixtm.c (T): Declare const.
31354         Add a test for -(2^31+1).
31355         Remove useless can-succeed-only-in-2002 test.
31356
31357         posixtm-tests: adjust the sole failing test
31358         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
31359         expected output matches what mktime now produces.  Cross-checked via
31360         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
31361
31362         posixtm: move #ifdef'd tests into a new module
31363         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
31364         * tests/test-posixtm.c: ... this new file.
31365         * modules/posixtm-tests: New module.
31366
31367 2009-09-19  Eric Blake  <ebb9@byu.net>
31368
31369         openat: simplify use of at-func.c
31370         * lib/at-func.c (includes): Include prerequisites here, to
31371         simplify requirements on client files.
31372         * lib/openat-priv.h: Add double-inclusion guard.
31373         * lib/faccessat.c (includes): Simplify.
31374         * lib/fchmodat.c (includes): Likewise.
31375         * lib/fchownat.c (includes): Likewise.
31376         * lib/mkdirat.c (includes): Likewise.
31377         * lib/mkfifoat.c (includes): Likewise.
31378         * lib/symlinkat.c (includes): Likewise.
31379
31380         openat: allow return of fd 0
31381         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
31382         * modules/save-cwd (Depends-on): Replace fcntl-safer with
31383         unistd-safer.
31384         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
31385         <fcntl.h>; this module does not leak fds.
31386         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
31387         must be allowed to return 0, leaving openat_safer to add the
31388         safety.
31389         (openat_permissive): Avoid writing to just-opened fd 2 if
31390         restoring the current directory fails.
31391         * lib/openat-die.c (openat_restore_fail): Add comment.
31392         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
31393         (save_cwd): Guarantee safe fd, but without use of open_safer.
31394         * tests/test-openat.c: New test.
31395         * modules/openat-tests (Files, Makefile.am): Distribute and build
31396         new file.
31397
31398         relocatable-prog-wrapper: fix build
31399         * modules/relocatable-prog-wrapper (Files): Update name of
31400         canonicalize m4 file, broken on 2009-09-17.
31401         Reported by emad hajjar <aleppos@hotmail.com>.
31402
31403 2009-09-19  Bruno Haible  <bruno@clisp.org>
31404
31405         * lib/safe-alloc.h: Use the standard header with GPL copyright.
31406         * lib/safe-alloc.c: Likewise.
31407         Reported by Ian Beckwith <ianb@erislabs.net>.
31408
31409 2009-09-18  Bruno Haible  <bruno@clisp.org>
31410
31411         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
31412         Reported by <erobles@sensacd.com.mx>.
31413
31414 2009-09-17  Eric Blake  <ebb9@byu.net>
31415
31416         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
31417         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
31418         slashes when checking if last component is missing.
31419         * tests/test-canonicalize.c (main): Test this.
31420
31421         canonicalize, canonicalize-lgpl: honor // if distinct from /
31422         * modules/canonicalize (Files): Add double-slash-root.m4.
31423         * modules/canonicalize-lgpl (Files): Likewise.
31424         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
31425         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
31426         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
31427         fallback definition.
31428         (canonicalize_filename_mode): Use it to protect //.
31429         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
31430         (__realpath): Likewise.
31431         * tests/test-canonicalize.c (main): Test this.
31432         * tests/test-canonicalize-lgpl.c (main): Likewise.
31433         * modules/canonicalize-tests (Depends-on): Add same-inode.
31434         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
31435
31436         canonicalize-lgpl: fix glibc bug with trailing slash
31437         * m4/canonicalize-lgpl.m4: Move contents...
31438         * m4/canonicalize.m4: ...here.
31439         (gl_CANONICALIZE_LGPL): Factor realpath check...
31440         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
31441         glibc 2.3.5 bug, fixed 2005-04-27.
31442         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
31443         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
31444         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
31445         * modules/canonicalize-lgpl (Files): Manage file rename.
31446         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
31447         * modules/stdlib (Makefile.am): Substitute witness.
31448         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
31449         is needed.
31450         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
31451         replacement is required.
31452         * lib/canonicalize.c (canonicalize_file_name): Likewise.
31453         * doc/glibc-functions/canonicalize_file_name.texi
31454         (canonicalize_file_name): Document this.
31455         * doc/posix-functions/realpath.texi (realpath): Likewise.
31456
31457         canonicalize-lgpl: reject non-directory with trailing slash
31458         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
31459         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
31460         catches failures in glibc 2.3.5.
31461         * tests/test-canonicalize.c (main): Likewise.
31462
31463         canonicalize-lgpl: use native realpath if it works
31464         * lib/canonicalize-lgpl.c (realpath): Guard with
31465         FUNC_REALPATH_WORKS.
31466         * lib/stdlib.in.h (realpath): Make declaration optional based on
31467         HAVE_REALPATH.
31468         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
31469         native realpath works.
31470         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
31471         * modules/stdlib (Makefile.am): Substitute witness.
31472
31473         canonicalize, canonicalize-lgpl: use <stdlib.h>
31474         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
31475         (Include): Mention <stdlib.h>.
31476         (configure.ac): Mention functions we provide.
31477         * modules/canonicalize (configure.ac): Likewise.
31478         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
31479         realpath if canonicalize_file_name is missing.
31480         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
31481         * modules/stdlib (Makefile.am): Substitute witnesses.
31482         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
31483         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
31484         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
31485         * NEWS: Document this.
31486         * doc/glibc-functions/canonicalize_file_name.texi
31487         (canonicalize_file_name): Likewise.
31488         * doc/posix-functions/realpath.texi (realpath): Likewise.
31489         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
31490
31491         test-canonicalize: consolidate into single C program
31492         * tests/test-canonicalize.sh: Delete; move setup into...
31493         * tests/test-canonicalize.c (main): ...the program, making it
31494         easier to run in debugger.  Add some tests.
31495         * modules/canonicalize-tests (Files): Remove unused file.
31496         (Depends-on): Add progname.
31497         (configure.ac, Makefile.am): Simplify.
31498
31499         test-canonicalize-lgpl: consolidate into single C program
31500         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
31501         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
31502         easier to run in debugger.  Add some tests.
31503         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
31504         (configure.ac, Makefile.am): Simplify.
31505
31506         canonicalize: avoid resolvepath
31507         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
31508         unnecessary checks.
31509         * lib/canonicalize.c (includes): Simplify.
31510         (canonicalize_file_name): Drop resolvepath implementation.
31511         * modules/canonicalize (Depends-on): Drop filenamecat.
31512
31513         canonicalize: don't lose errno
31514         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
31515         over calls to free.
31516
31517         canonicalize: simplify errno handling
31518         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
31519         assignment.
31520
31521         canonicalize, canonicalize-lgpl: update module dependencies
31522         * modules/canonicalize (Depends-on): Add extensions, lstat,
31523         pathmax, stdlib.
31524         (Files): Drop pathmax.h.
31525         (configure.ac): Adjust macro name.
31526         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
31527         lstat, stdlib, sys_stat.
31528         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
31529         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
31530         extensions.
31531         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
31532         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
31533         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
31534         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
31535         declaration, if available.
31536         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
31537         we can rely on the readlink module.
31538         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
31539         (includes): Use <unistd.h> unconditionally.
31540
31541 2009-09-17  Eric Blake  <ebb9@byu.net>
31542
31543         maint: make Include sections of modules consistent
31544         * modules/alloca: Use only header name; no need to list #include.
31545         * modules/alloca-opt: Likewise.
31546         * modules/arpa_inet: Likewise.
31547         * modules/canon-host: Likewise.
31548         * modules/configmake: Likewise.
31549         * modules/dirent: Likewise.
31550         * modules/eealloc: Likewise.
31551         * modules/environ: Likewise.
31552         * modules/fchdir: Likewise.
31553         * modules/fcntl: Likewise.
31554         * modules/fcntl-h: Likewise.
31555         * modules/gethrxtime: Likewise.
31556         * modules/gettime: Likewise.
31557         * modules/ignore-value: Likewise.
31558         * modules/inet_ntop: Likewise.
31559         * modules/inet_pton: Likewise.
31560         * modules/inttypes: Likewise.
31561         * modules/isnand-nolibm: Likewise.
31562         * modules/isnanf-nolibm: Likewise.
31563         * modules/mbchar: Likewise.
31564         * modules/mbfile: Likewise.
31565         * modules/mbiter: Likewise.
31566         * modules/mbuiter: Likewise.
31567         * modules/netdb: Likewise.
31568         * modules/netinet_in: Likewise.
31569         * modules/nproc: Likewise.
31570         * modules/pagealign_alloc: Likewise.
31571         * modules/poll: Likewise.
31572         * modules/printf-frexp: Likewise.
31573         * modules/pthread: Likewise.
31574         * modules/putenv: Likewise.
31575         * modules/random_r: Likewise.
31576         * modules/relocatable-prog: Likewise.
31577         * modules/search: Likewise.
31578         * modules/select: Likewise.
31579         * modules/selinux-h: Likewise.
31580         * modules/settime: Likewise.
31581         * modules/signal: Likewise.
31582         * modules/size_max: Likewise.
31583         * modules/socklen: Likewise.
31584         * modules/ssize_t: Likewise.
31585         * modules/stdarg: Likewise.
31586         * modules/stdbool: Likewise.
31587         * modules/stddef: Likewise.
31588         * modules/stdint: Likewise.
31589         * modules/stdio: Likewise.
31590         * modules/stdlib: Likewise.
31591         * modules/string: Likewise.
31592         * modules/strings: Likewise.
31593         * modules/sys_file: Likewise.
31594         * modules/sys_ioctl: Likewise.
31595         * modules/sys_select: Likewise.
31596         * modules/sys_socket: Likewise.
31597         * modules/sys_stat: Likewise.
31598         * modules/sys_time: Likewise.
31599         * modules/sys_times: Likewise.
31600         * modules/sys_utsname: Likewise.
31601         * modules/sys_wait: Likewise.
31602         * modules/sysexits: Likewise.
31603         * modules/time: Likewise.
31604         * modules/times: Likewise.
31605         * modules/tmpfile: Likewise.
31606         * modules/trim: Likewise.
31607         * modules/unistd: Likewise.
31608         * modules/wchar: Likewise.
31609         * modules/wctype: Likewise.
31610
31611 2009-09-17  Bruno Haible  <bruno@clisp.org>
31612
31613         Make getdate.y compile on QNX and NetBSD 5 / i386.
31614         * m4/getdate.m4 (gl_GETDATE): Conditionally define
31615         TIME_T_FITS_IN_LONG_INT.
31616         * lib/getdate.y (long_time_t): New type.
31617         (relative_time): Change type of 'seconds' field to long_time_t.
31618         (get_date): Update types of local variables. Check against overflow
31619         during conversion from long_time_t to time_t.
31620         Reported by Matt Kraai <kraai@ftbfs.org>
31621         and Hasso Tepper <hasso@netbsd.org>.
31622
31623 2009-09-17  Bruno Haible  <bruno@clisp.org>
31624
31625         * modules/COPYING: Update copyright years.
31626         * modules/README: Likeiwse.
31627         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
31628         Reported by Ian Beckwith <ianb@erislabs.net>.
31629
31630 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
31631
31632         * users.txt: Update references for gnuit package.
31633
31634 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
31635
31636         * m4/getdelim.m4: Fix typo in copyright line.
31637
31638 2009-09-17  Bruno Haible  <bruno@clisp.org>
31639
31640         * lib/atoll.c: Use the standard header with GPL copyright.
31641         * lib/argz.in.h: Likewise.
31642         * lib/glob.c: Likewise.
31643         * lib/glob-libc.h: Likewise.
31644         * lib/random_r.c: Likewise.
31645         * lib/siglist.h: Likewise.
31646         * lib/strsignal.c: Likewise.
31647         Reported by Ian Beckwith <ianb@erislabs.net>.
31648
31649 2009-09-17  Eric Blake  <ebb9@byu.net>
31650
31651         rmdir: ensure correct dependency order
31652         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
31653
31654 2009-09-17  Bruno Haible  <bruno@clisp.org>
31655
31656         Disable assertion that fails on NetBSD 5 / i386.
31657         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
31658         Reported by Sam Steingold <sds@gnu.org>
31659         and Hasso Tepper <hasso@netbsd.org>.
31660
31661 2009-09-16  Eric Blake  <ebb9@byu.net>
31662
31663         unlinkdir: port to mingw
31664         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
31665         on which no one can unlink a directory.
31666
31667         stdlib: sort witness names
31668         * modules/stdlib (Makefile.am): Sort replacements.
31669         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
31670         * lib/stdlib.in.h: Likewise.
31671
31672         parse-duration-tests: avoid link failure
31673         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
31674         LIBINTL.
31675         Reported by Tom G. Christensen.
31676
31677         openat-tests: ensure unlinkat behaves like rmdir
31678         * tests/test-rmdir.c (main): Factor guts...
31679         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
31680         * modules/rmdir-tests (Files): Ship new file.
31681         * modules/openat-tests: New test.
31682         * tests/test-unlinkat.c: Likewise.
31683
31684         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
31685         * modules/rmdir-errno (Status, Notice): Now obsolete.
31686
31687         rmdir: work around cygwin 1.5.x and mingw bugs
31688         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
31689         * lib/rmdir.c (rmdir): Work around it.
31690         * modules/rmdir (Status, Notice): No longer obsolete.
31691         (Files): Add dos.m4.
31692         (Depends-on): Add unistd.
31693         (configure.ac): Set witnesses.
31694         (License): Relax to LGPLv2+.
31695         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
31696         * modules/unistd (Makefile.am): Substitute witnesses.
31697         * lib/unistd.in.h (rmdir): Declare replacement.
31698         * doc/posix-functions/rmdir.texi (rmdir): Document this.
31699         * modules/rmdir-tests: New tests.
31700         * tests/test-rmdir.c: Likewise.
31701
31702 2009-09-15  Eric Blake  <ebb9@byu.net>
31703
31704         fchdir: improve use of replacement functions
31705         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
31706         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
31707         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
31708         REPLACE_CLOSEDIR.
31709         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
31710         * modules/sys_stat (Makefile.am): Substitute correct witness.
31711         * modules/dirent (Makefile.am): Likewise.
31712         * modules/unistd (Makefile.am): Likewise.
31713         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
31714         * lib/unistd.in.h (dup): Likewise.
31715         * lib/sys_stat.in.h (fstat): Likewise.
31716
31717         maint: ignore gnulib-tool temp files
31718         * .gitignore: Ignore files created during gnulib-tool --test.
31719
31720 2009-09-13  Jim Meyering  <meyering@redhat.com>
31721
31722         posixtm: don't reject a time that specify "60" as the number of seconds
31723         * lib/posixtm.c (posixtime): The code to reject invalid dates
31724         would also reject a time specified with the .60 suffix.
31725         But POSIX allows that, in order to accommodate leap seconds.
31726         So don't reject it.
31727         (main): Adjust tests accordingly.
31728         * modules/posixtm (Depends-on): Add stpcpy.
31729
31730 2009-09-11  Jim Meyering  <meyering@redhat.com>
31731
31732         announce-gen: include [$release_type] in emitted Subject:
31733         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
31734         e.g., [stable] in the emitted Subject: line.
31735
31736 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31737
31738         Remove obsolete macros from several modules.
31739         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
31740         obsolete Autoconf macros with their modern counterparts.
31741         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
31742         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
31743         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
31744         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
31745         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
31746         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
31747         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
31748         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
31749         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
31750         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
31751         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
31752         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
31753         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
31754         * m4/sockets.m4 (gl_SOCKETS): Likewise.
31755         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
31756         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
31757         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
31758         * m4/time_r.m4 (gl_TIME_R): Likewise.
31759         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
31760         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
31761         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
31762
31763         Fix copyright header in build-aux scripts.
31764         * build-aux/git-version-gen: Fix copyright header to match GPLv3
31765         recommendation.
31766         * build-aux/ncftpput-ftp: Likewise.
31767         * build-aux/update-copyright: Likewise.
31768
31769 2009-09-09  Eric Blake  <ebb9@byu.net>
31770
31771         test-link: allow Linux choice of errno
31772         * tests/test-link.c (main): Relax test for alternate error.
31773
31774         strndup: fix improper m4 caching
31775         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
31776         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
31777         (gl_PREREQ_STRNDUP): Delete.
31778         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
31779         * modules/string (Makefile.am): Substitute it.
31780         * lib/string.in.h (strndup): Modernize prototype.
31781
31782         getcwd: port to mingw
31783         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
31784         different from the POSIX assumptions made throughout the getcwd
31785         module; fortunately, the mingw getcwd does not need replacement.
31786         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
31787         * modules/getcwd-tests: New test.
31788         * tests/test-getcwd.c: Likewise.
31789
31790         link: fix platform bugs
31791         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
31792         * lib/link.c (link): Work around them.  Fix related mingw bug.
31793         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
31794         * modules/unistd (Makefile.am): Substitute it.
31795         * lib/unistd.in.h (link): Declare replacement.
31796         * doc/posix-functions/link.texi (link): Document this.
31797         * modules/link (Depends-on): Add strdup-posix, sys_stat.
31798
31799         test-link: consolidate into single C program, test more cases
31800         * tests/test-link.sh: Delete.
31801         * tests/test-link.c: Test more error conditions.  Exposes bugs on
31802         at least Cygwin and Solaris.
31803         * modules/link-tests (Files): Remove unused file.
31804         (Depends-on): Add errno, sys_stat.
31805         (Makefile.am): Simplify.
31806
31807 2009-09-08  Bruno Haible  <bruno@clisp.org>
31808
31809         Work around towlower, towupper bug on mingw.
31810         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
31811         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
31812         * doc/posix-functions/towlower.texi: Mention the mingw bug.
31813         * doc/posix-functions/towupper.texi: Likewise.
31814         Reported by Eric Blake.
31815
31816 2009-09-08  Jim Meyering  <meyering@redhat.com>
31817
31818         build: don't try to run autoheader if we don't use it
31819         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
31820         is not used in configure.ac.
31821
31822 2009-09-08  Eric Blake  <ebb9@byu.net>
31823
31824         euidaccess: fix compilation error
31825         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
31826
31827         rawmemchr: relax license
31828         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
31829         okay.
31830         Reported by Jim Meyering.
31831
31832         mkfifoat: new module
31833         * modules/mkfifoat: New file.
31834         * lib/mkfifoat.c: Likewise.
31835         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
31836         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
31837         * modules/sys_stat (Makefile.am): Use them.
31838         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
31839         * MODULES.html.sh (File system functions): Mention module.
31840         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
31841         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
31842         * modules/mkfifoat-tests: New test.
31843         * tests/test-mkfifoat.c: Likewise.
31844
31845         strchrnul: relax license
31846         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
31847         okay.
31848         Reported by Jim Meyering.
31849
31850 2009-09-08  Eric Blake  <ebb9@byu.net>
31851
31852         fstatat: fix compilation on Solaris
31853         * lib/fstatat.c (includes): Add fcntl.h.
31854         Reported by Pádraig Brady.
31855
31856 2009-09-07  Eric Blake  <ebb9@byu.net>
31857
31858         rename: modernize replacement
31859         * modules/rename (Depends-on): Add stdio.
31860         (configure.ac): Declare witness.
31861         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
31862         stdio take care of replacement.
31863         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
31864         * modules/stdio (Makefile.am): Substitute them.
31865         * lib/stdio.in.h (rename): Declare replacement.
31866         * lib/rename.c (includes): Allow cross-compilation to non-windows
31867         machines.
31868         * doc/posix-functions/rename.texi (rename): Improve
31869         documentation.
31870
31871         stdio: sort witness names
31872         * modules/stdio (Makefile.am): Sort replacements.
31873         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
31874         * lib/stdio.in.h: Likewise.
31875
31876         getcwd: minor cleanups
31877         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
31878         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
31879
31880         openat: provide more convenience names
31881         * modules/faccessat (configure.ac): Add C witness.
31882         * lib/unistd.in.h (readlinkat): Fix typo.
31883         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
31884         convenience wrappers.
31885         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
31886         wrappers in syntax checks.
31887
31888 2009-09-06  Eric Blake  <ebb9@byu.net>
31889
31890         doc: fix comments in recent patches
31891         * lib/faccessat.c: Mention correct function.
31892         * lib/fchmodat.c: Likewise.
31893         * lib/fchownat.c: Likewise.
31894         * lib/symlinkat.c: Likewise.
31895         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
31896         constants.
31897
31898         faccessat, symlinkat: continue cleanup of previous patch
31899         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
31900         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
31901         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
31902         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
31903         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
31904         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
31905         set.
31906
31907 2009-09-06  Bruno Haible  <bruno@clisp.org>
31908
31909         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
31910         (fstatat): Declare if GNULIB_FSTATAT is set.
31911         (mkdirat): Declare if GNULIB_MKDIRAT is set.
31912         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
31913         (unlinkat): Declare if GNULIB_UNLINKAT is set.
31914         * modules/fcntl-h (Files): Remove m4/openat.m4.
31915         * modules/sys_stat (Files): Remove m4/openat.m4.
31916         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
31917         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
31918         * modules/unistd (Files): Remove m4/openat.m4.
31919         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
31920         GNULIB_OPENAT.
31921         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
31922         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
31923         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
31924         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
31925         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
31926         gl_OPENAT_DEFAULTS.
31927         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
31928         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
31929         Don't require gl_OPENAT_DEFAULTS.
31930         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
31931         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
31932         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
31933         (gl_OPENAT_DEFAULTS): Remove macro.
31934
31935 2009-09-06  Bruno Haible  <bruno@clisp.org>
31936
31937         * modules/openat (configure.ac): Remove unneeded witness.
31938
31939 2009-09-06  Bruno Haible  <bruno@clisp.org>
31940
31941         Set errno to ENOSYS when a function is entirely unsupported.
31942         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
31943         EOPNOTSUPP.
31944         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
31945         * modules/chown (Depends-on): Remove errno.
31946
31947 2009-09-06  Bruno Haible  <bruno@clisp.org>
31948
31949         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
31950
31951 2009-09-06  Bruno Haible  <bruno@clisp.org>
31952
31953         * lib/sys_stat.in.h: Fix preprocessor command indentation.
31954
31955 2009-09-06  Ben Pfaff  <blp@gnu.org>
31956             Bruno Haible  <bruno@clisp.org>
31957
31958         Work around a glibc bug in strtok_r.
31959         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
31960         Undefine if UNDEFINE_STRTOK_R is set.
31961         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
31962         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
31963         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
31964         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
31965         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
31966         UNDEFINE_STRTOK_R.
31967         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
31968
31969 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
31970
31971         exclude: minor fix
31972         * lib/exclude.c: Include wctype.h
31973
31974 2009-09-06  Akim Demaille  <demaille@gostai.com>
31975
31976         bootstrap: improve error message
31977         * build-aux/bootstrap (find_tool): Upon failure, report the list
31978         of candidates.
31979         Honor the initial value of the envvar.
31980
31981 2009-09-05  Eric Blake  <ebb9@byu.net>
31982
31983         symlinkat: new module
31984         * modules/symlinkat: New file.
31985         * lib/symlinkat.c: Likewise.
31986         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
31987         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
31988         * modules/unistd (Makefile.am): Use them.
31989         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
31990         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
31991         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
31992         * MODULES.html.sh (File system functions): Mention module.
31993         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
31994         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
31995         * modules/symlinkat-tests: New test.
31996         * tests/test-symlinkat.c: Likewise.
31997
31998         test-openat-safer: add more checks
31999         * tests/test-openat-safer.c (main): Check more code paths.
32000
32001 2009-09-05  Jim Meyering  <meyering@redhat.com>
32002
32003         syntax-check: detect unnecessary inclusion of openat.h
32004         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
32005
32006 2009-09-05  Bruno Haible  <bruno@clisp.org>
32007
32008         Support towlower, towupper.
32009         * doc/posix-functions/towlower.texi: Mention module wctype.
32010         * doc/posix-functions/towupper.texi: Likewise.
32011         * lib/wctype.in.h (towlower, towupper): New functions.
32012         * tests/test-wctype.c: Include stdio.h, stdlib.h.
32013         (ASSERT): New macro.
32014         (e): New variable.
32015         (main): Test also towlower, towupper. Test WEOF argument.
32016         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
32017
32018 2009-09-05  Bruno Haible  <bruno@clisp.org>
32019
32020         Fix conversion behaviour when the input is invalid.
32021         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
32022         mark occurring in first pass of indirect conversion.
32023         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
32024         input.
32025         Found by clang's static analyzer.
32026
32027 2009-09-05  Bruno Haible  <bruno@clisp.org>
32028
32029         * tests/test-striconveh.c (main): Test indirect conversion on platforms
32030         where direct conversion is possible.
32031
32032 2009-09-04  Eric Blake  <ebb9@byu.net>
32033
32034         openat: fail with ENOENT on empty name
32035         * lib/openat-proc.c (openat_proc_name): Special-case the empty
32036         buffer.
32037
32038         link-follow: fix logic bug in prior patch
32039         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
32040         reversed sense of yes and no in prior patch.  Avoid confusing
32041         compilation failure with desired semantics.
32042
32043         link-follow: accomodate mingw and cross-compilation
32044         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
32045         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
32046         cross-compilation results to -1, to make linkat easier to
32047         implement when cross-compiling.  Trivially support mingw.
32048         * modules/link-follow (configure.ac): Call new name.
32049         * NEWS: Mention this.
32050
32051 2009-09-03  Eric Blake  <ebb9@byu.net>
32052
32053         faccessat: compile replacement
32054         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
32055         needed.
32056
32057         fts: fix compilation error
32058         * lib/fts.c (includes): Re-add "openat.h", for
32059         openat_needs_fchdir.
32060
32061         faccessat: new module
32062         * modules/faccessat: New file.
32063         * lib/faccessat.c: Likewise.
32064         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
32065         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
32066         * modules/unistd (Makefile.am): Use it.
32067         * lib/unistd.in.h (faccessat): Declare it.
32068         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
32069         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
32070         * MODULES.html.sh (File system functions): Mention it.
32071         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
32072         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
32073
32074         euidaccess: prefer POSIX over non-standard implementation
32075         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
32076         * lib/euidaccess.c (euidaccess): Use it if available.
32077
32078         openat: make template easier to use
32079         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
32080         AT_FUNC_F2 to be undefined.
32081         (VALIDATE_FLAG): New macro; use it to reject bad flags.
32082         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
32083         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
32084         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
32085         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
32086         Likewise.
32087         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
32088         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
32089         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
32090         Likewise.
32091
32092         openat: declare in POSIX headers
32093         * NEWS: Mention this.
32094         * modules/openat (configure.ac): Declare witnesses.
32095         (Depends-on): Add fcntl-h, sys_stat, unistd.
32096         (Include): Mention correct headers.
32097         * modules/fcntl-h (Depends-on): Add link-warning.
32098         (Files): Add openat.m4.
32099         (Makefile.am): Substitute witnesses.
32100         * modules/sys_stat (Files, Makefile.am): Likewise.
32101         * modules/unistd (Files, Makefile.am): Likewise.
32102         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
32103         (gl_OPENAT_DEFAULTS): New macro.
32104         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
32105         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
32106         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
32107         (SYS_STAT_H): Remove unused variable.
32108         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
32109         * lib/fcntl--.h (includes): Remove unneeded header.
32110         * lib/openat-safer.c (includes): Likewise.
32111         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
32112         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
32113         appropriate headers.
32114         (__OPENAT_PREFIX): Delete.
32115         * lib/fcntl.in.h (openat): Provide declaration.
32116         (AT_FDCWD): Fix Solaris bug.
32117         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
32118         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
32119         * lib/fchmodat.c (includes):  Adjust to find declaration.
32120         * lib/fchownat.c (includes): Likewise.
32121         * lib/mkdirat.c (includes): Likewise.
32122         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
32123         still visible.
32124
32125 2009-09-02  Eric Blake  <ebb9@byu.net>
32126
32127         errno: use consistently
32128         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
32129         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
32130         * lib/canonicalize.c (ELOOP): Likewise.
32131         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
32132         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
32133         * lib/lchown.c (EOPNOTSUPP): Likewise.
32134         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
32135         * lib/savewd.c (ESTALE): Likewise.
32136         * lib/settime.c (ENOSYS): Likewise.
32137         * lib/utimens.c (ENOSYS): Likewise.
32138         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
32139         * lib/chdir-safer.c (ELOOP): Likewise.
32140         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
32141         * modules/c-stack (Depends-on): Add errno.
32142         * modules/canonicalize (Depends-on): Likewise.
32143         * modules/chdir-safer (Depends-on): Likewise.
32144         * modules/fdopendir (Depends-on): Likewise.
32145         * modules/inet_ntop (Depends-on): Likewise.
32146         * modules/inet_pton (Depends-on): Likewise.
32147         * modules/lchown (Depends-on): Likewise.
32148         * modules/openat (Depends-on): Likewise.
32149         * modules/savewd (Depends-on): Likewise.
32150         * modules/settime (Depends-on): Likewise.
32151         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
32152
32153         fts: avoid leaking fds
32154         * modules/fts (Depends-on): Add cloexec.
32155         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
32156         flag.
32157
32158         fts: make directory fds more robust
32159         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
32160         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
32161
32162         backupfile, chdir-long, fts, savedir: make safer
32163         * lib/backupfile.c (includes): Use "dirent--.h", since
32164         numbered_backup can write to stderr during readdir.
32165         * lib/savedir.c (includes): Likewise.
32166         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
32167         emulation can write to stderr on failure.
32168         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
32169         * lib/getcwd.c: Document why opendir_safer is unused.
32170         * lib/glob.c: Likewise.
32171         * lib/scandir.c: Likewise.
32172         * lib/openat-proc.c: Likewise, for open_safer.
32173         * modules/backupfile (Depends-on): Add dirent-safer.
32174         * modules/savedir (Depends-on): Likewise.
32175         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
32176         * modules/chdir-long (Depends-on): Add openat-safer.
32177
32178         openat-safer: new module
32179         * modules/openat-safer: New file.
32180         * lib/openat-safer.c: Likewise.
32181         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
32182         * lib/fcntl-safer.h (openat_safer): Declare.
32183         * lib/fcntl--.h (openat): Override.
32184         * MODULES.html.sh (File descriptor based I/O): Mention it.
32185         * lib/openat.h: Add double-inclusion guards.
32186         * lib/openat.c (includes): Only include "fcntl-safer.h", not
32187         "fcntl--.h", so we can implement openat.
32188         * modules/openat-safer-tests: New test.
32189         * tests/test-openat-safer.c: New file.
32190
32191         dirent-safer: new module
32192         * modules/dirent-safer: New file.
32193         * lib/dirent--.h: Likewise.
32194         * lib/dirent-safer.h: Likewise.
32195         * lib/opendir-safer.c: Likewise.
32196         * m4/dirent-safer.m4: Likewise.
32197         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
32198         * modules/dirent-safer-tests: New test.
32199         * tests/test-dirent-safer.c: New file.
32200         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
32201
32202         fdopendir: optimize on mingw
32203         * lib/unistd.in.h (_gl_directory_name): New prototype.
32204         * lib/fchdir.c (_gl_directory_name): Implement it.
32205         (fchdir): Use it to simplify implementation.
32206         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
32207         fchdir, when available, to avoid calling [f]chdir().
32208
32209         fdopendir: split into its own module
32210         * lib/openat.c (fdopendir): Move...
32211         * lib/fdopendir.c: ...into new file.
32212         * modules/fdopendir: New module.
32213         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
32214         * modules/openat (Depends-on): Add fdopendir.
32215         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
32216         fdopendir here.
32217         * modules/savedir (Depends-on): Only need fdopendir, not full
32218         openat.
32219         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
32220         * lib/openat.h (fdopendir): Drop prototype.
32221         * lib/dirent.in.h (fdopendir): Provide prototype.
32222         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
32223         * modules/dirent (Makefile.am): Substitute them.
32224         * MODULES.html.sh (File system functions): Mention it.
32225         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
32226         * modules/fdopendir-tests: New file.
32227         * tests/test-fdopendir.c: Likewise.
32228
32229         fchdir: use more consistent macro convention
32230         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
32231         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
32232         REPLACE_FCHDIR, rather than relying on config.h macros.
32233         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
32234         inside a single make-time REPLACE_FCHDIR block, rather than using
32235         the config.h FCHDIR_REPLACEMENT.
32236         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
32237         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
32238         Manage fstat replacement.
32239         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
32240         REPLACE_FCHDIR.
32241         * modules/sys_stat (Files): Add m4/unistd_h.m4.
32242         (Makefile.am): Substitute REPLACE_FCHDIR.
32243         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
32244         FCHDIR_REPLACEMENT.
32245         * lib/dup-safer.c (dup_safer): Likewise.
32246         * lib/dup2.c (rpl_dup2): Likewise.
32247         * lib/dup3.c (rpl_dup3): Likewise.
32248         * lib/open.c (rpl_open): Likewise.
32249
32250         fchdir: simplify error handling, and support dup3
32251         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
32252         stdbool, malloc-posix, realloc-posix.
32253         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
32254         (ensure_dirs_slot): Return false on allocation failure.
32255         (rpl_dup2): Delete.
32256         (_gl_register_dup): New function.
32257         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
32258         (_gl_register_fd): Close fd on allocation failure.
32259         * lib/fcntl.in.h (_gl_register_fd): Update signature.
32260         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
32261         prototype.
32262         (rpl_dup2_fchdir): Delete prototype.
32263         * lib/open.c (open): Update caller.
32264         * lib/dup2.c (dup2): Track fchdir metadata.
32265         * lib/dup3.c (dup3): Likewise.
32266         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
32267         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
32268
32269 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32270
32271         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
32272         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
32273         don't pass arguments to AC_OUTPUT.
32274
32275 2009-09-02  Bruno Haible  <bruno@clisp.org>
32276
32277         * modules/mkdtemp (License): Relicense under LGPLv2+.
32278         Reported by Paolo Bonzini.
32279
32280 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32281
32282         Replace uses of obsolete autoconf macros in Jim's modules.
32283         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
32284         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
32285         can evoke a warning from autoconf when run with -Wobsolete
32286         enabled.  They were declared obsolete for good reasons (see
32287         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
32288         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
32289         should not continue using the deprecated macros.
32290         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
32291         obsolete Autoconf macros with modern counterparts.
32292         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
32293         * m4/dos.m4 (gl_AC_DOS): Likewise.
32294         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
32295         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
32296         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
32297         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
32298         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
32299         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
32300         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
32301         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
32302         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
32303         Likewise.
32304         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
32305         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
32306         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
32307         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
32308         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
32309         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
32310
32311 2009-09-01  Eric Blake  <ebb9@byu.net>
32312
32313         fchdir: fix off-by-one bug in previous patch
32314         * lib/fchdir.c (rpl_fstat): Use correct bounds.
32315         (_gl_unregister_fd): Delete useless if.
32316
32317 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
32318
32319         maint.mk: sort the list of syntax-check rules
32320         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
32321         easier to get a sense of progress when the rules are run sequentially
32322         and take a long time.
32323
32324 2009-09-01  Simon Josefsson  <simon@josefsson.org>
32325
32326         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
32327         * modules/netinet_in: Likewise.
32328         * modules/sys_file: Likewise.
32329         * modules/sys_ioctl: Likewise.
32330         * modules/sys_select: Likewise.
32331         * modules/sys_socket: Likewise.
32332         * modules/sys_stat: Likewise.
32333         * modules/sys_time: Likewise.
32334         * modules/sys_times: Likewise.
32335         * modules/sys_utsname: Likewise.
32336         * modules/sys_wait: Likewise.
32337
32338 2009-09-01  Jim Meyering  <meyering@redhat.com>
32339
32340         fts: help ensure that return values are not ignored
32341         * lib/fts_.h (__GNUC_PREREQ): Define.
32342         (__attribute_warn_unused_result__): Define.
32343         (fts_children, fts_close, fts_open, fts_read): Declare with
32344         __attribute_warn_unused_result__.
32345
32346         fts: fts_close now fails also when closing a dir file descriptor fails
32347         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
32348         and propagate to caller, along with errno.
32349
32350         announce-gen: correct formatting in --help output
32351         * build-aux/announce-gen (usage): Move the one-line description in
32352         --help output "up", to where it belongs, just after Usage:.
32353
32354 2009-08-31  Eric Blake  <ebb9@byu.net>
32355
32356         fchdir: port to mingw
32357         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
32358         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
32359         opened, then use a substitute.
32360         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
32361         replacement.
32362         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
32363         (_gl_register_fd): No need to check stat if open already filters
32364         all directories.
32365         (fchdir): Fix error condition to match POSIX.
32366         * modules/fchdir (Depends-on): Add sys_stat.
32367         * doc/posix-functions/open.texi (open): Document the limitation.
32368         * modules/fchdir-tests: New file.
32369         * tests/test-fchdir.c: Likewise.
32370
32371         canonicalize: allow cross-testing from cygwin to mingw
32372         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
32373         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
32374         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
32375         Likewise.
32376         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
32377         target does not support symlinks.
32378         * tests/test-canonicalize-lgpl.sh: Likewise.
32379
32380         chown: avoid compilation warning on mingw
32381         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
32382         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
32383         mingw.
32384         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
32385         * modules/chown (Depends-on): Add errno.
32386
32387 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
32388
32389         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
32390         command.
32391
32392 2009-08-31  Jim Meyering  <meyering@redhat.com>
32393
32394         canonicalize: remove useless initialization
32395         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
32396         initialization of local, "end".
32397
32398 2009-08-30  Bruno Haible  <bruno@clisp.org>
32399
32400         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
32401         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
32402         ENOSYS.
32403
32404 2009-08-30  Bruno Haible  <bruno@clisp.org>
32405
32406         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
32407         /usr/xpg4/bin/tr when it exists.
32408         * tests/test-pipe-filter-gi1.sh: Likewise.
32409
32410 2009-08-30  Bruno Haible  <bruno@clisp.org>
32411
32412         Work around deficient /usr/bin/id program on Solaris.
32413         * tests/test-file-has-acl.sh (ID): New variable.
32414         * tests/test-set-mode-acl.sh (ID): Likewise.
32415         * tests/test-copy-acl.sh (ID): Likewise.
32416         * tests/test-copy-file.sh (ID): Likewise.
32417
32418 2009-08-30  Bruno Haible  <bruno@clisp.org>
32419
32420         New module 'xstriconveh'.
32421         * lib/xstriconveh.h: New file.
32422         * lib/xstriconveh.c: New file.
32423         * modules/xstriconveh: New file.
32424
32425 2009-08-30  Bruno Haible  <bruno@clisp.org>
32426
32427         Make it easier to use mem_cd_iconveh.
32428         * lib/striconveh.h (iconveh_t): New type.
32429         (iconveh_open, iconveh_close): New declarations.
32430         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
32431         with a single 'const iconveh_t *' argument.
32432         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
32433         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
32434         with a single 'const iconveh_t *' argument.
32435         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
32436         * tests/test-striconveh.c (main): Update.
32437         * NEWS: Mention the change.
32438
32439 2009-08-30  Bruno Haible  <bruno@clisp.org>
32440
32441         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
32442         problem.
32443
32444 2009-08-30  Bruno Haible  <bruno@clisp.org>
32445
32446         Work around iconv_open problem on Solaris.
32447         * lib/iconv_open-solaris.gperf: New file.
32448         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
32449         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
32450         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
32451         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
32452         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
32453         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
32454
32455 2009-08-29  Jim Meyering  <meyering@redhat.com>
32456
32457         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
32458         * top/maint.mk (cvs-check): Remove target; it was just an alias
32459         to the better-named vc-diff-check.
32460         (maintainer-distcheck): Remove rule.  It was used only from
32461         the (alpha/beta/major) target, and all of its commands but one
32462         were coreutils-specific.
32463         (vc-dist): Remove rule.
32464         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
32465         Run vc-diff-check, not vc-dist.
32466         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
32467
32468 2009-08-27  Bruno Haible  <bruno@clisp.org>
32469
32470         * tests/test-bitrotate.c (main): Remove test that uses a shift count
32471         of 0.
32472
32473 2009-08-27  Bruno Haible  <bruno@clisp.org>
32474
32475         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
32476         compilers.
32477         * doc/func.texi: Document the SunPRO C bug.
32478
32479 2009-08-27  Bruno Haible  <bruno@clisp.org>
32480
32481         Fix link error on Solaris.
32482         * tests/test-parse-duration.c (xstrdup): Remove function.
32483
32484 2009-08-26  Pádraig Brady  <P@draigbrady.com>
32485
32486         ignore-value: handle pointer types, too
32487         * lib/ignore-value.h (__attribute__): Remove definition.
32488         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
32489         of a more concise and more-often effective "(void) i" statement.
32490         (ignore_ptr): New function to suppress warnings from functions that
32491         return pointers, and to make it explicit that one function doesn't
32492         handle all cases.
32493
32494 2009-08-25  Bruno Haible  <bruno@clisp.org>
32495
32496         dup2: work around a Linux bug.
32497         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
32498         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
32499         * doc/posix-functions/dup2.texi: Mention the Linux bug.
32500         Reported by Simon Josefsson.
32501
32502 2009-08-25  Jim Meyering  <meyering@redhat.com>
32503
32504         libguestfs uses gnulib
32505         * users.txt: Add libguestfs.
32506
32507 2009-08-24  Eric Blake  <ebb9@byu.net>
32508
32509         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
32510         * lib/pipe2.c (includes): Add binary-io.h.
32511         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
32512
32513 2009-08-24  Bruno Haible  <bruno@clisp.org>
32514
32515         Tolerate declared but missing accept4 syscall.
32516         * lib/accept4.c (accept4): Invoke original accept4 function first, if
32517         available.
32518         * lib/sys_socket.in.h (accept4): If the function is already present,
32519         override it.
32520         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
32521         * modules/accept4 (Makefile.am): Compile accept4.c always.
32522         Reported by Paolo Bonzini and Eric Blake.
32523
32524 2009-08-23  Bruno Haible  <bruno@clisp.org>
32525
32526         New module 'accept4'.
32527         * lib/sys_socket.in.h (accept4): New declaration.
32528         * lib/accept4.c: New file.
32529         * m4/accept4.m4: New file.
32530         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
32531         GNULIB_ACCEPT4, HAVE_ACCEPT4.
32532         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
32533         HAVE_ACCEPT4.
32534         * modules/accept4: New file.
32535         * doc/glibc-functions/accept4.texi: Mention the new module.
32536
32537 2009-08-24  Jim Meyering  <meyering@redhat.com>
32538
32539         progname: also set global program_invocation_name, when possible
32540         Before this change, a libtool-enabled program that calls glibc's
32541         error function would report the program name as
32542         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
32543         * modules/progname (configure.ac): Check for a declaration of
32544         program_invocation_name.
32545         * lib/progname.c:  Include <errno.h>.
32546         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
32547         Set program_invocation_name.
32548
32549 2009-08-23  Bruno Haible  <bruno@clisp.org>
32550
32551         * lib/dup3.c: Include <string.h>.
32552
32553 2009-08-23  Bruno Haible  <bruno@clisp.org>
32554
32555         * lib/dup3.c (dup3): Test only once whether the system actually exists.
32556         * lib/pipe2.c (pipe2): Likewise.
32557         Suggested by Eric Blake.
32558
32559 2009-08-23  Bruno Haible  <bruno@clisp.org>
32560
32561         Tolerate declared but missing dup3 syscall.
32562         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
32563         * lib/unistd.in.h (dup3): If the function is already present,
32564         override it.
32565         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
32566         * modules/dup3 (Makefile.am): Compile dup3.c always.
32567         Reported by Paolo Bonzini.
32568
32569 2009-08-23  Bruno Haible  <bruno@clisp.org>
32570
32571         Tolerate declared but missing pipe2 syscall.
32572         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
32573         available.
32574         * lib/unistd.in.h (pipe2): If the function is already present,
32575         override it.
32576         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
32577         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
32578         Reported by Paolo Bonzini.
32579
32580 2009-08-23  Bruno Haible  <bruno@clisp.org>
32581
32582         * lib/pipe2.c (pipe2): Move #ifs inside function.
32583
32584 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
32585
32586         quotearg: document limitations of quote_these_too
32587         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
32588         those limitations are created.
32589         * lib/quotearg.h (set_char_quoting): Document that digits and
32590         letters that are special after backslash are not permitted.
32591         (quotearg_char): Cross-reference set_char_quoting documentation.
32592
32593 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
32594
32595         quotearg: implement custom_quoting_style
32596         * lib/quotearg.c: (struct quoting_options): Add left_quote and
32597         right_quote fields.
32598         (set_custom_quoting): New public function.
32599         (quotearg_buffer_restyled): Add left_quote and right_quote
32600         arguments, handle them very much like locale quoting, and update
32601         all uses.
32602         (quotearg_n_custom): New public function.
32603         (quotearg_n_custom_mem): New public function.
32604         (quotearg_custom): New public function.
32605         (quotearg_custom_mem): New public function.
32606         * lib/quotearg.h: Prototype and document new public functions.
32607         (enum quoting_style): For escape_quoting_style and
32608         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
32609         ignored even though they're otherwise like c_quoting_style.
32610         Add custom_quoting_style member and document with comparison to
32611         clocale_quoting_style.
32612         * tests/test-quotearg.c (custom_quotes): New array.
32613         (custom_results): New array.
32614         (main): Extend to test custom quoting.
32615
32616 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
32617
32618         quotearg: fix right quote escaping when it's in quote_these_too
32619         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
32620         quote, be sure to prepend only one backslash.
32621         * tests/test-quotearg.c (use_quote_double_quotes): New function.
32622         (main): Test it.
32623
32624 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
32625
32626         quotearg-tests: test escaping of embedded locale quotes
32627         * tests/test-quotearg.c (struct result_strings): Add member for
32628         new input.
32629         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
32630         (inputs): Add new input.
32631         (results_g): Add expected results.
32632         (flag_results): Likewise.
32633         (locale_results): Likewise.
32634         (compare_strings): Check those.
32635
32636 2009-08-23  Bruno Haible  <bruno@clisp.org>
32637
32638         Tests for module 'dup3'.
32639         * modules/dup3-tests: New file.
32640         * tests/test-dup3.c: New file.
32641
32642         New module 'dup3'.
32643         * lib/unistd.in.h (dup3): New declaration.
32644         * lib/dup3.c: New file.
32645         * m4/dup3.m4: New file.
32646         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
32647         HAVE_DUP3.
32648         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
32649         * modules/dup3: New file.
32650         * doc/glibc-functions/dup3.texi: Mention the new module.
32651
32652 2009-08-23  Bruno Haible  <bruno@clisp.org>
32653
32654         Tweak the dup2 test.
32655         * tests/test-dup2.c (main): Create the test file empty. Verify that an
32656         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
32657         the test file is still empty. Fix argument order of lseek.
32658
32659 2009-08-23  Bruno Haible  <bruno@clisp.org>
32660
32661         Avoid test link errors when the modules getopt-gnu, gettext are used.
32662         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
32663         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32664
32665 2009-08-23  Bruno Haible  <bruno@clisp.org>
32666
32667         Fix getdtablesize() on mingw.
32668         * lib/getdtablesize.c (getdtablesize): Implement differently.
32669         * lib/unistd.in.h (getdtablesize): Improve comment.
32670
32671 2009-08-23  Bruno Haible  <bruno@clisp.org>
32672
32673         New module 'mkostemp'.
32674         Based on Ulrich Drepper's 2007-08-10 change in glibc.
32675         * lib/stdlib.in.h (mksotemp): New declaration.
32676         * lib/mkostemp.c: New file, from glibc with modifications.
32677         * lib/tempname.h (GT_FILE): Remove outdated comment.
32678         (gen_tempname): Add flags argument.
32679         * lib/tempname.c (__GT_BIGFILE): Remove macro.
32680         (__GT_FILE): Map to 1.
32681         (small_open, large_open): Remove macros.
32682         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
32683         * lib/mkstemp.c (mkstemp): Update.
32684         * lib/mkdtemp.c (mkdtemp): Likewise.
32685         * m4/mkostemp.m4: New file.
32686         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
32687         HAVE_MKOSTEMP.
32688         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
32689         HAVE_MKOSTEMP.
32690         * modules/mkostemp: New file, based on modules/mkstemp.
32691         * doc/glibc-functions/mkostemp.texi: Mention the new module.
32692         * NEWS: Mention the change.
32693
32694 2009-08-23  Bruno Haible  <bruno@clisp.org>
32695
32696         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
32697         Reported by Eric Blake.
32698
32699 2009-08-23  Bruno Haible  <bruno@clisp.org>
32700
32701         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
32702         Reported by Eric Blake.
32703
32704 2009-08-23  Bruno Haible  <bruno@clisp.org>
32705
32706         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
32707         * modules/pipe2 (Depends-on): Likewise.
32708
32709 2009-08-23  Eric Blake  <ebb9@byu.net>
32710
32711         fcntl-h: add O_TTY_INIT support
32712         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
32713         * tests/test-fcntl-h.c (o): Test it.
32714         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
32715
32716         fcntl-h: rename from fcntl, in preparation for fcntl(2)
32717         * modules/fcntl: Move <fcntl.h> header replacement...
32718         * modules/fcntl-h: ...to new name, so as not to collide with
32719         like-named function.
32720         * tests/test-fcntl.c: Rename...
32721         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
32722         * modules/fcntl-tests: Rename...
32723         * modules/fcntl-h-tests: ...to this.  Update test file name.
32724         * modules/chdir-long (Depends-on): Update clients.
32725         * modules/chdir-safer (Depends-on): Likewise.
32726         * modules/fcntl-safer (Depends-on): Likewise.
32727         * modules/fts (Depends-on): Likewise.
32728         * modules/mkancesdirs (Depends-on): Likewise.
32729         * modules/mkdir-p (Depends-on): Likewise.
32730         * modules/open (Depends-on): Likewise.
32731         * modules/savewd (Depends-on): Likewise.
32732         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
32733         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
32734
32735 2009-08-22  Bruno Haible  <bruno@clisp.org>
32736
32737         * modules/binary-io (License): Relicense under LGPL.
32738         * modules/pipe2 (License): Likewise.
32739
32740 2009-08-22  Bruno Haible  <bruno@clisp.org>
32741
32742         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
32743         return value.
32744         * lib/pipe-filter-gi.c (filter_init): Likewise.
32745         Reported by Eric Blake.
32746
32747 2009-08-22  Bruno Haible  <bruno@clisp.org>
32748
32749         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
32750         * modules/pipe (Depends-on): Add pipe2.
32751
32752 2009-08-22  Bruno Haible  <bruno@clisp.org>
32753
32754         Tests for module 'pipe2'.
32755         * modules/pipe2-tests: New file.
32756         * tests/test-pipe2.c: New file.
32757
32758         New module 'pipe2'.
32759         * lib/unistd.in.h (pipe2): New declaration.
32760         * lib/pipe2.c: New file.
32761         * m4/pipe2.m4: New file.
32762         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
32763         HAVE_PIPE2.
32764         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
32765         * modules/pipe2: New file.
32766         * doc/glibc-functions/pipe2.texi: Mention the new module.
32767
32768 2009-08-22  Bruno Haible  <bruno@clisp.org>
32769
32770         Reference some new glibc functions.
32771         * doc/glibc-functions/accept4.texi: New file.
32772         * doc/glibc-functions/dup3.texi: New file.
32773         * doc/glibc-functions/mkostemp.texi: New file.
32774         * doc/glibc-functions/pipe2.texi: New file.
32775         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
32776         (Glibc sys/socket.h): Refer to accept4.
32777         (Glibc unistd.h): Refer to dup3, pipe2.
32778         Reported by Eric Blake.
32779
32780 2009-08-22  Jim Meyering  <meyering@redhat.com>
32781             Bruno Haible  <bruno@clisp.org>
32782
32783         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
32784         This makes it so packages using automake-1.11's silent-rules option
32785         can print e.g., a single "GEN    configmake.h" line, rather than
32786         the 30+ statements that perform the job.  If you want to see the
32787         actual commands, you can still run "make V=1".
32788         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
32789         so that make output is abbreviated when those variables are defined
32790         appropriately.
32791         * modules/argz: Likewise.
32792         * modules/arpa_inet: Likewise.
32793         * modules/byteswap: Likewise.
32794         * modules/configmake: Likewise.
32795         * modules/dirent: Likewise.
32796         * modules/errno: Likewise.
32797         * modules/fcntl: Likewise.
32798         * modules/float: Likewise.
32799         * modules/fnmatch: Likewise.
32800         * modules/getopt-posix: Likewise.
32801         * modules/glob: Likewise.
32802         * modules/iconv_open: Likewise.
32803         * modules/inttypes: Likewise.
32804         * modules/localcharset: Likewise.
32805         * modules/locale: Likewise.
32806         * modules/math: Likewise.
32807         * modules/netdb: Likewise.
32808         * modules/netinet_in: Likewise.
32809         * modules/poll: Likewise.
32810         * modules/posix_spawnp-tests: Likewise.
32811         * modules/sched: Likewise.
32812         * modules/search: Likewise.
32813         * modules/selinux-h: Likewise.
32814         * modules/signal: Likewise.
32815         * modules/spawn: Likewise.
32816         * modules/stdarg: Likewise.
32817         * modules/stdbool: Likewise.
32818         * modules/stddef: Likewise.
32819         * modules/stdint: Likewise.
32820         * modules/stdio: Likewise.
32821         * modules/stdlib: Likewise.
32822         * modules/string: Likewise.
32823         * modules/strings: Likewise.
32824         * modules/sys_file: Likewise.
32825         * modules/sys_ioctl: Likewise.
32826         * modules/sys_select: Likewise.
32827         * modules/sys_socket: Likewise.
32828         * modules/sys_stat: Likewise.
32829         * modules/sys_time: Likewise.
32830         * modules/sys_times: Likewise.
32831         * modules/sys_utsname: Likewise.
32832         * modules/sys_wait: Likewise.
32833         * modules/sysexits: Likewise.
32834         * modules/time: Likewise.
32835         * modules/unistd: Likewise.
32836         * modules/wchar: Likewise.
32837         * modules/wctype: Likewise.
32838
32839 2009-08-22  Jim Meyering  <meyering@redhat.com>
32840
32841         announce-gen: detect write failure
32842         * build-aux/announce-gen: Add Coda at end.
32843         Remove equivalent-but-more-verbose block at top.
32844
32845 2009-08-19  Akim Demaille  <demaille@gostai.com>
32846
32847         bootstrap: --help to stdout.
32848         * bootstrap (usage): Don't send --help to stderr.
32849         Use a here doc instead of a long string.
32850
32851 2009-08-21  Eric Blake  <ebb9@byu.net>
32852
32853         test-popen-safer: split from test-popen
32854         * tests/test-popen.c (main): Move...
32855         * tests/test-popen.h: ...into new file.
32856         * tests/test-popen-safer2.c: New file.
32857         * modules/popen-tests (Files): Add test-popen.h.
32858         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
32859         Suggested by Bruno Haible.
32860
32861         test-fcntl-safer: split from test-open
32862         * tests/test-open.c (main): Move...
32863         * tests/test-open.h: ...into new file.
32864         * tests/test-fcntl-safer.c: New file.
32865         * modules/open-tests (Files): Add test-open.h.
32866         * modules/fcntl-safer-tests: New file.
32867         Suggested by Bruno Haible.
32868
32869         test-fopen-safer: split from test-fopen
32870         * tests/test-fopen.c (main): Move...
32871         * tests/test-fopen.h: ...into new file.
32872         * tests/test-fopen-safer.c: New file.
32873         * modules/fopen-tests (Files): Add test-fopen.h.
32874         * modules/fopen-safer-tests: New file.
32875         Suggested by Bruno Haible.
32876
32877 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
32878
32879         popen-safer: test O_CLOEXEC at run-time.
32880         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
32881
32882 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
32883
32884         fcntl: move more flags to the header
32885         * lib/cloexec.c: Do not define FD_CLOEXEC here.
32886         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
32887         * lib/fcntl.in.h: Do both things here.
32888
32889 2009-08-21  Jim Meyering  <meyering@redhat.com>
32890
32891         consistently remove $@-t before redirecting to it
32892         * modules/argz: Remove $@-t and $@ before redirecting to the former.
32893         * modules/alloca-opt: Likewise.
32894         * modules/byteswap: Likewise.
32895         * modules/fnmatch: Likewise.
32896         * modules/getopt-posix: Likewise.
32897         * modules/glob: Likewise.
32898         * modules/poll: Likewise.
32899         * modules/posix_spawnp-tests: Likewise.
32900         * modules/sys_socket: Likewise.
32901         * modules/sysexits: Likewise.
32902
32903 2009-08-21  Eric Blake  <ebb9@byu.net>
32904
32905         popen: simplify access to original popen
32906         * lib/popen.c (rpl_popen): No need to worry about popen being a
32907         macro.
32908         Reported by Bruno Haible.
32909
32910 2009-08-20  Eric Blake  <ebb9@byu.net>
32911
32912         build: avoid some compiler warnings
32913         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
32914         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
32915         type.
32916         (new_exclude_segment, excluded_file_pattern_p)
32917         (excluded_file_name_p): Reduce scope.
32918         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
32919         old-style declaration.
32920
32921 2009-08-20  Simon Josefsson  <simon@josefsson.org>
32922
32923         * tests/test-exclude1.sh: Handle Windows EOL.
32924         * tests/test-exclude2.sh: Likewise.
32925         * tests/test-exclude3.sh: Likewise.
32926         * tests/test-exclude4.sh: Likewise.
32927         * tests/test-exclude5.sh: Likewise.
32928         * tests/test-exclude6.sh: Likewise.
32929         * tests/test-exclude7.sh: Likewise.
32930
32931 2009-08-19  Akim Demaille  <demaille@gostai.com>
32932
32933         bootstrap: find sha1sum when named gsha1sum.
32934         * bootstrap (find_tool): New.
32935         ($SHA1SUM): New.
32936         Use it.
32937
32938 2009-08-20  Jim Meyering  <meyering@redhat.com>
32939
32940         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
32941         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
32942         expression that converts "." in a file name to "\." in the resulting
32943         regexp.  Start with a dummy statement, so that prior shell variable
32944         definitions are expanded portably.  Reported by Simon Josefsson.
32945
32946 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
32947
32948         Fix polling for writeability of a screen buffer.
32949         * lib/poll.c: Distinguish input and screen buffers for the
32950         Win32 implementation.
32951         * lib/select.c: Likewise.
32952
32953 2009-08-19  Eric Blake  <ebb9@byu.net>
32954
32955         popen-safer: prevent popen from clobbering std descriptors
32956         * modules/popen-safer: New file.
32957         * lib/popen-safer.c: Likewise.
32958         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
32959         * lib/stdio--.h (popen): Provide override.
32960         * lib/stdio-safer.h (popen_safer): Provide declaration.
32961         * tests/test-popen.c (includes): Partially test this.
32962         * modules/popen-safer-tests: New file, for more tests.
32963         * tests/test-popen-safer.c: Likewise.
32964         * MODULES.html.sh (file stream based Input/Output): Mention it.
32965
32966         tests: test some of the *-safer modules
32967         * modules/fopen-safer (Depends-on): Add fopen.
32968         * modules/fcntl-safer (Depends-on): Add fcntl.
32969         * modules/stdlib-safer (Depends-on): Add stdlib.
32970         (configure.ac): Set indicator.
32971         * modules/unistd-safer (configure.ac): Likewise.
32972         * modules/tmpfile-safer (configure.ac): Likewise.
32973         (Depends-on): Add tmpfile.
32974         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
32975         active.
32976         * tests/test-fopen.c (includes): Test safer versions when they are
32977         in use.
32978         * tests/test-open.c (includes): Likewise.
32979
32980         popen: fix cygwin 1.5 bug when stdin closed
32981         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
32982         * modules/popen: New file.
32983         * modules/popen-tests: Likewise.
32984         * tests/test-popen.c: Likewise.
32985         * m4/popen.m4: Likewise.
32986         * lib/popen.c: Likewise.
32987         * lib/stdio.in.h (popen): New declaration.
32988         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
32989         * modules/stdio (Makefile.am): Likewise.
32990         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
32991
32992 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
32993
32994         maint.mk: give full control over update-copyright exclusions
32995         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
32996         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
32997         (update-copyright): Don't force inclusion of top-level
32998         ChangeLog.  Don't force exclusion of all COPYING files, but make
32999         them the default exclusion instead.
33000
33001 2009-08-16  Bruno Haible  <bruno@clisp.org>
33002
33003         Fix test failures on Solaris 10.
33004         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
33005         tests when Solaris iconv() is used.
33006         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
33007         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
33008         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
33009         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
33010         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
33011
33012 2009-08-16  Bruno Haible  <bruno@clisp.org>
33013
33014         Fix test failures on Solaris 10.
33015         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
33016         'tr' program and pass it as first argument.
33017         * tests/test-pipe-filter-gi1.sh: Likewise.
33018         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
33019         program as first argument.
33020         * tests/test-pipe-filter-gi1.c (main): Likewise.
33021
33022 2009-08-16  Eric Blake  <ebb9@byu.net>
33023
33024         fpurge: fix previous commits
33025         * modules/fpurge (Makefile.am): Make replacement conditional,
33026         partially reverting 2007-04-29 change; missed in previous
33027         attempt.
33028         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
33029         is missing.
33030
33031 2009-08-16  Bruno Haible  <bruno@clisp.org>
33032
33033         Clarify fpurge's effect on the file position.
33034         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
33035         * tests/test-fpurge.c (main): Make a second pass for checking the file
33036         position.
33037
33038 2009-08-16  Bruno Haible  <bruno@clisp.org>
33039
33040         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
33041         declaration of fpurge is missing.
33042         * tests/test-fpurge.c (main): Check that the file has not more contents
33043         than expected. Close the file before removing it.
33044
33045 2009-08-15  Eric Blake  <ebb9@byu.net>
33046
33047         fpurge: don't wrap working cygwin implementation
33048         * lib/fpurge.c (fpurge): Fix comment typo.
33049         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
33050         1.7 to avoid replacement.
33051         * tests/test-fpurge.c (main): Enhance test.
33052
33053 2009-08-15  Eric Blake  <ebb9@byu.net>
33054         and Jim Meyering  <meyering@redhat.com>
33055
33056         test-update-copyright: skip if perl is insufficient
33057         * tests/test-update-copyright.sh: Failure to run maintainer tool
33058         should not cause testsuite failure on cygwin 1.5.
33059
33060 2009-08-14  Eric Blake  <ebb9@byu.net>
33061
33062         doc: mention more functions added in cygwin 1.7.0
33063         * doc/posix-headers/limits.texi (limits.h): Update for recent
33064         cygwin additions.
33065         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
33066         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
33067         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
33068         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
33069         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
33070
33071 2009-08-14  Eric Blake  <ebb9@byu.net>
33072
33073         maint.mk: simplify update-copyright rule
33074         * top/maint.mk (update-copyright-local): Delete, and document how
33075         to do it in cfg.mk instead.
33076         (update-copyright-exclude-regexp): Delete, and document how to do
33077         it in .x-update-copyright instead.
33078         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
33079         exclude ChangeLog.
33080
33081 2009-08-14  Bruno Haible  <bruno@clisp.org>
33082
33083         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
33084
33085 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
33086
33087         maint.mk: support update-copyright-env
33088         * top/maint.mk (update-copyright-env): Define place-holder.
33089         (update-copyright): Expand $(update-copyright-env) before
33090         invoking update-copyright.
33091
33092 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
33093
33094         update-copyright: implement forced reformatting
33095         * build-aux/update-copyright: Implement and document
33096         UPDATE_COPYRIGHT_FORCE.
33097         * tests/test-update-copyright.sh: Test it.
33098
33099 2009-08-14  Eric Blake  <ebb9@byu.net>
33100         and Bruno Haible  <bruno@clisp.org>
33101
33102         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
33103         * tests/test-locale.c: Revert previous patch related to NULL.
33104         * tests/test-stdio.c: Likewise.
33105         * tests/test-stdlib.c: Likewise.
33106         * tests/test-string.c: Likewise.
33107         * tests/test-unistd.c: Likewise.
33108         * modules/time-tests (Depends-on): Add verify.
33109         * modules/wchar-tests (Depends-on): Likewise.
33110         * tests/test-time.c: Test for NULL compliance.
33111         * tests/test-wchar.c: Likewise.
33112         * modules/locale (Depends-on): Add stddef.
33113         * modules/stdio (Depends-on): Likewise.
33114         * modules/stdlib (Depends-on): Likewise.
33115         * modules/string (Depends-on): Likewise.
33116         * modules/time (Depends-on): Likewise.
33117         * modules/unistd (Depends-on): Likewise.
33118         * modules/wchar (Depends-on): Likewise.
33119         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
33120         * lib/stdlib.in.h (includes): Likewise.
33121         * lib/string.in.h (includes): Likewise.
33122         * lib/time.in.h (includes): Likewise.
33123         * lib/unistd.in.h (includes): Likewise.
33124         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
33125         replaced.
33126         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33127         * m4/stddef_h.m4: New file.
33128         * modules/stddef: Likewise.
33129         * lib/stddef.in.h: Likewise.
33130         * modules/stddef-tests: Likewise.
33131         * tests/test-stddef.c: Likewise.
33132         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
33133         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
33134         * doc/posix-headers/locale.texi (locale.h): Likewise.
33135         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
33136         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
33137         * doc/posix-headers/string.texi (string.h): Likewise.
33138         * doc/posix-headers/time.texi (time.h): Likewise.
33139         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
33140         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
33141
33142 2009-08-14  Eric Blake  <ebb9@byu.net>
33143
33144         doc: improve git diff of texinfo files
33145         * .gitattributes: Add rule for *.texi files, with hint on how to
33146         use it.
33147         Copied from m4, and based on a report by Bruno Haible.
33148
33149 2009-08-14  Bruno Haible  <bruno@clisp.org>
33150
33151         Disable multithread support by default on Cygwin 1.5.x for real.
33152         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
33153
33154 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
33155
33156         update-copyright: much ado about intervals
33157         * build-aux/update-copyright: Implement and document
33158         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
33159         of copyright year intervals.
33160         Also, document UPDATE_COPYRIGHT_YEAR.
33161         * tests/test-update-copyright.sh: Test it.
33162
33163         update-copyright: convert 2-digit to 4-digit years
33164         * build-aux/update-copyright: Implement and document.
33165         * tests/test-update-copyright.sh: Update.
33166
33167 2009-08-14  Jim Meyering  <meyering@redhat.com>
33168
33169         test-exclude: avoid coreutils "make check" failure
33170         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
33171         just as in test-argmatch.c.
33172
33173 2009-08-13  Eric Blake  <ebb9@byu.net>
33174
33175         test-dup2: fix bad assumption
33176         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
33177         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
33178
33179         test-version-etc: fix CRLF portability issue
33180         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
33181         recognize \r.
33182         * tests/test-argp-version-etc-1.sh: Likewise.
33183
33184         getopt: update client modules
33185         * modules/argp (Depends-on): Use getopt-gnu.
33186         * modules/git-merge-changelog (Depends-on): Likewise.
33187         * modules/long-options (Depends-on): Likewise.
33188         * modules/xstrtol (Depends-on): Likewise.
33189
33190 2009-08-13  Simon Josefsson  <simon@josefsson.org>
33191
33192         * tests/test-version-etc.sh: Don't fail on different
33193         project/version.  Don't fail on CRLF differences.  Rewrite to use
33194         multiple -e instead of multiple sed forks, suggested by Eric Blake
33195         <ebb9@byu.net>.
33196         * tests/test-argp-version-etc-1.sh: Likewise.
33197
33198 2009-08-13  Simon Josefsson  <simon@josefsson.org>
33199
33200         * tests/test-version-etc.sh: Don't fail on different
33201         project/version.
33202
33203 2009-08-12  Bruno Haible  <bruno@clisp.org>
33204
33205         Tests for modules 'getopt-posix', 'getopt-gnu'.
33206         * modules/getopt-posix-tests: New file.
33207         * tests/test-getopt.c: New file.
33208         * tests/test-getopt.h: New file.
33209         * tests/test-getopt_long.h: New file.
33210
33211         New modules 'getopt-posix', 'getopt-gnu'.
33212         * modules/getopt-gnu: New file, renamed from modules/getopt.
33213         * modules/getopt-posix: New file.
33214         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
33215         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
33216         (gl_GETOPT): Remove macro.
33217         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
33218         Disable the test against BSD systems that declare optreset. Test
33219         against mingw bug. Test against lack of support of optional arguments
33220         on many platforms.
33221         * doc/glibc-headers/getopt.texi: Update module name and list of
33222         relevant platforms.
33223         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
33224         'getopt-gnu' and more portability problems.
33225         * NEWS: Mention the changes.
33226
33227 2009-08-12  Bruno Haible  <bruno@clisp.org>
33228
33229         Ensure that optarg etc. get declared by <unistd.h>.
33230         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
33231         AC_USE_SYSTEM_EXTENSIONS.
33232         * modules/getopt (Depends-on): Add 'extensions'.
33233
33234 2009-08-12  Bruno Haible  <bruno@clisp.org>
33235
33236         Avoid test link errors.
33237         * modules/pipe-filter-ii-tests (Makefile.am): Define
33238         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
33239         * modules/pipe-filter-gi-tests (Makefile.am): Define
33240         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
33241         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33242
33243 2009-08-12  Bruno Haible  <bruno@clisp.org>
33244
33245         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
33246         gl_GETOPT_SUBSTITUTE before.
33247         (gl_GETOPT): Use it.
33248         * m4/argp.m4 (gl_ARGP): Update.
33249         Reported by Sergey Poznyakoff.
33250
33251         * m4/getopt.m4: Reorder macros.
33252         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
33253         (gl_GETOPT_SUBSTITUTE): Remove macro.
33254
33255 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
33256
33257         Minor improvement in gitlog-to-changelog
33258
33259         * build-aux/gitlog-to-changelog: New option `--format' makes
33260         output format string configurable.
33261
33262 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
33263
33264         Optimize exclude: use hash tables for non-wildcard patterns.
33265
33266         * lib/exclude.c: Include hash.h and mbuiter.h
33267         (struct exclude_pattern, exclude_segment): New data types.
33268         (struct exclude): Rewrite.
33269         (fnmatch_pattern_has_wildcards): New function.
33270         (new_exclude_segment, free_exclude_segment): New functions.
33271         (excluded_file_pattern_p, excluded_file_name_p): New functions.
33272         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
33273         * lib/exclude.h (is_fnmatch_pattern): New prototype.
33274         * modules/exclude: Depend on hash and mbuiter.
33275
33276         * modules/exclude-tests: New file.
33277         * tests/test-exclude.c: New file.
33278         * tests/test-exclude1.sh: New file.
33279         * tests/test-exclude2.sh: New file.
33280         * tests/test-exclude3.sh: New file.
33281         * tests/test-exclude4.sh: New file.
33282         * tests/test-exclude5.sh: New file.
33283         * tests/test-exclude6.sh: New file.
33284         * tests/test-exclude7.sh: New file.
33285
33286 2009-08-12  Bruno Haible  <bruno@clisp.org>
33287
33288         Ensure that getopt() gets declared by <unistd.h>.
33289         * lib/unistd.in.h: Conditionally include getopt.h.
33290         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
33291         Set GNULIB_UNISTD_H_GETOPT.
33292         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33293         GNULIB_UNISTD_H_GETOPT.
33294         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
33295
33296 2009-08-12  Bruno Haible  <bruno@clisp.org>
33297
33298         Clarify logic.
33299         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
33300         gl_replace_getopt instead of GETOPT_H.
33301
33302 2009-08-12  Bruno Haible  <bruno@clisp.org>
33303
33304         * m4/getopt.m4: Add comments.
33305
33306 2009-08-12  Bruno Haible  <bruno@clisp.org>
33307
33308         Disable multithread support by default on Cygwin 1.5.x.
33309         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
33310         set gl_use_threads=no if not specified otherwise.
33311
33312 2009-08-11  Bruno Haible  <bruno@clisp.org>
33313
33314         Avoid compilation error on NetBSD 5.0.
33315         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
33316         * tests/test-stdio.c: Likewise.
33317         * tests/test-stdlib.c: Likewise.
33318         * tests/test-string.c: Likewise.
33319         * tests/test-unistd.c: Likewise.
33320         Reported by Greg Troxel <gdt@ir.bbn.com>
33321         at <https://savannah.gnu.org/support/?106973>.
33322
33323 2009-08-11  Bruno Haible  <bruno@clisp.org>
33324
33325         * modules/dup2-tests (Depends-on): Remove close.
33326
33327         Undo 2009-07-19 commit.
33328         * modules/acl-tests (Depends-on): Remove close.
33329         * modules/binary-io-tests (Depends-on): Likewise.
33330         * modules/closein-tests (Depends-on): Likewise.
33331         * modules/flock-tests (Depends-on): Likewise.
33332         * modules/fsync-tests (Depends-on): Likewise.
33333         * modules/lseek-tests (Depends-on): Likewise.
33334         * modules/pipe-tests (Depends-on): Likewise.
33335         * modules/posix_spawn-tests (Depends-on): Likewise.
33336         * modules/posix_spawnp-tests (Depends-on): Likewise.
33337         * modules/stat-time-tests (Depends-on): Likewise.
33338         * modules/yesno-tests (Depends-on): Likewise.
33339
33340 2009-08-10  Bruno Haible  <bruno@clisp.org>
33341
33342         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
33343
33344 2009-08-10  Bruno Haible  <bruno@clisp.org>
33345
33346         Fix a gcc warning.
33347         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
33348
33349 2009-08-10  Bruno Haible  <bruno@clisp.org>
33350
33351         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
33352         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
33353         not only the first time.
33354         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
33355         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
33356         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
33357         is 1, not only the the first time.
33358
33359 2009-08-10  Bruno Haible  <bruno@clisp.org>
33360
33361         Make it possible to use module 'gethostname' without module 'close'.
33362         * lib/unistd.in.h (close): Evoke a link error only if
33363         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
33364         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33365         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33366         * modules/unistd (Makefile.am): Substitute
33367         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33368         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
33369         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
33370         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
33371         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33372         * modules/sys_ioctl (Makefile.am): Substitute
33373         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33374         * modules/socket (configure.ac): On native Windows, set
33375         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
33376         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33377         Reported by Sam Steingold <sds@gnu.org>.
33378
33379 2009-08-10  Bruno Haible  <bruno@clisp.org>
33380
33381         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
33382         * modules/ioctl (configure.ac): Likewise.
33383
33384 2009-08-10  Bruno Haible  <bruno@clisp.org>
33385
33386         Avoid collision between gnulib wrapper and libintl wrapper.
33387         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
33388         already defined in intl/printf.c.
33389         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
33390         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
33391
33392 2009-08-09  Bruno Haible  <bruno@clisp.org>
33393
33394         Make <sys/select.h> really self-contained, also on Solaris 10.
33395         * lib/sys_select.in.h: Include <string.h>.
33396         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
33397         Solaris 10 problem.
33398         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
33399         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
33400         Reported by Jim Meyering.
33401
33402 2009-08-09  Bruno Haible  <bruno@clisp.org>
33403
33404         Avoid warnings from 'aclocal' that are due to a use of macro name
33405         AM_XGETTEXT_OPTION that is not defined in automake.
33406         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
33407         automake.
33408         * modules/error (configure.ac): Likewise.
33409         * modules/propername (configure.ac): Likewise.
33410         * modules/vasprintf (configure.ac): Likewise.
33411         * modules/verror (configure.ac): Likewise.
33412         * modules/xprintf (configure.ac): Likewise.
33413         * modules/xvasprintf (configure.ac): Likewise.
33414
33415 2009-08-08  Bruno Haible  <bruno@clisp.org>
33416
33417         Avoid compilation error in C++ mode.
33418         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
33419         Reported by Sam Steingold <sds@gnu.org>.
33420
33421 2009-08-08  Bruno Haible  <bruno@clisp.org>
33422
33423         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
33424         for the various Unix platforms.
33425         * doc/posix-headers/limits.texi: Update platforms list regarding
33426         HOST_NAME_MAX.
33427         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33428
33429 2009-08-07  Jim Meyering  <meyering@redhat.com>
33430
33431         selinux-at: fix typo in a comment
33432         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
33433         Spotted by Paolo Bonzini.
33434
33435         selinux-at: remove redundant m4 code, add documentation
33436         * modules/selinux-at (configure.ac): Remove redundant code.
33437         LIB_SELINUX is already set via the dependent module, selinux-h.
33438         (Include): Add quotes around selinux-at.h.
33439         * lib/selinux-at.h: Add documentation.
33440         Reported by Bruno Haible in
33441         http://marc.info/?l=gnulib-bug&m=124958988300749
33442
33443 2009-08-07  Bruno Haible  <bruno@clisp.org>
33444
33445         Avoid link error on MacOS X 10.3 and 10.4.
33446         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
33447         on non-ELF systems.
33448         * lib/argp-pv.c (argp_program_version): Likewise.
33449         Reported by Simon Josefsson.
33450
33451 2009-08-07  Simon Josefsson  <simon@josefsson.org>
33452
33453         * tests/test-version-etc.sh: Use $EXEEXT.
33454
33455 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
33456
33457         update-copyright: update documentation to point to maint.mk
33458         * build-aux/update-copyright: Here.
33459
33460 2009-08-06  Jim Meyering  <meyering@redhat.com>
33461
33462         maint.mk: support update-copyright-local
33463         * top/maint.mk (update-copyright-local): Define place-holder.
33464         (update-copyright): Depend on $(update-copyright-local).
33465
33466 2009-08-06  Jim Meyering  <meyering@redhat.com>
33467
33468         selinux-at: new module
33469         Initially written for coreutils, this module will soon be
33470         used by findutils, too.
33471         * MODULES.html.sh [Misc]: Add selinux-at.
33472         * lib/selinux-at.h: New file, from coreutils.
33473         * lib/selinux-at.c: Likewise.
33474         * modules/selinux-at: Likewise.
33475         (License): Change from LGPL to GPL, since it depends
33476         on the GPL'd openat module.
33477
33478         doc: update README
33479         * README: Remove references to cogito.
33480         Remove cvs-repo-updating instructions from 2007.
33481         Don't imply that CVS is better if you have limited disk space.
33482
33483 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33484
33485         update-copyright: support C-style comments
33486         * build-aux/update-copyright: Implement and document.
33487         * tests/test-update-copyright.sh: Test.
33488
33489 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33490
33491         update-copyright: support omitted "(C)"
33492         * build-aux/update-copyright: Implement and document.  Also,
33493         allow variable whitespace before "(C)".
33494         * tests/test-update-copyright.sh: Test.
33495
33496 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33497
33498         update-copyright: don't trip on non-FSF copyright statements
33499         * build-aux/update-copyright: Fix so that the first correctly
33500         formatted FSF copyright statement is recognized no matter what
33501         appears before it.  Update documentation.
33502         * tests/test-update-copyright.sh: Test that.
33503
33504 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33505
33506         update-copyright: clean up code a little
33507         * build-aux/update-copyright: Append "_re" to the name of any
33508         variable holding a regular expression.
33509         Replace "old" and "new" with "stmt" in variable names.
33510         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
33511         handled correctly.
33512         Format code more consistently.
33513
33514 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33515
33516         update-copyright-tests: improve portability
33517         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
33518         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
33519
33520 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
33521
33522         update-copyright: support @copyright{} and &copy;
33523         * build-aux/update-copyright: Implement and document.
33524         * tests/test-update-copyright.sh: Test.
33525
33526 2009-08-04  Jim Meyering  <meyering@redhat.com>
33527
33528         update-copyright-tests: correctly test EOL=\r\n handling
33529         * tests/test-update-copyright.sh: Put \r at the end of some lines
33530         for the dos-eol tests.  Based on a patch by Joel E. Denny.
33531
33532         maint.mk: make update-copyright exclusion list more configurable
33533         * top/maint.mk (update-copyright): Default to excluding COPYING,
33534         but allow an override, in case someone does want to update that file.
33535
33536         maint.mk: don't update copyright date in COPYING
33537         * top/maint.mk (update-copyright): Exclude COPYING.
33538
33539         maint.mk: add a copyright-updating rule
33540         * top/maint.mk (update-copyright): New rule.
33541         Derived from coreutils/Makefile.am.
33542
33543         update-copyright: rename some variables
33544         * build-aux/update-copyright: Rename a few variables for clarity.
33545         Tweak syntax.  List Joel E. Denny as coauthor.
33546
33547 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
33548
33549         update-copyright: fix bug for 2-digit last year and add tests
33550         * build-aux/update-copyright: Fix bug.
33551         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
33552         specified.
33553         * modules/update-copyright-tests: New
33554         * tests/test-update-copyright.sh: New.
33555
33556 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
33557
33558         update-copyright: handle leading tabs in line prefix
33559         * build-aux/update-copyright: Count leading tabs as 8 spaces
33560         when computing margin.  This helps with the formatting of
33561         ChangeLogs, for example.
33562         Fix documentation a little.
33563
33564 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
33565
33566         update-copyright: support EOL=\r\n
33567         * build-aux/update-copyright: Implement that.
33568
33569 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
33570
33571         update-copyright: automatically format copyright statements
33572         * build-aux/update-copyright: Implement that.
33573         Also, be a little more predictable and safer by always failing
33574         when the full copyright format is not perfectly recognized as an
33575         unbroken whole.  Discussed at
33576         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
33577         Rewrite documentation.
33578
33579 2009-08-03  Bruno Haible  <bruno@clisp.org>
33580
33581         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
33582
33583 2009-08-02  Bruno Haible  <bruno@clisp.org>
33584
33585         Tests for module 'uname'.
33586         * modules/uname-tests: New file.
33587         * tests/test-uname.c: New file.
33588
33589         New module 'uname'.
33590         * lib/uname.c: New file.
33591         * m4/uname.m4: New file.
33592         * modules/uname: New file.
33593         * doc/posix-functions/uname.texi: Mention the new module.
33594
33595 2009-08-02  Bruno Haible  <bruno@clisp.org>
33596
33597         Tests for module 'sys_utsname'.
33598         * modules/sys_utsname-tests: New file.
33599         * tests/test-sys_utsname.c: New file.
33600
33601         New module 'sys_utsname'.
33602         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
33603         * m4/sys_utsname_h.m4: New file.
33604         * modules/sys_utsname: New file.
33605         * doc/posix-headers/sys_utsname.texi: Mention the new module.
33606
33607 2009-08-02  Bruno Haible  <bruno@clisp.org>
33608
33609         Implicitly initialize the sockets library.
33610         * lib/gethostname.c: Include sockets.h.
33611         (rpl_gethostname): Invoke gl_sockets_startup.
33612         * lib/socket.c: Include sockets.h.
33613         (rpl_socket): Invoke gl_sockets_startup.
33614         * modules/gethostname (Depends-on): Add sockets.
33615         * modules/socket (Depends-on): Likewise.
33616         * tests/test-poll.c: Don't include sockets.h.
33617         (main): Don't invoke gl_sockets_startup.
33618         * tests/test-select.c: Don't include sockets.h.
33619         (main): Don't invoke gl_sockets_startup.
33620
33621 2009-08-02  Bruno Haible  <bruno@clisp.org>
33622
33623         Allow multiple calls to gl_sockets_startup.
33624         * lib/sockets.c (initialized_sockets_version): New variable.
33625         (gl_sockets_startup): Do nothing if already called for this or a higher
33626         version.
33627         (gl_sockets_cleanup): Reset initialized_sockets_version.
33628
33629 2009-08-03  Simon Josefsson  <simon@josefsson.org>
33630
33631         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
33632         different project/version.
33633
33634 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
33635             Bruno Haible  <bruno@clisp.org>
33636
33637         Tests for module 'pipe-filter-gi'.
33638         * modules/pipe-filter-gi-tests: New file.
33639         * tests/test-pipe-filter-gi1.sh: New file.
33640         * tests/test-pipe-filter-gi1.c: New file.
33641         * tests/test-pipe-filter-gi2.sh: New file.
33642         * tests/test-pipe-filter-gi2-main.c: New file.
33643         * tests/test-pipe-filter-gi2-child.c: New file.
33644
33645         New module 'pipe-filter-gi'.
33646         * lib/pipe-filter-gi.c: New file.
33647         * modules/pipe-filter-gi: New file.
33648
33649 2009-08-02  Bruno Haible  <bruno@clisp.org>
33650             Paolo Bonzini  <bonzini@gnu.org>
33651
33652         Tests for module 'pipe-filter-ii'.
33653         * modules/pipe-filter-ii-tests: New file.
33654         * tests/test-pipe-filter-ii1.sh: New file.
33655         * tests/test-pipe-filter-ii1.c: New file.
33656         * tests/test-pipe-filter-ii2.sh: New file.
33657         * tests/test-pipe-filter-ii2-main.c: New file.
33658         * tests/test-pipe-filter-ii2-child.c: New file.
33659
33660         New module 'pipe-filter-ii'.
33661         * lib/pipe-filter.h: New file.
33662         * lib/pipe-filter-ii.c: New file.
33663         * lib/pipe-filter-aux.h: New file.
33664         * modules/pipe-filter-ii: New file.
33665
33666 2009-08-02  Simon Josefsson  <simon@josefsson.org>
33667
33668         * lib/gc-libgcrypt.c: Change copyright to FSF.
33669         * lib/gc-gnulib.c: Likewise.
33670
33671 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
33672
33673         * lib/gethostname.c: Include limits.h.
33674
33675 2009-08-02  Simon Josefsson  <simon@josefsson.org>
33676             Bruno Haible  <bruno@clisp.org>
33677
33678         Ensure HOST_NAME_MAX as part of the gethostname module.
33679         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
33680         define also HOST_NAME_MAX.
33681         * tests/test-gethostname.c: Include <limits.h>.
33682         (main): Check also HOST_NAME_MAX.
33683         * doc/posix-headers/limits.texi: Document the mingw problem.
33684
33685 2009-08-02  Bruno Haible  <bruno@clisp.org>
33686
33687         * lib/gethostname.c (gethostname): Fix handling of large len argument.
33688         Add comments.
33689
33690 2009-03-31  Simon Josefsson  <simon@josefsson.org>
33691
33692         * lib/gethostname.c: Add Windows wrapper.
33693         * m4/gethostname.m4: Look for gethostname in -lws2_32.
33694         * modules/gethostname: Depend on sys_socket & errno, for also
33695         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
33696         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
33697
33698 2009-07-31  Jim Meyering  <meyering@redhat.com>
33699
33700         getloadavg: fix symbol name in comment
33701         * lib/getloadavg.c: Correct a typo I introduced when adding
33702         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
33703         Matt Kraai spotted the problem.
33704
33705 2009-07-29  Matt Kraai  <mkraai@beckman.com>
33706
33707         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
33708         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
33709         code also if ! defined N_NAME_POINTER.
33710         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
33711         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
33712         but the n_name member is a 12-byte array.
33713
33714 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
33715
33716         update-copyright: generalize comment handling
33717         * build-aux/update-copyright: Handle copyright statements
33718         within more comment styles.
33719         Document usage.
33720         Report any file with an external copyright holder or parse failure.
33721
33722 2009-07-29  Jim Meyering  <meyering@redhat.com>
33723
33724         mktime: correct setting of REPLACE_MKTIME
33725         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
33726
33727         update-copyright: new module
33728         * modules/update-copyright: New file.
33729         * build-aux/update-copyright: New file.
33730         * MODULES.html.sh (maint+release support): Add update-copyright.
33731
33732 2009-07-27  Bruno Haible  <bruno@clisp.org>
33733
33734         Fix compilation error when <ctime> is used and mktime is replaced.
33735         * lib/time.in.h (mktime): New declaration.
33736         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
33737         REPLACE_MKTIME instead of defining mktime in config.h.
33738         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
33739         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
33740         Reported by Ross McFarland <rwmcfa1@neces.com>.
33741
33742 2009-07-27  Bruno Haible  <bruno@clisp.org>
33743
33744         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
33745         Reported by Matt Kraai <mkraai@beckman.com>.
33746
33747 2009-07-25  Jim Meyering  <meyering@redhat.com>
33748
33749         maint.mk: avoid warnings about missing files
33750         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
33751         diagnostic when .prev-version does not exist.
33752         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
33753         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
33754         nonexistent cfg.mk.
33755         Suggestions from Simon Josefsson.
33756
33757 2009-07-25  Bruno Haible  <bruno@clisp.org>
33758
33759         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
33760         defined as macros. Needed on QNX 6.4.1.
33761         Reported by Matt Kraai <mkraai@beckman.com>.
33762
33763 2009-07-23  Jim Meyering  <meyering@redhat.com>
33764
33765         maint.mk: invoke "make dist" with a working value of XZ_OPT
33766         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
33767
33768 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
33769
33770         Make fseeko.c compile on QNX.
33771         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
33772
33773 2009-07-22  Peter Simons  <simons@cryp.to>
33774
33775         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
33776         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
33777         * lib/md4.h: Likewise.
33778         * lib/md5.h: Likewise.
33779         * lib/sha1.h: Likewise.
33780         * lib/sha256.h: Likewise.
33781         * lib/sha512.h: Likewise.
33782
33783         tests-sha1: don't assign literal string to 'char *' variable
33784         * tests/test-sha1.c (main): Declare locals with "const" to match
33785         attributes of the right hand side.
33786
33787 2009-07-21  Eric Blake  <ebb9@byu.net>
33788
33789         dup2: fix more mingw problems
33790         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
33791         fd to itself.
33792         * doc/posix-functions/dup2.texi (dup2): Document the bug.
33793         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
33794         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
33795         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
33796         care of mingw bugs.
33797
33798 2009-07-21  Jim Meyering  <meyering@redhat.com>
33799
33800         vc-list-files: avoid failure when /bin/sh is dash
33801         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
33802         On some Debian based systems, /bin/sh is a symlink to dash, and running
33803         this command would omit the "/" following each 'tests' prefix:
33804           dash -x build-aux/vc-list-files -C . tests
33805         That is because bash and dash work differently:
33806           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
33807           bash ok
33808           dash odd
33809
33810 2009-07-21  Eric Blake  <ebb9@byu.net>
33811
33812         dup2-tests: test previous patch
33813         * modules/dup2-tests: New file.
33814         * tests/test-dup2.c: Likewise.
33815         * tests/test-open.c (main): Avoid unspecified behavior.
33816         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
33817         test.
33818
33819         dup2: work around mingw and cygwin 1.5 bug
33820         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
33821         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33822         * modules/unistd (Makefile.am): Substitute it.
33823         * lib/unistd.in.h (dup2): Declare the replacement.
33824         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
33825         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
33826         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
33827         * modules/execute (Depends-on): Add dup2.
33828         * modules/fseterr (Depends-on): Likewise.
33829         * modules/pipe (Depends-on): Likewise.
33830         * modules/posix_spawn-internal (Depends-on): Likewise.
33831
33832 2009-07-21  Bruno Haible  <bruno@clisp.org>
33833
33834         * modules/.gitattributes: New file.
33835
33836 2009-07-20  Bruno Haible  <bruno@clisp.org>
33837
33838         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
33839         (main): Use it.
33840
33841 2009-07-20  Eric Blake  <ebb9@byu.net>
33842
33843         test-pipe: make a bit more robust.
33844         * tests/test-pipe.c (myerr): Allow error messages regardless of
33845         what we do to stderr.
33846         (test_pipe): Rearrange to avoid deadlock.
33847         (child_main): Try a larger read, to ensure we avoided deadlock.
33848         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
33849         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
33850         if misused.
33851
33852 2009-07-19  Jim Meyering  <meyering@redhat.com>
33853
33854         fts: avoid false-positive cycle-detection
33855         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
33856         for each new command line argument.
33857
33858 2009-07-19  Bruno Haible  <bruno@clisp.org>
33859
33860         Fix build error on mingw with the modules sys_select and unistd.
33861         * modules/acl-tests (Depends-on): Add close.
33862         * modules/binary-io-tests (Depends-on): Likewise.
33863         * modules/closein-tests (Depends-on): Likewise.
33864         * modules/flock-tests (Depends-on): Likewise.
33865         * modules/fsync-tests (Depends-on): Likewise.
33866         * modules/lseek-tests (Depends-on): Likewise.
33867         * modules/pipe-tests (Depends-on): Likewise.
33868         * modules/posix_spawn-tests (Depends-on): Likewise.
33869         * modules/posix_spawnp-tests (Depends-on): Likewise.
33870         * modules/stat-time-tests (Depends-on): Likewise.
33871         * modules/yesno-tests (Depends-on): Likewise.
33872
33873 2009-07-19  Bruno Haible  <bruno@clisp.org>
33874
33875         Unify conditionals.
33876         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
33877         macros, not at the compiler macros.
33878         * lib/pipe.c: Likewise.
33879         * lib/execute.c: Likewise.
33880         * lib/spawni.c: Likewise.
33881
33882 2009-07-19  Bruno Haible  <bruno@clisp.org>
33883
33884         Fix handling of closed stdin/stdout/stderr on mingw.
33885         * lib/w32spawn.h: Include unistd.h.
33886         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
33887         file descriptor with O_NOINHERIT flag.
33888         (fd_safer_noinherit): New function, based on fd-safer.c.
33889         (dup_safer_noinherit): New function, based on dup-safer.c.
33890         (undup_safer_noinherit): New function.
33891         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
33892         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
33893         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
33894         instead of fd_safer.
33895         * tests/test-pipe.c: Include <windows.h>.
33896         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
33897         result.
33898
33899         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
33900         from main.
33901         (test_pipe): Pass an extra argument for disambiguation.
33902         (main): Invoke parent_main or child_main.
33903
33904         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
33905         consistently.
33906
33907 2009-07-18  Eric Blake  <ebb9@byu.net>
33908
33909         test-pipe: fix mingw build
33910         * tests/test-pipe.c (main): Avoid fcntl on mingw.
33911
33912 2009-07-18  Bruno Haible  <bruno@clisp.org>
33913
33914         * modules/pipe-tests (Makefile.am): Fix typo.
33915
33916 2009-07-18  Eric Blake  <ebb9@byu.net>
33917
33918         error: fix mingw build
33919         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
33920         Reported by Bruno Haible.
33921
33922         error: avoid undefined use of stdout
33923         * lib/error.c (error, error_at_line): Check that fd 1 is open
33924         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
33925         is handling faults and the close_stdout module wants to report the
33926         detection of closed stdout as an error.
33927
33928 2009-07-17  Eric Blake  <ebb9@byu.net>
33929
33930         pipe: be robust in face of closed fds
33931         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
33932         should cause child to misbehave.
33933         * modules/pipe-tests: New module.
33934         * tests/test-pipe.c: New file.
33935         * tests/test-pipe.sh: New file.
33936         Reported by Akim Demaille.
33937
33938 2009-07-14  Bruno Haible  <bruno@clisp.org>
33939
33940         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
33941         Reported by anonymous kc.
33942
33943 2009-07-07  Jim Meyering  <meyering@redhat.com>
33944
33945         maint.mk: don't look for translatable strings in *.m4 or *.mk
33946         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
33947         when searching for translatable strings.
33948
33949 2009-07-05  Jim Meyering  <meyering@redhat.com>
33950
33951         remove superfluous parentheses in STREQ definition
33952         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
33953         * lib/getugroups.c (STREQ): Likewise.
33954         * lib/fnmatch.c (STREQ): Likewise.
33955         Spotted by Bruno Haible.
33956
33957 2009-07-04  Jim Meyering  <meyering@redhat.com>
33958
33959         argv-iter: new module
33960         * MODULES.html.sh: Add argv-iter.
33961         * lib/argv-iter.c, lib/argv-iter.h: New files.
33962         * modules/argv-iter: New file.
33963         * modules/argv-iter-tests: New file.
33964         * tests/test-argv-iter.c: Test it.
33965
33966 2009-07-04  Bruno Haible  <bruno@clisp.org>
33967
33968         Fix assertion.
33969         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
33970         contains more exact copies of a given entry than file2, leave the extra
33971         copies unpaired rather than aborting.
33972         Reported by Eric Blake.
33973
33974 2009-07-02  Bruno Haible  <bruno@clisp.org>
33975
33976         Speedup git-merge-changelog for git cherry-pick.
33977         * lib/git-merge-changelog.c (struct entries_mapping): New type.
33978         (entries_mapping_get): New function, extracted from compute_mapping.
33979         (entries_mapping_reverse_get): New function.
33980         (compute_mapping): Add a 'full' argument. Return the result in a
33981         'struct entries_mapping'.
33982         (main): Update. Access the mappings through entries_mapping_get.
33983         Reported by Eric Blake.
33984
33985 2009-07-02  Bruno Haible  <bruno@clisp.org>
33986
33987         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
33988         best_i.
33989
33990 2009-07-02  Bruno Haible  <bruno@clisp.org>
33991
33992         Speed up approximate search for matching ChangeLog entries.
33993         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
33994         argument. Call fstrcmp_bounded instead of fstrcmp.
33995         (compute_mapping, try_split_merged_entry, main): Update callers.
33996
33997 2009-07-02  Bruno Haible  <bruno@clisp.org>
33998
33999         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
34000
34001 2009-06-30  Bruno Haible  <bruno@clisp.org>
34002
34003         Reduce the number of uc_is_cased calls.
34004         * lib/unicase.h (casing_suffix_context_t): Add
34005         'first_char_except_ignorable' field.
34006         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
34007         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
34008         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
34009         Update initializer.
34010         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
34011         case-ignorable characters.
34012         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
34013         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
34014         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
34015         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
34016         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
34017
34018 2009-06-30  Bruno Haible  <bruno@clisp.org>
34019
34020         Tests for module 'unicase/ignorable'.
34021         * modules/unicase/ignorable-tests: New file.
34022         * tests/unicase/test-ignorable.c: New file, generated by
34023         gen-uni-tables.
34024
34025         Tests for module 'unicase/cased'.
34026         * modules/unicase/cased-tests: New file.
34027         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
34028         * tests/unicase/test-predicate-part1.h: New file, derived from
34029         tests/unictype/test-predicate-part1.h.
34030         * tests/unicase/test-predicate-part2.h: New file, same as
34031         tests/unictype/test-predicate-part2.h.
34032
34033         Fix evaluation of "Before C" condition of FINAL_SIGMA.
34034         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
34035         (output_casing_properties): New function.
34036         (main): Call it.
34037         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
34038         * lib/unicase/cased.c: Include unictype/bitmap.h.
34039         (uc_is_cased): Define through a bitmap lookup.
34040         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
34041         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
34042         (uc_is_case_ignorable): Define through a bitmap lookup.
34043         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
34044         lib/unictype/bitmap.h.
34045         (Depends-on): Add inline. Clean up.
34046         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
34047         lib/unictype/bitmap.h.
34048         (Depends-on): Add inline. Clean up.
34049         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
34050         recognition.
34051         * tests/unicase/test-u16-tolower.c (main): Likewise.
34052         * tests/unicase/test-u32-tolower.c (main): Likewise.
34053
34054 2009-06-30  Bruno Haible  <bruno@clisp.org>
34055
34056         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
34057         * lib/unicase/u16-casemap.c: Likewise.
34058         * lib/unicase/u32-casemap.c: Likewise.
34059
34060 2009-06-29  Bruno Haible  <bruno@clisp.org>
34061
34062         Define u32_casefold as a wrapper around u32_ct_casefold.
34063         * lib/unicase/u32-casefold.c: Update.
34064         * modules/unicase/u32-casefold (Depends-on): Add
34065         unicase/u32-ct-casefold, unicase/empty-prefix-context,
34066         unicase/empty-suffix-context. Clean up.
34067
34068         Define u16_casefold as a wrapper around u16_ct_casefold.
34069         * lib/unicase/u16-casefold.c: Update.
34070         * modules/unicase/u16-casefold (Depends-on): Add
34071         unicase/u16-ct-casefold, unicase/empty-prefix-context,
34072         unicase/empty-suffix-context. Clean up.
34073
34074         Define u8_casefold as a wrapper around u8_ct_casefold.
34075         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
34076         * lib/unicase/u8-casefold.c: Update.
34077         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
34078         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
34079
34080         Define u32_totitle as a wrapper around u32_ct_totitle.
34081         * lib/unicase/u32-totitle.c: Update.
34082         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
34083         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
34084
34085         Define u16_totitle as a wrapper around u16_ct_totitle.
34086         * lib/unicase/u16-totitle.c: Update.
34087         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
34088         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
34089
34090         Define u8_totitle as a wrapper around u8_ct_totitle.
34091         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
34092         functions.
34093         (FUNC): Delegate to U_CT_TOTITLE.
34094         * lib/unicase/u8-totitle.c: Update.
34095         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
34096         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
34097
34098         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
34099         invocation.
34100         * modules/unicase/u32-tolower (Depends-on): Add
34101         unicase/empty-prefix-context, unicase/empty-suffix-context.
34102
34103         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
34104         invocation.
34105         * modules/unicase/u16-tolower (Depends-on): Add
34106         unicase/empty-prefix-context, unicase/empty-suffix-context.
34107
34108         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
34109         * modules/unicase/u8-tolower (Depends-on): Add
34110         unicase/empty-prefix-context, unicase/empty-suffix-context.
34111
34112         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
34113         invocation.
34114         * modules/unicase/u32-toupper (Depends-on): Add
34115         unicase/empty-prefix-context, unicase/empty-suffix-context.
34116
34117         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
34118         invocation.
34119         * modules/unicase/u16-toupper (Depends-on): Add
34120         unicase/empty-prefix-context, unicase/empty-suffix-context.
34121
34122         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
34123         * modules/unicase/u8-toupper (Depends-on): Add
34124         unicase/empty-prefix-context, unicase/empty-suffix-context.
34125
34126         New module 'unicase/u32-ct-casefold'.
34127         * lib/unicase/u32-ct-casefold.c: New file.
34128         * modules/unicase/u32-ct-casefold: New file.
34129
34130         New module 'unicase/u16-ct-casefold'.
34131         * lib/unicase/u16-ct-casefold.c: New file.
34132         * modules/unicase/u16-ct-casefold: New file.
34133
34134         New module 'unicase/u8-ct-casefold'.
34135         * lib/unicase/u8-ct-casefold.c: New file.
34136         * lib/unicase/u-ct-casefold.h: New file, derived from
34137         lib/unicase/u-casefold.h.
34138         * modules/unicase/u8-ct-casefold: New file.
34139
34140         New module 'unicase/u32-ct-totitle'.
34141         * lib/unicase/u32-ct-totitle.c: New file.
34142         * modules/unicase/u32-ct-totitle: New file.
34143
34144         New module 'unicase/u16-ct-totitle'.
34145         * lib/unicase/u16-ct-totitle.c: New file.
34146         * modules/unicase/u16-ct-totitle: New file.
34147
34148         New module 'unicase/u8-ct-totitle'.
34149         * lib/unicase/u8-ct-totitle.c: New file.
34150         * lib/unicase/u-ct-totitle.h: New file, derived from
34151         lib/unicase/u-totitle.h.
34152         * modules/unicase/u8-ct-totitle: New file.
34153
34154         New module 'unicase/u32-ct-tolower'.
34155         * lib/unicase/u32-ct-tolower.c: New file.
34156         * modules/unicase/u32-ct-tolower: New file.
34157
34158         New module 'unicase/u16-ct-tolower'.
34159         * lib/unicase/u16-ct-tolower.c: New file.
34160         * modules/unicase/u16-ct-tolower: New file.
34161
34162         New module 'unicase/u8-ct-tolower'.
34163         * lib/unicase/u8-ct-tolower.c: New file.
34164         * modules/unicase/u8-ct-tolower: New file.
34165
34166         New module 'unicase/u32-ct-toupper'.
34167         * lib/unicase/u32-ct-toupper.c: New file.
34168         * modules/unicase/u32-ct-toupper: New file.
34169
34170         New module 'unicase/u16-ct-toupper'.
34171         * lib/unicase/u16-ct-toupper.c: New file.
34172         * modules/unicase/u16-ct-toupper: New file.
34173
34174         New module 'unicase/u8-ct-toupper'.
34175         * lib/unicase/u8-ct-toupper.c: New file.
34176         * modules/unicase/u8-ct-toupper: New file.
34177
34178         Add context arguments to u*_casemap functions.
34179         * lib/unicase/unicasemap.h: Include unicase.h.
34180         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
34181         suffix_context arguments.
34182         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
34183         functions.
34184         (FUNC): Add prefix_context and suffix_context arguments. Use
34185         uc_is_cased and uc_is_case_ignorable.
34186         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
34187         * lib/unicase/u16-casemap.c: Likewise.
34188         * lib/unicase/u32-casemap.c: Likewise.
34189         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
34190         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
34191         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
34192         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
34193         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
34194         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
34195
34196         New module 'unicase/u32-suffix-context'.
34197         * lib/unicase/u32-suffix-context.c: New file.
34198         * modules/unicase/u32-suffix-context: New file.
34199
34200         New module 'unicase/u16-suffix-context'.
34201         * lib/unicase/u16-suffix-context.c: New file.
34202         * modules/unicase/u16-suffix-context: New file.
34203
34204         New module 'unicase/u8-suffix-context'.
34205         * lib/unicase/u8-suffix-context.c: New file.
34206         * lib/unicase/u-suffix-context.h: New file.
34207         * modules/unicase/u8-suffix-context: New file.
34208
34209         New module 'unicase/empty-suffix-context'.
34210         * lib/unicase/empty-suffix-context.c: New file.
34211         * modules/unicase/empty-suffix-context: New file.
34212
34213         New module 'unicase/u32-prefix-context'.
34214         * lib/unicase/u32-prefix-context.c: New file.
34215         * modules/unicase/u32-prefix-context: New file.
34216
34217         New module 'unicase/u16-prefix-context'.
34218         * lib/unicase/u16-prefix-context.c: New file.
34219         * modules/unicase/u16-prefix-context: New file.
34220
34221         New module 'unicase/u8-prefix-context'.
34222         * lib/unicase/u8-prefix-context.c: New file.
34223         * lib/unicase/u-prefix-context.h: New file.
34224         * lib/unicase/context.h: New file.
34225         * modules/unicase/u8-prefix-context: New file.
34226
34227         New module 'unicase/empty-prefix-context'.
34228         * lib/unicase/empty-prefix-context.c: New file.
34229         * modules/unicase/empty-prefix-context: New file.
34230
34231         New module 'unicase/ignorable'.
34232         * lib/unicase/ignorable.c: New file.
34233         * modules/unicase/ignorable: New file.
34234
34235         New module 'unicase/cased'.
34236         * lib/unicase/caseprop.h: New file.
34237         * lib/unicase/cased.c: New file.
34238         * modules/unicase/cased: New file.
34239
34240         New functions for case mapping of substrings.
34241         * lib/unicase.h (casing_prefix_context_t): New type.
34242         (unicase_empty_prefix_context): New variable.
34243         (u8_casing_prefix_context, u16_casing_prefix_context,
34244         u32_casing_prefix_context, u8_casing_prefixes_context,
34245         u16_casing_prefixes_context, u32_casing_prefixes_context): New
34246         declarations.
34247         (casing_suffix_context_t): New type.
34248         (unicase_empty_suffix_context): New variable.
34249         (u8_casing_suffix_context, u16_casing_suffix_context,
34250         u32_casing_suffix_context, u8_casing_suffixes_context,
34251         u16_casing_suffixes_context, u32_casing_suffixes_context,
34252         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
34253         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
34254         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
34255         declarations.
34256
34257 2009-06-28  Jim Meyering  <meyering@redhat.com>
34258
34259         boostrap: indent only with spaces
34260         * build-aux/bootstrap: Indent only with spaces, never TABs.
34261
34262         bootstrap: split long lines
34263         * build-aux/bootstrap: Keep line length < 80.
34264
34265         bootstrap: sync from coreutils
34266         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
34267         just as autoreconf does.  Verify a list of prerequisite
34268         package-name,version-number pairs if defined in bootstrap.conf.
34269         Refer to README-prereq, if prerequisites are not satisfied.
34270
34271 2009-06-27  Eric Blake  <ebb9@byu.net>
34272
34273         tests: add test for bogus NULL definition
34274         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
34275         * tests/test-stdlib.c: Likewise.
34276         * tests/test-string.c: Likewise.
34277         * tests/test-locale.c: Likewise.
34278         * tests/test-unistd.c: Likewise.
34279         * modules/stdio-tests (Depends-on): Add verify.
34280         * modules/stdlib-tests (Depends-on): Likewise.
34281         * modules/string-tests (Depends-on): Likewise.
34282         * modules/locale-tests (Depends-on): Likewise.
34283         * modules/unistd-tests (Depends-on): Likewise.
34284
34285 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
34286
34287         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
34288         self-explaining comment.
34289         * m4/selinux-selinux-h: Update serial.
34290         (gl_LIBSELINUX): New macro, adding a warning for missing development
34291         packages to code extracted from...
34292         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
34293         Add warning for missing development packages here, too.
34294
34295 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
34296
34297         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
34298
34299 2009-06-25  Eric Blake  <ebb9@byu.net>
34300
34301         version-etc: fix regression
34302         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
34303         gcc.
34304         (version_etc): Use it, to catch bugs with trailing NULL.
34305         * lib/version-etc.c (version_etc_arn): Delete unused argument.
34306         (version_etc_va): Fix logic bug.
34307         * modules/version-etc-tests: Add test.
34308         * tests/test-version-etc.c: New file.
34309         * tests/test-version-etc.sh: Likewise.
34310
34311 2009-06-25  Sam Steingold  <sds@gnu.org>
34312
34313         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
34314         mbtowc declaration.
34315
34316 2009-06-25  Eric Blake  <ebb9@byu.net>
34317
34318         fpurge: migrate into <stdio.h>
34319         * lib/fpurge.h: Delete...
34320         * lib/stdio.in.h (fpurge): ...and declare here, instead.
34321         * lib/fpurge.c (fpurge): Change declaring header.
34322         * modules/fpurge (Files): Drop deleted file.
34323         (Depends-on): Add stdio.
34324         (configure.ac): Set witness.
34325         * modules/stdio (Makefile.am): Support fpurge macros.
34326         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
34327         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
34328         * lib/fflush.c: Update client.
34329         * tests/test-fpurge.c: Likewise.
34330         * NEWS: Mention the change.
34331
34332 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
34333
34334         * lib/argp-version-etc.c (program_authors): Add const
34335         qualifier.
34336         * lib/version-etc.c: Fix typos in the comments.
34337         * modules/argp-version-etc: Depends on version-etc.
34338
34339 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
34340
34341         argp-version-etc: new module.
34342
34343         * lib/argp-version-etc.c: New file.
34344         * lib/argp-version-etc.h: New file.
34345         * modules/argp-version-etc: New file.
34346         * modules/argp-version-etc-tests: New file.
34347         * tests/test-argp-version-etc.c: New test.
34348         * tests/test-argp-version-etc-1.sh: New test.
34349
34350 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
34351
34352         Provide additional interfaces and documentation for version-etc
34353         module.
34354
34355         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
34356         interfaces.
34357         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
34358         prototypes.
34359
34360 2009-06-24  Bruno Haible  <bruno@clisp.org>
34361
34362         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
34363         HAVE_LIB${NAME} macro.
34364         Reported by Sam Steingold <sds@gnu.org>.
34365
34366 2009-06-23  Simon Josefsson  <simon@josefsson.org>
34367
34368         * modules/hash-tests (test_hash_LDADD): Link to libintl when
34369         needed.
34370
34371 2009-06-21  Bruno Haible  <bruno@clisp.org>
34372
34373         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
34374         work.
34375         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
34376         together with LIB${NAME}, LTLIB${NAME}.
34377         Reported by Sam Steingold <sds@gnu.org>.
34378
34379 2009-06-20  Jim Meyering  <meyering@redhat.com>
34380
34381         tests: make sc_require_test_exit_idiom more generic
34382         * top/maint.mk (Exit_witness_file): New overridable variable.
34383         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
34384         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
34385
34386 2009-06-19  Jim Meyering  <meyering@redhat.com>
34387
34388         hash: reverse order of src/dst parameters in an internal interface
34389         * lib/hash.c (transfer_entries): Reverse order of parameters to
34390         put DST before SRC.  Adjust callers.
34391
34392         tests: test-hash: avoid wholesale duplication
34393         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
34394         Instead, use a loop and add a single conditional.
34395
34396         tests: test-hash: allow seed selection via a command line argument
34397         * tests/test-hash.c (get_seed): New function.
34398         (main): Use it.
34399
34400 2009-06-19  Eric Blake  <ebb9@byu.net>
34401
34402         hash: avoid memory leak on allocation failure
34403         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
34404         failure.  Factor repeated algorithm...
34405         (transfer_entries): ...into new helper routine.
34406         (hash_delete): React to hash_rehash return value.
34407
34408         hash: reduce memory pressure in hash_rehash no-op case
34409         * lib/hash.c (next_prime): Avoid overflow.
34410         (hash_initialize): Factor bucket size computation...
34411         (compute_bucket_size): ...into new helper function.
34412         (hash_rehash): Use new function and open coding to reduce memory
34413         pressure, and avoid a memory leak in USE_OBSTACK code.
34414         Reported by Jim Meyering.
34415
34416 2009-06-18  Eric Blake  <ebb9@byu.net>
34417
34418         hash: make rotation more obvious
34419         * modules/hash (Depends-on): Add bitrotate and stdint.
34420         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
34421         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
34422         (SIZE_MAX): Rely on headers for definition.
34423         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
34424         (raw_hasher): Use rotr_sz.
34425         Suggested by Jim Meyering.
34426
34427         hash: fix memory leak in last patch
34428         * lib/hash.c (hash_rehash): Avoid memory leak.
34429
34430         hash: avoid no-op rehashing
34431         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
34432
34433         hash: provide default callback functions
34434         * lib/hash.c (raw_hasher, raw_comparator): New functions.
34435         (hash_initialize): Use them as defaults.
34436         * tests/test-hash.c (main): Test this.
34437
34438         hash: minor optimization
34439         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
34440         when possible.
34441         (hash_initialize): Document this promise.
34442         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
34443         * tests/test-hash.c (hash_compare_strings): Test this.
34444
34445 2009-06-18  Bruno Haible  <bruno@clisp.org>
34446
34447         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
34448         going to be replaced anyway.
34449
34450 2009-06-18  Bruno Haible  <bruno@clisp.org>
34451
34452         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
34453         in one place.
34454         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
34455         be replaced anyway.
34456
34457 2009-06-18  Eric Blake  <ebb9@byu.net>
34458
34459         hash: check for resize before insertion
34460         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
34461         threshold before insertion, so that a pathological hash_rehash
34462         that fills every bucket can still trigger another rehash.
34463
34464 2009-06-18  Jim Meyering  <meyering@redhat.com>
34465
34466         hash-tests: add a loop around the small tests
34467         * tests/test-hash.c (main): Repeat small tests with selected
34468         small initial table sizes.
34469
34470 2009-06-17  Eric Blake  <ebb9@byu.net>
34471
34472         hash: minor cleanups
34473         * lib/hash.h (hash_entry): Make opaque, by moving...
34474         * lib/hash.c (hash_entry): ...here.
34475         (hash_insert): Clarify restrictions on what can be inserted.
34476         (hash_get_next): Clarify when it is safe to remove an element
34477         during traversal.
34478         (check_tuning): Skip verification when tuning is known safe.
34479         (hash_initialize): Clarify restrictions on tuning.
34480
34481 2009-06-17  Jim Meyering  <jim@meyering.net>
34482         and Eric Blake  <ebb9@byu.net>
34483
34484         hash-tests: new module
34485         * modules/hash-tests: New file.
34486         * tests/test-hash.c: New file.
34487
34488 2009-06-17  Eric Blake  <ebb9@byu.net>
34489
34490         strstr-simple: document new module
34491         * MODULES.html.sh: Document new module.
34492
34493         strstr, strcasestr: replace on platforms with broken memchr
34494         * modules/strstr: Split into...
34495         * modules/strstr-simple: ...new module that does not care about
34496         performance, but does care about glibc bug.
34497         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
34498         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
34499         if platform memchr is broken, per Debian bug 521737.
34500         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
34501         memchr.
34502         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
34503         * doc/posix-functions/strstr.texi (strstr): Document the fix.
34504         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
34505         * modules/mountlist (Depends-on): Add strstr-simple.
34506         * modules/gen-uni-tables (Depends-on): Likewise.
34507         * modules/argz (Depends-on): Add strstr.
34508
34509 2009-06-17  Bruno Haible  <bruno@clisp.org>
34510
34511         * modules/posix_spawn-internal (Depends-on): Add errno.
34512
34513 2009-06-17  Bruno Haible  <bruno@clisp.org>
34514
34515         Define missing ESTALE on Interix 3.5.
34516         * lib/errno.in.h (ESTALE): Assign a value if missing.
34517         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
34518         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
34519         missing.
34520         * doc/posix-headers/errno.texi: Mention the Interix bug.
34521         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
34522
34523 2009-06-15  Eric Blake  <ebb9@byu.net>
34524
34525         memchr, memchr2: add valgrind exception
34526         * lib/memchr.valgrind: New file.
34527         * lib/memchr2.valgrind: New file.
34528         * modules/memchr (Files): Distribute valgrind file.
34529         * modules/memchr2 (Files): Likewise.
34530
34531         docs: memchr is no longer obsolete
34532         * MODULES.html.sh: Move memchr from obsolete to string.h section.
34533         * lib/string.in.h (memchr): Simplify logic.
34534
34535 2009-06-14  Jim Meyering  <meyering@redhat.com>
34536
34537         link-follow: fix the "checking..." message to not mention trailing slash
34538         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
34539         never considered trailing slashes.
34540
34541 2009-06-14  Bruno Haible  <bruno@clisp.org>
34542
34543         * m4/memchr.m4: Mention also the bug on IA-64.
34544         * doc/posix-functions/memchr.texi: Likewise.
34545
34546 2009-06-12  Eric Blake  <ebb9@byu.net>
34547
34548         memchr: detect broken x86_64 and alpha implementations
34549         * modules/memchr-tests (Depends-on): Move mmap detection...
34550         * modules/memchr (Depends-on): ...here.
34551         (configure.ac): Set indicator.
34552         * lib/string.in.h (memchr): Declare replacement.
34553         * modules/string (Makefile.am): Trigger replacement.
34554         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
34555         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
34556         bugs.
34557         * doc/posix-functions/memchr.texi (memchr): Document the bug.
34558         * modules/getpagesize (License): Relax license.
34559
34560 2009-06-11  Bruno Haible  <bruno@clisp.org>
34561
34562         * lib/idpriv.h: Add more references.
34563
34564 2009-06-08  Bruno Haible  <bruno@clisp.org>
34565
34566         Tests for module 'idpriv-droptemp'.
34567         * modules/idpriv-droptemp-tests: New file.
34568         * tests/test-idpriv-droptemp.sh: New file.
34569         * tests/test-idpriv-droptemp.su.sh: New file.
34570         * tests/test-idpriv-droptemp.c: New file.
34571
34572         New module 'idpriv-droptemp'.
34573         * lib/idpriv-droptemp.c: New file.
34574         * modules/idpriv-droptemp: New file.
34575
34576 2009-06-08  Bruno Haible  <bruno@clisp.org>
34577
34578         Tests for module 'idpriv-drop'.
34579         * modules/idpriv-drop-tests: New file.
34580         * tests/test-idpriv-drop.sh: New file.
34581         * tests/test-idpriv-drop.su.sh: New file.
34582         * tests/test-idpriv-drop.c: New file.
34583
34584         New module 'idpriv-drop'.
34585         * lib/idpriv.h: New file.
34586         * lib-idpriv-drop.c: New file.
34587         * m4/idpriv.m4: New file.
34588         * modules/idpriv-drop: New file.
34589
34590 2009-06-08  Bruno Haible  <bruno@clisp.org>
34591
34592         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
34593         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
34594         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
34595         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
34596         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
34597         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
34598         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
34599
34600 2009-06-08  Eric Blake  <ebb9@byu.net>
34601
34602         test-strstr: use memory fence, when possible
34603         * tests/test-strstr.c (main): Use memory fence, in order to be
34604         more likely to trigger Debian bug 521737.
34605         * modules/strstr-tests (Files): Pull in additional files.
34606
34607         memchr: no longer obsolete, for wider field testing
34608         * modules/memchr (Status, Notice): Delete, this module is no
34609         longer obsolete.
34610         * modules/vasnprintf (Depends-on): Add memchr.
34611
34612 2009-06-07  Jim Meyering  <meyering@redhat.com>
34613
34614         hash: declare some functions with the warn_unused_result attribute
34615         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
34616
34617 2009-06-07  Bruno Haible  <bruno@clisp.org>
34618
34619         * tests/test-alignof.c: Don't test int64_t if it does not exist.
34620         Reported by Eric Blake.
34621
34622 2009-06-06  Eric Blake  <ebb9@byu.net>
34623
34624         test-alignof: fix typo with long double
34625         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
34626         compiler error.
34627
34628 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
34629
34630         Escape non-texinfo { and }s.
34631         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
34632         markup error.
34633
34634 2009-06-04  Jim Meyering  <meyering@redhat.com>
34635
34636         gitlog-to-changelog: don't infloop on an empty commit log
34637         * build-aux/gitlog-to-changelog: Warn about an empty log message.
34638         Reported by Boris Petersen <transacid@centerim.org>.
34639
34640 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
34641
34642         version-etc: extend for packagers
34643         Add three new configure options, intended for packagers:
34644           --with-packager="packager name"
34645           --with-packager-version="packager-specific version"
34646           --with-packager-bug-reports="packager bug reporting"
34647         An example with coreutils:
34648           $ ./configure \
34649             --with-packager=Gentoo \
34650             --with-packager-bug-report=http://bugs.gentoo.org/ \
34651             --with-packager-version="patchset 1.6"
34652           $ ./src/ls --version | head -n2
34653           ls (GNU coreutils) 7.1-dirty
34654           Packaged by Gentoo (patchset 1.6)
34655         Note that the bug reporting info via --help doesn't show up because
34656         coreutils uses its own custom emit_bug_reporting_address() implementation
34657         in src/system.h.  If it didn't, it'd look like:
34658           $ ./src/ls --help | tail -n4
34659           Report bugs to <bug-coreutils@gnu.org>.
34660           Report Gentoo bugs to <http://bugs.gentoo.org/>.
34661           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
34662           General help using GNU software: <http://www.gnu.org/gethelp/>.
34663         * lib/version-etc.c: Print new information, if provided.
34664         * m4/version-etc.m4: New file.
34665         * modules/version-etc (Files): Add m4/version-etc.m4.
34666         (configure.ac): Add gl_VERSION_ETC.
34667
34668 2009-05-31  Bruno Haible  <bruno@clisp.org>
34669
34670         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
34671         and 'int64_t'.
34672         * modules/alignof-tests (Dependencies): Add stdint.
34673         Reported by Eric Blake.
34674
34675 2009-05-31  Bruno Haible  <bruno@clisp.org>
34676
34677         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
34678         restriction due to compiler bugs.
34679         Reported by Eric Blake.
34680
34681 2009-05-31  Simon Josefsson  <simon@josefsson.org>
34682             Bruno Haible  <bruno@clisp.org>
34683
34684         Fix test-alignof failure.
34685         * lib/alignof.h (alignof_slot): New macro.
34686         (alignof_type): New macro, with the same semantics as the previous
34687         'alignof'.
34688         (alignof): Alias to alignof_slot.
34689         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
34690         check that the results are usable as constant expressions.
34691
34692 2009-05-31  Bruno Haible  <bruno@clisp.org>
34693
34694         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
34695         * tests/test-memchr.c (main): Check that memchr does not read past the
34696         first occurrence of the byte.
34697         * tests/test-strstr.c (main): Update comment.
34698         Suggested by Eric Blake.
34699
34700 2009-05-30  Bruno Haible  <bruno@clisp.org>
34701
34702         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
34703         detail how to use dumpbin.
34704         Reported by David Byron <dbyron@dbyron.com>.
34705
34706 2009-06-02  Simon Josefsson  <simon@josefsson.org>
34707
34708         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
34709
34710 2009-06-02  Simon Josefsson  <simon@josefsson.org>
34711
34712         * m4/manywarnings.m4: Add GCC 4.4 warnings.
34713
34714 2009-05-28  Bruno Haible  <bruno@clisp.org>
34715
34716         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
34717         build-aux/ files.
34718
34719 2009-05-28  Simon Josefsson  <simon@josefsson.org>
34720
34721         * gnulib-tool (func_import): Transform license on build-aux/ files too.
34722
34723 2009-05-27  Simon Josefsson  <simon@josefsson.org>
34724
34725         * gnulib-tool (sed_transform_main_lib_file)
34726         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
34727         regexps.
34728
34729 2009-05-26  Simon Josefsson  <simon@josefsson.org>
34730
34731         * tests/test-strstr.c: Add another self-test.
34732         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
34733         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
34734
34735 2009-05-23  Bruno Haible  <bruno@clisp.org>
34736
34737         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
34738         change.
34739
34740 2009-05-21  Bruno Haible  <bruno@clisp.org>
34741
34742         Simplify use of mode_t varargs.
34743         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
34744         uses 'mode_t' or 'int'.
34745         * lib/openat.c (openat): Likewise.
34746         * lib/open-safer.c (open_safer): Likewise.
34747         * m4/mode_t.m4: New file.
34748         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
34749         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
34750         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
34751         * modules/open (Files): Add m4/mode_t.m4.
34752         * modules/openat (Files): Likewise.
34753         * modules/fcntl-safer (Files): Likewise.
34754         Suggested by Eric Blake.
34755
34756 2009-05-21  Pádraig Brady  <P@draigbrady.com>
34757
34758         * doc/glibc-functions/fallocate.texi: New file.
34759         * doc/gnulib.texi: Include it.
34760
34761 2009-05-21  Eric Blake  <ebb9@byu.net>
34762             Bruno Haible  <bruno@clisp.org>
34763
34764         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
34765         invocations.
34766         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
34767
34768 2009-05-21  Eric Blake  <ebb9@byu.net>
34769             Bruno Haible  <bruno@clisp.org>
34770
34771         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
34772         include_next. Fix of 2008-11-20 commit.
34773         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
34774         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
34775         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
34776         NEXT_MATH_H.
34777         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
34778         instead of NEXT_MATH_H.
34779
34780 2009-05-21  Bruno Haible  <bruno@clisp.org>
34781
34782         Avoid redefinition warnings for SIZE_MAX.
34783         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
34784         Reported by Simon Josefsson.
34785
34786 2009-05-21  Bruno Haible  <bruno@clisp.org>
34787
34788         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
34789         AC_CACHE_VAL.
34790
34791 2009-05-20  Bruno Haible  <bruno@clisp.org>
34792
34793         Make zeroptr.h work on mingw.
34794         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
34795         mprotect.
34796         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
34797         * modules/memchr2-tests (configure.ac): Likewise.
34798         * modules/memcmp-tests (configure.ac): Likewise.
34799         * modules/memmem-tests (configure.ac): Likewise.
34800         * modules/memrchr-tests (configure.ac): Likewise.
34801         Reported by Simon Josefsson.
34802
34803 2009-05-20  Simon Josefsson  <simon@josefsson.org>
34804
34805         * tests/test-glob.c: Include string.h for strcmp prototype.
34806
34807 2009-05-20  Simon Josefsson  <simon@josefsson.org>
34808
34809         * modules/getdelim (Depends-on): Add explicit stdint, although it
34810         was implicitly already pulled in via realloc-posix.
34811         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
34812
34813 2009-05-20  Simon Josefsson  <simon@josefsson.org>
34814
34815         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
34816         G. Christensen" <tgc@jupiterrise.com>.
34817         * m4/sys_socket_h.m4: Check for sa_family_t.
34818         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
34819         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
34820         * tests/test-sys_socket.c: Check that sa_family_t works.
34821
34822 2009-05-18  Eric Blake  <ebb9@byu.net>
34823
34824         maint.mk: allow gnulib_dir in VPATH build
34825         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
34826
34827 2009-05-15  Jim Meyering  <meyering@redhat.com>
34828
34829         maint.mk: Give gnulib_dir a default definition.
34830         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
34831         Thus, most packages no longer need to specify this variable in cfg.mk
34832
34833 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
34834
34835         rename.m4: fix typos that would make non-mingw cross-configure fail
34836         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
34837
34838 2009-05-13  Eric Blake  <ebb9@byu.net>
34839
34840         mmap-anon: avoid out-of-order autoconf expansion
34841         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
34842         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
34843         * modules/memchr-tests (Depends-on): Add extensions.
34844         * modules/memchr2-tests (Depends-on): Add extensions.
34845         * modules/memcmp-tests (Depends-on): Add extensions.
34846         * modules/memmem-tests (Depends-on): Add extensions.
34847         * modules/memrchr-tests (Depends-on): Add extensions.
34848
34849 2009-05-13  Bruno Haible  <bruno@clisp.org>
34850
34851         Make some tests ISO C 99 compliant.
34852         * tests/zerosize-ptr.h: New file.
34853         * tests/test-memchr.c: Include zerosize-ptr.h.
34854         (main): Use a zero-size object pointer instead of NULL.
34855         * tests/test-memchr2.c: Include zerosize-ptr.h.
34856         (main): Use a zero-size object pointer instead of NULL.
34857         * tests/test-memcmp.c: Include zerosize-ptr.h.
34858         (main): Use a zero-size object pointer instead of NULL.
34859         * tests/test-memmem.c: Include zerosize-ptr.h.
34860         (main): Use a zero-size object pointer instead of NULL.
34861         * tests/test-memrchr.c: Include zerosize-ptr.h.
34862         (main): Use a zero-size object pointer instead of NULL.
34863         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
34864         m4/mmap-anon.m4.
34865         (Depends-on): Add getpagesize.
34866         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
34867         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
34868         m4/mmap-anon.m4.
34869         (Depends-on): Add getpagesize.
34870         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
34871         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
34872         m4/mmap-anon.m4.
34873         (Depends-on): Add getpagesize.
34874         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
34875         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
34876         m4/mmap-anon.m4.
34877         (Depends-on): Add getpagesize.
34878         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
34879         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
34880         m4/mmap-anon.m4.
34881         (Depends-on): Add getpagesize.
34882         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
34883
34884 2009-05-12  Bruno Haible  <bruno@clisp.org>
34885
34886         Tests for module 'alignof'.
34887         * modules/alignof-tests: New file.
34888         * tests/test-alignof.c: New file.
34889
34890 2009-05-12  Bruno Haible  <bruno@clisp.org>
34891
34892         Fix alignof macro.
34893         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
34894         vendor compilers that are always correct.
34895
34896 2009-05-12  Bruno Haible  <bruno@clisp.org>
34897
34898         Make the MAP_ANONYMOUS detection work on HP-UX 11.
34899         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
34900         not whether its fully works.
34901
34902 2009-05-12  Bruno Haible  <bruno@clisp.org>
34903
34904         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
34905
34906 2009-05-12  Jim Meyering  <meyering@redhat.com>
34907
34908         * top/maint.mk: Adjust backslash alignment.
34909
34910 2009-05-11  Simon Josefsson  <simon@josefsson.org>
34911
34912         * top/maint.mk: Make $(srcdir)/build-aux configurable.
34913
34914 2009-05-11  Eric Blake  <ebb9@byu.net>
34915
34916         argp: avoid undefined behavior
34917         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
34918         macros.
34919
34920 2009-05-08  Simon Josefsson  <simon@josefsson.org>
34921
34922         * tests/test-vc-list-files-git.sh: Do git config of user.email and
34923         user.name to prevent git commit from complaining.
34924
34925 2009-05-10  Bruno Haible  <bruno@clisp.org>
34926
34927         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
34928         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
34929         it rewrites every file name only once.
34930         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
34931
34932 2009-05-08  Bruno Haible  <bruno@clisp.org>
34933
34934         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
34935         instead of 'max'.
34936
34937 2009-05-08  Simon Josefsson  <simon@josefsson.org>
34938
34939         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
34940         sockaddr_storage test.
34941
34942 2009-05-07  Simon Josefsson  <simon@josefsson.org>
34943
34944         * modules/sys_socket (Makefile.am): Substitute
34945         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
34946         * m4/sys_socket_h.m4: Check for sockaddr_storage.
34947         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
34948         * tests/test-sys_socket.c: Check sockaddr_storage.
34949
34950 2009-05-08  Bruno Haible  <bruno@clisp.org>
34951
34952         New module 'alignof'.
34953         * lib/alignof.h: New file.
34954         * modules/alignof: New file.
34955
34956 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
34957             Bruno Haible  <bruno@clisp.org>
34958
34959         Fix test-file-has-acl on FreeBSD.
34960         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
34961         mask is implicitly added.
34962         * tests/test-file-has-acl.c: Include <signal.h>.
34963         (main): Terminate the test after 5 seconds.
34964         * modules/acl-tests (configure.ac): Check for alarm function.
34965
34966 2009-05-04  Bruno Haible  <bruno@clisp.org>
34967
34968         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
34969         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
34970         * modules/errno (configure.ac): Drop AC_REQUIRE.
34971         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
34972         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
34973
34974 2009-05-04  Simon Josefsson  <simon@josefsson.org>
34975
34976         * modules/glob-tests: New module.
34977         * tests/test-glob.c: Add.
34978
34979 2009-05-04  Simon Josefsson  <simon@josefsson.org>
34980
34981         * modules/fnmatch-tests: New module.
34982         * tests/test-fnmatch.c: Add.
34983
34984 2009-05-04  Eric Blake  <ebb9@byu.net>
34985
34986         maint: make the new no-submodule-changes rule VPATH-safe
34987         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
34988
34989 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
34990             Bruno Haible  <bruno@clisp.org>
34991
34992         acl: Fix infinite loop on FreeBSD.
34993         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
34994         of return value from acl_get_entry.
34995         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
34996         Likewise.
34997
34998 2009-05-03  Bruno Haible  <bruno@clisp.org>
34999
35000         * lib/acl-internal.h (acl_entries): Clarify return value.
35001         * lib/acl_entries.c (acl_entries): Likewise.
35002
35003 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
35004
35005         Bug fix in acl module.
35006         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
35007
35008 2009-05-03  Bruno Haible  <bruno@clisp.org>
35009
35010         Create gperf-generated file in the source dir, not in the build dir.
35011         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
35012         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
35013         * modules/unicase/locale-language (unicase/locale-languages.h):
35014         Likewise.
35015         * modules/unicase/special-casing (unicase/special-casing-table.h):
35016         Likewise.
35017         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
35018         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
35019         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
35020         Reported by Ralf Wildenhues.
35021
35022 2009-05-03  Bruno Haible  <bruno@clisp.org>
35023
35024         * modules/fnmatch (Description, configure.ac): Taken from
35025         fnmatch-posix.
35026         * modules/fnmatch-posix: Turn into a symbolic reference to the
35027         'fnmatch' module, and deprecate.
35028         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
35029
35030 2009-05-03  Bruno Haible  <bruno@clisp.org>
35031
35032         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
35033         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
35034         Reported by Ralf Wildenhues.
35035
35036 2009-05-04  Simon Josefsson  <simon@josefsson.org>
35037
35038         * m4/fnmatch.m4: Fix fnmatch re-define.
35039
35040 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
35041
35042         priv-set: new module and tests; adapt write-any-file
35043         * lib/priv-set.c: New file.
35044         * lib/priv-set.h: New file.
35045         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
35046         * lib/write-any-file.c: Simplify by using priv-set module.
35047         * m4/priv-set.m4: New file.
35048         * modules/priv-set: New file.
35049         * modules/unlinkdir: Add dependency on priv-set module.
35050         * modules/write-any-file: Likewise.
35051
35052         Tests for module 'priv-set'.
35053         * modules/priv-set-tests: New file.
35054         * tests/test-priv-set.c: New file.
35055
35056 2009-05-03  Jim Meyering  <meyering@redhat.com>
35057             Bruno Haible  <bruno@clisp.org>
35058
35059         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
35060         use the converted UTF-8 variant of the name instead.
35061
35062 2009-05-03  Jim Meyering  <meyering@redhat.com>
35063
35064         tests: tighten some getdate tests
35065         * tests/test-getdate.c (main): Tighten tests: require equality,
35066         not just greater than.  Set TZ envvar to UTC0.
35067
35068 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
35069
35070         getdate: correctly interpret "next monday" when run on a Monday
35071         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
35072         that e.g., "next tues" (when run on a tuesday) results in a date
35073         that is one week in the future, and not today's date.
35074         I.e., add a week when the wday is the same as the current one.
35075         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
35076         and earlier by Martin Bernreuther and Jan Minář.
35077         * tests/test-getdate.c (main): Check that "next DAY" is always in
35078         the future and that "last DAY" is always in the past.
35079
35080 2009-05-02  Jim Meyering  <meyering@redhat.com>
35081
35082         build: ensure that a release build fails when a submodule is unclean
35083         * top/maint.mk (no-submodule-changes): New rule.
35084         (alpha beta major): Depend on it.
35085
35086 2009-05-02  Bruno Haible  <bruno@clisp.org>
35087
35088         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
35089         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
35090         shell variable gl_fnmatch_required to detect which variant is
35091         requested.
35092         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
35093         gl_FUNC_FNMATCH_POSIX.
35094         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
35095         exclude fnmatch-posix.
35096
35097 2009-05-02  Bruno Haible  <bruno@clisp.org>
35098
35099         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
35100         * modules/mbsrtowcs (License): Change to LGPLv2+.
35101         * modules/strnlen1 (License): Likewise.
35102         Reported by Simon Josefsson.
35103
35104 2009-05-02  Bruno Haible  <bruno@clisp.org>
35105
35106         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
35107         "cross".
35108         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
35109         gnulib-tool was called with option --source-base=lib.
35110
35111 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35112
35113         Use automake *-local hooks without commands, for extensibility.
35114         * modules/localcharset (Makefile.am): Rename install-exec-local
35115         rule to install-exec-localcharset, and make it a prerequisite of
35116         install-exec-local.  Likewise, rename the uninstall-local rule to
35117         uninstall-localcharset, and make it a prerequisite of the former.
35118
35119 2009-05-01  Bruno Haible  <bruno@clisp.org>
35120
35121         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
35122         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
35123         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
35124         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
35125         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
35126         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
35127         m4/locale-zh.m4, m4/codeset.m4.
35128
35129         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
35130         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
35131         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
35132         m4/locale-zh.m4.
35133
35134         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
35135         REPLACE_WCRTOMB if mbstate_t must be replaced.
35136         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
35137         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
35138
35139 2009-05-01  Bruno Haible  <bruno@clisp.org>
35140
35141         Avoid compiler warnings when redefining macros defined by <libintl.h>.
35142         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
35143         dngettext, dcngettext, textdomain, bindtextdomain,
35144         bind_textdomain_codeset): Undefine before redefining.
35145
35146 2009-04-30  Bruno Haible  <bruno@clisp.org>
35147
35148         Fix bug introduced on 2009-04-25.
35149         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
35150         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
35151         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
35152         is defined.
35153         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
35154         is defined.
35155         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
35156         is defined.
35157         Reported by Elbert_Pol <elbert.pol@gmail.com>.
35158
35159 2009-04-28  Bruno Haible  <bruno@clisp.org>
35160
35161         Comment tweaks.
35162         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
35163         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
35164         * lib/unicase.h (u*_casexfrm): Likewise.
35165         Reported by Paolo Bonzini.
35166
35167 2009-04-28  Bruno Haible  <bruno@clisp.org>
35168
35169         Fix a compilation error.
35170         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
35171         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
35172         Reported by Jim Meyering.
35173
35174 2009-04-27  Bruno Haible  <bruno@clisp.org>
35175
35176         New module 'libunistring'.
35177         * modules/libunistring: New file.
35178         * m4/libunistring.m4: New file.
35179         * MODULES.html.sh (Unicode string functions): Add it.
35180
35181 2009-04-27  Eric Blake  <ebb9@byu.net>
35182
35183         maint.mk: allow package-specific header to provide <config.h>
35184         * top/maint.mk (sc_require_config_h): New variable.
35185         (sc_require_config_h, sc_require_config_h_first): Use it.
35186
35187 2009-04-27  Simon Josefsson  <simon@josefsson.org>
35188
35189         * top/maint.mk (sc_avoid_if_before_free): Except
35190         useless-if-before-free script.
35191
35192 2009-04-27  Eric Blake  <ebb9@byu.net>
35193
35194         maintainer-makefile: depend on all required helper scripts
35195         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
35196         useless-if-before-free.
35197         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
35198         version, rather than assuming gnulib checkout is available.
35199         Reported by Simen Josefsson.
35200
35201 2009-04-26  Bruno Haible  <bruno@clisp.org>
35202
35203         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
35204         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
35205         "../" or "..".
35206
35207 2009-04-26  Bruno Haible  <bruno@clisp.org>
35208
35209         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
35210         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
35211         AC_LIB_HAVE_LINKFLAGS.
35212
35213 2009-04-26  Bruno Haible  <bruno@clisp.org>
35214
35215         Simplify calling convention of u*_conv_from_encoding.
35216         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
35217         u32_conv_from_encoding): Expect a resultbuf argument and return the
35218         result directly as a pointer.
35219         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
35220         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
35221         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
35222         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
35223         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
35224         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
35225         Update.
35226         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
35227         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
35228         * lib/vasnprintf.c (VASNPRINTF): Update.
35229         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
35230         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
35231         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
35232         * NEWS: Mention the change.
35233
35234 2009-04-26  Bruno Haible  <bruno@clisp.org>
35235
35236         Simplify calling convention of u*_conv_to_encoding.
35237         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
35238         u32_conv_to_encoding): Expect a resultbuf argument and return the
35239         result directly as a pointer.
35240         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
35241         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
35242         freeing scaled_offsets if mem_iconveha failed.
35243         * lib/unicase/u-casexfrm.h (FUNC): Update.
35244         * lib/uninorm/u-normxfrm.h (FUNC): Update.
35245         * lib/vasnprintf.c (VASNPRINTF): Update.
35246         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
35247         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
35248         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
35249         * NEWS: Mention the change.
35250
35251 2009-04-26  Bruno Haible  <bruno@clisp.org>
35252
35253         Avoid test failures on AIX and OSF/1.
35254         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
35255         malloc(0).
35256         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
35257         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
35258         Likewise.
35259         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
35260         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
35261         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
35262         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
35263         * doc/posix-functions/malloc.texi: Document the portability problem
35264         related to malloc(0).
35265
35266 2009-04-26  Bruno Haible  <bruno@clisp.org>
35267
35268         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
35269         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
35270         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
35271
35272 2009-04-25  Bruno Haible  <bruno@clisp.org>
35273
35274         Avoid link error when creating a namespace clean library.
35275         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
35276         as macro with arguments if already defined as an alias.
35277         * lib/signbitf.c (gl_signbitf): Don't undefine.
35278         * lib/signbitd.c (gl_signbitd): Don't undefine.
35279         * lib/signbitl.c (gl_signbitl): Don't undefine.
35280
35281 2009-04-25  Jim Meyering  <meyering@redhat.com>
35282
35283         vc-list-files: fix another quoting bug
35284         * build-aux/vc-list-files: Avoid sed backslash expansion
35285         of pathological directory names.
35286
35287 2009-04-25  Eric Blake  <ebb9@byu.net>
35288
35289         vc-list-files: fix shell quoting error
35290         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
35291         timestamp.
35292
35293 2009-04-25  Jim Meyering  <meyering@redhat.com>
35294
35295         vc-list-files: restore lost functionality with subdir argument
35296         * build-aux/vc-list-files: When given a non-"." sub-directory
35297         argument, substitute the $dir/ prefix back onto each resulting name.
35298         Otherwise, coreutils' root_tests check would fail.
35299
35300 2009-04-24  Eric Blake  <ebb9@byu.net>
35301
35302         vc-list-files: ignore git symlinks
35303         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
35304         than ls-files, to ignore git symlinks.
35305
35306         maint.mk: import improvements from m4
35307         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
35308         (move_if_change): Delete unused macro.
35309         (news-date-check, vc-diff-check): Support VPATH builds.
35310         (announcement): Likewise.  Split --bootstrap-tools list...
35311         (boostrap-tools): ...into separate list, which can be overridden
35312         in cfg.mk.
35313         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
35314         requiring dependency on useless-if-before-free module.
35315         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
35316         Support VPATH builds.
35317
35318 2009-04-24  Jim Meyering  <meyering@redhat.com>
35319
35320         maint.mk: remove coreutils-specific rules and variables
35321         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
35322         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
35323         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
35324
35325         maint.mk: remove obsolete rule
35326         * top/maint.mk (rel-check): Remove rule.
35327         (WGET, WGETFLAGS): Remove now-unused variables.
35328
35329 2009-04-24  Simon Josefsson  <simon@josefsson.org>
35330
35331         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
35332         consistency.
35333
35334         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
35335         '$(PATH_SEPARATOR)' instead of ':'.
35336
35337 2009-04-24  Simon Josefsson  <simon@josefsson.org>
35338
35339         * lib/getopt1.c (main): Use 'const' for static array.
35340
35341 2009-04-24  Simon Josefsson  <simon@josefsson.org>
35342
35343         * top/maint.mk: Sync with coreutils.
35344         * NEWS: Explain incompatibilities.
35345
35346 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35347             Bruno Haible  <bruno@clisp.org>
35348
35349         Fix cross-compilation results.
35350         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
35351         statement, as third argument of AC_TRY_RUN.
35352         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
35353         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
35354         Likewise.
35355         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
35356         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
35357         Likewise.
35358         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
35359         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
35360         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
35361
35362 2009-04-20  Bruno Haible  <bruno@clisp.org>
35363
35364         Avoid test failure on mingw.
35365         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
35366
35367 2009-04-20  Bruno Haible  <bruno@clisp.org>
35368
35369         Avoid compilation error on mingw.
35370         * modules/localename-tests (Depends-on): Add locale.
35371
35372 2009-04-19  Bruno Haible  <bruno@clisp.org>
35373
35374         Support for building a shared library on Windows platforms.
35375         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
35376         (main): Test the presence of UNINORM_NFC here.
35377         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
35378         (main): Test the presence of UNINORM_NFD here.
35379         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
35380         (main): Test the presence of UNINORM_NFKC here.
35381         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
35382         (main): Test the presence of UNINORM_NFKD here.
35383
35384 2009-04-19  Bruno Haible  <bruno@clisp.org>
35385
35386         Avoid a compiler warning.
35387         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
35388         Change type of variable 'sequence'.
35389
35390 2009-04-19  Bruno Haible  <bruno@clisp.org>
35391
35392         * modules/configmake (Makefile.am): When the contents of configmake.h
35393         does not change, arrange to preserve its modification time.
35394
35395 2009-04-17  Simon Josefsson  <simon@josefsson.org>
35396
35397         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
35398         gettext domain.
35399
35400 2009-04-16  Jim Meyering  <meyering@redhat.com>
35401
35402         useless-if-before-free: improve conversion code
35403         * build-aux/useless-if-before-free: Adjust code-in-comment to match
35404         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
35405
35406 2009-04-14  Bruno Haible  <bruno@clisp.org>
35407
35408         * modules/fcntl (Depends-on): Add extensions.
35409         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
35410
35411 2009-04-12  Ben Pfaff  <blp@gnu.org>
35412
35413         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
35414         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
35415
35416 2009-03-20  Ben Pfaff  <blp@gnu.org>
35417
35418         Make rename replace existing destinations on Windows.
35419         * m4/rename.m4: Add test for Mingw.
35420         * lib/rename.c: Add rename replacement that uses MoveFileEx with
35421         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
35422         * doc/posix-functions/rename.texi: Document.
35423
35424 2009-04-10  Bruno Haible  <bruno@clisp.org>
35425
35426         New include file "iconveh.h".
35427         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
35428         * lib/striconveh.h: Include it.
35429         (enum iconv_ilseq_handler): Remove definition.
35430         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
35431         striconveh.h.
35432         * lib/striconveha.c: Include striconveh.h.
35433         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
35434         * modules/striconveh (Files): Add lib/iconveh.h.
35435         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
35436         lib/striconveh.h.
35437
35438 2009-04-10  Bruno Haible  <bruno@clisp.org>
35439
35440         * lib/uniconv.h: Update comment.
35441
35442 2009-04-10  Bruno Haible  <bruno@clisp.org>
35443
35444         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
35445         always.
35446         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
35447         * lib/unistr/u16-mbtouc-aux.c: Likewise.
35448         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
35449         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
35450         "unistring-notinline.h", so that the function gets defined always.
35451         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
35452         * lib/unistr/u8-uctomb.c: Likewise.
35453         * lib/unistr/u16-mbtouc.c: Likewise.
35454         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
35455         * lib/unistr/u16-uctomb.c: Likewise.
35456         * lib/unistr/u32-mbtouc.c: Likewise.
35457         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
35458         * lib/unistr/u32-uctomb.c: Likewise.
35459
35460 2009-04-10  Bruno Haible  <bruno@clisp.org>
35461
35462         Mark 'utime' obsolete.
35463         * modules/utime (Status, Notice): New sections.
35464         Suggested by Jim Meyering.
35465
35466         Fix cross-compile guess for utime test.
35467         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
35468         autoconf.
35469         * doc/posix-functions/utime.texi: Give more precisions.
35470         Reported by Jan <ipif@ymail.com>.
35471
35472 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
35473
35474         filevercmp: correct today's change
35475         * lib/filevercmp.c: Also handle coreutils' test inputs.
35476         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
35477
35478         Fix regression in 'filevercmp' module. Thanks Sven Joachim
35479         for reporting it.
35480         * lib/filevercmp.c: Special handle for "", "." and "..".
35481         * tests/test-filevercmp.c: Enlarge the set suite.
35482
35483 2009-04-07  Jim Meyering  <meyering@redhat.com>
35484
35485         useless-if-before-free: show how to remove braced useless free, too
35486         * build-aux/useless-if-before-free: still only in a comment, though.
35487
35488 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
35489
35490         maint.mk: import changes to syntax-check macros from coreutils
35491         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
35492         Use them in the relevant macros.
35493
35494 2009-04-06  Bruno Haible  <bruno@clisp.org>
35495
35496         Fix unportable use of bit-fields.
35497         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
35498         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
35499         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
35500
35501 2009-04-06  Bruno Haible  <bruno@clisp.org>
35502
35503         Avoid test failures on AIX and OSF/1.
35504         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
35505         that malloc(0) = NULL.
35506         * tests/unicase/test-u8-tolower.c (check): Likewise.
35507         * tests/unicase/test-u8-totitle.c (check): Likewise.
35508         * tests/unicase/test-u8-toupper.c (check): Likewise.
35509         * tests/unicase/test-u16-casefold.c (check): Likewise.
35510         * tests/unicase/test-u16-tolower.c (check): Likewise.
35511         * tests/unicase/test-u16-totitle.c (check): Likewise.
35512         * tests/unicase/test-u16-toupper.c (check): Likewise.
35513         * tests/unicase/test-u32-casefold.c (check): Likewise.
35514         * tests/unicase/test-u32-tolower.c (check): Likewise.
35515         * tests/unicase/test-u32-totitle.c (check): Likewise.
35516         * tests/unicase/test-u32-toupper.c (check): Likewise.
35517         * tests/uninorm/test-u8-nfc.c (check): Likewise.
35518         * tests/uninorm/test-u8-nfd.c (check): Likewise.
35519         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
35520         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
35521         * tests/uninorm/test-u16-nfc.c (check): Likewise.
35522         * tests/uninorm/test-u16-nfd.c (check): Likewise.
35523         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
35524         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
35525         * tests/uninorm/test-u32-nfc.c (check): Likewise.
35526         * tests/uninorm/test-u32-nfd.c (check): Likewise.
35527         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
35528         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
35529
35530 2009-04-05  Bruno Haible  <bruno@clisp.org>
35531
35532         Work around an autoconf limitation.
35533         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
35534         comment line if it would be longer than 3 KB.
35535
35536 2009-04-05  Bruno Haible  <bruno@clisp.org>
35537
35538         Avoid test failure with libiconv-1.13.
35539         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
35540         of the expected test results.
35541
35542 2009-04-05  Bruno Haible  <bruno@clisp.org>
35543
35544         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
35545         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
35546         that it should be installed.
35547
35548 2009-04-05  Bruno Haible  <bruno@clisp.org>
35549
35550         * gnulib-tool: New option --copy-file.
35551         (func_usage): Document it.
35552         (func_dest_tmpfilename): Moved out of func_import.
35553         (func_add_file, func_update_file): New functions, extracted from
35554         func_import.
35555         (func_import): Update.
35556
35557 2009-04-05  Karl Berry  <karl@gnu.org>
35558
35559         * README: prominently mention gnulib-tool.
35560         Rearrange sections so getting the code is near the top.
35561
35562 2009-04-05  Bruno Haible  <bruno@clisp.org>
35563
35564         * lib/unicase.h: Mention u*_cmp2.
35565         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
35566         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
35567         * lib/unicase/ulc-casecmp.c: Likewise.
35568         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
35569         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
35570         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
35571         unistr/u8-cmp.
35572         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
35573         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
35574         unistr/u16-cmp.
35575         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
35576         unistr/u32-cmp.
35577
35578         * lib/uninorm.h: Mention u*_cmp2.
35579         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
35580         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
35581         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
35582         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
35583         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
35584         unistr/u8-cmp.
35585         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
35586         unistr/u16-cmp.
35587         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
35588         unistr/u32-cmp.
35589
35590         New module 'unistr/u32-cmp2'.
35591         * lib/unistr/u32-cmp2.c: New file.
35592         * modules/unistr/u32-cmp2: New file.
35593
35594         New module 'unistr/u16-cmp2'.
35595         * lib/unistr/u16-cmp2.c: New file.
35596         * modules/unistr/u16-cmp2: New file.
35597
35598         New module 'unistr/u8-cmp2'.
35599         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
35600         * lib/unistr/u8-cmp2.c: New file.
35601         * lib/unistr/u-cmp2.h: New file.
35602         * modules/unistr/u8-cmp2: New file.
35603
35604 2009-04-05  Bruno Haible  <bruno@clisp.org>
35605
35606         * lib/unictype.h (uc_property_is_valid): New macro.
35607         * tests/unictype/test-pr_byname.c (main): Use it.
35608
35609         * lib/unistr.h: Doc fixes.
35610         * lib/uniconv.h: Doc fixes.
35611         * lib/unictype.h: Doc fixes.
35612
35613 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
35614
35615         Port coreutils 7.2 to Solaris 8.
35616
35617         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
35618         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
35619         for Solaris 8.  This is a bit of a hack, as it means it's the
35620         caller's responsibility to add -lnsl if needed, but most likely it
35621         won't be needed since only getaddrinfo uses this and getaddrinfo
35622         isn't needed on Solaris 8.
35623
35624         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
35625         problem to Solaris 8 encountered with coreutils 7.2, which
35626         resulted in a message "fnmatch.c:292: warning: passing argument 4
35627         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
35628         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
35629
35630 2009-04-03  Simon Josefsson  <simon@josefsson.org>
35631
35632         * m4/ld-version-script.m4: Add FIXME comment.
35633
35634 2009-04-02  Simon Josefsson  <simon@josefsson.org>
35635
35636         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
35637         SOVERSION variable.
35638
35639 2009-04-02  Bruno Haible  <bruno@clisp.org>
35640
35641         * Makefile (info, html, dvi, pdf): Combine the rules.
35642         Suggested by Jim Meyering.
35643
35644 2009-04-01  Bruno Haible  <bruno@clisp.org>
35645
35646         * Makefile (info, html, dvi, pdf): New targets.
35647         Reported by Reuben Thomas <rrt@sc3d.org>.
35648
35649 2009-04-01  Bruno Haible  <bruno@clisp.org>
35650
35651         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
35652         can be put into PATH.
35653         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
35654
35655 2009-04-01  Bruno Haible  <bruno@clisp.org>
35656
35657         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
35658
35659 2009-04-01  Bruno Haible  <bruno@clisp.org>
35660
35661         Rename module 'visibility'.
35662         * modules/lib-symbol-visibility: Renamed from modules/visibility.
35663         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
35664         * doc/gnulib.texi: Update.
35665         * MODULES.html.sh (Misc): Update.
35666         * NEWS: Mention the change.
35667
35668 2009-04-01  Simon Josefsson  <simon@josefsson.org>
35669
35670         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
35671         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
35672         Eric Blake <ebb9@byu.net> for review.
35673         * MODULES.html.sh: Add lib-msvc-compat.
35674         * doc/gnulib.texi: Link to new section.
35675         * m4/ld-output-def.m4: New file.
35676         * doc/ld-output-def.texi: New file.
35677
35678 2009-04-01  Simon Josefsson  <simon@josefsson.org>
35679
35680         Rename ld-version-script to lib-symbol-versions.  Suggested by
35681         Bruno Haible <bruno@clisp.org>.
35682         * modules/ld-version-script: Renamed to lib-symbol-versions.
35683         * doc/ld-version-script.texi: Fix module name.
35684         * MODULES.html.sh: Add lib-symbol-versions.
35685
35686 2009-03-31  Simon Josefsson  <simon@josefsson.org>
35687
35688         * modules/u64-tests: New file.
35689         * tests/test-u64.c: New file.
35690
35691 2009-03-04  Simon Josefsson  <simon@josefsson.org>
35692
35693         * MODULES.html.sh: Mention u64.
35694         * modules/u64: New module.
35695         * modules/crypto/sha512: Depend on u64 module instead of providing
35696         u64.h.
35697
35698 2009-03-27  Eric Blake  <ebb9@byu.net>
35699
35700         test-strerror: make debugging EAI_SYSTEM easier
35701         * modules/getaddrinfo-tests (Depends-on): Add strerror.
35702         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
35703         failure was EAI_SYSTEM.
35704
35705 2009-03-25  Bruno Haible  <bruno@clisp.org>
35706
35707         Fix a problem with --enable-relocatable on Solaris 7.
35708         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
35709         since 2008-02-24.
35710
35711 2009-03-25  Eric Blake  <ebb9@byu.net>
35712
35713         test-sockets: avoid gcc warning
35714         * tests/test-sockets.c (main): Silence compiler warning.
35715
35716 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
35717
35718         New modules nproc, pthread, contributed by Glen Lenker.
35719
35720         * MODULES.html.sh: Add pthread, nproc.
35721         * lib/nproc.c: New file.
35722         * lib/nproc.h: New file.
35723         * lib/pthread.in.h: New file.
35724         * m4/pthread.m4: New file.
35725         * modules/nproc: New file.
35726         * modules/pthread: New file.
35727
35728 2009-03-24  Simon Josefsson  <simon@josefsson.org>
35729
35730         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
35731         New variable.
35732
35733 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
35734
35735         filevercmp: handle simple~ and numbered.~3~ backup suffixes
35736         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
35737         * tests/test-filevercmp.c: Add tests for backup suffixes.
35738
35739 2009-03-24  Simon Josefsson  <simon@josefsson.org>
35740
35741         * modules/stdlib (Depends-on): Add stdint, needed when defining
35742         struct random_data on, for example, HP-UX 10.20.  Reported by
35743         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
35744
35745 2009-03-24  Simon Josefsson  <simon@josefsson.org>
35746
35747         * lib/readline.c (readline): Call fflush on stdout after printing
35748         prompt.
35749
35750 2009-03-20  Bruno Haible  <bruno@clisp.org>
35751
35752         Remove dependency from 'close' module to -lws2_32 on native Windows.
35753         * lib/close-hook.h: New file.
35754         * lib/close-hook.c: New file.
35755         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
35756         w32sock.h.
35757         (_gl_close_fd_maybe_socket): Remove function.
35758         (rpl_close): Invoke execute_all_close_hooks instead of
35759         _gl_close_fd_maybe_socket.
35760         * lib/sockets.c: Include close-hook.h, w32sock.h.
35761         (close_fd_maybe_socket): New function, essentially from lib/close.c.
35762         (close_sockets_hook): New variable.
35763         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
35764         (gl_sockets_cleanup): Unregister it.
35765         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
35766         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
35767         * modules/close-hook: New file.
35768         * modules/close (Files): Remove lib/w32sock.h.
35769         (Depends-on): Add close-hook.
35770         (Link): Remove section.
35771         * modules/sockets (Files): Add lib/w32sock.h.
35772         (Depends-on): Add close-hook.
35773         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
35774         invocation.
35775         * NEWS: Mention that LIB_CLOSE is gone.
35776
35777 2009-03-23  Eric Blake  <ebb9@byu.net>
35778
35779         signal-tests: test previous patch
35780         * tests/test-signal.c: New file.
35781         * modules/signal-tests: Likewise.
35782
35783         signal.h: always support 'volatile sig_atomic_t'
35784         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
35785         (gl_SIGNAL_H_DEFAULTS): Add a default.
35786         * modules/signal (Makefile.am): Substitute if needed.
35787         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
35788         users can blindly add volatile.
35789         * doc/posix-headers/signal.texi (signal.h): Document it.
35790         Reported by Matthew Woehlke.
35791
35792 2009-03-23  Jim Meyering  <meyering@redhat.com>
35793
35794         pathmax: PATH_MAX: use pathconf only when available
35795         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
35796         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
35797         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
35798         This avoids a link failure in a PSP cross-compilation environment
35799         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
35800
35801         * lib/vasnprintf.c (divide): Fix typo in comment.
35802
35803 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35804
35805         * gnulib-tool (func_filter_filelist): Fix comment.
35806
35807 2009-03-20  Bruno Haible  <bruno@clisp.org>
35808
35809         Make sockets.h self-contained.
35810         * lib/sockets.c: Include sockets.h first.
35811         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
35812
35813 2009-03-19  Eric Blake  <ebb9@byu.net>
35814
35815         doc: mention more functions added in cygwin 1.7.0
35816         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
35817         addition.
35818         * doc/posix-functions/log2f.texi: Likewise.
35819
35820 2009-03-19  Jim Meyering  <meyering@redhat.com>
35821
35822         fsusage: avoid syntax error due to statement-before-declaration
35823         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
35824         after all declarations.  Reported by Matthew Woehlke in
35825         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
35826
35827 2009-03-18  Eric Blake  <ebb9@byu.net>
35828
35829         build-aux/compile: sync from automake
35830         * build-aux/compile: New file, from automake.
35831         * config/srclist.txt: Mention build-aux/compile.
35832
35833 2009-03-17  Bruno Haible  <bruno@clisp.org>
35834
35835         * lib/git-merge-changelog.c: Fix typo in comment.
35836         Reported by Reuben Thomas <rrt@sc3d.org>.
35837
35838 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
35839
35840         * m4/regex.m4: update and improve help for
35841         --without-included-regex.
35842
35843 2009-03-17  Simon Josefsson  <simon@josefsson.org>
35844
35845         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
35846         failure on missing include files.
35847
35848 2009-03-17  Eric Blake  <ebb9@byu.net>
35849
35850         doc: mention more functions added in cygwin 1.7.0
35851         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
35852         addition.
35853         * doc/posix-functions/fwscanf.texi: Likewise.
35854         * doc/posix-functions/swprintf.texi: Likewise.
35855         * doc/posix-functions/swscanf.texi: Likewise.
35856         * doc/posix-functions/vfwprintf.texi: Likewise.
35857         * doc/posix-functions/vfwscanf.texi: Likewise.
35858         * doc/posix-functions/vswprintf.texi: Likewise.
35859         * doc/posix-functions/vswscanf.texi: Likewise.
35860         * doc/posix-functions/vwprintf.texi: Likewise.
35861         * doc/posix-functions/vwscanf.texi: Likewise.
35862         * doc/posix-functions/wcscasecmp.texi: Likewise.
35863         * doc/posix-functions/wcsdup.texi: Likewise.
35864         * doc/posix-functions/wcsftime.texi: Likewise.
35865         * doc/posix-functions/wcsncasecmp.texi: Likewise.
35866         * doc/posix-functions/wprintf.texi: Likewise.
35867         * doc/posix-functions/wscanf.texi: Likewise.
35868         * doc/glibc-functions/gethostbyname2.texi: Likewise.
35869
35870 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35871
35872         maint.mk: really add $(AM_MAKEFLAGS)
35873         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
35874         was inadvertently omitted in the last commit.
35875         Spotted by Bruno Haible.
35876
35877         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
35878         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
35879         $(AM_MAKEFLAGS)' rather than plain `make'.
35880
35881         gnulib-tool: execute $MAKE not make
35882         * gnulib-tool: Default $MAKE to 'make'.
35883         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
35884         than make.  Initialize $MAKE in the do-autobuild script.
35885
35886         gnulib-tool: use $MAKE not make in generated files
35887         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
35888         make, in generated files.  Initialize $MAKE in the do-autobuild
35889         script.
35890
35891         * top/GNUmakefile (_have-git-version-gen): Fix typo.
35892
35893         GNUmakefile: disable parallelism only for multiple, recursive targets
35894         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
35895         additions in the Makefile.
35896         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
35897         by Automake.
35898         (.NOTPARALLEL): Only disable parallel builds if multiple targets
35899         are listed on the command line and at least one of them is
35900         listed in $(ALL_RECURSIVE_TARGETS).
35901
35902 2009-03-14  Bruno Haible  <bruno@clisp.org>
35903
35904         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
35905         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
35906         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
35907         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
35908         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
35909         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
35910         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
35911         unistr/u8-uctomb.
35912         * modules/unistr/u8-strchr (Depends-on): Likewise.
35913         * modules/unistr/u8-strrchr (Depends-on): Likewise.
35914         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
35915         unistr/u16-uctomb.
35916         * modules/unistr/u16-strchr (Depends-on): Likewise.
35917         * modules/unistr/u16-strrchr (Depends-on): Likewise.
35918
35919 2009-03-12  Bruno Haible  <bruno@clisp.org>
35920
35921         Work around select() bug on Interix 3.5.
35922         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
35923         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
35924         * m4/select.m4: New file.
35925         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
35926         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
35927         * modules/select (Files): Add m4/select.m4.
35928         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
35929         * modules/nanosleep (Depends-on): Add select.
35930         * modules/poll (Depends-on): Likewise.
35931         * doc/posix-functions/select.texi: Mention the Interix bug.
35932         Reported by Markus Duft <mduft@gentoo.org>.
35933
35934         * lib/select.c: Renamed from lib/winsock-select.c.
35935         * modules/select (Files): Add lib/select.c, remove
35936         lib/winsock-select.c.
35937         (configure.ac): Update.
35938
35939 2009-03-12  Jim Meyering  <meyering@redhat.com>
35940
35941         avoid gcc warnings about unused macro definitions
35942         * lib/readtokens.c (STREQ): Remove unused definition.
35943         * lib/xmalloc.c (SIZE_MAX): Likewise.
35944         * lib/openat-die.c (N_): Likewise.
35945         * lib/mountlist.c (SIZE_MAX): Remove definition.
35946         Instead, include <stdint.h>.
35947         * lib/readutmp.c: Likewise.
35948         * modules/readutmp (Depends-on): Add stdint.
35949         * modules/mountlist (Depends-on): Add stdint.
35950         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
35951
35952 2009-03-10  Bruno Haible  <bruno@clisp.org>
35953
35954         Tests for module 'mbmemcasecoll'.
35955         * modules/mbmemcasecoll-tests: New file.
35956         * tests/test-mbmemcasecoll1.sh: New file.
35957         * tests/test-mbmemcasecoll2.sh: New file.
35958         * tests/test-mbmemcasecoll3.sh: New file.
35959         * tests/test-mbmemcasecoll.c: New file.
35960
35961         New module 'mbmemcasecoll'.
35962         * lib/mbmemcasecoll.h: New file.
35963         * lib/mbmemcasecoll.c: New file.
35964         * modules/mbmemcasecoll: New file.
35965
35966         * tests/test-mbmemcasecmp.h: New file, extracted from
35967         tests/test-mbmemcasecmp.c.
35968         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
35969         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
35970         (main): Update.
35971         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
35972
35973 2009-03-09  Bruno Haible  <bruno@clisp.org>
35974
35975         Tests for module 'mbmemcasecmp'.
35976         * modules/mbmemcasecmp-tests: New file.
35977         * tests/test-mbmemcasecmp1.sh: New file.
35978         * tests/test-mbmemcasecmp2.sh: New file.
35979         * tests/test-mbmemcasecmp3.sh: New file.
35980         * tests/test-mbmemcasecmp.c: New file.
35981
35982         New module 'mbmemcasecmp'.
35983         * lib/mbmemcasecmp.h: New file.
35984         * lib/mbmemcasecmp.c: New file.
35985         * modules/mbmemcasecmp: New file.
35986
35987 2009-03-09  Bruno Haible  <bruno@clisp.org>
35988
35989         Tests for module 'unicase/ulc-casecoll'.
35990         * modules/unicase/ulc-casecoll-tests: New file.
35991         * tests/unicase/test-ulc-casecoll1.sh: New file.
35992         * tests/unicase/test-ulc-casecoll2.sh: New file.
35993         * tests/unicase/test-ulc-casecoll.c: New file.
35994
35995         New module 'unicase/ulc-casecoll'.
35996         * lib/unicase.h (ulc_casecoll): New declaration.
35997         * lib/unicase/ulc-casecoll.c: New file.
35998         * modules/unicase/ulc-casecoll: New file.
35999
36000         New module 'unicase/ulc-casexfrm'.
36001         * lib/unicase.h (ulc_casexfrm): New declaration.
36002         * lib/unicase/ulc-casexfrm.c: New file.
36003         * modules/unicase/ulc-casexfrm: New file.
36004
36005 2009-03-09  Bruno Haible  <bruno@clisp.org>
36006
36007         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
36008         invocations.
36009
36010         * m4/mbscasecmp.m4: Remove file.
36011         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
36012         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
36013
36014         * m4/mbscasestr.m4: Remove file.
36015         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
36016         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
36017
36018         * m4/mbschr.m4: Remove file.
36019         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
36020         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
36021
36022         * m4/mbscspn.m4: Remove file.
36023         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
36024         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
36025
36026         * m4/mbslen.m4: Remove file.
36027         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
36028         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
36029
36030         * m4/mbsncasecmp.m4: Remove file.
36031         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
36032         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
36033
36034         * m4/mbsnlen.m4: Remove file.
36035         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
36036         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
36037
36038         * m4/mbspbrk.m4: Remove file.
36039         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
36040         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
36041
36042         * m4/mbspcasecmp.m4: Remove file.
36043         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
36044         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
36045
36046         * m4/mbsrchr.m4: Remove file.
36047         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
36048         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
36049
36050         * m4/mbssep.m4: Remove file.
36051         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
36052         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
36053
36054         * m4/mbsspn.m4: Remove file.
36055         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
36056         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
36057
36058         * m4/mbsstr.m4: Remove file.
36059         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
36060         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
36061
36062         * m4/mbstok_r.m4: Remove file.
36063         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
36064         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
36065
36066         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
36067
36068         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
36069         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
36070
36071         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
36072
36073 2009-03-08  Bruno Haible  <bruno@clisp.org>
36074
36075         Tests for module 'unicase/ulc-casecmp'.
36076         * modules/unicase/ulc-casecmp-tests: New file.
36077         * tests/unicase/test-ulc-casecmp1.sh: New file.
36078         * tests/unicase/test-ulc-casecmp2.sh: New file.
36079         * tests/unicase/test-ulc-casecmp.c: New file.
36080
36081         New module 'unicase/ulc-casecmp'.
36082         * lib/unicase.h (ulc_casecmp): New declaration.
36083         * lib/unicase/ulc-casecmp.c: New file.
36084         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
36085         'const SRC_UNIT *'.
36086         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
36087         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
36088         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
36089         * modules/unicase/ulc-casecmp: New file.
36090
36091         Tests for module 'unicase/u32-is-cased'.
36092         * modules/unicase/u32-is-cased-tests: New file.
36093         * tests/unicase/test-u32-is-cased.c: New file.
36094
36095         Tests for module 'unicase/u16-is-cased'.
36096         * modules/unicase/u16-is-cased-tests: New file.
36097         * tests/unicase/test-u16-is-cased.c: New file.
36098
36099         Tests for module 'unicase/u8-is-cased'.
36100         * modules/unicase/u8-is-cased-tests: New file.
36101         * tests/unicase/test-u8-is-cased.c: New file.
36102         * tests/unicase/test-is-cased.h: New file.
36103
36104         New module 'unicase/u32-is-cased'.
36105         * lib/unicase/u32-is-cased.c: New file.
36106         * modules/unicase/u32-is-cased: New file.
36107
36108         New module 'unicase/u16-is-cased'.
36109         * lib/unicase/u16-is-cased.c: New file.
36110         * modules/unicase/u16-is-cased: New file.
36111
36112         New module 'unicase/u8-is-cased'.
36113         * lib/unicase/u8-is-cased.c: New file.
36114         * lib/unicase/u-is-cased.h: New file.
36115         * modules/unicase/u8-is-cased: New file.
36116
36117         Tests for module 'unicase/u32-is-casefolded'.
36118         * modules/unicase/u32-is-casefolded-tests: New file.
36119         * tests/unicase/test-u32-is-casefolded.c: New file.
36120
36121         Tests for module 'unicase/u16-is-casefolded'.
36122         * modules/unicase/u16-is-casefolded-tests: New file.
36123         * tests/unicase/test-u16-is-casefolded.c: New file.
36124
36125         Tests for module 'unicase/u8-is-casefolded'.
36126         * modules/unicase/u8-is-casefolded-tests: New file.
36127         * tests/unicase/test-u8-is-casefolded.c: New file.
36128         * tests/unicase/test-is-casefolded.h: New file.
36129
36130         New module 'unicase/u32-is-casefolded'.
36131         * lib/unicase/u32-is-casefolded.c: New file.
36132         * modules/unicase/u32-is-casefolded: New file.
36133
36134         New module 'unicase/u16-is-casefolded'.
36135         * lib/unicase/u16-is-casefolded.c: New file.
36136         * modules/unicase/u16-is-casefolded: New file.
36137
36138         New module 'unicase/u8-is-casefolded'.
36139         * lib/unicase/u8-is-casefolded.c: New file.
36140         * modules/unicase/u8-is-casefolded: New file.
36141
36142         Tests for module 'unicase/u32-is-titlecase'.
36143         * modules/unicase/u32-is-titlecase-tests: New file.
36144         * tests/unicase/test-u32-is-titlecase.c: New file.
36145
36146         Tests for module 'unicase/u16-is-titlecase'.
36147         * modules/unicase/u16-is-titlecase-tests: New file.
36148         * tests/unicase/test-u16-is-titlecase.c: New file.
36149
36150         Tests for module 'unicase/u8-is-titlecase'.
36151         * modules/unicase/u8-is-titlecase-tests: New file.
36152         * tests/unicase/test-u8-is-titlecase.c: New file.
36153         * tests/unicase/test-is-titlecase.h: New file.
36154
36155         New module 'unicase/u32-is-titlecase'.
36156         * lib/unicase/u32-is-titlecase.c: New file.
36157         * modules/unicase/u32-is-titlecase: New file.
36158
36159         New module 'unicase/u16-is-titlecase'.
36160         * lib/unicase/u16-is-titlecase.c: New file.
36161         * modules/unicase/u16-is-titlecase: New file.
36162
36163         New module 'unicase/u8-is-titlecase'.
36164         * lib/unicase/u8-is-titlecase.c: New file.
36165         * modules/unicase/u8-is-titlecase: New file.
36166
36167         Tests for module 'unicase/u32-is-lowercase'.
36168         * modules/unicase/u32-is-lowercase-tests: New file.
36169         * tests/unicase/test-u32-is-lowercase.c: New file.
36170
36171         Tests for module 'unicase/u16-is-lowercase'.
36172         * modules/unicase/u16-is-lowercase-tests: New file.
36173         * tests/unicase/test-u16-is-lowercase.c: New file.
36174
36175         Tests for module 'unicase/u8-is-lowercase'.
36176         * modules/unicase/u8-is-lowercase-tests: New file.
36177         * tests/unicase/test-u8-is-lowercase.c: New file.
36178         * tests/unicase/test-is-lowercase.h: New file.
36179
36180         New module 'unicase/u32-is-lowercase'.
36181         * lib/unicase/u32-is-lowercase.c: New file.
36182         * modules/unicase/u32-is-lowercase: New file.
36183
36184         New module 'unicase/u16-is-lowercase'.
36185         * lib/unicase/u16-is-lowercase.c: New file.
36186         * modules/unicase/u16-is-lowercase: New file.
36187
36188         New module 'unicase/u8-is-lowercase'.
36189         * lib/unicase/u8-is-lowercase.c: New file.
36190         * modules/unicase/u8-is-lowercase: New file.
36191
36192         Tests for module 'unicase/u32-is-uppercase'.
36193         * modules/unicase/u32-is-uppercase-tests: New file.
36194         * tests/unicase/test-u32-is-uppercase.c: New file.
36195
36196         Tests for module 'unicase/u16-is-uppercase'.
36197         * modules/unicase/u16-is-uppercase-tests: New file.
36198         * tests/unicase/test-u16-is-uppercase.c: New file.
36199
36200         Tests for module 'unicase/u8-is-uppercase'.
36201         * modules/unicase/u8-is-uppercase-tests: New file.
36202         * tests/unicase/test-u8-is-uppercase.c: New file.
36203         * tests/unicase/test-is-uppercase.h: New file.
36204
36205         New module 'unicase/u32-is-uppercase'.
36206         * lib/unicase/u32-is-uppercase.c: New file.
36207         * modules/unicase/u32-is-uppercase: New file.
36208
36209         New module 'unicase/u16-is-uppercase'.
36210         * lib/unicase/u16-is-uppercase.c: New file.
36211         * modules/unicase/u16-is-uppercase: New file.
36212
36213         New module 'unicase/u8-is-uppercase'.
36214         * lib/unicase/u8-is-uppercase.c: New file.
36215         * modules/unicase/u8-is-uppercase: New file.
36216
36217         New module 'unicase/u32-is-invariant'.
36218         * lib/unicase/u32-is-invariant.c: New file.
36219         * modules/unicase/u32-is-invariant: New file.
36220
36221         New module 'unicase/u16-is-invariant'.
36222         * lib/unicase/u16-is-invariant.c: New file.
36223         * modules/unicase/u16-is-invariant: New file.
36224
36225         New module 'unicase/u8-is-invariant'.
36226         * lib/unicase/u8-is-invariant.c: New file.
36227         * lib/unicase/invariant.h: New file.
36228         * lib/unicase/u-is-invariant.h: New file.
36229         * modules/unicase/u8-is-invariant: New file.
36230
36231         Tests for module 'unicase/u32-casecoll'.
36232         * modules/unicase/u32-casecoll-tests: New file.
36233         * tests/unicase/test-u32-casecoll.c: New file.
36234
36235         Tests for module 'unicase/u16-casecoll'.
36236         * modules/unicase/u16-casecoll-tests: New file.
36237         * tests/unicase/test-u16-casecoll.c: New file.
36238
36239         Tests for module 'unicase/u8-casecoll'.
36240         * modules/unicase/u8-casecoll-tests: New file.
36241         * tests/unicase/test-u8-casecoll.c: New file.
36242
36243         New module 'unicase/u32-casecoll'.
36244         * lib/unicase/u32-casecoll.c: New file.
36245         * modules/unicase/u32-casecoll: New file.
36246
36247         New module 'unicase/u16-casecoll'.
36248         * lib/unicase/u16-casecoll.c: New file.
36249         * modules/unicase/u16-casecoll: New file.
36250
36251         New module 'unicase/u8-casecoll'.
36252         * lib/unicase/u8-casecoll.c: New file.
36253         * lib/unicase/u-casecoll.h: New file.
36254         * modules/unicase/u8-casecoll: New file.
36255
36256         New module 'unicase/u32-casexfrm'.
36257         * lib/unicase/u32-casexfrm.c: New file.
36258         * modules/unicase/u32-casexfrm: New file.
36259
36260         New module 'unicase/u16-casexfrm'.
36261         * lib/unicase/u16-casexfrm.c: New file.
36262         * modules/unicase/u16-casexfrm: New file.
36263
36264         New module 'unicase/u8-casexfrm'.
36265         * lib/unicase/u8-casexfrm.c: New file.
36266         * lib/unicase/u-casexfrm.h: New file.
36267         * modules/unicase/u8-casexfrm: New file.
36268
36269         Tests for module 'unicase/u32-casecmp'.
36270         * modules/unicase/u32-casecmp-tests: New file.
36271         * tests/unicase/test-u32-casecmp.c: New file.
36272
36273         Tests for module 'unicase/u16-casecmp'.
36274         * modules/unicase/u16-casecmp-tests: New file.
36275         * tests/unicase/test-u16-casecmp.c: New file.
36276
36277         Tests for module 'unicase/u8-casecmp'.
36278         * modules/unicase/u8-casecmp-tests: New file.
36279         * tests/unicase/test-u8-casecmp.c: New file.
36280         * tests/unicase/test-casecmp.h: New file.
36281
36282         New module 'unicase/u32-casecmp'.
36283         * lib/unicase/u32-casecmp.c: New file.
36284         * modules/unicase/u32-casecmp: New file.
36285
36286         New module 'unicase/u16-casecmp'.
36287         * lib/unicase/u16-casecmp.c: New file.
36288         * modules/unicase/u16-casecmp: New file.
36289
36290         New module 'unicase/u8-casecmp'.
36291         * lib/unicase/u8-casecmp.c: New file.
36292         * lib/unicase/u-casecmp.h: New file.
36293         * modules/unicase/u8-casecmp: New file.
36294
36295         Tests for module 'unicase/u32-casefold'.
36296         * modules/unicase/u32-casefold-tests: New file.
36297         * tests/unicase/test-u32-casefold.c: New file.
36298
36299         Tests for module 'unicase/u16-casefold'.
36300         * modules/unicase/u16-casefold-tests: New file.
36301         * tests/unicase/test-u16-casefold.c: New file.
36302
36303         Tests for module 'unicase/u8-casefold'.
36304         * modules/unicase/u8-casefold-tests: New file.
36305         * tests/unicase/test-u8-casefold.c: New file.
36306
36307         New module 'unicase/u32-casefold'.
36308         * lib/unicase/u32-casefold.c: New file.
36309         * modules/unicase/u32-casefold: New file.
36310
36311         New module 'unicase/u16-casefold'.
36312         * lib/unicase/u16-casefold.c: New file.
36313         * modules/unicase/u16-casefold: New file.
36314
36315         New module 'unicase/u8-casefold'.
36316         * lib/unicase/u8-casefold.c: New file.
36317         * lib/unicase/u-casefold.h: New file.
36318         * modules/unicase/u8-casefold: New file.
36319
36320         New module 'unicase/tocasefold'.
36321         * lib/unicase/casefold.h: New file.
36322         * lib/unicase/tocasefold.c: New file.
36323         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
36324         * modules/unicase/tocasefold: New file.
36325
36326         Tests for module 'unicase/u32-totitle'.
36327         * modules/unicase/u32-totitle-tests: New file.
36328         * tests/unicase/test-u32-totitle.c: New file.
36329
36330         Tests for module 'unicase/u16-totitle'.
36331         * modules/unicase/u16-totitle-tests: New file.
36332         * tests/unicase/test-u16-totitle.c: New file.
36333
36334         Tests for module 'unicase/u8-totitle'.
36335         * modules/unicase/u8-totitle-tests: New file.
36336         * tests/unicase/test-u8-totitle.c: New file.
36337
36338         New module 'unicase/u32-totitle'.
36339         * lib/unicase/u32-totitle.c: New file.
36340         * modules/unicase/u32-totitle: New file.
36341
36342         New module 'unicase/u16-totitle'.
36343         * lib/unicase/u16-totitle.c: New file.
36344         * modules/unicase/u16-totitle: New file.
36345
36346         New module 'unicase/u8-totitle'.
36347         * lib/unicase/u8-totitle.c: New file.
36348         * lib/unicase/u-totitle.h: New file.
36349         * modules/unicase/u8-totitle: New file.
36350
36351         Tests for module 'unicase/u32-tolower'.
36352         * modules/unicase/u32-tolower-tests: New file.
36353         * tests/unicase/test-u32-tolower.c: New file.
36354
36355         Tests for module 'unicase/u16-tolower'.
36356         * modules/unicase/u16-tolower-tests: New file.
36357         * tests/unicase/test-u16-tolower.c: New file.
36358
36359         Tests for module 'unicase/u8-tolower'.
36360         * modules/unicase/u8-tolower-tests: New file.
36361         * tests/unicase/test-u8-tolower.c: New file.
36362
36363         New module 'unicase/u32-tolower'.
36364         * lib/unicase/u32-tolower.c: New file.
36365         * modules/unicase/u32-tolower: New file.
36366
36367         New module 'unicase/u16-tolower'.
36368         * lib/unicase/u16-tolower.c: New file.
36369         * modules/unicase/u16-tolower: New file.
36370
36371         New module 'unicase/u8-tolower'.
36372         * lib/unicase/u8-tolower.c: New file.
36373         * modules/unicase/u8-tolower: New file.
36374
36375         Tests for module 'unicase/u32-toupper'.
36376         * modules/unicase/u32-toupper-tests: New file.
36377         * tests/unicase/test-u32-toupper.c: New file.
36378
36379         Tests for module 'unicase/u16-toupper'.
36380         * modules/unicase/u16-toupper-tests: New file.
36381         * tests/unicase/test-u16-toupper.c: New file.
36382
36383         Tests for module 'unicase/u8-toupper'.
36384         * modules/unicase/u8-toupper-tests: New file.
36385         * tests/unicase/test-u8-toupper.c: New file.
36386
36387         New module 'unicase/u32-toupper'.
36388         * lib/unicase/u32-toupper.c: New file.
36389         * modules/unicase/u32-toupper: New file.
36390
36391         New module 'unicase/u16-toupper'.
36392         * lib/unicase/u16-toupper.c: New file.
36393         * modules/unicase/u16-toupper: New file.
36394
36395         New module 'unicase/u8-toupper'.
36396         * lib/unicase/u8-toupper.c: New file.
36397         * modules/unicase/u8-toupper: New file.
36398
36399         New module 'unicase/u32-casemap'.
36400         * lib/unicase/u32-casemap.c: New file.
36401         * modules/unicase/u32-casemap: New file.
36402
36403         New module 'unicase/u16-casemap'.
36404         * lib/unicase/u16-casemap.c: New file.
36405         * modules/unicase/u16-casemap: New file.
36406
36407         New module 'unicase/u8-casemap'.
36408         * lib/unicase/unicasemap.h: New file.
36409         * lib/unicase/u8-casemap.c: New file.
36410         * lib/unicase/u-casemap.h: New file.
36411         * modules/unicase/u8-casemap: New file.
36412
36413         New module 'unicase/special-casing'.
36414         * lib/unicase/special-casing.h: New file.
36415         * lib/unicase/special-casing.c: New file.
36416         * lib/unicase/special-casing-table.gperf: New file, generated by
36417         gen-uni-tables.c.
36418         * modules/unicase/special-casing: New file.
36419
36420         Tests for module 'unicase/locale-language'.
36421         * modules/unicase/locale-language-tests: New file.
36422         * tests/unicase/test-locale-language.sh: New file.
36423         * tests/unicase/test-locale-language.c: New file.
36424
36425         New module 'unicase/locale-language'.
36426         * lib/unicase/locale-language.c: New file.
36427         * lib/unicase/locale-languages.gperf: New file.
36428         * modules/unicase/locale-language: New file.
36429
36430         Generate more tables for case conversion and case folding.
36431         * lib/gen-uni-tables.c (SCC_*): New enum items.
36432         (struct special_casing_rule): New type.
36433         (casing_rules, num_casing_rules, allocated_casing_rules): New
36434         variables.
36435         (add_casing_rule, fill_casing_rules): New functions.
36436         (struct casefold_rule): New type.
36437         (casefolding_rules, num_casefolding_rules,
36438         allocated_casefolding_rules): New variables.
36439         (fill_casefolding_rules): New function.
36440         (unicode_casefold): New variable.
36441         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
36442         sort_casing_rules, output_casing_rules): New functions.
36443         (main): Accept to more arguments: SpecialCasing.txt and
36444         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
36445         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
36446         Output mapping for casefolding.
36447
36448         * lib/unicase.h: Include stdbool.h, uninorm.h.
36449         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
36450         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
36451         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
36452         arguments.
36453         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
36454         resultp arguments.
36455         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
36456         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
36457         resultp arguments.
36458         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
36459         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
36460         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
36461         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
36462         declarations.
36463         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
36464
36465 2009-03-08  Bruno Haible  <bruno@clisp.org>
36466
36467         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
36468         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
36469         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
36470         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
36471
36472 2009-03-07  Bruno Haible  <bruno@clisp.org>
36473
36474         Adjust u*_normcmp, u*_normcoll API.
36475         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
36476         u16_normcoll, u32_normcoll): Change failure conventions.
36477         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
36478         errno and return -1.
36479         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
36480
36481 2009-03-07  Bruno Haible  <bruno@clisp.org>
36482
36483         Tests for module 'uninorm/u32-normcoll'.
36484         * modules/uninorm/u32-normcoll-tests: New file.
36485         * tests/uninorm/test-u32-normcoll.c: New file.
36486
36487         Tests for module 'uninorm/u16-normcoll'.
36488         * modules/uninorm/u16-normcoll-tests: New file.
36489         * tests/uninorm/test-u16-normcoll.c: New file.
36490
36491         Tests for module 'uninorm/u8-normcoll'.
36492         * modules/uninorm/u8-normcoll-tests: New file.
36493         * tests/uninorm/test-u8-normcoll.c: New file.
36494
36495 2009-03-07  Bruno Haible  <bruno@clisp.org>
36496
36497         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
36498         tests/uninorm/test-u32-normcmp.c.
36499         * tests/uninorm/test-u32-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/u32-normcmp-tests (Files): Add
36504         tests/uninorm/test-u32-normcmp.h.
36505         (Depends-on): Remove uninorm/u32-normcmp.
36506
36507         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
36508         tests/uninorm/test-u16-normcmp.c.
36509         * tests/uninorm/test-u16-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/u16-normcmp-tests (Files): Add
36514         tests/uninorm/test-u16-normcmp.h.
36515         (Depends-on): Remove uninorm/u16-normcmp.
36516
36517         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
36518         tests/uninorm/test-u8-normcmp.c.
36519         * tests/uninorm/test-u8-normcmp.c: Include it.
36520         (test_nonascii): New function, extracted from main. Add some more
36521         tests.
36522         (main): Invoke test_ascii and test_nonascii.
36523         * modules/uninorm/u8-normcmp-tests (Files): Add
36524         tests/uninorm/test-u8-normcmp.h.
36525         (Depends-on): Remove uninorm/u8-normcmp.
36526
36527 2009-03-07  Bruno Haible  <bruno@clisp.org>
36528
36529         New module 'uninorm/u32-normcoll'.
36530         * lib/uninorm/u32-normcoll.c: New file.
36531         * modules/uninorm/u32-normcoll: New file.
36532
36533         New module 'uninorm/u16-normcoll'.
36534         * lib/uninorm/u16-normcoll.c: New file.
36535         * modules/uninorm/u16-normcoll: New file.
36536
36537         New module 'uninorm/u8-normcoll'.
36538         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
36539         declarations.
36540         * lib/uninorm/u8-normcoll.c: New file.
36541         * lib/uninorm/u-normcoll.h: New file.
36542         * modules/uninorm/u8-normcoll: New file.
36543
36544         New module 'uninorm/u32-normxfrm'.
36545         * lib/uninorm/u32-normxfrm.c: New file.
36546         * modules/uninorm/u32-normxfrm: New file.
36547
36548         New module 'uninorm/u16-normxfrm'.
36549         * lib/uninorm/u16-normxfrm.c: New file.
36550         * modules/uninorm/u16-normxfrm: New file.
36551
36552         New module 'uninorm/u8-normxfrm'.
36553         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
36554         declarations.
36555         * lib/uninorm/u8-normxfrm.c: New file.
36556         * lib/uninorm/u-normxfrm.h: New file.
36557         * modules/uninorm/u8-normxfrm: New file.
36558
36559 2009-03-07  Bruno Haible  <bruno@clisp.org>
36560
36561         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
36562         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
36563         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
36564
36565 2009-03-07  Bruno Haible  <bruno@clisp.org>
36566
36567         New module 'memxfrm'.
36568         * lib/memxfrm.h: New file.
36569         * lib/memxfrm.c: New file.
36570         * modules/memxfrm: New file.
36571
36572 2009-03-07  Bruno Haible  <bruno@clisp.org>
36573
36574         New module 'memcmp2'.
36575         * lib/memcmp2.h: New file.
36576         * lib/memcmp2.c: New file.
36577         * modules/memcmp2: New file.
36578
36579 2009-03-07  Bruno Haible  <bruno@clisp.org>
36580
36581         Tests for module 'uninorm/decomposing-form'.
36582         * modules/uninorm/decomposing-form-tests: New file.
36583         * tests/uninorm/test-decomposing-form.c: New file.
36584
36585         New module 'uninorm/decomposing-form'.
36586         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
36587         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
36588         Add 'decomposing_variant' field.
36589         * lib/uninorm/decomposing-form.c: New file.
36590         * lib/uninorm/nfc.c (uninorm_nfc): Update.
36591         * lib/uninorm/nfd.c (uninorm_nfd): Update.
36592         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
36593         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
36594         * modules/uninorm/decomposing-form: New file.
36595         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
36596         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
36597
36598 2009-03-07  Bruno Haible  <bruno@clisp.org>
36599
36600         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
36601         strings.
36602
36603 2009-03-06  Bruno Haible  <bruno@clisp.org>
36604
36605         Tests for module 'uninorm/u32-normcmp'.
36606         * tests/uninorm/test-u32-normcmp.c: New file.
36607         * modules/uninorm/u32-normcmp-tests: New file.
36608
36609         Tests for module 'uninorm/u16-normcmp'.
36610         * tests/uninorm/test-u16-normcmp.c: New file.
36611         * modules/uninorm/u16-normcmp-tests: New file.
36612
36613         Tests for module 'uninorm/u8-normcmp'.
36614         * tests/uninorm/test-u8-normcmp.c: New file.
36615         * modules/uninorm/u8-normcmp-tests: New file.
36616
36617         New module 'uninorm/u32-normcmp'.
36618         * lib/uninorm/u32-normcmp.c: New file.
36619         * modules/uninorm/u32-normcmp: New file.
36620
36621         New module 'uninorm/u16-normcmp'.
36622         * lib/uninorm/u16-normcmp.c: New file.
36623         * modules/uninorm/u16-normcmp: New file.
36624
36625         New module 'uninorm/u8-normcmp'.
36626         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
36627         declarations.
36628         * lib/uninorm/u8-normcmp.c: New file.
36629         * lib/uninorm/u-normcmp.h: New file.
36630         * modules/uninorm/u8-normcmp: New file.
36631
36632 2009-03-06  Bruno Haible  <bruno@clisp.org>
36633
36634         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
36635         Reported by Eric Blake.
36636
36637 2009-03-06  Eric Blake  <ebb9@byu.net>
36638             Bruno Haible  <bruno@clisp.org>
36639
36640         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
36641         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
36642         condition.
36643         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
36644         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
36645         condition.
36646         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
36647
36648 2009-03-06  Eric Blake  <ebb9@byu.net>
36649
36650         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
36651         to avoid compiler warnings.
36652         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
36653
36654 2009-03-05  Bruno Haible  <bruno@clisp.org>
36655
36656         * tests/test-ftell.c (main): Disable test beyond end of file on
36657         FreeMiNT.
36658         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
36659
36660 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
36661
36662         * lib/filevercmp.c: Move hidden files up in ordering.
36663         * tests/test-filevercmp.c: Add tests for hidden files.
36664
36665 2009-03-04  Bruno Haible  <bruno@clisp.org>
36666
36667         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
36668         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
36669         AM_CFLAGS.
36670         Reported by Simon Josefsson.
36671
36672 2009-03-03  Bruno Haible  <bruno@clisp.org>
36673
36674         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
36675         Reported by Simon Josefsson.
36676
36677         * doc/ld-version-script.texi: Update node reference.
36678
36679 2009-03-03  Bruno Haible  <bruno@clisp.org>
36680
36681         * modules/visibility (License): Change to 'unlimited'.
36682         Suggested by Simon Josefsson.
36683
36684 2009-03-03  Jim Meyering  <meyering@redhat.com>
36685
36686         unlinkdir: cannot_unlink_dir may modify process state
36687         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
36688         it's neither thread-safe nor appropriate for use in a library.
36689
36690 2009-03-03  Eric Blake  <ebb9@byu.net>
36691
36692         test-closein: silence test under Darwin
36693         * tests/test-closein.sh: Ignore stderr from cat, since we don't
36694         care if it dies from EPIPE or EBADF.
36695
36696 2009-03-03  Bruno Haible  <bruno@clisp.org>
36697
36698         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
36699         earlier.
36700         * doc/visibility.texi: Fix @node and @section.
36701
36702 2009-03-03  Simon Josefsson  <simon@josefsson.org>
36703
36704         * doc/gnulib.texi: Link to sections for ld version script and
36705         visibility.
36706         * doc/visibility.texi: Add @node and @section.
36707         * modules/ld-version-script: New module.
36708         * m4/ld-version-script.m4: New file.
36709         * doc/ld-version-script.texi: New file.
36710
36711 2009-03-02  David Lutterkort  <lutter@redhat.com>
36712
36713         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
36714         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36715
36716 2009-03-02  Bruno Haible  <bruno@clisp.org>
36717
36718         * doc/visibility.texi: Mention libtool's -export-symbols option.
36719
36720 2009-03-02  Jim Meyering  <meyering@redhat.com>
36721
36722         announce-gen: new option: --no-print-checksums
36723         * build-aux/announce-gen (usage): Describe it.
36724         (print_checksums): Print a newline here, not in the [*] footnote.
36725         (main): Honor it.
36726
36727 2009-03-01  Bruno Haible  <bruno@clisp.org>
36728
36729         Use socklen_t in the native Windows replacements prototypes.
36730         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
36731         instead of 'int'.
36732         * lib/getsockopt.c (rpl_getsockopt): Likewise.
36733         * lib/setsockopt.c (rpl_setsockopt): Likewise.
36734         * modules/getsockopt (Depends-on): Add socklen.
36735         * modules/setsockopt (Depends-on): Add socklen.
36736
36737 2009-03-01  Bruno Haible  <bruno@clisp.org>
36738
36739         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
36740         least 4.2.
36741
36742 2009-03-01  Eric Blake  <ebb9@byu.net>
36743             Bruno Haible  <bruno@clisp.org>
36744
36745         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
36746         error messages.
36747         * lib/wait-process.c (wait_subprocess): Omit error message about
36748         deadly signal sent to the child of termsigp != NULL.
36749
36750 2009-03-01  Eric Blake  <ebb9@byu.net>
36751
36752         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
36753
36754 2009-03-01  Bruno Haible  <bruno@clisp.org>
36755
36756         Avoid a gcc warning.
36757         * tests/test-sched.c (b): Make global.
36758         Reported by Eric Blake.
36759
36760 2009-01-19  Martin Lambers  <marlam@marlam.de>
36761
36762         Provide POSIX semantics for socket timeout options on W32.
36763         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
36764         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
36765         * modules/setsockopt: Depend on sys_time module for struct timeval.
36766         * modules/getsockopt: Depend on sys_time module for struct timeval.
36767
36768 2009-03-01  Simon Josefsson  <simon@josefsson.org>
36769
36770         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
36771         __USE_GNU, for consistency with netdb.in.h.
36772         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
36773
36774 2009-03-01  Bruno Haible  <bruno@clisp.org>
36775
36776         More support for FreeMiNT.
36777         * lib/fseeko.c (rpl_fseeko): Complete last commit.
36778         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
36779
36780 2009-03-01  Bruno Haible  <bruno@clisp.org>
36781
36782         More support for FreeMiNT.
36783         * lib/fpurge.c (fpurge): Correct last commit.
36784         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
36785
36786 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36787
36788         Fix unportable awk script in vc-list-files.
36789         * build-aux/vc-list-files: In the replacement awk script, use
36790         substr with a second argument of 1, not zero.
36791         Report by Simon Josefsson.
36792
36793 2009-02-28  Bruno Haible  <bruno@clisp.org>
36794
36795         More support for FreeMiNT.
36796         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
36797         to FreeMiNT today.
36798         * lib/fwriting.c (fwriting): Likewise.
36799         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
36800
36801 2009-02-28  Bruno Haible  <bruno@clisp.org>
36802
36803         * tests/test-freadseek.c (main): Disable test beyond end of file on
36804         FreeMiNT.
36805         * tests/test-ftello.c (main): Likewise.
36806         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
36807
36808 2009-02-28  Bruno Haible  <bruno@clisp.org>
36809
36810         Add tentative support for FreeMiNT.
36811         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
36812         * lib/fpurge.c (fpurge): Likewise.
36813         * lib/freadable.c (freadable): Likewise.
36814         * lib/freading.c (freading): Likewise.
36815         * lib/freadptr.c (freadptr): Likewise.
36816         * lib/freadseek.c (freadptrinc): Likewise.
36817         * lib/fseeko.c (rpl_fseeko): Likewise.
36818         * lib/fseterr.c (fseterr): Likewise.
36819         * lib/fwritable.c (fwritable): Likewise.
36820         * lib/fwriting.c (fwriting): Likewise.
36821         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
36822         Hourihane.
36823         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
36824
36825 2009-02-28  Bruno Haible  <bruno@clisp.org>
36826
36827         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
36828         SIGCHLD.
36829         Reported by Jim Meyering.
36830
36831 2009-02-28  Bruno Haible  <bruno@clisp.org>
36832
36833         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
36834         Mention the results of these tests on various platforms.
36835         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
36836         order.
36837         * doc/posix-functions/printf.texi: Likewise.
36838         * doc/posix-functions/snprintf.texi: Likewise.
36839         * doc/posix-functions/sprintf.texi: Likewise.
36840         * doc/posix-functions/vfprintf.texi: Likewise.
36841         * doc/posix-functions/vprintf.texi: Likewise.
36842         * doc/posix-functions/vsnprintf.texi: Likewise.
36843         * doc/posix-functions/vsprintf.texi: Likewise.
36844         * doc/glibc-functions/obstack_printf.texi: Likewise.
36845         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
36846
36847 2009-02-28  Bruno Haible  <bruno@clisp.org>
36848
36849         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
36850         Reported by Loïc Minier <lool@dooz.org>.
36851
36852 2009-02-27  Bruno Haible  <bruno@clisp.org>
36853
36854         * gnulib-tool (func_import): Make the sed expression used to create the
36855         sed script for updating the .gitignore file POSIX compliant.
36856         Reported by Eric Blake.
36857
36858 2009-02-27  Bruno Haible  <bruno@clisp.org>
36859
36860         * gnulib-tool (sed): Don't alias as "sed --posix".
36861         Reported by Eric Blake.
36862
36863 2009-02-27  Bruno Haible  <bruno@clisp.org>
36864
36865         Avoid test link errors.
36866         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
36867         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
36868         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
36869         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
36870         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36871
36872 2009-02-27  Bruno Haible  <bruno@clisp.org>
36873
36874         Avoid spurious "(cached)" in configure output.
36875         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
36876         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
36877         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
36878         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
36879         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
36880         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
36881         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
36882         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
36883         Reported by Eric Blake.
36884
36885 2009-02-27  Eric Blake  <ebb9@byu.net>
36886
36887         printf: fix regression in previous patch
36888         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
36889
36890 2009-02-27  Bruno Haible  <bruno@clisp.org>
36891
36892         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
36893         value.
36894         * lib/stdint.in.h: Likewise.
36895         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
36896
36897 2009-02-27  Eric Blake  <ebb9@byu.net>
36898
36899         doc: mention more functions added in cygwin 1.7.0
36900         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
36901         addition.
36902         * doc/posix-functions/open_wmemstream.texi: Likewise.
36903         * doc/posix-functions/wcsnlen.texi: Likewise.
36904         * doc/posix-functions/wcsnrtombs.texi: Likewise.
36905         * doc/posix-functions/wcstod.texi: Likewise.
36906         * doc/posix-functions/wcstof.texi: Likewise.
36907         * doc/posix-functions/wcstoimax.texi: Likewise.
36908         * doc/posix-functions/wcstok.texi: Likewise.
36909         * doc/posix-functions/wcstoumax.texi: Likewise.
36910
36911         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
36912         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
36913         * doc/posix-functions/fprintf.texi: Update.
36914         * doc/posix-functions/printf.texi: Update.
36915         * doc/posix-functions/snprintf.texi: Update.
36916         * doc/posix-functions/sprintf.texi: Update.
36917         * doc/posix-functions/vfprintf.texi: Update.
36918         * doc/posix-functions/vprintf.texi: Update.
36919         * doc/posix-functions/vsnprintf.texi: Update.
36920         * doc/posix-functions/vsprintf.texi: Update.
36921         * doc/glibc-functions/obstack_printf.texi: Update.
36922         * doc/glibc-functions/obstack_vprintf.texi: Update.
36923
36924 2009-02-26  Eric Blake  <ebb9@byu.net>
36925
36926         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
36927         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
36928         compilation bug by using runtime conversion.
36929         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
36930         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
36931         * modules/ceill-tests (Files): Use nan.h.
36932         * modules/floorl-tests (Files): Likewise.
36933         * modules/frexpl-tests (Files): Likewise.
36934         * modules/isnanl-tests (Files): Likewise.
36935         * modules/ldexpl-tests (Files): Likewise.
36936         * modules/roundl-tests (Files): Likewise.
36937         * modules/truncl-tests (Files): Likewise.
36938         * tests/test-ceill.c (main): Use a working NaN.
36939         * tests/test-floorl.c (main): Likewise.
36940         * tests/test-frexpl.c (main): Likewise.
36941         * tests/test-isnan.c (test_long_double): Likewise.
36942         * tests/test-isnanl.h (main): Likewise.
36943         * tests/test-ldexpl.h (main): Likewise.
36944         * tests/test-roundl.h (main): Likewise.
36945         * tests/test-truncl.h (main): Likewise.
36946         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
36947
36948 2009-02-26  Eric Blake  <ebb9@byu.net>
36949             Bruno Haible  <bruno@clisp.org>
36950
36951         Work around a *printf bug with %ls on Solaris.
36952         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
36953         precision is specified, sprintf stops converting the wide string
36954         argument when the number of bytes that have been produced by this
36955         conversion equals or exceeds the precision.
36956         * doc/posix-functions/fprintf.texi: Update.
36957         * doc/posix-functions/printf.texi: Update.
36958         * doc/posix-functions/snprintf.texi: Update.
36959         * doc/posix-functions/sprintf.texi: Update.
36960         * doc/posix-functions/vfprintf.texi: Update.
36961         * doc/posix-functions/vprintf.texi: Update.
36962         * doc/posix-functions/vsnprintf.texi: Update.
36963         * doc/posix-functions/vsprintf.texi: Update.
36964         * doc/glibc-functions/obstack_printf.texi: Update.
36965         * doc/glibc-functions/obstack_vprintf.texi: Update.
36966
36967 2009-02-26  Eric Blake  <ebb9@byu.net>
36968
36969         stdlib: favor compiler check of random.h
36970         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
36971         to avoid an ObjC random.h installed by Swarm.
36972
36973 2009-02-26  Bruno Haible  <bruno@clisp.org>
36974
36975         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
36976         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
36977         Reported by Gary V. Vaughan <gary@gnu.org>.
36978
36979 2009-02-26  Bruno Haible  <bruno@clisp.org>
36980
36981         Fix *printf behaviour regarding the %ls directive.
36982         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
36983         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
36984         NEED_PRINTF_DIRECTIVE_LS.
36985         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
36986         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
36987         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
36988         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
36989         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
36990         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
36991         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
36992         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
36993         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
36994         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
36995         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
36996         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
36997         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
36998         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
36999         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
37000         * doc/posix-functions/fprintf.texi: Update.
37001         * doc/posix-functions/printf.texi: Update.
37002         * doc/posix-functions/snprintf.texi: Update.
37003         * doc/posix-functions/sprintf.texi: Update.
37004         * doc/posix-functions/vfprintf.texi: Update.
37005         * doc/posix-functions/vprintf.texi: Update.
37006         * doc/posix-functions/vsnprintf.texi: Update.
37007         * doc/posix-functions/vsprintf.texi: Update.
37008         * doc/glibc-functions/obstack_printf.texi: Update.
37009         * doc/glibc-functions/obstack_vprintf.texi: Update.
37010         Reported by Eric Blake.
37011
37012 2009-02-25  Bruno Haible  <bruno@clisp.org>
37013
37014         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
37015         with known value.
37016         Reported by Gary V. Vaughan <gary@gnu.org>.
37017
37018 2009-02-25  Bruno Haible  <bruno@clisp.org>
37019
37020         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
37021         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
37022         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
37023         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
37024         Reported by Gary V. Vaughan <gary@gnu.org>.
37025
37026 2009-02-25  Bruno Haible  <bruno@clisp.org>
37027
37028         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
37029         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
37030         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
37031         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
37032         Reported by Gary V. Vaughan <gary@gnu.org>.
37033
37034 2009-02-25  Eric Blake  <ebb9@byu.net>
37035
37036         tests: skip fseek/ftell tests if ungetc is broken
37037         * m4/ungetc.m4: New file.
37038         * modules/fseek-tests: Split test, so ungetc dependency is
37039         separate from rest of test.
37040         * modules/fseeko-tests: Likewise.
37041         * modules/ftell-tests: Likewise.
37042         * modules/ftello-tests: Likewise.
37043         * tests/test-fseek.c (main): Isolate ungetc dependency.
37044         * tests/test-fseeko.c (main): Likewise.
37045         * tests/test-ftell.c (main): Likewise.
37046         * tests/test-ftello.c (main): Likewise.
37047         * tests/test-fseek2.sh: New file.
37048         * tests/test-fseeko2.sh: Likewise.
37049         * tests/test-ftell2.sh: Likewise.
37050         * tests/test-ftello2.sh: Likewise.
37051
37052 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
37053
37054         test-getaddrinfo: fix usage of skip return code 77
37055         * tests/test-gettaddrinfo.c: Return skip code 77 only
37056         for first occurance of skip (4x77 is not 77)
37057
37058 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
37059
37060         strtod: avoid C99 decl-after-statement
37061         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
37062
37063 2009-02-24  Eric Blake  <ebb9@byu.net>
37064
37065         strtod: detect HP-UX 11.31 bug
37066         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
37067         Reported by Gary V. Vaughan.
37068
37069 2009-02-23  Bruno Haible  <bruno@clisp.org>
37070
37071         Fix invalid read past end of memory block.
37072         * lib/vasnprintf.c (DCHAR_SET): Define.
37073         (local_wcslen): Define only when needed.
37074         (local_strnlen, local_wcsnlen): New functions.
37075         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
37076         directives that involve a conversion ourselves.
37077         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
37078         wcsnlen, mbrtowc, wcrtomb.
37079         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
37080         * tests/test-vasprintf-posix.c (test_function): Likewise.
37081         * tests/test-snprintf-posix.h (test_function): Likewise.
37082         * tests/test-sprintf-posix.h (test_function): Likewise.
37083         Reported by Ben Pfaff <blp@cs.stanford.edu>.
37084
37085 2009-02-22  Bruno Haible  <bruno@clisp.org>
37086
37087         Implement new clarified decomposition of Hangul syllables.
37088         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
37089         of type LTV, return only a pairwise decomposition.
37090         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
37091         Likewise.
37092         * tests/uninorm/test-decomposition.c (main): Updated expected result.
37093         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
37094         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
37095
37096 2009-02-22  Bruno Haible  <bruno@clisp.org>
37097
37098         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
37099         zero-length results and shrink excess allocated memory.
37100         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
37101         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
37102         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
37103         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
37104         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
37105         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
37106         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
37107         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
37108         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
37109         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
37110         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
37111         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
37112
37113 2009-02-21  Bruno Haible  <bruno@clisp.org>
37114
37115         * doc/gnulib.texi: Include safe-alloc.texi earlier.
37116         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
37117         spaces after a period. Put a space between a macro name and its
37118         argument list. Trivial rewordings.
37119         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
37120         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
37121         (main): Return 0 explicitly.
37122
37123 2009-02-21  Bruno Haible  <bruno@clisp.org>
37124
37125         Tests for module 'uninorm/filter'.
37126         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
37127         * modules/uninorm/filter-tests: New file.
37128
37129         New module 'uninorm/filter'.
37130         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
37131         uninorm_filter_flush, uninorm_filter_free): New declarations.
37132         * lib/uninorm/uninorm-filter.c: New file.
37133         * modules/uninorm/filter: New file.
37134
37135 2009-02-21  Bruno Haible  <bruno@clisp.org>
37136
37137         Tests for module 'uninorm/nfkc'.
37138         * tests/uninorm/test-nfkc.c: New file.
37139         * tests/uninorm/test-u8-nfkc.c: New file.
37140         * tests/uninorm/test-u16-nfkc.c: New file.
37141         * tests/uninorm/test-u32-nfkc.c: New file.
37142         * tests/uninorm/test-u32-nfkc-big.sh: New file.
37143         * tests/uninorm/test-u32-nfkc-big.c: New file.
37144         * modules/uninorm/nfkc-tests: New file.
37145
37146         New module 'uninorm/nfkc'.
37147         * lib/uninorm/nfkc.c: New file.
37148         * modules/uninorm/nfkc: New file.
37149
37150         Tests for module 'uninorm/nfkd'.
37151         * tests/uninorm/test-nfkd.c: New file.
37152         * tests/uninorm/test-u8-nfkd.c: New file.
37153         * tests/uninorm/test-u16-nfkd.c: New file.
37154         * tests/uninorm/test-u32-nfkd.c: New file.
37155         * tests/uninorm/test-u32-nfkd-big.sh: New file.
37156         * tests/uninorm/test-u32-nfkd-big.c: New file.
37157         * modules/uninorm/nfkd-tests: New file.
37158
37159         New module 'uninorm/nfkd'.
37160         * lib/uninorm/nfkd.c: New file.
37161         * modules/uninorm/nfkd: New file.
37162
37163         Tests for module 'uninorm/nfc'.
37164         * tests/uninorm/test-nfc.c: New file.
37165         * tests/uninorm/test-u8-nfc.c: New file.
37166         * tests/uninorm/test-u16-nfc.c: New file.
37167         * tests/uninorm/test-u32-nfc.c: New file.
37168         * tests/uninorm/test-u32-nfc-big.sh: New file.
37169         * tests/uninorm/test-u32-nfc-big.c: New file.
37170         * modules/uninorm/nfc-tests: New file.
37171
37172         New module 'uninorm/nfc'.
37173         * lib/uninorm/nfc.c: New file.
37174         * modules/uninorm/nfc: New file.
37175
37176         Tests for module 'uninorm/nfd'.
37177         * tests/uninorm/test-nfd.c: New file.
37178         * tests/uninorm/test-u8-nfd.c: New file.
37179         * tests/uninorm/test-u16-nfd.c: New file.
37180         * tests/uninorm/test-u32-nfd.c: New file.
37181         * tests/uninorm/test-u32-nfd-big.sh: New file.
37182         * tests/uninorm/test-u32-nfd-big.c: New file.
37183         * tests/uninorm/test-u32-normalize-big.h: New file.
37184         * tests/uninorm/test-u32-normalize-big.c: New file.
37185         * tests/uninorm/NormalizationTest.txt: New file, created from
37186         Unicode 5.1.0 NormalizationTest.txt.
37187         * modules/uninorm/nfd-tests: New file.
37188
37189         New module 'uninorm/nfd'.
37190         * lib/uninorm/nfd.c: New file.
37191         * modules/uninorm/nfd: New file.
37192
37193         New module 'uninorm/u32-normalize'.
37194         * lib/uninorm/u32-normalize.c: New file.
37195         * modules/uninorm/u32-normalize: New file.
37196
37197         New module 'uninorm/u16-normalize'.
37198         * lib/uninorm/u16-normalize.c: New file.
37199         * modules/uninorm/u16-normalize: New file.
37200
37201         New module 'uninorm/u8-normalize'.
37202         * lib/uninorm/u8-normalize.c: New file.
37203         * lib/uninorm/normalize-internal.h: New file.
37204         * lib/uninorm/u-normalize-internal.h: New file.
37205         * modules/uninorm/u8-normalize: New file.
37206
37207         New module 'uninorm/decompose-internal'.
37208         * lib/uninorm/decompose-internal.c: New file.
37209         * modules/uninorm/decompose-internal: New file.
37210
37211         Tests for module 'uninorm/composition'.
37212         * tests/uninorm/test-composition.c: New file.
37213         * modules/uninorm/composition-tests: New file.
37214
37215         New module 'uninorm/composition'.
37216         * lib/uninorm/composition.c: New file.
37217         * lib/uninorm/composition-table.gperf: New file, generated by
37218         gen-uni-tables.
37219         * modules/uninorm/composition: New file.
37220
37221         Tests for module 'uninorm/compat-decomposition'.
37222         * tests/uninorm/test-compat-decomposition.c: New file.
37223         * modules/uninorm/compat-decomposition-tests: New file.
37224
37225         New module 'uninorm/compat-decomposition'.
37226         * lib/uninorm/decompose-internal.h: New file.
37227         * lib/uninorm/compat-decomposition.c: New file.
37228         * modules/uninorm/compat-decomposition: New file.
37229
37230         Tests for module 'uninorm/canonical-decomposition'.
37231         * tests/uninorm/test-canonical-decomposition.c: New file.
37232         * modules/uninorm/canonical-decomposition-tests: New file.
37233
37234         New module 'uninorm/canonical-decomposition'.
37235         * lib/uninorm/canonical-decomposition.c: New file.
37236         * modules/uninorm/canonical-decomposition: New file.
37237
37238         Tests for module 'uninorm/decomposition'.
37239         * tests/uninorm/test-decomposition.c: New file.
37240         * modules/uninorm/decomposition-tests: New file.
37241
37242         New module 'uninorm/decomposition'.
37243         * lib/uninorm/decomposition.c: New file.
37244         * modules/uninorm/decomposition: New file.
37245
37246         New module 'uninorm/decomposition-table'.
37247         * lib/uninorm/decomposition-table.h: New file.
37248         * lib/uninorm/decomposition-table.c: New file.
37249         * lib/uninorm/decomposition-table1.h: New file, generated by
37250         gen-uni-tables.
37251         * lib/uninorm/decomposition-table2.h: New file, generated by
37252         gen-uni-tables.
37253         * modules/uninorm/decomposition-table: New file.
37254
37255         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
37256         (UC_DECOMP_*): New enumeration items.
37257         (get_decomposition): New function.
37258         (struct decomp_table): New type.
37259         (output_decomposition, output_decomposition_tables): New functions.
37260         (unicode_composition_exclusions): New variable.
37261         (fill_composition_exclusions, debug_output_composition_tables): New
37262         functions.
37263         (main): Accept one more argument. Invoke fill_composition_exclusions.
37264         Output decomposition and composition tables.
37265
37266         New module 'uninorm/base'.
37267         * lib/uninorm.h: New file.
37268         * lib/unictype.h: Update comment.
37269         * modules/uninorm/base: New file.
37270
37271 2009-02-21  David Lutterkort  <lutter@redhat.com>
37272
37273         Tests for module 'safe-alloc'.
37274         * tests/test-safe-alloc.c: New file.
37275         * modules/safe-alloc-tests: New file.
37276
37277         New module 'safe-alloc'.
37278         * lib/safe-alloc.h: New file.
37279         * lib/safe-alloc.c: New file.
37280         * m4/safe-alloc.m4: New file.
37281         * modules/safe-alloc: New file.
37282         * doc/safe-alloc.texi: New file.
37283         * doc/gnulib.texi: Include it.
37284         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
37285         safe-alloc.
37286
37287 2009-02-18  Bruno Haible  <bruno@clisp.org>
37288
37289         Fix link error on non-glibc systems.
37290         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
37291         variable.
37292         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37293
37294 2009-02-18  Jim Meyering  <meyering@redhat.com>
37295
37296         fts: avoid used-uninitialized error due to recent change
37297         * lib/fts.c (fts_read): Guard uses of the new member,
37298         parent->fts_n_dirs_remaining, since it's not relevant for
37299         the parent of a directory specified on the command-line.
37300
37301 2009-02-17  James Youngman  <jay@gnu.org>
37302             Bruno Haible  <bruno@clisp.org>
37303
37304         * m4/include_next.m4: Reformulate comment.
37305
37306 2009-02-16  Jim Meyering  <meyering@redhat.com>
37307
37308         fts: add #if guards so that the fts_lgpl module still builds
37309         * lib/fts.c: Guard just-added hash-table-using parts with
37310         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
37311         Reported by Simon Josefsson.
37312
37313 2009-02-15  Bruno Haible  <bruno@clisp.org>
37314
37315         * modules/array-mergesort-tests: New file.
37316         * tests/test-array-mergesort.c: New file.
37317
37318         New module 'array-mergesort'.
37319         * modules/array-mergesort: New file.
37320         * lib/array-mergesort.h: New file.
37321
37322 2009-02-15  Bruno Haible  <bruno@clisp.org>
37323
37324         Fix 2009-02-07 commit.
37325         * lib/gen-uni-tables.c (output_predicate, output_category,
37326         output_combclass, output_bidi_category, output_decimal_digit,
37327         output_digit, output_numeric, output_mirror, output_scripts,
37328         output_ident_category, output_simple_mapping): Fix format directives.
37329         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
37330
37331 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
37332
37333         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
37334         fixes are available from IBM.
37335
37336 2009-02-13  Jim Meyering  <meyering@redhat.com>
37337
37338         fts: arrange not to stat non-directories in more cases
37339         This makes GNU find (when it doesn't need to stat each file)
37340         *much* more efficient at traversing reiserfs file systems.
37341         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
37342         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
37343         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
37344         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
37345         (leaf_optimization_applies): New function.
37346         (LCO_hash, LCO_compare): New helper functions.
37347         (link_count_optimize_ok): New function.
37348         (fts_stat): Initialize new member (if dir).
37349         (fts_read): Decrement parent's fts_n_dirs_remaining count if
37350         we've just stat'ed a directory.  Skip the stat call when possible.
37351         ---
37352         Note this AFS-related exchange:
37353         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
37354         and note find's pioctl call in find/fstype.c.
37355         But that is necessary only if you want to enable the
37356         optimization for AFS, and for now, I don't.
37357
37358         fts: move a function definition "up" (no semantic change)
37359         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
37360         "up" to precede upcoming use of a related function.
37361
37362 2009-02-11  Jim Meyering  <meyering@redhat.com>
37363
37364         fts: correct internal computation of nlinks (optimization-related)
37365         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
37366         whether the current entry is a directory, so don't test it.
37367
37368 2009-02-10  Bruno Haible  <bruno@clisp.org>
37369
37370         Tests for module 'uniwbrk/ulc-wordbreaks'.
37371         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
37372         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
37373         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
37374
37375         Tests for module 'uniwbrk/u32-wordbreaks'.
37376         * modules/uniwbrk/u32-wordbreaks-tests: New file.
37377         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
37378
37379         Tests for module 'uniwbrk/u16-wordbreaks'.
37380         * modules/uniwbrk/u16-wordbreaks-tests: New file.
37381         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
37382
37383         Tests for module 'uniwbrk/u8-wordbreaks'.
37384         * modules/uniwbrk/u8-wordbreaks-tests: New file.
37385         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
37386
37387 2009-02-10  Bruno Haible  <bruno@clisp.org>
37388
37389         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
37390         property.
37391         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
37392         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
37393         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
37394
37395 2009-02-10  Simon Josefsson  <simon@josefsson.org>
37396
37397         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
37398         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
37399
37400 2009-02-10  Bruno Haible  <bruno@clisp.org>
37401
37402         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
37403         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
37404         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
37405         * lib/unilbrk/u8-possible-linebreaks.c: Update.
37406         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
37407         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
37408
37409 2009-02-09  Simon Josefsson  <simon@josefsson.org>
37410
37411         * lib/sockets.h (gl_fd_to_handle): New function.
37412
37413         * tests/test-sockets.c: Call gl_fd_to_handle.
37414
37415 2009-02-09  Bruno Haible  <bruno@clisp.org>
37416
37417         * doc/havelib.texi: Document the conventions on bi-arch systems.
37418
37419 2009-02-08  Bruno Haible  <bruno@clisp.org>
37420
37421         Document the AC_LIB_LINKFLAGS macro.
37422         * doc/havelib.texi: New file, mostly written on 2005-05-24.
37423         * doc/gnulib.texi: Include it.
37424
37425 2009-02-08  Bruno Haible  <bruno@clisp.org>
37426
37427         Fix wrong order of sections, compared to TOC.
37428         * doc/gnulib.texi: Include relocatable-maint.texi after the
37429         "Regular expressions" node, not before.
37430
37431 2009-02-08  Bruno Haible  <bruno@clisp.org>
37432
37433         Tests for module 'unicase/totitle'.
37434         * modules/unicase/totitle-tests: New file.
37435
37436         Tests for module 'unicase/tolower'.
37437         * modules/unicase/tolower-tests: New file.
37438
37439         Tests for module 'unicase/toupper'.
37440         * modules/unicase/toupper-tests: New file.
37441         * tests/unicase/test-mapping-part1.h: New file.
37442         * tests/unicase/test-mapping-part2.h: New file.
37443
37444         New module 'unicase/totitle'.
37445         * modules/unicase/totitle: New file.
37446         * lib/unicase/totitle.c: New file.
37447
37448         New module 'unicase/tolower'.
37449         * modules/unicase/tolower: New file.
37450         * lib/unicase/tolower.c: New file.
37451
37452         New module 'unicase/toupper'.
37453         * modules/unicase/toupper: New file.
37454         * lib/unicase/toupper.c: New file.
37455         * lib/unicase/simple-mapping.h: New file.
37456
37457         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
37458         (mapping_table): New structure.
37459         (output_simple_mapping): New function.
37460         (main): Invoke output_simple_mapping_test and output_simple_mapping.
37461         * modules/gen-uni-tables (Description): Update.
37462         * lib/unicase/toupper.h: New file, automatically generated by
37463         gen-uni-tables.
37464         * lib/unicase/tolower.h: New file, automatically generated by
37465         gen-uni-tables.
37466         * lib/unicase/totitle.h: New file, automatically generated by
37467         gen-uni-tables.
37468         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
37469         gen-uni-tables.
37470         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
37471         gen-uni-tables.
37472         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
37473         gen-uni-tables.
37474
37475         New module 'unicase/base'.
37476         * modules/unicase/base: New file.
37477         * lib/unicase.h: New file.
37478
37479 2009-02-08  Bruno Haible  <bruno@clisp.org>
37480
37481         New module 'uniwbrk/ulc-wordbreaks'.
37482         * modules/uniwbrk/ulc-wordbreaks: New file.
37483         * lib/uniwbrk/ulc-wordbreaks.c: New file.
37484
37485         New module 'uniwbrk/u32-wordbreaks'.
37486         * modules/uniwbrk/u32-wordbreaks: New file.
37487         * lib/uniwbrk/u32-wordbreaks.c: New file.
37488
37489         New module 'uniwbrk/u16-wordbreaks'.
37490         * modules/uniwbrk/u16-wordbreaks: New file.
37491         * lib/uniwbrk/u16-wordbreaks.c: New file.
37492
37493         New module 'uniwbrk/u8-wordbreaks'.
37494         * modules/uniwbrk/u8-wordbreaks: New file.
37495         * lib/uniwbrk/u8-wordbreaks.c: New file.
37496         * lib/uniwbrk/u-wordbreaks.h: New file.
37497
37498         New module 'uniwbrk/table'.
37499         * modules/uniwbrk/table: New file.
37500         * lib/uniwbrk/wbrktable.h: New file.
37501         * lib/uniwbrk/wbrktable.c: New file.
37502
37503         New module 'uniwbrk/wordbreak-property'.
37504         * modules/uniwbrk/wordbreak-property: New file.
37505         * lib/uniwbrk/wordbreak-property.c: New file.
37506
37507         * lib/gen-uni-tables.c (WBP_*): New enum items.
37508         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
37509         (unicode_org_wbp): New variable.
37510         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
37511         New functions.
37512         (wbp_table): New structure.
37513         (output_wbp, output_wbrk_tables): New functions.
37514         (main): Accept additional argument. Invoke fill_org_wbp,
37515         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
37516         output_wbrk_tables.
37517         * modules/gen-uni-tables (Description): Update.
37518         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
37519         gen-uni-tables.
37520
37521         New module 'uniwbrk/base'.
37522         * modules/uniwbrk/base: New file.
37523         * lib/uniwbrk.h: New file.
37524
37525 2009-02-08  Bruno Haible  <bruno@clisp.org>
37526
37527         Update to Unicode 5.1.0.
37528         * lib/gen-uni-tables.c (is_property_alphabetic): Include
37529         U+2185..U+2188.
37530         (is_property_default_ignorable_code_point): Don't include characters
37531         of category Cc or Cs and not-a-characters.
37532         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
37533         U+0D79, U+109E, U+109F, U+A60C.
37534         * lib/unictype/bidi_of.h: Regenerated.
37535         * lib/unictype/blocks.h: Regenerated.
37536         * lib/unictype/categ_C.h: Regenerated.
37537         * lib/unictype/categ_Cf.h: Regenerated.
37538         * lib/unictype/categ_Cn.h: Regenerated.
37539         * lib/unictype/categ_L.h: Regenerated.
37540         * lib/unictype/categ_Ll.h: Regenerated.
37541         * lib/unictype/categ_Lm.h: Regenerated.
37542         * lib/unictype/categ_Lo.h: Regenerated.
37543         * lib/unictype/categ_Lu.h: Regenerated.
37544         * lib/unictype/categ_M.h: Regenerated.
37545         * lib/unictype/categ_Mc.h: Regenerated.
37546         * lib/unictype/categ_Me.h: Regenerated.
37547         * lib/unictype/categ_Mn.h: Regenerated.
37548         * lib/unictype/categ_N.h: Regenerated.
37549         * lib/unictype/categ_Nd.h: Regenerated.
37550         * lib/unictype/categ_Nl.h: Regenerated.
37551         * lib/unictype/categ_No.h: Regenerated.
37552         * lib/unictype/categ_P.h: Regenerated.
37553         * lib/unictype/categ_Pd.h: Regenerated.
37554         * lib/unictype/categ_Pe.h: Regenerated.
37555         * lib/unictype/categ_Pf.h: Regenerated.
37556         * lib/unictype/categ_Pi.h: Regenerated.
37557         * lib/unictype/categ_Po.h: Regenerated.
37558         * lib/unictype/categ_Ps.h: Regenerated.
37559         * lib/unictype/categ_S.h: Regenerated.
37560         * lib/unictype/categ_Sk.h: Regenerated.
37561         * lib/unictype/categ_Sm.h: Regenerated.
37562         * lib/unictype/categ_So.h: Regenerated.
37563         * lib/unictype/categ_of.h: Regenerated.
37564         * lib/unictype/combining.h: Regenerated.
37565         * lib/unictype/ctype_alnum.h: Regenerated.
37566         * lib/unictype/ctype_alpha.h: Regenerated.
37567         * lib/unictype/ctype_graph.h: Regenerated.
37568         * lib/unictype/ctype_lower.h: Regenerated.
37569         * lib/unictype/ctype_print.h: Regenerated.
37570         * lib/unictype/ctype_punct.h: Regenerated.
37571         * lib/unictype/ctype_upper.h: Regenerated.
37572         * lib/unictype/decdigit.h: Regenerated.
37573         * lib/unictype/digit.h: Regenerated.
37574         * lib/unictype/mirror.h: Regenerated.
37575         * lib/unictype/numeric.h: Regenerated.
37576         * lib/unictype/pr_alphabetic.h: Regenerated.
37577         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
37578         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
37579         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
37580         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
37581         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
37582         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
37583         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
37584         * lib/unictype/pr_combining.h: Regenerated.
37585         * lib/unictype/pr_dash.h: Regenerated.
37586         * lib/unictype/pr_decimal_digit.h: Regenerated.
37587         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
37588         * lib/unictype/pr_deprecated.h: Regenerated.
37589         * lib/unictype/pr_diacritic.h: Regenerated.
37590         * lib/unictype/pr_extender.h: Regenerated.
37591         * lib/unictype/pr_format_control.h: Regenerated.
37592         * lib/unictype/pr_grapheme_base.h: Regenerated.
37593         * lib/unictype/pr_grapheme_extend.h: Regenerated.
37594         * lib/unictype/pr_grapheme_link.h: Regenerated.
37595         * lib/unictype/pr_id_continue.h: Regenerated.
37596         * lib/unictype/pr_id_start.h: Regenerated.
37597         * lib/unictype/pr_ideographic.h: Regenerated.
37598         * lib/unictype/pr_ignorable_control.h: Regenerated.
37599         * lib/unictype/pr_lowercase.h: Regenerated.
37600         * lib/unictype/pr_math.h: Regenerated.
37601         * lib/unictype/pr_numeric.h: Regenerated.
37602         * lib/unictype/pr_other_alphabetic.h: Regenerated.
37603         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
37604         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
37605         * lib/unictype/pr_other_id_continue.h: Regenerated.
37606         * lib/unictype/pr_other_lowercase.h: Regenerated.
37607         * lib/unictype/pr_other_math.h: Regenerated.
37608         * lib/unictype/pr_punctuation.h: Regenerated.
37609         * lib/unictype/pr_sentence_terminal.h: Regenerated.
37610         * lib/unictype/pr_soft_dotted.h: Regenerated.
37611         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
37612         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
37613         * lib/unictype/pr_unified_ideograph.h: Regenerated.
37614         * lib/unictype/pr_uppercase.h: Regenerated.
37615         * lib/unictype/pr_xid_continue.h: Regenerated.
37616         * lib/unictype/pr_xid_start.h: Regenerated.
37617         * lib/unictype/pr_zero_width.h: Regenerated.
37618         * lib/unictype/scripts.h: Regenerated.
37619         * lib/unictype/scripts_byname.gperf: Regenerated.
37620         * lib/unictype/sy_java_ident.h: Regenerated.
37621         * lib/unilbrk/lbrkprop1.h: Regenerated.
37622         * lib/unilbrk/lbrkprop2.h: Regenerated.
37623         * tests/unictype/test-categ_C.c: Regenerated.
37624         * tests/unictype/test-categ_Cf.c: Regenerated.
37625         * tests/unictype/test-categ_Cn.c: Regenerated.
37626         * tests/unictype/test-categ_L.c: Regenerated.
37627         * tests/unictype/test-categ_Ll.c: Regenerated.
37628         * tests/unictype/test-categ_Lm.c: Regenerated.
37629         * tests/unictype/test-categ_Lo.c: Regenerated.
37630         * tests/unictype/test-categ_Lu.c: Regenerated.
37631         * tests/unictype/test-categ_M.c: Regenerated.
37632         * tests/unictype/test-categ_Mc.c: Regenerated.
37633         * tests/unictype/test-categ_Me.c: Regenerated.
37634         * tests/unictype/test-categ_Mn.c: Regenerated.
37635         * tests/unictype/test-categ_N.c: Regenerated.
37636         * tests/unictype/test-categ_Nd.c: Regenerated.
37637         * tests/unictype/test-categ_Nl.c: Regenerated.
37638         * tests/unictype/test-categ_No.c: Regenerated.
37639         * tests/unictype/test-categ_P.c: Regenerated.
37640         * tests/unictype/test-categ_Pd.c: Regenerated.
37641         * tests/unictype/test-categ_Pe.c: Regenerated.
37642         * tests/unictype/test-categ_Pf.c: Regenerated.
37643         * tests/unictype/test-categ_Pi.c: Regenerated.
37644         * tests/unictype/test-categ_Po.c: Regenerated.
37645         * tests/unictype/test-categ_Ps.c: Regenerated.
37646         * tests/unictype/test-categ_S.c: Regenerated.
37647         * tests/unictype/test-categ_Sk.c: Regenerated.
37648         * tests/unictype/test-categ_Sm.c: Regenerated.
37649         * tests/unictype/test-categ_So.c: Regenerated.
37650         * tests/unictype/test-ctype_alnum.c: Regenerated.
37651         * tests/unictype/test-ctype_alpha.c: Regenerated.
37652         * tests/unictype/test-ctype_graph.c: Regenerated.
37653         * tests/unictype/test-ctype_lower.c: Regenerated.
37654         * tests/unictype/test-ctype_print.c: Regenerated.
37655         * tests/unictype/test-ctype_punct.c: Regenerated.
37656         * tests/unictype/test-ctype_upper.c: Regenerated.
37657         * tests/unictype/test-decdigit.h: Regenerated.
37658         * tests/unictype/test-digit.h: Regenerated.
37659         * tests/unictype/test-numeric.h: Regenerated.
37660         * tests/unictype/test-pr_alphabetic.c: Regenerated.
37661         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
37662         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
37663         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
37664         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
37665         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
37666         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
37667         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
37668         * tests/unictype/test-pr_combining.c: Regenerated.
37669         * tests/unictype/test-pr_dash.c: Regenerated.
37670         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
37671         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
37672         * tests/unictype/test-pr_deprecated.c: Regenerated.
37673         * tests/unictype/test-pr_diacritic.c: Regenerated.
37674         * tests/unictype/test-pr_extender.c: Regenerated.
37675         * tests/unictype/test-pr_format_control.c: Regenerated.
37676         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
37677         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
37678         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
37679         * tests/unictype/test-pr_id_continue.c: Regenerated.
37680         * tests/unictype/test-pr_id_start.c: Regenerated.
37681         * tests/unictype/test-pr_ideographic.c: Regenerated.
37682         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
37683         * tests/unictype/test-pr_lowercase.c: Regenerated.
37684         * tests/unictype/test-pr_math.c: Regenerated.
37685         * tests/unictype/test-pr_numeric.c: Regenerated.
37686         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
37687         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
37688         Regenerated.
37689         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
37690         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
37691         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
37692         * tests/unictype/test-pr_other_math.c: Regenerated.
37693         * tests/unictype/test-pr_punctuation.c: Regenerated.
37694         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
37695         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
37696         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
37697         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
37698         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
37699         * tests/unictype/test-pr_uppercase.c: Regenerated.
37700         * tests/unictype/test-pr_xid_continue.c: Regenerated.
37701         * tests/unictype/test-pr_xid_start.c: Regenerated.
37702         * tests/unictype/test-pr_zero_width.c: Regenerated.
37703
37704         Update to Unicode 5.1.0.
37705         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
37706         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
37707         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
37708         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
37709         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
37710         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
37711         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
37712         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
37713         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
37714         (nonspacing_table_ind): Update.
37715         * tests/uniwidth/test-uc_width2.sh: Update expected result.
37716
37717         Update to Unicode 5.1.0.
37718         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
37719         code transform.
37720         * lib/uniname/uniname.c (unicode_character_name,
37721         unicode_name_character): Add the range 0x1Fxxx to the code transform.
37722         * lib/uniname/uninames.h: Regenerated.
37723         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
37724
37725 2009-02-07  Bruno Haible  <bruno@clisp.org>
37726
37727         Merge gen-ctype and gen-lbrk into a single program.
37728         * lib/gen-uni-tables.c: New file, incorporating
37729         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
37730         Add directory prefixes to the names of the generated files.
37731         * lib/unictype/gen-ctype.c: Remove file.
37732         * lib/unilbrk/gen-lbrk.c: Remove file.
37733         * modules/gen-uni-tables: New file.
37734         * modules/unictype/gen-ctype: Remove file.
37735         * modules/unilbrk/gen-lbrk: Remove file.
37736
37737 2009-02-07  Bruno Haible  <bruno@clisp.org>
37738
37739         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
37740
37741         New module 'unistr/u32-strcoll'.
37742         * modules/unistr/u32-strcoll: New file.
37743         * lib/unistr/u32-strcoll.c: New file.
37744
37745         New module 'unistr/u16-strcoll'.
37746         * modules/unistr/u16-strcoll: New file.
37747         * lib/unistr/u16-strcoll.c: New file.
37748
37749         New module 'unistr/u8-strcoll'.
37750         * modules/unistr/u8-strcoll: New file.
37751         * lib/unistr/u8-strcoll.c: New file.
37752         * lib/unistr/u-strcoll.h: New file.
37753
37754 2009-02-07  Bruno Haible  <bruno@clisp.org>
37755
37756         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
37757         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
37758         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
37759         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
37760         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
37761         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
37762
37763 2009-02-07  Bruno Haible  <bruno@clisp.org>
37764
37765         Make 64-bit clean.
37766         * lib/unictype/gen-ctype.c (output_predicate, output_category,
37767         output_combclass, output_bidi_category, output_decimal_digit,
37768         output_digit, output_numeric, output_mirror, output_scripts,
37769         output_ident_category): Use proper width specifier in format strings.
37770
37771 2009-02-07  Bruno Haible  <bruno@clisp.org>
37772
37773         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
37774         failure behaviour.
37775
37776 2009-02-07  Jim Meyering  <meyering@redhat.com>
37777
37778         regex: avoid compilation failure with upcoming gcc-4.4
37779         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
37780         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
37781         "... error: integer overflow in preprocessor expression".
37782
37783 2009-02-05  Ben Pfaff  <blp@gnu.org>
37784
37785         Fix link errors on Windows when close module is used.
37786         * modules/close: Add $(LIB_CLOSE) to Link section.
37787         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
37788         $(LIB_CLOSE) on Windows.
37789
37790 2009-02-05  Jim Meyering  <meyering@redhat.com>
37791
37792         still avoid unused-parameter warnings, but do it cleanly
37793         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
37794         (get_fs_usage): Cast to void instead.
37795         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
37796         (dev_from_mount_options, read_file_system_list): Cast to void.
37797         Prompted by Bruno Haible.
37798
37799 2009-02-04  Jim Meyering  <meyering@redhat.com>
37800
37801         fsusage.c: correct copyright year
37802         * lib/fsusage.c: Reflect year in which the change is pushed into
37803
37804         avoid misc. warnings
37805         * lib/fsusage.c (UNUSED_PARAM): Define.
37806         (get_fs_usage): Mark parameter "disk" as unused.
37807         * lib/getugroups.c (getgrent): Use "void" in prototype.
37808         * lib/mountlist.c: Mark unused parameters.
37809         (read_file_system_list): Declare a local with "const".
37810         * lib/nanosleep.c (getnow): Declare static.
37811         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
37812
37813         dirfd: set errno upon failure
37814         * lib/dirfd.c: Include <errno.h>.
37815         Set errno to ENOTSUP when returning -1.
37816         * modules/dirfd (Depends-on): Add errno.
37817         Suggested by John Kodis <kodis@comcast.net>.
37818
37819 2009-02-01  Bruno Haible  <bruno@clisp.org>
37820
37821         Don't assume sizeof (long) >= sizeof (void *).
37822         * lib/memcmp.c: Include stdint.h.
37823         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
37824         srcp2 to 'const byte *'.
37825         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
37826         types to uintptr_t.
37827         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
37828         * modules/memcmp (Depends-on): Add stdint.
37829         Reported by Ozkan Sezer <sezeroz@gmail.com>.
37830
37831 2009-01-30  Eric Blake  <ebb9@byu.net>
37832
37833         fix more require-before-expand issues
37834         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
37835         expand, AC_PROG_AWK.
37836         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
37837
37838 2009-01-28  Eric Blake  <ebb9@byu.net>
37839
37840         version-etc: use consistent URL formatting
37841         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
37842         Improve formatting.  Use fputs for string without %.
37843
37844 2009-01-28  Jim Meyering  <meyering@redhat.com>
37845
37846         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
37847         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
37848         "underquoted definition of NAME" from autoconf-2.59.
37849
37850 2009-01-28  Bruno Haible  <bruno@clisp.org>
37851
37852         * doc/gnulib.texi: Add "Obsolete modules" to index.
37853
37854 2009-01-28  Jim Meyering  <meyering@redhat.com>
37855
37856         useless-if-before-free: recognize more variants
37857         * build-aux/useless-if-before-free: Also recognize e.g.,
37858         if (NULL != p) free (p);
37859
37860 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
37861
37862         test-getaddrinfo: skip (don't fail) this test when there's no network
37863         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
37864         on the presumption that it means you lack network access.
37865
37866 2009-01-26  Jim Meyering  <meyering@redhat.com>
37867
37868         fflush: avoid warnings on modern systems
37869         * lib/fflush.c (rpl_fflush): Move declarations of locals,
37870         pos and result, into scopes where they're used.
37871
37872 2009-01-26  Eric Blake  <ebb9@byu.net>
37873
37874         Silence warning reintroduced by recent extensions patch.
37875         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
37876         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
37877         autoconf.
37878
37879         Backport improved autoconf semantics of AC_DEFUN_ONCE.
37880         * m4/00gnulib.m4: New file.
37881         * gnulib-tool (func_get_filelist): Always use it.
37882         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
37883         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
37884
37885 2009-01-25  Bruno Haible  <bruno@clisp.org>
37886
37887         Make test-quotearg work on MacOS X and AIX.
37888         * tests/test-quotearg.sh: New file.
37889         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
37890         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
37891         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
37892         include <libintl.h>.
37893         (fake_locale): Remove variable.
37894         (gettext, dgettext, dcgettext): Remove functions.
37895         (main): Instead of setting a fake locale, set a real locale. Call
37896         textdomain and bindtextdomain.
37897         * modules/quotearg-tests (Files): Add the new files.
37898         (Depends-on): Add gettext, setenv, unsetenv.
37899         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
37900         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
37901         Augment TESTS_ENVIRONMENT.
37902
37903 2009-01-25  Bruno Haible  <bruno@clisp.org>
37904
37905         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
37906         fr_FR.ISO8859-1 locale on MacOS X.
37907         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
37908         ja_JP.eucJP locale on MacOS X.
37909         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
37910         zh_CN.GB18030 locale on MacOS X.
37911
37912 2009-01-25  Bruno Haible  <bruno@clisp.org>
37913
37914         Avoid link errors on MacOS X 10.3.
37915         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
37916         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
37917
37918 2009-01-25  Bruno Haible  <bruno@clisp.org>
37919
37920         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
37921         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
37922         * modules/pipe (Files): Remove m4/posix_spawn.m4.
37923         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
37924         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
37925         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
37926         posix_spawnattr_init, posix_spawnattr_setsigmask,
37927         posix_spawnattr_setflags, posix_spawnattr_destroy.
37928
37929         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
37930         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
37931         * modules/execute (Files): Remove m4/posix_spawn.m4.
37932         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
37933         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
37934         posix_spawnattr_init, posix_spawnattr_setsigmask,
37935         posix_spawnattr_setflags, posix_spawnattr_destroy.
37936
37937 2009-01-25  Bruno Haible  <bruno@clisp.org>
37938
37939         * lib/glthread/threadlib.c: Include <stdlib.h>.
37940
37941 2009-01-25  Bruno Haible  <bruno@clisp.org>
37942
37943         * lib/glthread/threadlib.c (dummy): New declaration.
37944
37945 2009-01-25  Bruno Haible  <bruno@clisp.org>
37946
37947         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
37948         multibyte characters also for the GB18030 encoding. Don't crash when
37949         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
37950
37951 2009-01-25  Bruno Haible  <bruno@clisp.org>
37952
37953         Avoid redefining 'struct random_data' on OSF/1 5.1.
37954         * lib/stdlib.in.h: Include <random.h> if it exists.
37955         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
37956         HAVE_RANDOM_H. Include <random.h> when testing whether
37957         'struct random_data' exists.
37958         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
37959
37960 2009-01-25  Bruno Haible  <bruno@clisp.org>
37961
37962         Don't install charset.alias on MacOS X >= 10.3.
37963         * lib/localcharset.c (DARWIN7): New macro.
37964         (get_charset_aliases): Hardcode the result for Darwin7.
37965         * modules/localcharset (install-exec-local): Don't install
37966         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
37967
37968 2009-01-25  Bruno Haible  <bruno@clisp.org>
37969
37970         Don't install charset.alias on mingw and Cygwin.
37971         * modules/localcharset (install-exec-local): Don't install
37972         charset.alias on mingw and Cygwin, if the file does not yet exist.
37973         The result for these platforms is hardcoded in localcharset.c.
37974
37975 2009-01-25  Bruno Haible  <bruno@clisp.org>
37976
37977         Make it possible again to use AC_GNU_SOURCE together with gnulib.
37978         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
37979         before requiring AC_USE_SYSTEM_EXTENSIONS.
37980
37981 2009-01-25  Jim Meyering  <meyering@redhat.com>
37982
37983         c-strtod: avoid warnings
37984         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
37985         "assignment discards qualifiers from pointer target type" warnings.
37986
37987 2009-01-24  Bruno Haible  <bruno@clisp.org>
37988
37989         Add support for non-UTF-8 locales on MacOS X.
37990         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
37991         canonical encodings. For Darwin 7 and newer, don't map traditional
37992         encodings to UTF-8.
37993         Reported by Vincent Lefevre <vincent@vinc17.org>
37994         at <http://savannah.gnu.org/bugs/?25235>.
37995
37996 2009-01-24  Bruno Haible  <bruno@clisp.org>
37997
37998         * doc/gnulib.texi (Obsolete modules): New section.
37999         Reported by Mike Frysinger <vapier@gentoo.org>.
38000
38001 2009-01-24  Bruno Haible  <bruno@clisp.org>
38002
38003         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
38004         (%.dvi): New rule.
38005
38006 2009-01-24  Bruno Haible  <bruno@clisp.org>
38007
38008         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
38009         Reported by Eric Blake.
38010
38011 2009-01-24  Bruno Haible  <bruno@clisp.org>
38012
38013         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
38014         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
38015         Reported by Gary V. Vaughan <gary@gnu.org>.
38016
38017 2009-01-24  Bruno Haible  <bruno@clisp.org>
38018
38019         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
38020
38021 2009-01-23  Bruno Haible  <bruno@clisp.org>
38022
38023         Make c-strtod, c-strtold usable in libraries.
38024         * lib/c-strtod.c: Include string.h instead of xalloc.h.
38025         (C_STRTOD): Call strdup instead of xstrdup.
38026         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
38027         * modules/c-strtold (Depends-on): Likewise.
38028         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
38029         * NEWS: Mention the change.
38030         Reported by Michael Gold <mgold@ncf.ca>.
38031
38032 2009-01-23  Jim Meyering  <meyering@redhat.com>
38033
38034         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
38035         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
38036         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
38037
38038 2009-01-23  Simon Josefsson  <simon@josefsson.org>
38039
38040         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
38041         GNU CoreUtils.
38042         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
38043         * modules/version-etc (Description): Update.
38044
38045 2009-01-22  Bruno Haible  <bruno@clisp.org>
38046
38047         Cache the C locale object.
38048         * lib/c-strtod.c (c_locale_cache): New variable.
38049         (c_locale): New function.
38050         (C_STRTOD): Use it, and don't call freelocale.
38051         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
38052         Suggested by Paolo Bonzini.
38053
38054 2009-01-21  Bruno Haible  <bruno@clisp.org>
38055
38056         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
38057         conditions other than overflow.
38058
38059 2009-01-21  Bruno Haible  <bruno@clisp.org>
38060
38061         * lib/c-strtod.c: Include errno.h.
38062         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
38063         value from STRTOD_L and STRTOD.
38064
38065 2009-01-21  Bruno Haible  <bruno@clisp.org>
38066         and Jim Meyering  <meyering@redhat.com>
38067
38068         nanosleep: skip configure test (fail it) for apple universal builds
38069         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
38070         universal builds, assume that nanosleep does not work.
38071         * modules/nanosleep (Depends-on): Add multiarch.
38072
38073         mktime: skip configure test (fail it) for apple universal builds
38074         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
38075         universal builds, assume that mktime does not work.
38076         * modules/mktime (Depends-on): Add multiarch.
38077
38078 2009-01-21  Eric Blake  <ebb9@byu.net>
38079
38080         multiarch: avoid expand-before-require warning
38081         * modules/multiarch (configure.ac): Require, rather than expand,
38082         gl_MULTIARCH.
38083         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
38084         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
38085         enforce that all clients require it.  Partial reversion of
38086         2008-12-29 patch.
38087
38088         error: avoid expand-before-require warning
38089         * modules/errno (configure.ac): Require, rather than expand,
38090         gl_HEADER_ERRNO_H.
38091         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
38092         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
38093         enforce that all clients require it.
38094
38095         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
38096         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
38097         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
38098         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
38099
38100 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
38101
38102         Revert:
38103         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
38104
38105         regex: do not depend on obsolete modules.
38106         * modules/regex: Remove memcmp and memmove.
38107
38108 2009-01-20  Bruno Haible  <bruno@clisp.org>
38109
38110         Make the 'link' module link on Windows NT 4.
38111         * lib/link.c (_WIN32_WINNT): Don't define.
38112         (CreateHardLinkFuncType): New type.
38113         (CreateHardLinkFunc, initialized): New variables.
38114         (initialize): New function.
38115         (link): Invoke CreateHardLink indirectly through the function pointer.
38116
38117 2009-01-20  Bruno Haible  <bruno@clisp.org>
38118
38119         Fix compilation failure on mingw.
38120         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
38121
38122 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
38123
38124         * doc/c-strtod.texi: Mention a couple of restrictions.
38125
38126 2009-01-20  Jim Meyering  <meyering@redhat.com>
38127
38128         gettimeofday: move more declarations out of functions
38129         * lib/gettimeofday.c: Move extern declarations of tzset and
38130         gmtime out of containing functions.  Prompted by Bruno Haible.
38131
38132 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
38133
38134         regex: do not depend on obsolete modules.
38135         * modules/regex: Remove memcmp and memmove.
38136
38137 2009-01-19  Bruno Haible  <bruno@clisp.org>
38138
38139         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
38140         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
38141         gl_BIGENDIAN, not AC_C_BIGENDIAN.
38142         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
38143         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
38144
38145 2009-01-19  Bruno Haible  <bruno@clisp.org>
38146
38147         * tests/test-link.c: Include <errno.h>.
38148         (main): Exit with code 77 when a hard link cannot be created due to
38149         the file system.
38150         * tests/test-link.sh: Skip test when a hard link cannot be created due
38151         to the file system.
38152         Suggested by Eric Blake.
38153
38154 2009-01-19  Martin Lambers  <marlam@marlam.de>
38155
38156         * modules/link-tests: New file.
38157         * tests/test-link.sh: New file.
38158         * tests/test-link.c: New file.
38159
38160 2009-01-19  Eric Blake  <ebb9@byu.net>
38161
38162         doc: mention another function added in cygwin 1.7.0
38163         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
38164         Another new function in cygwin 1.7.
38165
38166 2009-01-19  Bruno Haible  <bruno@clisp.org>
38167
38168         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
38169         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
38170         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
38171         gl_BIGENDIAN, not AC_C_BIGENDIAN.
38172         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
38173         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
38174         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
38175         * m4/md4.m4 (gl_MD4): Likewise.
38176         * m4/md5.m4 (gl_MD5): Likewise.
38177         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
38178         * m4/sha1.m4 (gl_SHA1): Likewise.
38179         * m4/sha256.m4 (gl_SHA256): Likewise.
38180         * m4/sha512.m4 (gl_SHA512): Likewise.
38181
38182 2009-01-19  Bruno Haible  <bruno@clisp.org>
38183
38184         * modules/uniname/uniname-tests (Depends-on): Add progname.
38185         * tests/uniname/test-uninames.c: Include progname.h.
38186         (main): Call set_program_name.
38187
38188         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
38189         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
38190         (main): Call set_program_name.
38191
38192         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
38193         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
38194         (main): Call set_program_name.
38195
38196         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
38197         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
38198         (main): Call set_program_name.
38199
38200         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
38201         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
38202         (main): Call set_program_name.
38203
38204         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
38205         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
38206         (main): Call set_program_name.
38207
38208         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
38209         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
38210         (main): Call set_program_name.
38211
38212         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
38213         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
38214         (main): Call set_program_name.
38215
38216         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
38217         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
38218         (main): Call set_program_name.
38219
38220 2009-01-19  Eric Blake  <ebb9@byu.net>
38221
38222         test-unistd: test previous patch
38223         * tests/test-unistd.c: Test *_FILENO macros.
38224
38225         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
38226         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
38227         Guarantee a definition.
38228         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
38229         * modules/unistd-safer (Depends-on): Add dependency on unistd.
38230         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
38231         * lib/dup-safer.c (STDERR_FILENO): Likewise.
38232         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
38233         Likewise.
38234         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
38235         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
38236         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
38237         Likewise.
38238         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
38239         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
38240         (STDERR_FILENO): Likewise.
38241         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
38242         (STDERR_FILENO): Likewise.
38243         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
38244         (STDERR_FILENO): Likewise.
38245         Reported by Elbert Pol.
38246
38247 2009-01-19  Eric Blake  <ebb9@byu.net>
38248
38249         doc: mention more functions added in cygwin 1.7.0
38250         * doc/posix-functions/abort.texi (abort): Update wording related
38251         to cygwin.
38252         * doc/posix-functions/daylight.texi (daylight): Likewise.
38253         * doc/posix-functions/optarg.texi (optarg): Likewise.
38254         * doc/posix-functions/optarg.texi (opterr): Likewise.
38255         * doc/posix-functions/optarg.texi (optind): Likewise.
38256         * doc/posix-functions/optarg.texi (optopt): Likewise.
38257         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
38258         worked in 1.5.x, and was withdrawn in 1.7.
38259         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
38260         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
38261         cygwin versions.
38262         * doc/posix-functions/perror.texi (perror): Likewise.
38263         * doc/posix-functions/printf.texi (printf): Likewise.
38264         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
38265         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
38266         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
38267         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
38268         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
38269         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
38270         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
38271         Likewise.
38272         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
38273         Likewise.
38274         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
38275         this function.
38276         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
38277         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
38278         Likewise.
38279         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
38280         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
38281         * doc/posix-functions/confstr.texi (confstr): Likewise.
38282         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
38283         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
38284         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
38285         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
38286         * doc/posix-functions/fputws.texi (fputws): Likewise.
38287         * doc/posix-functions/fwide.texi (fwide): Likewise.
38288         * doc/posix-functions/getwc.texi (getwc): Likewise.
38289         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
38290         * doc/posix-functions/putwc.texi (putwc): Likewise.
38291         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
38292         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
38293         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
38294         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
38295         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
38296         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
38297         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
38298         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
38299         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
38300         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
38301         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
38302
38303 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
38304
38305         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
38306         * lib/ioctl.c: Include <sys/ioctl.h>.
38307
38308 2009-01-19  Simon Josefsson  <simon@josefsson.org>
38309
38310         * modules/getdate-tests (Depends-on): Add progname.
38311         * tests/test-getdate.c: Use progname module, to avoid link errors
38312         on non-glibc systems.
38313
38314 2009-01-18  Simon Josefsson  <simon@josefsson.org>
38315
38316         * modules/filenamecat-tests (Depends-on): Add progname.
38317         * modules/fstrcmp-tests (Depends-on): Likewise.
38318
38319         * tests/test-filenamecat.c: Use progname module, to avoid link
38320         errors on non-glibc systems.
38321         * tests/test-fstrcmp.c: Likewise.
38322
38323 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
38324
38325         gettimeofday: avoid warning: nested extern declaration of 'localtime'
38326         * lib/gettimeofday.c: Move extern declaration out of function.
38327
38328 2009-01-18  Bruno Haible  <bruno@clisp.org>
38329
38330         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
38331         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
38332         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
38333
38334 2009-01-18  Bruno Haible  <bruno@clisp.org>
38335
38336         * lib/strftime.c (MEMPCPY): Remove unused macro.
38337         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
38338
38339 2009-01-18  Martin Lambers  <marlam@marlam.de>
38340
38341         New module 'link'.
38342         * lib/unistd.in.h (link): New declaration.
38343         * lib/link.c: New file.
38344         * m4/link.m4: New file.
38345         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
38346         HAVE_LINK.
38347         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
38348         * modules/link: New file.
38349         * doc/posix-functions/link.texi: Mention the new module.
38350
38351 2009-01-18  Bruno Haible  <bruno@clisp.org>
38352
38353         * tests/test-avltree_list.c (main): Call set_program_name.
38354         * tests/test-avltree_oset.c (main): Likewise.
38355         * tests/test-obstack-printf.c: Include progname.h.
38356         (main): Call set_program_name.
38357         * tests/test-quotearg.c: Include progname.h.
38358         (main): Call set_program_name.
38359         * tests/test-xmemdup0.c: Include progname.h.
38360         (main): Call set_program_name.
38361
38362 2009-01-18  Bruno Haible  <bruno@clisp.org>
38363
38364         New module 'alphasort'.
38365         * lib/dirent.in.h (alphasort): New declaration.
38366         * lib/alphasort.c: New file, from glibc with modifications.
38367         * m4/alphasort.m4: New file.
38368         * modules/alphasort: New file.
38369         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
38370         HAVE_ALPHASORT.
38371         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
38372         HAVE_ALPHASORT.
38373         * doc/posix-functions/alphasort.texi: Mention the new module and the
38374         portability problems.
38375
38376 2009-01-18  Bruno Haible  <bruno@clisp.org>
38377
38378         New module 'scandir'.
38379         * lib/dirent.in.h (scandir): New declaration.
38380         * lib/scandir.c: New file, from glibc with modifications.
38381         * m4/scandir.m4: New file.
38382         * modules/scandir: New file.
38383         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
38384         HAVE_SCANDIR.
38385         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
38386         HAVE_SCANDIR.
38387         * doc/posix-functions/scandir.texi: Mention the new module and the
38388         portability problems.
38389
38390 2009-01-17  Bruno Haible  <bruno@clisp.org>
38391
38392         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
38393         Update documentation.
38394         (func_remove_suffix): Escape all dots in the suffix. Update
38395         documentation.
38396         (func_filter_filelist): Update documentation.
38397         Reported by Ralf Wildenhues.
38398
38399 2009-01-17  Bruno Haible  <bruno@clisp.org>
38400
38401         * modules/dprintf-posix-tests: New file.
38402         * tests/test-dprintf-posix.sh: New file.
38403         * tests/test-dprintf-posix.c: New file.
38404
38405         New modules 'dprintf', 'dprintf-posix'.
38406         * lib/stdio.in.h (dprintf): New declaration.
38407         * lib/dprintf.c: New file.
38408         * m4/dprintf.m4: New file.
38409         * m4/dprintf-posix.m4: New file.
38410         * modules/dprintf: New file.
38411         * modules/dprintf-posix: New file.
38412         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
38413         HAVE_DPRINTF, REPLACE_DPRINTF.
38414         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
38415         HAVE_DPRINTF, REPLACE_DPRINTF.
38416         * doc/posix-functions/dprintf.texi: Mention the new modules.
38417
38418 2009-01-17  Bruno Haible  <bruno@clisp.org>
38419
38420         * modules/vdprintf-posix-tests: New file.
38421         * tests/test-vdprintf-posix.sh: New file.
38422         * tests/test-vdprintf-posix.c: New file.
38423
38424         New modules 'vdprintf', 'vdprintf-posix'.
38425         * lib/stdio.in.h (vdprintf): New declaration.
38426         * lib/vdprintf.c: New file.
38427         * m4/vdprintf.m4: New file.
38428         * m4/vdprintf-posix.m4: New file.
38429         * modules/vdprintf: New file.
38430         * modules/vdprintf-posix: New file.
38431         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
38432         HAVE_VDPRINTF, REPLACE_VDPRINTF.
38433         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
38434         HAVE_VDPRINTF, REPLACE_VDPRINTF.
38435         * doc/posix-functions/vdprintf.texi: Mention the new modules.
38436
38437 2009-01-17  Bruno Haible  <bruno@clisp.org>
38438
38439         Fix replacement of fopen on mingw.
38440         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
38441         mingw.
38442
38443 2009-01-17  Bruno Haible  <bruno@clisp.org>
38444
38445         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
38446         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
38447
38448 2009-01-17  Bruno Haible  <bruno@clisp.org>
38449
38450         Avoid test-fflush2.sh failure on mingw.
38451         * tests/test-fflush2.c: Include binary-io.h.
38452         (main): Put standard input into binary mode.
38453         * modules/fflush-tests (Depends-on): Add binary-io.
38454
38455 2009-01-17  Bruno Haible  <bruno@clisp.org>
38456
38457         * lib/wchar.in.h: In another particular situation, include only the
38458         system's <wchar.h> file.
38459         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
38460         Reported by Albert Chin-A-Young <china@thewrittenword.com>
38461         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
38462
38463 2009-01-17  Bruno Haible  <bruno@clisp.org>
38464
38465         Support for stripping executables in --enable-relocatable.
38466         * build-aux/install-reloc: Expect one more argument, or an environment
38467         variable RELOC_STRIP_PROG. If set, strip the destination program and
38468         its wrapper.
38469         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
38470         RELOC_STRIP_PROG.
38471         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
38472         to set RELOCATABLE_STRIP.
38473         * NEWS: Mention the new Makefile requirement.
38474
38475 2009-01-17  Bruno Haible  <bruno@clisp.org>
38476
38477         * build-aux/install-reloc: Remove debugging information left over by
38478         C compiler on MacOS X.
38479
38480 2009-01-17  Bruno Haible  <bruno@clisp.org>
38481
38482         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
38483         * lib/progreloc.c (find_executable): Fix type of pointer passed to
38484         _NSGetExecutablePath.
38485
38486 2009-01-16  Jim Meyering  <meyering@redhat.com>
38487
38488         strerror: avoid warnings about discarding "const"
38489         * lib/strerror.c (rpl_strerror): Instead of returning a const
38490         string from each and every "case", use a variable, and add a single
38491         cast after the switch.
38492
38493 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
38494
38495         * lib/arpa_inet.in.h: Add extern "C" block for C++.
38496
38497 2009-01-16  Bruno Haible  <bruno@clisp.org>
38498
38499         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
38500         array initializer syntax that also works in C++ mode.
38501         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38502
38503 2009-01-16  Jim Meyering  <meyering@redhat.com>
38504
38505         poll: suppress a warning
38506         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
38507         to ignore "...unsigned expression < 0 is always false" warnings.
38508
38509 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
38510
38511         poll: remove declarations of unused variables
38512         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
38513         sockbuf and optlen.
38514
38515 2009-01-15  Bruno Haible  <bruno@clisp.org>
38516
38517         Make fflush-after-ungetc POSIX compliant on BSD systems.
38518         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
38519         (clear_ungetc_buffer): Implement also for other systems.
38520         (rpl_fflush): On glibc systems, invoke
38521         clear_ungetc_buffer_preserving_position. Otherwise, invoke
38522         clear_ungetc_buffer after fetching the stream's position, not before.
38523
38524 2009-01-15  Bruno Haible  <bruno@clisp.org>
38525
38526         Make fflush-after-ungetc POSIX compliant on glibc systems.
38527         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
38528         after ungetc.
38529         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
38530         (rpl_fflush): On glibc systems, simply call the system's fflush
38531         function after clearing the ungetc buffer.
38532         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
38533         Instead, lseek only to the end of file, then use the system's fseeko
38534         for the rest. On glibc systems, reset the EOF indicator bit.
38535
38536 2009-01-15  Jim Meyering  <meyering@redhat.com>
38537
38538         openmp.m4: revert quote-adding change, for portability to older autoconf
38539         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
38540         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
38541         Simon Josefsson noticed the problem when using autoconf-2.61.
38542
38543 2009-01-15  Bruno Haible  <bruno@clisp.org>
38544
38545         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
38546         * tests/test-fflush2.c (ASSERT): Always fail.
38547         (main): Add two tests for fflush() after ungetc(), taking into account
38548         the Austin Group's clarification.
38549         Suggested by Eric Blake.
38550
38551 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
38552
38553         mktime.m4: remove K&R-style function prototypes
38554         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
38555         for the Sun C++ compiler.
38556
38557 2009-01-14  Bruno Haible  <bruno@clisp.org>
38558
38559         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
38560         while including <wchar.h>.
38561         * lib/wchar.in.h: In two particular situations on HP-UX, include only
38562         the system's <wchar.h> file.
38563         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38564
38565 2009-01-14  Bruno Haible  <bruno@clisp.org>
38566
38567         * m4/csharp.m4: Don't mention gettext on the serial number line.
38568         * m4/csharpexec.m4: Likewise.
38569         * m4/eaccess.m4: Likewise.
38570         * m4/javaexec.m4: Likewise.
38571         * m4/sig_atomic_t.m4: Likewise.
38572         * m4/tmpdir.m4: Likewise.
38573         * m4/intldir.m4: Bump gettext version.
38574         * m4/lib-ld.m4: Likewise.
38575
38576 2009-01-14  Bruno Haible  <bruno@clisp.org>
38577
38578         * lib/progname.c (set_program_name): Add more comments.
38579         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
38580
38581 2009-01-14  Simon Josefsson  <simon@josefsson.org>
38582
38583         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
38584         were sys/stat.h does not define it.
38585
38586 2009-01-14  Jim Meyering  <meyering@redhat.com>
38587
38588         many *.m4 files: improve m4 quoting
38589         99% of this change was performed by running the following commands:
38590         git ls-files | grep '\.m4$' | xargs perl -pi \
38591           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
38592           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
38593           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
38594           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
38595         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
38596         The remainder were to add Copyright dates, increment serial numbers,
38597         undo some changes in comments, exclude m4/intl.m4, and add quotes
38598         around the "1" in ",1" where the unusual spacing prohibited the
38599         above regexps from doing the job.  For more details, see
38600         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
38601         * m4/acl.m4: Modified.
38602         * m4/afs.m4: Likewise.
38603         * m4/alloca.m4: Likewise.
38604         * m4/argp.m4: Likewise.
38605         * m4/argz.m4: Likewise.
38606         * m4/atexit.m4: Likewise.
38607         * m4/bison-i18n.m4: Likewise.
38608         * m4/bison.m4: Likewise.
38609         * m4/byteswap.m4: Likewise.
38610         * m4/c-stack.m4: Likewise.
38611         * m4/c-strtod.m4: Likewise.
38612         * m4/calloc.m4: Likewise.
38613         * m4/canonicalize-lgpl.m4: Likewise.
38614         * m4/chown.m4: Likewise.
38615         * m4/clock_time.m4: Likewise.
38616         * m4/codeset.m4: Likewise.
38617         * m4/copy-file.m4: Likewise.
38618         * m4/csharp.m4: Likewise.
38619         * m4/csharpcomp.m4: Likewise.
38620         * m4/csharpexec.m4: Likewise.
38621         * m4/d-ino.m4: Likewise.
38622         * m4/d-type.m4: Likewise.
38623         * m4/dirfd.m4: Likewise.
38624         * m4/double-slash-root.m4: Likewise.
38625         * m4/eaccess.m4: Likewise.
38626         * m4/eealloc.m4: Likewise.
38627         * m4/environ.m4: Likewise.
38628         * m4/errno_h.m4: Likewise.
38629         * m4/euidaccess.m4: Likewise.
38630         * m4/execute.m4: Likewise.
38631         * m4/fatal-signal.m4: Likewise.
38632         * m4/fchdir.m4: Likewise.
38633         * m4/fcntl_h.m4: Likewise.
38634         * m4/fileblocks.m4: Likewise.
38635         * m4/filenamecat.m4: Likewise.
38636         * m4/findprog.m4: Likewise.
38637         * m4/flexmember.m4: Likewise.
38638         * m4/fnmatch.m4: Likewise.
38639         * m4/fopen.m4: Likewise.
38640         * m4/fpending.m4: Likewise.
38641         * m4/fprintf-posix.m4: Likewise.
38642         * m4/free.m4: Likewise.
38643         * m4/frexp.m4: Likewise.
38644         * m4/frexpl.m4: Likewise.
38645         * m4/fsusage.m4: Likewise.
38646         * m4/ftruncate.m4: Likewise.
38647         * m4/gc-camellia.m4: Likewise.
38648         * m4/gc-random.m4: Likewise.
38649         * m4/gc.m4: Likewise.
38650         * m4/getaddrinfo.m4: Likewise.
38651         * m4/getcwd-abort-bug.m4: Likewise.
38652         * m4/getcwd-path-max.m4: Likewise.
38653         * m4/getdate.m4: Likewise.
38654         * m4/getdomainname.m4: Likewise.
38655         * m4/getgroups.m4: Likewise.
38656         * m4/gethostname.m4: Likewise.
38657         * m4/gethrxtime.m4: Likewise.
38658         * m4/getline.m4: Likewise.
38659         * m4/getloadavg.m4: Likewise.
38660         * m4/getndelim2.m4: Likewise.
38661         * m4/getpass.m4: Likewise.
38662         * m4/gettext.m4: Likewise.
38663         * m4/gettime.m4: Likewise.
38664         * m4/gettimeofday.m4: Likewise.
38665         * m4/gnulib-common.m4: Likewise.
38666         * m4/group-member.m4: Likewise.
38667         * m4/host-os.m4: Likewise.
38668         * m4/iconv.m4: Likewise.
38669         * m4/iconv_open.m4: Likewise.
38670         * m4/inet_ntop.m4: Likewise.
38671         * m4/inet_pton.m4: Likewise.
38672         * m4/inline.m4: Likewise.
38673         * m4/intldir.m4: Likewise.
38674         * m4/intlmacosx.m4: Likewise.
38675         * m4/intmax.m4: Likewise.
38676         * m4/intmax_t.m4: Likewise.
38677         * m4/inttypes.m4: Likewise.
38678         * m4/inttypes_h.m4: Likewise.
38679         * m4/inttypes-pri.m4: Likewise.
38680         * m4/isapipe.m4: Likewise.
38681         * m4/isnand.m4: Likewise.
38682         * m4/isnanf.m4: Likewise.
38683         * m4/isnanl.m4: Likewise.
38684         * m4/javacomp.m4: Likewise.
38685         * m4/javaexec.m4: Likewise.
38686         * m4/jm-winsz1.m4: Likewise.
38687         * m4/jm-winsz2.m4: Likewise.
38688         * m4/lchown.m4: Likewise.
38689         * m4/lcmessage.m4: Likewise.
38690         * m4/ldexpl.m4: Likewise.
38691         * m4/lib-ld.m4: Likewise.
38692         * m4/lib-link.m4: Likewise.
38693         * m4/libsigsegv.m4: Likewise.
38694         * m4/link-follow.m4: Likewise.
38695         * m4/localcharset.m4: Likewise.
38696         * m4/locale-fr.m4: Likewise.
38697         * m4/locale-ja.m4: Likewise.
38698         * m4/locale-tr.m4: Likewise.
38699         * m4/locale-zh.m4: Likewise.
38700         * m4/lock.m4: Likewise.
38701         * m4/longlong.m4: Likewise.
38702         * m4/ls-mntd-fs.m4: Likewise.
38703         * m4/lstat.m4: Likewise.
38704         * m4/malloc.m4: Likewise.
38705         * m4/mathl.m4: Likewise.
38706         * m4/mbrtowc.m4: Likewise.
38707         * m4/mbstate_t.m4: Likewise.
38708         * m4/mbswidth.m4: Likewise.
38709         * m4/memchr.m4: Likewise.
38710         * m4/memcmp.m4: Likewise.
38711         * m4/memcpy.m4: Likewise.
38712         * m4/memmem.m4: Likewise.
38713         * m4/memmove.m4: Likewise.
38714         * m4/mempcpy.m4: Likewise.
38715         * m4/memrchr.m4: Likewise.
38716         * m4/memset.m4: Likewise.
38717         * m4/minmax.m4: Likewise.
38718         * m4/mkdir-slash.m4: Likewise.
38719         * m4/mkdtemp.m4: Likewise.
38720         * m4/mktime.m4: Likewise.
38721         * m4/mmap-anon.m4: Likewise.
38722         * m4/mountlist.m4: Likewise.
38723         * m4/nanosleep.m4: Likewise.
38724         * m4/nls.m4: Likewise.
38725         * m4/nocrash.m4: Likewise.
38726         * m4/open.m4: Likewise.
38727         * m4/openat.m4: Likewise.
38728         * m4/openmp.m4: Likewise.
38729         * m4/pathmax.m4: Likewise.
38730         * m4/perl.m4: Likewise.
38731         * m4/physmem.m4: Likewise.
38732         * m4/pipe.m4: Likewise.
38733         * m4/po.m4: Likewise.
38734         * m4/poll.m4: Likewise.
38735         * m4/posixtm.m4: Likewise.
38736         * m4/posixver.m4: Likewise.
38737         * m4/printf-frexp.m4: Likewise.
38738         * m4/printf-frexpl.m4: Likewise.
38739         * m4/printf-posix.m4: Likewise.
38740         * m4/printf-posix-rpl.m4: Likewise.
38741         * m4/printf.m4: Likewise.
38742         * m4/progtest.m4: Likewise.
38743         * m4/putenv.m4: Likewise.
38744         * m4/readline.m4: Likewise.
38745         * m4/readlink.m4: Likewise.
38746         * m4/readutmp.m4: Likewise.
38747         * m4/realloc.m4: Likewise.
38748         * m4/regex.m4: Likewise.
38749         * m4/relocatable.m4: Likewise.
38750         * m4/relocatable-lib.m4: Likewise.
38751         * m4/rename-dest-slash.m4: Likewise.
38752         * m4/rename.m4: Likewise.
38753         * m4/rmdir-errno.m4: Likewise.
38754         * m4/rmdir.m4: Likewise.
38755         * m4/roundf.m4: Likewise.
38756         * m4/roundl.m4: Likewise.
38757         * m4/rpmatch.m4: Likewise.
38758         * m4/save-cwd.m4: Likewise.
38759         * m4/selinux-selinux-h.m4: Likewise.
38760         * m4/setenv.m4: Likewise.
38761         * m4/settime.m4: Likewise.
38762         * m4/sig2str.m4: Likewise.
38763         * m4/sig_atomic_t.m4: Likewise.
38764         * m4/signalblocking.m4: Likewise.
38765         * m4/signbit.m4: Likewise.
38766         * m4/sigpipe.m4: Likewise.
38767         * m4/sockets.m4: Likewise.
38768         * m4/sockpfaf.m4: Likewise.
38769         * m4/st_dm_mode.m4: Likewise.
38770         * m4/stat-time.m4: Likewise.
38771         * m4/stdbool.m4: Likewise.
38772         * m4/stdint.m4: Likewise.
38773         * m4/stdint_h.m4: Likewise.
38774         * m4/stpcpy.m4: Likewise.
38775         * m4/stpncpy.m4: Likewise.
38776         * m4/strcase.m4: Likewise.
38777         * m4/strchrnul.m4: Likewise.
38778         * m4/strcspn.m4: Likewise.
38779         * m4/strdup.m4: Likewise.
38780         * m4/strftime.m4: Likewise.
38781         * m4/strndup.m4: Likewise.
38782         * m4/strnlen.m4: Likewise.
38783         * m4/strpbrk.m4: Likewise.
38784         * m4/strptime.m4: Likewise.
38785         * m4/strsep.m4: Likewise.
38786         * m4/strtod.m4: Likewise.
38787         * m4/strtoimax.m4: Likewise.
38788         * m4/strtok_r.m4: Likewise.
38789         * m4/strtol.m4: Likewise.
38790         * m4/strtoll.m4: Likewise.
38791         * m4/strtoul.m4: Likewise.
38792         * m4/strtoull.m4: Likewise.
38793         * m4/strtoumax.m4: Likewise.
38794         * m4/strverscmp.m4: Likewise.
38795         * m4/threadlib.m4: Likewise.
38796         * m4/timegm.m4: Likewise.
38797         * m4/tm_gmtoff.m4: Likewise.
38798         * m4/tmpdir.m4: Likewise.
38799         * m4/tmpfile.m4: Likewise.
38800         * m4/tzset.m4: Likewise.
38801         * m4/uintmax_t.m4: Likewise.
38802         * m4/unlinkdir.m4: Likewise.
38803         * m4/unlocked-io.m4: Likewise.
38804         * m4/uptime.m4: Likewise.
38805         * m4/userspec.m4: Likewise.
38806         * m4/utimbuf.m4: Likewise.
38807         * m4/utime.m4: Likewise.
38808         * m4/utimes-null.m4: Likewise.
38809         * m4/utimes.m4: Likewise.
38810         * m4/vararrays.m4: Likewise.
38811         * m4/vasnprintf.m4: Likewise.
38812         * m4/vfprintf-posix.m4: Likewise.
38813         * m4/vprintf-posix.m4: Likewise.
38814         * m4/wait-process.m4: Likewise.
38815         * m4/wchar_t.m4: Likewise.
38816         * m4/wint_t.m4: Likewise.
38817         * m4/write-any-file.m4: Likewise.
38818         * m4/yield.m4: Likewise.
38819
38820 2009-01-13  Bruno Haible  <bruno@clisp.org>
38821
38822         Avoid test-copy-file.sh failures when ACL support insufficient.
38823         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
38824         TESTS_ENVIRONMENT.
38825         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
38826         Reported by Jim Meyering.
38827
38828 2009-01-13  Bruno Haible  <bruno@clisp.org>
38829
38830         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
38831         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
38832         * modules/unistdio/u8-printf-parse (Files): Likewise.
38833         * modules/unistdio/u32-printf-parse (Files): Likewise.
38834         * modules/unistdio/ulc-printf-parse (Files): Likewise.
38835
38836 2009-01-13  Simon Josefsson  <simon@josefsson.org>
38837
38838         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
38839         and m4/inttypes_h.m4 too.
38840
38841 2009-01-12  Eric Blake  <ebb9@byu.net>
38842
38843         tests: IRIX 6.2 cc can't compile -0.0 into .data
38844         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
38845         rather than at compile-time.
38846         * tests/test-floorl.c (minus_zero): Likewise.
38847         * tests/test-frexpl.c (minus_zero): Likewise.
38848         * tests/test-isnan.c (minus_zerol): Likewise.
38849         * tests/test-isnanl.h (minus_zero): Likewise.
38850         * tests/test-ldexpl.c (minus_zero): Likewise.
38851         * tests/test-roundl.c (minus_zero): Likewise.
38852         * tests/test-signbit.c (minus_zerol): Likewise.
38853         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
38854         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
38855         * tests/test-truncl.c (minus_zero): Likewise.
38856         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
38857         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
38858         Reported by Tom G. Christensen and Nelson H. F. Beebe.
38859
38860 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
38861
38862         regex: fix glibc bug 9697
38863         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
38864         handling.
38865
38866 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
38867
38868         regex: fix glibc bug 697
38869         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
38870         being NULL also if there are no backreferences.
38871
38872 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
38873
38874         regex: merge glibc changes
38875         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
38876         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
38877         re_string_skip_chars, re_string_reconstruct): Likewise.
38878         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
38879
38880 2009-01-07  Jim Meyering  <meyering@redhat.com>
38881
38882         poll: filter through cppi
38883         * lib/poll.c: Indent cpp directives to reflect nesting.
38884
38885 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
38886
38887         poll: don't return uninitialized
38888         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
38889
38890 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
38891
38892         avoid compile failure on AIX 6.1
38893         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
38894         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
38895
38896 2009-01-04  Jim Meyering  <meyering@redhat.com>
38897
38898         remove duplicate inclusion of <stdio.h>
38899         * tests/test-fprintf-posix.c: Likewise.
38900         * tests/test-printf-posix.c: Likewise.
38901         * tests/test-snprintf-posix.c: Likewise.
38902         * tests/test-sprintf-posix.c: Likewise.
38903         * tests/test-vasprintf-posix.c: Likewise.
38904         * tests/test-vfprintf-posix.c: Likewise.
38905         * tests/test-vprintf-posix.c: Likewise.
38906         * tests/test-vsnprintf-posix.c: Likewise.
38907         * tests/test-vsprintf-posix.c: Likewise.
38908
38909 2009-01-03  Jim Meyering  <meyering@redhat.com>
38910
38911         gnulib-tool: fix sed-based filtering
38912         * gnulib-tool (func_filter_filelist): Remove extra backslash
38913         in sed_fff_filter definition.
38914
38915 2009-01-02  Jim Meyering  <meyering@redhat.com>
38916
38917         strftime: avoid compilation failure on Solaris 2.6
38918         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
38919         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
38920         Don't #define mbrlen or mbsinit, since now they're guaranteed to
38921         be available.  Reported by Tom G. Christensen.  Details in
38922         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
38923
38924 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38925             Bruno Haible  <bruno@clisp.org>
38926
38927         Speed up gnulib-tool by doing more string processing through shell
38928         built-ins.
38929         * gnulib-tool (fast_func_append): New variable.
38930         (func_remove_prefix, func_remove_suffix): New functions.
38931         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
38932         (func_filter_filelist): New function.
38933         (func_get_dependencies): Use func_remove_suffix instead of sed.
38934         (func_get_automake_snippet): Use func_filter_filelist instead of a
38935         subshell and sed invocation.
38936
38937 2009-01-01  Bruno Haible  <bruno@clisp.org>
38938
38939         Fix a security bug.
38940         * gnulib-tool (func_import, import, update): Don't allow the characters
38941         '"', '$', '`', '\' in macro arguments that become part of commands that
38942         are evaluated.
38943
38944 2009-01-01  Bruno Haible  <bruno@clisp.org>
38945
38946         * gnulib-tool (func_reset_sigpipe): Add more comments.
38947
38948 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38949
38950         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
38951         func_emit_tests_Makefile_am, func_import): Abort loops early if we
38952         already know the answer.
38953
38954 2009-01-01  Jim Meyering  <meyering@redhat.com>
38955
38956         * lib/version-etc.c (version_etc_va): Update copyright year.
38957
38958 2008-12-30  Bruno Haible  <bruno@clisp.org>
38959
38960         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
38961         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
38962         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
38963
38964 2008-12-29  Eric Blake  <ebb9@byu.net>
38965
38966         multiarch: avoid autoconf AC_REQUIRE bug
38967         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
38968         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
38969         2.63 and older.
38970         Reported by Bruno Haible, and analyzed in
38971         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
38972
38973 2008-12-29  Bruno Haible  <bruno@clisp.org>
38974
38975         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
38976         files in subdirectories correctly.
38977         Reported by Ralf Wildenhues.
38978
38979 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38980
38981         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
38982         rather than 'join FILE -', for Solaris join.
38983
38984 2008-12-29  Bruno Haible  <bruno@clisp.org>
38985
38986         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
38987         quoting.
38988         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
38989         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
38990         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
38991         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
38992         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
38993         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
38994         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
38995         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
38996         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
38997         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
38998         * m4/nls.m4 (AM_NLS): Likewise.
38999         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
39000         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
39001         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
39002         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
39003         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
39004         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
39005         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
39006         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
39007         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
39008         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
39009         * m4/xsize.m4 (gl_XSIZE): Likewise.
39010         Suggested by Jim Meyering.
39011
39012 2008-11-17  Bruce Korb  <bkorb@gnu.org>
39013
39014         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
39015         * lib/parse-duration.c: use a switch instead of cascading if's.
39016
39017 2008-12-29  Eric Blake  <ebb9@byu.net>
39018
39019         wchar.h: supply WEOF on Irix 5.3
39020         * lib/wchar.in.h (wint_t): Also supply WEOF.
39021         * lib/wctype.in.h (wint_t): Likewise.
39022         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
39023         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
39024         Reported by Tom G. Christensen.
39025
39026 2008-12-26  Bruno Haible  <bruno@clisp.org>
39027
39028         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
39029         i486, i586, i686.
39030
39031 2008-12-26  Bruno Haible  <bruno@clisp.org>
39032
39033         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
39034
39035 2008-12-26  Bruno Haible  <bruno@clisp.org>
39036
39037         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
39038         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
39039         not __STDC_CONSTANT_MACROS.
39040         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
39041
39042 2008-12-25  Bruno Haible  <bruno@clisp.org>
39043
39044         Add support for universal builds to vasnprintf.
39045         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
39046         universal builds, guess no.
39047         * modules/vasnprintf-posix (Depends-on): Add multiarch.
39048         * modules/vasprintf-posix (Depends-on): Likewise.
39049         * modules/fprintf-posix (Depends-on): Likewise.
39050         * modules/vfprintf-posix (Depends-on): Likewise.
39051         * modules/snprintf-posix (Depends-on): Likewise.
39052         * modules/vsnprintf-posix (Depends-on): Likewise.
39053         * modules/sprintf-posix (Depends-on): Likewise.
39054         * modules/vsprintf-posix (Depends-on): Likewise.
39055         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
39056         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
39057         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
39058         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
39059         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
39060         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
39061         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
39062
39063         Add support for universal builds to <inttypes.h>.
39064         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
39065         _SCNu64_PREFIX): In Apple
39066         universal builds, define directly, using _LP64.
39067         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
39068         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
39069         * modules/inttypes (Depends-on): Add multiarch.
39070         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
39071
39072         Add support for universal builds to <stdint.h>.
39073         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
39074         universal builds, define directly, using _LP64.
39075         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
39076         Apple universal builds, don't test for the size and suffix of ptrdiff_t
39077         and size_t.
39078         * modules/stdint (Depends-on): Add multiarch.
39079         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
39080
39081         New module 'multiarch'.
39082         * modules/multiarch: New file.
39083         * m4/multiarch.m4: New file.
39084
39085 2008-12-25  Bruno Haible  <bruno@clisp.org>
39086
39087         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
39088
39089 2008-12-25  Bruno Haible  <bruno@clisp.org>
39090
39091         * modules/btowc (License): Relicense under LGPLv2+.
39092         * modules/mbsinit (License): Likewise.
39093         * modules/mbrtowc (License): Likewise.
39094         * modules/wcrtomb (License): Likewise.
39095         * modules/streq (License): Likewise.
39096         Reported by David Lutterkort <lutter@redhat.com>.
39097
39098 2008-12-23  Bruno Haible  <bruno@clisp.org>
39099
39100         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
39101
39102 2008-12-23  Bruno Haible  <bruno@clisp.org>
39103
39104         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
39105         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
39106         GETADDRINFO_LIB, not in LIBS.
39107         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
39108         * modules/canon-host (Link): Likewise.
39109         * NEWS: Mention the change.
39110         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
39111         GETADDRINFO_LIB.
39112
39113 2008-12-22  Bruno Haible  <bruno@clisp.org>
39114
39115         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
39116         * doc/posix-functions/iswalpha_l.texi: Likewise.
39117         * doc/posix-functions/iswblank_l.texi: Likewise.
39118         * doc/posix-functions/iswcntrl_l.texi: Likewise.
39119         * doc/posix-functions/iswctype_l.texi: Likewise.
39120         * doc/posix-functions/iswdigit_l.texi: Likewise.
39121         * doc/posix-functions/iswgraph_l.texi: Likewise.
39122         * doc/posix-functions/iswlower_l.texi: Likewise.
39123         * doc/posix-functions/iswprint_l.texi: Likewise.
39124         * doc/posix-functions/iswpunct_l.texi: Likewise.
39125         * doc/posix-functions/iswspace_l.texi: Likewise.
39126         * doc/posix-functions/iswupper_l.texi: Likewise.
39127         * doc/posix-functions/iswxdigit_l.texi: Likewise.
39128         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
39129         * doc/posix-functions/open_wmemstream.texi: Likewise.
39130         * doc/posix-functions/swscanf.texi: Likewise.
39131         * doc/posix-functions/towctrans_l.texi: Likewise.
39132         * doc/posix-functions/towlower.texi: Likewise.
39133         * doc/posix-functions/towlower_l.texi: Likewise.
39134         * doc/posix-functions/towupper.texi: Likewise.
39135         * doc/posix-functions/towupper_l.texi: Likewise.
39136         * doc/posix-functions/vfwprintf.texi: Likewise.
39137         * doc/posix-functions/vfwscanf.texi: Likewise.
39138         * doc/posix-functions/vswscanf.texi: Likewise.
39139         * doc/posix-functions/vwprintf.texi: Likewise.
39140         * doc/posix-functions/vwscanf.texi: Likewise.
39141         * doc/posix-functions/wcpcpy.texi: Likewise.
39142         * doc/posix-functions/wcpncpy.texi: Likewise.
39143         * doc/posix-functions/wcscasecmp.texi: Likewise.
39144         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
39145         * doc/posix-functions/wcscoll_l.texi: Likewise.
39146         * doc/posix-functions/wcsdup.texi: Likewise.
39147         * doc/posix-functions/wcsncasecmp.texi: Likewise.
39148         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
39149         * doc/posix-functions/wcsnlen.texi: Likewise.
39150         * doc/posix-functions/wcsnrtombs.texi: Likewise.
39151         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
39152         * doc/posix-functions/wctrans_l.texi: Likewise.
39153         * doc/posix-functions/wctype_l.texi: Likewise.
39154         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
39155         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
39156         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
39157         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
39158         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
39159         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
39160         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
39161         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
39162         * doc/glibc-functions/wcschrnul.texi: Likewise.
39163         * doc/glibc-functions/wcsftime_l.texi: Likewise.
39164         * doc/glibc-functions/wcstod_l.texi: Likewise.
39165         * doc/glibc-functions/wcstof_l.texi: Likewise.
39166         * doc/glibc-functions/wcstol_l.texi: Likewise.
39167         * doc/glibc-functions/wcstold_l.texi: Likewise.
39168         * doc/glibc-functions/wcstoll_l.texi: Likewise.
39169         * doc/glibc-functions/wcstoq.texi: Likewise.
39170         * doc/glibc-functions/wcstoul_l.texi: Likewise.
39171         * doc/glibc-functions/wcstoull_l.texi: Likewise.
39172         * doc/glibc-functions/wcstouq.texi: Likewise.
39173         * doc/glibc-functions/wmempcpy.texi: Likewise.
39174
39175 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
39176             Eric Blake  <ebb9@byu.net>
39177             Paolo Bonzini  <bonzini@gnu.org>
39178             Bruno Haible  <bruno@clisp.org>
39179
39180         Make c-stack work on Haiku.
39181         * lib/c-stack.c (SA_ONSTACK): Define fallback.
39182         (c_stack_action): Use SA_ONSTACK flag.
39183
39184 2008-12-22  Bruno Haible  <bruno@clisp.org>
39185
39186         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
39187
39188 2008-12-22  Bruno Haible  <bruno@clisp.org>
39189
39190         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
39191         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
39192         being overridden.
39193         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
39194         New macros.
39195         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
39196         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
39197         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
39198         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
39199
39200 2008-12-22  Bruno Haible  <bruno@clisp.org>
39201
39202         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
39203         from test code.
39204
39205 2008-12-22  Eric Blake  <ebb9@byu.net>
39206
39207         Avoid gcc warnings on cygwin.
39208         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
39209         Avoid unused variable.
39210         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
39211         Likewise.
39212
39213 2008-12-22  Bruno Haible  <bruno@clisp.org>
39214
39215         Remove HAVE_MBRTOWC conditionals.
39216         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
39217         (mbscasecmp): Assume mbrtowc function.
39218         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
39219         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
39220         * lib/mbschr.c: Include mbuiter.h unconditionally.
39221         (mbschr): Assume mbrtowc function.
39222         * lib/mbscspn.c: Include mbuiter.h unconditionally.
39223         (mbscspn): Assume mbrtowc function.
39224         * lib/mbslen.c: Include mbuiter.h unconditionally.
39225         (mbslen): Assume mbrtowc function.
39226         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
39227         (mbsncasecmp): Assume mbrtowc function.
39228         * lib/mbsnlen.c: Include mbiter.h unconditionally.
39229         (mbsnlen): Assume mbrtowc function.
39230         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
39231         (mbspbrk): Assume mbrtowc function.
39232         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
39233         (mbspcasecmp): Assume mbrtowc function.
39234         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
39235         (mbsrchr): Assume mbrtowc function.
39236         * lib/mbssep.c: Include mbuiter.h unconditionally.
39237         (mbssep): Assume mbrtowc function.
39238         * lib/mbsspn.c: Include mbuiter.h unconditionally.
39239         (mbsspn): Assume mbrtowc function.
39240         * lib/mbsstr.c: Include mbuiter.h unconditionally.
39241         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
39242         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
39243         (mbstok_r): Assume mbrtowc function.
39244         * lib/propername.c: Include mbuiter.h unconditionally.
39245         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
39246         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
39247         (trim2): Assume mbrtowc function.
39248         * lib/mbswidth.c (mbsinit): Remove fallback definition.
39249         (mbsnwidth): Assume mbrtowc function.
39250         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
39251         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
39252         fallback definitions.
39253         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
39254
39255 2008-12-22  Bruno Haible  <bruno@clisp.org>
39256
39257         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
39258
39259 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
39260
39261         * modules/regex: Request emulations for the mb*/wc* functions we need.
39262         * m4/regex.m4: Don't look for those functions here.
39263         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
39264
39265 2008-12-22  Bruno Haible  <bruno@clisp.org>
39266
39267         * modules/fnmatch (Depends-on): Remove duplicated dependency.
39268
39269 2008-12-21  Bruno Haible  <bruno@clisp.org>
39270
39271         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
39272         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
39273         (Include): Remove conditionalization.
39274         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
39275         (Include): Remove conditionalization.
39276         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
39277         (Include): Remove conditionalization.
39278         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
39279         * m4/mbfile.m4 (gl_MBFILE): Likewise.
39280         * NEWS: Mention the change.
39281         Reported by Alan Hourihane <alanh@fairlite.co.uk>
39282         via Sergey Poznyakoff <gray@gnu.org.ua>.
39283
39284 2008-12-21  Bruno Haible  <bruno@clisp.org>
39285
39286         * MODULES.html.sh (Extended multibyte and wide character utilities
39287         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
39288         wcrtomb, wcsrtombs.
39289         (Support for systems lacking POSIX:2008): Add accept, bind, close,
39290         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
39291         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
39292         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
39293
39294 2008-12-21  Bruno Haible  <bruno@clisp.org>
39295
39296         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
39297
39298 2008-12-21  Bruno Haible  <bruno@clisp.org>
39299
39300         * modules/wcsnrtombs-tests: New file.
39301         * tests/test-wcsnrtombs1.sh: New file.
39302         * tests/test-wcsnrtombs2.sh: New file.
39303         * tests/test-wcsnrtombs3.sh: New file.
39304         * tests/test-wcsnrtombs4.sh: New file.
39305         * tests/test-wcsnrtombs.c: New file.
39306
39307         New module 'wcsnrtombs'.
39308         * lib/wchar.in.h (wcsnrtombs): New declaration.
39309         * lib/wcsnrtombs.c: New file.
39310         * lib/wcsrtombs-state.c: New file.
39311         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
39312         (internal_state): Remove variable.
39313         * m4/wcsnrtombs.m4: New file.
39314         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
39315         compilation units.
39316         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
39317         HAVE_WCSNRTOMBS.
39318         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
39319         HAVE_WCSNRTOMBS.
39320         * modules/wcsnrtombs: New file.
39321         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
39322         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
39323
39324 2008-12-21  Bruno Haible  <bruno@clisp.org>
39325
39326         * modules/wcsrtombs-tests: New file.
39327         * tests/test-wcsrtombs1.sh: New file.
39328         * tests/test-wcsrtombs2.sh: New file.
39329         * tests/test-wcsrtombs3.sh: New file.
39330         * tests/test-wcsrtombs4.sh: New file.
39331         * tests/test-wcsrtombs.c: New file.
39332
39333         New module 'wcsrtombs'.
39334         * lib/wchar.in.h (wcsrtombs): New declaration.
39335         * lib/wcsrtombs.c: New file.
39336         * m4/wcsrtombs.m4: New file.
39337         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
39338         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
39339         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
39340         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
39341         * modules/wcsrtombs: New file.
39342         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
39343         bugs.
39344
39345 2008-12-21  Bruno Haible  <bruno@clisp.org>
39346
39347         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
39348         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
39349         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
39350         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
39351         if not correct.
39352         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
39353         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
39354         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
39355         m4/locale-zh.m4, m4/codeset.m4.
39356         * doc/posix-functions/wcrtomb.texi: Document the bug.
39357
39358 2008-12-21  Bruno Haible  <bruno@clisp.org>
39359
39360         Work around a btowc() bug on IRIX 6.5.
39361         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
39362         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
39363         REPLACE_WTOBC if not.
39364         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
39365         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
39366         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
39367
39368 2008-12-21  Bruno Haible  <bruno@clisp.org>
39369
39370         * modules/wcrtomb-tests: New file.
39371         * tests/test-wcrtomb.sh: New file.
39372         * tests/test-wcrtomb.c: New file.
39373
39374         New module 'wcrtomb'.
39375         * lib/wchar.in.h (wcrtomb): New declaration.
39376         * lib/wcrtomb.c: New file.
39377         * m4/wcrtomb.m4: New file.
39378         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
39379         HAVE_WCRTOMB.
39380         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
39381         HAVE_WCRTOMB.
39382         * modules/wcrtomb: New file.
39383         * doc/posix-functions/wcrtomb.texi: Mention the new module.
39384
39385 2008-12-21  Bruno Haible  <bruno@clisp.org>
39386
39387         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
39388         * modules/mbsrtowcs (Files): Likewise.
39389         * modules/wctob (Files): Likewise.
39390         * modules/c-strcase-tests (Files): Likewise.
39391         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
39392         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
39393         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
39394         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
39395         * modules/vasnprintf-posix-tests (Files): Likewise.
39396
39397 2008-12-21  William Pursell  <bill.pursell@gmail.com>
39398
39399         gitlog-to-changelog: pass all command-line arguments to git-log
39400         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
39401         it is sometimes convenient to filter the commits in various ways.
39402         gitlog-to-changelog only allows --since to specify a start date,
39403         but git-log itself supports many other filtering mechanisms.
39404         At the moment, I want to filter by branch name.  Rather than
39405         adding a --branch option to gitlog-to-changelog, it seems more
39406         flexible to simply pass all options directly to git-log and let
39407         git do the work.  Notice that this effectively makes --since a
39408         redundant option for gitlog-to-changelog, but removing it would
39409         require current usage to change since calls would then require
39410         an additional '--'.
39411
39412 2008-12-21  Bruno Haible  <bruno@clisp.org>
39413
39414         * modules/mbsnrtowcs-tests: New file.
39415         * tests/test-mbsnrtowcs1.sh: New file.
39416         * tests/test-mbsnrtowcs2.sh: New file.
39417         * tests/test-mbsnrtowcs3.sh: New file.
39418         * tests/test-mbsnrtowcs4.sh: New file.
39419         * tests/test-mbsnrtowcs.c: New file.
39420
39421         New module 'mbsnrtowcs'.
39422         * lib/wchar.in.h (mbsnrtowcs): New declaration.
39423         * lib/mbsnrtowcs.c: New file.
39424         * lib/mbsrtowcs-state.c: New file.
39425         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
39426         (internal_state): Remove variable.
39427         * m4/mbsnrtowcs.m4: New file.
39428         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
39429         compilation units.
39430         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
39431         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
39432         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
39433         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
39434         * modules/mbsnrtowcs: New file.
39435         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
39436         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
39437         portability problem.
39438
39439 2008-12-21  Bruno Haible  <bruno@clisp.org>
39440
39441         Work around mbsrtowcs bug.
39442         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
39443         (gl_FUNC_MBSRTOWCS): Invoke it.
39444         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
39445         m4/locale-zh.m4.
39446         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
39447
39448 2008-12-21  Bruno Haible  <bruno@clisp.org>
39449
39450         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
39451
39452 2008-12-21  Bruno Haible  <bruno@clisp.org>
39453
39454         Update doc for AIX.
39455         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
39456         16-bit wchar_t type.
39457         * doc/posix-functions/btowc.texi: Likewise.
39458         * doc/posix-functions/fgetwc.texi: Likewise.
39459         * doc/posix-functions/fgetws.texi: Likewise.
39460         * doc/posix-functions/fputwc.texi: Likewise.
39461         * doc/posix-functions/fputws.texi: Likewise.
39462         * doc/posix-functions/fwide.texi: Likewise.
39463         * doc/posix-functions/fwprintf.texi: Likewise.
39464         * doc/posix-functions/fwscanf.texi: Likewise.
39465         * doc/posix-functions/getwchar.texi: Likewise.
39466         * doc/posix-functions/getwc.texi: Likewise.
39467         * doc/posix-functions/iswalnum.texi: Likewise.
39468         * doc/posix-functions/iswalpha.texi: Likewise.
39469         * doc/posix-functions/iswblank.texi: Likewise.
39470         * doc/posix-functions/iswcntrl.texi: Likewise.
39471         * doc/posix-functions/iswctype.texi: Likewise.
39472         * doc/posix-functions/iswdigit.texi: Likewise.
39473         * doc/posix-functions/iswgraph.texi: Likewise.
39474         * doc/posix-functions/iswlower.texi: Likewise.
39475         * doc/posix-functions/iswprint.texi: Likewise.
39476         * doc/posix-functions/iswpunct.texi: Likewise.
39477         * doc/posix-functions/iswspace.texi: Likewise.
39478         * doc/posix-functions/iswupper.texi: Likewise.
39479         * doc/posix-functions/iswxdigit.texi: Likewise.
39480         * doc/posix-functions/mbrtowc.texi: Likewise.
39481         * doc/posix-functions/mbsrtowcs.texi: Likewise.
39482         * doc/posix-functions/mbstowcs.texi: Likewise.
39483         * doc/posix-functions/mbtowc.texi: Likewise.
39484         * doc/posix-functions/putwchar.texi: Likewise.
39485         * doc/posix-functions/putwc.texi: Likewise.
39486         * doc/posix-functions/swprintf.texi: Likewise.
39487         * doc/posix-functions/tolower.texi: Likewise.
39488         * doc/posix-functions/toupper.texi: Likewise.
39489         * doc/posix-functions/towctrans.texi: Likewise.
39490         * doc/posix-functions/ungetwc.texi: Likewise.
39491         * doc/posix-functions/vswprintf.texi: Likewise.
39492         * doc/posix-functions/wcrtomb.texi: Likewise.
39493         * doc/posix-functions/wcscat.texi: Likewise.
39494         * doc/posix-functions/wcschr.texi: Likewise.
39495         * doc/posix-functions/wcscmp.texi: Likewise.
39496         * doc/posix-functions/wcscoll.texi: Likewise.
39497         * doc/posix-functions/wcscpy.texi: Likewise.
39498         * doc/posix-functions/wcscspn.texi: Likewise.
39499         * doc/posix-functions/wcsftime.texi: Likewise.
39500         * doc/posix-functions/wcslen.texi: Likewise.
39501         * doc/posix-functions/wcsncat.texi: Likewise.
39502         * doc/posix-functions/wcsncmp.texi: Likewise.
39503         * doc/posix-functions/wcsncpy.texi: Likewise.
39504         * doc/posix-functions/wcspbrk.texi: Likewise.
39505         * doc/posix-functions/wcsrchr.texi: Likewise.
39506         * doc/posix-functions/wcsrtombs.texi: Likewise.
39507         * doc/posix-functions/wcsspn.texi: Likewise.
39508         * doc/posix-functions/wcsstr.texi: Likewise.
39509         * doc/posix-functions/wcstod.texi: Likewise.
39510         * doc/posix-functions/wcstof.texi: Likewise.
39511         * doc/posix-functions/wcstoimax.texi: Likewise.
39512         * doc/posix-functions/wcstok.texi: Likewise.
39513         * doc/posix-functions/wcstold.texi: Likewise.
39514         * doc/posix-functions/wcstoll.texi: Likewise.
39515         * doc/posix-functions/wcstol.texi: Likewise.
39516         * doc/posix-functions/wcstombs.texi: Likewise.
39517         * doc/posix-functions/wcstoull.texi: Likewise.
39518         * doc/posix-functions/wcstoul.texi: Likewise.
39519         * doc/posix-functions/wcstoumax.texi: Likewise.
39520         * doc/posix-functions/wcswidth.texi: Likewise.
39521         * doc/posix-functions/wcsxfrm.texi: Likewise.
39522         * doc/posix-functions/wctob.texi: Likewise.
39523         * doc/posix-functions/wctomb.texi: Likewise.
39524         * doc/posix-functions/wctrans.texi: Likewise.
39525         * doc/posix-functions/wctype.texi: Likewise.
39526         * doc/posix-functions/wcwidth.texi: Likewise.
39527         * doc/posix-functions/wmemchr.texi: Likewise.
39528         * doc/posix-functions/wmemcmp.texi: Likewise.
39529         * doc/posix-functions/wmemcpy.texi: Likewise.
39530         * doc/posix-functions/wmemmove.texi: Likewise.
39531         * doc/posix-functions/wmemset.texi: Likewise.
39532         * doc/posix-functions/wprintf.texi: Likewise.
39533         * doc/posix-functions/wscanf.texi: Likewise.
39534
39535 2008-12-21  Bruno Haible  <bruno@clisp.org>
39536
39537         Update doc for HP-UX 11.11.
39538         * doc/posix-functions/btowc.texi: Clarify that the function is missing
39539         in HP-UX version 11.00, not in all versions of HP-UX 11.
39540         * doc/posix-functions/fwide.texi: Likewise.
39541         * doc/posix-functions/fwprintf.texi: Likewise.
39542         * doc/posix-functions/fwscanf.texi: Likewise.
39543         * doc/posix-functions/inet_ntop.texi: Likewise.
39544         * doc/posix-functions/inet_pton.texi: Likewise.
39545         * doc/posix-functions/mbrlen.texi: Likewise.
39546         * doc/posix-functions/mbrtowc.texi: Likewise.
39547         * doc/posix-functions/mbsinit.texi: Likewise.
39548         * doc/posix-functions/mbsrtowcs.texi: Likewise.
39549         * doc/posix-functions/swprintf.texi: Likewise.
39550         * doc/posix-functions/swscanf.texi: Likewise.
39551         * doc/posix-functions/towctrans.texi: Likewise.
39552         * doc/posix-functions/vfwprintf.texi: Likewise.
39553         * doc/posix-functions/vswprintf.texi: Likewise.
39554         * doc/posix-functions/vwprintf.texi: Likewise.
39555         * doc/posix-functions/wcrtomb.texi: Likewise.
39556         * doc/posix-functions/wcsrtombs.texi: Likewise.
39557         * doc/posix-functions/wcsstr.texi: Likewise.
39558         * doc/posix-functions/wctob.texi: Likewise.
39559         * doc/posix-functions/wctrans.texi: Likewise.
39560         * doc/posix-functions/wmemchr.texi: Likewise.
39561         * doc/posix-functions/wmemcmp.texi: Likewise.
39562         * doc/posix-functions/wmemcpy.texi: Likewise.
39563         * doc/posix-functions/wmemmove.texi: Likewise.
39564         * doc/posix-functions/wmemset.texi: Likewise.
39565         * doc/posix-functions/wprintf.texi: Likewise.
39566         * doc/posix-functions/wscanf.texi: Likewise.
39567
39568 2008-12-21  Bruno Haible  <bruno@clisp.org>
39569
39570         Work around a portability problem.
39571         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
39572         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
39573
39574 2008-12-20  Bruno Haible  <bruno@clisp.org>
39575
39576         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
39577         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
39578         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
39579         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
39580         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
39581
39582         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
39583         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
39584         set.
39585         (GNULIB_defined_mbstate_t): New macro.
39586         (mbsinit): Redefine if REPLACE_MBSINIT is set.
39587         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
39588         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
39589         reuses the system's mbrtowc function but works around the bugs.
39590         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
39591         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
39592         macros.
39593         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
39594         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
39595         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
39596         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
39597         REPLACE_MBSINIT if mbsinit needs to be overridden.
39598         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
39599         REPLACE_MBSINIT, REPLACE_MBRTOWC.
39600         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
39601         REPLACE_MBSINIT, REPLACE_MBRTOWC.
39602         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
39603         m4/locale-zh.m4.
39604         (Depends): Add mbsinit.
39605         * modules/mbsinit (Depends): Add mbrtowc.
39606         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
39607
39608 2008-12-20  Bruno Haible  <bruno@clisp.org>
39609
39610         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
39611         so that there are no conversion errors on AIX.
39612         * tests/test-mbsrtowcs.c (main): LIkewise.
39613
39614 2008-12-20  Bruno Haible  <bruno@clisp.org>
39615
39616         Work around wctob bug on Solaris <= 9.
39617         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
39618         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
39619         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
39620         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
39621         * modules/wctob (Files): Add m4/locale-fr.m4.
39622         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
39623
39624 2008-12-20  Bruno Haible  <bruno@clisp.org>
39625
39626         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
39627         /dev/null.
39628         * tests/test-select-in.sh: Likewise.
39629         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39630
39631 2008-12-20  Bruno Haible  <bruno@clisp.org>
39632
39633         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
39634         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
39635         Cygwin 1.5.x.
39636
39637 2008-12-20  Bruno Haible  <bruno@clisp.org>
39638
39639         Ensure mbstate_t is defined on HP-UX 11.11.
39640         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
39641         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
39642         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
39643         AC_USE_SYSTEM_EXTENSIONS.
39644         * modules/fnmatch (Depends-on): Add extensions.
39645         * modules/mbrlen (Depends-on): Likewise.
39646         * modules/mbrtowc (Depends-on): Likewise.
39647         * modules/mbsinit (Depends-on): Likewise.
39648         * modules/mbsrtowcs (Depends-on): Likewise.
39649         * modules/mbswidth (Depends-on): Likewise.
39650         * modules/quotearg (Depends-on): Likewise.
39651         * modules/strftime (Depends-on): Likewise.
39652
39653 2008-12-20  Bruno Haible  <bruno@clisp.org>
39654
39655         Ensure wctob is declared on IRIX 6.5.
39656         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
39657         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
39658         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
39659         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
39660         of HAVE_WCTOB.
39661         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
39662         HAVE_WCTOB.
39663         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
39664
39665 2008-12-19  Bruno Haible  <bruno@clisp.org>
39666
39667         * modules/mbsrtowcs-tests: New file.
39668         * tests/test-mbsrtowcs1.sh: New file.
39669         * tests/test-mbsrtowcs2.sh: New file.
39670         * tests/test-mbsrtowcs3.sh: New file.
39671         * tests/test-mbsrtowcs4.sh: New file.
39672         * tests/test-mbsrtowcs.c: New file.
39673
39674         New module 'mbsrtowcs'.
39675         * lib/wchar.in.h (mbsrtowcs): New declaration.
39676         * lib/mbsrtowcs.c: New file.
39677         * m4/mbsrtowcs.m4: New file.
39678         * modules/mbsrtowcs: New file.
39679         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
39680         HAVE_MBSRTOWCS.
39681         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
39682         HAVE_MBSRTOWCS.
39683         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
39684
39685 2008-12-19  Bruno Haible  <bruno@clisp.org>
39686
39687         New module 'mbrlen'.
39688         * lib/wchar.in.h (mbrlen): New declaration.
39689         * lib/mbrlen.c: New file.
39690         * m4/mbrlen.m4: New file.
39691         * modules/mbrlen: New file.
39692         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
39693         HAVE_MBRLEN.
39694         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
39695         HAVE_MBRLEN.
39696         * doc/posix-functions/mbrlen.texi: Document the new module.
39697
39698 2008-12-19  Bruno Haible  <bruno@clisp.org>
39699
39700         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
39701         * modules/mbrtowc (Depends-on): Add verify.
39702         Suggested by Paul Eggert.
39703
39704 2008-12-18  Bruno Haible  <bruno@clisp.org>
39705
39706         * modules/mbsinit-tests: New file.
39707         * tests/test-mbsinit.sh: New file.
39708         * tests/test-mbsinit.c: New file.
39709
39710 2008-12-18  Bruno Haible  <bruno@clisp.org>
39711
39712         * modules/mbrtowc-tests: New file.
39713         * tests/test-mbrtowc1.sh: New file.
39714         * tests/test-mbrtowc2.sh: New file.
39715         * tests/test-mbrtowc3.sh: New file.
39716         * tests/test-mbrtowc4.sh: New file.
39717         * tests/test-mbrtowc.c: New file.
39718
39719         New module 'mbrtowc'.
39720         * lib/wchar.in.h (mbstate_t): Override when the system does not have
39721         mbsinit and mbrtowc.
39722         (mbrtowc): New declaration.
39723         * lib/mbrtowc.c: New file.
39724         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
39725         * modules/mbrtowc: New file.
39726         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
39727         HAVE_MBRTOWC.
39728         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
39729         HAVE_MBRTOWC.
39730         * doc/posix-functions/mbrtowc.texi: Document the new module.
39731
39732 2008-12-18  Bruno Haible  <bruno@clisp.org>
39733
39734         New module 'wctob'.
39735         * lib/wchar.in.h (wctob): New declaration.
39736         * lib/wctob.c: New file.
39737         * m4/wctob.m4: New file.
39738         * modules/wctob: New file.
39739         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
39740         HAVE_WCTOB.
39741         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
39742         * doc/posix-functions/wctob.texi: Document the new module.
39743
39744 2008-12-18  Bruno Haible  <bruno@clisp.org>
39745
39746         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
39747         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
39748
39749 2008-12-18  Simon Josefsson  <simon@josefsson.org>
39750
39751         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
39752         G. Christensen" <tgc@jupiterrise.com>.
39753
39754         * lib/flock.c: Need to include errno.h.  Reported by "Tom
39755         G. Christensen" <tgc@jupiterrise.com>.
39756
39757         * lib/flock.c: Need to include string.h.  Reported by "Tom
39758         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
39759         <ebb9@byu.net>.
39760
39761 2008-12-18  Bruno Haible  <bruno@clisp.org>
39762
39763         * m4/locale-ja.m4: New file, from GNU gettext.
39764
39765 2008-12-17  Bruno Haible  <bruno@clisp.org>
39766
39767         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
39768         Suggested by Eric Blake.
39769
39770 2008-12-17  Bruno Haible  <bruno@clisp.org>
39771
39772         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
39773
39774 2008-12-17  Bruno Haible  <bruno@clisp.org>
39775
39776         * lib/mbsinit.c: Include verify.h. Verify an assumption.
39777         * modules/mbsinit (Depends-on): Add verify.
39778         Suggested by Paul Eggert.
39779
39780 2008-12-17  Bruno Haible  <bruno@clisp.org>
39781
39782         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
39783         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
39784         gl_FUNC_MBRTOWC.
39785         * m4/mbiter.m4 (gl_MBITER): LIkewise.
39786         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
39787         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
39788         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
39789         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
39790         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
39791         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
39792         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
39793         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
39794         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
39795         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
39796         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
39797         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
39798         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
39799         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
39800         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
39801         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
39802         * modules/trim (configure.ac): Likewise.
39803
39804 2008-12-17  Bruno Haible  <bruno@clisp.org>
39805
39806         * modules/btowc-tests: New file.
39807         * tests/test-btowc1.sh: New file.
39808         * tests/test-btowc2.sh: New file.
39809         * tests/test-btowc.c: New file.
39810
39811         New module 'btowc'.
39812         * lib/wchar.in.h (btowc): New declaration.
39813         * lib/btowc.c: New file.
39814         * m4/btowc.m4: New file.
39815         * modules/btowc: New file.
39816         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
39817         HAVE_BTOWC.
39818         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
39819         * doc/posix-functions/btowc.texi: Document the new module.
39820
39821 2008-12-17  Bruno Haible  <bruno@clisp.org>
39822
39823         New module 'mbsinit'.
39824         * lib/wchar.in.h (mbsinit): New declaration.
39825         * lib/mbsinit.c: New file.
39826         * m4/mbsinit.m4: New file.
39827         * modules/mbsinit: New file.
39828         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
39829         HAVE_MBSINIT.
39830         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
39831         HAVE_MBSINIT.
39832         * doc/posix-functions/mbsinit.texi: Document the new module.
39833
39834 2008-12-16  Bruno Haible  <bruno@clisp.org>
39835
39836         * lib/unistd.in.h: Add comment.
39837         * tests/test-environ.c: Don't include <stdlib.h>.
39838
39839 2008-12-16  Bruno Haible  <bruno@clisp.org>
39840
39841         * lib/parse-duration.h (parse_duration): Document return value
39842         convention.
39843         * lib/parse-duration.c: Include specification header first. Add
39844         comments.
39845         (_): Remove macro.
39846         (parse_year_month_day, parse_hour_minute_second): Move side effects
39847         outside of strchr call.
39848         (parse_non_iso8601): Move side effects outside of isspace call.
39849         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
39850         call.
39851
39852 2008-12-16  Bruno Haible  <bruno@clisp.org>
39853
39854         * tests/test-parse-duration.sh: Produce no output when the test
39855         succeeds.
39856
39857 2008-12-16  Bruno Haible  <bruno@clisp.org>
39858
39859         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
39860         expressions.
39861
39862 2008-12-15  Bruno Haible  <bruno@clisp.org>
39863
39864         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
39865         * doc/glibc-functions/flistxattr.texi: Likewise.
39866         * doc/glibc-functions/fopencookie.texi: Likewise.
39867         * doc/glibc-functions/fremovexattr.texi: Likewise.
39868         * doc/glibc-functions/fsetxattr.texi: Likewise.
39869         * doc/glibc-functions/getxattr.texi: Likewise.
39870         * doc/glibc-functions/lgetxattr.texi: Likewise.
39871         * doc/glibc-functions/listxattr.texi: Likewise.
39872         * doc/glibc-functions/llistxattr.texi: Likewise.
39873         * doc/glibc-functions/lremovexattr.texi: Likewise.
39874         * doc/glibc-functions/lsetxattr.texi: Likewise.
39875         * doc/glibc-functions/removexattr.texi: Likewise.
39876         * doc/glibc-functions/setxattr.texi: Likewise.
39877         * doc/posix-functions/open_memstream.texi: Likewise.
39878
39879 2008-12-15  Eric Blake  <ebb9@byu.net>
39880
39881         Update doc for cygwin 1.7.
39882         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
39883         functions.
39884         * doc/posix-functions/fchmodat.texi: Likewise.
39885         * doc/posix-functions/fchownat.texi: Likewise.
39886         * doc/posix-functions/fdopendir.texi: Likewise.
39887         * doc/posix-functions/fmemopen.texi: Likewise.
39888         * doc/posix-functions/freeaddrinfo.texi: Likewise.
39889         * doc/posix-functions/fstatat.texi: Likewise.
39890         * doc/posix-functions/futimens.texi: Likewise.
39891         * doc/posix-functions/gai_strerror.texi: Likewise.
39892         * doc/posix-functions/getaddrinfo.texi: Likewise.
39893         * doc/posix-functions/getnameinfo.texi: Likewise.
39894         * doc/posix-functions/if_freenameindex.texi: Likewise.
39895         * doc/posix-functions/if_indextoname.texi: Likewise.
39896         * doc/posix-functions/if_nameindex.texi: Likewise.
39897         * doc/posix-functions/if_nametoindex.texi: Likewise.
39898         * doc/posix-functions/insque.texi: Likewise.
39899         * doc/posix-functions/linkat.texi: Likewise.
39900         * doc/posix-functions/llrint.texi: Likewise.
39901         * doc/posix-functions/llrintf.texi: Likewise.
39902         * doc/posix-functions/llrintl.texi: Likewise.
39903         * doc/posix-functions/lockf.texi: Likewise.
39904         * doc/posix-functions/lrintl.texi: Likewise.
39905         * doc/posix-functions/mkdirat.texi: Likewise.
39906         * doc/posix-functions/mkfifoat.texi: Likewise.
39907         * doc/posix-functions/mknodat.texi: Likewise.
39908         * doc/posix-functions/mq_close.texi: Likewise.
39909         * doc/posix-functions/mq_getattr.texi: Likewise.
39910         * doc/posix-functions/mq_notify.texi: Likewise.
39911         * doc/posix-functions/mq_open.texi: Likewise.
39912         * doc/posix-functions/mq_receive.texi: Likewise.
39913         * doc/posix-functions/mq_send.texi: Likewise.
39914         * doc/posix-functions/mq_setattr.texi: Likewise.
39915         * doc/posix-functions/mq_timedreceive.texi: Likewise.
39916         * doc/posix-functions/mq_timedsend.texi: Likewise.
39917         * doc/posix-functions/mq_unlink.texi: Likewise.
39918         * doc/posix-functions/open_memstream.texi: Likewise.
39919         * doc/posix-functions/openat.texi: Likewise.
39920         * doc/posix-functions/posix_fadvise.texi: Likewise.
39921         * doc/posix-functions/posix_fallocate.texi: Likewise.
39922         * doc/posix-functions/posix_madvise.texi: Likewise.
39923         * doc/posix-functions/posix_memalign.texi: Likewise.
39924         * doc/posix-functions/posix_openpt.texi: Likewise.
39925         * doc/posix-functions/readlinkat.texi: Likewise.
39926         * doc/posix-functions/remque.texi: Likewise.
39927         * doc/posix-functions/renameat.texi: Likewise.
39928         * doc/posix-functions/rintl.texi: Likewise.
39929         * doc/posix-functions/sem_unlink.texi: Likewise.
39930         * doc/posix-functions/shm_open.texi: Likewise.
39931         * doc/posix-functions/shm_unlink.texi: Likewise.
39932         * doc/posix-functions/signgam.texi: Likewise.
39933         * doc/posix-functions/sigset.texi: Likewise.
39934         * doc/posix-functions/stpcpy.texi: Likewise.
39935         * doc/posix-functions/stpncpy.texi: Likewise.
39936         * doc/posix-functions/strerror.texi: Likewise.
39937         * doc/posix-functions/strtod.texi: Likewise.
39938         * doc/posix-functions/symlinkat.texi: Likewise.
39939         * doc/posix-functions/unlinkat.texi: Likewise.
39940         * doc/posix-functions/utimensat.texi: Likewise.
39941         * doc/glibc-functions/bindresvport.texi: Likewise.
39942         * doc/glibc-functions/dn_expand.texi: Likewise.
39943         * doc/glibc-functions/exp10.texi: Likewise.
39944         * doc/glibc-functions/exp10f.texi: Likewise.
39945         * doc/glibc-functions/fgetxattr.texi: Likewise.
39946         * doc/glibc-functions/flistxattr.texi: Likewise.
39947         * doc/glibc-functions/fopencookie.texi: Likewise.
39948         * doc/glibc-functions/freeifaddrs.texi: Likewise.
39949         * doc/glibc-functions/fremovexattr.texi: Likewise.
39950         * doc/glibc-functions/fsetxattr.texi: Likewise.
39951         * doc/glibc-functions/getifaddrs.texi: Likewise.
39952         * doc/glibc-functions/getxattr.texi: Likewise.
39953         * doc/glibc-functions/lgetxattr.texi: Likewise.
39954         * doc/glibc-functions/listxattr.texi: Likewise.
39955         * doc/glibc-functions/llistxattr.texi: Likewise.
39956         * doc/glibc-functions/lremovexattr.texi: Likewise.
39957         * doc/glibc-functions/lsetxattr.texi: Likewise.
39958         * doc/glibc-functions/pow10.texi: Likewise.
39959         * doc/glibc-functions/pow10f.texi: Likewise.
39960         * doc/glibc-functions/rcmd_af.texi: Likewise.
39961         * doc/glibc-functions/removexattr.texi: Likewise.
39962         * doc/glibc-functions/res_init.texi: Likewise.
39963         * doc/glibc-functions/res_mkquery.texi: Likewise.
39964         * doc/glibc-functions/res_query.texi: Likewise.
39965         * doc/glibc-functions/res_querydomain.texi: Likewise.
39966         * doc/glibc-functions/res_send.texi: Likewise.
39967         * doc/glibc-functions/rresvport_af.texi: Likewise.
39968         * doc/glibc-functions/setxattr.texi: Likewise.
39969         * doc/glibc-functions/strcasestr.texi: Likewise.
39970
39971 2008-12-15  Bruno Haible  <bruno@clisp.org>
39972
39973         Fix compilation error on OSF/1 4.0.
39974         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
39975         <sys/time.h>, simply delegate to the system header.
39976         Reported by Daniel Richard G. <oss@teragram.com>.
39977
39978 2008-12-15  Bruno Haible  <bruno@clisp.org>
39979
39980         * doc/posix-functions/openat.texi: Mention the 'openat' module.
39981         * doc/posix-functions/fchmodat.texi: Likewise.
39982         * doc/posix-functions/fchownat.texi: Likewise.
39983         * doc/posix-functions/fdopendir.texi: Likewise.
39984         * doc/posix-functions/fstatat.texi: Likewise.
39985         * doc/posix-functions/mkdirat.texi: Likewise.
39986         * doc/posix-functions/unlinkat.texi: Likewise.
39987
39988 2008-12-14  Bruno Haible  <bruno@clisp.org>
39989
39990         Update doc for POSIX:2008.
39991         * doc/posix-functions/faccessat.texi: New file.
39992         * doc/posix-functions/fchmodat.texi: New file.
39993         * doc/posix-functions/fchownat.texi: New file.
39994         * doc/posix-functions/fdopendir.texi: New file.
39995         * doc/posix-functions/fstatat.texi: New file.
39996         * doc/posix-functions/futimens.texi: New file.
39997         * doc/posix-functions/linkat.texi: New file.
39998         * doc/posix-functions/mkdirat.texi: New file.
39999         * doc/posix-functions/mkfifoat.texi: New file.
40000         * doc/posix-functions/mknodat.texi: New file.
40001         * doc/posix-functions/open_wmemstream.texi: New file.
40002         * doc/posix-functions/openat.texi: New file.
40003         * doc/posix-functions/psiginfo.texi: New file.
40004         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
40005         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
40006         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
40007         * doc/posix-functions/readlinkat.texi: New file.
40008         * doc/posix-functions/renameat.texi: New file.
40009         * doc/posix-functions/strerror_l.texi: New file.
40010         * doc/posix-functions/symlinkat.texi: New file.
40011         * doc/posix-functions/unlinkat.texi: New file.
40012         * doc/posix-functions/utimensat.texi: New file.
40013         * doc/gnulib.texi (Function Substitutes): Add these subsections.
40014
40015 2008-12-14  Bruno Haible  <bruno@clisp.org>
40016
40017         Update doc for POSIX:2008.
40018         * doc/posix-functions/alphasort.texi: Renamed from
40019         doc/glibc-functions/alphasort.texi.
40020         * doc/posix-functions/dirfd.texi: Renamed from
40021         doc/glibc-functions/dirfd.texi.
40022         * doc/posix-functions/dprintf.texi: Renamed from
40023         doc/glibc-functions/dprintf.texi.
40024         * doc/posix-functions/duplocale.texi: Renamed from
40025         doc/glibc-functions/duplocale.texi.
40026         * doc/posix-functions/fexecve.texi: Renamed from
40027         doc/glibc-functions/fexecve.texi.
40028         * doc/posix-functions/fmemopen.texi: Renamed from
40029         doc/glibc-functions/fmemopen.texi.
40030         * doc/posix-functions/freelocale.texi: Renamed from
40031         doc/glibc-functions/freelocale.texi.
40032         * doc/posix-functions/getdate_err.texi: Renamed from
40033         doc/glibc-functions/getdate_err.texi.
40034         * doc/posix-functions/isalnum_l.texi: Renamed from
40035         doc/glibc-functions/isalnum_l.texi.
40036         * doc/posix-functions/isalpha_l.texi: Renamed from
40037         doc/glibc-functions/isalpha_l.texi.
40038         * doc/posix-functions/isblank_l.texi: Renamed from
40039         doc/glibc-functions/isblank_l.texi.
40040         * doc/posix-functions/iscntrl_l.texi: Renamed from
40041         doc/glibc-functions/iscntrl_l.texi.
40042         * doc/posix-functions/isdigit_l.texi: Renamed from
40043         doc/glibc-functions/isdigit_l.texi.
40044         * doc/posix-functions/isgraph_l.texi: Renamed from
40045         doc/glibc-functions/isgraph_l.texi.
40046         * doc/posix-functions/islower_l.texi: Renamed from
40047         doc/glibc-functions/islower_l.texi.
40048         * doc/posix-functions/isprint_l.texi: Renamed from
40049         doc/glibc-functions/isprint_l.texi.
40050         * doc/posix-functions/ispunct_l.texi: Renamed from
40051         doc/glibc-functions/ispunct_l.texi.
40052         * doc/posix-functions/isspace_l.texi: Renamed from
40053         doc/glibc-functions/isspace_l.texi.
40054         * doc/posix-functions/isupper_l.texi: Renamed from
40055         doc/glibc-functions/isupper_l.texi.
40056         * doc/posix-functions/iswalnum_l.texi: Renamed from
40057         doc/glibc-functions/iswalnum_l.texi.
40058         * doc/posix-functions/iswalpha_l.texi: Renamed from
40059         doc/glibc-functions/iswalpha_l.texi.
40060         * doc/posix-functions/iswblank_l.texi: Renamed from
40061         doc/glibc-functions/iswblank_l.texi.
40062         * doc/posix-functions/iswcntrl_l.texi: Renamed from
40063         doc/glibc-functions/iswcntrl_l.texi.
40064         * doc/posix-functions/iswctype_l.texi: Renamed from
40065         doc/glibc-functions/iswctype_l.texi.
40066         * doc/posix-functions/iswdigit_l.texi: Renamed from
40067         doc/glibc-functions/iswdigit_l.texi.
40068         * doc/posix-functions/iswgraph_l.texi: Renamed from
40069         doc/glibc-functions/iswgraph_l.texi.
40070         * doc/posix-functions/iswlower_l.texi: Renamed from
40071         doc/glibc-functions/iswlower_l.texi.
40072         * doc/posix-functions/iswprint_l.texi: Renamed from
40073         doc/glibc-functions/iswprint_l.texi.
40074         * doc/posix-functions/iswpunct_l.texi: Renamed from
40075         doc/glibc-functions/iswpunct_l.texi.
40076         * doc/posix-functions/iswspace_l.texi: Renamed from
40077         doc/glibc-functions/iswspace_l.texi.
40078         * doc/posix-functions/iswupper_l.texi: Renamed from
40079         doc/glibc-functions/iswupper_l.texi.
40080         * doc/posix-functions/iswxdigit_l.texi: Renamed from
40081         doc/glibc-functions/iswxdigit_l.texi.
40082         * doc/posix-functions/isxdigit_l.texi: Renamed from
40083         doc/glibc-functions/isxdigit_l.texi.
40084         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
40085         doc/glibc-functions/mbsnrtowcs.texi.
40086         * doc/posix-functions/mkdtemp.texi: Renamed from
40087         doc/glibc-functions/mkdtemp.texi.
40088         * doc/posix-functions/newlocale.texi: Renamed from
40089         doc/glibc-functions/newlocale.texi.
40090         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
40091         doc/glibc-functions/nl_langinfo_l.texi.
40092         * doc/posix-functions/open_memstream.texi: Renamed from
40093         doc/glibc-functions/open_memstream.texi.
40094         * doc/posix-functions/opterr.texi: Renamed from
40095         doc/glibc-functions/opterr.texi.
40096         * doc/posix-functions/optind.texi: Renamed from
40097         doc/glibc-functions/optind.texi.
40098         * doc/posix-functions/optopt.texi: Renamed from
40099         doc/glibc-functions/optopt.texi.
40100         * doc/posix-functions/psignal.texi: Renamed from
40101         doc/glibc-functions/psignal.texi.
40102         * doc/posix-functions/scandir.texi: Renamed from
40103         doc/glibc-functions/scandir.texi.
40104         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
40105         doc/glibc-functions/sched_get_priority_min.texi.
40106         * doc/posix-functions/signgam.texi: Renamed from
40107         doc/glibc-functions/signgam.texi.
40108         * doc/posix-functions/stpcpy.texi: Renamed from
40109         doc/glibc-functions/stpcpy.texi.
40110         * doc/posix-functions/stpncpy.texi: Renamed from
40111         doc/glibc-functions/stpncpy.texi.
40112         * doc/posix-functions/strcasecmp_l.texi: Renamed from
40113         doc/glibc-functions/strcasecmp_l.texi.
40114         * doc/posix-functions/strcoll_l.texi: Renamed from
40115         doc/glibc-functions/strcoll_l.texi.
40116         * doc/posix-functions/strfmon_l.texi: Renamed from
40117         doc/glibc-functions/strfmon_l.texi.
40118         * doc/posix-functions/strftime_l.texi: Renamed from
40119         doc/glibc-functions/strftime_l.texi.
40120         * doc/posix-functions/strncasecmp_l.texi: Renamed from
40121         doc/glibc-functions/strncasecmp_l.texi.
40122         * doc/posix-functions/strndup.texi: Renamed from
40123         doc/glibc-functions/strndup.texi.
40124         * doc/posix-functions/strnlen.texi: Renamed from
40125         doc/glibc-functions/strnlen.texi.
40126         * doc/posix-functions/strsignal.texi: Renamed from
40127         doc/glibc-functions/strsignal.texi.
40128         * doc/posix-functions/strxfrm_l.texi: Renamed from
40129         doc/glibc-functions/strxfrm_l.texi.
40130         * doc/posix-functions/timer_gettime.texi: Renamed from
40131         doc/glibc-functions/timer_gettime.texi.
40132         * doc/posix-functions/tolower_l.texi: Renamed from
40133         doc/glibc-functions/tolower_l.texi.
40134         * doc/posix-functions/toupper_l.texi: Renamed from
40135         doc/glibc-functions/toupper_l.texi.
40136         * doc/posix-functions/towctrans_l.texi: Renamed from
40137         doc/glibc-functions/towctrans_l.texi.
40138         * doc/posix-functions/towlower_l.texi: Renamed from
40139         doc/glibc-functions/towlower_l.texi.
40140         * doc/posix-functions/towupper_l.texi: Renamed from
40141         doc/glibc-functions/towupper_l.texi.
40142         * doc/posix-functions/uselocale.texi: Renamed from
40143         doc/glibc-functions/uselocale.texi.
40144         * doc/posix-functions/vdprintf.texi: Renamed from
40145         doc/glibc-functions/vdprintf.texi.
40146         * doc/posix-functions/wcpcpy.texi:
40147         Renamed from doc/glibc-functions/wcpcpy.texi.
40148         * doc/posix-functions/wcpncpy.texi: Renamed from
40149         doc/glibc-functions/wcpncpy.texi.
40150         * doc/posix-functions/wcscasecmp.texi: Renamed from
40151         doc/glibc-functions/wcscasecmp.texi.
40152         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
40153         doc/glibc-functions/wcscasecmp_l.texi.
40154         * doc/posix-functions/wcscoll_l.texi: Renamed from
40155         doc/glibc-functions/wcscoll_l.texi.
40156         * doc/posix-functions/wcsdup.texi: Renamed from
40157         doc/glibc-functions/wcsdup.texi.
40158         * doc/posix-functions/wcsncasecmp.texi: Renamed from
40159         doc/glibc-functions/wcsncasecmp.texi.
40160         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
40161         doc/glibc-functions/wcsncasecmp_l.texi.
40162         * doc/posix-functions/wcsnlen.texi: Renamed from
40163         doc/glibc-functions/wcsnlen.texi.
40164         * doc/posix-functions/wcsnrtombs.texi: Renamed from
40165         doc/glibc-functions/wcsnrtombs.texi.
40166         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
40167         doc/glibc-functions/wcsxfrm_l.texi.
40168         * doc/posix-functions/wctrans_l.texi: Renamed from
40169         doc/glibc-functions/wctrans_l.texi.
40170         * doc/posix-functions/wctype_l.texi: Renamed from
40171         doc/glibc-functions/wctype_l.texi.
40172         * doc/gnulib.texi (Function Substitutes): Add these subsections.
40173         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
40174         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
40175         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
40176         these subsections.
40177         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
40178         Remove sections.
40179
40180 2008-12-14  Bruno Haible  <bruno@clisp.org>
40181
40182         Update doc for POSIX:2008.
40183         * doc/posix-functions/*.texi: Update URL of POSIX specification.
40184
40185 2008-12-14  Bruno Haible  <bruno@clisp.org>
40186
40187         Update doc for POSIX:2008.
40188         * doc/pastposix-functions/bcmp.texi: Renamed from
40189         doc/posix-functions/bcmp.texi.
40190         * doc/pastposix-functions/bcopy.texi: Renamed from
40191         doc/posix-functions/bcopy.texi.
40192         * doc/pastposix-functions/bsd_signal.texi: Renamed from
40193         doc/posix-functions/bsd_signal.texi.
40194         * doc/pastposix-functions/bzero.texi: Renamed from
40195         doc/posix-functions/bzero.texi.
40196         * doc/pastposix-functions/ecvt.texi: Renamed from
40197         doc/posix-functions/ecvt.texi.
40198         * doc/pastposix-functions/fcvt.texi: Renamed from
40199         doc/posix-functions/fcvt.texi.
40200         * doc/pastposix-functions/ftime.texi: Renamed from
40201         doc/posix-functions/ftime.texi.
40202         * doc/pastposix-functions/gcvt.texi: Renamed from
40203         doc/posix-functions/gcvt.texi.
40204         * doc/pastposix-functions/getcontext.texi: Renamed from
40205         doc/posix-functions/getcontext.texi.
40206         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
40207         doc/posix-functions/gethostbyaddr.texi.
40208         * doc/pastposix-functions/gethostbyname.texi: Renamed from
40209         doc/posix-functions/gethostbyname.texi.
40210         * doc/pastposix-functions/getwd.texi: Renamed from
40211         doc/posix-functions/getwd.texi.
40212         * doc/pastposix-functions/h_errno.texi: Renamed from
40213         doc/posix-functions/h_errno.texi.
40214         * doc/pastposix-functions/index.texi: Renamed from
40215         doc/posix-functions/index.texi.
40216         * doc/pastposix-functions/makecontext.texi: Renamed from
40217         doc/posix-functions/makecontext.texi.
40218         * doc/pastposix-functions/mktemp.texi: Renamed from
40219         doc/posix-functions/mktemp.texi.
40220         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
40221         doc/posix-functions/pthread_attr_getstackaddr.texi.
40222         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
40223         doc/posix-functions/pthread_attr_setstackaddr.texi.
40224         * doc/pastposix-functions/rindex.texi: Renamed from
40225         doc/posix-functions/rindex.texi.
40226         * doc/pastposix-functions/scalb.texi: Renamed from
40227         doc/posix-functions/scalb.texi.
40228         * doc/pastposix-functions/setcontext.texi: Renamed from
40229         doc/posix-functions/setcontext.texi.
40230         * doc/pastposix-functions/swapcontext.texi: Renamed from
40231         doc/posix-functions/swapcontext.texi.
40232         * doc/pastposix-functions/ualarm.texi: Renamed from
40233         doc/posix-functions/ualarm.texi.
40234         * doc/pastposix-functions/usleep.texi: Renamed from
40235         doc/posix-functions/usleep.texi.
40236         * doc/pastposix-functions/vfork.texi: Renamed from
40237         doc/posix-functions/vfork.texi.
40238         * doc/pastposix-functions/wcswcs.texi: Renamed from
40239         doc/posix-functions/wcswcs.texi.
40240         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
40241         (Function Substitutes): Update.
40242
40243 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40244
40245         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
40246         m4/strerror.m4.
40247
40248 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40249             Bruno Haible  <bruno@clisp.org>
40250
40251         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
40252
40253 2008-12-13  Bruno Haible  <bruno@clisp.org>
40254
40255         * modules/strtoull (Depends-on): Remove unistd.
40256
40257 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40258
40259         * modules/strtoull (Depends-on): Add stdlib.
40260
40261 2008-12-11  Simon Josefsson  <simon@josefsson.org>
40262
40263         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
40264
40265 2008-12-10  Jim Meyering  <meyering@redhat.com>
40266
40267         gl_ASSERT: don't say assertions are disabled when they're not
40268         * m4/assert.m4 (gl_ASSERT): Do not make configure report
40269         "checking whether to enable assertions... no", when they are in
40270         fact enabled.  This is solely a bug in the output of configure.
40271         In spite of saying "no", NDEBUG was not defined in that case.
40272         Also, as noted by Eric Blake, leave assertions enabled upon
40273         --enable-assert=INVALID.
40274
40275 2008-12-10  Bruno Haible  <bruno@clisp.org>
40276
40277         Change MODULES.html to refer to POSIX:2008 where possible.
40278         * MODULES.html.sh (POSIX2008_URL): New variable.
40279         (posix_headers): Remove sys/timeb, ucontext.
40280         (posix2001_headers): New variable.
40281         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
40282         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
40283         index, makecontext, mktemp, pthread_attr_getstackaddr,
40284         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
40285         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
40286         (posix2001_functions): New variable.
40287         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
40288         otherwise.
40289
40290 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40291
40292         add missing include to parse-duration.c
40293         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
40294         * modules/parse-duration (Depends-on): Add xalloc.
40295
40296         fix sed script reading maint.mk
40297         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
40298         (syntax-check-rules): Use it.
40299
40300 2008-12-09  Bruno Haible  <bruno@clisp.org>
40301
40302         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
40303         MacOS X 10.4/PowerPC.
40304         Reported by Simon Josefsson.
40305
40306 2008-12-08  Jim Meyering  <meyering@redhat.com>
40307
40308         work around mingw's lack of some S_IF definitions
40309         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
40310         Reported by Simon Josefsson.
40311
40312 2008-12-08  Bruno Haible  <bruno@clisp.org>
40313
40314         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
40315         applied to variables. Needed on MacOS X 10.4/PowerPC.
40316         Reported by Simon Josefsson.
40317
40318 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
40319         and Eric Blake  <ebb9@byu.net>
40320
40321         assert: honor --enable-assert
40322         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
40323         order to honor --enable-assert, rather than treating it as a
40324         synonym for --disable-assert.
40325
40326 2008-12-08  Jim Meyering  <meyering@redhat.com>
40327
40328         * lib/posixtm.c: Remove now-useless declaration of mktime.
40329
40330         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
40331
40332 2008-12-07  Bruno Haible  <bruno@clisp.org>
40333
40334         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
40335         test_once): Mark functions as static.
40336         * tests/test-tls.c (test_tls): Likewise.
40337
40338 2008-12-07  Bruno Haible  <bruno@clisp.org>
40339
40340         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
40341         iconv_register_autodetect.
40342
40343 2008-12-07  Jim Meyering  <meyering@redhat.com>
40344
40345         posixtm.c: avoid a warning
40346         * lib/posixtm.c (posixtime): Don't initialize tm0.
40347         It's no longer needed to placate gcc4's -Wuninitialized,
40348         and the attempt to placate would elicit a new warning.
40349
40350         unicodeio.c: mark unused parameters
40351         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
40352         (fallback_failure_callback): Likewise.
40353
40354 2008-12-07  Bruno Haible  <bruno@clisp.org>
40355
40356         * gnulib-tool (func_create_testdir): When building the tests
40357         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
40358         Reported by Simon Josefsson.
40359
40360 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40361
40362         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
40363
40364 2008-12-06  Bruno Haible  <bruno@clisp.org>
40365
40366         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
40367         Suggested by Eric Blake.
40368
40369 2008-12-06  Bruno Haible  <bruno@clisp.org>
40370
40371         Fix a c-stack test failure on MacOS X.
40372         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
40373         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
40374         handler for SIGBUS as well.
40375         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
40376         install a signal handler for SIGBUS as well.
40377         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
40378
40379 2008-12-06  Bruno Haible  <bruno@clisp.org>
40380
40381         Advocacy documentation.
40382         * doc/gnulib-intro.texi (Benefits): New section.
40383         * doc/gnulib.texi: Update.
40384
40385 2008-12-06  Bruno Haible  <bruno@clisp.org>
40386
40387         Document the 'manywarnings' module.
40388         * doc/manywarnings.texi: New file.
40389         * doc/gnulib.texi: Include it.
40390
40391 2008-12-05  Eric Blake  <ebb9@byu.net>
40392
40393         tests: silence some gcc warnings
40394         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
40395         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
40396         type mismatches.
40397
40398 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40399             Bruno Haible  <bruno@clisp.org>
40400
40401         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
40402
40403 2008-11-29  Jim Meyering  <meyering@redhat.com>
40404
40405         unicodeio.c: mark unused parameters
40406         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
40407         (fallback_failure_callback): Likewise.
40408
40409         fts: fix a thinko
40410         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
40411         (set_stat_type): Return S_IF*-valued "type" directly.
40412         Prompted by James Youngman's spotting a related bug.
40413         Confirmed by further testing through find.
40414
40415         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
40416         * lib/fts.c (D_TYPE): Define.
40417         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
40418         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
40419         (s_ifmt_shift_bits): New function.
40420         (set_stat_type): New function.
40421         (fts_build): When not calling fts_stat, call set_stat_type
40422         to propagate dirent.d_type info to fts_read caller.
40423         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
40424         fts_statp->st_mode type information may be valid.
40425
40426 2008-11-28  Simon Josefsson  <simon@josefsson.org>
40427
40428         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
40429         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
40430         <sds@gnu.org>.
40431
40432 2008-11-20  Bruno Haible  <bruno@clisp.org>
40433
40434         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
40435         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
40436         INCLUDE_NEXT.
40437         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
40438         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
40439         * modules/math (Makefile.am): Substitute
40440         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
40441         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40442
40443 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
40444             Bruno Haible  <bruno@clisp.org>
40445
40446         * lib/stdint.in.h: Define all type macros so that their expansion is
40447         a single typedef'ed token. Fixes a compilation failure in Boost which
40448         does "using ::int8_t;".
40449
40450 2008-11-18  Simon Josefsson  <simon@josefsson.org>
40451
40452         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
40453         gl_MANYWARN_ALL_GCC.
40454         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
40455         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
40456         * modules/manywarnings: New file.
40457         * MODULES.html.sh: Mention manywarnings module.
40458
40459 2008-11-18  Bruno Haible  <bruno@clisp.org>
40460
40461         * doc/gnulib-tool.texi (Unit tests): New section.
40462
40463 2008-11-18  Simon Josefsson  <simon@josefsson.org>
40464
40465         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
40466         paths like 'lib/po/foo.po'.
40467
40468 2008-11-17  Simon Josefsson  <simon@josefsson.org>
40469
40470         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
40471         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
40472
40473 2008-11-17  Simon Josefsson  <simon@josefsson.org>
40474
40475         * m4/warnings.m4: Use CPPFLAGS to really check whether the
40476         parameter works.
40477
40478 2008-11-17  Simon Josefsson  <simon@josefsson.org>
40479
40480         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
40481
40482 2008-11-17  Bruce Korb  <bkorb@gnu.org>
40483
40484         * modules/parse-duration-tests: New file.
40485         * tests/test-parse-duration.sh: New file.
40486         * tests/test-parse-duration.c: New file.
40487
40488         New module 'parse-duration'.
40489         * lib/parse-duration.h: New file.
40490         * lib/parse-duration.c: New file.
40491         * modules/parse-duration: New file.
40492
40493 2008-11-17  Bruno Haible  <bruno@clisp.org>
40494
40495         * tests/test-select-out.sh: Comment out the first pipe test.
40496         Reported by Simon Josefsson.
40497
40498 2008-11-17  Bruno Haible  <bruno@clisp.org>
40499
40500         * modules/getaddrinfo (Depends-on): Add servent, hostent.
40501         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
40502         gl_HOSTENT.
40503
40504 2008-11-17  Bruno Haible  <bruno@clisp.org>
40505
40506         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
40507         -lnetwork and -lnet. Needed for Haiku and BeOS.
40508
40509 2008-11-16  Bruno Haible  <bruno@clisp.org>
40510
40511         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
40512
40513 2008-11-16  Bruno Haible  <bruno@clisp.org>
40514
40515         Avoid test failure on Haiku.
40516         * tests/test-fsync.c: Include <errno.h>.
40517         (main): Don't require that fsync (0) fails.
40518
40519 2008-11-15  Bruno Haible  <bruno@clisp.org>
40520
40521         New module 'hostent'.
40522         * modules/hostent: New file.
40523         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
40524
40525 2008-11-15  Bruno Haible  <bruno@clisp.org>
40526
40527         New module 'servent'.
40528         * modules/servent: New file.
40529         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
40530
40531 2008-11-15  Bruno Haible  <bruno@clisp.org>
40532
40533         Avoid generating same test program with two different rules.
40534         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
40535         test-frexp to test-frexp-nolibm.
40536         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
40537         test-frexpl to test-frexpl-nolibm.
40538
40539 2008-11-15  Bruno Haible  <bruno@clisp.org>
40540
40541         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
40542         $(FREXPL_LIBM).
40543
40544 2008-11-15  Bruno Haible  <bruno@clisp.org>
40545
40546         * lib/netdb.in.h: Activate the definitions also when the system's
40547         <netdb.h> has 'struct addrinfo'.
40548         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
40549         EAI_OVERFLOW or AI_NUMERICSERV.
40550         * doc/posix-headers/netdb.texi: Document the problem.
40551
40552 2008-11-15  Bruno Haible  <bruno@clisp.org>
40553
40554         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
40555
40556         Make the 'sched' module work on platforms where <sched.h> exists but
40557         is incomplete (such as Haiku).
40558         * lib/sched.in.h; Include the system's <sched.h> if it exists.
40559         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
40560         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
40561         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
40562         HAVE_STRUCT_SCHED_PARAM.
40563         * modules/sched (Depends-on): Add include_next.
40564         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
40565         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
40566         * doc/posix-headers/sched.texi: Document the issue.
40567
40568 2008-11-13  Jim Meyering  <meyering@redhat.com>
40569
40570         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
40571         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
40572         test would fail due to the difference in the Report bugs to ...
40573         line.  The expected address is empty, "<>", while the actual
40574         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
40575
40576 2008-11-12  Bruno Haible  <bruno@clisp.org>
40577
40578         lstat: don't compile lstat.c on systems lacking lstat
40579         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
40580         which don't have lstat; this is handled by lib/sys_stat.in.h already.
40581         Reported by Daniel P. Berrange via Jim Meyering.
40582
40583 2008-11-12  Jim Meyering  <meyering@redhat.com>
40584
40585         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
40586
40587 2008-11-12  Simon Josefsson  <simon@josefsson.org>
40588
40589         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
40590         instead.
40591
40592 2008-11-12  Bruno Haible  <bruno@clisp.org>
40593
40594         * lib/unicodeio.c: Include unistr.h.
40595         (utf8_wctomb): Remove function.
40596         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
40597
40598 2008-11-12  Simon Josefsson  <simon@josefsson.org>
40599
40600         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
40601         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
40602         <bruno@clisp.org>.
40603         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
40604
40605 2008-11-12  Simon Josefsson  <simon@josefsson.org>
40606
40607         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
40608         * doc/gnulib.texi: Add section for warnings.
40609
40610 2008-11-11  Bruno Haible  <bruno@clisp.org>
40611
40612         * lib/sockets.h: Add a comment.
40613
40614 2008-11-11  Karl Berry  <karl@gnu.org>
40615
40616         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
40617
40618 2008-11-11  Eric Blake  <ebb9@byu.net>
40619
40620         fdl.texi: avoid git symlinks
40621         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
40622
40623 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
40624
40625         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
40626
40627 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
40628
40629         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
40630         (gl_WARN_ADD): Substitute $2 if literal.
40631
40632 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
40633
40634         * m4/warning.m4: Remove.
40635
40636 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
40637
40638         * m4/warnings.m4: Almost complete rewrite. :-)
40639
40640 2008-11-10  Simon Josefsson  <simon@josefsson.org>
40641
40642         * modules/warnings: New module.
40643         * m4/warnings.m4: New file.
40644         * MODULES.html.sh: Mention warnings module.
40645         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
40646         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40647
40648 2008-11-10  Eric Blake  <ebb9@byu.net>
40649
40650         fdl.texi: make a symlink to the latest version
40651         * doc/standards.texi: Revert today's earlier change.
40652         * doc/fdl-1.2.texi: Rename from old fdl.texi...
40653         * doc/fdl.texi: ...and replace this with a symlink to the newer
40654         fdl-1.3.texi.
40655
40656 2008-11-10  Bruno Haible  <bruno@clisp.org>
40657
40658         * tests/test-select-fd.c (main): Accept the result file name as fourth
40659         argument.
40660         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
40661         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
40662
40663 2008-11-10  Bruno Haible  <bruno@clisp.org>
40664
40665         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
40666         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
40667         as autoconf-substituted macros.
40668         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
40669         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
40670         gl_NETDB_H_DEFAULTS. Set these variables.
40671         * modules/netdb (Makefile.am): Substitute these variables.
40672
40673 2008-11-10  Eric Blake  <ebb9@byu.net>
40674
40675         standards.texi: include correct file for FDL 1.3
40676         * doc/standards.texi (GNU Free Documentation License): Change
40677         include file to pull in FDL 1.3, not 1.2.
40678
40679         fdl.texi: revert accidental change to license
40680         * doc/fdl.texi: This is FDL 1.2, not 1.3.
40681
40682 2008-11-10  Bruno Haible  <bruno@clisp.org>
40683
40684         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
40685         cross-compiling guesses also when the native compile gives no result.
40686
40687 2008-11-10  Bruno Haible  <bruno@clisp.org>
40688
40689         * lib/spawni.c (__spawni): Force variable into the stack.
40690
40691 2008-11-10  Bruno Haible  <bruno@clisp.org>
40692
40693         Add support for Haiku.
40694         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
40695         glibc and BeOS, but also on Haiku.
40696         * lib/fpurge.c (fpurge): Likewise.
40697         * lib/freadable.c (freadable): Likewise.
40698         * lib/freadahead.c (freadahead): Likewise.
40699         * lib/freading.c (freading): Likewise.
40700         * lib/freadptr.c (freadptr): Likewise.
40701         * lib/freadseek.c (freadptrinc): Likewise.
40702         * lib/fseeko.c (rpl_fseeko): Likewise.
40703         * lib/fseterr.c (fseterr): Likewise.
40704         * lib/fwritable.c (fwritable): Likewise.
40705         * lib/fwriting.c (fwriting): Likewise.
40706         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
40707
40708 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
40709
40710         * lib/config.charset: Treat Haiku like BeOS.
40711
40712 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
40713
40714         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
40715         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
40716
40717 2008-11-08  Bruno Haible  <bruno@clisp.org>
40718
40719         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
40720         AC_CACHE_CHECK.
40721
40722 2008-11-08  Bruno Haible  <bruno@clisp.org>
40723
40724         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
40725
40726 2008-11-08  Bruno Haible  <bruno@clisp.org>
40727
40728         * tests/test-select-fd.c: New file.
40729         * tests/test-select-in.sh: New file.
40730         * tests/test-select-out.sh: New file.
40731         * tests/test-select-stdin.c: New file.
40732         * modules/select-tests (Files): Add the new files.
40733         (Depends-on): Add gettimeofday.
40734         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
40735         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
40736         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
40737
40738 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
40739             Bruno Haible  <bruno@clisp.org>
40740
40741         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
40742
40743 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
40744
40745         * build-aux/pmccabe2html: Added support for C++ source files.
40746
40747 2008-11-05  Ben Pfaff  <blp@gnu.org>
40748
40749         Fix lib/close.c build on Windows.
40750         * modules/close (Files): Add lib/w32sock.h.
40751
40752 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
40753
40754         Accept Bison's NEWS format.
40755         * build-aux/announce-gen (print_news_deltas): Tweak
40756         $re_prefix.
40757
40758 2008-11-04  Bruno Haible  <bruno@clisp.org>
40759
40760         * modules/random_r (Maintainer): Add glibc.
40761
40762 2008-11-04  Simon Josefsson  <simon@josefsson.org>
40763
40764         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
40765         by karl@freefriends.org (Karl Berry).
40766         * doc/alloca.texi: Likewise.
40767         * doc/c-ctype.texi: Likewise.
40768         * doc/c-strcase.texi: Likewise.
40769         * doc/c-strcaseeq.texi: Likewise.
40770         * doc/c-strcasestr.texi: Likewise.
40771         * doc/c-strstr.texi: Likewise.
40772         * doc/c-strtod.texi: Likewise.
40773         * doc/c-strtold.texi: Likewise.
40774         * doc/ctime.texi: Likewise.
40775         * doc/error.texi: Likewise.
40776         * doc/fdl.texi: Likewise.
40777         * doc/gcd.texi: Likewise.
40778         * doc/getdate.texi: Likewise.
40779         * doc/gnulib-intro.texi: Likewise.
40780         * doc/gnulib-tool.texi: Likewise.
40781         * doc/gnulib.texi: Likewise.
40782         * doc/inet_ntoa.texi: Likewise.
40783         * doc/maintain.texi: Likewise.
40784         * doc/make-stds.texi: Likewise.
40785         * doc/quote.texi: Likewise.
40786         * doc/regexprops-generic.texi: Likewise.
40787         * doc/standards.texi: Likewise.
40788         * doc/verify.texi: Likewise.
40789         * doc/visibility.texi: Likewise.
40790         * doc/gnulib.texi (GNU Free Documentation License): Include
40791         fdl-1.3.texi instead of fdl.texi.
40792
40793 2008-11-04  Simon Josefsson  <simon@josefsson.org>
40794
40795         * doc/fdl-1.3.texi: New file, from
40796         <http://www.gnu.org/licenses/fdl-1.3.texi>.
40797         * modules/fdl-1.3: Add.
40798         * MODULES.html.sh: Add fdl-1.3.
40799
40800 2008-11-03  Bruno Haible  <bruno@clisp.org>
40801
40802         Make determination of absolute name of header file work with AIX xlc.
40803         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
40804         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
40805         preprocessing.
40806         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
40807         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
40808
40809 2008-11-03  Simon Josefsson  <simon@josefsson.org>
40810
40811         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
40812         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
40813         <ludo@gnu.org>.
40814
40815 2008-11-02  Bruno Haible  <bruno@clisp.org>
40816
40817         Mark 'strpbrk' obsolete.
40818         * modules/strpbrk (Status, Notice): New sections.
40819         * modules/strtok_r (Depends-on): Add strpbrk.
40820
40821 2008-11-02  Bruno Haible  <bruno@clisp.org>
40822
40823         Mark 'strdup' obsolete.
40824         * modules/strdup (Status, Notice): New sections.
40825         * modules/findprog (Depends-on): Add strdup.
40826         * modules/getaddrinfo (Depends-on): Likewise.
40827         * modules/localename (Depends-on): Likewise.
40828         * modules/relocatable-lib (Depends-on): Likewise.
40829         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
40830         * modules/relocatable-prog (Depends-on): Likewise.
40831         * modules/trim (Depends-on): Likewise.
40832         * modules/unictype/gen-ctype (Depends-on): Likewise.
40833         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
40834
40835 2008-11-02  Bruno Haible  <bruno@clisp.org>
40836
40837         Mark 'strcspn' obsolete.
40838         * modules/strcspn (Status, Notice): New sections.
40839
40840 2008-11-02  Bruno Haible  <bruno@clisp.org>
40841
40842         Mark 'rmdir' obsolete.
40843         * modules/rmdir (Status, Notice): New sections.
40844         * modules/clean-temp (Depends-on): Add rmdir.
40845         * modules/openat (Depends-on): Likewise.
40846
40847 2008-11-02  Bruno Haible  <bruno@clisp.org>
40848
40849         Mark 'raise' obsolete.
40850         * modules/raise (Status, Notice): New sections.
40851         (Include): Specify <signal.h>.
40852         * modules/stdio (Depends-on): Add raise.
40853         * modules/write (Depends-on): Likewise.
40854
40855 2008-11-02  Bruno Haible  <bruno@clisp.org>
40856
40857         Mark 'memset' obsolete.
40858         * modules/memset (Status, Notice): New sections.
40859
40860 2008-11-02  Bruno Haible  <bruno@clisp.org>
40861
40862         Mark 'memmove' obsolete.
40863         * modules/memmove (Status, Notice): New sections.
40864         * modules/argp (Depends-on): Add memmove.
40865         * modules/argz (Depends-on): Likewise.
40866         * modules/canonicalize (Depends-on): Likewise.
40867         * modules/canonicalize-lgpl (Depends-on): Likewise.
40868         * modules/fts (Depends-on): Likewise.
40869         * modules/getcwd (Depends-on): Likewise.
40870         * modules/human (Depends-on): Likewise.
40871         * modules/regex (Depends-on): Likewise.
40872         * modules/striconveh (Depends-on): Likewise.
40873         * modules/trim (Depends-on): Likewise.
40874         * modules/unistr/u8-move (Depends-on): Likewise.
40875         * modules/unistr/u16-move (Depends-on): Likewise.
40876         * modules/unistr/u32-move (Depends-on): Likewise.
40877
40878 2008-11-02  Bruno Haible  <bruno@clisp.org>
40879
40880         Mark 'memcpy' obsolete.
40881         * modules/memcpy (Status, Notice): New sections.
40882
40883 2008-11-02  Bruno Haible  <bruno@clisp.org>
40884
40885         Mark 'memcmp' obsolete.
40886         * modules/memcmp (Status, Notice): New sections.
40887         * modules/argmatch (Depends-on): Add memchr.
40888         * modules/backupfile (Depends-on): Likewise.
40889         * modules/c-strcasestr (Depends-on): Likewise.
40890         * modules/crypto/des (Depends-on): Likewise.
40891         * modules/csharpcomp (Depends-on): Likewise.
40892         * modules/fnmatch (Depends-on): Likewise.
40893         * modules/git-merge-changelog (Depends-on): Likewise.
40894         * modules/isnand (Depends-on): Likewise.
40895         * modules/isnand-nolibm (Depends-on): Likewise.
40896         * modules/isnanf (Depends-on): Likewise.
40897         * modules/isnanf-nolibm (Depends-on): Likewise.
40898         * modules/isnanl (Depends-on): Likewise.
40899         * modules/isnanl-nolibm (Depends-on): Likewise.
40900         * modules/mbchar (Depends-on): Likewise.
40901         * modules/memcoll (Depends-on): Likewise.
40902         * modules/quotearg (Depends-on): Likewise.
40903         * modules/regex (Depends-on): Likewise.
40904         * modules/relocatable-prog (Depends-on): Likewise.
40905         * modules/same (Depends-on): Likewise.
40906         * modules/signbit (Depends-on): Likewise.
40907         * modules/strcasestr-simple (Depends-on): Likewise.
40908         * modules/unictype/gen-ctype (Depends-on): Likewise.
40909         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
40910         * modules/uniname/uniname (Depends-on): Likewise.
40911         * modules/unistr/u8-cmp (Depends-on): Likewise.
40912
40913 2008-11-02  Bruno Haible  <bruno@clisp.org>
40914
40915         Mark 'memchr' obsolete.
40916         * modules/memchr (Status, Notice): New sections.
40917         * modules/argp (Depends-on): Add memchr.
40918         * modules/base64 (Depends-on): Likewise.
40919         * modules/c-strcasestr (Depends-on): Likewise.
40920         * modules/chdir-long (Depends-on): Likewise.
40921         * modules/fnmatch (Depends-on): Likewise.
40922         * modules/getsubopt (Depends-on): Likewise.
40923         * modules/git-merge-changelog (Depends-on): Likewise.
40924         * modules/glob (Depends-on): Likewise.
40925         * modules/strcasestr-simple (Depends-on): Likewise.
40926         * modules/strnlen (Depends-on): Likewise.
40927
40928 2008-11-02  Bruno Haible  <bruno@clisp.org>
40929
40930         Mark 'atexit' obsolete.
40931         * modules/atexit (Status, Notice): New sections.
40932         * modules/chdir-long (Depends-on): Add atexit.
40933         * modules/wait-process (Depends-on): Likewise.
40934
40935 2008-11-02  Bruno Haible  <bruno@clisp.org>
40936
40937         * gnulib-tool: New option --with-obsolete.
40938         (func_usage): Document it.
40939         (func_modules_transitive_closure): Drop obsolete dependencies if
40940         incobsolete is not true.
40941         (func_import): Read and save the incobsolete variable to the cache.
40942
40943 2008-11-02  Bruno Haible  <bruno@clisp.org>
40944
40945         * modules/TEMPLATE-EXTENDED: New field 'Status'.
40946         * gnulib-tool: New option --extract-status.
40947         (func_usage): Document it.
40948         (sed_extract_prog): Recognize it.
40949         (func_get_status): New function.
40950
40951 2008-10-30  Simon Josefsson  <simon@josefsson.org>
40952
40953         * modules/sockets (License): Change from LGPL to LGPLv2+.
40954
40955 2008-10-28  Simon Josefsson  <simon@josefsson.org>
40956
40957         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
40958
40959 2008-10-28  Simon Josefsson  <simon@josefsson.org>
40960
40961         * MODULES.html.sh (Support for systems lacking POSIX:2001):
40962         Mention times and sys_times.
40963         * modules/sys_times, modules/sys_times-tests: New modules.
40964         * modules/times, modules/times-tests: Likewise
40965         * m4/sys_times_h.m4: New file.
40966         * lib/sys_times.in.h: Likewise
40967         * lib/times.c: Likewise.
40968         * tests/test-sys_times.c: Likewise.
40969         * tests/test-times.c: Likewise.
40970         * doc/posix-headers/sys_times.texi: Update.
40971         * doc/posix-functions/times.texi: Update.
40972
40973 2008-10-28  Jim Meyering  <meyering@redhat.com>
40974
40975         * modules/tempname (Depends-on): Add lstat.
40976
40977         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
40978
40979 2008-10-28  Simon Josefsson  <simon@josefsson.org>
40980
40981         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
40982         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
40983         using idiom used elsewhere in gnulib.
40984
40985 2008-10-27  Jim Meyering  <meyering@redhat.com>
40986
40987         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
40988
40989 2008-10-27  Simon Josefsson  <simon@josefsson.org>
40990
40991         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
40992         TESTS_ENVIRONMENT, for shell scripts that needs to call built
40993         programs.
40994         * tests/test-argp-2.sh: Use $EXEEXT when needed.
40995
40996 2008-10-27  Simon Josefsson  <simon@josefsson.org>
40997
40998         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
40999
41000 2008-10-27  Bruno Haible  <bruno@clisp.org>
41001
41002         * tests/test-lstat.c: Include <stdio.h>.
41003
41004 2008-10-27  Simon Josefsson  <simon@josefsson.org>
41005
41006         * modules/lstat-tests: New module.
41007         * tests/test-lstat.c: New file.
41008
41009 2008-10-26  Jim Meyering  <meyering@redhat.com>
41010
41011         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
41012
41013 2008-10-26  Simon Josefsson  <simon@josefsson.org>
41014             Bruno Haible  <bruno@clisp.org>
41015
41016         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
41017         * modules/configmake (Include): Add a note that the include must come
41018         after all system headers.
41019         * lib/javaversion.c: Include configmake.h after all other includes.
41020
41021 2008-10-26  Bruno Haible  <bruno@clisp.org>
41022
41023         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
41024         HAVE_STRUCT_RANDOM_DATA to 1.
41025         (gl_STDLIB_H): Simplify.
41026
41027 2008-10-26  Simon Josefsson  <simon@josefsson.org>
41028
41029         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
41030         substitute HAVE_STRUCT_RANDOM_DATA.
41031         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
41032         random_data.
41033         * modules/stdlib (Makefile.am): Substitute
41034         HAVE_STRUCT_RANDOM_DATA.
41035
41036 2008-10-26  Simon Josefsson  <simon@josefsson.org>
41037
41038         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
41039         * doc/gnulib-intro.texi (Copyright): Likewise.
41040
41041 2008-10-26  Simon Josefsson  <simon@josefsson.org>
41042
41043         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
41044         findings.
41045
41046 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
41047             Bruno Haible  <bruno@clisp.org>
41048
41049         * lib/unistd.in.h: Include <winsock2.h>.
41050         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
41051         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
41052         Provide dummy declarations.
41053         (gethostname): Override.
41054         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
41055         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
41056         gl_PREREQ_SYS_H_WINSOCK2.
41057         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
41058         * doc/posix-functions/gethostname.texi: More details.
41059
41060 2008-10-25  Bruno Haible  <bruno@clisp.org>
41061
41062         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
41063         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
41064         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
41065
41066         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
41067         here ...
41068         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
41069         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
41070         gl_UNISTD_H_DEFAULTS.
41071
41072 2008-10-25  Eric Blake  <ebb9@byu.net>
41073
41074         signbit: avoid spurious compiler failure
41075         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
41076         declarations inside function.
41077
41078 2008-10-24  Simon Josefsson  <simon@josefsson.org>
41079             Bruno Haible  <bruno@clisp.org>
41080
41081         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
41082         * modules/random_r (Depends-on): Add stdint.
41083
41084 2008-10-24  Bruno Haible  <bruno@clisp.org>
41085
41086         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
41087         Eggert.
41088         * modules/strerror (License): Likewise.
41089
41090 2008-10-24  Jim Meyering  <meyering@redhat.com>
41091
41092         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
41093         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
41094
41095 2008-10-24  Eric Blake  <ebb9@byu.net>
41096
41097         getgroups: fix compilation when getgroups is available
41098         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
41099         but with <config.h> override of getgroups disabled.
41100
41101 2008-10-24  Simon Josefsson  <simon@josefsson.org>
41102
41103         * doc/gnulib.texi (Header files): Add note about C++ problems.
41104         Explained by Bruno Haible <bruno@clisp.org>.
41105
41106 2008-10-23  Bruno Haible  <bruno@clisp.org>
41107
41108         Define a dummy SA_NODEFER macro on Interix.
41109         * lib/signal.in.h (SA_NODEFER): Define fallback.
41110         Reported by Aleksey Cheusov <cheusov@tut.by> via
41111         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
41112
41113 2008-10-23  Bruno Haible  <bruno@clisp.org>
41114
41115         * modules/freadahead (License): Change to LGPLv2+.
41116         Suggested by Simon Josefsson.
41117
41118 2008-10-23  Jim Meyering  <meyering@redhat.com>
41119
41120         random_r: new module
41121         * modules/random_r: New file.
41122         * m4/random_r.m4: New file.
41123         * lib/random_r.c: New file, from glibc.
41124         * modules/random_r-tests: New file.
41125         * tests/test-random_r.c: New file.
41126         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
41127          Declare.
41128         (RAND_MAX): Define.
41129         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
41130         * modules/stdlib: Substitute them, too.
41131         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
41132         * doc/glibc-functions/initstate_r.texi: Mention the new module.
41133         * doc/glibc-functions/random_r.texi: Likewise.
41134         * doc/glibc-functions/setstate_r.texi: Likewise.
41135         * doc/glibc-functions/srandom_r.texi: Likewise.
41136         * config/srclist.txt: Mention it.
41137
41138 2008-10-23  David Lutterkort  <lutter@redhat.com>
41139
41140         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
41141         link requirement
41142
41143 2008-10-23  Jim Meyering  <meyering@redhat.com>
41144
41145         selinux-h: mark parameters of stub functions as intentionally unused
41146         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
41147         * lib/se-context.in.h: Likewise.
41148
41149 2008-10-22  Simon Josefsson  <simon@josefsson.org>
41150
41151         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
41152
41153 2008-10-22  Simon Josefsson  <simon@josefsson.org>
41154
41155         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
41156
41157 2008-10-22  Eric Blake  <ebb9@byu.net>
41158
41159         glthread/thread: avoid compiler warning
41160         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
41161         Add unreachable abort to silence compiler.
41162
41163 2008-10-22  Eric Blake  <ebb9@byu.net>
41164
41165         netdb: also supply struct addrinfo for cygwin 1.5.x
41166         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
41167         older cygwin.
41168         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
41169         cygwin.
41170         * doc/posix-headers/netdb.texi (netdb.h): Document this.
41171
41172 2008-10-22  Bruno Haible  <bruno@clisp.org>
41173
41174         * users.txt: Update entry about pspp.
41175
41176 2008-10-21  Bruno Haible  <bruno@clisp.org>
41177
41178         Simplification.
41179         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
41180         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
41181
41182         Simplification.
41183         * lib/ioctl.c (ioctl): Don't undefine.
41184         * lib/socket.c (socket): Don't undefine.
41185
41186         Remove unused module indicator macros.
41187         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
41188         GNULIB_$1 as a C macro.
41189
41190         * doc/posix-functions/close.texi: Undo last change.
41191         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
41192         Windows platforms.
41193
41194 2008-10-21  Bruno Haible  <bruno@clisp.org>
41195
41196         Add gethostname() declaration to <unistd.h>.
41197         * lib/unistd.in.h (gethostname): New declaration.
41198         * lib/gethostname.c: Include <unistd.h>.
41199         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
41200         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
41201         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
41202         and HAVE_GETHOSTNAME.
41203         * modules/gethostname (Depends-on): Add unistd.
41204         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41205         (Include): Specify <unistd.h>.
41206         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
41207         HAVE_GETHOSTNAME.
41208         * tests/test-gethostname.c: Include <unistd.h> first.
41209
41210 2008-10-21  Bruno Haible  <bruno@clisp.org>
41211
41212         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
41213         * modules/select-tests (Depends-on): Likewise.
41214         Reported by Simon Josefsson.
41215
41216 2008-10-21  Simon Josefsson  <simon@josefsson.org>
41217
41218         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
41219         * lib/accept.c: New file, based on winsock.c.
41220         * lib/bind.c: New file, based on winsock.c.
41221         * lib/connect.c: New file, based on winsock.c.
41222         * lib/getpeername.c: New file, based on winsock.c.
41223         * lib/getsockname.c: New file, based on winsock.c.
41224         * lib/getsockopt.c: New file, based on winsock.c.
41225         * lib/ioctl.c: New file, based on winsock.c.
41226         * lib/listen.c: New file, based on winsock.c.
41227         * lib/recv.c: New file, based on winsock.c.
41228         * lib/recvfrom.c: New file, based on winsock.c.
41229         * lib/send.c: New file, based on winsock.c.
41230         * lib/sendto.c: New file, based on winsock.c.
41231         * lib/setsockopt.c: New file, based on winsock.c.
41232         * lib/shutdown.c: New file, based on winsock.c.
41233         * lib/socket.c: New file, based on winsock.c.
41234         * lib/w32sock.h: New file, based on winsock.c.
41235         * lib/winsock.c: Remove file.
41236         * modules/accept: Likewise.
41237         * modules/bind: Likewise.
41238         * modules/connect: Likewise.
41239         * modules/getpeername: Likewise.
41240         * modules/getsockname: Likewise.
41241         * modules/getsockopt: Likewise.
41242         * modules/ioctl: Likewise.
41243         * modules/listen: Likewise.
41244         * modules/recv: Likewise.
41245         * modules/recvfrom: Likewise.
41246         * modules/send: Likewise.
41247         * modules/sendto: Likewise.
41248         * modules/setsockopt: Likewise.
41249         * modules/shutdown: Likewise.
41250         * modules/socket: Use socket.c instead of winsock.c.
41251         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
41252         * doc/posix-functions/accept.texi: Doc fix.
41253         * doc/posix-functions/bind.texi: Doc fix.
41254         * doc/posix-functions/close.texi: Doc fix.
41255         * doc/posix-functions/connect.texi: Doc fix.
41256         * doc/posix-functions/getpeername.texi: Doc fix.
41257         * doc/posix-functions/getsockname.texi: Doc fix.
41258         * doc/posix-functions/getsockopt.texi: Doc fix.
41259         * doc/posix-functions/ioctl.texi: Doc fix.
41260         * doc/posix-functions/listen.texi: Doc fix.
41261         * doc/posix-functions/recv.texi: Doc fix.
41262         * doc/posix-functions/recvfrom.texi: Doc fix.
41263         * doc/posix-functions/send.texi: Doc fix.
41264         * doc/posix-functions/sendto.texi: Doc fix.
41265         * doc/posix-functions/setsockopt.texi: Doc fix.
41266         * doc/posix-functions/shutdown.texi: Doc fix.
41267         * doc/posix-functions/socket.texi: Doc fix.
41268
41269 2008-10-20  Bruno Haible  <bruno@clisp.org>
41270
41271         Take into account the role of SIGABRT_COMPAT on Windows 2008.
41272         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
41273         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
41274         as an alias for SIGABRT.
41275         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
41276         (sigaction): Map it to SIGABRT.
41277         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
41278
41279 2008-10-20  Bruno Haible  <bruno@clisp.org>
41280
41281         * lib/fts.c: Don't include lstat.h.
41282         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
41283
41284         Move the lstat() declaration to <sys/stat.h>.
41285         * lib/lstat.h: Remove file.
41286         * lib/sys_stat.in.h: Add special invocation convention.
41287         (lstat): New declaration.
41288         * lib/lstat.c (orig_lstat): New function.
41289         (rpl_lstat): Use orig_lstat instead of lstat.
41290         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
41291         AC_C_INLINE. Set REPLACE_LSTAT.
41292         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
41293         and REPLACE_LSTAT.
41294         * modules/lstat (Files): Remove lib/lstat.h.
41295         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
41296         (Include): Specify <sys/stat.h> instead of lstat.h.
41297         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
41298         REPLACE_LSTAT.
41299         * NEWS: Mention the change.
41300
41301 2008-10-20  Bruno Haible  <bruno@clisp.org>
41302
41303         * modules/posix_spawn-tests: New file.
41304         * tests/test-posix_spawn3.c: New file.
41305
41306 2008-10-20  Bruno Haible  <bruno@clisp.org>
41307
41308         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
41309         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
41310         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
41311         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
41312         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
41313
41314 2008-10-20  Bruno Haible  <bruno@clisp.org>
41315
41316         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
41317         of posix_spawn on AIX 5.3.
41318
41319 2008-10-20  Bruno Haible  <bruno@clisp.org>
41320
41321         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
41322
41323 2008-10-20  Bruno Haible  <bruno@clisp.org>
41324
41325         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
41326         of AC_LANG_PROGRAM.
41327
41328 2008-10-20  Simon Josefsson  <simon@josefsson.org>
41329
41330         * lib/netdb.in.h: Don't define GNU specific constants until they
41331         are supported or needed.  Reported by Bruno Haible
41332         <bruno@clisp.org>.
41333
41334 2008-10-20  Simon Josefsson  <simon@josefsson.org>
41335
41336         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
41337
41338 2008-10-20  Simon Josefsson  <simon@josefsson.org>
41339
41340         * lib/getaddrinfo.h: Remove file.
41341         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
41342         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
41343         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
41344         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
41345         * modules/netdb: Substitute GNULIB_GETADDRINFO.
41346         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
41347         * tests/test-getaddrinfo.c: Likewise.
41348         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
41349         * NEWS: Mention change.
41350
41351 2008-10-19  Bruno Haible  <bruno@clisp.org>
41352
41353         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
41354
41355 2008-10-19  Bruno Haible  <bruno@clisp.org>
41356
41357         * lib/wait-process.c: Include simply <sys/wait.h>.
41358         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
41359         WIFSTOPPED): Remove fallback definitions.
41360         * modules/wait-process (Depends-on): Add sys_wait.
41361
41362         New module 'sys_wait'.
41363         * modules/sys_wait: New file.
41364         * lib/sys_wait.in.h: New file, partially copied from
41365         lib/wait-process.c.
41366         * m4/sys_wait_h.m4: New file.
41367         * doc/posix-headers/sys_wait.texi: Mention the new module.
41368
41369 2008-10-19  Bruno Haible  <bruno@clisp.org>
41370
41371         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
41372
41373 2008-10-19  Bruno Haible  <bruno@clisp.org>
41374
41375         Assume that waitpid() fills an 'int' status, not a 'union wait'.
41376         * lib/wait-process.c (WAIT_T): Remove type.
41377         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
41378         (wait_subprocess): Update.
41379
41380 2008-10-19  Bruno Haible  <bruno@clisp.org>
41381
41382         New module 'atoll'.
41383         * modules/atoll: New file.
41384         * lib/stdlib.in.h (atoll): New declaration.
41385         * lib/atoll.c: New file, from glibc with modifications.
41386         * m4/atoll.m4: New file.
41387         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
41388         HAVE_ATOLL.
41389         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
41390         * doc/posix-functions/atoll.texi: Mention the new module.
41391
41392 2008-10-19  Bruno Haible  <bruno@clisp.org>
41393
41394         Add strtoull() declaration to <stdlib.h>.
41395         * lib/stdlib.in.h (strtoull): New declaration.
41396         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
41397         Set HAVE_STRTOULL.
41398         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
41399         HAVE_STRTOULL.
41400         * modules/strtoull (Depends-on): Add stdlib.
41401         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41402         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
41403         HAVE_STRTOULL.
41404
41405 2008-10-19  Bruno Haible  <bruno@clisp.org>
41406
41407         Add strtoll() declaration to <stdlib.h>.
41408         * lib/stdlib.in.h (strtoll): New declaration.
41409         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
41410         Set HAVE_STRTOLL.
41411         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
41412         HAVE_STRTOLL.
41413         * modules/strtoll (Depends-on): Add stdlib.
41414         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41415         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
41416
41417 2008-10-19  Bruno Haible  <bruno@clisp.org>
41418
41419         * modules/bcopy (Depends-on): Add strings.
41420         (Include): Specify <strings.h>.
41421
41422 2008-10-19  Bruno Haible  <bruno@clisp.org>
41423
41424         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
41425
41426 2008-10-19  Bruno Haible  <bruno@clisp.org>
41427
41428         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
41429         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
41430         mingw.
41431
41432 2008-10-19  Bruno Haible  <bruno@clisp.org>
41433
41434         * lib/atanl.c: Don't include isnanl.h.
41435         * lib/cosl.c: Likewise.
41436         * lib/ldexpl.c: Likewise.
41437         * lib/logl.c: Likewise.
41438         * lib/sinl.c: Likewise.
41439         * lib/sqrtl.c: Likewise.
41440         * lib/tanl.c: Likewise.
41441
41442         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
41443         * lib/isnanf.h: Remove file.
41444         * lib/isnand.h: Remove file.
41445         * lib/isnanl.h: Remove file.
41446         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
41447         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
41448         macros.
41449         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
41450         HAVE_ISNANF, don't define it as a C macro.
41451         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
41452         HAVE_ISNAND, don't define it as a C macro.
41453         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
41454         HAVE_ISNANL, don't define it as a C macro.
41455         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
41456         HAVE_ISNAN[FDL].
41457         * modules/isnanf (Files): Remove lib/isnanf.h.
41458         (Depends-on): Add math.
41459         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
41460         (Include): Specify <math.h> instead of isnanf.h.
41461         * modules/isnand (Files): Remove lib/isnand.h.
41462         (Depends-on): Add math.
41463         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
41464         (Include): Specify <math.h> instead of isnand.h.
41465         * modules/isnanl (Files): Remove lib/isnanl.h.
41466         (Depends-on): Add math.
41467         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
41468         (Include): Specify <math.h> instead of isnanl.h.
41469         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
41470         HAVE_ISNAN[FDL].
41471         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
41472         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
41473         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
41474         * NEWS: Mention the change.
41475
41476 2008-10-18  Bruno Haible  <bruno@clisp.org>
41477
41478         Add getusershell(), setusershell(), endusershell() declarations to
41479         <unistd.h>.
41480         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
41481         declarations.
41482         * lib/getusershell.c: Include unistd.h.
41483         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
41484         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
41485         HAVE_GETUSERSHELL.
41486         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
41487         and HAVE_GETUSERSHELL.
41488         * modules/getusershell (Depends-on): Add unistd, extensions.
41489         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41490         (Include): Specify <unistd.h>.
41491         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
41492         HAVE_GETUSERSHELL.
41493
41494 2008-10-18  Bruno Haible  <bruno@clisp.org>
41495
41496         Add a getloadavg() declaration to <stdlib.h>.
41497         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
41498         getloadavg declaration.
41499         (getloadavg): New declaration.
41500         * lib/getloadavg.c: Include <stdlib.h> first.
41501         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
41502         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
41503         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
41504         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
41505         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
41506         * modules/getloadavg (Depends-on): Add stdlib, extensions.
41507         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41508         (Include): Specify <stdlib.h>.
41509         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
41510         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
41511
41512 2008-10-18  Bruno Haible  <bruno@clisp.org>
41513
41514         * lib/dirchownmod.c: Don't include lchmod.h.
41515
41516         Move the lchmod() declaration to <sys/stat.h>.
41517         * lib/lchmod.h: Remove file.
41518         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
41519         (lchmod): New declaration, moved here from lib/lchown.h.
41520         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
41521         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
41522         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
41523         and HAVE_LCHMOD.
41524         * modules/lchmod (Files): Remove lib/lchmod.h.
41525         (Depends-on): Add sys_stat, extensions.
41526         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
41527         (Include): Specify <sys/stat.h> instead of lchmod.h.
41528         * modules/sys_stat (Depends-on): Add link-warning.
41529         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
41530         definition of GL_LINK_WARNING.
41531         * NEWS: Mention the change.
41532
41533 2008-10-18  Bruno Haible  <bruno@clisp.org>
41534
41535         * lib/fchdir.c: Don't include dirfd.h.
41536         * lib/fts.c: Likewise.
41537         * lib/getcwd.c: Likewise.
41538         * lib/glob.c: Likewise.
41539
41540         Move the dirfd() declaration to <dirent.h>.
41541         * lib/dirfd.h: Remove file.
41542         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
41543         (dirfd): New declaration.
41544         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
41545         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
41546         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
41547         HAVE_DECL_DIRFD.
41548         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
41549         HAVE_DECL_DIRFD.
41550         * modules/dirfd (Files): Remove lib/dirfd.h.
41551         (Depends-on): Add dirent, extensions.
41552         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
41553         (Include): Specify <dirent.h> instead of dirfd.h.
41554         * modules/dirent (Depends-on): Add link-warning.
41555         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
41556         definition of GL_LINK_WARNING.
41557         * NEWS: Mention the change.
41558
41559 2008-10-18  Bruno Haible  <bruno@clisp.org>
41560
41561         Move the euidaccess() declaration to <unistd.h>.
41562         * lib/euidaccess.h: Remove file.
41563         * lib/unistd.in.h (euidaccess): New declaration.
41564         * lib/euidaccess.c: Don't include euidaccess.h.
41565         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
41566         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
41567         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
41568         and HAVE_EUIDACCESS.
41569         * modules/euidaccess (Files): Remove lib/euidaccess.h.
41570         (Depends-on): Add unistd.
41571         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41572         (Include): Specify <unistd.h> instead of euidaccess.h.
41573         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
41574         HAVE_EUIDACCESS.
41575         * NEWS: Mention the change.
41576
41577 2008-10-18  Bruno Haible  <bruno@clisp.org>
41578
41579         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
41580
41581         Move the getdomainname() declaration to <unistd.h>.
41582         * lib/getdomainname.h: Remove file.
41583         * lib/unistd.in.h (getdomainname): New declaration.
41584         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
41585         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
41586         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
41587         HAVE_GETDOMAINNAME.
41588         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41589         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
41590         * modules/getdomainname (Files): Remove lib/getdomainname.h.
41591         (Depends-on): Add unistd, extensions.
41592         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41593         (Includes): Specify <unistd.h> instead of getdomainname.h.
41594         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
41595         HAVE_GETDOMAINNAME.
41596         * NEWS: Mention the change.
41597
41598 2008-10-18  Bruno Haible  <bruno@clisp.org>
41599
41600         * modules/dirent: New file.
41601         * m4/dirent_h.m4: New file.
41602         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
41603         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
41604         * modules/fchdir (Files): Remove lib/dirent.in.h.
41605         (Depends-on): Add dirent.
41606         (Makefile.am): Move rules to modules/dirent.
41607         * doc/posix-headers/dirent.texi: Mention the new module.
41608
41609 2008-10-18  Bruno Haible  <bruno@clisp.org>
41610
41611         Avoid -Wunused-parameter warnings in public gnulib header files.
41612         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
41613         macro.
41614         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
41615
41616 2008-10-18  Bruno Haible  <bruno@clisp.org>
41617
41618         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
41619         * doc/glibc-functions/error.texi: Mention the module 'error'.
41620         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
41621         * doc/glibc-functions/getdomainname.texi: Mention the module
41622         'getdomainname'.
41623         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
41624         * doc/glibc-functions/getpagesize.texi: Mention the module
41625         'getpagesize'.
41626         * doc/glibc-functions/getusershell.texi: Mention the module
41627         'getusershell'.
41628         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
41629         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
41630         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
41631         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
41632         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
41633         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
41634         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
41635         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
41636         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
41637         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
41638         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
41639         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
41640         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
41641         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
41642
41643 2008-10-17  Bruno Haible  <bruno@clisp.org>
41644
41645         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
41646         HP-UX and IRIX, use -0.0L.
41647         * tests/test-ceill.c (minus_zero): Likewise.
41648         * tests/test-floorl.c (minus_zero): Likewise.
41649         * tests/test-frexpl.c (minus_zero): Likewise.
41650         * tests/test-isnan.c (minus_zerol): Likewise.
41651         * tests/test-isnanl.h (minus_zero): Likewise.
41652         * tests/test-ldexpl.c (minus_zero): Likewise.
41653         * tests/test-roundl.c (minus_zero): Likewise.
41654         * tests/test-signbit.c (minus_zerol): Likewise.
41655         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
41656         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
41657         * tests/test-truncl.c (minus_zero): Likewise.
41658         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
41659         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
41660         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
41661         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
41662
41663 2008-10-17  Bruno Haible  <bruno@clisp.org>
41664
41665         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
41666         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
41667         that it gets activated only for gcc >= 3.0.
41668         * lib/dirent.in.h: Likewise.
41669         * lib/errno.in.h: Likewise.
41670         * lib/fcntl.in.h: Likewise.
41671         * lib/float.in.h: Likewise.
41672         * lib/iconv.in.h: Likewise.
41673         * lib/inttypes.in.h: Likewise.
41674         * lib/locale.in.h: Likewise.
41675         * lib/math.in.h: Likewise.
41676         * lib/netdb.in.h: Likewise.
41677         * lib/netinet_in.in.h: Likewise.
41678         * lib/search.in.h: Likewise.
41679         * lib/signal.in.h: Likewise.
41680         * lib/spawn.in.h: Likewise.
41681         * lib/stdarg.in.h: Likewise.
41682         * lib/stdint.in.h: Likewise.
41683         * lib/stdio.in.h: Likewise.
41684         * lib/stdlib.in.h: Likewise.
41685         * lib/string.in.h: Likewise.
41686         * lib/strings.in.h: Likewise.
41687         * lib/sys_file.in.h: Likewise.
41688         * lib/sys_ioctl.in.h: Likewise.
41689         * lib/sys_select.in.h: Likewise.
41690         * lib/sys_socket.in.h: Likewise.
41691         * lib/sys_stat.in.h: Likewise.
41692         * lib/sys_time.in.h: Likewise.
41693         * lib/sysexits.in.h: Likewise.
41694         * lib/time.in.h: Likewise.
41695         * lib/unistd.in.h: Likewise.
41696         * lib/wchar.in.h: Likewise.
41697         * lib/wctype.in.h: Likewise.
41698         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
41699
41700 2008-10-17  Jim Meyering  <meyering@redhat.com>
41701
41702         ignore-value: don't depend on inline module
41703         * modules/ignore-value (Depends-on): Remove 'inline'.
41704         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
41705         Suggestion from Bruno Haible.
41706
41707 2008-10-17  Bruno Haible  <bruno@clisp.org>
41708
41709         New implementation of condition variables for Win32.
41710         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
41711         (gl_linked_waitqueue_t): New type.
41712         (gl_cond_t): Use it.
41713         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
41714         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
41715         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
41716         (glthread_cond_init_func, glthread_cond_wait_func,
41717         glthread_cond_timedwait_func, glthread_cond_signal_func,
41718         glthread_cond_broadcast_func, glthread_cond_destroy_func):
41719         Reimplemented on the basis of gl_linked_waitqueue_t.
41720         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
41721         gl_waitqueue_t.
41722         (gl_rwlock_t): Update.
41723         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
41724
41725 2008-10-17  Simon Josefsson  <simon@josefsson.org>
41726
41727         * modules/recvfrom (Depends-on): Add dependency on getpeername.
41728         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
41729
41730 2008-10-17  Jim Meyering  <meyering@redhat.com>
41731
41732         ignore-value: new module
41733         * modules/ignore-value: New file.
41734         * lib/ignore-value.h: New file.
41735         * MODULES.html.sh (Compiler warning management): New section,
41736         just for this module.  More to come.
41737
41738 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
41739
41740         open-safer.c: avoid 'signed and unsigned in conditional...' warning
41741         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
41742         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
41743
41744 2008-10-16  Jim Meyering  <meyering@redhat.com>
41745
41746         openat-die.c: avoid 'no previous prototype' warning
41747         * lib/openat-die.c: Include "openat.h".
41748         Reported by Reuben Thomas <rrt@sc3d.org>.
41749
41750 2008-10-16  Simon Josefsson  <simon@josefsson.org>
41751
41752         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
41753         * lib/netdb.in.h: Fix typo.
41754         Reported by Bruno Haible  <bruno@clisp.org>
41755
41756         * lib/netdb.in.h: Include sys/socket.h for platforms without
41757         netdb.h, to get structures like hostent on MinGW.
41758         * modules/netdb (Depends-on): Add sys_socket.
41759
41760 2008-10-15  Simon Josefsson  <simon@josefsson.org>
41761
41762         * modules/netdb, modules/netdb-tests: New file.
41763         * m4/netdb_h.m4: New file.
41764         * lib/netdb.in.h: Add, currently just an empty file pending
41765         definitions.
41766         * tests/test-netdb.c: New file.
41767         * doc/posix-headers/netdb.texi: Mention that we replace it if
41768         needed.
41769         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
41770         netdb.
41771
41772 2008-10-15  Simon Josefsson  <simon@josefsson.org>
41773
41774         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
41775         with code.
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): Add a comment.
41781
41782 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
41783
41784         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
41785         * tests/test-select.c: Likewise,
41786
41787 2008-10-13  Bruno Haible  <bruno@clisp.org>
41788
41789         * lib/glthread/cond.c (glthread_cond_wait_func,
41790         glthread_cond_timedwait_func): Fix variable name.
41791         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
41792
41793 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
41794
41795         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
41796         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
41797         struct sockaddr.sa_len.
41798         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
41799
41800 2008-10-13  Simon Josefsson  <simon@josefsson.org>
41801
41802         * build-aux/pmccabe2html: Add css and css_url parameters.
41803
41804 2008-10-12  Bruno Haible  <bruno@clisp.org>
41805
41806         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
41807         calling aclx_get.
41808         Reported by Rainer Tammer <tammer@tammer.net>.
41809
41810 2008-10-12  Bruno Haible  <bruno@clisp.org>
41811
41812         Use msvcrt aware primitives for creation/termination of Win32 threads.
41813         * lib/glthread/thread.c: Include <process.h>.
41814         (glthread_create_func): Use _beginthreadex instead of CreateThread.
41815         (wrapper_func): Update signature.
41816         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
41817
41818 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
41819             Bruno Haible  <bruno@clisp.org>
41820
41821         Provide a Win32 implementation of the 'cond' module.
41822         * lib/glthread/cond.h [USE_WIN32]: New implementation.
41823         * lib/glthread/cond.c (glthread_cond_init_func,
41824         glthread_cond_wait_func, glthread_cond_timedwait_func,
41825         glthread_cond_signal_func, glthread_cond_broadcast_func,
41826         glthread_cond_destroy_func) [USE_WIN32]: New functions.
41827         * modules/cond (Dependencies): Add gettimeofday.
41828
41829 2008-10-11  Bruno Haible  <bruno@clisp.org>
41830
41831         Make sleep work on older versions of mingw.
41832         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
41833         only whether it exists.
41834         * doc/posix-functions/sleep.texi: Mention the problem with older
41835         versions of mingw.
41836
41837 2008-10-11  Bruno Haible  <bruno@clisp.org>
41838
41839         New module 'shutdown'.
41840         * modules/shutdown: New file.
41841         * lib/sys_socket.in.h (shutdown): New declaration.
41842         * lib/winsock.c (shutdown): New function.
41843         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
41844         GNULIB_SHUTDOWN.
41845         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
41846         * doc/posix-functions/shutdown.texi: Document the new module.
41847
41848 2008-10-11  Jim Meyering  <meyering@redhat.com>
41849
41850         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
41851
41852 2008-10-11  Bruno Haible  <bruno@clisp.org>
41853
41854         New module 'fclose'.
41855         * modules/fclose: New file.
41856         * lib/stdio.in.h (fclose): New declaration.
41857         * lib/fclose.c: New file.
41858         * m4/fclose.m4: New file.
41859         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
41860         REPLACE_FCLOSE.
41861         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
41862         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
41863         REPLACE_FCLOSE.
41864         * modules/close (Depends-on): fclose.
41865         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
41866
41867 2008-10-11  Bruno Haible  <bruno@clisp.org>
41868
41869         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
41870         set errno and don't call _close.
41871
41872 2008-10-10  Bruno Haible  <bruno@clisp.org>
41873
41874         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
41875         ACL, not afterwards. Fixes test failure on Cygwin.
41876
41877 2008-10-09  Ben Pfaff  <blp@gnu.org>
41878
41879         * build-aux/announce-gen: Fix gnulib version related part of usage
41880         message.  Die with a useful error message if no tarballs are
41881         found.
41882
41883 2008-10-10  Jim Meyering  <meyering@redhat.com>
41884
41885         bootstrap: use git's --depth=N option only if it's supported
41886         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
41887         recognize the --depth option.  Reported by Pádraig Brady.
41888
41889 2008-10-09  Bruno Haible  <bruno@clisp.org>
41890
41891         New module 'ioctl'.
41892         * modules/ioctl: New file.
41893         * lib/sys_socket.in.h (ioctl): Remove declaration.
41894         * lib/winsock.c: Include <sys/ioctl.h>.
41895         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
41896         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
41897         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
41898         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
41899         * doc/posix-functions/ioctl.texi: Mention the new module.
41900
41901 2008-10-09  Bruno Haible  <bruno@clisp.org>
41902
41903         New module 'sys_ioctl'.
41904         * lib/sys_ioctl.in.h: New file.
41905         * m4/sys_ioctl_h.m4: New file.
41906         * modules/sys_ioctl: New file.
41907         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
41908
41909 2008-10-09  Bruno Haible  <bruno@clisp.org>
41910
41911         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
41912         * lib/winsock.c: Include <stdarg.h>.
41913         (rpl_ioctl): Change to second argument 'int' and then varargs.
41914
41915 2008-10-09  Bruno Haible  <bruno@clisp.org>
41916
41917         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
41918         when the sys_socket module is present and the system has <winsock2.h>.
41919
41920 2008-10-09  Bruno Haible  <bruno@clisp.org>
41921
41922         * doc/posix-functions/close.texi: Mention module 'close' instead of
41923         module 'sys_socket'.
41924
41925 2008-10-09  Bruno Haible  <bruno@clisp.org>
41926
41927         * doc/glibc-headers/sys_ioctl.texi: New file.
41928         * doc/gnulib.texi: Include it.
41929
41930 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
41931             Bruno Haible  <bruno@clisp.org>
41932
41933         Combine the two replacements of 'close'.
41934         * lib/sys_socket.in.h (close): Define to a reminder to include
41935         <unistd.h>.
41936         (_gl_close_fd_maybe_socket): New declaration.
41937         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
41938         * lib/winsock.c (close): Remove undefinition.
41939         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
41940         needed for the gnulib module 'close'.
41941         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
41942         define to an error symbol or to a warning, if suitable.
41943         * lib/close.c: Include <sys/socket.h>.
41944         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
41945         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
41946         UNISTD_H_HAVE_WINSOCK2_H.
41947         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
41948         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41949         UNISTD_H_HAVE_WINSOCK2_H.
41950         * modules/sys_socket (Files): Add m4/unistd_h.m4.
41951         (configure.ac): Set a module indicator.
41952         (Makefile.am): Substitute GNULIB_CLOSE.
41953         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
41954         * modules/poll-tests (Depends-on): Add close.
41955         * modules/select-tests (Depends-on): Likewise.
41956
41957 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
41958             Bruno Haible  <bruno@clisp.org>
41959
41960         New module 'close'.
41961         * modules/close: New file.
41962         * lib/unistd.in.h (close): Move declaration out of the
41963         FCHDIR_REPLACEMENT scope.
41964         (_gl_unregister_fd): New declaration.
41965         * lib/close.c: New file.
41966         * lib/fchdir.c (rpl_close): Remove function.
41967         * m4/close.m4: New file.
41968         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
41969         close.
41970         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
41971         REPLACE_CLOSE.
41972         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
41973         REPLACE_CLOSE.
41974         * modules/fchdir (Depends-on): Add close.
41975
41976 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
41977             Bruno Haible  <bruno@clisp.org>
41978
41979         * lib/fcntl.in.h (open): Simplify conditionals.
41980         (_gl_register_fd): New declaration.
41981         * lib/fchdir.c (rpl_open): Remove function.
41982         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
41983         also.
41984         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
41985         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
41986         open.
41987
41988 2008-10-09  Jim Meyering  <meyering@redhat.com>
41989
41990         GNUmakefile: use the more name-space-friendly "_version"
41991         * top/GNUmakefile (_dummy): Update.
41992         (_version): Rename from "version".
41993
41994 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
41995             Bruno Haible  <bruno@clisp.org>
41996
41997         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
41998         rpl_close.
41999         (_gl_register_fd): New function, extracted from rpl_open.
42000         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
42001         (rpl_open, rpl_opendir): Use _gl_register_fd.
42002
42003 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
42004
42005         Fix organization of 'open' replacement.
42006         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
42007         (gl_FUNC_OPEN): Use it.
42008         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
42009
42010 2008-10-08  Bruno Haible  <bruno@clisp.org>
42011
42012         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
42013
42014 2008-10-08  Simon Josefsson  <simon@josefsson.org>
42015
42016         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
42017         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
42018         listen).
42019
42020 2008-10-08  Eric Blake  <ebb9@byu.net>
42021
42022         GNUmakefile: add 'make version' target
42023         * top/GNUmakefile (_curr-ver): Split version update rules...
42024         (version): ...into a target.
42025
42026 2008-10-07  Bruno Haible  <bruno@clisp.org>
42027
42028         Use a more portable replacement expression for -0.0L.
42029         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
42030         instead of -0.0L. Fix m4 quotation.
42031
42032         * tests/test-signbit.c: Include <float.h>.
42033         (minus_zero): New variable.
42034         (test_signbitl): Use minus_zero instead of -zero.
42035         * modules/signbit-tests (Depends-on): Add float.
42036
42037         * tests/test-ceill.c: Include <float.h>.
42038         (zero): Remove variable.
42039         (minus_zero): New variable.
42040         (main): Use minus_zero instead of -zero.
42041         * modules/ceill-tests (Depends-on): Add float.
42042
42043         * tests/test-floorl.c: Include <float.h>.
42044         (zero): Remove variable.
42045         (minus_zero): New variable.
42046         (main): Use minus_zero instead of -zero.
42047         * modules/floorl-tests (Depends-on): Add float.
42048
42049         * tests/test-roundl.c: Include <float.h>.
42050         (zero): Remove variable.
42051         (minus_zero): New variable.
42052         (main): Use minus_zero instead of -zero.
42053         * modules/roundl-tests (Depends-on): Add float.
42054
42055         * tests/test-truncl.c: Include <float.h>.
42056         (zero): Remove variable.
42057         (minus_zero): New variable.
42058         (main): Use minus_zero instead of -zero.
42059         * modules/truncl-tests (Depends-on): Add float.
42060
42061         * tests/test-frexpl.c (zero): Remove variable.
42062         (minus_zero): New variable.
42063         (main): Use minus_zero instead of -zero.
42064         * modules/frexpl-tests (Depends-on): Add float.
42065
42066         * tests/test-isnan.c (zerol): Remove variable.
42067         (minus_zerol): New variable.
42068         (test_long_double): Use minus_zerol instead of -zerol.
42069         * modules/isnan-tests (Depends-on): Add float.
42070
42071         * tests/test-isnanl.h (zero): Remove variable.
42072         (minus_zero): New variable.
42073         (main): Use minus_zero instead of -zero.
42074         * modules/isnanl-nolibm-tests (Depends-on): Add float.
42075         * modules/isnanl-tests (Depends-on): Add float.
42076
42077         * tests/test-ldexpl.c (zero): Remove variable.
42078         (minus_zero): New variable.
42079         (main): Use minus_zero instead of -zero.
42080         * modules/ldexpl-tests (Depends-on): Add float.
42081
42082         * tests/test-snprintf-posix.h (zerol): Remove variable.
42083         (minus_zerol): New variable.
42084         (test_function): Use minus_zerol instead of -zerol.
42085         * modules/snprintf-posix-tests (Depends-on): Add float.
42086         * modules/vsnprintf-posix-tests (Depends-on): Add float.
42087
42088         * tests/test-sprintf-posix.h (zerol): Remove variable.
42089         (minus_zerol): New variable.
42090         (test_function): Use minus_zerol instead of -zerol.
42091         * modules/sprintf-posix-tests (Depends-on): Add float.
42092         * modules/vsprintf-posix-tests (Depends-on): Add float.
42093
42094         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
42095         (minus_zerol): New variable.
42096         (test_function): Use minus_zerol instead of -zerol.
42097         * modules/vasnprintf-posix-tests (Depends-on): Add float.
42098
42099         * tests/test-vasprintf-posix.c (zerol): Remove variable.
42100         (minus_zerol): New variable.
42101         (test_function): Use minus_zerol instead of -zerol.
42102         * modules/vasprintf-posix-tests (Depends-on): Add float.
42103
42104 2008-10-07  Simon Josefsson  <simon@josefsson.org>
42105
42106         * MODULES.html.sh (Support for building documentation): Mention
42107         pmccabe2html.  Sort entries.
42108
42109         Add pmccabe2html module, from gnupdf.
42110         * build-aux/pmccabe.css: New file.
42111         * build-aux/pmccabe2html: New file.
42112         * m4/pmccabe2html.m4: New file.
42113         * modules/pmccabe2html: New file.
42114
42115 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
42116
42117         flock: new module
42118         * MODULES.html.sh: Add to list of modules.
42119         * lib/flock.c: flock implementation for Windows and Unix systems
42120         which have fcntl.
42121         * doc/glibc-functions/flock.texi: Update documentation.
42122         * lib/sys_file.in.h: <sys/file.h> header file.
42123         * m4/flock.m4: M4 macros.
42124         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
42125         * modules/flock: flock module.
42126         * modules/flock-tests: flock tests module.
42127         * modules/sys_file: sys/file.h module.
42128         * tests/test-flock.c: test suite for flock.
42129
42130 2008-10-06  Jim Meyering  <meyering@redhat.com>
42131
42132         bootstrap: check for LT_INIT more portably still ;-)
42133         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
42134         Spotted by Bruno Haible.
42135
42136 2008-10-06  Eric Blake  <ebb9@byu.net>
42137
42138         test-signbit: avoid tripping Irix cc bug on -0.0L
42139         * tests/test-signbit.c (minus_zerol): Delete, and replace with
42140         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
42141         entire testsuite consistent and avoids an Irix 6.2 bug.
42142
42143 2008-10-05  Bruno Haible  <bruno@clisp.org>
42144             Jim Meyering  <jim@meyering.net>
42145
42146         Add an option for ignoring EPIPE during close_stdout.
42147         * lib/closeout.h: Include <stdbool.h>.
42148         (close_stdout_set_ignore_EPIPE): New declaration.
42149         * lib/closeout.c: Include <stdbool.h>.
42150         (ignore_EPIPE): New variable.
42151         (close_stdout_set_ignore_EPIPE): New function.
42152         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
42153         * lib/close-stream.c (close_stream): Mention the possible EPIPE
42154         failure.
42155         * modules/closeout (Depends-on): Add stdbool.
42156
42157 2008-10-05  Bruno Haible  <bruno@clisp.org>
42158
42159         * modules/accept: New file.
42160         * modules/bind: New file.
42161         * modules/connect: New file.
42162         * modules/getpeername: New file.
42163         * modules/getsockname: New file.
42164         * modules/getsockopt: New file.
42165         * modules/listen: New file.
42166         * modules/recv: New file.
42167         * modules/recvfrom: New file.
42168         * modules/send: New file.
42169         * modules/sendto: New file.
42170         * modules/setsockopt: New file.
42171         * modules/socket: New file.
42172         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
42173         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
42174         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
42175         the particular module is requested. Add a link warning when the
42176         particular module is not requested.
42177         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
42178         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
42179         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
42180         the particular module is requested.
42181         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
42182         gl_SYS_SOCKET_H_DEFAULTS): New macros.
42183         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
42184         * modules/sys_socket (Depends-on): Add link-warning.
42185         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
42186         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
42187         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
42188         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
42189         GL_LINK_WARNING.
42190         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
42191         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
42192         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
42193         * doc/posix-functions/getpeername.texi: Mention the new module
42194         'getpeername'.
42195         * doc/posix-functions/getsockname.texi: Mention the new module
42196         'getsockname'.
42197         * doc/posix-functions/getsockopt.texi: Mention the new module
42198         'getsockopt'.
42199         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
42200         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
42201         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
42202         * doc/posix-functions/send.texi: Mention the new module 'send'.
42203         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
42204         * doc/posix-functions/setsockopt.texi: Mention the new module
42205         'setsockopt'.
42206         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
42207         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
42208         listen, connect, accept.
42209         * modules/select-tests (Depends-on): Likewise.
42210
42211 2008-10-05  Bruno Haible  <bruno@clisp.org>
42212
42213         * lib/winsock.c (strerror): Remove unused #undef.
42214         (rpl_close): Remove unused local variable.
42215
42216         * modules/sys_socket (Depends-on); Add errno.
42217
42218 2008-10-05  Bruno Haible  <bruno@clisp.org>
42219
42220         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
42221         (select): Add a link warning when the 'select' module is not used.
42222         * modules/sys_select (Depends-on): Add link-warning.
42223         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
42224         Suggested by Paolo Bonzini.
42225
42226 2008-10-05  Jim Meyering  <meyering@redhat.com>
42227
42228         bootstrap: check for LT_INIT more portably
42229         * build-aux/bootstrap: Avoid using grep -E, since it's not
42230         portable enough.  Suggestion from Bruno Haible.
42231
42232 2008-10-05  Bruno Haible  <bruno@clisp.org>
42233
42234         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
42235         as being fixed by gnulib.
42236
42237 2008-10-05  Bruno Haible  <bruno@clisp.org>
42238
42239         * modules/select-tests: New file, mostly copied from
42240         modules/sys_select-tests.
42241         * tests/test-select.c: New file, mostly copied from
42242         tests/test-sys_select.c.
42243         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
42244         * modules/sys_select-tests (Depends-on): Remove all dependencies.
42245         (Makefile.am): Remove test_sys_select_LDADD.
42246
42247         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
42248         to an undefined symbol, for an error message.
42249         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
42250         (gl_SYS_SELECT_H_DEFAULTS): New macro.
42251         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
42252         winsock-select.c here.
42253         * modules/sys_select (Files): Remove lib/winsock-select.c.
42254         (Depends-on): Remove alloca.
42255         (Makefile.am): Substitute GNULIB_SELECT.
42256         * modules/select: New file.
42257         * doc/posix-functions/select.texi: Update.
42258
42259 2008-10-05  Bruno Haible  <bruno@clisp.org>
42260
42261         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
42262         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
42263         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
42264         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
42265         getdtablesize.
42266         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
42267         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
42268
42269 2008-10-05  Bruno Haible  <bruno@clisp.org>
42270
42271         * modules/getdtablesize-tests: New file.
42272         * tests/test-getdtablesize.c: New file.
42273
42274         New module 'getdtablesize'.
42275         * lib/unistd.in.h (getdtablesize): New declaration.
42276         * lib/getdtablesize.c: New file.
42277         * m4/getdtablesize.m4: New file.
42278         * modules/getdtablesize: New file.
42279         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42280         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
42281         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
42282         HAVE_GETDTABLESIZE.
42283         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
42284
42285 2008-10-05  Bruno Haible  <bruno@clisp.org>
42286
42287         * modules/sched (Makefile.am): Fix typo.
42288         Reported by Simon Josefsson.
42289
42290 2008-10-05  Jim Meyering  <meyering@redhat.com>
42291
42292         bootstrap: check for LT_INIT, too
42293         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
42294         are deprecated.  Suggestion from Ralf Wildenhues.
42295
42296 2008-10-05  Bruno Haible  <bruno@clisp.org>
42297
42298         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
42299         overriding them by ours.
42300         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
42301
42302 2008-10-05  Jim Meyering  <meyering@redhat.com>
42303
42304         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
42305         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
42306         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
42307
42308 2008-10-04  Bruno Haible  <bruno@clisp.org>
42309
42310         * modules/dup2 (License): Change to LGPLv2+.
42311         * modules/sleep (License): Likewise.
42312         * modules/perror (License): Likewise.
42313         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
42314         Blake.
42315         * modules/signal (License): Likewise.
42316         * modules/sigprocmask (License): Likewise.
42317         * modules/raise (License): Change to LGPLv2+, with approval by Jim
42318         Meyering.
42319
42320 2008-10-04  Bruno Haible  <bruno@clisp.org>
42321
42322         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
42323         Reported by Rainer Tammer <tammer@tammer.net>.
42324
42325 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
42326             Bruno Haible  <bruno@clisp.org>
42327
42328         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
42329         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
42330         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
42331
42332 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
42333
42334         filevercmp: new module
42335         * lib/filevercmp.h: New function filevercmp comparing version strings.
42336         * lib/filevercmp.c: Implementation of filevercmp function.
42337         * modules/filevercmp: Module metadata.
42338         * tests/test-filevercmp.c: Unit test for new module.
42339         * modules/filevercmp-tests: Unit test metadata.
42340         * MODULES.html.sh: Add filevercmp module.
42341
42342 2008-10-03  Bruno Haible  <bruno@clisp.org>
42343
42344         * lib/c-ctype.h: Add comment.
42345         Reported by Jim Meyering.
42346
42347 2008-10-02  Bruno Haible  <bruno@clisp.org>
42348
42349         * modules/posix_spawn-internal (Depends-on): Add 'open'.
42350
42351 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
42352
42353         * build-aux/bootstrap: Allow renaming bootstrap, and change the
42354         name of bootstrap.conf accordingly.
42355
42356 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
42357
42358         * build-aux/bootstrap: Install git-merge-changelog configuration
42359         items into .gitconfig if needed.
42360
42361 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
42362
42363         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
42364         git repository, and initialize/update it accordingly.
42365
42366 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
42367
42368         * modules/fsync-tests: New file.
42369         * tests/test-fsync.c: New file.
42370
42371         New module 'fsync'.
42372         * lib/fsync.c: New file.
42373         * m4/fsync.m4: New file.
42374         * modules/fsync: New file.
42375         * lib/unistd.in.h (fsync): New declaration.
42376         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
42377         GNULIB_FSYNC and HAVE_FSYNC.
42378         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
42379         * MODULES.html.sh (posix_functions): Add fsync.
42380         * doc/posix-functions/fsync.texi: Mention the new module.
42381
42382 2008-10-02  Jim Meyering  <meyering@redhat.com>
42383
42384         fts.c: sync with similar code from coreutils' remove.c
42385         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
42386         Guard also with "#if defined __linux__", since for now at least,
42387         this code is Linux-kernel-specific.
42388
42389 2008-10-02  Jim Meyering  <meyering@redhat.com>
42390
42391         fts: bug fixes
42392         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
42393         Include <sys/vfs.h>, not <sys/statfs.h>.
42394
42395         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
42396         Include <sys/vfs.h>, not <sys/statfs.h>.
42397
42398 2008-10-01  Bruno Haible  <bruno@clisp.org>
42399
42400         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
42401         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
42402         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
42403         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
42404         * doc/posix-functions/posix_spawnp.texi: Likewise.
42405         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
42406         whether posix_spawn actually works.
42407         * m4/pipe.m4 (gl_PIPE): Likewise.
42408         * modules/execute (Files): Add m4/posix_spawn.m4.
42409         * modules/pipe (Files): Add m4/posix_spawn.m4.
42410         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
42411
42412 2008-10-01  Jim Meyering  <meyering@redhat.com>
42413
42414         remove trailing spaces
42415         * NEWS: Likewise.
42416         * lib/poll.c (poll): Likewise.
42417         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
42418         * lib/winsock.c (rpl_close): Likewise.
42419         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
42420         * modules/yield: Likewise.
42421         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
42422         * tests/test-sys_select.c (connect_to_socket): Likewise.
42423
42424         fts.c: adjust a new interface to be more generally useful
42425         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
42426         (fts_build): Adjust caller.
42427
42428 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42429
42430         * modules/cond-tests: New file.
42431         * tests/test-cond.c: New file.
42432
42433 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42434             Bruno Haible  <bruno@clisp.org>
42435
42436         * modules/cond (Dependencies): Add errno, time.
42437         * lib/glthread/cond.h: Include <time.h>.
42438         (gl_cond_define, gl_cond_define_initialized): Use the same definition
42439         across platforms.
42440
42441 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42442             Bruno Haible  <bruno@clisp.org>
42443
42444         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
42445
42446 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42447             Bruno Haible  <bruno@clisp.org>
42448
42449         * modules/tls-tests (Depends-on): Add thread, yield.
42450         (configure.ac): Remove all checks.
42451         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
42452         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
42453         gl_thread_self): Remove definitions. Include glthread/thread.h and
42454         glthread/yield.h instead.
42455         (test_tls): Pass an additional NULL argument to gl_thread_join.
42456
42457 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42458             Bruno Haible  <bruno@clisp.org>
42459
42460         * modules/lock-tests (Depends-on): Add thread, yield.
42461         (configure.ac): Remove all checks.
42462         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
42463         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
42464         gl_thread_self): Remove definitions. Include glthread/thread.h and
42465         glthread/yield.h instead.
42466         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
42467         additional NULL argument to gl_thread_join.
42468
42469 2008-09-30  Bruno Haible  <bruno@clisp.org>
42470
42471         Fix the Win32 implementation of the 'thread' module.
42472         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
42473         pointer type.
42474         (gl_thread_self): Invoke gl_thread_self_func.
42475         (gl_thread_self_func): New declaration.
42476         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
42477         (do_init_self_key, init_self_key): New functions.
42478         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
42479         Remove some fields.
42480         (running_threads, running_lock): Remove variables.
42481         (get_current_thread_handle): New function.
42482         (gl_thread_self_func, wrapper_func, glthread_create_func,
42483         glthread_join_func, gl_thread_exit_func): Largely rewritten and
42484         simplified.
42485
42486 2008-09-30  Bruno Haible  <bruno@clisp.org>
42487
42488         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
42489         files.
42490
42491 2008-09-30  Jim Meyering  <meyering@redhat.com>
42492
42493         fts.m4: correct the test for statfs.f_type
42494         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
42495         when checking for statfs.f_type.
42496
42497 2008-09-15  Simon Josefsson  <simon@josefsson.org>
42498
42499         tests: avoid some compiler warnings
42500         * tests/test-memchr.c (main): Pass NULL indirectly.
42501         * tests/test-getdate.c (main): Remove unused variable 'ret'.
42502
42503 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
42504
42505         getdate.y: disallow countable dayshifts like "4 yesterday ago"
42506         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
42507         exactly specified dayshifts.
42508         (dayshift): New rule.
42509         (rel): Add dayshift.
42510         (relative_time_table) [tomorrow, yesterday, today, now]:
42511         Use tDAY_SHIFT in place of tDAY_UNIT.
42512         * tests/test-getdate.c: Add tests for now-disallowed countable
42513         dayshifts, e.g., "4 yesterday ago".
42514
42515 2008-09-29  Bruno Haible  <bruno@clisp.org>
42516
42517         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
42518         * tests/test-posix_spawn1.in.sh: Renamed from
42519         tests/test-posix_spawn.in.sh.
42520         * tests/test-posix_spawn2.c: New file.
42521         * tests/test-posix_spawn2.in.sh: New file.
42522         * modules/posix_spawnp-tests (Files): Update.
42523         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
42524
42525 2008-09-29  Bruno Haible  <bruno@clisp.org>
42526
42527         Propagate effects of putenv/setenv/unsetenv to child processes.
42528         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
42529         * lib/pipe.c (create_pipe): Likewise.
42530
42531 2008-09-29  Bruno Haible  <bruno@clisp.org>
42532
42533         Enable use of shell scripts as executables in mingw.
42534         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
42535         run the program as a shell script.
42536         * lib/pipe.c (create_pipe): Likewise.
42537         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
42538         resulting array.
42539
42540 2008-09-29  Eric Blake  <ebb9@byu.net>
42541
42542         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
42543
42544 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
42545
42546         * doc/posix-functions/accept.texi: Update mingw problems.
42547         * doc/posix-functions/bind.texi: Update mingw problems.
42548         * doc/posix-functions/close.texi: Update mingw problems.
42549         * doc/posix-functions/connect.texi: Update mingw problems.
42550         * doc/posix-functions/getpeername.texi: Update mingw problems.
42551         * doc/posix-functions/getsockname.texi: Update mingw problems.
42552         * doc/posix-functions/getsockopt.texi: Update mingw problems.
42553         * doc/posix-functions/ioctl.texi: Update mingw problems.
42554         * doc/posix-functions/listen.texi: Update mingw problems.
42555         * doc/posix-functions/recv.texi: Update mingw problems.
42556         * doc/posix-functions/recvfrom.texi: Update mingw problems.
42557         * doc/posix-functions/select.texi: Update mingw problems.
42558         * doc/posix-functions/send.texi: Update mingw problems.
42559         * doc/posix-functions/sendto.texi: Update mingw problems.
42560         * doc/posix-functions/setsockopt.texi: Update mingw problems.
42561         * doc/posix-functions/socket.texi: Update mingw problems.
42562
42563 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
42564             Bruno Haible  <bruno@clisp.org>
42565
42566         * lib/sys_select.in.h: Include sys/time.h.
42567         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
42568         * modules/sys_select: Depend on sys_time.
42569         * tests/test-sys_select.c: Test that sys/select.h defines struct
42570         timeval fully.
42571
42572 2008-09-29  Bruno Haible  <bruno@clisp.org>
42573
42574         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
42575         * lib/sys_select.in.h: Likewise.
42576
42577 2008-09-29  Bruno Haible  <bruno@clisp.org>
42578
42579         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
42580
42581 2008-09-29  Bruno Haible  <bruno@clisp.org>
42582
42583         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
42584         Set LIBSOCKET instead of augmenting LIBS.
42585         * modules/sockets (Link): New section.
42586         * modules/sockets-tests (test_sockets_LDADD): New variable.
42587         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
42588         * modules/poll-tests (test_poll_LDADD): New variable.
42589         * NEWS: Document the change.
42590
42591 2008-09-29  Bruno Haible  <bruno@clisp.org>
42592
42593         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
42594         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
42595         ARPA_INET_H directly.
42596         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
42597
42598 2008-09-28  Bruno Haible  <bruno@clisp.org>
42599
42600         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
42601         from gl_HEADER_SYS_SOCKET.
42602         (gl_HEADER_SYS_SOCKET): Invoke it.
42603         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
42604
42605 2008-09-28  Bruno Haible  <bruno@clisp.org>
42606
42607         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
42608         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
42609         Needed on OSF/1 4.0.
42610
42611 2008-09-28  Bruno Haible  <bruno@clisp.org>
42612
42613         Override open more carefully.
42614         * lib/open.c (orig_open): New function.
42615         (rpl_open): Use orig_open instead of open.
42616         * lib/fcntl.in.h: Add special invocation convention.
42617         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
42618         (gl_FUNC_OPEN): Invoke it.
42619
42620         Override freopen more carefully.
42621         * lib/freopen.c (orig_freopen): New function.
42622         (rpl_freopen): Use orig_freopen instead of freopen.
42623         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
42624         (gl_FUNC_FREOPEN): Invoke it.
42625
42626         Override fopen more carefully.
42627         * lib/fopen.c (orig_fopen): New function.
42628         (rpl_fopen): Use orig_fopen instead of fopen.
42629         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
42630         (gl_FUNC_FOPEN): Invoke it.
42631         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
42632
42633 2008-09-28  Bruno Haible  <bruno@clisp.org>
42634
42635         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
42636         SIGPIPE.
42637
42638 2008-09-28  Bruno Haible  <bruno@clisp.org>
42639
42640         * tests/test-sigaction.c (handler, main): Disable the check whether
42641         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
42642         glibc systems with LinuxThreads.
42643
42644 2008-09-28  Bruno Haible  <bruno@clisp.org>
42645
42646         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
42647
42648         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
42649         with AIX xlc.
42650         * lib/fcntl.in.h (open): Likewise.
42651         Reported by Rainer Tammer <tammer@tammer.net>.
42652
42653 2008-09-28  Bruno Haible  <bruno@clisp.org>
42654
42655         * modules/posix_spawnp-tests: New file.
42656         * tests/test-posix_spawn.c: New file.
42657         * tests/test-posix_spawn.in.sh: New file.
42658
42659         New module 'posix_spawnp'.
42660         * modules/posix_spawnp: New file.
42661         * lib/spawnp.c: New file, from GNU libc with modifications.
42662         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
42663
42664         New module 'posix_spawn'.
42665         * modules/posix_spawn: New file.
42666         * lib/spawn.c: New file, from GNU libc with modifications.
42667         * doc/posix-functions/posix_spawn.texi: Mention the new module.
42668
42669         New module 'posix_spawnattr_destroy'.
42670         * modules/posix_spawnattr_destroy: New file.
42671         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
42672         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
42673         module.
42674
42675         New module 'posix_spawnattr_setsigmask'.
42676         * modules/posix_spawnattr_setsigmask: New file.
42677         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
42678         modifications.
42679         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
42680         new module.
42681
42682         New module 'posix_spawnattr_getsigmask'.
42683         * modules/posix_spawnattr_getsigmask: New file.
42684         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
42685         modifications.
42686         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
42687         new module.
42688
42689         New module 'posix_spawnattr_setsigdefault'.
42690         * modules/posix_spawnattr_setsigdefault: New file.
42691         * lib/spawnattr_setdefault.c: New file, from GNU libc with
42692         modifications.
42693         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
42694         new module.
42695
42696         New module 'posix_spawnattr_getsigdefault'.
42697         * modules/posix_spawnattr_getsigdefault: New file.
42698         * lib/spawnattr_getdefault.c: New file, from GNU libc with
42699         modifications.
42700         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
42701         new module.
42702
42703         New module 'posix_spawnattr_setschedpolicy'.
42704         * modules/posix_spawnattr_setschedpolicy: New file.
42705         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
42706         modifications.
42707         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
42708         new module.
42709
42710         New module 'posix_spawnattr_getschedpolicy'.
42711         * modules/posix_spawnattr_getschedpolicy: New file.
42712         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
42713         modifications.
42714         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
42715         new module.
42716
42717         New module 'posix_spawnattr_setschedparam'.
42718         * modules/posix_spawnattr_setschedparam: New file.
42719         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
42720         modifications.
42721         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
42722         new module.
42723
42724         New module 'posix_spawnattr_getschedparam'.
42725         * modules/posix_spawnattr_getschedparam: New file.
42726         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
42727         modifications.
42728         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
42729         new module.
42730
42731         New module 'posix_spawnattr_setpgroup'.
42732         * modules/posix_spawnattr_setpgroup: New file.
42733         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
42734         modifications.
42735         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
42736         module.
42737
42738         New module 'posix_spawnattr_getpgroup'.
42739         * modules/posix_spawnattr_getpgroup: New file.
42740         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
42741         modifications.
42742         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
42743         module.
42744
42745         New module 'posix_spawnattr_setflags'.
42746         * modules/posix_spawnattr_setflags: New file.
42747         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
42748         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
42749         module.
42750
42751         New module 'posix_spawnattr_getflags'.
42752         * modules/posix_spawnattr_getflags: New file.
42753         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
42754         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
42755         module.
42756
42757         New module 'posix_spawnattr_init'.
42758         * modules/posix_spawnattr_init: New file.
42759         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
42760         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
42761         module.
42762
42763         New module 'posix_spawn_file_actions_destroy'.
42764         * modules/posix_spawn_file_actions_destroy: New file.
42765         * lib/spawn_faction_destroy.c: New file, from GNU libc with
42766         modifications.
42767         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
42768         the new module.
42769
42770         New module 'posix_spawn_file_actions_addopen'.
42771         * modules/posix_spawn_file_actions_addopen: New file.
42772         * lib/spawn_faction_addopen.c: New file, from GNU libc with
42773         modifications.
42774         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
42775         the new module.
42776
42777         New module 'posix_spawn_file_actions_adddup2'.
42778         * modules/posix_spawn_file_actions_adddup2: New file.
42779         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
42780         modifications.
42781         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
42782         the new module.
42783
42784         New module 'posix_spawn_file_actions_addclose'.
42785         * modules/posix_spawn_file_actions_addclose: New file.
42786         * lib/spawn_faction_addclose.c: New file, from GNU libc with
42787         modifications.
42788         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
42789         the new module.
42790
42791         New module 'posix_spawn_file_actions_init'.
42792         * modules/posix_spawn_file_actions_init: New file.
42793         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
42794         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
42795         new module.
42796
42797         New module 'posix_spawn-internal'.
42798         * modules/posix_spawn-internal: New file.
42799         * lib/spawn_int.h: New file, from GNU libc with modifications.
42800         * lib/spawni.c: New file, from GNU libc with modifications.
42801         * m4/posix_spawn.m4: New file.
42802
42803         New module 'spawn'.
42804         * modules/spawn: New file.
42805         * lib/spawn.in.h: New file, from GNU libc with modifications.
42806         * m4/spawn_h.m4: New file.
42807         * doc/posix-headers/spawn.texi: Mention the new module.
42808
42809 2008-09-28  Bruno Haible  <bruno@clisp.org>
42810
42811         * modules/sched-tests: New file.
42812         * tests/test-sched.c: New file.
42813
42814         New module 'sched'.
42815         * modules/sched: New file.
42816         * lib/sched.in.h: New file.
42817         * m4/sched_h.m4: New file.
42818         * doc/posix-headers/sched.texi: Mention the new module.
42819
42820 2008-09-27  Eric Blake  <ebb9@byu.net>
42821
42822         Fix previous patch, and tweak references to $0.
42823         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
42824         (func_version, func_gnulib_dir): Don't call this program
42825         gnulib-tool.
42826         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
42827         with using $0 in function.
42828         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
42829         (func_fatal_error): Reuse the name the user invoked us with.
42830
42831 2008-09-27  Bruno Haible  <bruno@clisp.org>
42832
42833         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
42834         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
42835         (gl_ICONV_H): Not here.
42836         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
42837         instead of assigning ICONV_H directly.
42838
42839         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
42840         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
42841         WCHAR_H directly.
42842
42843 2008-09-27  Bruno Haible  <bruno@clisp.org>
42844
42845         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
42846         * modules/arpa_inet (Depends-on): Add link-warning.
42847         (Makefile.am): Insert the definition of GL_LINK-WARNING.
42848         * modules/unistd (Makefile.am): Likewise.
42849
42850 2008-09-26  Bruno Haible  <bruno@clisp.org>
42851
42852         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
42853         variables.
42854         (func_version): Essentially copied from gnulib-tool.
42855         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
42856         func_readlink): Copied from gnulib-tool.
42857
42858 2008-09-26  Bruno Haible  <bruno@clisp.org>
42859
42860         * gnulib-tool (func_version): Change directory to $gnulib_dir before
42861         invoking git-version-gen.
42862
42863 2008-09-26  Bruno Haible  <bruno@clisp.org>
42864
42865         * posix-modules: Update to directory names changed on 2008-01-19.
42866         Remove commas in output before splitting into words. No more need to
42867         avoid 'ftruncate' since 2007-02-19.
42868
42869 2008-09-26  Bruno Haible  <bruno@clisp.org>
42870
42871         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
42872
42873 2008-09-26  Bruno Haible  <bruno@clisp.org>
42874
42875         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
42876         * modules/fwriteerror (Depends-on): Add errno.
42877
42878 2008-09-26  Bruno Haible  <bruno@clisp.org>
42879
42880         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
42881         * tests/test-vc-list-files-cvs.sh: Likewise.
42882
42883 2008-09-26  Bruno Haible  <bruno@clisp.org>
42884
42885         * doc/posix-headers/sys_resource.texi: Reorder items.
42886
42887 2008-09-26  Jim Meyering  <meyering@redhat.com>
42888
42889         fts: tweak inode comparison function
42890         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
42891         inode numbers, as documented.
42892
42893         fts: sort dirent entries on inode number before traversing
42894         This avoids a quadratic, seek-related performance penalty when
42895         operating on a directory containing many entries (measurable at 10k;
42896         3.5 hours at 2 million entries with a cold cache) on certain types
42897         of file systems, including ext3 and ext4, but not tmpfs.
42898         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
42899         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
42900         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
42901         (fs_handles_readdir_ordered_dirents_efficiently): New function.
42902         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
42903         (fts_build): Set the stat.st_ino member from D_INO.
42904         If it is likely to be useful, sort dirent entries on inode number.
42905
42906         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
42907         and the struct statfs.f_type member.
42908         * modules/fts (Depends-on): Add d-ino.
42909
42910 2008-09-26  Bruno Haible  <bruno@clisp.org>
42911
42912         * modules/sigpipe-die (Depends-on): Add sigpipe.
42913
42914         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
42915         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
42916         and GNULIB_STDIO_H_SIGPIPE are set.
42917         * lib/stdio-write.c: New file.
42918         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
42919         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
42920         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
42921         REPLACE_STDIO_WRITE_FUNCS.
42922         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
42923         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
42924         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
42925         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
42926         * modules/stdio (Files): Add lib/stdio-write.c.
42927         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
42928         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
42929         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
42930         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
42931         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
42932         REPLACE_FPRINTF_POSIX.
42933         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
42934         REPLACE_PRINTF_POSIX.
42935         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
42936         REPLACE_VFPRINTF_POSIX.
42937         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
42938         REPLACE_VPRINTF_POSIX.
42939         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
42940         SIGPIPE issue.
42941         * doc/posix-functions/fputc.texi: Likewise.
42942         * doc/posix-functions/fputs.texi: Likewise.
42943         * doc/posix-functions/fwrite.texi: Likewise.
42944         * doc/posix-functions/printf.texi: Likewise.
42945         * doc/posix-functions/putc.texi: Likewise.
42946         * doc/posix-functions/putchar.texi: Likewise.
42947         * doc/posix-functions/puts.texi: Likewise.
42948         * doc/posix-functions/vfprintf.texi: Likewise.
42949         * doc/posix-functions/vprintf.texi: Likewise.
42950
42951         * modules/safe-write (Depends-on): Add write.
42952
42953         * modules/sigpipe-tests: New file.
42954         * tests/test-sigpipe.c: New file.
42955         * tests/test-sigpipe.sh: New file.
42956
42957         * modules/write: New file.
42958         * lib/unistd.in.h: Include <sys/types.h>.
42959         (write): New declaration.
42960         * lib/write.c: New file.
42961         * m4/write.m4: New file.
42962         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42963         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
42964         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
42965         GNULIB_WRITE, REPLACE_WRITE.
42966         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
42967         and the SIGPIPE issue.
42968
42969         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
42970         (raise): New declaration.
42971         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
42972         (ext_signal): New function.
42973         (rpl_raise): New function.
42974         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
42975         GNULIB_SIGNAL_H_SIGPIPE.
42976         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
42977         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
42978
42979         * modules/sigpipe: New file.
42980         * m4/sigpipe.m4: New file.
42981
42982 2008-09-25  Derek Price  <derek@ximbiot.com>
42983             Bruno Haible  <bruno@clisp.org>
42984
42985         * gnulib-tool (func_import): Report all license incompatibilities, not
42986         just the first one.
42987
42988 2008-09-25  Bruno Haible  <bruno@clisp.org>
42989
42990         * gnulib-tool (func_import): When computing the edits, consider not
42991         only the Makefile.ams that exist but also those that will be generated.
42992
42993 2008-09-25  Simon Josefsson  <simon@josefsson.org>
42994
42995         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
42996         fixes gnulib-tool --test warning about duplicate dependency.
42997
42998 2008-09-25  Bruno Haible  <bruno@clisp.org>
42999
43000         * gnulib-tool: Don't ask the user to perform edits in the generated
43001         Makefile.ams.
43002         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
43003         apply to the Makefile.am being generated.
43004         (func_emit_tests_Makefile_am): Execute edits that apply to the
43005         Makefile.am being generated.
43006         (func_import): Setup list of Makefile.am edits before emitting the
43007         Makefile.ams, not at the end.
43008         (func_create_testdir): Update.
43009         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
43010
43011 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43012
43013         * gnulib-tool (func_import): Store the --tests-base option in the
43014         comment in gnulib-cache.m4.
43015
43016 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
43017
43018         * NEWS: Document increased portability that sys_select now provides.
43019
43020         * lib/sys_select.in.h: Install select wrapper.
43021         * lib/sys_socket.in.h: Use more descriptive name when there is no
43022         select wrapper.
43023         * lib/winsock-select.c: New.
43024         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
43025         Require gl_HEADER_SYS_SOCKET.
43026         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
43027         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
43028         * tests/test-sys_select.c: Add functional tests.
43029
43030 2008-09-24  Eric Blake  <ebb9@byu.net>
43031
43032         open, fopen: close fd leak in last patch
43033         * lib/open.c (rpl_open): Close fd before returning error.
43034         * lib/fopen.c (rpl_fopen): Close fd before returning error.
43035         * doc/posix-functions/open.texi (open): Document that Irix also
43036         has the bug.
43037         * doc/posix-functions/fopen.texi (fopen): Likewise.
43038         Reported by Paolo Bonzini.
43039
43040 2008-09-24  Bruno Haible  <bruno@clisp.org>
43041
43042         Ensure that a filename ending in a slash cannot be used to access a
43043         non-directory.
43044         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
43045         to check whether it's really a directory.
43046         * lib/fopen.c: Include fcntl.h, unistd.h.
43047         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
43048         and fdopen().
43049         * modules/fopen (Depends-on): Add unistd.
43050         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
43051         * tests/test-fopen.c (main): Likewise.
43052         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
43053         * doc/posix-functions/fopen.texi: Likewise.
43054         Reported by Eric Blake.
43055
43056 2008-09-23  Eric Blake  <ebb9@byu.net>
43057
43058         c-stack: avoid compiler optimizations when provoking overflow
43059         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
43060         recursion harder to optimize, to ensure a stack overflow occurs.
43061         * tests/test-c-stack.c (recurse): Likewise.
43062         Borrowed from libsigsegv.
43063
43064         c-stack: work around Irix sigaltstack bug
43065         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
43066         whether sigaltstack uses wrong end of stack_t (copied in part from
43067         libsigsegv).
43068         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
43069         Irix bug, without requiring an over-allocation.
43070         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
43071         bug.
43072
43073         fopen: document mingw bug on directories
43074         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
43075         not allowing a stream visiting a directory, even though reading
43076         from such a stream is not portable.
43077
43078 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
43079
43080         * lib/poll.c: Rewrite.
43081         * modules/poll: Depend on alloca.
43082
43083 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
43084
43085         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
43086         instead define prototypes for a full set of wrappers.  Ensure
43087         that Cygwin does not use the compatibility code, which is only
43088         for MinGW.
43089         * lib/winsock.c: New.
43090         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
43091         * modules/sys_socket: Add lib/winsock.c.
43092
43093         * modules/poll-tests: Add errno and perror.
43094         * tests/test-poll.c: Use ioctl, not ioctlsocket.
43095
43096 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
43097
43098         * tests/test-poll.c: Downgrade minimum needed Winsock version.
43099
43100 2008-09-23  Bruno Haible  <bruno@clisp.org>
43101
43102         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
43103         * doc/glibc-functions/*: Likewise.
43104
43105 2008-09-23  Simon Josefsson  <simon@josefsson.org>
43106
43107         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
43108         success.
43109
43110 2008-09-22  Eric Blake  <ebb9@byu.net>
43111             Bruno Haible  <bruno@clisp.org>
43112
43113         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
43114         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
43115         supply %A but mishandle pseudo-NaN.
43116         Reported by Simon Josefsson.
43117
43118 2008-09-21  Bruno Haible  <bruno@clisp.org>
43119
43120         * tests/test-lock.c (main): Tweak skip message.
43121         * tests/test-tls.c (main): Likewise.
43122
43123 2008-09-21  Bruno Haible  <bruno@clisp.org>
43124
43125         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
43126         whether 'struct sigaction' has sa_sigaction here...
43127         (gl_PREREQ_SIG_HANDLER_H): ... not here.
43128         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
43129
43130 2008-09-21  Bruno Haible  <bruno@clisp.org>
43131
43132         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
43133         section.
43134         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
43135         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
43136         the new section.
43137         (Support for obsolete systems lacking POSIX:2001): New section.
43138         (String handling <string.h>): Move strdup to the new section.
43139         Suggested by Simon Josefsson and Paolo Bonzini.
43140
43141 2008-09-21  Bruno Haible  <bruno@clisp.org>
43142
43143         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
43144         exponents in %e and %g results on 'long double'. Needed for mingw's
43145         improved *printf functions.
43146         * tests/test-vasprintf-posix.c (test_function): Likewise.
43147         * tests/test-snprintf-posix.h (test_function): Likewise.
43148         * tests/test-sprintf-posix.h (test_function): Likewise.
43149         Reported by Eric Blake.
43150
43151 2008-09-21  Bruno Haible  <bruno@clisp.org>
43152
43153         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
43154         * tests/test-sprintf-posix.h (test_function): Likewise.
43155
43156 2008-09-21  Bruno Haible  <bruno@clisp.org>
43157
43158         * modules/getpass (Depends-on): Add strdup-posix.
43159
43160         New module 'strdup-posix'.
43161         * modules/strdup-posix: New file.
43162         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
43163         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
43164         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43165         REPLACE_STRDUP.
43166         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
43167         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
43168         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
43169         strdup-posix.
43170
43171         * modules/strdup (Depends-on): Remove malloc-posix.
43172
43173 2008-09-20  Bruno Haible  <bruno@clisp.org>
43174
43175         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
43176         Wildenhues.
43177
43178 2008-09-20  Bruno Haible  <bruno@clisp.org>
43179
43180         Ensure that wint_t gets defined on IRIX 5.3.
43181         * lib/wchar.in.h (wint_t): Define if not defined by the system.
43182         * lib/wctype.in.h (wint_t): Likewise.
43183         (__wctype_wint_t): Remove type.
43184         (isw*): Use wint_t instead of __wctype_wint_t.
43185         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
43186         * modules/wchar (Files): Add m4/wint_t.m4.
43187         (Makefile.am): Substitute HAVE_WINT_T.
43188         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
43189         * tests/test-wctype.c: Check that wint_t is defined.
43190         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
43191         * doc/posix-headers/wctype.texi: Likewise.
43192         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43193
43194 2008-09-18  Bruno Haible  <bruno@clisp.org>
43195
43196         * gnulib-tool (func_exit): Update comment.
43197
43198 2008-09-18  Simon Josefsson  <simon@josefsson.org>
43199
43200         * modules/getaddrinfo (Depends-on): Remove strdup, this module
43201         assumes strdup exists and does not depend on strdup to return
43202         ENOMEM on out of memory conditions.
43203
43204 2008-09-18  Bruno Haible  <bruno@clisp.org>
43205
43206         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
43207         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
43208         digits for the exponent.
43209
43210 2008-09-18  Jim Meyering  <meyering@redhat.com>
43211             Bruno Haible  <bruno@clisp.org>
43212
43213         * lib/vasnprintf.c (decimal_point_char): Define also if
43214         NEED_PRINTF_INFINITE_LONG_DOUBLE.
43215
43216 2008-09-16  Bruno Haible  <bruno@clisp.org>
43217         and Eric Blake  <ebb9@byu.net>
43218
43219         vasnprintf: support Irix 5.3
43220         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
43221         that mishandle long double infinity.
43222         Reported by Tom G. Christensen.
43223
43224 2008-09-16  Bruno Haible  <bruno@clisp.org>
43225
43226         * doc/glibc-functions/scandir.texi: Mention the function is missing on
43227         Solaris 9.
43228         * doc/glibc-functions/alphasort.texi: Likewise.
43229         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
43230
43231 2008-09-16  Jim Meyering  <meyering@redhat.com>
43232
43233         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
43234         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
43235         a umask modification leak out of a subshell.  Otherwise, the
43236         opensolaris /bin/sh would be accepted and thus cause unwarranted
43237         failures in the coreutils test suite.
43238
43239 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
43240
43241         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
43242         to succeed.
43243
43244 2008-09-16  Jim Meyering  <meyering@redhat.com>
43245
43246         avoid spurious test failure when library is built without ACL support
43247         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
43248         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
43249         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
43250         * tests/test-copy-acl.sh: Likewise.
43251
43252 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43253
43254         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
43255         based on character occurrence counts.
43256
43257 2008-09-15  Eric Blake  <ebb9@byu.net>
43258
43259         tests: avoid some compiler warnings
43260         * tests/test-memchr.c (main): Pass NULL indirectly.
43261         * tests/test-closein.c (main): Avoid unused variable.
43262
43263 2008-09-15  Bruno Haible  <bruno@clisp.org>
43264
43265         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
43266         are missing on OpenBSD 4.0 individually.
43267         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
43268
43269 2008-09-15  Bruno Haible  <bruno@clisp.org>
43270
43271         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
43272         * doc/posix-functions/strerror.texi: Mention also Cygwin.
43273         * doc/posix-functions/perror.texi: Likewise.
43274         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
43275         is missing.
43276         Reported by Eric Blake.
43277
43278         * lib/errno.in.h: Use replacement values >= 2000.
43279         Reported by Eric Blake.
43280
43281 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43282
43283         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
43284         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
43285         limit.
43286         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
43287         compareseq was aborted.
43288
43289 2008-09-14  Bruno Haible  <bruno@clisp.org>
43290
43291         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
43292         yvec_edit_count.
43293         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
43294         (fstrcmp_bounded): Simplify result computation accordingly.
43295
43296 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43297
43298         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
43299         (fstrcmp): Define in terms of fstrcmp_bounded.
43300         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
43301         lower_bound argument.
43302         Return quickly if the result is certainly < lower_bound.
43303         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
43304
43305 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43306
43307         * lib/diffseq.h (EARLY_ABORT): New macro.
43308         (compareseq): Change return type to bool. Return true when EARLY_ABORT
43309         evaluates to true.
43310
43311 2008-09-14  Bruno Haible  <bruno@clisp.org>
43312
43313         * modules/perror-tests: New file.
43314         * tests/test-perror.sh: New file.
43315         * tests/test-perror.c: New file.
43316
43317         New module 'perror'.
43318         * lib/stdio.in.h (perror): New declaration.
43319         * lib/perror.c: New file.
43320         * m4/perror.m4: New file.
43321         * modules/perror: New file.
43322         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
43323         * doc/posix-functions/perror.texi: Mention the perror module.
43324         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
43325         REPLACE_PERROR.
43326         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
43327         REPLACE_PERROR.
43328
43329 2008-09-14  Bruno Haible  <bruno@clisp.org>
43330
43331         * modules/stdio (Makefile.am): Reorder to match the order in
43332         lib/stdio.in.h.
43333         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
43334
43335 2008-09-13  Bruno Haible  <bruno@clisp.org>
43336
43337         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
43338
43339 2008-09-13  Bruno Haible  <bruno@clisp.org>
43340
43341         Extend strerror to cover the added errno values.
43342         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
43343         (rpl_strerror): Provide error messages for the added errno values and
43344         for the WSA* values.
43345         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
43346         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
43347         strerror.
43348         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
43349         * modules/strerror (Depends-on): Add errno.
43350         * doc/posix-functions/strerror.texi: Document the change.
43351         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
43352         and EOVERFLOW.
43353
43354 2008-09-13  Bruno Haible  <bruno@clisp.org>
43355
43356         * modules/EOVERFLOW: Remove file.
43357         * m4/eoverflow.m4: Remove file.
43358         * modules/EOVERFLOW-tests: Remove file.
43359         * tests/test-EOVERFLOW.c: Remove file.
43360         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
43361         * modules/ftell (Depends-on): Likewise.
43362         * modules/getdelim (Depends-on): Likewise.
43363         * modules/getugroups (Depends-on): Likewise.
43364         * modules/poll (Depends-on): Likewise.
43365         * modules/snprintf (Depends-on): Likewise.
43366         * modules/sprintf-posix (Depends-on): Likewise.
43367         * modules/vasnprintf (Depends-on): Likewise.
43368         * modules/vasprintf (Depends-on): Likewise.
43369         * modules/vfprintf-posix (Depends-on): Likewise.
43370         * modules/vsnprintf (Depends-on): Likewise.
43371         * modules/vsprintf-posix (Depends-on): Likewise.
43372         * modules/xvasprintf (Depends-on): Likewise.
43373         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
43374         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
43375         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
43376         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
43377         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43378         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
43379         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
43380         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
43381         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43382         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
43383         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
43384         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
43385         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43386         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
43387         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
43388         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
43389         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43390         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
43391         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
43392         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
43393         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43394         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
43395         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
43396         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
43397         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
43398         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43399         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
43400         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
43401         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
43402         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
43403         * MODULES.html.sh: Remove EOVERFLOW.
43404         * NEWS: Mention the change.
43405
43406 2008-09-13  Bruno Haible  <bruno@clisp.org>
43407
43408         * modules/errno-tests: New file.
43409         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
43410
43411         * lib/errno.in.h: New file.
43412         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
43413         * modules/errno: New file.
43414         * doc/posix-headers/errno.texi: Update documentation.
43415         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
43416
43417 2008-09-13  Bruno Haible  <bruno@clisp.org>
43418
43419         * tests/test-poll.c: Use #if for native Windows, rather than testing
43420         __MSVCRT__.
43421
43422 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43423             Bruno Haible  <bruno@clisp.org>
43424
43425         * lib/glob.c: Don't include <pwd.h> on native Windows.
43426         (WINDOWS32): New macro.
43427         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
43428
43429 2008-09-13  Bruno Haible  <bruno@clisp.org>
43430
43431         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
43432         (ETIMEDOUT): Remove macro.
43433         (glthread_cond_timedwait_multithreaded): New declaration.
43434         (glthread_cond_timedwait): Use it.
43435         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
43436         (glthread_cond_timedwait_multithreaded): New function.
43437
43438 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
43439
43440         * modules/poll-tests: Do not check for io.h.
43441         * tests/test-poll.c: Check for __MSVCRT__ instead.
43442
43443 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
43444
43445         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
43446         * modules/poll-tests: Add inet_pton, stdbool, sockets.
43447         * tests/test-poll.c: Use them.  Use _pipe on Windows.
43448
43449 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
43450
43451         * modules/poll-tests: New.
43452         * tests/test-poll.c: New.
43453
43454 2008-09-12  Eric Blake  <ebb9@byu.net>
43455
43456         frexp: test for NetBSD failure on -0.0
43457         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
43458         not all, bugs from NetBSD 3.0 have been fixed.
43459         * doc/posix-functions/frexp.texi (frexp): Document bug.
43460         Reported by Thomas Klausner.
43461
43462         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
43463         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
43464         literal -0.0.
43465         Reported by Jonathan C. Patschke <jp@centtech.com>.
43466
43467 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43468
43469         * lib/glthread/cond.h: Use dummy implementation also if
43470         USE_WIN32_THREADS.
43471
43472 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43473
43474         * modules/fnmatch-posix (License): Change to LGPLv2+.
43475         * modules/fnmatch-gnu (License): Likewise.
43476
43477 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43478
43479         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
43480
43481 2008-09-11  Jim Meyering  <meyering@redhat.com>
43482
43483         * users.txt: Add gtk-vnc.
43484
43485 2008-09-08  Simon Josefsson  <simon@josefsson.org>
43486
43487         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
43488         rotate amounts.
43489
43490         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
43491         required for 16-bit and 8-bit rotates.
43492         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
43493         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
43494         UINT8_MAX instead of hard-coded constants.
43495         Suggested by Paul Eggert.
43496
43497 2008-09-07  Bruno Haible  <bruno@clisp.org>
43498
43499         * tests/test-striconveh.c (main): Check behaviour when converting from
43500         UTF-7.
43501
43502         Make striconveh work better with stateful encodings.
43503         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
43504         that iconv does not increment the inptr when returning -1/EINVAL.
43505
43506 2008-09-07  Bruno Haible  <bruno@clisp.org>
43507
43508         * build-aux/config.rpath: Update according to libtool-2.2.6.
43509         * build-aux/config.libpath: Likewise.
43510
43511 2008-09-06  Bruno Haible  <bruno@clisp.org>
43512
43513         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
43514         * lib/freadptr.c (freadptr): Likewise.
43515         * lib/freadseek.c (freadptrinc): Likewise.
43516         Reported by Simon Josefsson.
43517
43518 2008-09-06  Bruno Haible  <bruno@clisp.org>
43519
43520         * modules/freadptr (License): Change to LGPLv2+.
43521         * modules/freadseek (License): Likewise.
43522         Suggested by Eric Blake.
43523
43524         * modules/memchr2 (License): Change to LGPLv2+.
43525         Approved by Eric Blake.
43526
43527 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43528             Bruno Haible  <bruno@clisp.org>
43529
43530         Make gnulib-tool work with native 'sed' on AIX.
43531         * gnulib-tool (sed_noop): New variable.
43532         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
43533         func_add_or_update, func_create_testdir): Use it to initialize sed
43534         script variables.
43535         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43536
43537 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
43538             Bruno Haible  <bruno@clisp.org>
43539
43540         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
43541         also works after #include directives.
43542
43543 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
43544
43545         getdate.y: reject an out-of-range timezone value
43546         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
43547         the range [-24...+24].  When specified with only one or two digits,
43548         * tests/test-getdate.c: Tests for the fix.
43549         * doc/getdate.texi: Document this change.
43550
43551 2008-09-03  Bruno Haible  <bruno@clisp.org>
43552
43553         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
43554
43555 2008-09-02  Simon Josefsson  <simon@josefsson.org>
43556
43557         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
43558         <bruce.korb@gmail.com> with ideas from Ben Pfaff
43559         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
43560         Blake <ebb9@byu.net>.
43561
43562         * tests/test-bitrotate.c: Add more test vectors.
43563
43564 2008-09-02  Eric Blake  <ebb9@byu.net>
43565
43566         vasnprintf-posix: handle large precision via %.*d
43567         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
43568         when handling it ourselves.
43569         * tests/test-vasnprintf-posix.c (test_function): Add test.
43570         * tests/test-snprintf-posix.h (test_function): Likewise.
43571         * tests/test-sprintf-posix.h (test_function): Likewise.
43572         * tests/test-vasprintf-posix.c (test_function): Likewise.
43573         Reported by Alain Guibert.
43574
43575 2008-09-01  Eric Blake  <ebb9@byu.net>
43576
43577         c-stack: make configure-time check more robust
43578         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
43579         successful sigaction call.
43580         Reported by Tom G. Christensen.
43581
43582 2008-09-01  Bruno Haible  <bruno@clisp.org>
43583
43584         New module 'findprog-lgpl'.
43585         * modules/findprog-lgpl: New file.
43586         * lib/findprog-lgpl.c: New file.
43587         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
43588         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
43589         to decide whether to use strdup or xstrdup, concatenated_filename or
43590         xconcatenated_filename.
43591
43592 2008-09-01  Bruno Haible  <bruno@clisp.org>
43593
43594         Split module 'concat-filename' into 'concat-filename' (LGPL) and
43595         'xconcat-filename' (GPL).
43596         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
43597         (License): Change to LGPLv2+.
43598         * modules/xconcat-filename: New file.
43599         * lib/concat-filename.h (concatenated_filename): Change specification.
43600         (xconcatenated_filename): New declaration.
43601         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
43602         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
43603         memory situations.
43604         * lib/xconcat-filename.c: New file.
43605         * NEWS: Mention the change.
43606         * lib/findprog.c: Include concat-filename.h, not filename.h.
43607         (find_in_path): Use xconcatenated_filename instead of
43608         concatenated_filename.
43609         * lib/javacomp.c: Include concat-filename.h, not filename.h.
43610         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
43611         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
43612         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
43613         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
43614         instead of concatenated_filename.
43615         * lib/javaexec.c: Include concat-filename.h, not filename.h.
43616         (execute_java_class): Use xconcatenated_filename instead of
43617         concatenated_filename.
43618         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
43619         * modules/javacomp (Depends-on): Likewise.
43620         * modules/javaexec (Depends-on): Likewise.
43621
43622 2008-09-01  Bruno Haible  <bruno@clisp.org>
43623
43624         Split module 'filename' into 'filename' and 'concat-filename'.
43625         * modules/filename: Keep only lib/filename.h.
43626         (License): Change to LGPLv2+.
43627         * modules/concat-filename: New file, extracted from modules/filename.
43628         * lib/filename.h (concatenated_filename): Remove declaration.
43629         * lib/concat-filename.h: New file, extracted from lib/filename.h.
43630         * lib/concat-filename.c: Include concat-filename.h.
43631         * NEWS: Mention the change.
43632
43633 2008-09-01  Simon Josefsson  <simon@josefsson.org>
43634
43635         * lib/bitrotate.h (rotl8, rotr8): Add.
43636
43637         * modules/bitrotate (configure.ac): Need
43638         AC_REQUIRE([AC_C_INLINE]).
43639         (Description): Mention stdint.h.  Reported by Bruno Haible
43640         <bruno@clisp.org>.
43641
43642         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
43643         Paolo Bonzini <bonzini@gnu.org>.
43644
43645 2008-08-31  Bruno Haible  <bruno@clisp.org>
43646
43647         Assume Solaris specific bi-arch conventions on Solaris systems.
43648         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
43649         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
43650         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
43651         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
43652         like acl_libdirstem.
43653         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
43654         acl_libdirstem.
43655         * NEWS: Mention the change.
43656         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
43657
43658 2008-08-31  Jim Meyering  <meyering@redhat.com>
43659
43660         * lib/strftime.h: Add comments describing the two added arguments.
43661
43662         remove duplicate #include directives
43663         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
43664         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
43665
43666 2008-08-31  Bruno Haible  <bruno@clisp.org>
43667
43668         New module 'sigpipe-die'.
43669         * modules/sigpipe-die: New file.
43670         * lib/sigpipe-die.h: New file.
43671         * lib/sigpipe-die.c: New file.
43672         * MODULES.html.sh (Signal handling): Add sigpipe-die.
43673
43674 2008-08-31  Bruno Haible  <bruno@clisp.org>
43675
43676         Don't override previously installed signal handlers.
43677         * lib/fatal-signal.c (saved_sigactions): New variable.
43678         (uninstall_handlers): Reset the signal to the saved handler, not
43679         to SIG_DFL (except when ignored).
43680         (install_handlers): Save the previous handlers.
43681
43682 2008-08-30  Bruno Haible  <bruno@clisp.org>
43683
43684         * gnulib-tool (func_reset_sigpipe): New function.
43685         (func_get_automake_snippet, func_modules_transitive_closure,
43686         func_import): Invoke it before a join command that reads from stdin,
43687         to avoid "echo: write error: Broken pipe" error messages on stderr.
43688         Reported by Sam Steingold <sds@gnu.org>.
43689
43690 2008-08-30  Bruno Haible  <bruno@clisp.org>
43691
43692         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
43693         Code copied from m4/open.m4.
43694         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
43695         access and the filename ends in a slash. Code copied from lib/open.c.
43696         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
43697         * tests/test-fopen.c (main): Check against bug with trailing slash.
43698
43699 2008-08-29  Bruno Haible  <bruno@clisp.org>
43700
43701         Avoid some "gcc -pedantic" warnings.
43702         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
43703         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
43704         * lib/dirent.in.h: Likewise.
43705         * lib/fcntl.in.h: Likewise.
43706         * lib/float.in.h: Likewise.
43707         * lib/iconv.in.h: Likewise.
43708         * lib/inttypes.in.h: Likewise.
43709         * lib/locale.in.h: Likewise.
43710         * lib/math.in.h: Likewise.
43711         * lib/netinet_in.in.h: Likewise.
43712         * lib/search.in.h: Likewise.
43713         * lib/signal.in.h: Likewise.
43714         * lib/stdarg.in.h: Likewise.
43715         * lib/stdint.in.h: Likewise.
43716         * lib/stdio.in.h: Likewise.
43717         * lib/stdlib.in.h: Likewise.
43718         * lib/string.in.h: Likewise.
43719         * lib/strings.in.h: Likewise.
43720         * lib/sys_select.in.h: Likewise.
43721         * lib/sys_socket.in.h: Likewise.
43722         * lib/sys_stat.in.h: Likewise.
43723         * lib/sys_time.in.h: Likewise.
43724         * lib/sysexits.in.h: Likewise.
43725         * lib/time.in.h: Likewise.
43726         * lib/unistd.in.h: Likewise.
43727         * lib/wchar.in.h: Likewise.
43728         * lib/wctype.in.h: Likewise.
43729         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
43730         * modules/fchdir (Makefile.am): Likewise.
43731         * modules/fcntl (Makefile.am): Likewise.
43732         * modules/float (Makefile.am): Likewise.
43733         * modules/iconv_open (Makefile.am): Likewise.
43734         * modules/inttypes (Makefile.am): Likewise.
43735         * modules/locale (Makefile.am): Likewise.
43736         * modules/math (Makefile.am): Likewise.
43737         * modules/netinet_in (Makefile.am): Likewise.
43738         * modules/search (Makefile.am): Likewise.
43739         * modules/signal (Makefile.am): Likewise.
43740         * modules/stdarg (Makefile.am): Likewise.
43741         * modules/stdint (Makefile.am): Likewise.
43742         * modules/stdio (Makefile.am): Likewise.
43743         * modules/stdlib (Makefile.am): Likewise.
43744         * modules/string (Makefile.am): Likewise.
43745         * modules/strings (Makefile.am): Likewise.
43746         * modules/sys_select (Makefile.am): Likewise.
43747         * modules/sys_socket (Makefile.am): Likewise.
43748         * modules/sys_stat (Makefile.am): Likewise.
43749         * modules/sys_time (Makefile.am): Likewise.
43750         * modules/sysexits (Makefile.am): Likewise.
43751         * modules/time (Makefile.am): Likewise.
43752         * modules/unistd (Makefile.am): Likewise.
43753         * modules/wchar (Makefile.am): Likewise.
43754         * modules/wctype (Makefile.am): Likewise.
43755         Reported by Reuben Thomas <rrt@sc3d.org>.
43756
43757 2008-08-29  Bruno Haible  <bruno@clisp.org>
43758
43759         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
43760         any more.
43761
43762 2008-08-29  Simon Josefsson  <simon@josefsson.org>
43763
43764         * MODULES.html.sh (Misc): Add bitrotate.
43765
43766         * modules/bitrotate: New file.
43767
43768         * lib/bitrotate.h: New file.
43769
43770         * modules/bitrotate-tests: New file.
43771
43772         * tests/test-bitrotate.c: New file.
43773
43774         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
43775         on the bitrotate module.
43776
43777         * lib/arctwo.c: Use new bitrotate module.
43778
43779 2008-08-29  Jim Meyering  <meyering@redhat.com>
43780
43781         bootstrap: merge changes from coreutils
43782         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
43783         of copied files.  Remove a kludge, now that this is fixed.
43784         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
43785         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
43786         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
43787
43788 2008-08-29  Bruno Haible  <bruno@clisp.org>
43789
43790         * MODULES.html.sh: Remove --cvs-urls option.
43791
43792 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
43793
43794         maint.mk: adjust to file name change
43795         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
43796
43797 2008-08-28  Jim Meyering  <meyering@redhat.com>
43798
43799         * modules/getndelim2 (License): Relicense to LGPLv2+.
43800         Approved by Richard Stallman for the version of 1995, and by
43801         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
43802
43803 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
43804
43805         * lib/getdelim.c (flockfile, funlockfile): Make all of them
43806         dummy if one is not available.  Do not touch them if
43807         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
43808         (getc_maybe_unlocked): New.
43809         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
43810
43811 2008-08-26  Eric Blake  <ebb9@byu.net>
43812
43813         doc/INSTALL: resync from autoconf
43814         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
43815         (INSTALL_PRELUDE): Delete; this is done more efficiently by
43816         moving...
43817         * install.texi [!autoconf]: ...here.  Resync from autoconf.
43818         * INSTALL: Regenerate.
43819         * INSTALL.ISO: New file.
43820         * INSTALL.UTF-8: Likewise.
43821
43822 2008-08-26  Jim Meyering  <meyering@redhat.com>
43823
43824         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
43825         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
43826         these definitions conditional, so that they may be overridden, too.
43827
43828 2008-08-26  Bruno Haible  <bruno@clisp.org>
43829
43830         Generate INSTALL file variants with prettier quotes.
43831         * doc/Makefile (INSTALL_PRELUDE): New macro.
43832         (INSTALL): Use it.
43833         (INSTALL.ISO, INSTALL.UTF-8): New rules.
43834
43835 2008-08-26  Bruno Haible  <bruno@clisp.org>
43836
43837         Run makeinfo in an English locale.
43838         * doc/Makefile (MAKEINFO): New variable.
43839
43840 2008-08-26  Bruno Haible  <bruno@clisp.org>
43841
43842         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
43843         Suggested by Eric Blake.
43844
43845 2008-08-25  Bruno Haible  <bruno@clisp.org>
43846
43847         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
43848
43849 2008-08-25  Eric Blake  <ebb9@byu.net>
43850
43851         c-stack: test that stack overflow can be caught
43852         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
43853         that platform allows handling stack overflow; at least OS/2 EMX
43854         has sigaltstack, but crashes before transferring control to
43855         handler on stack overflow.
43856         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
43857         check for HAVE_STACK_OVERFLOW_HANDLING.
43858         Reported by Elbert Pol.
43859
43860 2008-08-25  Bruno Haible  <bruno@clisp.org>
43861
43862         * doc/posix-functions/strftime.texi: Fix description of strftime
43863         module.
43864
43865 2008-08-24  Bruno Haible  <bruno@clisp.org>
43866
43867         * tests/uniwidth/test-uc_width2.c: New file.
43868         * tests/uniwidth/test-uc_width2.sh: New file.
43869         * modules/uniwidth/width-tests (Files): Add the new files.
43870         (TESTS): Add uniwidth/test-uc_width2.sh.
43871         (TESTS_ENVIRONMENT): New variable.
43872         (check_PROGRAMS): Add test-uc_width2.
43873         (test_uc_width2_SOURCES): New variable.
43874
43875         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
43876         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
43877         not 0x00AB.
43878         Reported by Alexander V. Lukyanov <lav@netis.ru>.
43879
43880 2008-08-22  Eric Blake  <ebb9@byu.net>
43881
43882         test-lock, test-tls: mention why a test is skipped
43883         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
43884         skipped.
43885         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
43886
43887         count-one-bits: relax license
43888         * modules/count-one-bits (License): Relicense to LGPLv2+.
43889         Suggested by Ludovic Courtès, approved by Ben Pfaff.
43890
43891 2008-08-22  Andreas Schwab  <schwab@suse.de>
43892
43893         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
43894         Remove spurious space in assignment.
43895
43896 2008-08-21  Simon Josefsson  <simon@josefsson.org>
43897
43898         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
43899         Paul Eggert <eggert@CS.UCLA.EDU>.
43900
43901 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
43902
43903         * modules/gettext: Add m4/threadlib.m4.
43904
43905 2008-08-19  Eric Blake  <ebb9@byu.net>
43906
43907         test-c-stack: fix compilation failure on FreeBSD 5.0
43908         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
43909         headers before <sys/resource.h>.
43910         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
43911         the bug.
43912         Reported by Nelson H. F. Beebe.
43913
43914         strverscmp: migrate from "strverscmp.h" to <string.h>
43915         * modules/string (Makefile.am): Add new hooks.
43916         * modules/strverscmp (Files): Remove strverscmp.h.
43917         (Depends-on): Add string.
43918         (configure.ac): Add indicator.
43919         (Include): Mention new header.
43920         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
43921         defaults.
43922         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
43923         results.
43924         * lib/strverscmp.h: Delete.
43925         * lib/string.in.h (strverscmp): Provide declaration, when needed.
43926         * tests/test-strverscmp.c (includes): Adjust client.
43927         * lib/check-version.c (includes): Likewise.
43928         * NEWS: Document the change.
43929
43930         strverscmp: add unit test
43931         * modules/strverscmp-tests: New file.
43932         * tests/test-strverscmp.c: Likewise.
43933
43934 2008-08-19  Simon Josefsson  <simon@josefsson.org>
43935
43936         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
43937         regarding Windows crypto stuff, from Mono.
43938
43939 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
43940
43941         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
43942         if present, for intel RND.  Return error on failures.
43943
43944 2008-08-18  Ben Pfaff  <blp@gnu.org>
43945
43946         gitlog-to-changelog: give better diagnostic for failed pipe-open
43947         * build-aux/gitlog-to-changelog: Improve error message: suggest
43948         that the version of Git may be too old.
43949
43950 2008-08-18  Simon Josefsson  <simon@josefsson.org>
43951
43952         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
43953         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
43954
43955 2008-08-18  Bruno Haible  <bruno@clisp.org>
43956
43957         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
43958         pthread_in_use().
43959
43960 2008-08-18  Bruno Haible  <bruno@clisp.org>
43961
43962         * lib/glthread/threadlib.c: Include <pthread.h>.
43963
43964 2008-08-18  Bruno Haible  <bruno@clisp.org>
43965
43966         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
43967         glthread_recursive_lock_* macros.
43968         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
43969         Fix syntax error.
43970
43971 2008-08-18  Bruno Haible  <bruno@clisp.org>
43972
43973         * lib/glthread/thread.c: Avoid forcing a context switch right after
43974         thread creation.
43975
43976 2008-08-17  Bruno Haible  <bruno@clisp.org>
43977
43978         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
43979         * lib/glthread/thread.h: Provide Win32 specific implementation.
43980         * modules/thread (Files): Add lib/glthread/thread.c.
43981         (Depends-on): Add lock.
43982         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
43983
43984 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43985
43986         New module 'yield'.
43987         * modules/yield: New file.
43988         * lib/glthread/yield.h: New file.
43989         * m4/yield.m4: New file.
43990         * MODULES.html.sh (Multithreading): Add yield.
43991
43992 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43993
43994         New module 'thread'.
43995         * modules/thread: New file.
43996         * lib/glthread/thread.h: New file.
43997         * m4/thread.m4: New file.
43998         * MODULES.html.sh (Multithreading): Add thread.
43999
44000 2008-08-17  Bruno Haible  <bruno@clisp.org>
44001
44002         * lib/glthread/lock.h: Include <stdlib.h> always.
44003         * lib/glthread/tls.h: Likewise.
44004         * lib/glthread/cond.h: Likewise.
44005
44006 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44007
44008         New module 'cond'.
44009         * modules/cond: New file.
44010         * lib/glthread/cond.h: New file.
44011         * lib/glthread/cond.c: New file.
44012         * m4/cond.m4: New file.
44013         * MODULES.html.sh (Multithreading): Add cond.
44014
44015 2008-08-16  Eric Blake  <ebb9@byu.net>
44016
44017         c-stack: fix regression on Irix 5.3 from 2008-06-21
44018         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
44019         sa_sigaction...
44020         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
44021         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
44022         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
44023         * modules/signal (Makefile.am): Use the value.
44024         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
44025         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
44026         * doc/posix-headers/signal.texi (signal.h): Document this
44027         portability issue.
44028         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
44029         Reported by Tom G. Christensen.
44030
44031 2008-08-17  Bruno Haible  <bruno@clisp.org>
44032
44033         New module 'threadlib'.
44034         * modules/threadlib: New file.
44035         * lib/glthread/threadlib.c: New file, extracted from
44036         lib/glthread/lock.c.
44037         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
44038         functions.
44039         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
44040         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
44041         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
44042         macros.
44043         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
44044         (gl_DISABLE_THREADS): Remove macro.
44045         * modules/lock (Files): Remove build-aux/config.rpath.
44046         (Depends-on): Remove havelib. Add threadlib.
44047         (configure.ac-early): Remove section.
44048         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
44049         * modules/tls (Depends-on): Remove lock. Add threadlib.
44050         (Link): New section, copied from threadlib.
44051         * MODULES.html.sh (Multithreading): Add threadlib.
44052
44053 2008-08-14  Bruno Haible  <bruno@clisp.org>
44054
44055         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
44056         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
44057         glthread_rwlock_unlock, glthread_rwlock_destroy,
44058         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
44059         glthread_recursive_lock_destroy): Define as macros always.
44060         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
44061         glthread_lock_lock.
44062         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
44063         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
44064         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
44065         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
44066         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
44067         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
44068         (glthread_recursive_lock_lock_func): Renamed from
44069         glthread_recursive_lock_lock.
44070         (glthread_recursive_lock_unlock_func): Renamed from
44071         glthread_recursive_lock_unlock.
44072         (glthread_recursive_lock_destroy_func): Renamed from
44073         glthread_recursive_lock_destroy.
44074
44075 2008-08-14  Bruno Haible  <bruno@clisp.org>
44076
44077         * lib/glthread/lock.h: Renamed from lib/lock.h.
44078         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
44079         * lib/glthread/tls.h: Renamed from lib/tls.h.
44080         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
44081         * lib/fstrcmp.c: Update includes.
44082         * lib/strsignal.c: Update includes.
44083         * modules/lock (Files, Makefile.am): Update.
44084         (Include): Change to "glthread/lock.h".
44085         * modules/tls (Files, Makefile.am): Update.
44086         (Include): Change to "glthread/tls.h".
44087         * tests/test-lock.c: Update includes.
44088         * tests/test-tls.c: Update includes.
44089         * NEWS: Mention the renamed header files.
44090
44091 2008-08-11  Jim Meyering  <meyering@redhat.com>
44092
44093         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
44094
44095 2008-08-11  Eric Blake  <ebb9@byu.net>
44096
44097         test-c-stack: avoid C99-ism
44098         * tests/test-c-stack.c (main): Fix whitespace, move declaration
44099         before statement.
44100         Reported by Alain Guibert.
44101
44102 2008-08-10  Jim Meyering  <meyering@redhat.com>
44103
44104         ensure that return value of uinttostr et al are not ignored
44105         * lib/inttostr.h (__GNUC_PREREQ): Define.
44106         (__attribute_warn_unused_result__): Define.
44107         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
44108
44109 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
44110
44111         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
44112         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
44113
44114 2008-08-07  Jim Meyering  <meyering@redhat.com>
44115
44116         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
44117
44118         * modules/mkstemp (License): Relicense under LGPLv2+.
44119         * modules/tempname (License): Likewise.
44120
44121 2008-08-06  Bruno Haible  <bruno@clisp.org>
44122
44123         * lib/poll.c (poll): Further micro-optimization.
44124
44125 2008-08-06  Jim Meyering  <meyering@redhat.com>
44126
44127         inet_pton.c: use locale-independent tolower
44128         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
44129         (inet_pton6): Use c_tolower rather than tolower.
44130         * modules/inet_pton (Depends-on): Add c-ctype.
44131
44132 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
44133
44134         * lib/poll.c (poll): Avoid division when timeout is 0, cache
44135         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
44136
44137 2008-08-06  Jim Meyering  <meyering@redhat.com>
44138
44139         * modules/inet_pton (License): Relicense under LGPLv2+.
44140
44141 2008-08-03  Bruno Haible  <bruno@clisp.org>
44142
44143         Additional non-aborting API for lock and tls.
44144         * lib/lock.h: Include <errno.h>.
44145         (glthread_lock_init): New macro/function.
44146         (gl_lock_init): Define as wrapper around glthread_lock_init.
44147         (glthread_lock_lock): New macro/function.
44148         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
44149         (glthread_lock_unlock): New macro/function.
44150         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
44151         (glthread_lock_destroy): New macro/function.
44152         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
44153         (glthread_rwlock_init): New macro/function.
44154         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
44155         (glthread_rwlock_rdlock): New macro/function.
44156         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
44157         (glthread_rwlock_wrlock): New macro/function.
44158         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
44159         (glthread_rwlock_unlock): New macro/function.
44160         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
44161         (glthread_rwlock_destroy): New macro/function.
44162         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
44163         (glthread_recursive_lock_init): New macro/function.
44164         (gl_recursive_lock_init): Define as wrapper around
44165         glthread_recursive_lock_init.
44166         (glthread_recursive_lock_lock): New macro/function.
44167         (gl_recursive_lock_lock): Define as wrapper around
44168         glthread_recursive_lock_lock.
44169         (glthread_recursive_lock_unlock): New macro/function.
44170         (gl_recursive_lock_unlock): Define as wrapper around
44171         glthread_recursive_lock_unlock.
44172         (glthread_recursive_lock_destroy): New macro/function.
44173         (gl_recursive_lock_destroy): Define as wrapper around
44174         glthread_recursive_lock_destroy.
44175         (glthread_once): New macro/function.
44176         (gl_once): Define as wrapper around glthread_once.
44177         Update function declarations.
44178         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
44179         glthread_rwlock_init. Return error code.
44180         (glthread_rwlock_rdlock_multithreaded): Renamed from
44181         glthread_rwlock_rdlock. Return error code.
44182         (glthread_rwlock_wrlock_multithreaded): Renamed from
44183         glthread_rwlock_wrlock. Return error code.
44184         (glthread_rwlock_unlock_multithreaded): Renamed from
44185         glthread_rwlock_unlock. Return error code.
44186         (glthread_rwlock_destroy_multithreaded): Renamed from
44187         glthread_rwlock_destroy. Return error code.
44188         (glthread_recursive_lock_init_multithreaded): Renamed from
44189         glthread_recursive_lock_init. Return error code.
44190         (glthread_recursive_lock_lock_multithreaded): Renamed from
44191         glthread_recursive_lock_lock. Return error code.
44192         (glthread_recursive_lock_unlock_multithreaded): Renamed from
44193         glthread_recursive_lock_unlock. Return error code.
44194         (glthread_recursive_lock_destroy_multithreaded): Renamed from
44195         glthread_recursive_lock_destroy. Return error code.
44196         (glthread_once_call): Make static.
44197         (glthread_once_multithreaded): Renamed from glthread_once.
44198         * lib/tls.h: Include <errno.h>.
44199         (glthread_tls_key_init): New macro/function.
44200         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
44201         (glthread_tls_set): New macro/function.
44202         (gl_tls_set): Define as wrapper around glthread_tls_set.
44203         (glthread_tls_key_destroy): New macro/function.
44204         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
44205         Update function declarations.
44206         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
44207         glthread_tls_get.
44208         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
44209
44210 2008-08-04  Eric Blake  <ebb9@byu.net>
44211
44212         gnumakefile: use space, not TAB, outside of targets
44213         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
44214
44215 2008-08-02  Jim Meyering  <meyering@redhat.com>
44216
44217         getdate.y: avoid locale-dependent date parsing failure
44218         In Turkish locales, getdate would fail to recognize keywords
44219         containing a lowercase "i".  The solution is not to rely on
44220         locale-sensitive case-conversion.
44221         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
44222         (lookup_word): Use c_toupper in place of toupper.
44223         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
44224         Reported by Vefa Bicakci <bicave@superonline.com> in
44225         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
44226         * modules/getdate (Depends-on): Add c-ctype.
44227
44228 2008-08-02  Bruno Haible  <bruno@clisp.org>
44229
44230         * gnulib-tool (func_import): When updating or creating a .gitignore
44231         file, prepend each added line with a slash, and ignore leading slashes
44232         from the existing lines.
44233         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
44234
44235 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44236
44237         Portability fix for GNU make 3.79.1.
44238         * top/GNUmakefile: Avoid 'else COND', which older GNU make
44239         versions do not understand.
44240
44241 2008-08-01  Bruno Haible  <bruno@clisp.org>
44242
44243         Work around bug of HP-UX 10.20 cc with -0.0 literal.
44244         * tests/test-isnanf.h (zero): New variable.
44245         (main): Avoid literal -0.0f.
44246         * tests/test-isnand.h (zero): New variable.
44247         (main): Avoid literal -0.0.
44248         * tests/test-isnanl.h (zero): New variable.
44249         (main): Avoid literal -0.0L.
44250         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
44251         (test_float, test_double, test_long_double): Avoid literals -0.0f,
44252         -0.0, -0.0L.
44253         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
44254         (test_signbitd): Avoid literal -0.0.
44255         (test_signbitl): Avoid literal -0.0L.
44256         * tests/test-ceilf1.c (zero): New variable.
44257         (main): Avoid literal -0.0f.
44258         * tests/test-ceill.c (zero): New variable.
44259         (main): Avoid literal -0.0L.
44260         * tests/test-floorf1.c (zero): New variable.
44261         (main): Avoid literal -0.0f.
44262         * tests/test-floorl.c (zero): New variable.
44263         (main): Avoid literal -0.0L.
44264         * tests/test-roundf1.c (zero): New variable.
44265         (main): Avoid literal -0.0f.
44266         * tests/test-round1.c (zero): New variable.
44267         (main): Avoid literal -0.0.
44268         * tests/test-roundl.c (zero): New variable.
44269         (main): Avoid literal -0.0L.
44270         * tests/test-truncf1.c (zero): New variable.
44271         (main): Avoid literal -0.0f.
44272         * tests/test-trunc1.c (zero): New variable.
44273         (main): Avoid literal -0.0.
44274         * tests/test-truncl.c (zero): New variable.
44275         (main): Avoid literal -0.0L.
44276         * tests/test-frexp.c (zero): New variable.
44277         (main): Avoid literal -0.0.
44278         * tests/test-frexpl.c (zero): New variable.
44279         (main): Avoid literal -0.0L.
44280         * tests/test-ldexpl.c (zero): New variable.
44281         (main): Avoid literal -0.0L.
44282         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
44283         (zerod, zerol): New variables.
44284         (test_function): Avoid literals -0.0, -0.0L.
44285         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
44286         (zerod, zerol): New variables.
44287         (test_function): Avoid literals -0.0, -0.0L.
44288         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
44289         (zerod, zerol): New variables.
44290         (test_function): Avoid literals -0.0, -0.0L.
44291         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
44292         (zerod, zerol): New variables.
44293         (test_function): Avoid literals -0.0, -0.0L.
44294         * tests/test-strtod.c (zero): New variable.
44295         (main): Avoid literal -0.0.
44296         Reported by Jonathan C. Patschke <jp@centtech.com>.
44297
44298 2008-07-31  Jim Meyering  <meyering@redhat.com>
44299
44300         sha256.h: correct definition of SHA224_DIGEST_SIZE
44301         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
44302         Reported by Paulie Pena IV <paulie4@gmail.com>.
44303         Define as 224 / 8, rather than as a literal.
44304         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
44305         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
44306         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
44307
44308 2008-07-31  Bruno Haible  <bruno@clisp.org>
44309
44310         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
44311         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
44312         Reported by Jonathan Patschke <jp@centtech.com>.
44313
44314 2008-07-31  Bruno Haible  <bruno@clisp.org>
44315
44316         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
44317         Reported by Paolo Bonzini <bonzini@gnu.org>.
44318
44319 2008-07-30  Eric Blake  <ebb9@byu.net>
44320
44321         test-strtod: allow compilation without -lm
44322         * tests/test-strtod.c (main): Avoid link dependence on fabs.
44323         Reported by Dennis Clarke <blastwave@gmail.com>.
44324
44325 2008-07-28  Jim Meyering  <meyering@redhat.com>
44326
44327         bootstrap: work also when there are no .po files in po/
44328         * build-aux/bootstrap (update_po_files): Complete the change
44329         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
44330
44331 2008-07-27  Jim Meyering  <meyering@redhat.com>
44332
44333         * users.txt: Add zile.
44334
44335 2008-07-26  Ben Pfaff  <blp@gnu.org>
44336
44337         Add missing dependencies on new m4/exponent[fdl].m4 files.
44338         * modules/isnanf-nolibm: Add m4/exponentf.m4.
44339         * modules/isnand-nolibm: Add m4/exponentd.m4.
44340         * modules/isnanl-nolibm: Add m4/exponentl.m4.
44341         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
44342         m4/isnan[fdl].m4, because the macros actually used moved.
44343         Reported by Jim Meyering.
44344
44345 2008-07-14  Ben Pfaff  <blp@gnu.org>
44346
44347         Add isinf module.
44348         * lib/isinf.c: New file.
44349         * lib/math.in.h: Define isinf macro if we have decided to replace
44350         it.
44351         * m4/isinf.m4: New file.
44352         * m4/math_h.m4: Initialize and substitute variables for isinf
44353         module.
44354         * modules/isinf: New file.
44355         * modules/isinf-tests: New file.
44356         * modules/math: Add substitutions for new module.
44357         * tests/test-isinf.c: New file.
44358         * doc/posix-functions/isinf.texi: Mention new module.
44359         * MODULES.html.sh: Mention new module.
44360
44361 2008-07-14  Ben Pfaff  <blp@gnu.org>
44362
44363         Factor out some macros for use by additional modules.
44364         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
44365         exponentf.m4.
44366         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
44367         exponentd.m4.
44368         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
44369         file exponentl.m4.
44370         * m4/exponentf.m4: New file.
44371         * m4/exponentd.m4: New file.
44372         * m4/exponentl.m4: New file.
44373         * modules/isnanf: Use new file m4/exponentf.m4.
44374         * modules/isnand: Use new file m4/exponentd.m4.
44375         * modules/isnanl: Use new file m4/exponentl.m4.
44376
44377 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
44378
44379         mktime.c: normalize tp->tm_isdst value to -1/0/1.
44380         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
44381         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
44382         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
44383
44384         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
44385         readlink on platforms without PATH_MAX.
44386
44387 2008-07-21  Eric Blake  <ebb9@byu.net>
44388
44389         Warn, not fail, on stale version.
44390         * top/GNUmakefile (_curr-ver): Tone down previous patch.
44391
44392         Don't allow installation with stale devel version number.
44393         * top/GNUmakefile (_is-install-target): New macro.
44394         (_curr-ver): Forbid installation with stale version number.
44395
44396 2008-07-20  Bruno Haible  <bruno@clisp.org>
44397
44398         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
44399         TESTS_ENVIRONMENT.
44400         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
44401
44402 2008-07-20  Bruno Haible  <bruno@clisp.org>
44403
44404         * lib/c-stack.h (c_stack_action): Add documentation.
44405         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
44406
44407 2008-07-20  Bruno Haible  <bruno@clisp.org>
44408
44409         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
44410         * modules/readlink (License): Likewise.
44411
44412 2008-07-17  Eric Blake  <ebb9@byu.net>
44413
44414         * modules/c-stack (Link): Fix typo.
44415
44416         Make c-stack use libsigsegv, when available.
44417         * modules/c-stack (Depends-on): Add libsigsegv.
44418         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
44419         needed.
44420         * lib/c-stack.c (SIGSTKSZ): Define fallback.
44421         (segv_handler, overflow_handler, c_stack_action)
44422         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
44423         implementation when libsigsegv is available, but only when using
44424         the library is necessary.
44425         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
44426         comment, explaining why XSI check fails on Linux.
44427         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
44428         * tests/test-c-stack2.sh: Tweak skip message.
44429         * NEWS: Document new link-time requirements.
44430
44431 2008-07-16  Eric Blake  <ebb9@byu.net>
44432
44433         c-stack: Expose false positives when not using libsigsegv.
44434         * modules/c-stack-tests (Files): Expand test.
44435         * tests/test-c-stack.c (main): Add means to conditionally trigger
44436         non-overflow SIGSEGV.
44437         * tests/test-c-stack2.sh: New file.
44438
44439 2008-07-14  Bruno Haible  <bruno@clisp.org>
44440
44441         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
44442         Reported by Eric Blake.
44443
44444 2008-07-14  Sam Steingold  <sds@gnu.org>
44445             Bruno Haible  <bruno@clisp.org>
44446
44447         New module libsigsegv.
44448         * modules/libsigsegv: New file.
44449         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
44450         modifications.
44451         * MODULES.html.sh (Signal handling): New section.
44452
44453 2008-07-14  Bruno Haible  <bruno@clisp.org>
44454
44455         * modules/unictype/ctype-* (Description): Add the word "function".
44456         Improves the resulting doc in MODULES.html.
44457
44458 2008-07-12  Ben Pfaff  <blp@gnu.org>
44459
44460         Add longlong module.
44461         * modules/longlong: New file.
44462
44463 2008-07-12  Bruno Haible  <bruno@clisp.org>
44464
44465         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
44466         to empty.
44467
44468 2008-07-10  Ben Pfaff  <blp@gnu.org>
44469
44470         Add isnan module.
44471         * doc/posix-functions/isnan.texi: Mention new module.
44472         * lib/math.in.h: Define isnan macro if we have decided to replace
44473         it.
44474         * m4/isnan.m4: New file.
44475         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
44476         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
44477         also.
44478         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
44479         redundancy.
44480         * m4/math_h.m4: Initialize and substitute variables for isnan
44481         module.
44482         * modules/isnan: New file.
44483         * modules/isnan-tests: New file.
44484         * modules/math: Add substitutions for new module.
44485         * tests/test-isnan.c: New file.
44486         * MODULES.html.sh: Mention new module.
44487
44488 2008-07-10  Ben Pfaff  <blp@gnu.org>
44489
44490         Add isnanf module.
44491         * lib/isnanf.m4: New file.
44492         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
44493         (gl_HAVE_ISNANF_IN_LIBM): New macro.
44494         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
44495         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
44496         * modules/isnanf: New file.
44497         * modules/isnanf-tests: New file.
44498         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
44499         files.
44500         * tests/test-isnanf-nolibm.c: factored most of its contents into
44501         new file tests/test-isnanf.h.
44502         * tests/test-isnanf.h: New file.
44503         * tests/test-isnanf.c: New file.
44504         * MODULES.html.sh: Mention new module.
44505         * doc/glibc-functions/isnanf.texi: Mention new module.
44506
44507 2008-07-10  Ben Pfaff  <blp@gnu.org>
44508
44509         Add isnand module.
44510         * lib/isnand.h: New file.
44511         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
44512         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
44513         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
44514         functionality also.
44515         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
44516         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
44517         (gl_HAVE_ISNAND_IN_LIBM): New macro.
44518         * modules/isnand: New file.
44519         * modules/isnand-tests: New file.
44520         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
44521         files.
44522         * tests/test-isnand-nolibm.c: factored most of its contents into
44523         new file tests/test-isnand.h.
44524         * tests/test-isnand.h: New file.
44525         * tests/test-isnand.c: New file.
44526         * MODULES.html.sh: Mention new module.
44527
44528 2008-07-10  Ben Pfaff  <blp@gnu.org>
44529
44530         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
44531         * lib/isnand.h: Rename lib/isnand-nolibm.h.
44532         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
44533         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
44534         * modules/isnanf-nolibm: Update references to renamed files.
44535         * modules/isnand-nolibm: Likewise.
44536         * modules/isnanf-nolibm-tests: Likewise.
44537         * modules/isnand-nolibm-tests: Likewise.
44538         * lib/frexp.c: Likewise.
44539         * lib/isfinite.c: Likewise.
44540         * lib/signbitd.c: Likewise.
44541         * lib/signbitf.c: Likewise.
44542         * lib/vasnprintf.c: Likewise.
44543         * tests/test-ceilf1.c: Likewise.
44544         * tests/test-ceilf2.c: Likewise.
44545         * tests/test-floorf1.c: Likewise.
44546         * tests/test-floorf2.c: Likewise.
44547         * tests/test-frexp.c: Likewise.
44548         * tests/test-round1.c: Likewise.
44549         * tests/test-round2.c: Likewise.
44550         * tests/test-roundf1.c: Likewise.
44551         * tests/test-strtod.c: Likewise.
44552         * tests/test-trunc1.c: Likewise.
44553         * tests/test-trunc2.c: Likewise.
44554         * tests/test-truncf1.c: Likewise.
44555         * tests/test-truncf2.c: Likewise.
44556         * NEWS: Mention the renamed header files.
44557
44558 2008-07-11  Jim Meyering  <meyering@redhat.com>
44559
44560         vc-list-files: make the last-resort awk code more portable
44561         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
44562         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
44563         does not support it.
44564
44565 2008-07-10  Eric Blake  <ebb9@byu.net>
44566
44567         Work with tar's bootstrap.
44568         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
44569         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
44570         an m4 comment.
44571
44572 2008-07-09  Jim Meyering  <meyering@redhat.com>
44573
44574         posix-shell.m4: fix typo that made this test malfunction
44575         * m4/posix-shell.m4: Remove capitalization in variable name.
44576
44577 2008-07-08  Bruno Haible  <bruno@clisp.org>
44578
44579         * m4/onceonly.m4: Update comments.
44580         Reported by Ben Pfaff <blp@cs.stanford.edu>.
44581
44582 2008-07-04  Jim Meyering  <meyering@redhat.com>
44583
44584         * users.txt: Add vc-dwim.
44585         (bison, coreutils): Use the gitweb URL.
44586
44587 2008-07-03  Jim Meyering  <meyering@redhat.com>
44588
44589         * users.txt: Add libffcall.  From Sam Steingold.
44590
44591 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
44592
44593         getdate.y: do not ignore TZ with relative day, month or year offset
44594         * lib/getdate.y (get_date): Move the tz-handling block to follow the
44595         relative-date-handling, since otherwise, the latter would clobber the
44596         sole output (an updated Start value) of the tz-handling block.
44597         * tests/test-getdate.c: Tests for the fix
44598
44599 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44600
44601         Recognize 'foo_LIBRARIES += libgnu.a'.
44602         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
44603         makefile snippet has already specified an installation location,
44604         also using '+='.
44605
44606 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
44607
44608         getdate.y: factor out common actions
44609         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
44610         Use them in place of open-coded actions.
44611
44612 2008-07-01  Simon Josefsson  <simon@josefsson.org>
44613
44614         Add self-test for getdate module.
44615         * modules/getdate-tests: New file.
44616         * tests/test-getdate.c: New file.
44617
44618 2008-06-29  Bruno Haible  <bruno@clisp.org>
44619
44620         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
44621         .gitignore.
44622         Reported by Sylvain Beucler <beuc@beuc.net>.
44623
44624 2008-06-29  Bruno Haible  <bruno@clisp.org>
44625
44626         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
44627         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
44628
44629 2008-06-29  Bruno Haible  <bruno@clisp.org>
44630
44631         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
44632         EXTRA_DIST.
44633         Reported by Sylvain Beucler <beuc@beuc.net>.
44634
44635 2008-06-26  Jim Meyering  <meyering@redhat.com>
44636
44637         make several modules depend on the "open" module
44638         This provides slightly increased consistency when opening-for-write
44639         the name of a non-directory spelled with a trailing slash.
44640         * modules/chdir-safer: Likewise.
44641         * modules/chown: Likewise.
44642         * modules/clean-temp: Likewise.
44643         * modules/copy-file: Likewise.
44644         * modules/fchdir: Likewise.
44645         * modules/fcntl-safer: Likewise.
44646         * modules/pipe: Likewise.
44647         * modules/utime: Likewise.
44648         Prompted by Eric Blake and Bruno Haible.
44649
44650 2008-06-24  Andreas Schwab  <schwab@suse.de>
44651
44652         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
44653         literals can be used as initializers for global variables.
44654
44655 2008-06-23  Eric Blake  <ebb9@byu.net>
44656
44657         Make gnulib-cache.m4 easier to diff.
44658         * gnulib-tool (func_import): Allow newlines when reading cached
44659         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
44660
44661 2008-06-23  Bruno Haible  <bruno@clisp.org>
44662
44663         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
44664         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
44665         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
44666         m4/signalblocking.m4.
44667         (gl_PREREQ_SIGACTION): Don't invoke it.
44668         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
44669         gl_PREREQ_SIG_HANDLER_H.
44670         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
44671         Don't check for sigaction here.
44672
44673 2008-06-23  Bruno Haible  <bruno@clisp.org>
44674
44675         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
44676         (install_handlers): Don't set the SA_RESETHAND flag.
44677
44678 2008-06-23  Bruno Haible  <bruno@clisp.org>
44679
44680         * m4/sigaction.m4: Comment fixes.
44681         * lib/signal.in.h: Likewise.
44682
44683 2008-06-23  Eric Blake  <ebb9@byu.net>
44684
44685         Fix typo.
44686         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
44687
44688         Avoid SA_ namespace.
44689         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
44690         Reported by Ralf Wildenhues.
44691
44692         Avoid test failure due to SA_RESTORER.
44693         * tests/test-sigaction.c (SA_MASK): New macro.
44694         (main): Avoid failing due to extension flags being set.
44695         Reported by Jim Meyering.
44696
44697         Revert use of sig-handler.h in sigprocmask.c.
44698         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
44699         it requires the existence of struct sigaction.
44700         * lib/sigprocmask.c (handler_t): Restore typedef.
44701         (rpl_signal, old_handlers): Use local type.
44702
44703 2008-06-22  Bruno Haible  <bruno@clisp.org>
44704
44705         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
44706         conditionally.
44707         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44708
44709 2008-06-22  Bruno Haible  <bruno@clisp.org>
44710
44711         * doc/posix-functions/siginterrupt.texi: Move note.
44712
44713         * lib/signal.in.h (SA_RESTART): New macro.
44714         * lib/sigaction.c: Update comment.
44715
44716         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
44717
44718         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
44719         (gl_PREREQ_SIGPROCMASK): Invoke it.
44720         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
44721
44722         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
44723
44724         * lib/sigprocmask.c: Update a comment.
44725
44726 2008-06-21  Eric Blake  <ebb9@byu.net>
44727
44728         Use sigaction module rather than signal().
44729         * modules/c-stack (Depends-on): Add sigaction.
44730         * modules/fatal-signal (Depends-on): Likewise.
44731         * modules/nanosleep (Depends-on): Likewise.
44732         * modules/sigprocmask (Files): Add sig-handler.h.
44733         * modules/sigaction (Files): Likewise.
44734         * lib/sig-handler.h (get_handler): New file, suggested by Paul
44735         Eggert.
44736         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
44737         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
44738         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
44739         (init_fatal_signals): Likewise.
44740         * lib/nanosleep.c (rpl_nanosleep): Likewise.
44741         (siginterrupt): Delete fallback.
44742         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
44743         instead.
44744         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
44745         siginterrupt.
44746
44747         New module sigaction, for mingw.
44748         * modules/sigaction: New module...
44749         * modules/sigaction-tests: ...and its test.
44750         * m4/sigaction.m4: New file.
44751         * lib/sigaction.c: Likewise.
44752         * tests/test-sigaction.c: Likewise.
44753         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
44754         * modules/signal (Makefile.am): Likewise.
44755         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
44756         needed.
44757         * doc/posix-headers/signal.texi (signal.h): Mention provided
44758         types.
44759         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
44760         that sigaction is preferable.
44761         * doc/posix-functions/sigaction.texi (sigaction): Mention new
44762         module.
44763         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
44764         sigaction.
44765
44766         Improve robustness of sigprocmask by overriding signal.
44767         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
44768         is in use.
44769         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
44770         (SIGKILL, SIGSTOP): Provide fallbacks.
44771         (rpl_signal): Implement.
44772         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
44773         signal can be called inside handlers.
44774
44775         Fix nanosleep module on mingw.
44776         * modules/nanosleep (Depends-on): Add sys_select.
44777         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
44778
44779         Fix licensing of sigprocmask.
44780         * modules/raise (License): Relicense as LGPL.
44781
44782 2008-06-21  Bruno Haible  <bruno@clisp.org>
44783
44784         * lib/propername.c (proper_name_utf8): Don't use the transliterated
44785         result if it contains question marks.
44786         Reported by Michael Geng <linux@michaelgeng.de>.
44787
44788 2008-06-19  Bruno Haible  <bruno@clisp.org>
44789
44790         Fix CVS-ism.
44791         * doc/gnulib.texi: Include updated-stamp.texi.
44792         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
44793         (updated-stamp.texi): New rule.
44794         (gnulib.info): Depend on it.
44795         * doc/.gitignore: Add updated-stamp.texi.
44796         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
44797
44798 2008-06-19  Bruno Haible  <bruno@clisp.org>
44799
44800         * doc/Makefile (gnulib.info): Update and simplify dependencies.
44801         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
44802
44803 2008-06-19  Eric Blake  <ebb9@byu.net>
44804
44805         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
44806         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
44807         Reported by Stepan Kasal.
44808
44809 2008-06-18  Bruno Haible  <bruno@clisp.org>
44810
44811         * lib/fatal-signal.c (init_fatal_signals): Add comment.
44812         Reported by Eric Blake.
44813
44814 2008-06-18  Eric Blake  <ebb9@byu.net>
44815
44816         Work around cygwin 1.5.25 strsignal bug.
44817         * tests/test-strsignal.c: Allow for const char *.
44818         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
44819
44820 2008-06-18  Simon Josefsson  <simon@josefsson.org>
44821
44822         * users.txt: Update URL to article and add author/date
44823         information.
44824
44825 2008-06-17  Bruno Haible  <bruno@clisp.org>
44826
44827         New macro gl_DISABLE_THREADS.
44828         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
44829         if the user did not pass --enable-threads or --disable-threads option.
44830         (gl_DISABLE_THREADS): New macro.
44831         Reported by Eric Blake <ebb9@byu.net>.
44832
44833 2008-06-17  Bruno Haible  <bruno@clisp.org>
44834
44835         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
44836         when the macro ignores it.
44837         Based on a patch by Eric Blake <ebb9@byu.net>.
44838
44839 2008-06-17  Bruno Haible  <bruno@clisp.org>
44840
44841         * modules/tls (License): Change to LGPLv2+.
44842         Reported by Eric Blake.
44843
44844 2008-06-17  Eric Blake  <ebb9@byu.net>
44845
44846         Simplify c-stack prerequisites.
44847         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
44848         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
44849         no longer requires <ucontext.h> to exist.  Optimize setrlimit
44850         check.
44851         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
44852         <sys/resource.h>.
44853
44854         Move c-stack test into testsuite.
44855         * modules/c-stack-tests: New file.
44856         * lib/c-stack.c [DEBUG]: Move test program...
44857         * tests/test-c-stack.c: ...into this new file.  Skip rather than
44858         fail test if sigaltstack is lacking.
44859         * tests/test-c-stack.sh: New driver file.
44860
44861 2008-06-16  Eric Blake  <ebb9@byu.net>
44862
44863         Use raise module consistently.
44864         * modules/fatal-signal (Depends-on): Add raise.
44865         * modules/sigprocmask (Depends-on): Likewise.
44866         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
44867         * lib/sigprocmask.c (sigprocmask): Likewise.
44868         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
44869         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
44870
44871         Fix compliance bug in sigpending.
44872         * lib/sigprocmask.c (sigpending): Return pending array via
44873         parameter, not return value.
44874
44875 2008-06-14  Eric Blake  <ebb9@byu.net>
44876
44877         Improve obstack-printf test code.
44878         * tests/test-obstack-printf.c (test_function): Fix comment, and
44879         simplify usage of obstack_* in macros.  Add a test for coverage.
44880         Reported by Bruno Haible.
44881
44882 2008-06-14  Bruno Haible  <bruno@clisp.org>
44883
44884         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
44885         array size as a constant, not as a const variable.
44886         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
44887         AC_USE_SYSTEM_EXTENSIONS.
44888         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
44889         Test whether the obstack_printf function actually exists.
44890         * modules/obstack-printf (Depends-on): Add extensions.
44891         (Include): Remove obstack.h.
44892         * modules/obstack-printf-posix (Depends-on): Add extensions.
44893         (Include): Remove obstack.h.
44894
44895 2008-06-13  Eric Blake  <ebb9@byu.net>
44896
44897         Add obstack-printf and obstack-printf-posix modules.
44898         * modules/obstack-printf: New file.
44899         * modules/obstack-printf-posix: Likewise.
44900         * MODULES.html.sh (Misc): Mention them.
44901         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
44902         Likewise.
44903         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
44904         Likewise.
44905         * modules/stdio (Makefile.am): Accomodate new modules.
44906         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
44907         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
44908         Declare.
44909         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
44910         functions.
44911         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
44912         (gl_REPLACE_OBSTACK_PRINTF): New macros
44913         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
44914         * tests/test-obstack-printf.c: New file.
44915         * modules/obstack-printf-tests: Likewise.
44916         * modules/obstack-printf-posix-tests: Likewise.
44917
44918 2008-06-11  Bruno Haible  <bruno@clisp.org>
44919
44920         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
44921         * lib/open.c: Include errno.h.
44922         (open): Fail when attempting to write to a file that has a trailing
44923         slash.
44924         * tests/test-open.c (main): Test against trailing slash bug.
44925         * doc/posix-functions/open.texi: Mention the trailing slash bug.
44926
44927 2008-06-10  Bruno Haible  <bruno@clisp.org>
44928
44929         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
44930         for $? to work inside the trap command, with various /bin/sh-s.
44931         * tests/test-vc-list-files-cvs.sh: Likewise.
44932
44933 2008-06-10  Bruno Haible  <bruno@clisp.org>
44934
44935         * lib/acl-internal.h: Don't include gettext.h here.
44936         * lib/set-mode-acl.c: Include gettext.h here.
44937         * lib/copy-acl.c: Likewise.
44938
44939 2008-06-10  Bruno Haible  <bruno@clisp.org>
44940
44941         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
44942         * lib/wait-process.c (wait_subprocess): Likewise.
44943         * lib/execute.h (execute): Add termsigp argument.
44944         * lib/execute.c (execute): Likewise.
44945         * lib/csharpcomp.c (compile_csharp_using_pnet,
44946         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
44947         * lib/csharpexec.c (execute_csharp_using_pnet,
44948         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
44949         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
44950         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
44951         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
44952         is_jikes_present): Update.
44953         * lib/javaexec.c (execute_java_class): Update.
44954         * lib/javaversion.c (execute_and_read_line): Update.
44955         * NEWS: Document the changes.
44956         Reported by Eric Blake.
44957
44958 2008-06-10  Eric Blake  <ebb9@byu.net>
44959
44960         Add missing include.
44961         * tests/test-strstr.c (includes): Add <signal.h>.
44962         * tests/test-strcasestr.c (includes): Likewise.
44963         * tests/test-memmem.c (includes): Likewise.
44964
44965 2008-06-10  Bruno Haible  <bruno@clisp.org>
44966
44967         * lib/wait-process.c (wait_subprocess): Add an assertion.
44968
44969 2008-06-10  Bruno Haible  <bruno@clisp.org>
44970
44971         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
44972
44973 2008-06-10  Bruno Haible  <bruno@clisp.org>
44974
44975         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
44976         using alarm().
44977         * tests/test-strcasestr.c (main): Likewise.
44978         * tests/test-strstr.c (main): Likewise.
44979
44980 2008-06-09  Bruno Haible  <bruno@clisp.org>
44981
44982         Work around the Solaris 10 ACE ACLs ABI change.
44983         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
44984         declare if ACL_NO_TRIVIAL is present.
44985         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
44986         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
44987         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
44988         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
44989         define if ACL_NO_TRIVIAL is present.
44990         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
44991         and use the current ABI.
44992         (file_has_acl): Use same #if condition as elsewhere.
44993         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
44994         in use, and use the current ABI.
44995         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
44996         Reported by Jim Meyering.
44997
44998 2008-06-09  Eric Blake  <ebb9@byu.net>
44999
45000         Work around environments that (stupidly) ignore SIGALRM.
45001         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
45002         before using alarm().
45003         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
45004         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
45005         Reported by Ian Beckwith <ianb@erislabs.net>.
45006
45007         Produce autobuild blurb earlier in log.
45008         * modules/autobuild (configure.ac-early): Move AB_INIT here.
45009
45010 2008-06-09  Jim Meyering  <meyering@redhat.com>
45011         and OndÅ™ej Vašík  <ovasik@redhat.com>
45012
45013         utimens.c: correct kernel bug work-around
45014         OndÅ™ej Vašík found that the invalid return value of 280 indicates
45015         failure, not success, and the kernel bug we're trying to work
45016         around affects not just the utimensat call, but also the fallback
45017         futimens call.
45018         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
45019         not success.
45020         [HAVE_FUTIMENS]: Use the same work-around, here.
45021
45022 2008-06-09  Jim Meyering  <meyering@redhat.com>
45023
45024         add more guards around definition of ACE_-related code
45025         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
45026         ALLOW and ACE_OWNER are also defined.
45027
45028 2008-06-08  Bruno Haible  <bruno@clisp.org>
45029
45030         * lib/acl-internal.h: Add me as co-author.
45031         * lib/file-has-acl.c: Likewise.
45032         * lib/set-mode-acl.c: Likewise.
45033         * lib/copy-acl.c: Likewise.
45034
45035 2008-06-08  Bruno Haible  <bruno@clisp.org>
45036
45037         Add support for AIX ACLs.
45038         * lib/acl-internal.h (acl_nontrivial): New declaration.
45039         * lib/file-has-acl.c (acl_nontrivial): New function.
45040         (file_has_acl): Add implementation using AIX 4 ACL API.
45041         * lib/set-mode-acl.c (qset_acl): Likewise.
45042         * lib/copy-acl.c (qcopy_acl): Likewise.
45043
45044 2008-06-08  Bruno Haible  <bruno@clisp.org>
45045
45046         Add support for HP-UX ACLs.
45047         * lib/acl-internal.h (acl_nontrivial): New declaration.
45048         * lib/file-has-acl.c (acl_nontrivial): New function.
45049         (file_has_acl): Add implementation using HP-UX 11 ACL API.
45050         * lib/set-mode-acl.c (qset_acl): Likewise.
45051         * lib/copy-acl.c (qcopy_acl): Likewise.
45052
45053 2008-06-08  Bruno Haible  <bruno@clisp.org>
45054
45055         Add support for Cygwin ACLs.
45056         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
45057         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
45058         the chmod_or_fchmod call.
45059         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
45060
45061 2008-06-08  Bruno Haible  <bruno@clisp.org>
45062
45063         Fix bug with setuid modes in Solaris 10+ code.
45064         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
45065         succeeded, when the mode contains some special bits.
45066
45067 2008-06-08  Bruno Haible  <bruno@clisp.org>
45068
45069         Add support for Solaris 7..10 ACLs.
45070         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
45071         declarations.
45072         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
45073         functions.
45074         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
45075         * lib/set-mode-acl.c (qset_acl): Likewise.
45076         * lib/copy-acl.c (qcopy_acl): Likewise.
45077
45078 2008-06-08  Bruno Haible  <bruno@clisp.org>
45079
45080         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
45081         declaration.
45082         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
45083         (acl_access_nontrivial): Remove MacOS X case.
45084         (file_has_acl): Use acl_extended_nontrivial.
45085         * lib/copy-acl.c (qcopy_acl): Likewise.
45086
45087 2008-06-08  Bruno Haible  <bruno@clisp.org>
45088
45089         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
45090
45091 2008-06-08  Jim Meyering  <meyering@redhat.com>
45092
45093         * modules/acl (Maintainer): Add Bruno Haible.
45094
45095 2008-06-07  Bruno Haible  <bruno@clisp.org>
45096
45097         Improve support for Tru64 ACLs.
45098         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
45099         ACL on OSF/1.
45100
45101 2008-06-07  Bruno Haible  <bruno@clisp.org>
45102
45103         Add support for MacOS X ACLs.
45104         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
45105         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
45106         * lib/set-mode-acl.c (qset_acl): Likewise.
45107         * lib/copy-acl.c (qcopy_acl): Likewise.
45108
45109 2008-06-07  Bruno Haible  <bruno@clisp.org>
45110
45111         Fix memory leak introduced on 2008-05-22.
45112         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
45113         use.
45114
45115 2008-06-07  Bruno Haible  <bruno@clisp.org>
45116
45117         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
45118         to construct an empty ACL.
45119
45120 2008-06-07  Bruno Haible  <bruno@clisp.org>
45121
45122         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
45123         precisely.
45124         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
45125
45126 2008-06-07  Bruno Haible  <bruno@clisp.org>
45127
45128         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
45129         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
45130
45131 2008-06-07  Bruno Haible  <bruno@clisp.org>
45132
45133         * doc/posix-functions/_setjmp.texi: Explain the use of this function
45134         regardless of POSIX.
45135         * doc/posix-functions/_longjmp.texi: Likewise.
45136         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
45137         SystemV platform in this case.
45138
45139 2008-06-06  Eric Blake  <ebb9@byu.net>
45140
45141         Document abort() bugs.
45142         * doc/posix-functions/abort.texi (abort): Mention anomalies.
45143
45144         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
45145         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
45146         sigsetjmp.
45147         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
45148         siglongjmp, but only as a macro.
45149         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
45150         is obsolete.
45151         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
45152
45153         Tweak documentation to cover cygwin argz bugs.
45154         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
45155         argz bug fix; no code change needed since no cygwin releases
45156         occurred between the last fix and the bug being tested.
45157         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
45158         module and recently fixed cygwin bugs.
45159         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
45160         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
45161         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
45162         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
45163         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
45164         Likewise.
45165         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
45166         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
45167         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
45168         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
45169         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
45170         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
45171         Likewise.
45172
45173         Avoid gcc warning on cygwin.
45174         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
45175         !ACL_NO_TRIVIAL]: Avoid unused variable.
45176
45177 2008-06-05  Eric Blake  <ebb9@byu.net>
45178
45179         Be tolerant of UNKNOWN version in gnulib-tool test dir.
45180         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
45181         git-version-gen fails to come up with a version.
45182         Reported by Simon Josefsson.
45183
45184 2008-06-05  Jim Meyering  <meyering@redhat.com>
45185             Paul Eggert  <eggert@cs.ucla.edu>
45186
45187         utimens.c: work around a probable Linux kernel bug
45188         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
45189         appears to be a kernel bug that causes utimensat to return 280
45190         instead of 0, indicating success.
45191
45192 2008-06-04  Bruno Haible  <bruno@clisp.org>
45193
45194         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
45195         2008-06-01 commit.
45196
45197 2008-06-04  Bruno Haible  <bruno@clisp.org>
45198
45199         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
45200         * lib/file-has-acl.c (acl_access_nontrivial): New function.
45201         (file_has_acl): Use it. Save errno afterwards.
45202         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
45203
45204 2008-06-03  Bruno Haible  <bruno@clisp.org>
45205
45206         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
45207         draft code. Simplify #ifs.
45208         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
45209         Put Solaris code after POSIX-draft code. Fix comments regarding
45210         Solaris 10, HP-UX. Mention Cygwin.
45211         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
45212
45213 2008-06-03  Eric Blake  <ebb9@byu.net>
45214
45215         Provide fallback for older kernels.
45216         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
45217         Provide runtime fallback if kernel lacks support.
45218         Reported by Mike Frysinger.
45219
45220 2008-06-02  Bruno Haible  <bruno@clisp.org>
45221
45222         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
45223         it exists.
45224
45225 2008-06-02  Bruno Haible  <bruno@clisp.org>
45226
45227         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
45228         * lib/copy-acl.c (qcopy_acl): Update comment.
45229
45230 2008-06-02  Bruno Haible  <bruno@clisp.org>
45231
45232         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
45233         like ACL APIs.
45234
45235 2008-06-02  Bruno Haible  <bruno@clisp.org>
45236
45237         * tests/test-file-has-acl.sh: Use different code for Cygwin.
45238         * tests/test-set-mode-acl.sh: Likewise.
45239         * tests/test-copy-acl.sh: Likewise.
45240         * tests/test-copy-file.sh: Likewise.
45241
45242 2008-06-02  Bruno Haible  <bruno@clisp.org>
45243
45244         * tests/test-file-has-acl.sh: Remove unused code.
45245
45246 2008-06-01  Bruno Haible  <bruno@clisp.org>
45247
45248         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
45249         (copy_acl): Just a wrapper around qcopy_acl that emits the error
45250         messages.
45251         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
45252
45253 2008-06-01  Bruno Haible  <bruno@clisp.org>
45254
45255         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
45256         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
45257         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
45258         APIs.
45259         * modules/acl-tests (configure.ac): Remove tests now contained in
45260         m4/acl.m4.
45261
45262 2008-06-02  Jim Meyering  <meyering@redhat.com>
45263
45264         announce-gen: use a better key-server host name
45265         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
45266         it may be more consistently reliable.  Suggested by Werner Koch
45267         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
45268
45269 2008-06-01  Bruno Haible  <bruno@clisp.org>
45270
45271         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
45272         Reported by Voroskoi Andras <voroskoi@gmail.com>.
45273
45274 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
45275
45276         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
45277
45278 2008-06-01  Bruno Haible  <bruno@clisp.org>
45279
45280         New ACL tests.
45281         * tests/test-file-has-acl.sh: New file.
45282         * tests/test-file-has-acl.c: New file.
45283         * tests/test-set-mode-acl.sh: New file.
45284         * tests/test-set-mode-acl.c: New file.
45285         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
45286         * tests/test-copy-acl.c: New file.
45287         * modules/acl-tests: New file, based on modules/copy-file-tests.
45288         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
45289         (Depends-on): Add acl-tests.
45290         (configure.ac): Remove checks.
45291         (Makefile.am): Don't create test-sameacls program here any more.
45292
45293 2008-06-01  Bruno Haible  <bruno@clisp.org>
45294
45295         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
45296         * tests/test-sameacls.c: Include progname.h.
45297         (main): Invoke set_program_name. Portability fixes for MacOS X,
45298         Solaris, HP-UX.
45299
45300 2008-06-01  Bruno Haible  <bruno@clisp.org>
45301
45302         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
45303         function.
45304         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
45305
45306 2008-06-01  Bruno Haible  <bruno@clisp.org>
45307
45308         * modules/rpmatch (Depends-on): Add strdup.
45309
45310 2008-06-01  Bruno Haible  <bruno@clisp.org>
45311
45312         * lib/pipe.c: Include unistd-safer.h.
45313         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
45314         * modules/pipe (Depends-on): Add unistd-safer.
45315
45316 2008-05-30  Simon Josefsson  <simon@josefsson.org>
45317
45318         * modules/autobuild (configure.ac): Call AB_INIT.
45319
45320 2008-05-30  Simon Josefsson  <simon@josefsson.org>
45321
45322         * tests/test-getaddrinfo.c: Don't print debug messages by default.
45323         Suggested by Bruno Haible <bruno@clisp.org>.
45324
45325 2008-05-30  Simon Josefsson  <simon@josefsson.org>
45326
45327         * tests/test-base64.c: Cast size_t to unsigned long when invoking
45328         printf.  Use %lu instead of %d.  Reported by Bruno Haible
45329         <bruno@clisp.org>.
45330
45331 2008-05-29  Eric Blake  <ebb9@byu.net>
45332
45333         Prefer new POSIX 200x interfaces over futimesat.
45334         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
45335         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
45336         when available.
45337         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
45338
45339 2008-05-28  Bruno Haible  <bruno@clisp.org>
45340
45341         * modules/stpcpy (License): Change to LGPLv2+.
45342         Requested by David Lutterkort <dlutter@redhat.com>.
45343
45344 2008-05-27  Bruno Haible  <bruno@clisp.org>
45345
45346         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
45347         current mingw.
45348         Reported by Jose E. Marchesi <jemarch@gnu.org>.
45349
45350 2008-05-27  Bruno Haible  <bruno@clisp.org>
45351
45352         * modules/iconv_open (Link): New section, from module 'iconv'.
45353         * modules/striconv (Link): Likewise.
45354         * modules/striconveh (Link): Likewise.
45355         * modules/xstriconv (Link): Likewise.
45356         * modules/unicodeio (Link): Likewise.
45357         * modules/propername (Link): Likewise.
45358         Reported by Jim Meyering.
45359
45360 2008-05-26  Jim Meyering  <meyering@redhat.com>
45361
45362         sha256: do not artificially restrict buffer length to be < 2^32
45363         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
45364         uint32_t to size_t.
45365         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
45366         to match.
45367
45368         avoid unaligned access errors, e.g., on sparc
45369         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
45370         direct access through a possibly-unaligned uint64* pointer.
45371         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
45372         direct access through a possibly-unaligned uint32* pointer.
45373         Prompted by this patch from Tom "spot" Callaway:
45374         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
45375
45376         sha512.c: fix typo in comment
45377         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
45378
45379 2008-05-25  Bruno Haible  <bruno@clisp.org>
45380
45381         * lib/set-mode-acl.c: Renamed from lib/acl.c.
45382         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
45383         (Makefile.am): Update lib_SOURCES.
45384
45385 2008-05-25  Bruno Haible  <bruno@clisp.org>
45386
45387         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
45388
45389 2008-05-25  Jim Meyering  <meyering@redhat.com>
45390
45391         useless-if-before-free: freed expr may have white-space differences
45392         * build-aux/useless-if-before-free: Recognize cases in which the
45393         freed expression differs from the tested one in embedded white
45394         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
45395         $1 was used, so we can't make any regexp shy.  Improved tests now
45396         detect this.
45397
45398         useless-if-before-free: accept white space in the expression.
45399         * build-aux/useless-if-before-free: For now, any white space
45400         in the expression must be identical in the free argument.
45401
45402         useless-if-before-free: efficiency tweak
45403         * build-aux/useless-if-before-free: Make the expression-matching
45404         regexp "shy".
45405         Make the *outer* regexp shy, not the expr-matching one.
45406
45407         update code-in-comment to accept cast of free arg
45408         * build-aux/useless-if-before-free: Update regexp.
45409
45410 2008-05-25  Bruno Haible  <bruno@clisp.org>
45411
45412         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
45413         * modules/copy-file-tests (Files, Makefile.am): Update.
45414         * tests/test-copy-file.c (func_test_copy): Update.
45415
45416 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
45417
45418         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
45419
45420 2008-05-23  Bruno Haible  <bruno@clisp.org>
45421
45422         Improve support for ACLs on OSF/1.
45423         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
45424         Remove fallback for unknown flavors of ACLs.
45425
45426 2008-05-22  Bruno Haible  <bruno@clisp.org>
45427
45428         Add support for ACLs on OSF/1.
45429         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
45430         replacements.
45431         (acl_free_text): New macro fallback.
45432         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
45433         acl_free.
45434         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
45435         acl_free_text function. Require AC_C_INLINE.
45436
45437 2008-05-22  Bruno Haible  <bruno@clisp.org>
45438
45439         Make copy_acl work on MacOS X 10.5.
45440         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
45441         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
45442         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
45443         If MODE_INSIDE_ACL, don't assume that every system has the same text
45444         representation for ACLs as FreeBSD.
45445         * lib/copy-acl.c (copy_acl): Add support for platforms with
45446         !MODE_INSIDE_ACL.
45447         * lib/file-has-acl.c (file_has_acl): Likewise.
45448         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
45449         FreeBSD, MacOS X, or IRIX, respectively.
45450
45451 2008-05-22  Bruno Haible  <bruno@clisp.org>
45452
45453         * lib/acl.h: Don't include <sys/acl.h>.
45454         (GETACLCNT): Move fallback to lib/acl-internal.h.
45455         * lib/acl-internal.h: Include <sys/acl.h> here.
45456         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
45457
45458 2008-05-22  Bruno Haible  <bruno@clisp.org>
45459
45460         Split off copy_acl function to separate file.
45461         * lib/copy-acl.c: New file, extracted from lib/acl.c.
45462         * lib/acl.c (copy_acl): Moved function to separate file.
45463         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
45464         * modules/acl (Files): Add lib/copy-acl.c.
45465         (Makefiles.am): Augment lib_SOURCES.
45466
45467 2008-05-22  Bruno Haible  <bruno@clisp.org>
45468
45469         * modules/copy-file-tests: New file.
45470         * tests/test-copy-file.sh: New file.
45471         * tests/test-copy-file.c: New file.
45472         * tests/test-copy-file-sameacls.c: New file.
45473
45474 2008-05-22  Eric Blake  <ebb9@byu.net>
45475
45476         Avoid gcc warning.
45477         * tests/test-memcmp.c (main): Pass NULL indirectly.
45478
45479 2008-05-21  Bruno Haible  <bruno@clisp.org>
45480
45481         Add reference doc about ACLs.
45482         * doc/acl-resources.txt: New file.
45483         * doc/acl-cygwin.txt: New file.
45484
45485 2008-05-21  Bruno Haible  <bruno@clisp.org>
45486
45487         Avoid one more warning from gcc.
45488         * lib/vasnprintf.c (IF_LINT): Update comments.
45489         (VASNPRINTF): Use it also for the 'prefix' array initializer.
45490
45491 2008-05-21  Jim Meyering  <meyering@redhat.com>
45492
45493         avoid a warning from gcc
45494         * lib/vasnprintf.c (IF_LINT): Define.
45495         (scale10_round_decimal_long_double):
45496         Use it to avoid a "may be used uninitialized" warning.
45497         (scale10_round_decimal_double): Likewise.
45498
45499 2008-05-21  Simon Josefsson  <simon@josefsson.org>
45500
45501         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
45502         declared.
45503
45504 2008-05-20  Bruno Haible  <bruno@clisp.org>
45505
45506         * tests/test-memcmp.c (main): Test also the sign of the result. Test
45507         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
45508
45509 2008-05-20  Simon Josefsson  <simon@josefsson.org>
45510
45511         * modules/memcmp-tests: New file.
45512         * tests/test-memcmp.c: New file.
45513
45514 2008-05-19  Bruno Haible  <bruno@clisp.org>
45515
45516         * modules/propername (Notice, configure.ac): Put quoted "..." into
45517         --keyword option.
45518         * lib/propername.h: Update comments accordingly.
45519         Reported by Eric Blake.
45520
45521 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
45522
45523         * modules/getpass-gnu (Depends-on): Add fseeko.
45524
45525 2008-05-19  Simon Josefsson  <simon@josefsson.org>
45526
45527         * modules/base64-tests: New file.
45528
45529 2008-05-19  Bo Borgerson <gigabo@gmail.com>
45530
45531         * lib/base64.c (base64_decode_ctx): If a decode context structure
45532         was passed in use it to ignore newlines.  If a context structure
45533         was _not_ passed in, continue to treat newlines as garbage (this
45534         is the historical behavior).  Formerly base64_decode.
45535         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
45536         takes a decode context structure.
45537         * lib/base64.h (base64_decode): Macro for four-argument calls.
45538         (base64_decode_alloc): Likewise.
45539         * lib/base64.c (base64_decode_ctx): If a decode context structure
45540         was passed in use it to ignore newlines.  If a context structure
45541         was _not_ passed in, continue to treat newlines as garbage (this
45542         is the historical behavior).  Formerly base64_decode.
45543         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
45544         takes a decode context structure.
45545         * lib/base64.h (base64_decode): Macro for four-argument calls.
45546         (base64_decode_alloc): Likewise.
45547
45548 2008-05-19  Jim Meyering  <meyering@redhat.com>
45549
45550         avoid a warning from gcc
45551         * lib/trim.c (IF_LINT): Define.
45552         (trim2): Use it to avoid a "may be used uninitialized" warning.
45553
45554         Fix doc typo.
45555         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
45556
45557 2008-05-19  Bruno Haible  <bruno@clisp.org>
45558
45559         * doc/glibc-functions/getpass.texi: Document limits of other
45560         implementations.
45561
45562 2008-05-19  Simon Josefsson  <simon@josefsson.org>
45563             Bruno Haible <bruno@clisp.org>
45564
45565         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
45566
45567 2008-05-18  Bruno Haible  <bruno@clisp.org>
45568
45569         * modules/propername: New file, from GNU gettext.
45570         * lib/propername.h: New file, from GNU gettext.
45571         * lib/propername.c: New file, from GNU gettext.
45572         * MODULES.html.sh (Internationalization functions): Add propername.
45573
45574 2008-05-16  Jim Meyering  <meyering@redhat.com>
45575             Bruno Haible  <bruno@clisp.org>
45576
45577         Avoid some warnings from "gcc -Wshadow".
45578         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
45579
45580 2008-05-15  Eric Blake  <ebb9@byu.net>
45581
45582         Extend previous patch to cygwin 1.7.0.
45583         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
45584         fast implementation in cygwin >= 1.7.0.
45585         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
45586         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
45587
45588 2008-05-15  Bruno Haible  <bruno@clisp.org>
45589
45590         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
45591         implementation in glibc >= 2.9.
45592         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
45593         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
45594
45595 2008-05-15  Bruno Haible  <bruno@clisp.org>
45596
45597         * MODULES.html.sh (Internationalization functions): Remove linebreak.
45598         (Unicode string functions): Add unilbrk/*.
45599         Reported by Karl Berry.
45600
45601 2008-05-15  Eric Blake  <ebb9@byu.net>
45602
45603         Fix violation of <stdbool.h> replacement in regex.
45604         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
45605         * lib/regexec.c (re_search_internal): Likewise.
45606         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
45607
45608 2008-05-15  Jim Meyering  <meyering@redhat.com>
45609
45610         avoid distracting test output when git or cvs is not found
45611         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
45612         * tests/test-vc-list-files-git.sh: Likewise.
45613
45614 2008-05-15  Eric Blake  <ebb9@byu.net>
45615
45616         Glibc finally accepted the memmem speedup code, bugzilla #5514.
45617         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
45618         glibc version.
45619         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
45620         * doc/posix-functions/strstr.texi (strstr): Likewise.
45621         * lib/str-two-way.h (MAX): Sychronize with glibc.
45622
45623 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
45624
45625         * lib/regcomp.c (optimize_utf8): Add a note on why we test
45626         opr.ctx_type.
45627         (calc_first): Initialize constraint field.
45628         (duplicate_node_closure): Use it instead of special casing ANCHORS.
45629         Fix grammar.
45630         (duplicate_node): Merge constraint field for all node types.
45631         (calc_eclosure_iter): Look at constraint field for all node types.
45632         * lib/regex_internal.c (create_cd_newstate): Don't look at
45633         opr.ctx_type.
45634
45635 2008-05-14  Bruno Haible  <bruno@clisp.org>
45636
45637         Help GCC to do better code generation.
45638         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
45639         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
45640         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
45641         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
45642         Declare with attribute 'malloc' if supported.
45643
45644 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
45645
45646         use "echo STR|wc -c" rather than unportable "expr length STR"
45647         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
45648         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
45649
45650 2008-05-14  Jim Meyering  <meyering@redhat.com>
45651
45652         use dd ibs=$n count=1 ... rather than less-portable head -c$n
45653         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
45654         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
45655         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
45656         via Collin Lasse.
45657
45658 2008-05-14  Eric Blake  <ebb9@byu.net>
45659
45660         Avoid quadratic growth in gl_LIBSOURCES.
45661         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
45662         Suggested by Bruno Haible.
45663
45664         Test xmemdup0.
45665         * modules/xmemdup0-tests: New file.
45666         * tests/test-xmemdup0.c: Likewise.
45667
45668 2008-05-13  Eric Blake  <ebb9@byu.net>
45669
45670         Split xmemdup0 into its own module.
45671         * modules/xmemdup0: New file.
45672         * lib/xmemdup0.h: Likewise.
45673         * lib/xmemdup0.c: Likewise.
45674         * MODULES.html.sh (Memory management functions): Add xmemdup0.
45675         * lib/xalloc.h (xmemdup0): Remove.
45676         * lib/xmalloc.c (xmemdup0): Likewise.
45677
45678 2008-05-13  Eric Blake  <ebb9@byu.net>
45679             Bruno Haible  <bruno@clisp.org>
45680
45681         Reduce number of forks required during autoconf.
45682         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
45683         and gl_LIBSOURCES_DIR.
45684         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
45685         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
45686         m4_syscmd per file.
45687         <m4_foreach_w>: Move...
45688         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
45689
45690 2008-05-13  Eric Blake  <ebb9@byu.net>
45691
45692         * gnulib-tool: Fix various comment typos.
45693
45694 2008-05-12  Bruno Haible  <bruno@clisp.org>
45695
45696         Tailor the linebreaking algorithm.
45697         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
45698
45699 2008-05-12  Bruno Haible  <bruno@clisp.org>
45700
45701         Update to Unicode 5.0.0.
45702         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
45703         LBP_JV, LBP_JT. Redistribute values.
45704         (unilbrk_table): Change size.
45705         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
45706         Unicode TR#14 rev. 22.
45707         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
45708         LBP_JV, LBP_JT. Redistribute values.
45709         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
45710         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
45711         Update.
45712         * lib/unilbrk/lbrkprop1.h: Regenerated.
45713         * lib/unilbrk/lbrkprop2.h: Regenerated.
45714         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
45715         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
45716         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
45717         Likewise.
45718         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
45719         Likewise.
45720         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
45721         result.
45722         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
45723         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
45724         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
45725         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
45726         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
45727         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
45728
45729 2008-05-11  Bruno Haible  <bruno@clisp.org>
45730
45731         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
45732
45733 2008-05-11  Bruno Haible  <bruno@clisp.org>
45734
45735         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
45736         * modules/unilbrk/gen-lbrk: New file.
45737
45738 2008-05-11  Bruno Haible  <bruno@clisp.org>
45739
45740         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
45741         * m4/sha512.m4 (gl_SHA512): Likewise.
45742
45743 2008-05-11  Jim Meyering  <meyering@redhat.com>
45744
45745         New modules: crypto/sha256, crypto/sha512 (from coreutils)
45746         * modules/crypto/sha256: New file.
45747         * modules/crypto/sha512: Likewise.
45748         * lib/sha256.c: Likewise.
45749         * lib/sha256.h: Likewise.
45750         * lib/sha512.c: Likewise.
45751         * lib/sha512.h: Likewise.
45752         * lib/u64.h: Likewise.
45753         * m4/sha256.m4: Likewise.
45754         * m4/sha512.m4: Likewise.
45755         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
45756
45757 2008-05-10  Bruno Haible  <bruno@clisp.org>
45758
45759         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
45760         (Input/Output <stdio.h>): Add xprintf.
45761         (Signal handling <signal.h>): Add strsignal.
45762         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
45763         (Core language properties): Add func.
45764         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
45765         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
45766         strings.
45767         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
45768         (Input/output): New section.
45769         (File system functions): Add openat-die, stat-macros.
45770         (Networking functions): Add sockets.
45771         (Unicode string functions): Add unictype/*.
45772         (Support for building libraries and executables): Add gperf.
45773         (Support for building documentation): Add agpl-3.0.
45774         (Misc): Add nocrash.
45775
45776 2008-05-10  Bruno Haible  <bruno@clisp.org>
45777
45778         * modules/unictype/gen-ctype: New file.
45779
45780 2008-05-10  Jim Meyering  <meyering@redhat.com>
45781
45782         Make chdir-safer.c more efficient on a system with no symlinks.
45783         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
45784         also if ELOOP is zero.  Suggested by Bruno Haible.
45785
45786         Make chdir-safer.c slightly safer.
45787         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
45788         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
45789
45790         Avoid compile failure on systems without ELOOP (like mingw).
45791         * lib/chdir-safer.c (ELOOP): Define if not already defined.
45792         Reported by Bruno Haible.
45793
45794 2008-05-10  Bruno Haible  <bruno@clisp.org>
45795
45796         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
45797         (is_utf8_encoding): Use a case-insensitive comparison.
45798         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
45799         streq.
45800
45801 2008-05-10  Bruno Haible  <bruno@clisp.org>
45802
45803         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
45804         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
45805         * lib/unilbrk/ulc-common.h (iconv_string_length,
45806         iconv_string_keeping_offsets): Remove declarations.
45807         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
45808         Don't include <iconv.h>, streq.h, xsize.h.
45809         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
45810         conversion.
45811         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
45812         <iconv.h>, streq.h, xsize.h.
45813         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
45814         conversion.
45815         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
45816         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
45817         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
45818         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
45819
45820 2008-05-10  Bruno Haible  <bruno@clisp.org>
45821
45822         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
45823         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
45824
45825         * modules/unilbrk/u32-width-linebreaks-tests: New file.
45826         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
45827
45828         * modules/unilbrk/u16-width-linebreaks-tests: New file.
45829         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
45830
45831         * modules/unilbrk/u8-width-linebreaks-tests: New file.
45832         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
45833
45834         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
45835         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
45836
45837         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
45838         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
45839
45840         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
45841         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
45842
45843         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
45844         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
45845
45846 2008-05-10  Bruno Haible  <bruno@clisp.org>
45847
45848         Split up 'linebreak' module.
45849         * lib/unilbrk.h: New file, based on lib/linebreak.h.
45850         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
45851         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
45852         modifications.
45853         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
45854         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
45855         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
45856         lib/linebreak.c.
45857         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
45858         lib/linebreak.c.
45859         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
45860         lib/linebreak.c.
45861         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
45862         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
45863         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
45864         lib/linebreak.c.
45865         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
45866         lib/linebreak.c.
45867         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
45868         lib/linebreak.c.
45869         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
45870         lib/linebreak.c.
45871         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
45872         lib/linebreak.c.
45873         * modules/unilbrk/base: New file.
45874         * modules/unilbrk/tables: New file.
45875         * modules/unilbrk/u8-possible-linebreaks: New file.
45876         * modules/unilbrk/u16-possible-linebreaks: New file.
45877         * modules/unilbrk/u32-possible-linebreaks: New file.
45878         * modules/unilbrk/ulc-common: New file.
45879         * modules/unilbrk/ulc-possible-linebreaks: New file.
45880         * modules/unilbrk/u8-width-linebreaks: New file.
45881         * modules/unilbrk/u16-width-linebreaks: New file.
45882         * modules/unilbrk/u32-width-linebreaks: New file.
45883         * modules/unilbrk/ulc-width-linebreaks: New file.
45884         * lib/linebreak.h: Remove file.
45885         * lib/linebreak.c: Remove file.
45886         * m4/linebreak.m4: Remove file.
45887         * modules/linebreak: Remove file.
45888         * NEWS: Mention the changes.
45889
45890 2008-05-09  Eric Blake  <ebb9@byu.net>
45891
45892         Add xmemdup0.
45893         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
45894         implementation.
45895         * lib/xmalloc.c (xmemdup0): New C implementation.
45896
45897 2008-05-08  Bruno Haible  <bruno@clisp.org>
45898
45899         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
45900
45901 2008-05-07  Eric Blake  <ebb9@byu.net>
45902
45903         Support cross-compilation of <wctype.h>.
45904         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
45905         AC_CACHE_CHECK.
45906
45907 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
45908
45909         * build-aux/vc-list-files: Add support for bzr.
45910
45911 2008-05-03  Jim Meyering  <meyering@redhat.com>
45912
45913         avoid failed assertion with tight malloc
45914         * tests/test-getndelim2.c: Correct an off-by-one assertion.
45915
45916 2008-05-03  Simon Josefsson  <simon@josefsson.org>
45917
45918         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
45919         are needed from arpa/inet.h.
45920         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
45921         Reported by Bruno Haible.
45922
45923 2008-05-02  Jim Meyering  <meyering@redhat.com>
45924
45925         avoid compilation error on FreeBSD 6
45926         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
45927
45928 2008-05-01  Jim Meyering  <meyering@redhat.com>
45929
45930         useless-if-before-free: correct --help's exit status description
45931         * build-aux/useless-if-before-free (usage): Like grep, exit 0
45932         for one or more matches, etc.  Reported by Bruno Haible.
45933
45934         vc-list-files: make the stand-alone gnulib test work
45935         * modules/vc-list-files-tests (configure.ac):
45936         Define and AC_SUBST abs_aux_dir.
45937         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
45938         $(abs_top_srcdir) to each script and having each of them
45939         duplicate the work of setting PATH, set PATH here, using
45940         the new variable, abs_aux_dir instead.
45941         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
45942         * tests/test-vc-list-files-git.sh: Likewise.
45943         Reported by Bruno Haible.
45944
45945 2008-05-01  Bruno Haible  <bruno@clisp.org>
45946
45947         * lib/getndelim2.c (getndelim2): Fix newsize computation during
45948         reallocation. Rename 'done' to 'found_delimiter'.
45949
45950 2008-05-01  Jim Meyering  <meyering@redhat.com>
45951
45952         vc-list-files: accommodate /bin/sh like the one from Solaris 10
45953         * build-aux/vc-list-files: Use `...`, not $(...).
45954
45955 2008-04-30  Jim Meyering  <meyering@redhat.com>
45956
45957         add tests for vc-list-files
45958         * modules/vc-list-files-tests: New module.
45959         * tests/test-vc-list-files-cvs.sh: New file.
45960         * tests/test-vc-list-files-git.sh: New file.
45961
45962         avoid a warning from gcc
45963         * lib/getndelim2.c (IF_LINT): Define.
45964         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
45965
45966         vc-list-files: work properly with build-aux/cvsu, too
45967         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
45968         to all cvs-based clauses.
45969
45970         vc-list-files: work properly in the CVS+awk case, too
45971         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
45972
45973         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
45974         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
45975         take more than one file argument, so .  Add quotes, just in case $dir
45976         ever contains a shell meta-character.  Prompted by Soren Hansen in
45977         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
45978
45979 2008-04-29  Eric Blake  <ebb9@byu.net>
45980
45981         Optimize getndelim2 to use block operations when possible.
45982         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
45983         freadseek, and memchr2.
45984         * lib/getndelim2.c (getndelim2): Use them for block reads.
45985
45986 2008-04-29  Bruno Haible  <bruno@clisp.org>
45987
45988         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
45989         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
45990         * modules/inet_ntop (Depends-on): Add extensions.
45991         * modules/inet_pton (Depends-on): Likewise.
45992         Reported by Simon Josefsson.
45993
45994 2008-04-29  Jim Meyering  <meyering@redhat.com>
45995
45996         When the is more than one match in a block, match all of them.
45997         * build-aux/useless-if-before-free: Iterate through each block
45998         until there are no more matches.
45999
46000         Fix broken useless-if-before-free script.
46001         * build-aux/useless-if-before-free: Fix typo: missing "?" after
46002         the expression to match cast of argument to free-like function.
46003
46004 2008-04-29  Eric Blake  <ebb9@byu.net>
46005
46006         Use new header.
46007         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
46008
46009 2008-04-29  Jim Meyering  <meyering@redhat.com>
46010
46011         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
46012         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
46013         by gnulib to exist and to declare e.g., inet_ntop.
46014         Don't include "inet_ntop.h", now removed.
46015
46016         * m4/arpa_inet_h.m4: Remove trailing blanks.
46017
46018 2008-04-29  Eric Blake  <ebb9@byu.net>
46019
46020         Silence valgrind on safe reads beyond potential array bounds.
46021         * lib/rawmemchr.valgrind: New file.
46022         * lib/strchrnul.valgrind: Likewise.
46023         * modules/rawmemchr (Files): Distribute new file.
46024         * modules/strchrnul (Files): Likewise.
46025         Suggested by Bruno Haible.
46026
46027 2008-04-29  Bruno Haible  <bruno@clisp.org>
46028
46029         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
46030         (inet_ntop, inet_pton): Change portability warning's wording.
46031         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
46032         Invoke gl_CHECK_NEXT_HEADERS.
46033         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
46034         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
46035         set ARPA_INET_H.
46036         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
46037         * modules/arpa_inet (Description): No longer only for systems that
46038         lack it.
46039         (Depends-on): Add include_next.
46040         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
46041         HAVE_ARPA_INET_H.
46042
46043 2008-04-29  Jim Meyering  <meyering@redhat.com>
46044
46045         * modules/mkdir (License): Re-license as LGPLv2+.
46046
46047 2008-04-29  Bruno Haible  <bruno@clisp.org>
46048
46049         * modules/rawmemchr (Maintainer): Set to Eric.
46050         * modules/strchrnul (Maintainer): Likewise.
46051
46052 2008-04-29  Simon Josefsson  <simon@josefsson.org>
46053
46054         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
46055         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
46056
46057         * modules/arpa_inet (arpa/inet.h): Use them.
46058
46059 2008-04-28  Eric Blake  <ebb9@byu.net>
46060
46061         Test getndelim2.
46062         * modules/getndelim2-tests: New file.
46063         * tests/test-getndelim2.c: Likewise.
46064         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
46065         stream.
46066         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
46067
46068         * MODULES.html.sh: Document new module.
46069
46070 2008-04-20  Bruno Haible  <bruno@clisp.org>
46071
46072         * lib/c-stack.c (die): Use raise.
46073         * modules/c-stack (Depends-on): Add raise.
46074
46075 2008-04-28  Bruno Haible  <bruno@clisp.org>
46076
46077         Expect rpmatch to be declared.
46078         * lib/yesno.c (rpmatch): Remove declaration.
46079
46080         Declare rpmatch.
46081         * lib/stdlib.in.h (rpmatch): New declaration.
46082         * lib/rpmatch.c: Include <stdlib.h> first.
46083         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
46084         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
46085         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
46086         HAVE_RPMATCH.
46087         * modules/rpmatch (Depends-on): Add stdlib, extensions.
46088         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46089         (Include): Set to <stdlib.h>.
46090         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
46091         HAVE_RPMATCH.
46092         * NEWS: Document the change.
46093
46094 2008-04-28  Bruno Haible  <bruno@clisp.org>
46095
46096         Change rpmatch to use nl_langinfo when appropriate.
46097         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
46098         (N_): New macro.
46099         (localized_pattern): New function/macro.
46100         (try): Remove match, nomatch arguments. Copy the pattern into safe
46101         memory before caching it.
46102         (rpmatch): Use localized_pattern. Add translator comments.
46103         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
46104         Suggested by Eric Blake.
46105         * modules/rpmatch (Depends-on): Add stdbool.
46106
46107 2008-04-28  Eric Blake  <ebb9@byu.net>
46108
46109         Add rawmemchr module, matching glibc.
46110         * modules/string (Makefile.am): New indicator.
46111         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
46112         * lib/string.in.h (rawmemchr): Declare when appropriate.
46113         * modules/rawmemchr: New file.
46114         * m4/rawmemchr.m4: Likewise.
46115         * lib/rawmemchr.c: Likewise.
46116         * modules/rawmemchr-tests: Likewise.
46117         * tests/test-rawmemchr.c: Likewise.
46118         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
46119         module.
46120         * modules/strchrnul (Depends-on): Add rawmemchr.
46121         * lib/strchrnul.c (strchrnul): Optimize a corner case.
46122
46123         Whitespace cleanup.
46124         * tests/test-strchrnul.c: Reindent.
46125         * lib/strchrnul.c: Likewise.
46126
46127         Optimize and test strchrnul.
46128         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
46129         * modules/strchrnul-tests: New file.
46130         * tests/test-strchrnul.c: Likewise.
46131
46132         Remove intprops dependency.
46133         * modules/memchr (Depends-on): Remove intprops.
46134         * modules/memrchr (Depends-on): Likewise.
46135         * modules/memchr2 (Depends-on): Likewise.
46136         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
46137         * lib/memrchr.c (__memrchr): Likewise.
46138         * lib/memrchr2.c (memchr2): Likewise.
46139         Reported by Simon Josefsson.
46140
46141 2008-04-28  Simon Josefsson  <simon@josefsson.org>
46142
46143         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
46144         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46145
46146 2008-04-28  Simon Josefsson  <simon@josefsson.org>
46147
46148         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
46149
46150         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
46151
46152         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
46153
46154         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
46155         declarations.
46156         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
46157
46158         * m4/inet_pton.m4: Don't check for header files.
46159
46160         * m4/inet_ntop.m4: Don't check for header files.
46161
46162 2008-04-28  Simon Josefsson  <simon@josefsson.org>
46163
46164         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
46165         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
46166         trigger for cygwin).
46167         Reported by Bruno Haible  <bruno@clisp.org>.
46168
46169 2008-04-28  Bruno Haible  <bruno@clisp.org>
46170
46171         * doc/posix-functions/strdup.texi: Mention mingw problem.
46172
46173 2008-04-27  Bruno Haible  <bruno@clisp.org>
46174
46175         * modules/stat-time-tests (Depends-on): Add sleep.
46176         * tests/test-stat-time.c (force_unlink): New function.
46177         (cleanup): Use it.
46178         (test_mtime): Remove the ctime related tests.
46179         (test_ctime): New function, containing the ctime related tests.
46180         (main): Call test_ctime, except on native Windows platforms.
46181
46182 2008-04-27  Bruno Haible  <bruno@clisp.org>
46183
46184         * lib/rpmatch.c (rpmatch): Add some comments.
46185         Reported by James Youngman <jay@gnu.org>.
46186
46187 2008-04-27  Bruno Haible  <bruno@clisp.org>
46188
46189         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
46190         quiet NaNs.
46191
46192 2008-04-27  Bruno Haible  <bruno@clisp.org>
46193
46194         Make test-yesno.sh work on mingw.
46195         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
46196         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
46197         (main): Set stdin to binary mode.
46198         * modules/yesno-tests (Depends-on): Add binary-io.
46199
46200 2008-04-27  Bruno Haible  <bruno@clisp.org>
46201
46202         Fix 'isfinite' on x86, x86_64, ia64 platforms.
46203         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
46204         argument that lie outside the IEEE 854 domain.
46205         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
46206         (gl_ISFINITE): Use it.
46207         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
46208
46209 2008-04-27  Bruno Haible  <bruno@clisp.org>
46210
46211         Allow local renaming in config.h.
46212         * lib/memrchr.c (memrchr): Don't undefine outside libc.
46213
46214 2008-04-27  Bruno Haible  <bruno@clisp.org>
46215
46216         * lib/memchr.c (__memchr): Change type of 'i'.
46217         * lib/memchr2.c (memchr2): Likewise.
46218
46219 2008-04-26  Eric Blake  <ebb9@byu.net>
46220         and Bruno Haible  <bruno@clisp.org>
46221
46222         Optimize and test memrchr.
46223         * modules/memrchr (Depends-on): Add intprops.
46224         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
46225         * modules/memrchr-tests: New file.
46226         * tests/test-memrchr.c: New file.
46227
46228 2008-04-26  Bruno Haible  <bruno@clisp.org>
46229
46230         Add tentative support for DragonFly BSD.
46231         * lib/stdio-impl.h: Add macros for DragonFly BSD.
46232         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
46233         fp.
46234         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
46235         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
46236         * lib/fpurge.c (fpurge): Likewise.
46237         * lib/freadable.c (freaadable): Likewise.
46238         * lib/freadahead.c (freadahead): Likewise.
46239         * lib/freading.c (freading): Likewise.
46240         * lib/freadptr.c (freadptr): Likewise.
46241         * lib/freadseek.c (freadptrinc): Likewise.
46242         * lib/fseeko.c (fseeko): Likewise.
46243         * lib/fseterr.c (fseterr): Likewise.
46244         * lib/fwritable.c (fwritable): Likewise.
46245         * lib/fwriting.c (fwriting): Likewise.
46246
46247 2008-04-26  Bruno Haible  <bruno@clisp.org>
46248
46249         * lib/stdio-impl.h: New file.
46250         * lib/fbufmode.c: Include stdio-impl.h.
46251         (fbufmode): Use fp_, remove redundant #defines.
46252         * lib/fflush.c: Include stdio-impl.h.
46253         (clear_ungetc_buffer): Remove redundant #defines.
46254         * lib/fpurge.c: Include stdio-impl.h.
46255         (fpurge): Remove redundant #defines.
46256         * lib/freadable.c: Include stdio-impl.h.
46257         (freadable): Remove redundant #defines.
46258         * lib/freadahead.c: Include stdio-impl.h.
46259         (freadahead): Remove redundant #defines.
46260         * lib/freading.c: Include stdio-impl.h.
46261         (freading): Remove redundant #defines.
46262         * lib/freadptr.c: Include stdio-impl.h.
46263         (freadptr): Remove redundant #defines.
46264         * lib/freadseek.c: Include stdio-impl.h.
46265         (freadptrinc): Remove redundant #defines.
46266         * lib/fseeko.c: Include stdio-impl.h.
46267         (rpl_fseeko): Remove redundant #defines.
46268         * lib/fseterr.c: Include stdio-impl.h.
46269         (fseterr): Remove redundant #defines.
46270         * lib/fwritable.c: Include stdio-impl.h.
46271         (fwritable: Remove redundant #defines.
46272         * lib/fwriting.c: Include stdio-impl.h.
46273         (fwriting): Remove redundant #defines.
46274         * modules/fbufmode (Files): Add lib/stdio-impl.h.
46275         * modules/fflush (Files): Likewise.
46276         * modules/fpurge (Files): Likewise.
46277         * modules/freadable (Files): Likewise.
46278         * modules/freadahead (Files): Likewise.
46279         * modules/freading (Files): Likewise.
46280         * modules/freadptr (Files): Likewise.
46281         * modules/freadseek (Files): Likewise.
46282         * modules/fseeko (Files): Likewise.
46283         * modules/fseterr (Files): Likewise.
46284         * modules/fwritable (Files): Likewise.
46285         * modules/fwriting (Files): Likewise.
46286
46287 2008-04-26  Bruno Haible  <bruno@clisp.org>
46288
46289         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
46290         restore_seek_optimization, update_fpos_cache): New functions, extracted
46291         from rpl_fflush.
46292         (rpl_fflush): Use them.
46293         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
46294         (gl_REPLACE_FFLUSH): Use it.
46295
46296 2008-04-26  Bruno Haible  <bruno@clisp.org>
46297
46298         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
46299         on Solaris.
46300         * tests/test-xstrtoimax.sh: Likewise.
46301         * tests/test-xstrtoumax.sh: Likewise.
46302         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46303
46304 2008-04-26  Bruno Haible  <bruno@clisp.org>
46305
46306         * modules/memchr-tests: New file.
46307         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
46308
46309 2008-04-26  Eric Blake  <ebb9@byu.net>
46310             Bruno Haible  <bruno@clisp.org>
46311
46312         * lib/memchr.c: Include intprops.h.
46313         (__memchr): Optimize parallel detection of matching bytes. Rename local
46314         variables. Add explanatory comments.
46315
46316 2008-04-26  Bruno Haible  <bruno@clisp.org>
46317
46318         Fix module 'memchr', broken since 2000-10-28.
46319         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
46320
46321 2008-04-26  Bruno Haible  <bruno@clisp.org>
46322
46323         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
46324         comments.
46325
46326 2008-04-25  Eric Blake  <ebb9@byu.net>
46327
46328         Use native fstatat on cygwin 1.7.0.
46329         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
46330         first.
46331
46332 2008-04-23  Eric Blake  <ebb9@byu.net>
46333
46334         Improve memchr2 performance.
46335         * lib/memchr2.c (memchr2): Further optimize parallel detection of
46336         NUL bytes.
46337         * modules/memchr2 (Depends-on): Use intprops.h.
46338
46339 2008-04-23  Simon Josefsson  <simon@josefsson.org>
46340
46341         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
46342         an inline function instead of a CPP macro.  Patch by Ben Pfaff
46343         <blp@cs.stanford.edu>.
46344
46345 2008-04-23  Simon Josefsson  <simon@josefsson.org>
46346
46347         * lib/arpa_inet.in.h: New file.
46348
46349         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
46350         (Makefile.am): Sed in substitute header file.
46351
46352         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
46353         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
46354
46355         * modules/inet_ntop (configure.ac): Use
46356         gl_ARPA_INET_MODULE_INDICATOR.
46357
46358         * modules/inet_pton (configure.ac): Use
46359         gl_ARPA_INET_MODULE_INDICATOR.
46360
46361 2008-04-22  Jim Meyering  <meyering@redhat.com>
46362
46363         * modules/verify (License): Re-license as LGPLv2+.
46364
46365 2008-04-22  Simon Josefsson  <simon@josefsson.org>
46366
46367         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
46368         parameter to void* as per POSIX standard (MinGW uses char*).
46369
46370 2008-04-21  Bruno Haible  <bruno@clisp.org>
46371
46372         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
46373         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
46374         Define to replacements if REPLACE_ISWCNTRL is 1.
46375         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
46376         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
46377         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
46378         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
46379         what it fixes.
46380         * doc/posix-functions/iswalpha.texi: Likewise.
46381         * doc/posix-functions/iswblank.texi: Likewise.
46382         * doc/posix-functions/iswcntrl.texi: Likewise.
46383         * doc/posix-functions/iswdigit.texi: Likewise.
46384         * doc/posix-functions/iswgraph.texi: Likewise.
46385         * doc/posix-functions/iswlower.texi: Likewise.
46386         * doc/posix-functions/iswprint.texi: Likewise.
46387         * doc/posix-functions/iswpunct.texi: Likewise.
46388         * doc/posix-functions/iswspace.texi: Likewise.
46389         * doc/posix-functions/iswupper.texi: Likewise.
46390         * doc/posix-functions/iswxdigit.texi: Likewise.
46391         Reported by Alain Guibert.
46392
46393 2008-04-21  Bruno Haible  <bruno@clisp.org>
46394
46395         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
46396         Patch by Alain Guibert.
46397
46398 2008-04-21  Bruno Haible  <bruno@clisp.org>
46399
46400         Fix test failures on mingw.
46401         * tests/test-xstrtol.c (print_no_progname): New function.
46402         (main): Install it in error_print_progname hook.
46403         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
46404         * tests/test-xstrtoimax.sh: Likewise.
46405         * tests/test-xstrtoumax.sh: Likewise.
46406
46407 2008-04-21  Bruno Haible  <bruno@clisp.org>
46408
46409         Fix test failure on mingw.
46410         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
46411
46412 2008-04-21  Bruno Haible  <bruno@clisp.org>
46413
46414         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
46415         Actually assign a value.
46416
46417 2008-04-20  Bruno Haible  <bruno@clisp.org>
46418
46419         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
46420         take 2.
46421         * lib/canonicalize.c (canonicalize_file_name): Elide if the
46422         'canonicalize-lgpl' module is also used.
46423         * lib/canonicalize-lgpl.c: Undo last change.
46424         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
46425
46426 2008-04-20  Bruno Haible  <bruno@clisp.org>
46427
46428         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
46429         config.h. Provide _mkdir based fallback for mingw.
46430         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
46431         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
46432         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
46433         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
46434         rather than defining mkdir in config.h.
46435         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
46436         (gl_SYS_STAT_H_DEFAULTS): New macro.
46437         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
46438         HAVE_IO_H any more.
46439         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
46440         HAVE_DECL_MKDIR and HAVE_IO_H.
46441
46442 2008-04-20  Bruno Haible  <bruno@clisp.org>
46443
46444         * lib/isapipe.c: Port to native Windows platforms.
46445
46446 2008-04-20  Bruno Haible  <bruno@clisp.org>
46447
46448         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
46449
46450 2008-04-21  Eric Blake  <ebb9@byu.net>
46451
46452         Work around preprocessors that don't handle UINTMAX_MAX.
46453         * lib/memchr2.c (memchr2): Avoid embedded #if.
46454         Reported by Alain Guibert, fix suggested by Bruno Haible.
46455
46456 2008-04-21  Simon Josefsson  <simon@josefsson.org>
46457
46458         * doc/posix-functions/strftime.texi (strftime): Explain better
46459         Windows incompatibility.  Suggested by Micah Cowan
46460         <micah@cowan.name>.
46461
46462 2008-04-20  Bruno Haible  <bruno@clisp.org>
46463
46464         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
46465         unistr/u8-mblen.
46466
46467 2008-04-20  Bruno Haible  <bruno@clisp.org>
46468
46469         Fix test failure on platforms with non-GNU iconv.
46470         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
46471         (U_TO_U8): Use it, rather than u16_to_u8.
46472         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
46473         units at the end of the input string.
46474         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
46475
46476 2008-04-20  Bruno Haible  <bruno@clisp.org>
46477
46478         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
46479         when the resulting length is 0.
46480         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
46481
46482 2008-04-20  Bruno Haible  <bruno@clisp.org>
46483
46484         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
46485         works.
46486         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
46487
46488 2008-04-20  Bruno Haible  <bruno@clisp.org>
46489
46490         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
46491         * modules/tsearch-tests (configure.ac): Test for initstate function.
46492
46493 2008-04-20  Bruno Haible  <bruno@clisp.org>
46494
46495         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
46496         for nlink_t if missing.
46497         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
46498
46499 2008-04-19  Bruno Haible  <bruno@clisp.org>
46500
46501         Work around snprintf bug on Linux libc5.
46502         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
46503         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
46504         gl_SNPRINTF_SIZE1.
46505         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46506         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
46507         that test failed.
46508         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
46509         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
46510         * modules/snprintf (Files): Add m4/printf.m4.
46511         * modules/vsnprintf (Files): Likewise.
46512         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
46513         * doc/posix-functions/vsnprintf.texi: Likewise.
46514
46515 2008-04-19  Bruno Haible  <bruno@clisp.org>
46516
46517         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
46518         from 0.0058 to less than 10^-7.
46519
46520 2008-04-19  Bruno Haible  <bruno@clisp.org>
46521
46522         Fix rounding when a precision is given.
46523         * lib/vasnprintf.c (is_borderline): New function.
46524         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
46525         9...9x.
46526         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
46527         %e, %g.
46528         * tests/test-vasprintf-posix.c (test_function): Likewise.
46529         * tests/test-snprintf-posix.h (test_function): Likewise.
46530         * tests/test-sprintf-posix.h (test_function): Likewise.
46531         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
46532         * tests/test-printf-posix.h (test_function): Likewise.
46533         * tests/test-printf-posix.output: Update.
46534         Reported by John Darrington <john@darrington.wattle.id.au> via
46535         Ben Pfaff <blp@cs.stanford.edu>.
46536
46537 2008-04-18  Simon Josefsson  <simon@josefsson.org>
46538
46539         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
46540         Suggested by Bruno Haible <bruno@clisp.org>.
46541
46542 2008-04-17  Bruno Haible  <bruno@clisp.org>
46543
46544         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
46545         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
46546         implementation.
46547         Patch by Bruce Merry <bmerry@gmail.com>.
46548
46549 2008-04-17  Simon Josefsson  <simon@josefsson.org>
46550
46551         * doc/posix-functions/strftime.texi (strftime): Mention that %e
46552         doesn't work under Windows.
46553
46554 2008-04-16  Bruno Haible  <bruno@clisp.org>
46555
46556         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
46557         New macros.
46558         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
46559         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
46560         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
46561         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
46562         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
46563         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
46564         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
46565         macros.
46566         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
46567         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
46568         Northern Sotho, Uighur.
46569
46570 2008-04-16  Bruno Haible  <bruno@clisp.org>
46571
46572         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
46573         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
46574         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
46575         Reported by Daniel Bergström <daniel@octocode.com>.
46576
46577 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
46578             Bruno Haible  <bruno@clisp.org>
46579
46580         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
46581         function.
46582         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
46583         New functions, mostly extracted from gl_locale_name_default.
46584         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
46585
46586 2008-04-16  Eric Blake  <ebb9@byu.net>
46587
46588         Adjust strtod detection to catch glibc 2.7 bug.
46589         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
46590         Reported by John Gatewood Ham.
46591
46592 2008-04-16  Bruno Haible  <bruno@clisp.org>
46593
46594         Add tentative support for Linux libc5.
46595         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
46596         * lib/fpurge.c (fpurge): Likewise.
46597         * lib/freadable.c (freadable): Likewise.
46598         * lib/freadahead.c (freadahead): Likewise.
46599         * lib/freading.c (freading): Likewise.
46600         * lib/freadptr.c (freadptr): Likewise.
46601         * lib/freadseek.c (freadptrinc): Likewise.
46602         * lib/fseeko.c (rpl_fseeko): Likewise.
46603         * lib/fseterr.c (fseterr): Likewise.
46604         * lib/fwritable.c (fwritable): Likewise.
46605         * lib/fwriting.c (fwriting): Likewise.
46606         Reported by Alain Guibert <alguibert+bts@free.fr>.
46607
46608 2008-04-15  Bruno Haible  <bruno@clisp.org>
46609
46610         * modules/mathl (configure.ac): Define module indicator.
46611
46612 2008-04-15  Bruno Haible  <bruno@clisp.org>
46613
46614         * lib/logl.c (logl): Remove unused variables.
46615
46616 2008-04-15  Bruno Haible  <bruno@clisp.org>
46617
46618         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
46619         fails.
46620
46621 2008-04-15  Bruno Haible  <bruno@clisp.org>
46622
46623         * lib/trim.c (trim2): Fix argument of isspace() macro.
46624
46625 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
46626
46627         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
46628         to 0.
46629         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
46630
46631 2008-04-14  Bruno Haible  <bruno@clisp.org>
46632
46633         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
46634         AC_LANG_PROGRAM argument.
46635         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
46636         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
46637         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
46638         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
46639         * m4/math_h.m4 (gl_MATH_H): Likewise.
46640         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
46641         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
46642         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
46643         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
46644         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
46645         * m4/regex.m4 (gl_REGEX): Likewise.
46646         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
46647         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
46648         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
46649         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
46650         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
46651         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
46652         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
46653         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
46654
46655 2008-04-14  Jim Meyering  <meyering@redhat.com>
46656
46657         test-strtod: fix typos: s/abs/fabs/
46658         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
46659
46660 2008-04-13  Bruno Haible  <bruno@clisp.org>
46661
46662         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
46663         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
46664         module is also used and while not building the reloc-wrapper.
46665
46666 2008-04-13  Bruno Haible  <bruno@clisp.org>
46667
46668         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
46669
46670 2008-04-13  Bruno Haible  <bruno@clisp.org>
46671
46672         Fix AIX compilation failure introduced on 2008-04-02.
46673         * tests/test-frexp.c (exp): Undefine before redefining.
46674         * tests/test-frexpl.c (exp): Likewise.
46675
46676 2008-04-13  Bruno Haible  <bruno@clisp.org>
46677
46678         Work around a HP-UX stdio bug.
46679         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
46680         * tests/test-ftello.c (main): Likewise.
46681         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
46682         * doc/posix-functions/ftello.texi: Likewise.
46683
46684 2008-04-13  Bruno Haible  <bruno@clisp.org>
46685
46686         Make test-signbit pass on HP-UX/hppa.
46687         * tests/test-signbit.c (minus_zerol): New variable.
46688         (test_signbitl): Use it.
46689
46690 2008-04-13  Bruno Haible  <bruno@clisp.org>
46691
46692         Make truncl work on OSF/1 4.0.
46693         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
46694         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
46695         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
46696         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
46697         HAVE_DECL_TRUNCL.
46698         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
46699         HAVE_DECL_TRUNCL.
46700         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
46701
46702 2008-04-13  Bruno Haible  <bruno@clisp.org>
46703
46704         * lib/unictype.h: Remove trailing comma from enumeration definitions.
46705
46706 2008-04-13  Bruno Haible  <bruno@clisp.org>
46707
46708         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
46709         expression, so as to avoid HP-UX 11 cc compiler bug.
46710
46711 2008-04-13  Bruno Haible  <bruno@clisp.org>
46712
46713         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
46714
46715 2008-04-13  Bruno Haible  <bruno@clisp.org>
46716
46717         * lib/git-merge-changelog.c: Remove empty declaration outside of
46718         functions.
46719
46720 2008-04-13  Bruno Haible  <bruno@clisp.org>
46721
46722         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
46723
46724 2008-04-13  Bruno Haible  <bruno@clisp.org>
46725
46726         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
46727         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
46728         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
46729         also if it exists but lacks definitions of the SHUT_* macros.
46730         * modules/sys_socket (Description): Update.
46731         Reported by Elbert Pol <e.pol@chello.nl>.
46732
46733 2008-04-13  Bruno Haible  <bruno@clisp.org>
46734
46735         * lib/localcharset.c (OS2): Don't redefine if already defined.
46736         Reported by Elbert Pol <e.pol@chello.nl>.
46737
46738 2008-04-13  Bruno Haible  <bruno@clisp.org>
46739
46740         * lib/binary-io.h [__EMX__]: Include <io.h>.
46741         Reported by Elbert Pol <e.pol@chello.nl>.
46742
46743 2008-04-12  Bruno Haible  <bruno@clisp.org>
46744
46745         * lib/fpucw.h: Enable the definitions also for x86_64.
46746         Needed for NetBSD/x86_64.
46747         Reported by Thomas Klausner <tk@giga.or.at>.
46748
46749 2008-04-12  Bruno Haible  <bruno@clisp.org>
46750
46751         * tests/test-strtod.c: Include isnand.h.
46752         (main): Use isnand instead of isnan.
46753         Reported by Jim Meyering.
46754
46755 2008-04-12  Bruno Haible  <bruno@clisp.org>
46756
46757         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
46758         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
46759
46760 2008-04-12  Jim Meyering  <meyering@redhat.com>
46761
46762         * m4/math_h.m4 (gl_MATH_H): Fix typos.
46763
46764 2008-04-12  Bruno Haible  <bruno@clisp.org>
46765
46766         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
46767         Reported by Elbert Pol <e.pol@chello.nl>.
46768
46769 2008-04-12  Eric Blake  <ebb9@byu.net>
46770
46771         Work around Solaris 10 math.h bug.
46772         * m4/math_h.m4 (gl_MATH_H): Check for bug.
46773         (gl_MATH_H_DEFAULTS): Set up default.
46774         * modules/math (Makefile.am): Replace new indicators.
46775         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
46776         * tests/test-math.c (main): Test this.
46777         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
46778         * doc/posix-headers/math.texi (math.h): Mention bug.
46779         Reported by Nelson H. F. Beebe and Jim Meyering.
46780
46781 2008-04-11  Bruno Haible  <bruno@clisp.org>
46782
46783         Adapt to future versions of Apple GCC.
46784         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
46785         Reported by Peter O'Gorman <peter@pogma.com>.
46786
46787 2008-04-11  Bruno Haible  <bruno@clisp.org>
46788
46789         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
46790
46791 2008-04-11  Bruno Haible  <bruno@clisp.org>
46792
46793         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
46794
46795         * modules/getaddrinfo-tests (Makefile.am): Define
46796         test_getaddrinfo_LDADD.
46797
46798 2008-04-11  Bruno Haible  <bruno@clisp.org>
46799
46800         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
46801         (init): Fix syntax error.
46802         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
46803         is declared.
46804
46805 2008-04-11  Bruno Haible  <bruno@clisp.org>
46806
46807         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
46808         * modules/glob (Depends-on): Add stdbool.
46809
46810 2008-04-11  Bruno Haible  <bruno@clisp.org>
46811
46812         * lib/trim.c: Include <string.h>.
46813
46814 2008-04-11  Eric Blake  <ebb9@byu.net>
46815
46816         Avoid compile failure on OS/2.
46817         * lib/regex_internal.h (internal_function): Disable optimization
46818         on OS/2 (__EMX__), where it caused compiler error.
46819         Reported by Elbert Pol.
46820
46821 2008-04-11  Bruno Haible  <bruno@clisp.org>
46822
46823         Flush the standard error stream before aborting. Needed on mingw.
46824         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
46825         * tests/test-array_list.c (ASSERT): Likewise.
46826         * tests/test-array_oset.c (ASSERT): Likewise.
46827         * tests/test-avltree_list.c (ASSERT): Likewise.
46828         * tests/test-avltree_oset.c (ASSERT): Likewise.
46829         * tests/test-avltreehash_list.c (ASSERT): Likewise.
46830         * tests/test-binary-io.c (ASSERT): Likewise.
46831         * tests/test-byteswap.c (ASSERT): Likewise.
46832         * tests/test-c-ctype.c (ASSERT): Likewise.
46833         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
46834         * tests/test-c-strcasestr.c (ASSERT): Likewise.
46835         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
46836         * tests/test-c-strstr.c (ASSERT): Likewise.
46837         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
46838         * tests/test-canonicalize.c (ASSERT): Likewise.
46839         * tests/test-carray_list.c (ASSERT): Likewise.
46840         * tests/test-ceilf1.c (ASSERT): Likewise.
46841         * tests/test-ceilf2.c (ASSERT): Likewise.
46842         * tests/test-ceill.c (ASSERT): Likewise.
46843         * tests/test-count-one-bits.c (ASSERT): Likewise.
46844         * tests/test-fbufmode.c (ASSERT): Likewise.
46845         * tests/test-fflush2.c (ASSERT): Likewise.
46846         * tests/test-floorf1.c (ASSERT): Likewise.
46847         * tests/test-floorf2.c (ASSERT): Likewise.
46848         * tests/test-floorl.c (ASSERT): Likewise.
46849         * tests/test-fopen.c (ASSERT): Likewise.
46850         * tests/test-fpending.c (ASSERT): Likewise.
46851         * tests/test-fprintf-posix.c (ASSERT): Likewise.
46852         * tests/test-fpurge.c (ASSERT): Likewise.
46853         * tests/test-freadable.c (ASSERT): Likewise.
46854         * tests/test-freadahead.c (ASSERT): Likewise.
46855         * tests/test-freading.c (ASSERT): Likewise.
46856         * tests/test-freadptr.c (ASSERT): Likewise.
46857         * tests/test-freadptr2.c (ASSERT): Likewise.
46858         * tests/test-freadseek.c (ASSERT): Likewise.
46859         * tests/test-freopen.c (ASSERT): Likewise.
46860         * tests/test-frexp.c (ASSERT): Likewise.
46861         * tests/test-frexpl.c (ASSERT): Likewise.
46862         * tests/test-fseek.c (ASSERT): Likewise.
46863         * tests/test-fseeko.c (ASSERT): Likewise.
46864         * tests/test-fstrcmp.c (ASSERT): Likewise.
46865         * tests/test-ftell.c (ASSERT): Likewise.
46866         * tests/test-ftello.c (ASSERT): Likewise.
46867         * tests/test-func.c (ASSERT): Likewise.
46868         * tests/test-fwritable.c (ASSERT): Likewise.
46869         * tests/test-fwriting.c (ASSERT): Likewise.
46870         * tests/test-getdelim.c (ASSERT): Likewise.
46871         * tests/test-getline.c (ASSERT): Likewise.
46872         * tests/test-i-ring.c (ASSERT): Likewise.
46873         * tests/test-iconv-utf.c (ASSERT): Likewise.
46874         * tests/test-iconv.c (ASSERT): Likewise.
46875         * tests/test-isfinite.c (ASSERT): Likewise.
46876         * tests/test-isnand.c (ASSERT): Likewise.
46877         * tests/test-isnanf.c (ASSERT): Likewise.
46878         * tests/test-isnanl.h (ASSERT): Likewise.
46879         * tests/test-ldexpl.c (ASSERT): Likewise.
46880         * tests/test-linked_list.c (ASSERT): Likewise.
46881         * tests/test-linkedhash_list.c (ASSERT): Likewise.
46882         * tests/test-localename.c (ASSERT): Likewise.
46883         * tests/test-lseek.c (ASSERT): Likewise.
46884         * tests/test-mbscasecmp.c (ASSERT): Likewise.
46885         * tests/test-mbscasestr1.c (ASSERT): Likewise.
46886         * tests/test-mbscasestr2.c (ASSERT): Likewise.
46887         * tests/test-mbscasestr3.c (ASSERT): Likewise.
46888         * tests/test-mbscasestr4.c (ASSERT): Likewise.
46889         * tests/test-mbschr.c (ASSERT): Likewise.
46890         * tests/test-mbscspn.c (ASSERT): Likewise.
46891         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
46892         * tests/test-mbspbrk.c (ASSERT): Likewise.
46893         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
46894         * tests/test-mbsrchr.c (ASSERT): Likewise.
46895         * tests/test-mbsspn.c (ASSERT): Likewise.
46896         * tests/test-mbsstr1.c (ASSERT): Likewise.
46897         * tests/test-mbsstr2.c (ASSERT): Likewise.
46898         * tests/test-mbsstr3.c (ASSERT): Likewise.
46899         * tests/test-memchr2.c (ASSERT): Likewise.
46900         * tests/test-memmem.c (ASSERT): Likewise.
46901         * tests/test-open.c (ASSERT): Likewise.
46902         * tests/test-printf-frexp.c (ASSERT): Likewise.
46903         * tests/test-printf-frexpl.c (ASSERT): Likewise.
46904         * tests/test-printf-posix.c (ASSERT): Likewise.
46905         * tests/test-quotearg.c (ASSERT): Likewise.
46906         * tests/test-rbtree_list.c (ASSERT): Likewise.
46907         * tests/test-rbtree_oset.c (ASSERT): Likewise.
46908         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
46909         * tests/test-round1.c (ASSERT): Likewise.
46910         * tests/test-roundf1.c (ASSERT): Likewise.
46911         * tests/test-roundl.c (ASSERT): Likewise.
46912         * tests/test-signbit.c (ASSERT): Likewise.
46913         * tests/test-sleep.c (ASSERT): Likewise.
46914         * tests/test-snprintf-posix.c (ASSERT): Likewise.
46915         * tests/test-snprintf.c (ASSERT): Likewise.
46916         * tests/test-sprintf-posix.c (ASSERT): Likewise.
46917         * tests/test-stat-time.c (ASSERT): Likewise.
46918         * tests/test-strcasestr.c (ASSERT): Likewise.
46919         * tests/test-strerror.c (ASSERT): Likewise.
46920         * tests/test-striconv.c (ASSERT): Likewise.
46921         * tests/test-striconveh.c (ASSERT): Likewise.
46922         * tests/test-striconveha.c (ASSERT): Likewise.
46923         * tests/test-strsignal.c (ASSERT): Likewise.
46924         * tests/test-strstr.c (ASSERT): Likewise.
46925         * tests/test-strtod.c (ASSERT): Likewise.
46926         * tests/test-trunc1.c (ASSERT): Likewise.
46927         * tests/test-trunc2.c (ASSERT): Likewise.
46928         * tests/test-truncf1.c (ASSERT): Likewise.
46929         * tests/test-truncf2.c (ASSERT): Likewise.
46930         * tests/test-truncl.c (ASSERT): Likewise.
46931         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
46932         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
46933         * tests/test-vasnprintf.c (ASSERT): Likewise.
46934         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
46935         * tests/test-vasprintf.c (ASSERT): Likewise.
46936         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
46937         * tests/test-vprintf-posix.c (ASSERT): Likewise.
46938         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
46939         * tests/test-vsnprintf.c (ASSERT): Likewise.
46940         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
46941         * tests/test-wcwidth.c (ASSERT): Likewise.
46942         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
46943         * tests/test-xprintf-posix.c (ASSERT): Likewise.
46944         * tests/test-xvasprintf.c (ASSERT): Likewise.
46945         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
46946         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
46947         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
46948         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
46949         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
46950         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
46951         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
46952         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
46953         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
46954         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
46955         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
46956         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
46957         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
46958         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
46959         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
46960         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
46961         * tests/unictype/test-block_list.c (ASSERT): Likewise.
46962         * tests/unictype/test-block_of.c (ASSERT): Likewise.
46963         * tests/unictype/test-block_test.c (ASSERT): Likewise.
46964         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
46965         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
46966         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
46967         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
46968         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
46969         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
46970         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
46971         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
46972         * tests/unictype/test-combining.c (ASSERT): Likewise.
46973         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
46974         * tests/unictype/test-digit.c (ASSERT): Likewise.
46975         * tests/unictype/test-mirror.c (ASSERT): Likewise.
46976         * tests/unictype/test-numeric.c (ASSERT): Likewise.
46977         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
46978         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
46979         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
46980         * tests/unictype/test-scripts.c (ASSERT): Likewise.
46981         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
46982         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
46983         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
46984         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
46985         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
46986         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
46987         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
46988         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
46989         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
46990         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
46991         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
46992         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
46993         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
46994         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
46995         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
46996         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
46997         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
46998         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
46999         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
47000         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
47001         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
47002         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
47003         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
47004         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
47005         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
47006         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
47007         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
47008         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
47009         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
47010         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
47011         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
47012         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
47013         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
47014         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
47015         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
47016         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
47017         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
47018         Reported by Eric Blake.
47019
47020 2008-04-11  Bruno Haible  <bruno@clisp.org>
47021
47022         * lib/wchar.in.h: Tweak comment.
47023
47024 2008-04-11  Bruno Haible  <bruno@clisp.org>
47025
47026         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
47027         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
47028         gl_COMMON.
47029         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
47030
47031 2008-04-11  Bruno Haible  <bruno@clisp.org>
47032
47033         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
47034
47035 2008-04-11  Simon Josefsson  <simon@josefsson.org>
47036
47037         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
47038         of attempting to use non-existing /dev/*random.  Based on patch
47039         from Adam Strzelecki <ono@java.pl> in
47040         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
47041
47042 2008-04-08  Bruno Haible  <bruno@clisp.org>
47043
47044         Add tentative support for emx+gcc.
47045         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
47046         * lib/fpurge.c (fpurge): Likewise.
47047         * lib/freadable.c (freadable): Likewise.
47048         * lib/freadahead.c (freadahead): Likewise.
47049         * lib/freading.c (freading): Likewise.
47050         * lib/freadptr.c (freadptr): Likewise.
47051         * lib/freadseek.c (freadptrinc): Likewise.
47052         * lib/fseeko.c (rpl_fseeko): Likewise.
47053         * lib/fseterr.c (fseterr): Likewise.
47054         * lib/fwritable.c (fwritable): Likewise.
47055         * lib/fwriting.c (fwriting): Likewise.
47056         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
47057
47058 2008-04-09  Eric Blake  <ebb9@byu.net>
47059
47060         Avoid some autoconf warnings.
47061         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
47062         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
47063         * m4/afs.m4 (gl_AFS): Likewise.
47064         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
47065         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
47066         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
47067         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
47068         (gl_INTEGER_TYPE_SUFFIX): Likewise.
47069         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
47070         (AC_CHECK_DECLS_ONCE): Likewise.
47071         Rename file...
47072         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
47073         gnulib-tool requires autoconf 2.59 or better.
47074         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
47075
47076 2008-04-08  Eric Blake  <ebb9@byu.net>
47077
47078         Use 'git describe --match' if present (added in git 1.5.5).
47079         * build-aux/git-version-gen: Limit result to tags that match 'v*'
47080         if possible.
47081
47082 2008-04-08  Bruno Haible  <bruno@clisp.org>
47083
47084         Add tentative support for OpenServer.
47085         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
47086         _ptr, _cnt.
47087         * lib/fpurge.c (fpurge): Likewise.
47088         * lib/freadable.c (freadable): Likewise.
47089         * lib/freadahead.c (freadahead): Likewise.
47090         * lib/freading.c (freading): Likewise.
47091         * lib/freadptr.c (freadptr): Likewise.
47092         * lib/freadseek.c (freadptrinc): Likewise.
47093         * lib/fseeko.c (rpl_fseeko): Likewise.
47094         * lib/fseterr.c (fseterr): Likewise.
47095         * lib/fwritable.c (fwritable): Likewise.
47096         * lib/fwriting.c (fwriting): Likewise.
47097         Reported by Roger Cornelius <rac@tenzing.org> and
47098         Brian K. White <brian@aljex.com>.
47099
47100 2008-04-06  Jim Meyering  <meyering@redhat.com>
47101
47102         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
47103
47104 2008-04-06  Bruno Haible  <bruno@clisp.org>
47105
47106         Avoid possible error with non-ASCII bytes in UTF-8 locales.
47107         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
47108         * tests/test-printf-posix.sh: Likewise.
47109         * tests/test-vfprintf-posix.sh: Likewise.
47110         * tests/test-vprintf-posix.sh: Likewise.
47111         * tests/test-xprintf-posix.sh: Likewise.
47112
47113 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47114
47115         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
47116         hide error from 'ls', needed on OS/2.
47117         Report by Elbert Pol <elbert.pol@gmail.com>.
47118
47119 2008-04-04  Eric Blake  <ebb9@byu.net>
47120
47121         Make test-fseeko.c failures meaningful.
47122         * tests/test-fseeko.c: Print line number on failure.
47123         * tests/test-fseek.c: Likewise.
47124         Reported by Nelson H. F. Beebe.
47125
47126         Improve strtod bug detection check.
47127         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
47128         required for Solaris 10.
47129         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
47130
47131 2008-04-04  Bruno Haible  <bruno@clisp.org>
47132
47133         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
47134         by m4/setenv.m4.
47135
47136 2008-04-03  Eric Blake  <ebb9@byu.net>
47137
47138         Ensure sane .version contents.
47139         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
47140         version string.
47141         * build-aux/git-version-gen: Improve documentation.
47142
47143         Make GNU make output nicer.
47144         * top/GNUmakefile [!_have-Makefile]: Add dependency on
47145         MAKECMDGOALS to enforce message for all command line targets.  Set
47146         srcdir for use in maint.mk.
47147
47148         Another maintainer tweak.
47149         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
47150         a target that regenerates version.
47151
47152 2008-04-03  Jim Meyering  <meyering@redhat.com>
47153
47154         vc-list-files: don't cause coreutils "make po-check" failure
47155         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
47156
47157 2008-04-03  Eric Blake  <ebb9@byu.net>
47158
47159         Allow VPATH usage of vc-list-files.
47160         * build-aux/vc-list-files (scriptversion): Add timestamp.
47161         (options): Add --help, --version, -C.
47162         (CVS): Support installed cvsu.
47163
47164 2008-04-02  Bruno Haible  <bruno@clisp.org>
47165
47166         Avoid some "statement with no effect" warnings from gcc.
47167         * tests/test-wctype.c (main): Explicitly ignore unused values.
47168         Reported by Jim Meyering.
47169
47170 2008-04-02  Jim Meyering  <meyering@redhat.com>
47171
47172         Avoid some warnings from "gcc -Wshadow".
47173         * tests/test-frexp.c (exp): Define to a different identifier.
47174         * tests/test-frexpl.c (exp): Likewise.
47175
47176 2008-04-03  Jim Meyering  <meyering@redhat.com>
47177
47178         bootstrap: remove dangling *.[ch] symlinks from lib
47179         * build-aux/bootstrap [dangling symlink removal]: Move find's
47180         -depth option to precede all others, to avoid a warning.
47181         Remove *.[ch] files too, and from "$source_base" (usually lib/).
47182
47183 2008-04-02  Bruno Haible  <bruno@clisp.org>
47184
47185         Avoid some warnings from "gcc -Wshadow".
47186         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
47187         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
47188         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
47189         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
47190         Reported by Jim Meyering.
47191
47192 2008-04-01  Bruno Haible  <bruno@clisp.org>
47193
47194         Fix test to work on IRIX 6.5 with cc.
47195         * tests/test-math.c (numeric_equal): New function.
47196         (main): Use it.
47197
47198 2008-04-01  Bruno Haible  <bruno@clisp.org>
47199
47200         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
47201
47202 2008-04-01  Bruno Haible  <bruno@clisp.org>
47203
47204         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
47205         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
47206         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
47207         (Depends-on): Remove math.
47208
47209         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
47210         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
47211         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
47212         (Depends-on): Remove math.
47213
47214         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
47215         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
47216         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
47217         (Depends-on): Remove math.
47218         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
47219         (Depends-on): Remove math.
47220
47221         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
47222         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
47223         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
47224         (Depends-on): Remove math.
47225         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
47226         (Depends-on): Remove math.
47227
47228         * tests/test-round1.c: Include nan.h.
47229         (main): Use NaNd instead of NAN.
47230         * modules/round-tests (Files): Add tests/nan.h.
47231
47232         * tests/test-trunc1.c: Include nan.h.
47233         (main): Use NaNd instead of NAN.
47234         * modules/trunc-tests (Files): Add tests/nan.h.
47235
47236         * tests/test-roundf1.c: Include nan.h.
47237         (main): Use NaNf instead of NAN.
47238         * modules/roundf-tests (Files): Add tests/nan.h.
47239
47240         * tests/test-truncf1.c: Include nan.h.
47241         (main): Use NaNf instead of NAN.
47242         * modules/truncf-tests (Files): Add tests/nan.h.
47243
47244         * tests/test-ceilf1.c: Include nan.h.
47245         (main): Use NaNf instead of NAN.
47246         * modules/ceilf-tests (Files): Add tests/nan.h.
47247
47248         * tests/test-floorf1.c: Include nan.h.
47249         (main): Use NaNf instead of NAN.
47250         * modules/floorf-tests (Files): Add tests/nan.h.
47251
47252         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
47253         (main): Use NaNf instead of NAN.
47254         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
47255
47256         * tests/test-isnand.c: Include nan.h instead of <math.h>.
47257         (main): Use NaNd instead of NAN.
47258         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
47259
47260         * tests/test-frexp.c: Include nan.h.
47261         (main): Use NaNd instead of NAN.
47262         * modules/frexp-tests (Files): Add tests/nan.h.
47263
47264         * lib/isnan.c: Don't include <math.h>.
47265         (FUNC): Don't use NAN macro.
47266         * modules/isnand-nolibm (Depends-on): Remove math.
47267         * modules/isnanf-nolibm (Depends-on): Remove math.
47268         * modules/isnanl (Depends-on): Remove math.
47269         * modules/isnanl-nolibm (Depends-on): Remove math.
47270
47271         * tests/nan.h: New file.
47272
47273 2008-04-01  Eric Blake  <ebb9@byu.net>
47274
47275         Fix typos.
47276         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
47277         values to be the right type.
47278
47279         For now, cater to gnulib strtod inaccuracies.
47280         * tests/test-strtod.c (main): Allow 1-ulp error on expected
47281         fractional results.  While not as nice from a QoI perspective, it
47282         is a quicker patch than correctly implementing decimal to binary
47283         rounding.
47284
47285 2008-03-31  Eric Blake  <ebb9@byu.net>
47286
47287         Guarantee a definition of NAN.
47288         * lib/math.in.h (NAN): Define if missing.
47289         * tests/test-math.c (main): Test it.
47290         * doc/posix-headers/math.texi (math.h): Document this.
47291         * lib/isnan.c (rpl_isnand): Use it.
47292         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
47293         * tests/test-floorf1.c (NaN): Likewise.
47294         * tests/test-frexp.c (NaN): Likewise.
47295         * tests/test-isnand.c (NaN): Likewise.
47296         * tests/test-isnanf.c (NaN): Likewise.
47297         * tests/test-round1.c (NaN): Likewise.
47298         * tests/test-roundf1.c (NaN): Likewise.
47299         * tests/test-snprintf-posix.h (NaN): Likewise.
47300         * tests/test-sprintf-posix.h (NaN): Likewise.
47301         * tests/test-trunc1.c (NaN): Likewise.
47302         * tests/test-truncf1.c (NaN): Likewise.
47303         * tests/test-vasnprintf-posix.c (NaN): Likewise.
47304         * tests/test-vasprintf-posix.c (NaN): Likewise.
47305         * modules/isnand-nolibm (Depends-on): Add math.
47306         * modules/isnanf-nolibm (Depends-on): Likewise.
47307         * modules/isnanl (Depends-on): Likewise.
47308         * modules/isnanl-nolibm (Depends-on): Likewise.
47309         * modules/snprintf-posix-tests (Depends-on): Likewise.
47310         * modules/sprintf-posix-tests (Depends-on): Likewise.
47311         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
47312         * modules/vsprintf-posix-tests (Depends-on): Likewise.
47313         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
47314         * modules/vasprintf-posix-tests (Depends-on): Likewise.
47315
47316 2008-03-31  Bruno Haible  <bruno@clisp.org>
47317
47318         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
47319         * doc/posix-functions/strtod.texi: Likewise.
47320
47321 2008-03-31  Bruno Haible  <bruno@clisp.org>
47322
47323         * tests/test-strtod.c (main): Don't use C99 syntax.
47324
47325 2008-03-31  Bruno Haible  <bruno@clisp.org>
47326
47327         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
47328         Reported by Eric Blake.
47329
47330 2008-03-31  Jim Meyering  <meyering@redhat.com>
47331
47332         Don't compare actual signbit return values.
47333         * tests/test-strtod.c (main): Rather, compare only their
47334         zero/non-zero nature.
47335
47336 2008-03-31  Eric Blake  <ebb9@byu.net>
47337
47338         More strtod documentation.
47339         * doc/posix-functions/strtod.texi (strtod): Interpret more test
47340         failures as distinct bugs.
47341
47342 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
47343
47344         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
47345         Problem reported by Erik Benada in
47346         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
47347
47348 2008-03-30  Bruno Haible  <bruno@clisp.org>
47349
47350         * tests/test-strtod.c: Add comments about which assertion fails on which
47351         platform.
47352         * doc/posix-functions/strtod.texi: Add info about many more platforms.
47353
47354 2008-03-30  Eric Blake  <ebb9@byu.net>
47355
47356         Test signbit behavior on zeros.
47357         * tests/test-signbit.c (test_signbitf): Add tests for zero.
47358         (test_signbitd, test_signbitl): Likewise.
47359
47360         More strtod touchups.
47361         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
47362         sign of negative underflow, for now.  Use .5, not .1.
47363         * doc/posix-functions/strtod.texi (strtod): Mention these
47364         limitations.
47365         Reported by Jim Meyering.
47366
47367 2008-03-30  Bruno Haible  <bruno@clisp.org>
47368
47369         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
47370         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
47371
47372 2008-03-30  Bruno Haible  <bruno@clisp.org>
47373
47374         Avoid failure when attempting to return empty iconv results on some
47375         platforms.
47376         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
47377         allocation, don't report ENOMEM when the resulting string is empty.
47378
47379 2008-03-30  Bruno Haible  <bruno@clisp.org>
47380
47381         Fix buffer overrun.
47382         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
47383         Don't consider the width for tmp_length. Check count against tmp_length
47384         before doing the padding. Ensure enough allocation during padding.
47385
47386 2008-03-30  Eric Blake  <ebb9@byu.net>
47387
47388         strtod touchups.
47389         * lib/strtod.c (strtod): Avoid compiler warnings.
47390         Reported by Jim Meyering.
47391
47392 2008-03-30  Bruno Haible  <bruno@clisp.org>
47393
47394         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
47395         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
47396         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
47397         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
47398         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
47399         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
47400         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
47401         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
47402
47403         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
47404         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
47405         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
47406         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
47407         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
47408         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
47409         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
47410         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
47411
47412         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
47413         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
47414         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
47415         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
47416         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
47417         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
47418         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
47419         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
47420
47421         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
47422         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
47423
47424         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
47425         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
47426
47427         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
47428         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
47429
47430         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
47431         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
47432         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
47433
47434         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
47435         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
47436         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
47437
47438         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
47439         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
47440         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
47441
47442         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
47443         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
47444         * modules/vasprintf (Depends-on): Add EOVERFLOW.
47445
47446         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
47447         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
47448         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
47449         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
47450         (Depends-on): Add EOVERFLOW.
47451         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
47452         (Depends-on): Add EOVERFLOW.
47453         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
47454         (Depends-on): Add EOVERFLOW.
47455         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
47456         (Depends-on): Add EOVERFLOW.
47457         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
47458         (Depends-on): Add EOVERFLOW.
47459         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
47460         (Depends-on): Add EOVERFLOW.
47461         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
47462         (Depends-on): Add EOVERFLOW.
47463         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
47464         (Depends-on): Add EOVERFLOW.
47465
47466         * lib/sprintf.c (EOVERFLOW): Remove fallback.
47467         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
47468         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
47469
47470         * lib/snprintf.c (EOVERFLOW): Remove fallback.
47471         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
47472         * modules/snprintf (Depends-on): Add EOVERFLOW.
47473
47474         * lib/poll.c (EOVERFLOW): Remove fallback.
47475         * modules/poll (Depends-on): Add EOVERFLOW.
47476
47477         * lib/getugroups.c (EOVERFLOW): Remove fallback.
47478         * modules/getugroups (Depends-on): Add EOVERFLOW.
47479
47480         * lib/getdelim.c (EOVERFLOW): Remove fallback.
47481         * modules/getdelim (Depends-on): Add EOVERFLOW.
47482
47483         * lib/ftell.c (EOVERFLOW): Remove fallback.
47484         * modules/ftell (Depends-on): Add EOVERFLOW.
47485
47486         * lib/fprintf.c (EOVERFLOW): Remove fallback.
47487         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
47488         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
47489
47490         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
47491
47492         * modules/EOVERFLOW-tests: New file.
47493         * tests/test-EOVERFLOW.c: New file.
47494
47495         * modules/EOVERFLOW: New file.
47496         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
47497
47498 2008-03-30  Bruno Haible  <bruno@clisp.org>
47499
47500         Fix bug introduced on 2007-06-10.
47501         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
47502         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
47503
47504 2008-03-30  Bruno Haible  <bruno@clisp.org>
47505
47506         Improve freadseek's efficiency after ungetc.
47507         * lib/freadseek.c: Include freadahead.h.
47508         (freadptrinc): New function, extracted from freadseek.
47509         (freadseek): Use it in a loop. Use freadahead to determine the number
47510         of loop iterations.
47511         * modules/freadseek (Depends-on): Add freadahead.
47512         (configure.ac): Require AC_C_INLINE.
47513
47514 2008-03-30  Bruno Haible  <bruno@clisp.org>
47515
47516         * lib/freadseek.c (freadseek): Don't ignore the return value of
47517         freadptr.
47518
47519 2008-03-29  Eric Blake  <ebb9@byu.net>
47520
47521         Add hex float support.
47522         * modules/strtod (Depends-on): Add c-ctype.
47523         (Link): Mention POW_LIB.
47524         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
47525         whitespace between 'e' and exponent.
47526         * tests/test-strtod.c (main): Enable hex float tests.
47527         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
47528         now provides.
47529
47530         Document various strtod bugs, with some fixes.
47531         * doc/posix-functions/strtod.texi (strtod): Document bugs with
47532         "-0x", "inf", "nan", and hex constants.
47533         * doc/posix-functions/atof.texi (atof): Likewise.
47534         * modules/stdlib (Makefile.am): Support strtod.
47535         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
47536         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
47537         detect additional strtod bugs.
47538         * lib/stdlib.in.h (rpl_strtod): Add declarations.
47539         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
47540         bool where appropriate.  Parse 'inf' and 'nan'.
47541         * tests/test-strtod.c: New file.
47542         * modules/strtod (Depends-on): Add stdbool, stdlib.
47543         (configure.ac): Turn on module indicator.
47544         * modules/strtod-tests: New module.
47545
47546 2008-03-29  Eric Blake  <ebb9@byu.net>
47547
47548         Fix ftell on mingw.
47549         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
47550         * modules/ftell-tests (Depends-on): Add binary-io.
47551         * modules/ftello-tests (Depends-on): Likewise.
47552         * tests/test-ftell.c (main): Enhance test to cover behavior after
47553         ungetc.  Enforce binary mode.
47554         * tests/test-ftello.c (main): Likewise.
47555
47556         Pass test-freadseek on cygwin.
47557         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
47558         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
47559         ungetc buffer.
47560
47561         * tests/test-fflush2.c (main): Fix typo.
47562
47563 2008-03-29  Bruno Haible  <bruno@clisp.org>
47564
47565         * tests/test-fflush2.c (main): Temporarily disable the contents of
47566         this test.
47567         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
47568         Reported by Eric Blake.
47569
47570 2008-03-28  Simon Josefsson  <simon@josefsson.org>
47571
47572         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
47573         (GC_SHA224_DIGEST_SIZE): Add.
47574
47575         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
47576         (gc_hash_digest_length): Likewise.
47577         (gc_hash_buffer): Likewise.
47578
47579 2008-03-25  Bruno Haible  <bruno@clisp.org>
47580
47581         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
47582         detail which gettext release to use.
47583         Reported by Simon Josefsson.
47584
47585 2008-03-26  Jim Meyering  <meyering@redhat.com>
47586
47587         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
47588         * modules/gnumakefile (clean-GNUmakefile): Also, use
47589         test ... && ... || : syntax rather than if-then ... fi.
47590
47591         gnumakefile: Don't double-quote-expand $(VPATH) value.
47592         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
47593
47594 2008-03-24  Eric Blake  <ebb9@byu.net>
47595
47596         Alter GNUmakefile to install into top directory.
47597         * modules/maintainer-makefile: Split, and add dependency...
47598         * modules/gnumakefile: to this new module.
47599         * build-aux/GNUmakefile: Move...
47600         * top/GNUmakefile: ...here.
47601         * build-aux/maint.mk: Move...
47602         * top/maint.mk: ...here.
47603         * MODULES.html.sh (Support for maintaining...): Document new
47604         module.
47605
47606 2008-03-23  Bruno Haible  <bruno@clisp.org>
47607
47608         * gnulib-tool: New options --vc-files, --no-vc-files.
47609         (func_usage): Document them.
47610         (vc_files): New variable.
47611         (func_import): Consider vc_files.
47612         (func_create_testdir): Set vc_files to empty.
47613         Suggested by Jim Meyering and Karl Berry.
47614
47615 2008-03-23  Bruno Haible  <bruno@clisp.org>
47616
47617         Fix regex compilation error on HP-UX 11.
47618         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
47619         * modules/regex (Files): Add m4/mbstate_t.m4.
47620         Reported by Ton Voon <ton.voon@altinity.com>.
47621
47622 2008-03-23  Bruno Haible  <bruno@clisp.org>
47623
47624         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
47625
47626 2008-03-23  Eric Blake  <ebb9@byu.net>
47627             Bruno Haible  <bruno@clisp.org>
47628
47629         Install files from top/ in the destination directory.
47630         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
47631         augmentation also for the files from top/.
47632         (func_import, func_create_testdir): Rewrite file names:
47633         top/filename -> filename.
47634
47635 2008-03-23  Bruno Haible  <bruno@clisp.org>
47636
47637         Tweak "gnulib --version" output.
47638         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
47639
47640 2008-03-23  Bruno Haible  <bruno@clisp.org>
47641
47642         Tweak "gnulib --version" output.
47643         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
47644         rather than contents of ChangeLog, when possible.
47645
47646 2008-03-21  Eric Blake  <ebb9@byu.net>
47647
47648         More --version tweaks.
47649         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
47650         date of last ChangeLog entry.
47651
47652 2008-03-21  Jim Meyering  <meyering@redhat.com>
47653
47654         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
47655
47656 2008-03-20  Eric Blake  <ebb9@byu.net>
47657
47658         VPATH fix.
47659         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
47660
47661 2008-03-20  Simon Josefsson  <simon@josefsson.org>
47662
47663         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
47664         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
47665
47666 2008-03-20  Eric Blake  <ebb9@byu.net>
47667
47668         Sync GNUmakefile with coreutils.
47669         * build-aux/GNUmakefile (have-Makefile): Rename...
47670         (_have-Makefile): ...to this, for namespace consideration.
47671         (GNUmakefile.cfg): Include, if present.
47672         (_autoreconf): Define a default.
47673         (_is-dist-target): New rule for rebuilds to pick up intra-release
47674         version.
47675         (maint-cfg.mk): Rename...
47676         (cfg.mk): ...to this.
47677
47678 2008-03-18  Jim Meyering  <meyering@redhat.com>
47679
47680         New script and module: mktempd
47681         * MODULES.html.sh (maint+release support): Add mktempd.
47682         * build-aux/mktempd: New file.
47683         * modules/mktempd: New file.
47684
47685 2008-03-15  Jim Meyering  <meyering@redhat.com>
47686
47687         Undo last change.
47688         * lib/sha1.c, lib/md5.c: 63 != ~63.
47689         Reported by Andreas Schwab.
47690
47691         sha1.c, md5.c: Hoist a redundant expression.
47692         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
47693         "ctx->buflen" only once, before calling *_process_block.
47694         * lib/md5.c (md5_process_bytes): Likewise.
47695
47696 2008-03-14  Eric Blake  <ebb9@byu.net>
47697
47698         Bump copyright year in files generated by gnulib-tool.
47699         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
47700         gnulib-tool, rather than hard-coding it.
47701
47702         Fix 'gnulib-tool --version' output to work with git.
47703         * gnulib-tool (func_gnulib_dir): New function, extracted from...
47704         (startup): ...here.
47705         (func_version): Use it to invoke git-version-gen, rather than
47706         relying on CVS keyword expansion.  Modernize wording.
47707         (cvsdatestamp, last_checkin_date, version): Kill unused
47708         variables.
47709
47710 2008-03-12  Jim Meyering  <meyering@redhat.com>
47711
47712         Recognize optional cast of the argument to free.
47713         * build-aux/useless-if-before-free: Update regexps.
47714
47715         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
47716
47717 2008-03-11  Bruno Haible  <bruno@clisp.org>
47718
47719         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
47720         by a single package.
47721         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
47722         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
47723         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
47724         Reported by Sam Steingold <sds@gnu.org>.
47725
47726 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
47727
47728         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
47729         repositories.
47730
47731 2008-03-11  Bruno Haible  <bruno@clisp.org>
47732
47733         Avoid conflicts between local macro definitions.
47734         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
47735         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
47736
47737 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
47738             Bruno Haible  <bruno@clisp.org>
47739
47740         Make va_copy work with some version of xlc on AIX 5.1.
47741         * lib/stdarg.in.h: New file.
47742         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
47743         On AIX, use a <stdarg.h> file substitute.
47744         * modules/stdarg (Files): Add lib/stdarg.in.h.
47745         (Depends-on): Add include_next.
47746         (Makefile.am): Build a stdarg.h substitute if requested.
47747         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
47748
47749 2008-03-10  Bruno Haible  <bruno@clisp.org>
47750
47751         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
47752         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
47753         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
47754
47755 2008-03-10  Bruno Haible  <bruno@clisp.org>
47756
47757         * modules/stdlib (Depends-on): Add include_next, remove
47758         absolute-header.
47759
47760 2008-03-09  Bruno Haible  <bruno@clisp.org>
47761
47762         * lib/freadahead.h (freadahead): Document more precisely.
47763         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
47764         the sum of both buffer sizes.
47765         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
47766         * NEWS: Document the change.
47767
47768 2008-03-09  Bruno Haible  <bruno@clisp.org>
47769
47770         Extend freadptr to return also the buffer size.
47771         * lib/freadptr.h (freadptr): Add sizep argument.
47772         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
47773         (freadptr): Add sizep argument. Determine buffer size like freadahead
47774         does.
47775         * tests/test-freadptr.c: Don't include freadahead.h.
47776         (main): Adapt for new calling convention of freadptr.
47777         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
47778         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
47779         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
47780         tests/test-freadptr2.sh.
47781         (Depends): Remove freadahead.
47782         (TESTS): Add test-freadptr2.sh.
47783         (check_PROGRAMS): Add test-freadptr2.
47784
47785 2008-03-09  Bruno Haible  <bruno@clisp.org>
47786
47787         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
47788         Report and solution by Simon Josefsson.
47789
47790 2008-03-06  Bruno Haible  <bruno@clisp.org>
47791
47792         Make fflush after ungetc work on BSD platforms.
47793         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
47794         * tests/test-fflush2.c: New file.
47795         * tests/test-fflush2.sh: New file.
47796         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
47797         tests/test-fflush2.c.
47798         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
47799         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
47800
47801 2008-03-06  Eric Blake  <ebb9@byu.net>
47802
47803         Likewise for ftello.
47804         * modules/ftello (Dependencies): Add extensions.
47805         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
47806
47807 2008-03-06  Bruno Haible  <bruno@clisp.org>
47808
47809         * modules/fseeko (Dependencies): Add extensions.
47810         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
47811         Needed on glibc systems.
47812
47813 2008-03-06  Bruno Haible  <bruno@clisp.org>
47814
47815         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
47816         email address.
47817         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
47818
47819 2008-03-06  Bruno Haible  <bruno@clisp.org>
47820
47821         * users.txt: Add libgnupdf.
47822
47823 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
47824
47825         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
47826         (Header File Substitutes, Function Substitutes,
47827         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
47828         (Build robot for gnulib): Fix typo.
47829
47830 2008-03-06  Bruno Haible  <bruno@clisp.org>
47831
47832         * doc/gnulib-tool.texi (VCS Issues): Small updates.
47833         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
47834
47835 2008-03-06  Bruno Haible  <bruno@clisp.org>
47836
47837         * doc/func.texi: New file, extracted from doc/gnulib.texi.
47838         * doc/gnulib.texi: Include it.
47839
47840 2008-03-06  Simon Josefsson  <simon@josefsson.org>
47841
47842         * modules/func (License): Change license to unlimited; there was
47843         no LGPL parts in the module anyway.
47844
47845 2008-03-06  Simon Josefsson  <simon@josefsson.org>
47846
47847         * modules/__func__: Renamed to modules/func.
47848         * modules/__func__-tests: Renamed to modules/func-tests.
47849         * tests/test-__func__.c: Renamed to tests/test-func.c.
47850         * m4/__func__.m4: Renamed to m4/func.m4.
47851         * doc/gnulib.texi (__func__): Section renamed to func.
47852         Suggested by Eric Blake <ebb9@byu.net>.
47853
47854 2008-03-06  Simon Josefsson  <simon@josefsson.org>
47855
47856         * doc/gnulib.texi (__func__): Use C99 terminology when talking
47857         about __func__.  Make example self-contained.  Suggested by Eric
47858         Blake <ebb9@byu.net>.
47859
47860         * tests/test-__func__.c (main): Avoid extraneous () around __func.
47861         Suggested by Eric Blake <ebb9@byu.net>.
47862
47863 2008-03-06  Simon Josefsson  <simon@josefsson.org>
47864
47865         * modules/__func__: New file.
47866         * modules/__func__-tests: New file.
47867         * tests/test-__func__.c: New file.
47868         * m4/__func__.m4: New file.
47869         * doc/gnulib.texi (__func__): Document __func__ module.
47870
47871 2008-03-05  Simon Josefsson  <simon@josefsson.org>
47872
47873         * modules/byteswap (License): Re-license as LGPLv2+.
47874
47875 2008-03-05  Simon Josefsson  <simon@josefsson.org>
47876
47877         * doc/Makefile: Add pdf target.
47878
47879 2008-03-05  Simon Josefsson  <simon@josefsson.org>
47880
47881         * modules/inline (License): Use 'unlimited', since there are only
47882         *.m4 files in this module.
47883
47884 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
47885             Bruno Haible  <bruno@clisp.org>
47886
47887         Add support for HP C 7.1 on OpenVMS 8.3.
47888         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
47889
47890 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
47891
47892         Update VMS specifics.
47893         * lib/getopt.c [VMS]: Remove include of unixlib.h.
47894
47895 2008-03-02  Jim Meyering  <meyering@redhat.com>
47896
47897         Remove the last dependency on the "free" module.
47898         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
47899         Reported by Bob Proulx.
47900
47901         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
47902
47903         Remove useless "if" tests before free.  Deprecate "free" module.
47904         * doc/posix-functions/free.texi: Mention that this
47905         module is no longer useful.
47906         * modules/free (Notice): Say this module is obsolete.
47907         * modules/readutmp (Depends-on): Remove free.
47908         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
47909         * lib/putenv.c (putenv): Likewise.
47910         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
47911         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
47912         * tests/test-c-strcasestr.c (main): Likewise.
47913         * tests/test-c-strstr.c (main): Likewise.
47914         * tests/test-mbscasestr1.c (main): Likewise.
47915         * tests/test-mbscasestr2.c (main): Likewise.
47916         * tests/test-mbsstr1.c (main): Likewise.
47917         * tests/test-mbsstr2.c (main): Likewise.
47918         * tests/test-memmem.c (main): Likewise.
47919         * tests/test-strcasestr.c (main): Likewise.
47920         * tests/test-striconv.c (main): Likewise.
47921         * tests/test-striconveh.c (main): Likewise.
47922         * tests/test-striconveha.c (main): Likewise.
47923         * tests/test-strstr.c (main): Likewise.
47924
47925         * build-aux/git-version-gen: Adjust a comment and the Usage string.
47926
47927         bootstrap: sync from coreutils again
47928         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
47929
47930 2008-03-01  Jim Meyering  <meyering@redhat.com>
47931
47932         bootstrap: sync from coreutils
47933         * build-aux/bootstrap (update_po_files): Copy a .po file into place
47934         also when the target doesn't exist.
47935
47936 2008-03-01  Eric Blake  <ebb9@byu.net>
47937
47938         Fix bugs in last patch.
47939         * lib/memchr2.c (memchr2): Fix typo.
47940         * tests/test-memchr2.c: Test previous bug, and don't use GNU
47941         extension.
47942         Reported by Bruce Korb.
47943
47944         New module 'memchr2'.
47945         * modules/memchr2: New file.
47946         * modules/memchr2-tests: Likewise.
47947         * lib/memchr2.h: Likewise.
47948         * lib/memchr2.c: Likewise, based on memchr.c.
47949         * tests/test-memchr2.c: New test.
47950         * MODULES.html.sh (String handling): Add memchr2.
47951
47952 2008-02-29  Bruno Haible  <bruno@clisp.org>
47953
47954         * modules/freadseek-tests: New file.
47955         * tests/test-freadseek.sh: New file.
47956         * tests/test-freadseek.c: New file.
47957
47958         New module 'freadseek'.
47959         * modules/freadseek: New file.
47960         * lib/freadseek.h: New file.
47961         * lib/freadseek.c: New file.
47962         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
47963
47964 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
47965
47966         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
47967         wydawca.
47968
47969         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
47970         program_invocation_name and program_invocation_short_name are
47971         present.
47972
47973 2008-02-28  Bruno Haible  <bruno@clisp.org>
47974
47975         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
47976         * tests/test-freadptr.sh: Also test non-seekable stdin.
47977
47978 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
47979
47980         * build-aux/bootstrap (source_base, m4_base)
47981         (doc_base, tests_base): New variables.
47982         (gnulib_tool_options): Do not hardcode base directories, use
47983         the above variables instead.
47984
47985 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
47986
47987         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
47988
47989 2008-02-28  Bruno Haible  <bruno@clisp.org>
47990
47991         * modules/freadptr-tests: New file.
47992         * tests/test-freadptr.sh: New file.
47993         * tests/test-freadptr.c: New file.
47994
47995         New module 'freadptr'.
47996         * modules/freadptr: New file.
47997         * lib/freadptr.h: New file.
47998         * lib/freadptr.c: New file.
47999         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
48000
48001 2008-02-26  Karl Berry  <karl@freefriends.org>
48002
48003         Sync from Libtool:
48004         * libltdl/argz.c (argz_add, argz_count): New functions.
48005         * libltdl/argz.in.h: Declare them.
48006         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
48007
48008 2008-02-22  Bruno Haible  <bruno@clisp.org>
48009
48010         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
48011         is a pointer type.  Needed for HP-UX 10.
48012         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
48013         * doc/posix-functions/gmtime_r.texi: Likewise.
48014         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
48015
48016 2008-02-24  Bruno Haible  <bruno@clisp.org>
48017
48018         * modules/environ-tests: New file.
48019         * tests/test-environ.c: New file.
48020
48021         New module 'environ'.
48022         * modules/environ: New file.
48023         * lib/unistd.in.h (environ): New declaration.
48024         * m4/environ.m4: New file.
48025         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
48026         after use.
48027         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
48028         HAVE_DECL_ENVIRON.
48029         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
48030         HAVE_DECL_ENVIRON.
48031         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
48032         wrong claim that 'environ' is missing on some systems.
48033         * modules/execute (Depends-on): Add environ.
48034         * lib/execute.c (environ): Remove fallback declaration.
48035         * modules/pipe (Depends-on): Add environ.
48036         * lib/pipe.c (environ): Remove fallback declaration.
48037         * modules/setenv (Depends-on): Add environ.
48038         * lib/setenv.c (environ): Remove fallback declaration.
48039         * modules/unsetenv (Depends-on): Add environ.
48040         * lib/unsetenv.c (environ): Remove fallback declaration.
48041         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
48042         m4/environ.m4.
48043         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
48044         (gl_PREREQ_UNSETENV): Likewise.
48045
48046 2008-02-24  Bruno Haible  <bruno@clisp.org>
48047
48048         * doc/posix-functions/environ.texi: Document the MacOS X problem.
48049
48050 2008-02-20  Bob Proulx  <bob@proulx.com>
48051
48052         Enable use of older two part flavor 'git describe'.
48053         * build-aux/git-version-gen: If using the older two part flavor of
48054         git version then recreate the third part now present in the
48055         newer three part flavor of git describe.
48056
48057 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
48058
48059         * lib/fts.c (fts_build): Typo correction to comment.
48060
48061 2008-02-17  Bruno Haible  <bruno@clisp.org>
48062
48063         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
48064         generating no-op conflicts.
48065
48066 2008-02-17  Bruno Haible  <bruno@clisp.org>
48067
48068         Speed up by 10%.
48069         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
48070         result_entries, rather than an index-based loop.
48071
48072 2008-02-17  Bruno Haible  <bruno@clisp.org>
48073
48074         Speed up by 25%.
48075         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
48076         'hashcode_cached'.
48077         (entry_create): New function.
48078         (entry_hashcode): Use the cached hashcode if possible.
48079         (read_changelog_file, try_split_merged_entry): Use entry_create.
48080
48081 2008-02-17  Bruno Haible  <bruno@clisp.org>
48082
48083         Speed up from O(n^2) to O(n) for long ChangeLog files.
48084         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
48085         (read_changelog_file): Change implementation of entries_reversed list
48086         to rbtreehash.
48087         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
48088
48089 2008-02-17  Bruno Haible  <bruno@clisp.org>
48090
48091         New option --split-merged-entry.
48092         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
48093         (find_paragraph_end, try_split_merged_entry): New functions.
48094         (long_options): Add option --split-merged-entry.
48095         (usage): Document option --split-merged-entry.
48096         (main): Implement option --split-merged-entry.
48097         Reported by Eric Blake.
48098
48099 2008-02-17  Bruno Haible  <bruno@clisp.org>
48100
48101         * lib/git-merge-changelog.c: Include c-strstr.h.
48102         (main): Support the "git pull --rebase" situation.
48103         * modules/git-merge-changelog (Depends-on): Add c-strstr.
48104         Reported by Eric Blake.
48105
48106 2008-02-16  Eric Blake  <ebb9@byu.net>
48107
48108         Avoid doubling \ in common case of "c-maybe" quoting style.
48109         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
48110         eliding outer quotes.
48111         * lib/quotearg.h: Document this.
48112         * tests/test-quotearg.c (result_strings, inputs, results_g)
48113         (flag_results, locale_results): Test it by adding a new string to
48114         each test group.
48115         (compare_strings): Test new string.
48116
48117 2008-02-13  Eric Blake  <ebb9@byu.net>
48118
48119         Avoid trigraph quoting in default output.
48120         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
48121         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
48122         unless explicitly requested.
48123         * tests/test-quotearg.c (flag_results, main): Add additional tests.
48124
48125 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
48126
48127         Don't rely on signed integer overflowing to negative value.
48128         * lib/getugroups.c (getugroups): Include <limits.h>.
48129         Instead, compare against INT_MAX, and increment only if the test passes.
48130
48131 2008-02-13  Jim Meyering  <meyering@redhat.com>
48132         and Eric Blake  <ebb9@byu.net>
48133
48134         Avoid shadowing warning and compile errors on Linux.
48135         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
48136         forwarding macros on Linux.
48137         (dcgettext): Define a stub, for Linux.
48138         (results_g, main): Avoid warnings.
48139
48140 2008-02-12  Eric Blake  <ebb9@byu.net>
48141
48142         Silence warning in last patch.
48143         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
48144
48145         Quotearg part 4: add tests, fix c-maybe colon quoting.
48146         * lib/quotearg.h: Improve documentation.
48147         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
48148         escapes when adding outer quotes.  When quoting trigraphs, use
48149         valid C notation.  When quoting NUL, omit extra characters if next
48150         character is not digit.  Alter prototype.
48151         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
48152         callers.
48153         * modules/quotearg-tests: New module.
48154         * tests/test-quotearg.c: New test.
48155
48156 2008-02-07  Eric Blake  <ebb9@byu.net>
48157
48158         Quotearg part 3: add flag to control outer quote elision.
48159         * lib/quotearg.h (c_maybe_quoting_style): New style.
48160         (enum quoting_flags): Better documentation of flags.
48161         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
48162         c-maybe style.
48163         (quotearg_buffer_restyled): Handle new flag to elide outer
48164         quotes.
48165
48166         Quotearg part 2: add flag that can control NUL elision.
48167         * lib/quotearg.h (set_quoting_flags): New prototype.
48168         * lib/quotearg.c (struct quoting_options): Add flag field.
48169         (set_quoting_flags): New function.
48170         (quotearg_buffer_restyled): Add flags parameter.
48171         (quotearg_alloc_mem): Set the flag if length cannot be returned.
48172         (quotearg_n_options): Set the flag, since length cannot be
48173         returned.
48174         (quoting_options_from_style): Default flags correctly.
48175
48176         Quotearg part 1: more wrappers, restore quotearg_char state.
48177         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
48178         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
48179         (quotearg_colon_mem): New wrappers.
48180         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
48181         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
48182         functions.
48183         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
48184         (quotearg_colon_mem): New functions.
48185
48186 2008-02-11  Bruno Haible  <bruno@clisp.org>
48187
48188         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
48189         library in the current directory: it does not work with parallel make.
48190         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48191
48192 2008-02-11  Bruno Haible  <bruno@clisp.org>
48193
48194         * .gitattributes: New file.
48195
48196 2008-02-11  Jim Meyering  <meyering@redhat.com>
48197
48198         useless-if-before-free: Fix reversed exit values.
48199         * build-aux/useless-if-before-free: Use correct values
48200         for EXIT_MATCH and EXIT_NO_MATCH.
48201
48202         * build-aux/useless-if-before-free: Close stdout carefully.
48203
48204 2008-02-10  Bruno Haible  <bruno@clisp.org>
48205
48206         New module 'git-merge-changelog'.
48207         * modules/git-merge-changelog: New file.
48208         * lib/git-merge-changelog.c: New file.
48209
48210 2008-02-10  Jim Meyering  <meyering@redhat.com>
48211
48212         useless-if-before-free: New option: --list (-l).
48213
48214         useless-if-before-free: Don't exit immediately upon open failure.
48215         * build-aux/useless-if-before-free: Exit 2 for errors.
48216         Upon failure to open a file, don't exit immediately.
48217         Rather, just warn and continue with any remaining files.
48218
48219 2008-02-10  Bruno Haible  <bruno@clisp.org>
48220
48221         New abstract list operation 'node_set_value'.
48222         * lib/gl_list.h (gl_list_node_set_value): New function.
48223         (struct gl_list_implementation): New field node_set_value.
48224         * lib/gl_list.c (gl_list_node_set_value): New function.
48225         * lib/gl_array_list.c (gl_array_node_set_value): New function.
48226         (gl_array_list_implementation): Update.
48227         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
48228         (gl_carray_list_implementation): Update.
48229         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
48230         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
48231         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
48232         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
48233         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
48234         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
48235         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
48236         Update.
48237         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
48238         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
48239         (gl_sublist_list_implementation): Update.
48240
48241 2008-02-10  Bruno Haible  <bruno@clisp.org>
48242
48243         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
48244         Needed when ELEMENT is #defined to 'some_type *'.
48245
48246 2008-02-10  Jim Meyering  <meyering@redhat.com>
48247
48248         New script and module: useless-if-before-free
48249         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
48250         * build-aux/useless-if-before-free: New file.
48251         * modules/useless-if-before-free: New file.
48252
48253         * build-aux/gitlog-to-changelog: Use committer date, not author date.
48254
48255         xstrtol_error: Fix typo.
48256         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
48257         s/exit_failure/exit_status/.
48258
48259 2008-02-09  Jim Meyering  <meyering@redhat.com>
48260
48261         New script and module: gitlog-to-changelog
48262         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
48263         * modules/gitlog-to-changelog: New file.
48264         * build-aux/gitlog-to-changelog: New file.
48265
48266 2008-02-08  Jim Meyering  <meyering@redhat.com>
48267
48268         Avoid two "parameter unused" warnings.
48269         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
48270         Mark "st" as used.
48271
48272         Use "git COMMAND", not "git-COMMAND".
48273         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
48274         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
48275         * build-aux/git-version-gen: Use "git status", not "git-status".
48276
48277 2008-02-07  Bruno Haible  <bruno@clisp.org>
48278
48279         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
48280         Avoids a crash on Windows Vista.
48281         Reported by Adam Strzelecki <ono@java.pl> via
48282         Simon Josefsson <simon@josefsson.org>.
48283
48284 2008-02-06  Bruno Haible  <bruno@clisp.org>
48285
48286         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
48287         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
48288         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
48289         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
48290         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
48291         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48292         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
48293         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
48294         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
48295         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48296         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48297         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48298         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48299         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48300         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48301         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
48302         left-adjust flag.
48303         * tests/test-snprintf-posix.h (test_function): Likewise.
48304         * tests/test-sprintf-posix.h (test_function): Likewise.
48305         * tests/test-vasprintf-posix.c (test_function): Likewise.
48306         * doc/posix-functions/fprintf.texi: Update.
48307         * doc/posix-functions/printf.texi: Update.
48308         * doc/posix-functions/snprintf.texi: Update.
48309         * doc/posix-functions/sprintf.texi: Update.
48310         * doc/posix-functions/vfprintf.texi: Update.
48311         * doc/posix-functions/vprintf.texi: Update.
48312         * doc/posix-functions/vsnprintf.texi: Update.
48313         * doc/posix-functions/vsprintf.texi: Update.
48314         Reported by Peter Fales <psfales@alcatel-lucent.com>.
48315
48316 2008-02-06  Bruno Haible  <bruno@clisp.org>
48317
48318         Fix bug introduced on 2008-01-26.
48319         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
48320
48321 2008-02-06  Bruno Haible  <bruno@clisp.org>
48322
48323         Fix bug introduced on 2007-06-10.
48324         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
48325         !NEED_PRINTF_FLAG_ZERO.
48326
48327 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
48328
48329         getloadavg: use libperfstat on AIX5
48330         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
48331
48332 2008-02-03  Bruno Haible  <bruno@clisp.org>
48333
48334         * lib/diffseq.h: Add comments about required #includes.
48335         Reported by Michael Biggs <gnulib@doubleplum.net>.
48336
48337 2008-02-01  Bruno Haible  <bruno@clisp.org>
48338
48339         * users.txt: Add gnuit.
48340
48341 2008-01-31  Bruno Haible  <bruno@clisp.org>
48342
48343         * lib/md4.c (set_uint32): Mark as inline.
48344         * lib/md5.c (set_uint32): Likewise.
48345         * lib/sha1.c (set_uint32): Likewise.
48346         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
48347         * m4/md5.m4 (gl_MD5): Likewise.
48348         * m4/sha1.m4 (gl_SHA1): Likewise.
48349
48350 2008-01-31  Jim Meyering  <meyering@redhat.com>
48351
48352         Use "sizeof VAR", rather than a literal "4".
48353         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
48354         * lib/md4.c (md4_read_ctx): Likewise.
48355         * lib/sha1.c (sha1_read_ctx): Likewise.
48356
48357 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48358
48359         * tests/test-sha1.c: New file, based on test-md5.c.
48360
48361         * modules/crypto/sha1-tests: New file.
48362
48363 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48364
48365         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
48366
48367 2008-01-31  Jim Meyering  <meyering@redhat.com>
48368
48369         Prefer "sizeof v" over the equivalent "4".
48370         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
48371         * lib/md5.c (set_uint32): Likewise.
48372         * lib/sha1.c (set_uint32): Likewise.
48373
48374 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48375
48376         * lib/sha1.c (set_uint32): Mark function as static.
48377
48378 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48379
48380         md2: clarify comments to say that alignment is not required.
48381         * lib/md2.h: Remove warning about alignment in comment.
48382         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
48383         never been required.
48384
48385 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48386
48387         md4: adapt alignment constraint fix from sha1.
48388         * lib/md4.c (set_uint32): New function, from sha1.c
48389         (md4_read_ctx): Use it.
48390         (md4_finish_ctx): Doc fix.
48391         * lib/md4.h: Doc fix.
48392
48393 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48394
48395         md5: adapt alignment constraint fix from sha1.
48396         * lib/md5.c (set_uint32): New function, from sha1.c
48397         (md5_read_ctx): Use it.
48398         (md5_finish_ctx): Doc fix.
48399         * lib/md5.h: Doc fix.
48400
48401 2008-01-30  Peter Palfrader  <weasel@debian.org>
48402
48403         sha1: remove the result buffer alignment constraint
48404         * lib/sha1.c (set_uint32): New function.
48405         (sha1_read_ctx): Rewrite to remove the result buffer alignment
48406         constraint.
48407         (sha1_finish_ctx): Remove comment warning about alignment constraint.
48408         * lib/sha1.h: Likewise.
48409
48410 2008-01-30  Andreas Schwab  <schwab@suse.de>
48411             Bruno Haible  <bruno@clisp.org>
48412
48413         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
48414         correct definition of LDBL_MIN_EXP.
48415
48416 2008-01-30  Karl Berry  <karl@gnu.org>
48417
48418         * config/srclist-update: try to preserve x bit on updates.
48419         * config/srclistvars.sh: update for karl.
48420
48421 2008-01-29  Jim Meyering  <meyering@redhat.com>
48422
48423         vasnprintf.c: Avoid warning about unused label
48424         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
48425         "overflow" label definition and associated code with the
48426         same cpp condition that guards the sole use of that label.
48427
48428 2008-01-26  Bruno Haible  <bruno@clisp.org>
48429
48430         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
48431         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
48432         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
48433         * lib/isnanl-nolibm.h (isnanl): Likewise.
48434         Reported by Paul Eggert <eggert@cs.ucla.edu>.
48435
48436 2008-01-26  Bruno Haible  <bruno@clisp.org>
48437
48438         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
48439         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
48440
48441 2008-01-26  Bruno Haible  <bruno@clisp.org>
48442
48443         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
48444         GCC >= 4.0 built-in.
48445         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
48446
48447 2008-01-26  Bruno Haible  <bruno@clisp.org>
48448
48449         Rename isnan, applicable to 'double' only, to isnand.
48450         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
48451         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
48452         (configure.ac): Update.
48453         (Include): Replace "isnan.h" with "isnand.h".
48454         * m4/isnand.m4: Renamed from m4/isnan.m4.
48455         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
48456         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
48457         instead of isnan.c.
48458         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
48459         instead of HAVE_ISNAN_IN_LIBC.
48460         (isnand): Renamed from isnan.
48461         * lib/isnand.c: New file.
48462         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
48463         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
48464         (Makefile.am): Update.
48465         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
48466         Include isnand.h instead of isnan.h.
48467         (main): Test isnand instead of isnan.
48468         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
48469         isnan-nolibm.
48470         * modules/frexp (Depends-on): Likewise.
48471         * modules/frexp-tests (Depends-on): Likewise.
48472         * modules/frexp-nolibm (Depends-on): Likewise.
48473         * modules/frexp-nolibm-tests (Depends-on): Likewise.
48474         * modules/isfinite (Depends-on): Likewise.
48475         * modules/round-tests (Depends-on): Likewise.
48476         * modules/signbit (Depends-on): Likewise.
48477         * modules/signbit-tests (Depends-on): Likewise.
48478         * modules/snprintf-posix (Depends-on): Likewise.
48479         * modules/sprintf-posix (Depends-on): Likewise.
48480         * modules/trunc-tests (Depends-on): Likewise.
48481         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48482         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48483         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48484         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48485         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48486         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48487         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48488         * modules/vasnprintf-posix (Depends-on): Likewise.
48489         * modules/vasprintf-posix (Depends-on): Likewise.
48490         * modules/vfprintf-posix (Depends-on): Likewise.
48491         * modules/vsnprintf-posix (Depends-on): Likewise.
48492         * modules/vsprintf-posix (Depends-on): Likewise.
48493         * lib/frexp.c: Include isnand.h instead of isnan.h.
48494         (ISNAN): Set to isnand instead of isnan.
48495         * lib/isfinite.c: Include isnand.h instead of isnan.h.
48496         (gl_isfinited): Use isnand instead of isnan.
48497         * lib/signbitd.c: Include isnand.h instead of isnan.h.
48498         (gl_signbitd): Use isnand instead of isnan.
48499         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
48500         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
48501         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
48502         (main): Use isnand instead of isnan.
48503         * tests/test-round1.c: Include isnand.h.
48504         (main): Use isnand instead of isnan.
48505         * tests/test-round2.c: Include isnand.h instead of isnan.h.
48506         (ISNAN): Set to isnand instead of isnan.
48507         * tests/test-trunc1.c: Include isnand.h.
48508         (main): Use isnand instead of isnan.
48509         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
48510         (equal): Use isnand instead of isnan.
48511         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
48512         isnand-nolibm.
48513         * NEWS: Mention the change.
48514
48515 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
48516             Bruno Haible  <bruno@clisp.org>
48517
48518         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
48519         the GCC builtins for signbits are present and set
48520         REPLACE_SIGNBIT_USING_GCC if so.
48521         * lib/math.in.h (signbit): Define using GCC builtins if
48522         REPLACE_SIGNBIT_USING_GCC is set.
48523         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
48524         REPLACE_SIGNBIT_USING_GCC.
48525         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
48526
48527 2008-01-25  Jim Meyering  <meyering@redhat.com>
48528
48529         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
48530         * lib/poll.c: Include <config.h>, not "config.h".
48531         * tests/test-getaddrinfo.c: Likewise.
48532
48533 2008-01-25  Simon Josefsson  <simon@josefsson.org>
48534
48535         * modules/sockets-tests: New file.
48536
48537 2008-01-24  Simon Josefsson  <simon@josefsson.org>
48538
48539         * modules/sockets: New module, can be used to call WSA_Startup and
48540         WSA_Cleanup when needed.
48541
48542         * lib/sockets.h, lib/sockets.c: New files.
48543
48544         * m4/sockets.m4: New file.
48545
48546         * tests/test-sockets.c: New file.
48547
48548 2008-01-19  Bruno Haible  <bruno@clisp.org>
48549
48550         * doc/posix-headers: Renamed from doc/headers.
48551         * doc/posix-functions: Renamed from doc/functions.
48552         * doc/gnulib.texi: Update.
48553
48554 2008-01-19  Bruno Haible  <bruno@clisp.org>
48555
48556         * doc/glibc-functions/strcasestr.texi: Include contents of
48557         doc/functions/strcasestr.texi, fixing the list of platforms.
48558         * doc/functions/strcasestr.texi: Remove file.
48559
48560 2008-01-19  Bruno Haible  <bruno@clisp.org>
48561
48562         * doc/glibc-functions/memmem.texi: Include contents of
48563         doc/functions/memmem.texi.
48564         * doc/functions/memmem.texi: Remove file.
48565
48566 2008-01-18  Bruno Haible  <bruno@clisp.org>
48567
48568         * doc/glibc-functions/*.texi: New files.
48569         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
48570         to use the new files.
48571
48572 2008-01-17  Bruno Haible  <bruno@clisp.org>
48573
48574         * tests/test-gethostname.c (main): Fix printf statement.
48575
48576 2008-01-17  Simon Josefsson  <simon@josefsson.org>
48577
48578         * modules/gethostname-tests: New file.
48579
48580         * tests/test-gethostname.c: New file.
48581
48582 2008-01-17  Simon Josefsson  <simon@josefsson.org>
48583
48584         * lib/gethostname.c: Include string.h unconditionally, strncpy is
48585         used by the UNAME case.  Reported by Bruno Haible
48586         <bruno@clisp.org>.
48587
48588 2008-01-17  Eric Blake  <ebb9@byu.net>
48589
48590         Convert c-strcasestr to be more efficient.
48591         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
48592         (Depends-on): Add c-strcase, remove malloca, strnlen.
48593         * tests/test-c-strcasestr.c (main): Enhance test.
48594         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
48595
48596 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
48597
48598         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
48599         Use it in creating po/Makevars.
48600
48601 2008-01-15  Simon Josefsson  <simon@josefsson.org>
48602
48603         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
48604         Applications that requires it should initialize libgcrypt
48605         manually.
48606
48607 2008-01-16  Simon Josefsson  <simon@josefsson.org>
48608
48609         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
48610
48611 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
48612
48613         Fix problem with getdate on mingw32 reported by Simon Josefsson
48614         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
48615         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
48616         tzname", when deciding whether to declare tzname.
48617         * lib/strftime.c (tzname): Likewise.
48618
48619 2008-01-15  Bruno Haible  <bruno@clisp.org>
48620
48621         Work around a MacOS X 10.5 bug in frexpl().
48622         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
48623         * doc/functions/frexpl.texi: Document the bug.
48624         Reported by Elias Pipping <pipping@gentoo.org>.
48625
48626 2008-01-14  Eric Blake  <ebb9@byu.net>
48627
48628         Touch up previous patch.
48629         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
48630         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
48631
48632         Convert strcasestr module to use Two-Way algorithm.
48633         * modules/strcasestr-simple: New module, based on the old
48634         strcasestr, but with Two-Way rather than KMP.
48635         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
48636         * lib/string.in.h (rpl_strcasestr): Declare.
48637         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
48638         performance.
48639         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
48640         * modules/string (Makefile.am): Support strcasestr.
48641         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
48642         * modules/strcasestr-tests (Depends-on): Check for alarm.
48643         * tests/test-strcasestr.c: Augment test.
48644         * lib/str-two-way.h: Clean up stray macro.
48645         * NEWS: Document new module.
48646         * MODULES.html.sh (string handling): Likewise.
48647         * doc/functions/strcasestr.texi: New file.
48648         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
48649         here, since it is not a POSIX function.
48650
48651 2008-01-14  Colin Watson  <cjwatson@debian.org>
48652             Bruno Haible  <bruno@clisp.org>
48653
48654         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
48655         works fine; if not, set REPLACE_STRSIGNAL.
48656         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
48657         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
48658         REPLACE_STRSIGNAL.
48659         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
48660         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
48661         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
48662
48663 2008-01-14  Bruno Haible  <bruno@clisp.org>
48664
48665         * modules/strsignal (Include): Change to <string.h>.
48666
48667 2008-01-14  Colin Watson  <cjwatson@debian.org>
48668
48669         * modules/argp (Notice): Add a notice recommending to change
48670         XGETTEXT_OPTIONS.
48671         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
48672
48673 2008-01-13  Colin Watson  <cjwatson@debian.org>
48674
48675         * modules/strsignal-tests: New file.
48676         * tests/test-strsignal.c: New file.
48677
48678         * lib/strsignal.c: New file, from glibc with modifications.
48679         * lib/siglist.h: New file, from glibc with modifications.
48680         * lib/string.in.h (strsignal): New declaration.
48681         * m4/strsignal.m4: New file.
48682         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
48683         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
48684         * modules/strsignal: New file.
48685         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
48686         HAVE_DECL_STRSIGNAL.
48687
48688 2008-01-13  Bruno Haible  <bruno@clisp.org>
48689
48690         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
48691         locale encoding is not ASCII. Needed for OpenBSD 4.0.
48692         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
48693         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
48694
48695 2008-01-13  Bruno Haible  <bruno@clisp.org>
48696
48697         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
48698         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
48699         * lib/argp.h (__attribute__): Likewise.
48700         * lib/c-stack.c (__attribute__): Likewise.
48701         * lib/error.h (__attribute__): Likewise.
48702         * lib/fts.c (__attribute__): Likewise.
48703         * lib/openat.h (__attribute__): Likewise.
48704         * lib/stdio.in.h (__attribute__): Likewise.
48705         * lib/string.in.h (__attribute__): Likewise.
48706         * lib/utimens.c (__attribute__): Likewise.
48707         * lib/vasnprintf.h (__attribute__): Likewise.
48708         * lib/xalloc.h (__attribute__): Likewise.
48709         * lib/xprintf.h (__attribute__): Likewise.
48710         * lib/xstrtol.h (__attribute__): Likewise.
48711         * lib/xvasprintf.h (__attribute__): Likewise.
48712
48713 2008-01-12  Bruno Haible  <bruno@clisp.org>
48714
48715         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
48716         * doc/glibc-headers/a.out.texi: New file.
48717         * doc/glibc-headers/aliases.texi: New file.
48718         * doc/glibc-headers/alloca.texi: New file.
48719         * doc/glibc-headers/ar.texi: New file.
48720         * doc/glibc-headers/argp.texi: New file.
48721         * doc/glibc-headers/argz.texi: New file.
48722         * doc/glibc-headers/byteswap.texi: New file.
48723         * doc/glibc-headers/crypt.texi: New file.
48724         * doc/glibc-headers/endian.texi: New file.
48725         * doc/glibc-headers/envz.texi: New file.
48726         * doc/glibc-headers/err.texi: New file.
48727         * doc/glibc-headers/error.texi: New file.
48728         * doc/glibc-headers/execinfo.texi: New file.
48729         * doc/glibc-headers/fpu_control.texi: New file.
48730         * doc/glibc-headers/fstab.texi: New file.
48731         * doc/glibc-headers/fts.texi: New file.
48732         * doc/glibc-headers/getopt.texi: New file.
48733         * doc/glibc-headers/ieee754.texi: New file.
48734         * doc/glibc-headers/ifaddrs.texi: New file.
48735         * doc/glibc-headers/libintl.texi: New file.
48736         * doc/glibc-headers/mcheck.texi: New file.
48737         * doc/glibc-headers/mntent.texi: New file.
48738         * doc/glibc-headers/obstack.texi: New file.
48739         * doc/glibc-headers/paths.texi: New file.
48740         * doc/glibc-headers/printf.texi: New file.
48741         * doc/glibc-headers/pty.texi: New file.
48742         * doc/glibc-headers/resolv.texi: New file.
48743         * doc/glibc-headers/shadow.texi: New file.
48744         * doc/glibc-headers/sysexits.texi: New file.
48745         * doc/glibc-headers/ttyent.texi: New file.
48746
48747 2008-01-12  Jim Meyering  <meyering@redhat.com>
48748
48749         announce-gen: emit Gnulib's git-based version string.
48750         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
48751         New option --gnulib-version=V, where V is expected to be
48752         the output of running git describe in the gnulib directory.
48753         (get_tool_versions): Request feedback on xdelta.  I suspect it's
48754         not useful, and plan to stop publishing an xdelta file with each
48755         coreutils release.
48756
48757         * build-aux/announce-gen: Also check for lzma-compressed files.
48758
48759 2008-01-11  Bruno Haible  <bruno@clisp.org>
48760
48761         * tests/test-memmem.c (main): Increase maximum allowed time.
48762         * tests/test-strstr.c (main): Likewise.
48763
48764 2008-01-11  Bruno Haible  <bruno@clisp.org>
48765
48766         * doc/functions/memmem.texi: Add more precisions about platforms.
48767         * doc/functions/strstr.texi: Likewise.
48768
48769 2008-01-10  Eric Blake  <ebb9@byu.net>
48770
48771         * m4/strstr.m4: Delete cruft from copy-n-paste.
48772         Reported by Bruno Haible.
48773
48774 2008-01-10  Bruno Haible  <bruno@clisp.org>
48775
48776         Make c-strstr rely on strstr.
48777         * lib/c-strstr.c: Don't include str-kmp.h.
48778         (c_strstr): Define in terms of strstr.
48779         * modules/c-strstr (Files): Remove lib/str-kmp.h.
48780         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
48781
48782 2008-01-10  Bruno Haible  <bruno@clisp.org>
48783
48784         * doc/gnulib.texi (String Functions in C Locale): New section.
48785         * doc/c-ctype.texi: New file.
48786         * doc/c-strcase.texi: New file.
48787         * doc/c-strcaseeq.texi: New file.
48788         * doc/c-strcasestr.texi: New file.
48789         * doc/c-strstr.texi: New file.
48790         * doc/c-strtod.texi: New file.
48791         * doc/c-strtold.texi: New file.
48792
48793 2008-01-10  Eric Blake  <ebb9@byu.net>
48794
48795         * lib/relocatable.h: Fix a comment.
48796
48797 2008-01-10  Eric Blake  <ebb9@byu.net>
48798
48799         Share two-way algorithm.
48800         * lib/str-two-way.h: New file, merged from...
48801         * lib/memmem.c: ...here...
48802         * lib/strstr.c: ...and here.
48803         * modules/memmem (Files): Use it.
48804         * modules/strstr (Files): Likewise.
48805
48806         Avoid quadratic strstr implementations.
48807         * lib/strstr.c: New file.
48808         * m4/strstr.m4: Likewise.
48809         * modules/strstr: Likewise.
48810         * modules/strstr-tests: Likewise.
48811         * tests/test-strstr.c: Likewise.
48812         * lib/string.in.h (rpl_strstr): Declare.
48813         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
48814         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
48815         * modules/string (Makefile.am): Likewise.
48816         * MODULES.html.sh (string handling): Mention new module.
48817         * doc/functions/strstr.texi (strstr): Document the bug.
48818
48819 2008-01-10  Bruno Haible  <bruno@clisp.org>
48820
48821         * lib/relocatable.h (relocate): State whether result is freshly
48822         allocated or not.
48823         * lib/relocatable.c (relocate): Return a freshly allocated string
48824         instead of a pointer to a privately held string.
48825         Reported by Sylvain Beucler <beuc@gnu.org>.
48826
48827 2008-01-10  Colin Watson  <cjwatson@debian.org>
48828
48829         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
48830         s/S_ISNLK/S_ISLNK/.
48831
48832 2008-01-09  Bruno Haible  <bruno@clisp.org>
48833
48834         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
48835         and other files.
48836         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
48837         if it's only a guess.
48838         * modules/memmem: Simplify by depending on memmem-simple.
48839
48840 2008-01-09  Bruno Haible  <bruno@clisp.org>
48841
48842         Work around OpenBSD 4.0 tdelete() bug.
48843         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
48844         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
48845         macros and don't redefine the enum values.
48846         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
48847         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
48848         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
48849
48850 2008-01-09  Bruno Haible  <bruno@clisp.org>
48851
48852         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
48853         (main): Don't perform the tests if setlocale did not install a UTF-8
48854         locale. Needed on OpenBSD 4.0.
48855         * modules/wcwidth-tests (Depends-on): Add localcharset.
48856
48857 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
48858
48859         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
48860         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
48861         * NEWS: announce this.
48862         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
48863
48864 2008-01-09  Simon Josefsson  <simon@josefsson.org>
48865         and Eric Blake  <ebb9@byu.net>
48866
48867         Add memmem-simple module.
48868         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
48869         (gl_FUNC_MEMMEM): Separate performance from presence checks.
48870         * modules/memmem-simple: New file.
48871         * modules/memmem (Description): Tweak.
48872         * MODULES.html.sh (string handling): Mention new module.
48873         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
48874         addressed by memmem-simple.
48875         * NEWS: Document the difference.
48876
48877 2008-01-09  Eric Blake  <ebb9@byu.net>
48878
48879         Give gcc some memmem optimization hints.
48880         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
48881         (strcasestr): Declare as pure.
48882         * modules/memmem (Maintainer): Claim my implementation.
48883
48884 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48885
48886         Support AIX 6.1 and higher.
48887         * build-aux/config.libpath: Likewise.
48888         * build-aux/config.rpath: Likewise.
48889
48890 2008-01-08  Jim Meyering  <meyering@redhat.com>
48891             Bruno Haible  <bruno@clisp.org>
48892
48893         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
48894         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
48895         Reported by Peter Fales in
48896         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
48897
48898 2008-01-08  Bruno Haible  <bruno@clisp.org>
48899
48900         * modules/unictype/category-of (Depends-on): Add
48901         unictype/category-none.
48902         * modules/unictype/category-and-tests (Depends-on): Add
48903         unictype/category-{L,N,Lu,Nd}.
48904         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
48905         * modules/unictype/category-or-tests (Depends-on): Add
48906         unictype/category-{L,N}.
48907         * modules/unictype/category-name-tests (Depends-on): Add
48908         unictype/category-{Z,Nl}.
48909         Reported by Simon Josefsson.
48910
48911 2008-01-08  Bruno Haible  <bruno@clisp.org>
48912
48913         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
48914         convention better.
48915         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
48916         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
48917         Reported by Peter Miller <millerp@canb.auug.org.au>.
48918
48919 2008-01-08  Eric Blake  <ebb9@byu.net>
48920
48921         Rewrite memmem to guarantee linear complexity without malloc.
48922         * lib/memmem.c (memmem): Use Two-Way rather than
48923         Knuth-Morris-Pratt, to allow O(1) space usage.
48924         (critical_factorization, two_way_short_needle)
48925         (two_way_long_needle): New functions.
48926         (knuth_morris_pratt): Delete.
48927         * modules/memmem (Depends-on): No longer need malloca or stdbool.
48928         Add stdint.
48929         * tests/test-memmem.c (main): Add tests for periodic needle and
48930         sublinear performance.
48931         * doc/functions/memmem.texi (memmem): Document other deficiencies
48932         in cygwin and older glibc.
48933
48934 2008-01-08  Bruno Haible  <bruno@clisp.org>
48935
48936         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
48937         augmentation.
48938
48939 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
48940
48941         Add a configure time option: --disable-acl.
48942         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
48943         AC_ARG_ENABLE(acl).
48944
48945 2008-01-06  Simon Josefsson  <simon@josefsson.org>
48946
48947         * tests/test-localename.c: Don't include obsolete "setenv.h".
48948
48949         * modules/localename-tests (Depends-on): Need unsetenv.
48950
48951 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48952
48953         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
48954
48955 2008-01-06  Colin Watson  <cjwatson@debian.org>
48956
48957         * users.txt: Add man-db.
48958
48959 2008-01-07  Bruno Haible  <bruno@clisp.org>
48960
48961         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
48962         previous section name.
48963
48964 2008-01-07  Bruno Haible  <bruno@clisp.org>
48965
48966         * lib/progname.c (set_program_name): Don't strip off a leading
48967         "lt-" prefix outside a .libs directory.
48968         Suggested by Paul Eggert.
48969
48970 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
48971             Bruno Haible  <bruno@clisp.org>
48972
48973         Improve memory cleanup in 'relocatable' module.
48974         * lib/relocatable.h (compute_curr_prefix): Change return type to
48975         'char *'.
48976         * lib/relocatable.c (compute_curr_prefix): Change return type to
48977         'char *'. Free curr_installdir after use.
48978         (relocate): Free curr_prefix_better after use.
48979         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
48980
48981 2008-01-01  Bruno Haible  <bruno@clisp.org>
48982
48983         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
48984         failure on older glibc systems.
48985         Reported by Peter Fales <psfales@alcatel-lucent.com>.
48986
48987 2008-01-05  Eric Blake  <ebb9@byu.net>
48988
48989         Avoid quadratic system memmem.
48990         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
48991         Reported by Ralf Wildenhues.
48992
48993         Fix memmem test for mingw.
48994         * modules/memmem-tests (configure.ac): Check for alarm.
48995         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
48996         it.
48997         * doc/functions/memmem.texi: New file.
48998         * doc/gnulib.texi (Function Substitutes): Add memmem.
48999         Reported by Bruno Haible.
49000
49001 2008-01-04  Bruno Haible  <bruno@clisp.org>
49002
49003         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
49004         Require gl_HEADER_STRINGS_H_DEFAULTS, not
49005         gl_HEADER_STRING_H_DEFAULTS.
49006
49007 2008-01-04  Eric Blake  <ebb9@byu.net>
49008
49009         Shorten duration of memmem test.
49010         * tests/test-memmem.c (main): Use alarm to declare failure if test
49011         is taking too long.
49012         Reported by Ralf Wildenhues.
49013
49014 2007-12-21  Simon Josefsson  <simon@josefsson.org>
49015
49016         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
49017         string, needed by strerror.
49018
49019 2008-01-03  Colin Watson  <cjwatson@debian.org>
49020             Bruno Haible  <bruno@clisp.org>
49021
49022         * doc/gnulib-tool.texi (Localization): New section.
49023
49024 2008-01-02  Bruno Haible  <bruno@clisp.org>
49025
49026         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
49027         variables to 'unsigned char *' type.
49028         Reported by Paul Eggert.
49029
49030 2008-01-02  Jim Meyering  <jim@meyering.net>
49031
49032         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
49033
49034 2007-12-31  Jim Meyering  <jim@meyering.net>
49035
49036         Avoid use of private FTS type name.
49037         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
49038
49039 2007-12-30  Karl Berry  <karl@gnu.org>
49040
49041         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
49042         work around defect in Texinfo and/or the standalone Info browser.
49043
49044 2007-12-30  Bruno Haible  <bruno@clisp.org>
49045
49046         Unify 5 copies of the KMP code.
49047         * lib/str-kmp.h: New file.
49048         * lib/c-strcasestr.c: Include str-kmp.h.
49049         (knuth_morris_pratt): Remove function.
49050         (c_strcasestr): Update.
49051         * lib/c-strstr.c: Include str-kmp.h.
49052         (knuth_morris_pratt): Remove function.
49053         (c_strcasestr): Update.
49054         * lib/mbscasestr.c: Include str-kmp.h.
49055         (knuth_morris_pratt_unibyte): Remove function.
49056         * lib/mbsstr.c: Include str-kmp.h.
49057         (knuth_morris_pratt_unibyte): Remove function.
49058         * lib/strcasestr.c: Include str-kmp.h.
49059         (knuth_morris_pratt): Remove function.
49060         (strcasestr): Update.
49061         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
49062         * modules/c-strstr (Files): Likewise.
49063         * modules/mbscasestr (Files): Likewise.
49064         * modules/mbsstr (Files): Likewise.
49065         * modules/strcasestr (Files): Likewise.
49066         Suggested by Paul Eggert.
49067
49068 2007-12-30  Bruno Haible  <bruno@clisp.org>
49069
49070         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
49071         defined.
49072
49073 2007-12-30  Bruno Haible  <bruno@clisp.org>
49074
49075         * lib/xmalloca.h: Include xalloc.h.
49076         (xnmalloca): New macro.
49077
49078 2007-12-30  Bruno Haible  <bruno@clisp.org>
49079
49080         * lib/malloca.h (nmalloca): New macro.
49081         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
49082         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
49083         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
49084         knuth_morris_pratt_multibyte): Likewise.
49085         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
49086         knuth_morris_pratt_multibyte): Likewise.
49087         * lib/memmem.c (knuth_morris_pratt): Likewise.
49088         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
49089
49090 2007-12-25  Bruno Haible  <bruno@clisp.org>
49091
49092         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
49093         * lib/glob.c: Don't include openat.h.
49094         (link_exists2_p): Add back the code that deals with the
49095         !GLOB_ALTDIRFUNC case.
49096         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
49097         let it do the filename concatenation.
49098         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
49099         * modules/glob (Depends-on): Remove openat.
49100
49101 2007-12-31  Bruno Haible  <bruno@clisp.org>
49102
49103         * modules/dirfd (License): Change to LGPLv2+.
49104         Approved by Jim Meyering.
49105
49106 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
49107
49108         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
49109         when multiplying M by sizeof (size_t).
49110
49111 2007-12-10  Martin Lambers  <marlam@marlam.de>
49112
49113         Override getpagesize on mingw.
49114         * lib/getpagesize.c: New file.
49115         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
49116         * modules/getpagesize (Files): Add lib/getpagesize.c.
49117         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
49118         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
49119         REPLACE_GETPAGESIZE.
49120         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
49121
49122 2007-12-25  Bruno Haible  <bruno@clisp.org>
49123
49124         * modules/localcharset (Notice): New field.
49125         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
49126         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
49127
49128 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
49129             Bruno Haible  <bruno@clisp.org>
49130
49131         Avoid using the syntax symbol() in formatted documentation.
49132         * MODULES.html.sh (func_module): When replacing symbol() with a
49133         hyperlink, remove the parentheses. Show an error if some remain.
49134         Recognize and render the '...' syntax.
49135         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
49136         Rework. Add paragraph about GCC's inlining.
49137         * doc/alloca.texi: Likewise.
49138         * doc/error.texi: Remove parentheses from symbol reference.
49139         * doc/gnulib-intro.texi: Likewise.
49140         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
49141         * modules/fnmatch (Description): Reword to say "the ... function".
49142         * modules/full-read (Description): Likewise.
49143         * modules/full-write (Description): Likewise.
49144         * modules/safe-read (Description): Likewise.
49145         * modules/safe-write (Description): Likewise.
49146         * modules/strchrnul (Description): Likewise.
49147         * modules/trim (Description): Likewise.
49148         * modules/error (Description): Remove parentheses from symbol
49149         references.
49150         * modules/verror (Description): Likewise.
49151         Reported by Karl Berry.
49152
49153 2007-12-25  Bruno Haible  <bruno@clisp.org>
49154
49155         Fixup after 2007-10-16 commit.
49156         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
49157
49158 2007-12-24  Bruno Haible  <bruno@clisp.org>
49159
49160         Make --enable-relocatable work with DESTDIR.
49161         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
49162         to compute installdir from destprog.
49163         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
49164         also set the RELOC_DESTDIR variable.
49165         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
49166
49167 2007-12-24  Bruno Haible  <bruno@clisp.org>
49168
49169         Fix link error due to xalloc_die().
49170         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
49171         of xreadlink.
49172         * lib/relocwrapper.c: Update comments.
49173         * build-aux/install-reloc: Remove xreadlink.c from file list.
49174         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
49175         xreadlink.c.
49176         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
49177
49178 2007-12-24  Bruno Haible  <bruno@clisp.org>
49179
49180         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
49181         * lib/setenv.h: Remove file.
49182         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
49183         lib/setenv.h.
49184         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
49185         (Depends-on): Add stdlib.
49186         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
49187         gl_FUNC_UNSETENV.
49188         (Include): Replace setenv.h with <stdlib.h>.
49189         * modules/unsetenv: New file.
49190         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
49191         * lib/unsetenv.c: Include <stdlib.h> first.
49192         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
49193         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
49194         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
49195         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
49196         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
49197         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
49198         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
49199         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
49200         * doc/functions/unsetenv.texi: Update.
49201         * modules/xsetenv (Depends-on): Add unsetenv.
49202         * modules/getdate (Depends-on): Likewise.
49203         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
49204         * lib/xsetenv.c: Don't include setenv.h.
49205         * lib/getdate.y: Likewise.
49206         * lib/relocwrapper.c: Likewise.
49207         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
49208         (Depends-on): Add stdlib.
49209         * NEWS: Mention the changes.
49210         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
49211
49212 2007-12-23  Bruno Haible  <bruno@clisp.org>
49213
49214         * lib/memmem.c (memmem): Use lowercase variable names. Tab
49215         indentation.
49216
49217 2007-12-23  Bruno Haible  <bruno@clisp.org>
49218
49219         * lib/c-strcasestr.c: Add more comments.
49220         * lib/c-strstr.c: Likewise.
49221         * lib/mbscasestr.c: Likewise.
49222         * lib/mbsstr.c: Likewise.
49223         * lib/strcasestr.c: Likewise.
49224         * lib/memmem.c: Likewise.
49225
49226 2007-12-23  Bruno Haible  <bruno@clisp.org>
49227
49228         * tests/test-memmem.c: Include <string.h> first.
49229
49230 2007-12-22  Bruno Haible  <bruno@clisp.org>
49231
49232         * gnulib-tool (func_create_testdir): Change $auxdir while generating
49233         the contents of $testsbase.
49234         Reported by Ralf Wildenhues.
49235
49236 2007-12-22  Bruno Haible  <bruno@clisp.org>
49237
49238         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
49239         two variables local_ldadd_before, local_ldadd_last.
49240
49241 2007-12-20  Eric Blake  <ebb9@byu.net>
49242
49243         Work around circular library issue when cross-compiling.
49244         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
49245         that progname.o does not need to pull in rpl_memcmp.
49246
49247 2007-12-19  Eric Blake  <ebb9@byu.net>
49248
49249         Fix memmem to avoid O(n^2) worst-case complexity.
49250         * lib/memmem.c (knuth_morris_pratt): New function.
49251         (memmem): Use it if first few naive iterations fail.
49252         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
49253         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
49254         * modules/memchr (License): Likewise.
49255         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
49256         malloca.
49257         * tests/test-memmem.c: Rewrite, borrowing ideas from
49258         test-mbsstr1.c; the old version wouldn't even compile!
49259         * modules/memmem-tests: New file.
49260         * lib/string.in.h (rpl_memmem): Add declaration.
49261         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
49262         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
49263         REPLACE_MEMMEM.
49264
49265 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
49266
49267         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
49268         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
49269         before any system include files, and undef after them all.  This
49270         should fix a problem on VMS reported by John E. Malmberg in
49271         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
49272
49273 2007-12-17  Eric Blake  <ebb9@byu.net>
49274
49275         Revert addition of verify, for BSD/OS.
49276         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
49277         can't handle large files, for the sake of obsolete platforms.
49278         * modules/fseeko (Depends-on): Remove verify.
49279         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
49280         * doc/functions/ftello.texi (ftello): Likewise.
49281         * doc/functions/fgetpos.texi (fgetpos): Likewise.
49282         Reported by Larry Jones.
49283
49284 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
49285
49286         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
49287         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
49288
49289 2007-12-17  Jim Meyering  <meyering@redhat.com>
49290
49291         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
49292         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
49293         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
49294         * modules/getcwd (Depends-on): Add openat.
49295         Reported by Petr Salinger.
49296
49297 2007-12-17  Bruno Haible  <bruno@clisp.org>
49298
49299         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
49300         avoid a segmentation fault of the configure test on x86_64 systems.
49301
49302 2007-12-15  Jim Meyering  <meyering@redhat.com>
49303
49304         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
49305
49306 2007-12-13  Eric Blake  <ebb9@byu.net>
49307
49308         Another fseek test.
49309         * tests/test-fseek.c (main): Also test ungetc handling.
49310         * tests/test-fseeko.c (main): Likewise.
49311         * modules/fseeko (Depends-on): Add verify.
49312         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
49313         large.
49314         Reported by Larry Jones.
49315
49316         Fix fseeko on mingw.
49317         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
49318         seek.
49319
49320         Beef up fseek tests.
49321         * tests/test-fseek.c (main): Also test eof handling.
49322         * tests/test-fseeko.c (main): Likewise.
49323         Reported by Larry Jones.
49324
49325 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
49326
49327         Fix fseeko on BSD-based platforms.
49328         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
49329         successful seek.
49330
49331 2007-12-12  Eric Blake  <ebb9@byu.net>
49332
49333         Allow circular dependency of separate libtests.a
49334         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
49335         when use_libtests.
49336
49337 2007-12-11  Eric Blake  <ebb9@byu.net>
49338
49339         Fix bug with -0.0L in previous patch.
49340         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
49341         * tests/test-isnan.c (main): Also test on zeroes.
49342         * tests/test-isnanf.c (main): Likewise.
49343         * tests/test-isnanl.h (main): Likewise.
49344
49345         Detect pseudo-denormals on x86 even when cross-compiling.
49346         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
49347         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
49348         invalid bit patterns that happen to satisfy ==.
49349
49350         Avoid link failures with separate libtests.a.
49351         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
49352         last, to satisfy circular dependencies.
49353
49354 2007-12-11  Eric Blake  <ebb9@byu.net>
49355         and Bruno Haible  <bruno@clisp.org>
49356
49357         Fix OpenBSD 4.0 <float.h> handling of long double.
49358         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
49359         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
49360         * doc/headers/float.texi (float.h): Document OpenBSD bug.
49361
49362 2007-12-11  Jim Meyering  <meyering@redhat.com>
49363
49364         * users.txt: Add libvirt.
49365
49366         Support versions of autoconf prior to 2.59c.
49367         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
49368         if it is not already defined.
49369
49370 2007-12-09  Bruno Haible  <bruno@clisp.org>
49371
49372         Let 'gnulib-tool --import' collect sources needed for the tests in
49373         tests/ rather than in lib/.
49374         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
49375         argument. If true, add rules to generate libtests.a, and put libtests.a
49376         into $(LDADD). Consider source files in subdirectories and set
49377         uses_subdirs.
49378         (func_emit_initmacro_start, func_emit_initmacro_end,
49379         func_emit_initmacro_done): Pass all arguments explicitly.
49380         (func_import): Determine two module lists main_modules,
49381         testsrelated_modules. Determine use_libtests. Determine two variables
49382         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
49383         instead of just sed_transform_lib_file. Determine two variables
49384         main_files and testsrelated_files. Compute 'files' as the union of
49385         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
49386         func_add_or_update. In the generated gnulib-comp.m4, collect the
49387         object files for tests/ in different variables than those for lib/.
49388         Substitute LIBTESTS_LIBDEPS.
49389         (func_create_testdir): Combine the uses_subdirs results from
49390         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
49391
49392 2007-12-09  Bruno Haible  <bruno@clisp.org>
49393
49394         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
49395         the build-aux directory.
49396
49397 2007-12-09  Bruno Haible  <bruno@clisp.org>
49398
49399         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
49400         introduced on 2006-09-09.
49401
49402 2007-12-07  Jim Meyering  <meyering@redhat.com>
49403
49404         Let these macros work also with autoconf-2.59.
49405         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
49406         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
49407         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
49408
49409 2007-12-06  Jim Meyering  <meyering@redhat.com>
49410
49411         Avoid a configure-time syntax error in gl_FUNC_ACL.
49412         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
49413         function in each branch, before testing the cache variable.
49414
49415 2007-12-04  Eric Blake  <ebb9@byu.net>
49416
49417         Make scripts executable.
49418         * build-aux/config.guess: Add execute permissions.
49419         * build-aux/config.sub: Likewise.
49420         * build-aux/gendocs.sh: Likewise.
49421
49422         Fix frexp on mingw.
49423         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
49424         cross-compiling.
49425         * doc/functions/frexp.texi (frexp): Document the bug.
49426
49427         Make cygwin fseeko check more reliable.
49428         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
49429         version numbers, rather than unrelated feature check.
49430         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
49431         * doc/functions/ftello.texi (ftello): Likewise.
49432         Reported by Bruno Haible.
49433
49434         * m4/strerror.m4: Bump version number.
49435
49436 2007-12-03  Bruno Haible  <bruno@clisp.org>
49437
49438         * doc/functions/mprotect.texi: Mention the mingw problem.
49439
49440 2007-12-03  Eric Blake  <ebb9@byu.net>
49441
49442         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
49443         REPLACE_STRERROR is initialized before this macro.
49444
49445 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
49446
49447         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
49448         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
49449         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
49450         put -lsec in even for programs other than 'ls'.  This fixes a problem
49451         for gettext reported by Bruno Haible in
49452         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
49453         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
49454         Add support for Solaris 10.  This isn't efficient, but should get the
49455         job done for now.
49456
49457 2007-12-03  James Youngman  <jay@gnu.org>
49458
49459         * doc/regexprops-generic.texi: change "an close-group" to "a
49460         close-group" and "illegal" to "not allowed".
49461
49462 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49463
49464         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
49465         pr_byname.h. Needed for the rare case when the maintainer has done
49466         "make maintainer-clean" in the source directory and then attempts a
49467         build outside the source directory.
49468         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
49469         scripts_byname.h.
49470
49471 2007-12-02  Martin Lambers <marlam@marlam.de>
49472             Bruno Haible  <bruno@clisp.org>
49473
49474         * lib/getpagesize.h: Remove file.
49475         * lib/unistd.in.h: Include declaration of getpagesize here.
49476         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
49477         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
49478         HAVE_SYS_PARAM_H.
49479         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
49480         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
49481         * modules/getpagesize (Files): Remove lib/getpagesize.h.
49482         (Depends-on): Add unistd.
49483         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
49484         (Include): Use <unistd.h> instead of getpagesize.h.
49485         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
49486         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
49487         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
49488         gl_GETPAGESIZE invocation, already handled by module dependency.
49489         * lib/pagealign_alloc.c: Don't include getpagesize.h.
49490
49491 2007-12-02  Bruno Haible  <bruno@clisp.org>
49492
49493         * modules/strings-tests: New file.
49494         * tests/test-strings.c: New file.
49495
49496         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
49497         * lib/strings.in.h: New file.
49498         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
49499         * m4/strings_h.m4: New file.
49500         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
49501         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
49502         * modules/strings: New file.
49503         * modules/string (Makefile.am): Update.
49504         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
49505         Reported by Karl Berry.
49506
49507 2007-12-01  Eric Blake  <ebb9@byu.net>
49508
49509         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
49510         accomodate fix in cygwin 1.5.25.
49511
49512 2007-12-01  Jim Meyering  <meyering@redhat.com>
49513
49514         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
49515         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
49516         that would inhibit utf8-optimization of a regexp containing line-
49517         or buffer-anchors, e.g., `^', `$'.
49518
49519 2007-11-30  Bruno Haible  <bruno@clisp.org>
49520
49521         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
49522         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
49523         glthread_recursive_lock_init.
49524         * lib/lock.c (glthread_recursive_lock_init)
49525         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
49526         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
49527
49528 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
49529
49530         New function qset_acl, like set_acl but with syscall semantics.
49531         * lib/acl.h (qset_acl): New decl.
49532         * lib/acl.c (qset_acl): New function.
49533         (set_acl): Use new function.  Use more-consistent diagnostics.
49534
49535 2007-11-28  Jim Meyering  <meyering@redhat.com>
49536
49537         * modules/physmem (License): Change from GPL to LGPLv2+.
49538
49539 2007-11-26  Bruno Haible  <bruno@clisp.org>
49540
49541         * lib/vasnprintf.c (decode_long_double): Don't abort if the
49542         'long double' type has excess precision.
49543         Reported by Jim Meyering in
49544         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
49545
49546 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49547
49548         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
49549         Sync from <http://gnu.org/licenses>.
49550         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
49551         with license text from same location.
49552         * doc/maintain.texi, doc/standards.texi:  Sync from
49553         <http://savannah.gnu.org/projects/gnustandards>.
49554
49555 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
49556         and Jim Meyering  <meyering@redhat.com>
49557
49558         Adjust getdate' grammar to accept a slightly more regular language.
49559         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
49560         Before, the former was rejected.
49561         * lib/getdate.y (digits_to_date_time): New function, factored
49562         out of ...
49563         (number): ...here.  Just call digits_to_date_time.
49564         (hybrid): New non-terminal to handle an <unsigned number,
49565         signed relative offset> sequence consistently.
49566
49567 2007-11-18  Jim Meyering  <meyering@redhat.com>
49568
49569         Pull my changes from coreutils:
49570         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
49571         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
49572         use of $gnulib_tool_option_extras, so that it's separated from the
49573         preceding argument.
49574
49575         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
49576         * build-aux/bootstrap (cp_mark_as_generated): Create any required
49577         parent destination directories before copying a file into place.
49578
49579 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
49580
49581         bootstrap: work also with 4-argument variant of AC_INIT
49582         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
49583
49584 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
49585
49586         Port test-getaddrinfo to Solaris.
49587         Problem reported by Bruno Haible in
49588         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
49589         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
49590         explanation of setting 'hints'.
49591         Don't reject an implementation merely because it returns EAI_SERVICE.
49592         (EAI_SERVICE): Define to 0 if not defined.
49593
49594 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
49595
49596         The license of gnu-make and posix-shell is now "GPLed build tool".
49597         * modules/gnu-make (License): Likewise.
49598         * modules/posix-shell (License): Likewise.
49599
49600         New module posix-shell, for determining a POSIX shell
49601         or perhaps something that is close enough to a POSIX shell.
49602         * m4/posix-shell.m4: New file.
49603         * modules/posix-shell: New file.
49604
49605         * MODULES.html.sh: Mention new module.
49606
49607         New module gnu-make, for determining whether we're using GNU Make.
49608         * m4/gnu-make.m4: New file.
49609         * modules/gnu-make: New file.
49610         * MODULES.html.sh: Mention new module.
49611
49612 2007-11-14  Jim Meyering  <meyering@redhat.com>
49613
49614         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
49615         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
49616         use this macro to create a function _definition_.
49617         Remove useless "#undef ARGMATCH_DIE".
49618
49619 2007-11-14  Bruno Haible  <bruno@clisp.org>
49620
49621         * lib/config.charset: Update for OpenBSD 4.1.
49622         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
49623
49624 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
49625
49626         Document 64-bit #if problems in stdint.texi.
49627         * doc/headers/stdint.texi (stdint.h): Mention problems with
49628         64-bit-#if, and how to work around them.
49629
49630         Don't insist on 'long long int' support in the preprocessor.  It
49631         breaks too many things.  For example, PRIdMAX still uses a 'long
49632         long int' format with the latest Sun compiler, even though
49633         HAVE_LONG_LONG_INT isn't defined due to that compiler's
49634         preprocessor problem.  This causes the latest coreutils to dump
49635         core on Solaris 10 sparc with the Sun C compiler.
49636         Instead, fix the 2007-10-16 problem in a different way, by evaluating
49637         the troublesome expressions at configure-time, not at #if-time.
49638         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
49639         preprocessor.
49640         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
49641         compile-time C checks, done at 'configure'-time.
49642         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
49643         * modules/inttypes (Makefile): Substitute the new symbols that
49644         gl_INTTYPES_H now generates.
49645         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
49646
49647 2007-11-12  Bruno Haible  <bruno@clisp.org>
49648
49649         Tests for Unicode character classification functions.
49650
49651         * modules/unictype/bidicategory-byname-tests: New file.
49652         * modules/unictype/bidicategory-name-tests: New file.
49653         * modules/unictype/bidicategory-of-tests: New file.
49654         * modules/unictype/bidicategory-test-tests: New file.
49655         * modules/unictype/block-list-tests: New file.
49656         * modules/unictype/block-of-tests: New file.
49657         * modules/unictype/block-test-tests: New file.
49658         * modules/unictype/category-C-tests: New file.
49659         * modules/unictype/category-Cc-tests: New file.
49660         * modules/unictype/category-Cf-tests: New file.
49661         * modules/unictype/category-Cn-tests: New file.
49662         * modules/unictype/category-Co-tests: New file.
49663         * modules/unictype/category-Cs-tests: New file.
49664         * modules/unictype/category-L-tests: New file.
49665         * modules/unictype/category-Ll-tests: New file.
49666         * modules/unictype/category-Lm-tests: New file.
49667         * modules/unictype/category-Lo-tests: New file.
49668         * modules/unictype/category-Lt-tests: New file.
49669         * modules/unictype/category-Lu-tests: New file.
49670         * modules/unictype/category-M-tests: New file.
49671         * modules/unictype/category-Mc-tests: New file.
49672         * modules/unictype/category-Me-tests: New file.
49673         * modules/unictype/category-Mn-tests: New file.
49674         * modules/unictype/category-N-tests: New file.
49675         * modules/unictype/category-Nd-tests: New file.
49676         * modules/unictype/category-Nl-tests: New file.
49677         * modules/unictype/category-No-tests: New file.
49678         * modules/unictype/category-P-tests: New file.
49679         * modules/unictype/category-Pc-tests: New file.
49680         * modules/unictype/category-Pd-tests: New file.
49681         * modules/unictype/category-Pe-tests: New file.
49682         * modules/unictype/category-Pf-tests: New file.
49683         * modules/unictype/category-Pi-tests: New file.
49684         * modules/unictype/category-Po-tests: New file.
49685         * modules/unictype/category-Ps-tests: New file.
49686         * modules/unictype/category-S-tests: New file.
49687         * modules/unictype/category-Sc-tests: New file.
49688         * modules/unictype/category-Sk-tests: New file.
49689         * modules/unictype/category-Sm-tests: New file.
49690         * modules/unictype/category-So-tests: New file.
49691         * modules/unictype/category-Z-tests: New file.
49692         * modules/unictype/category-Zl-tests: New file.
49693         * modules/unictype/category-Zp-tests: New file.
49694         * modules/unictype/category-Zs-tests: New file.
49695         * modules/unictype/category-and-not-tests: New file.
49696         * modules/unictype/category-and-tests: New file.
49697         * modules/unictype/category-byname-tests: New file.
49698         * modules/unictype/category-name-tests: New file.
49699         * modules/unictype/category-none-tests: New file.
49700         * modules/unictype/category-of-tests: New file.
49701         * modules/unictype/category-or-tests: New file.
49702         * modules/unictype/category-test-withtable-tests: New file.
49703         * modules/unictype/combining-class-tests: New file.
49704         * modules/unictype/ctype-alnum-tests: New file.
49705         * modules/unictype/ctype-alpha-tests: New file.
49706         * modules/unictype/ctype-blank-tests: New file.
49707         * modules/unictype/ctype-cntrl-tests: New file.
49708         * modules/unictype/ctype-digit-tests: New file.
49709         * modules/unictype/ctype-graph-tests: New file.
49710         * modules/unictype/ctype-lower-tests: New file.
49711         * modules/unictype/ctype-print-tests: New file.
49712         * modules/unictype/ctype-punct-tests: New file.
49713         * modules/unictype/ctype-space-tests: New file.
49714         * modules/unictype/ctype-upper-tests: New file.
49715         * modules/unictype/ctype-xdigit-tests: New file.
49716         * modules/unictype/decimal-digit-tests: New file.
49717         * modules/unictype/digit-tests: New file.
49718         * modules/unictype/mirror-tests: New file.
49719         * modules/unictype/numeric-tests: New file.
49720         * modules/unictype/property-alphabetic-tests: New file.
49721         * modules/unictype/property-ascii-hex-digit-tests: New file.
49722         * modules/unictype/property-bidi-arabic-digit-tests: New file.
49723         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
49724         * modules/unictype/property-bidi-block-separator-tests: New file.
49725         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
49726         * modules/unictype/property-bidi-common-separator-tests: New file.
49727         * modules/unictype/property-bidi-control-tests: New file.
49728         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
49729         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
49730         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
49731         * modules/unictype/property-bidi-european-digit-tests: New file.
49732         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
49733         * modules/unictype/property-bidi-left-to-right-tests: New file.
49734         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
49735         * modules/unictype/property-bidi-other-neutral-tests: New file.
49736         * modules/unictype/property-bidi-pdf-tests: New file.
49737         * modules/unictype/property-bidi-segment-separator-tests: New file.
49738         * modules/unictype/property-bidi-whitespace-tests: New file.
49739         * modules/unictype/property-byname-tests: New file.
49740         * modules/unictype/property-combining-tests: New file.
49741         * modules/unictype/property-composite-tests: New file.
49742         * modules/unictype/property-currency-symbol-tests: New file.
49743         * modules/unictype/property-dash-tests: New file.
49744         * modules/unictype/property-decimal-digit-tests: New file.
49745         * modules/unictype/property-default-ignorable-code-point-tests: New file.
49746         * modules/unictype/property-deprecated-tests: New file.
49747         * modules/unictype/property-diacritic-tests: New file.
49748         * modules/unictype/property-extender-tests: New file.
49749         * modules/unictype/property-format-control-tests: New file.
49750         * modules/unictype/property-grapheme-base-tests: New file.
49751         * modules/unictype/property-grapheme-extend-tests: New file.
49752         * modules/unictype/property-grapheme-link-tests: New file.
49753         * modules/unictype/property-hex-digit-tests: New file.
49754         * modules/unictype/property-hyphen-tests: New file.
49755         * modules/unictype/property-id-continue-tests: New file.
49756         * modules/unictype/property-id-start-tests: New file.
49757         * modules/unictype/property-ideographic-tests: New file.
49758         * modules/unictype/property-ids-binary-operator-tests: New file.
49759         * modules/unictype/property-ids-trinary-operator-tests: New file.
49760         * modules/unictype/property-ignorable-control-tests: New file.
49761         * modules/unictype/property-iso-control-tests: New file.
49762         * modules/unictype/property-join-control-tests: New file.
49763         * modules/unictype/property-left-of-pair-tests: New file.
49764         * modules/unictype/property-line-separator-tests: New file.
49765         * modules/unictype/property-logical-order-exception-tests: New file.
49766         * modules/unictype/property-lowercase-tests: New file.
49767         * modules/unictype/property-math-tests: New file.
49768         * modules/unictype/property-non-break-tests: New file.
49769         * modules/unictype/property-not-a-character-tests: New file.
49770         * modules/unictype/property-numeric-tests: New file.
49771         * modules/unictype/property-other-alphabetic-tests: New file.
49772         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
49773         * modules/unictype/property-other-grapheme-extend-tests: New file.
49774         * modules/unictype/property-other-id-continue-tests: New file.
49775         * modules/unictype/property-other-id-start-tests: New file.
49776         * modules/unictype/property-other-lowercase-tests: New file.
49777         * modules/unictype/property-other-math-tests: New file.
49778         * modules/unictype/property-other-uppercase-tests: New file.
49779         * modules/unictype/property-paired-punctuation-tests: New file.
49780         * modules/unictype/property-paragraph-separator-tests: New file.
49781         * modules/unictype/property-pattern-syntax-tests: New file.
49782         * modules/unictype/property-pattern-white-space-tests: New file.
49783         * modules/unictype/property-private-use-tests: New file.
49784         * modules/unictype/property-punctuation-tests: New file.
49785         * modules/unictype/property-quotation-mark-tests: New file.
49786         * modules/unictype/property-radical-tests: New file.
49787         * modules/unictype/property-sentence-terminal-tests: New file.
49788         * modules/unictype/property-soft-dotted-tests: New file.
49789         * modules/unictype/property-space-tests: New file.
49790         * modules/unictype/property-terminal-punctuation-tests: New file.
49791         * modules/unictype/property-test-tests: New file.
49792         * modules/unictype/property-titlecase-tests: New file.
49793         * modules/unictype/property-unassigned-code-value-tests: New file.
49794         * modules/unictype/property-unified-ideograph-tests: New file.
49795         * modules/unictype/property-uppercase-tests: New file.
49796         * modules/unictype/property-variation-selector-tests: New file.
49797         * modules/unictype/property-white-space-tests: New file.
49798         * modules/unictype/property-xid-continue-tests: New file.
49799         * modules/unictype/property-xid-start-tests: New file.
49800         * modules/unictype/property-zero-width-tests: New file.
49801         * modules/unictype/scripts-tests: New file.
49802         * modules/unictype/syntax-c-ident-tests: New file.
49803         * modules/unictype/syntax-c-whitespace-tests: New file.
49804         * modules/unictype/syntax-java-ident-tests: New file.
49805         * modules/unictype/syntax-java-whitespace-tests: New file.
49806         * tests/unictype/test-bidi_byname.c: New file.
49807         * tests/unictype/test-bidi_name.c: New file.
49808         * tests/unictype/test-bidi_of.c: New file.
49809         * tests/unictype/test-bidi_test.c: New file.
49810         * tests/unictype/test-block_list.c: New file.
49811         * tests/unictype/test-block_of.c: New file.
49812         * tests/unictype/test-block_test.c: New file.
49813         * tests/unictype/test-categ_and.c: New file.
49814         * tests/unictype/test-categ_and_not.c: New file.
49815         * tests/unictype/test-categ_byname.c: New file.
49816         * tests/unictype/test-categ_name.c: New file.
49817         * tests/unictype/test-categ_none.c: New file.
49818         * tests/unictype/test-categ_of.c: New file.
49819         * tests/unictype/test-categ_or.c: New file.
49820         * tests/unictype/test-categ_test_withtable.c: New file.
49821         * tests/unictype/test-combining.c: New file.
49822         * tests/unictype/test-decdigit.c: New file.
49823         * tests/unictype/test-digit.c: New file.
49824         * tests/unictype/test-mirror.c: New file.
49825         * tests/unictype/test-numeric.c: New file.
49826         * tests/unictype/test-pr_byname.c: New file.
49827         * tests/unictype/test-pr_test.c: New file.
49828         * tests/unictype/test-predicate-part1.h: New file.
49829         * tests/unictype/test-predicate-part2.h: New file.
49830         * tests/unictype/test-scripts.c: New file.
49831         * tests/unictype/test-sy_c_ident.c: New file.
49832         * tests/unictype/test-sy_java_ident.c: New file.
49833
49834         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
49835         for Unicode 5.0.0.
49836         * tests/unictype/test-categ_Cc.c: Likewise.
49837         * tests/unictype/test-categ_Cf.c: Likewise.
49838         * tests/unictype/test-categ_Cn.c: Likewise.
49839         * tests/unictype/test-categ_Co.c: Likewise.
49840         * tests/unictype/test-categ_Cs.c: Likewise.
49841         * tests/unictype/test-categ_L.c: Likewise.
49842         * tests/unictype/test-categ_Ll.c: Likewise.
49843         * tests/unictype/test-categ_Lm.c: Likewise.
49844         * tests/unictype/test-categ_Lo.c: Likewise.
49845         * tests/unictype/test-categ_Lt.c: Likewise.
49846         * tests/unictype/test-categ_Lu.c: Likewise.
49847         * tests/unictype/test-categ_M.c: Likewise.
49848         * tests/unictype/test-categ_Mc.c: Likewise.
49849         * tests/unictype/test-categ_Me.c: Likewise.
49850         * tests/unictype/test-categ_Mn.c: Likewise.
49851         * tests/unictype/test-categ_N.c: Likewise.
49852         * tests/unictype/test-categ_Nd.c: Likewise.
49853         * tests/unictype/test-categ_Nl.c: Likewise.
49854         * tests/unictype/test-categ_No.c: Likewise.
49855         * tests/unictype/test-categ_P.c: Likewise.
49856         * tests/unictype/test-categ_Pc.c: Likewise.
49857         * tests/unictype/test-categ_Pd.c: Likewise.
49858         * tests/unictype/test-categ_Pe.c: Likewise.
49859         * tests/unictype/test-categ_Pf.c: Likewise.
49860         * tests/unictype/test-categ_Pi.c: Likewise.
49861         * tests/unictype/test-categ_Po.c: Likewise.
49862         * tests/unictype/test-categ_Ps.c: Likewise.
49863         * tests/unictype/test-categ_S.c: Likewise.
49864         * tests/unictype/test-categ_Sc.c: Likewise.
49865         * tests/unictype/test-categ_Sk.c: Likewise.
49866         * tests/unictype/test-categ_Sm.c: Likewise.
49867         * tests/unictype/test-categ_So.c: Likewise.
49868         * tests/unictype/test-categ_Z.c: Likewise.
49869         * tests/unictype/test-categ_Zl.c: Likewise.
49870         * tests/unictype/test-categ_Zp.c: Likewise.
49871         * tests/unictype/test-categ_Zs.c: Likewise.
49872         * tests/unictype/test-ctype_alnum.c: Likewise.
49873         * tests/unictype/test-ctype_alpha.c: Likewise.
49874         * tests/unictype/test-ctype_blank.c: Likewise.
49875         * tests/unictype/test-ctype_cntrl.c: Likewise.
49876         * tests/unictype/test-ctype_digit.c: Likewise.
49877         * tests/unictype/test-ctype_graph.c: Likewise.
49878         * tests/unictype/test-ctype_lower.c: Likewise.
49879         * tests/unictype/test-ctype_print.c: Likewise.
49880         * tests/unictype/test-ctype_punct.c: Likewise.
49881         * tests/unictype/test-ctype_space.c: Likewise.
49882         * tests/unictype/test-ctype_upper.c: Likewise.
49883         * tests/unictype/test-ctype_xdigit.c: Likewise.
49884         * tests/unictype/test-decdigit.h: Likewise.
49885         * tests/unictype/test-digit.h: Likewise.
49886         * tests/unictype/test-numeric.h: Likewise.
49887         * tests/unictype/test-pr_alphabetic.c: Likewise.
49888         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
49889         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
49890         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
49891         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
49892         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
49893         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
49894         * tests/unictype/test-pr_bidi_control.c: Likewise.
49895         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
49896         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
49897         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
49898         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
49899         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
49900         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
49901         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
49902         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
49903         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
49904         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
49905         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
49906         * tests/unictype/test-pr_combining.c: Likewise.
49907         * tests/unictype/test-pr_composite.c: Likewise.
49908         * tests/unictype/test-pr_currency_symbol.c: Likewise.
49909         * tests/unictype/test-pr_dash.c: Likewise.
49910         * tests/unictype/test-pr_decimal_digit.c: Likewise.
49911         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
49912         * tests/unictype/test-pr_deprecated.c: Likewise.
49913         * tests/unictype/test-pr_diacritic.c: Likewise.
49914         * tests/unictype/test-pr_extender.c: Likewise.
49915         * tests/unictype/test-pr_format_control.c: Likewise.
49916         * tests/unictype/test-pr_grapheme_base.c: Likewise.
49917         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
49918         * tests/unictype/test-pr_grapheme_link.c: Likewise.
49919         * tests/unictype/test-pr_hex_digit.c: Likewise.
49920         * tests/unictype/test-pr_hyphen.c: Likewise.
49921         * tests/unictype/test-pr_id_continue.c: Likewise.
49922         * tests/unictype/test-pr_id_start.c: Likewise.
49923         * tests/unictype/test-pr_ideographic.c: Likewise.
49924         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
49925         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
49926         * tests/unictype/test-pr_ignorable_control.c: Likewise.
49927         * tests/unictype/test-pr_iso_control.c: Likewise.
49928         * tests/unictype/test-pr_join_control.c: Likewise.
49929         * tests/unictype/test-pr_left_of_pair.c: Likewise.
49930         * tests/unictype/test-pr_line_separator.c: Likewise.
49931         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
49932         * tests/unictype/test-pr_lowercase.c: Likewise.
49933         * tests/unictype/test-pr_math.c: Likewise.
49934         * tests/unictype/test-pr_non_break.c: Likewise.
49935         * tests/unictype/test-pr_not_a_character.c: Likewise.
49936         * tests/unictype/test-pr_numeric.c: Likewise.
49937         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
49938         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
49939         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
49940         * tests/unictype/test-pr_other_id_continue.c: Likewise.
49941         * tests/unictype/test-pr_other_id_start.c: Likewise.
49942         * tests/unictype/test-pr_other_lowercase.c: Likewise.
49943         * tests/unictype/test-pr_other_math.c: Likewise.
49944         * tests/unictype/test-pr_other_uppercase.c: Likewise.
49945         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
49946         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
49947         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
49948         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
49949         * tests/unictype/test-pr_private_use.c: Likewise.
49950         * tests/unictype/test-pr_punctuation.c: Likewise.
49951         * tests/unictype/test-pr_quotation_mark.c: Likewise.
49952         * tests/unictype/test-pr_radical.c: Likewise.
49953         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
49954         * tests/unictype/test-pr_soft_dotted.c: Likewise.
49955         * tests/unictype/test-pr_space.c: Likewise.
49956         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
49957         * tests/unictype/test-pr_titlecase.c: Likewise.
49958         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
49959         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
49960         * tests/unictype/test-pr_uppercase.c: Likewise.
49961         * tests/unictype/test-pr_variation_selector.c: Likewise.
49962         * tests/unictype/test-pr_white_space.c: Likewise.
49963         * tests/unictype/test-pr_xid_continue.c: Likewise.
49964         * tests/unictype/test-pr_xid_start.c: Likewise.
49965         * tests/unictype/test-pr_zero_width.c: Likewise.
49966         * tests/unictype/test-sy_c_whitespace.c: Likewise.
49967         * tests/unictype/test-sy_java_whitespace.c: Likewise.
49968
49969 2007-11-12  Bruno Haible  <bruno@clisp.org>
49970
49971         Unicode character classification functions.
49972         * lib/unictype.h: New file.
49973         * modules/unictype/base: New file.
49974         * modules/unictype/category-L: New file.
49975         * modules/unictype/category-Lu: New file.
49976         * modules/unictype/category-Ll: New file.
49977         * modules/unictype/category-Lt: New file.
49978         * modules/unictype/category-Lm: New file.
49979         * modules/unictype/category-Lo: New file.
49980         * modules/unictype/category-M: New file.
49981         * modules/unictype/category-Mn: New file.
49982         * modules/unictype/category-Mc: New file.
49983         * modules/unictype/category-Me: New file.
49984         * modules/unictype/category-N: New file.
49985         * modules/unictype/category-Nd: New file.
49986         * modules/unictype/category-Nl: New file.
49987         * modules/unictype/category-No: New file.
49988         * modules/unictype/category-P: New file.
49989         * modules/unictype/category-Pc: New file.
49990         * modules/unictype/category-Pd: New file.
49991         * modules/unictype/category-Ps: New file.
49992         * modules/unictype/category-Pe: New file.
49993         * modules/unictype/category-Pi: New file.
49994         * modules/unictype/category-Pf: New file.
49995         * modules/unictype/category-Po: New file.
49996         * modules/unictype/category-S: New file.
49997         * modules/unictype/category-Sm: New file.
49998         * modules/unictype/category-Sc: New file.
49999         * modules/unictype/category-Sk: New file.
50000         * modules/unictype/category-So: New file.
50001         * modules/unictype/category-Z: New file.
50002         * modules/unictype/category-Zs: New file.
50003         * modules/unictype/category-Zl: New file.
50004         * modules/unictype/category-Zp: New file.
50005         * modules/unictype/category-C: New file.
50006         * modules/unictype/category-Cc: New file.
50007         * modules/unictype/category-Cf: New file.
50008         * modules/unictype/category-Cs: New file.
50009         * modules/unictype/category-Co: New file.
50010         * modules/unictype/category-Cn: New file.
50011         * modules/unictype/category-or: New file.
50012         * modules/unictype/category-of: New file.
50013         * modules/unictype/category-test: New file.
50014         * modules/unictype/category-test-withtable: New file.
50015         * modules/unictype/category-byname: New file.
50016         * modules/unictype/category-none: New file.
50017         * modules/unictype/category-and: New file.
50018         * modules/unictype/category-and-not: New file.
50019         * modules/unictype/category-name: New file.
50020         * modules/unictype/combining-class: New file.
50021         * modules/unictype/category-all: New file.
50022         * modules/unictype/bidicategory-all: New file.
50023         * modules/unictype/bidicategory-byname: New file.
50024         * modules/unictype/bidicategory-name: New file.
50025         * modules/unictype/bidicategory-of: New file.
50026         * modules/unictype/bidicategory-test: New file.
50027         * modules/unictype/decimal-digit: New file.
50028         * modules/unictype/digit: New file.
50029         * modules/unictype/numeric: New file.
50030         * modules/unictype/mirror: New file.
50031         * modules/unictype/property-white-space: New file.
50032         * modules/unictype/property-alphabetic: New file.
50033         * modules/unictype/property-other-alphabetic: New file.
50034         * modules/unictype/property-not-a-character: New file.
50035         * modules/unictype/property-default-ignorable-code-point: New file.
50036         * modules/unictype/property-other-default-ignorable-code-point: New
50037         file.
50038         * modules/unictype/property-deprecated: New file.
50039         * modules/unictype/property-logical-order-exception: New file.
50040         * modules/unictype/property-variation-selector: New file.
50041         * modules/unictype/property-private-use: New file.
50042         * modules/unictype/property-unassigned-code-value: New file.
50043         * modules/unictype/property-uppercase: New file.
50044         * modules/unictype/property-other-uppercase: New file.
50045         * modules/unictype/property-lowercase: New file.
50046         * modules/unictype/property-other-lowercase: New file.
50047         * modules/unictype/property-titlecase: New file.
50048         * modules/unictype/property-soft-dotted: New file.
50049         * modules/unictype/property-id-start: New file.
50050         * modules/unictype/property-other-id-start: New file.
50051         * modules/unictype/property-id-continue: New file.
50052         * modules/unictype/property-other-id-continue: New file.
50053         * modules/unictype/property-xid-start: New file.
50054         * modules/unictype/property-xid-continue: New file.
50055         * modules/unictype/property-pattern-white-space: New file.
50056         * modules/unictype/property-pattern-syntax: New file.
50057         * modules/unictype/property-join-control: New file.
50058         * modules/unictype/property-grapheme-base: New file.
50059         * modules/unictype/property-grapheme-extend: New file.
50060         * modules/unictype/property-other-grapheme-extend: New file.
50061         * modules/unictype/property-grapheme-link: New file.
50062         * modules/unictype/property-bidi-control: New file.
50063         * modules/unictype/property-bidi-left-to-right: New file.
50064         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
50065         * modules/unictype/property-bidi-arabic-right-to-left: New file.
50066         * modules/unictype/property-bidi-european-digit: New file.
50067         * modules/unictype/property-bidi-eur-num-separator: New file.
50068         * modules/unictype/property-bidi-eur-num-terminator: New file.
50069         * modules/unictype/property-bidi-arabic-digit: New file.
50070         * modules/unictype/property-bidi-common-separator: New file.
50071         * modules/unictype/property-bidi-block-separator: New file.
50072         * modules/unictype/property-bidi-segment-separator: New file.
50073         * modules/unictype/property-bidi-whitespace: New file.
50074         * modules/unictype/property-bidi-non-spacing-mark: New file.
50075         * modules/unictype/property-bidi-boundary-neutral: New file.
50076         * modules/unictype/property-bidi-pdf: New file.
50077         * modules/unictype/property-bidi-embedding-or-override: New file.
50078         * modules/unictype/property-bidi-other-neutral: New file.
50079         * modules/unictype/property-hex-digit: New file.
50080         * modules/unictype/property-ascii-hex-digit: New file.
50081         * modules/unictype/property-ideographic: New file.
50082         * modules/unictype/property-unified-ideograph: New file.
50083         * modules/unictype/property-radical: New file.
50084         * modules/unictype/property-ids-binary-operator: New file.
50085         * modules/unictype/property-ids-trinary-operator: New file.
50086         * modules/unictype/property-zero-width: New file.
50087         * modules/unictype/property-space: New file.
50088         * modules/unictype/property-non-break: New file.
50089         * modules/unictype/property-iso-control: New file.
50090         * modules/unictype/property-format-control: New file.
50091         * modules/unictype/property-dash: New file.
50092         * modules/unictype/property-hyphen: New file.
50093         * modules/unictype/property-punctuation: New file.
50094         * modules/unictype/property-line-separator: New file.
50095         * modules/unictype/property-paragraph-separator: New file.
50096         * modules/unictype/property-quotation-mark: New file.
50097         * modules/unictype/property-sentence-terminal: New file.
50098         * modules/unictype/property-terminal-punctuation: New file.
50099         * modules/unictype/property-currency-symbol: New file.
50100         * modules/unictype/property-math: New file.
50101         * modules/unictype/property-other-math: New file.
50102         * modules/unictype/property-paired-punctuation: New file.
50103         * modules/unictype/property-left-of-pair: New file.
50104         * modules/unictype/property-combining: New file.
50105         * modules/unictype/property-composite: New file.
50106         * modules/unictype/property-decimal-digit: New file.
50107         * modules/unictype/property-numeric: New file.
50108         * modules/unictype/property-diacritic: New file.
50109         * modules/unictype/property-extender: New file.
50110         * modules/unictype/property-ignorable-control: New file.
50111         * modules/unictype/property-test: New file.
50112         * modules/unictype/property-byname: New file.
50113         * modules/unictype/property-all: New file.
50114         * modules/unictype/scripts: New file.
50115         * modules/unictype/scripts-all: New file.
50116         * modules/unictype/block-of: New file.
50117         * modules/unictype/block-test: New file.
50118         * modules/unictype/block-list: New file.
50119         * modules/unictype/block-all: New file.
50120         * modules/unictype/syntax-c-whitespace: New file.
50121         * modules/unictype/syntax-java-whitespace: New file.
50122         * modules/unictype/syntax-c-ident: New file.
50123         * modules/unictype/syntax-java-ident: New file.
50124         * modules/unictype/ctype-alnum: New file.
50125         * modules/unictype/ctype-alpha: New file.
50126         * modules/unictype/ctype-cntrl: New file.
50127         * modules/unictype/ctype-digit: New file.
50128         * modules/unictype/ctype-graph: New file.
50129         * modules/unictype/ctype-lower: New file.
50130         * modules/unictype/ctype-print: New file.
50131         * modules/unictype/ctype-punct: New file.
50132         * modules/unictype/ctype-space: New file.
50133         * modules/unictype/ctype-upper: New file.
50134         * modules/unictype/ctype-xdigit: New file.
50135         * modules/unictype/ctype-blank: New file.
50136         * lib/unictype/bidi_byname.c: New file.
50137         * lib/unictype/bidi_name.c: New file.
50138         * lib/unictype/bidi_of.c: New file.
50139         * lib/unictype/bidi_test.c: New file.
50140         * lib/unictype/bitmap.h: New file.
50141         * lib/unictype/block_test.c: New file.
50142         * lib/unictype/blocks.c: New file.
50143         * lib/unictype/categ_C.c: New file.
50144         * lib/unictype/categ_Cc.c: New file.
50145         * lib/unictype/categ_Cf.c: New file.
50146         * lib/unictype/categ_Cn.c: New file.
50147         * lib/unictype/categ_Co.c: New file.
50148         * lib/unictype/categ_Cs.c: New file.
50149         * lib/unictype/categ_L.c: New file.
50150         * lib/unictype/categ_Ll.c: New file.
50151         * lib/unictype/categ_Lm.c: New file.
50152         * lib/unictype/categ_Lo.c: New file.
50153         * lib/unictype/categ_Lt.c: New file.
50154         * lib/unictype/categ_Lu.c: New file.
50155         * lib/unictype/categ_M.c: New file.
50156         * lib/unictype/categ_Mc.c: New file.
50157         * lib/unictype/categ_Me.c: New file.
50158         * lib/unictype/categ_Mn.c: New file.
50159         * lib/unictype/categ_N.c: New file.
50160         * lib/unictype/categ_Nd.c: New file.
50161         * lib/unictype/categ_Nl.c: New file.
50162         * lib/unictype/categ_No.c: New file.
50163         * lib/unictype/categ_P.c: New file.
50164         * lib/unictype/categ_Pc.c: New file.
50165         * lib/unictype/categ_Pd.c: New file.
50166         * lib/unictype/categ_Pe.c: New file.
50167         * lib/unictype/categ_Pf.c: New file.
50168         * lib/unictype/categ_Pi.c: New file.
50169         * lib/unictype/categ_Po.c: New file.
50170         * lib/unictype/categ_Ps.c: New file.
50171         * lib/unictype/categ_S.c: New file.
50172         * lib/unictype/categ_Sc.c: New file.
50173         * lib/unictype/categ_Sk.c: New file.
50174         * lib/unictype/categ_Sm.c: New file.
50175         * lib/unictype/categ_So.c: New file.
50176         * lib/unictype/categ_Z.c: New file.
50177         * lib/unictype/categ_Zl.c: New file.
50178         * lib/unictype/categ_Zp.c: New file.
50179         * lib/unictype/categ_Zs.c: New file.
50180         * lib/unictype/categ_and.c: New file.
50181         * lib/unictype/categ_and_not.c: New file.
50182         * lib/unictype/categ_byname.c: New file.
50183         * lib/unictype/categ_name.c: New file.
50184         * lib/unictype/categ_none.c: New file.
50185         * lib/unictype/categ_of.c: New file.
50186         * lib/unictype/categ_or.c: New file.
50187         * lib/unictype/categ_test.c: New file.
50188         * lib/unictype/combining.c: New file.
50189         * lib/unictype/ctype_alnum.c: New file.
50190         * lib/unictype/ctype_alpha.c: New file.
50191         * lib/unictype/ctype_blank.c: New file.
50192         * lib/unictype/ctype_cntrl.c: New file.
50193         * lib/unictype/ctype_digit.c: New file.
50194         * lib/unictype/ctype_graph.c: New file.
50195         * lib/unictype/ctype_lower.c: New file.
50196         * lib/unictype/ctype_print.c: New file.
50197         * lib/unictype/ctype_punct.c: New file.
50198         * lib/unictype/ctype_space.c: New file.
50199         * lib/unictype/ctype_upper.c: New file.
50200         * lib/unictype/ctype_xdigit.c: New file.
50201         * lib/unictype/decdigit.c: New file.
50202         * lib/unictype/digit.c: New file.
50203         * lib/unictype/identsyntaxmap.h: New file.
50204         * lib/unictype/mirror.c: New file.
50205         * lib/unictype/numeric.c: New file.
50206         * lib/unictype/pr_alphabetic.c: New file.
50207         * lib/unictype/pr_ascii_hex_digit.c: New file.
50208         * lib/unictype/pr_bidi_arabic_digit.c: New file.
50209         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
50210         * lib/unictype/pr_bidi_block_separator.c: New file.
50211         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
50212         * lib/unictype/pr_bidi_common_separator.c: New file.
50213         * lib/unictype/pr_bidi_control.c: New file.
50214         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
50215         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
50216         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
50217         * lib/unictype/pr_bidi_european_digit.c: New file.
50218         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
50219         * lib/unictype/pr_bidi_left_to_right.c: New file.
50220         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
50221         * lib/unictype/pr_bidi_other_neutral.c: New file.
50222         * lib/unictype/pr_bidi_pdf.c: New file.
50223         * lib/unictype/pr_bidi_segment_separator.c: New file.
50224         * lib/unictype/pr_bidi_whitespace.c: New file.
50225         * lib/unictype/pr_byname.c: New file.
50226         * lib/unictype/pr_byname.gperf: New file.
50227         * lib/unictype/pr_combining.c: New file.
50228         * lib/unictype/pr_composite.c: New file.
50229         * lib/unictype/pr_currency_symbol.c: New file.
50230         * lib/unictype/pr_dash.c: New file.
50231         * lib/unictype/pr_decimal_digit.c: New file.
50232         * lib/unictype/pr_default_ignorable_code_point.c: New file.
50233         * lib/unictype/pr_deprecated.c: New file.
50234         * lib/unictype/pr_diacritic.c: New file.
50235         * lib/unictype/pr_extender.c: New file.
50236         * lib/unictype/pr_format_control.c: New file.
50237         * lib/unictype/pr_grapheme_base.c: New file.
50238         * lib/unictype/pr_grapheme_extend.c: New file.
50239         * lib/unictype/pr_grapheme_link.c: New file.
50240         * lib/unictype/pr_hex_digit.c: New file.
50241         * lib/unictype/pr_hyphen.c: New file.
50242         * lib/unictype/pr_id_continue.c: New file.
50243         * lib/unictype/pr_id_start.c: New file.
50244         * lib/unictype/pr_ideographic.c: New file.
50245         * lib/unictype/pr_ids_binary_operator.c: New file.
50246         * lib/unictype/pr_ids_trinary_operator.c: New file.
50247         * lib/unictype/pr_ignorable_control.c: New file.
50248         * lib/unictype/pr_iso_control.c: New file.
50249         * lib/unictype/pr_join_control.c: New file.
50250         * lib/unictype/pr_left_of_pair.c: New file.
50251         * lib/unictype/pr_line_separator.c: New file.
50252         * lib/unictype/pr_logical_order_exception.c: New file.
50253         * lib/unictype/pr_lowercase.c: New file.
50254         * lib/unictype/pr_math.c: New file.
50255         * lib/unictype/pr_non_break.c: New file.
50256         * lib/unictype/pr_not_a_character.c: New file.
50257         * lib/unictype/pr_numeric.c: New file.
50258         * lib/unictype/pr_other_alphabetic.c: New file.
50259         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
50260         * lib/unictype/pr_other_grapheme_extend.c: New file.
50261         * lib/unictype/pr_other_id_continue.c: New file.
50262         * lib/unictype/pr_other_id_start.c: New file.
50263         * lib/unictype/pr_other_lowercase.c: New file.
50264         * lib/unictype/pr_other_math.c: New file.
50265         * lib/unictype/pr_other_uppercase.c: New file.
50266         * lib/unictype/pr_paired_punctuation.c: New file.
50267         * lib/unictype/pr_paragraph_separator.c: New file.
50268         * lib/unictype/pr_pattern_syntax.c: New file.
50269         * lib/unictype/pr_pattern_white_space.c: New file.
50270         * lib/unictype/pr_private_use.c: New file.
50271         * lib/unictype/pr_punctuation.c: New file.
50272         * lib/unictype/pr_quotation_mark.c: New file.
50273         * lib/unictype/pr_radical.c: New file.
50274         * lib/unictype/pr_sentence_terminal.c: New file.
50275         * lib/unictype/pr_soft_dotted.c: New file.
50276         * lib/unictype/pr_space.c: New file.
50277         * lib/unictype/pr_terminal_punctuation.c: New file.
50278         * lib/unictype/pr_test.c: New file.
50279         * lib/unictype/pr_titlecase.c: New file.
50280         * lib/unictype/pr_unassigned_code_value.c: New file.
50281         * lib/unictype/pr_unified_ideograph.c: New file.
50282         * lib/unictype/pr_uppercase.c: New file.
50283         * lib/unictype/pr_variation_selector.c: New file.
50284         * lib/unictype/pr_white_space.c: New file.
50285         * lib/unictype/pr_xid_continue.c: New file.
50286         * lib/unictype/pr_xid_start.c: New file.
50287         * lib/unictype/pr_zero_width.c: New file.
50288         * lib/unictype/scripts.c: New file.
50289         * lib/unictype/sy_c_ident.c: New file.
50290         * lib/unictype/sy_c_whitespace.c: New file.
50291         * lib/unictype/sy_java_ident.c: New file.
50292         * lib/unictype/sy_java_whitespace.c: New file.
50293
50294         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
50295         Unicode 5.0.0.
50296         * lib/unictype/blocks.h: Likewise.
50297         * lib/unictype/categ_C.h: Likewise.
50298         * lib/unictype/categ_Cc.h: Likewise.
50299         * lib/unictype/categ_Cf.h: Likewise.
50300         * lib/unictype/categ_Cn.h: Likewise.
50301         * lib/unictype/categ_Co.h: Likewise.
50302         * lib/unictype/categ_Cs.h: Likewise.
50303         * lib/unictype/categ_L.h: Likewise.
50304         * lib/unictype/categ_Ll.h: Likewise.
50305         * lib/unictype/categ_Lm.h: Likewise.
50306         * lib/unictype/categ_Lo.h: Likewise.
50307         * lib/unictype/categ_Lt.h: Likewise.
50308         * lib/unictype/categ_Lu.h: Likewise.
50309         * lib/unictype/categ_M.h: Likewise.
50310         * lib/unictype/categ_Mc.h: Likewise.
50311         * lib/unictype/categ_Me.h: Likewise.
50312         * lib/unictype/categ_Mn.h: Likewise.
50313         * lib/unictype/categ_N.h: Likewise.
50314         * lib/unictype/categ_Nd.h: Likewise.
50315         * lib/unictype/categ_Nl.h: Likewise.
50316         * lib/unictype/categ_No.h: Likewise.
50317         * lib/unictype/categ_P.h: Likewise.
50318         * lib/unictype/categ_Pc.h: Likewise.
50319         * lib/unictype/categ_Pd.h: Likewise.
50320         * lib/unictype/categ_Pe.h: Likewise.
50321         * lib/unictype/categ_Pf.h: Likewise.
50322         * lib/unictype/categ_Pi.h: Likewise.
50323         * lib/unictype/categ_Po.h: Likewise.
50324         * lib/unictype/categ_Ps.h: Likewise.
50325         * lib/unictype/categ_S.h: Likewise.
50326         * lib/unictype/categ_Sc.h: Likewise.
50327         * lib/unictype/categ_Sk.h: Likewise.
50328         * lib/unictype/categ_Sm.h: Likewise.
50329         * lib/unictype/categ_So.h: Likewise.
50330         * lib/unictype/categ_Z.h: Likewise.
50331         * lib/unictype/categ_Zl.h: Likewise.
50332         * lib/unictype/categ_Zp.h: Likewise.
50333         * lib/unictype/categ_Zs.h: Likewise.
50334         * lib/unictype/categ_of.h: Likewise.
50335         * lib/unictype/combining.h: Likewise.
50336         * lib/unictype/ctype_alnum.h: Likewise.
50337         * lib/unictype/ctype_alpha.h: Likewise.
50338         * lib/unictype/ctype_blank.h: Likewise.
50339         * lib/unictype/ctype_cntrl.h: Likewise.
50340         * lib/unictype/ctype_digit.h: Likewise.
50341         * lib/unictype/ctype_graph.h: Likewise.
50342         * lib/unictype/ctype_lower.h: Likewise.
50343         * lib/unictype/ctype_print.h: Likewise.
50344         * lib/unictype/ctype_punct.h: Likewise.
50345         * lib/unictype/ctype_space.h: Likewise.
50346         * lib/unictype/ctype_upper.h: Likewise.
50347         * lib/unictype/ctype_xdigit.h: Likewise.
50348         * lib/unictype/decdigit.h: Likewise.
50349         * lib/unictype/digit.h: Likewise.
50350         * lib/unictype/mirror.h: Likewise.
50351         * lib/unictype/numeric.h: Likewise.
50352         * lib/unictype/pr_alphabetic.h: Likewise.
50353         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
50354         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
50355         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
50356         * lib/unictype/pr_bidi_block_separator.h: Likewise.
50357         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
50358         * lib/unictype/pr_bidi_common_separator.h: Likewise.
50359         * lib/unictype/pr_bidi_control.h: Likewise.
50360         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
50361         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
50362         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
50363         * lib/unictype/pr_bidi_european_digit.h: Likewise.
50364         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
50365         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
50366         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
50367         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
50368         * lib/unictype/pr_bidi_pdf.h: Likewise.
50369         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
50370         * lib/unictype/pr_bidi_whitespace.h: Likewise.
50371         * lib/unictype/pr_combining.h: Likewise.
50372         * lib/unictype/pr_composite.h: Likewise.
50373         * lib/unictype/pr_currency_symbol.h: Likewise.
50374         * lib/unictype/pr_dash.h: Likewise.
50375         * lib/unictype/pr_decimal_digit.h: Likewise.
50376         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
50377         * lib/unictype/pr_deprecated.h: Likewise.
50378         * lib/unictype/pr_diacritic.h: Likewise.
50379         * lib/unictype/pr_extender.h: Likewise.
50380         * lib/unictype/pr_format_control.h: Likewise.
50381         * lib/unictype/pr_grapheme_base.h: Likewise.
50382         * lib/unictype/pr_grapheme_extend.h: Likewise.
50383         * lib/unictype/pr_grapheme_link.h: Likewise.
50384         * lib/unictype/pr_hex_digit.h: Likewise.
50385         * lib/unictype/pr_hyphen.h: Likewise.
50386         * lib/unictype/pr_id_continue.h: Likewise.
50387         * lib/unictype/pr_id_start.h: Likewise.
50388         * lib/unictype/pr_ideographic.h: Likewise.
50389         * lib/unictype/pr_ids_binary_operator.h: Likewise.
50390         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
50391         * lib/unictype/pr_ignorable_control.h: Likewise.
50392         * lib/unictype/pr_iso_control.h: Likewise.
50393         * lib/unictype/pr_join_control.h: Likewise.
50394         * lib/unictype/pr_left_of_pair.h: Likewise.
50395         * lib/unictype/pr_line_separator.h: Likewise.
50396         * lib/unictype/pr_logical_order_exception.h: Likewise.
50397         * lib/unictype/pr_lowercase.h: Likewise.
50398         * lib/unictype/pr_math.h: Likewise.
50399         * lib/unictype/pr_non_break.h: Likewise.
50400         * lib/unictype/pr_not_a_character.h: Likewise.
50401         * lib/unictype/pr_numeric.h: Likewise.
50402         * lib/unictype/pr_other_alphabetic.h: Likewise.
50403         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
50404         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
50405         * lib/unictype/pr_other_id_continue.h: Likewise.
50406         * lib/unictype/pr_other_id_start.h: Likewise.
50407         * lib/unictype/pr_other_lowercase.h: Likewise.
50408         * lib/unictype/pr_other_math.h: Likewise.
50409         * lib/unictype/pr_other_uppercase.h: Likewise.
50410         * lib/unictype/pr_paired_punctuation.h: Likewise.
50411         * lib/unictype/pr_paragraph_separator.h: Likewise.
50412         * lib/unictype/pr_pattern_syntax.h: Likewise.
50413         * lib/unictype/pr_pattern_white_space.h: Likewise.
50414         * lib/unictype/pr_private_use.h: Likewise.
50415         * lib/unictype/pr_punctuation.h: Likewise.
50416         * lib/unictype/pr_quotation_mark.h: Likewise.
50417         * lib/unictype/pr_radical.h: Likewise.
50418         * lib/unictype/pr_sentence_terminal.h: Likewise.
50419         * lib/unictype/pr_soft_dotted.h: Likewise.
50420         * lib/unictype/pr_space.h: Likewise.
50421         * lib/unictype/pr_terminal_punctuation.h: Likewise.
50422         * lib/unictype/pr_titlecase.h: Likewise.
50423         * lib/unictype/pr_unassigned_code_value.h: Likewise.
50424         * lib/unictype/pr_unified_ideograph.h: Likewise.
50425         * lib/unictype/pr_uppercase.h: Likewise.
50426         * lib/unictype/pr_variation_selector.h: Likewise.
50427         * lib/unictype/pr_white_space.h: Likewise.
50428         * lib/unictype/pr_xid_continue.h: Likewise.
50429         * lib/unictype/pr_xid_start.h: Likewise.
50430         * lib/unictype/pr_zero_width.h: Likewise.
50431         * lib/unictype/scripts.h: Likewise.
50432         * lib/unictype/scripts_byname.gperf: Likewise.
50433         * lib/unictype/sy_c_ident.h: Likewise.
50434         * lib/unictype/sy_c_whitespace.h: Likewise.
50435         * lib/unictype/sy_java_ident.h: Likewise.
50436         * lib/unictype/sy_java_whitespace.h: Likewise.
50437
50438         * lib/unictype/Makefile: New file.
50439         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
50440         glibc.
50441         * lib/unictype/3level.h: New file, copied from glibc.
50442         * lib/unictype/3levelbit.h: New file.
50443
50444 2007-11-11  Bruno Haible  <bruno@clisp.org>
50445
50446         * modules/gperf: New file.
50447         * modules/iconv_open (Depends-on): Add it.
50448         (Makefile.am): Remove the GPERF definition.
50449
50450 2007-11-11  Bruno Haible  <bruno@clisp.org>
50451
50452         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
50453         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
50454
50455 2007-11-11  Bruno Haible  <bruno@clisp.org>
50456
50457         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
50458         (usage): Remove function.
50459
50460 2007-11-11  Bruno Haible  <bruno@clisp.org>
50461
50462         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
50463         gl_FUNC_CEILF_LIBS.
50464         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
50465         gl_FUNC_CEIL_LIBS.
50466         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
50467         gl_FUNC_CEILL_LIBS.
50468         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
50469         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
50470         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
50471
50472 2007-11-11  Bruno Haible  <bruno@clisp.org>
50473
50474         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
50475         roundf were declared but do not exist on functions.
50476         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
50477         roundl were declared but do not exist on functions.
50478         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
50479         HAVE_FLOORL_AND_CEILL, respectively.
50480         Needed for Sun C on Solaris 10.
50481
50482 2007-11-11  Bruno Haible  <bruno@clisp.org>
50483
50484         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
50485         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
50486         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
50487         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
50488         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
50489         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
50490         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
50491         HAVE_DECL_ROUNDF.
50492         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
50493         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
50494         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
50495         of HAVE_DECL_ROUND*.
50496         * modules/math (Makefile.am): Update.
50497
50498 2007-11-10  Bruno Haible  <bruno@clisp.org>
50499
50500         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
50501         ptrdiff_t as m4/intl.m4.
50502
50503 2007-11-10  Jim Meyering  <meyering@redhat.com>
50504
50505         Avoid link failure for the argmatch test.
50506         * tests/test-argmatch.c (usage): Define function to avoid a link
50507         failure: argmatch_die requires a usage function.
50508
50509 2007-11-09  Bruno Haible  <bruno@clisp.org>
50510
50511         * doc/functions/snprintf.texi: Mention BeOS deficiency.
50512         * doc/functions/vsnprintf.texi: Likewise.
50513         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
50514         with a size argument < 2.
50515
50516 2007-11-09  Bruno Haible  <bruno@clisp.org>
50517
50518         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
50519         buffer. Fixes an inefficiency introduced on 2007-11-03.
50520
50521 2007-11-09  Bruno Haible  <bruno@clisp.org>
50522
50523         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
50524         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
50525
50526 2007-11-08  Jim Meyering  <meyering@redhat.com>
50527
50528         Change cache variable name prefix "jm_" to "gl_" everywhere.
50529         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
50530         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
50531         * m4/uptime.m4: s/gl_/jm_/
50532
50533 2007-11-07  Bruno Haible  <bruno@clisp.org>
50534
50535         Update to GNU gettext 0.17.
50536         * m4/intl.m4: Update to GNU gettext 0.17.
50537         * m4/po.m4: Likewise.
50538         * modules/gettext (Files): Remove m4/ulonglong.m4.
50539         (configure.ac): Require gettext infrastructure from version 0.17.
50540
50541 2007-11-06  Bruno Haible  <bruno@clisp.org>
50542
50543         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
50544         symbolic values are not defined in a public header.
50545         * lib/freadable.c (freadable) [QNX]: Likewise.
50546         * lib/freadahead.c (freadahead) [QNX]: Likewise.
50547         * lib/freading.c (freading) [QNX]: Likewise.
50548         * lib/fseterr.c (fseterr) [QNX]: Likewise.
50549         * lib/fwritable.c (fwritable) [QNX]: Likewise.
50550         * lib/fwriting.c (fwriting) [QNX]: Likewise.
50551         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
50552         Reported by Alain Magloire.
50553
50554         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
50555
50556 2007-11-05  Bruno Haible  <bruno@clisp.org>
50557
50558         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
50559         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
50560         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
50561         Reported by Eric Blake.
50562
50563 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50564             Bruno Haible  <bruno@clisp.org>
50565
50566         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
50567         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
50568         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
50569         (malloc): Undefine also before including <stdlib.h>.
50570         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
50571         Needed on OSF/1 4.0.
50572
50573 2007-11-05  Jim Meyering  <meyering@redhat.com>
50574
50575         git-version-gen: sync from coreutils.
50576         * build-aux/git-version-gen: Add comments.
50577         Change the first '-' to '.' in the snapshot version string,
50578         e.g., 6.9-377-08144 -> 6.9.377-08144
50579         Remove first parameter.
50580         Don't declare a version "-dirty" merely because a time
50581         stamp has changed.
50582
50583 2007-11-04  Bruno Haible  <bruno@clisp.org>
50584
50585         * lib/lock.h: Protect all macro definitions containing an 'if'
50586         statement through a "do { ... } while (0)".
50587         * lib/tls.h: Likewise.
50588
50589 2007-11-04  Bruno Haible  <bruno@clisp.org>
50590
50591         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
50592
50593 2007-11-04  Bruno Haible  <bruno@clisp.org>
50594
50595         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
50596         * modules/fprintf-posix (Depends-on): Add nocrash.
50597         * modules/snprintf-posix (Depends-on): Likewise.
50598         * modules/sprintf-posix (Depends-on): Likewise.
50599         * modules/vasnprintf-posix (Depends-on): Likewise.
50600         * modules/vasprintf-posix (Depends-on): Likewise.
50601         * modules/vfprintf-posix (Depends-on): Likewise.
50602         * modules/vsnprintf-posix (Depends-on): Likewise.
50603         * modules/vsprintf-posix (Depends-on): Likewise.
50604         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
50605         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
50606         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
50607         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
50608         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
50609         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
50610         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
50611
50612 2007-11-04  Bruno Haible  <bruno@clisp.org>
50613
50614         * modules/nocrash: New file.
50615         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
50616         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
50617
50618 2007-11-04  Bruno Haible  <bruno@clisp.org>
50619
50620         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
50621         precision handling.
50622         * tests/test-vasprintf-posix.c (test_function): Likewise.
50623         * tests/test-snprintf-posix.h (test_function): Likewise.
50624         * tests/test-sprintf-posix.h (test_function): Likewise.
50625
50626         Fix *printf behaviour for large precisions on mingw and BeOS.
50627         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
50628         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
50629         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
50630         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
50631         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50632         gl_PRINTF_PRECISION and test its result. Invoke
50633         gl_PREREQ_VASNPRINTF_PRECISION.
50634         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50635         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50636         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50637         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50638         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50639         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50640         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50641         * doc/functions/fprintf.texi: Update.
50642         * doc/functions/printf.texi: Update.
50643         * doc/functions/snprintf.texi: Update.
50644         * doc/functions/sprintf.texi: Update.
50645         * doc/functions/vfprintf.texi: Update.
50646         * doc/functions/vprintf.texi: Update.
50647         * doc/functions/vsnprintf.texi: Update.
50648         * doc/functions/vsprintf.texi: Update.
50649
50650 2007-11-04  Bruno Haible  <bruno@clisp.org>
50651
50652         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
50653
50654 2007-11-04  Bruno Haible  <bruno@clisp.org>
50655
50656         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
50657         Reported by Sylvain Beucler <beuc@gnu.org>.
50658
50659 2007-11-03  Bruno Haible  <bruno@clisp.org>
50660
50661         * tests/test-fprintf-posix2.sh: New file.
50662         * tests/test-fprintf-posix2.c: New file.
50663         * modules/fprintf-posix-tests (Files): Add them.
50664         (TESTS): Add test-fprintf-posix2.sh.
50665         (configure.ac): Check for getrlimit and setrlimit.
50666         (check_PROGRAMS): Add test-fprintf-posix2.
50667
50668         * tests/test-printf-posix2.sh: New file.
50669         * tests/test-printf-posix2.c: New file.
50670         * modules/printf-posix-tests (Files): Add them.
50671         (TESTS): Add test-printf-posix2.sh.
50672         (configure.ac): Check for getrlimit and setrlimit.
50673         (check_PROGRAMS): Add test-printf-posix2.
50674
50675         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
50676         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
50677         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
50678         (decode_double): New function, copied from decode_long_double.
50679         (scale10_round_decimal_decoded): New function, extracted from
50680         scale10_round_decimal_long_double.
50681         (scale10_round_decimal_long_double): Use it.
50682         (scale10_round_decimal_double): New function.
50683         (floorlog10): New function.
50684         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
50685         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
50686         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
50687         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50688         gl_PRINTF_ENOMEM and test its result. Invoke
50689         gl_PREREQ_VASNPRINTF_ENOMEM.
50690         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50691         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50692         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50693         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50694         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50695         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50696         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50697         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
50698         * modules/snprintf-posix (Depends-on): Likewise.
50699         * modules/sprintf-posix (Depends-on): Likewise.
50700         * modules/vasnprintf-posix (Depends-on): Likewise.
50701         * modules/vasprintf-posix (Depends-on): Likewise.
50702         * modules/vfprintf-posix (Depends-on): Likewise.
50703         * modules/vsnprintf-posix (Depends-on): Likewise.
50704         * modules/vsprintf-posix (Depends-on): Likewise.
50705         * doc/functions/fprintf.texi: Update.
50706         * doc/functions/printf.texi: Update.
50707         * doc/functions/snprintf.texi: Update.
50708         * doc/functions/sprintf.texi: Update.
50709         * doc/functions/vfprintf.texi: Update.
50710         * doc/functions/vprintf.texi: Update.
50711         * doc/functions/vsnprintf.texi: Update.
50712         * doc/functions/vsprintf.texi: Update.
50713
50714 2007-11-03  Bruno Haible  <bruno@clisp.org>
50715
50716         * modules/frexp-nolibm-tests: New file.
50717
50718         * modules/frexp-nolibm: New file.
50719         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
50720
50721 2007-11-03  Bruno Haible  <bruno@clisp.org>
50722
50723         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
50724         value is C99 compliant.
50725         Needed for OSF/1 5.1.
50726
50727 2007-11-03  Bruno Haible  <bruno@clisp.org>
50728
50729         Fix out-of-memory handling of vasnprintf.
50730         * lib/printf-parse.c: Include <errno.h>.
50731         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
50732         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
50733         is already set.
50734
50735 2007-11-02  Eric Blake  <ebb9@byu.net>
50736
50737         Fix tests on cygwin.
50738         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
50739
50740 2007-11-01  Bruno Haible  <bruno@clisp.org>
50741
50742         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
50743         warning.
50744         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
50745         needed for POSIX compatibility.
50746
50747 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
50748
50749         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
50750         for compatibility with GNU.
50751
50752 2007-11-01  Bruno Haible  <bruno@clisp.org>
50753
50754         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
50755         (putenv): Renamed from rpl_putenv. Change argument type from
50756         'const char *' to 'char *'.
50757         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
50758         of defining putenv in config.h, just set REPLACE_PUTENV.
50759         * modules/putenv (Depends-on): Add stdlib.
50760         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50761         (Include): Use <stdlib.h>.
50762         * lib/stdlib.in.h (putenv): New declaration.
50763         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
50764         REPLACE_PUTENV.
50765         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
50766         REPLACE_PUTENV.
50767         Needed for MacOS X 10.5.0.
50768         Reported by Peter O'Gorman <peter@pogma.com>.
50769
50770 2007-11-01  Jim Meyering  <meyering@redhat.com>
50771
50772         Treat an empty date string exactly like "0".
50773         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
50774         if the remaining date string (to be parsed) is empty, use "0".
50775         Reported by Mischa Molhoek and discussed in this thread:
50776         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
50777
50778 2007-10-31  Bruno Haible  <bruno@clisp.org>
50779
50780         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
50781         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
50782         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
50783         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
50784         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
50785         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
50786
50787 2007-10-31  Bruno Haible  <bruno@clisp.org>
50788
50789         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
50790         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
50791         (AC_TYPE_LONG_LONG_INT): Use it.
50792         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
50793         it as well.
50794         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
50795         to m4/longlong.m4.
50796         * modules/stdint (Files): Remove m4/ulonglong.m4.
50797         * modules/strtoull (Files): Use m4/longlong.m4 instead of
50798         m4/ulonglong.m4.
50799         * modules/strtoumax (Files): Likewise.
50800
50801 2007-10-30  Bruno Haible  <bruno@clisp.org>
50802
50803         * modules/xvasprintf-posix: New file.
50804         Suggested by Eric Blake.
50805
50806 2007-10-30  Bruno Haible  <bruno@clisp.org>
50807
50808         * modules/xprintf-posix-tests: New file.
50809         * tests/test-xprintf-posix.sh: New file.
50810         * tests/test-xprintf-posix.c: New file.
50811         * tests/test-xfprintf-posix.c: New file.
50812
50813         * modules/xprintf-posix: New file.
50814
50815 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50816
50817         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
50818         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
50819         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
50820
50821 2007-10-29  Bruno Haible  <bruno@clisp.org>
50822
50823         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
50824         contain the special marker '_cv_'.
50825         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
50826         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
50827         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
50828         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
50829         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
50830         Reported by Ralf Wildenhues.
50831
50832 2007-10-29  Bruno Haible  <bruno@clisp.org>
50833
50834         * gnulib-tool (func_import): When --lgpl is not specified, set
50835         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
50836         GPLv3.
50837         Reported by Simon Josefsson.
50838
50839 2007-10-28  Bruno Haible  <bruno@clisp.org>
50840
50841         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
50842         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
50843         HAVE_DECL_ISFINITE.
50844         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
50845         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
50846         HAVE_DECL_ISFINITE.
50847
50848 2007-10-28  Bruno Haible  <bruno@clisp.org>
50849
50850         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
50851         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
50852
50853 2007-10-28  Bruno Haible  <bruno@clisp.org>
50854
50855         Fix link errors with Sun C 5.0 on Solaris 10.
50856         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
50857         function is declared but not present in the compiler's libm.
50858         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
50859         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
50860         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
50861         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
50862         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
50863         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
50864         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
50865         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
50866         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
50867         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
50868         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
50869         HAVE_DECL_FLOORL.
50870
50871 2007-10-28  Bruno Haible  <bruno@clisp.org>
50872
50873         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
50874         gl_FUNC_FLOORL. Cache the result.
50875         (gl_FUNC_FLOORL): Use it.
50876         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
50877         gl_FUNC_CEILL. Cache the result.
50878         (gl_FUNC_CEILL): Use it.
50879
50880         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
50881         gl_FUNC_FLOOR. Cache the result.
50882         (gl_FUNC_FLOOR): Use it.
50883         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
50884         gl_FUNC_CEIL. Cache the result.
50885         (gl_FUNC_CEIL): Use it.
50886
50887         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
50888         gl_FUNC_FLOORF. Cache the result.
50889         (gl_FUNC_FLOORF): Use it.
50890         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
50891         gl_FUNC_CEILF. Cache the result.
50892         (gl_FUNC_CEILF): Use it.
50893
50894 2007-10-28  Bruno Haible  <bruno@clisp.org>
50895
50896         * gnulib-tool: Allow specifying the LGPL version number through
50897         --lgpl=2 or --lgpl=3.
50898         (func_usage): Document --lgpl with argument.
50899         Handle --lgpl=... arguments.
50900         (func_import): Recognize also gl_LGPL calls with an argument. When
50901         --lgpl=2 is used and the module's license is just LGPL, report an
50902         error. Set sed_transform_lib_file according to the lgpl variable. In
50903         the generated files, use --lgpl or gl_LGPL invocations with argument,
50904         if necessary.
50905         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
50906         an LGPv2+ license.
50907         * doc/gnulib-tool.texi (Modified imports): Update explanation of
50908         gl_LGPL macro.
50909
50910 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50911             Bruno Haible  <bruno@clisp.org>
50912
50913         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
50914         (u16_uctomb_aux): Likewise.
50915         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
50916         !HAVE_INLINE.
50917         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
50918
50919 2007-10-28  Bruno Haible  <bruno@clisp.org>
50920
50921         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
50922         Invoke AM_GETTEXT_OPTION if it exists.
50923         * modules/vasprintf: Likewise.
50924         * modules/verror: Likewise.
50925         * modules/xprintf: Likewise.
50926         * modules/xvasprintf: Likewise.
50927
50928 2007-10-27  Ben Pfaff  <blp@gnu.org>
50929
50930         * lib/math.in.h: Define isfinite macro and prototypes for
50931         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
50932         implementations.
50933         * m4/math_h.m4: New substitutions for isfinite module.
50934         * lib/isfinite.c: New file.
50935         * m4/isfinite.m4: New file.
50936         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
50937         * modules/isfinite: New file.
50938         * modules/isfinite-tests: New file.
50939         * tests/tests-isfinite.c: New file.
50940         * doc/functions/isfinite.texi: Mention isfinite module.
50941         * MODULES.html.sh: Mention new module.
50942
50943 2007-10-27  Ben Pfaff  <blp@gnu.org>
50944
50945         Ralf Wildenhues reported that Tru64 4.0D declares the round
50946         functions but does not have definitions.
50947         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
50948         cannot be found in any library, set the output variable to
50949         "missing" instead of "".
50950         * m4/round.m4: Also use our substitute if we cannot find round in
50951         any library, even if it is declared.
50952         * m4/roundf.m4: Likewise for roundf.
50953         * m4/roundl.m4: Likewise for roundl.
50954         * lib/math.in.h: Undefine roundf, round, roundl before defining
50955         their replacements, to allow for hypothetical systems where these
50956         may be defined as macros but not available in libraries.
50957
50958 2007-10-27  Bruno Haible  <bruno@clisp.org>
50959
50960         * doc/gnulib.texi: Invoke @firstparagraphindent.
50961         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
50962         changes in gnulib.
50963         (Source changes): New section.
50964
50965 2007-10-26  Bruno Haible  <bruno@clisp.org>
50966
50967         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
50968         borrowed from autoconf.
50969
50970 2007-10-26  Bruno Haible  <bruno@clisp.org>
50971
50972         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
50973         strerror returned the empty string. Needed on HP-UX 11.00.
50974
50975 2007-10-24  Micah Cowan  <micah@cowan.name>
50976
50977         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
50978         * build-aux/bootstrap: Remove support for now-unnecessary option,
50979         --cvs-user, and envvars CVS_USER, CVS_RSH.
50980
50981 2007-10-24  Jim Meyering  <meyering@redhat.com>
50982
50983         Avoid diagnostics from sha1sum when there is no cached checksum.
50984         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
50985         if the po.s1 file hasn't been created yet.
50986
50987         * build-aux/bootstrap: Sync from coreutils:
50988         2007-10-24  Jim Meyering  <meyering@redhat.com>
50989         Get gnulib from the git repository, not from an obsolete cvs one.
50990         * build-aux/bootstrap: Suggestion from Micah Cowan.
50991         2007-10-04  Jim Meyering  <jim@meyering.net>
50992         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
50993         (update_po_files): Work also when there are no .po files in po/.
50994
50995 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
50996
50997         * README: Append ".git" to git and cg examples.
50998         Problem reported by Benoit Sigoure.
50999
51000 2007-10-23  Micah Cowan  <micah@cowan.name>
51001
51002         * users.txt: Add wget.
51003
51004 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51005
51006         Fix linking of some unistdio tests on FreeBSD.
51007         * modules/unistdio/u16-vsnprintf-tests
51008         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
51009         * modules/unistdio/u16-vsprintf-tests
51010         (test_u16_vsnprintf1_LDADD): Likewise.
51011         * modules/unistdio/u32-vsnprintf-tests
51012         (test_u32_vsnprintf1_LDADD): Likewise.
51013         * modules/unistdio/u32-vsprintf-tests
51014         (test_u32_vsprintf1_LDADD): Likewise.
51015         * modules/unistdio/u8-vsnprintf-tests
51016         (test_u8_vsnprintf1_LDADD): Likewise.
51017         * modules/unistdio/u8-vsprintf-tests
51018         (test_u8_vsprintf1_LDADD): Likewise.
51019         * modules/unistdio/ulc-vsnprintf-tests
51020         (test_ulc_vsnprintf1_LDADD): Likewise.
51021         * modules/unistdio/ulc-vsprintf-tests
51022         (test_ulc_vsprintf1_LDADD): Likewise.
51023
51024         Fix linking of some uniconv tests on FreeBSD.
51025         * modules/uniconv/u16-conv-from-enc-tests
51026         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
51027         * modules/uniconv/u16-conv-to-enc-tests
51028         (test_u16_conv_to_enc_LDADD): Likewise.
51029         * modules/uniconv/u16-strconv-from-enc-tests
51030         (test_u16_strconv_from_enc_LDADD): Likewise.
51031         * modules/uniconv/u16-strconv-to-enc-tests
51032         (test_u16_strconv_to_enc_LDADD): Likewise.
51033         * modules/uniconv/u32-conv-from-enc-tests
51034         (test_u32_conv_from_enc_LDADD): Likewise.
51035         * modules/uniconv/u32-conv-to-enc-tests
51036         (test_u32_conv_to_enc_LDADD): Likewise.
51037         * modules/uniconv/u32-strconv-from-enc-tests
51038         (test_u32_strconv_from_enc_LDADD): Likewise.
51039         * modules/uniconv/u32-strconv-to-enc-tests
51040         (test_u32_strconv_to_enc_LDADD): Likewise.
51041         * modules/uniconv/u8-conv-from-enc-tests
51042         (test_u8_conv_from_enc_LDADD): Likewise.
51043         * modules/uniconv/u8-conv-to-enc-tests
51044         (test_u8_conv_to_enc_LDADD): Likewise.
51045         * modules/uniconv/u8-strconv-from-enc-tests
51046         (test_u8_strconv_from_enc_LDADD): Likewise.
51047         * modules/uniconv/u8-strconv-to-enc-tests
51048         (test_u8_strconv_to_enc_LDADD): Likewise.
51049
51050 2007-10-22  Bruno Haible  <bruno@clisp.org>
51051
51052         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
51053         size.
51054
51055 2007-10-22  Eric Blake  <ebb9@byu.net>
51056
51057         Tweak x*printf documentation.
51058         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
51059         variable name and comments.
51060         Suggested by Bruno Haible.
51061
51062 2007-10-22  Bruno Haible  <bruno@clisp.org>
51063
51064         * lib/acl.c (copy_acl): Fix file name in comment.
51065
51066 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
51067
51068         Fix Tru64 problem with stdbool.h.
51069         * lib/stdbool.in.h (false, true):
51070         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
51071         Don't declare as an enum in this situation; it runs afoul of Tru64.
51072         Problem reported by Steven M. Schweda in
51073         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
51074
51075 2007-10-22  Eric Blake  <ebb9@byu.net>
51076
51077         Also wrap vf?printf.
51078         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
51079         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
51080         (xvprintf, xvfprintf): New functions.
51081
51082 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51083
51084         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
51085         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
51086
51087         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
51088         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
51089
51090 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
51091
51092         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
51093         by Bruno Haible.
51094
51095 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51096
51097         * lib/getloadavg.c
51098         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
51099         Undef `sys' after including sys/table.h, for Tru64 4.0D.
51100
51101         * tests/test-i-ring.c: Work for C89.
51102
51103 2007-10-22  Bruno Haible  <bruno@clisp.org>
51104
51105         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
51106         -1u, in preprocessor expression, so that we don't test for the bug
51107         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
51108         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
51109
51110 2007-10-22  Eric Blake  <ebb9@byu.net>
51111
51112         * tests/test-yesno.sh: Silence stderr during test.
51113
51114 2007-10-22  Simon Josefsson  <simon@josefsson.org>
51115
51116         * modules/crypto/gc-camellia: New file.
51117
51118         * m4/gc-camellia.m4: New file.
51119
51120         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
51121
51122         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
51123
51124 2007-10-22  Simon Josefsson  <simon@josefsson.org>
51125
51126         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
51127         --help to stdout.  Reported by sms@antinode.org (Steven
51128         M. Schweda).
51129
51130 2007-10-22  Simon Josefsson  <simon@josefsson.org>
51131
51132         * users.txt: Fix link to libksba.
51133
51134 2007-10-21  Ben Pfaff  <blp@gnu.org>
51135
51136         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
51137         round.c roundf implementation that depends on floorf and ceilf to
51138         be tested unconditionally.
51139
51140 2007-10-21  Ben Pfaff  <blp@gnu.org>
51141
51142         * m4/check-libm-func.m4: Removed.
51143         * m4/check-math-lib.m4: New file.
51144         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
51145         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
51146         definition and lack of AC_LIBOBJ([roundf]).
51147         * m4/roundl.m4: Ditto, and similarly for roundl.
51148         * modules/round: Reference new m4 file.
51149         * modules/roundf: Ditto.
51150         * modules/roundl: Ditto.
51151         * tests/test-round2.c (main): Use ROUND instead of round.
51152         Bug report from Bruno Haible.
51153
51154 2007-10-21  Bruno Haible  <bruno@clisp.org>
51155
51156         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
51157         context.
51158
51159 2007-10-21  Bruno Haible  <bruno@clisp.org>
51160
51161         * tests/test-wcwidth.c (main): Allow negative result for some control
51162         characters.
51163
51164         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
51165         Needed on OSF/1 5.1.
51166
51167 2007-10-21  Bruno Haible  <bruno@clisp.org>
51168
51169         * tests/test-floorf1.c: Include isnanf.h.
51170         (main): Use isnanf() instead of isnan().
51171         * tests/test-ceilf1.c: Include isnanf.h.
51172         (main): Use isnanf() instead of isnan().
51173         * tests/test-truncf1.c: Include isnanf.h.
51174         (main): Use isnanf() instead of isnan().
51175         * tests/test-roundf1.c: Include isnanf.h.
51176         (main): Use isnanf() instead of isnan().
51177
51178 2007-10-21  Eric Blake  <ebb9@byu.net>
51179
51180         * users.txt: Update URL for m4.
51181
51182 2007-10-21  Bruno Haible  <bruno@clisp.org>
51183
51184         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
51185
51186 2007-10-21  Bruno Haible  <bruno@clisp.org>
51187
51188         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
51189         Git's management files if the CVS files are not present.
51190
51191 2007-10-20  Bruno Haible  <bruno@clisp.org>
51192
51193         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
51194         gcc-3.4.x.
51195
51196 2007-10-20  Ben Pfaff  <blp@gnu.org>
51197
51198         * lib/math.in.h: Declare round, roundf, roundl if we are providing
51199         implementations.
51200         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
51201         * lib/round.c: New file.
51202         * lib/roundf.c: New file.
51203         * lib/roundl.c: New file.
51204         * m4/round.m4: New file.
51205         * m4/roundf.m4: New file.
51206         * m4/roundl.m4: New file.
51207         * m4/check-libm-func-m4: New file.
51208         * modules/math: Replace round, roundf, roundl related @VARS@ in
51209         math.in.h.
51210         * modules/round: New file.
51211         * modules/round-tests: New file.
51212         * modules/roundf: New file.
51213         * modules/roundf-tests: New file.
51214         * modules/roundl: New file.
51215         * modules/roundl-tests: New file.
51216         * tests/test-round1.c: New file.
51217         * tests/test-round2.c: New file.
51218         * tests/test-roundf1.c: New file.
51219         * tests/test-roundf2.c: New file.
51220         * tests/test-roundl.c: New file.
51221         * doc/functions/round.texi: Mention round module.
51222         * doc/functions/roundf.texi: Mention roundf module.
51223         * doc/functions/roundl.texi: Mention roundl module.
51224         * MODULES.html.sh: Mention new modules.
51225         Thanks to Bruno Haible for suggestions.
51226
51227 2007-10-20  Jim Meyering  <meyering@redhat.com>
51228
51229         * lib/xprintf.c: Include <config.h> unconditionally.
51230
51231         Change xprintf's license to GPL.
51232         * modules/xprintf (License): s/LGPL/GPL/, since this module
51233         depends on modules (exit and exitfail) which are GPL.
51234         Suggestion from Bruno Haible.
51235
51236         xprintf fixes.
51237         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
51238         Use a clearer diagnostic.
51239         Patch from Bruno Haible.
51240
51241 2007-10-20  Bruno Haible  <bruno@clisp.org>
51242
51243         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
51244         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
51245         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51246
51247 2007-10-20  Bruno Haible  <bruno@clisp.org>
51248
51249         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
51250         precision in the comparison result > x - 1 or similar.
51251         * tests/test-ceilf2.c (correct_result_p): Likewise.
51252         * tests/test-truncf2.c (correct_result_p): Likewise.
51253         * tests/test-trunc2.c (correct_result_p): Likewise.
51254         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51255
51256 2007-10-20  Bruno Haible  <bruno@clisp.org>
51257
51258         * modules/ceil: New file.
51259         * m4/ceil.m4: New file.
51260         * doc/functions/ceil.texi: Mention the 'ceil' module.
51261
51262 2007-10-20  Bruno Haible  <bruno@clisp.org>
51263
51264         * modules/floor: New file.
51265         * m4/floor.m4: New file.
51266         * doc/functions/floor.texi: Mention the 'floor' module.
51267
51268 2007-10-20  Bruno Haible  <bruno@clisp.org>
51269
51270         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
51271         of %a.
51272         * modules/floorf-tests (Depends-on): Likewise.
51273         * modules/truncf-tests (Depends-on): Likewise.
51274         * modules/trunc-tests (Depends-on): Likewise.
51275         Reported by Ben Pfaff.
51276
51277 2007-10-19  Jim Meyering  <meyering@redhat.com>
51278
51279         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
51280         Don't bother testing specific errno values.  Just test ferror.
51281
51282         New module: xprintf
51283         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
51284
51285 2007-10-19  Bruno Haible  <bruno@clisp.org>
51286
51287         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
51288         syntax.
51289         * modules/javaexec (Makefile.am): Likewise.
51290         * modules/relocatable-prog (Makefile.am): Likewise.
51291         Suggested by Jim Meyering.
51292
51293 2007-10-18  Bruno Haible  <bruno@clisp.org>
51294
51295         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
51296         Reported by Jim Meyering.
51297
51298 2007-10-18  Eric Blake  <ebb9@byu.net>
51299
51300         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
51301
51302 2007-10-18  Bruno Haible  <bruno@clisp.org>
51303
51304         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
51305         the format string into writable memory. Needed in Fortify conditions.
51306
51307 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
51308             Bruno Haible  <bruno@clisp.org>
51309
51310         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
51311         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
51312         * modules/trim (Depends-on): Add mbchar.
51313         (configure.ac): Add gl_FUNC_MBRTOWC.
51314         (Makefile.am): Augment lib_SOURCES.
51315
51316 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
51317
51318         Modify glob.c to use fstatat and dirfd, to simplify it.
51319         Suggested by Eric Blake.
51320         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
51321         Don't include <stdbool.h>; not used.
51322         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
51323         (link_exists_p): Simplify implementation, since we can now assume
51324         dirfd and fstatat.
51325         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
51326
51327 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51328
51329         * gnulib-tool (func_get_dependencies): Fix sed script to
51330         match only tests.
51331
51332 2007-10-17  Bruno Haible  <bruno@clisp.org>
51333
51334         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
51335         allow locale names without encoding suffix.
51336         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
51337         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
51338
51339 2007-10-16  Bruno Haible  <bruno@clisp.org>
51340
51341         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
51342         * lib/getgroups.c (getgroups): Likewise.
51343         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
51344
51345 2007-10-16  Bruno Haible  <bruno@clisp.org>
51346
51347         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
51348         * modules/malloc-posix (License): Likewise.
51349         * modules/realloc-posix (License): Likewise.
51350         * modules/calloc-posix (License): Likewise.
51351         * modules/intprops (License): Change from GPL to LGPL, with
51352         Paul Eggert's approval.
51353
51354 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
51355
51356         Merge glibc changes into lib/glob.c.
51357
51358         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
51359         2007-10-15 04:59:03 UTC.  Here are the changes:
51360
51361         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
51362
51363         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
51364
51365         * lib/glob.c: Add some branch prediction throughout.
51366
51367         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
51368
51369         [BZ #5103]
51370         * lib/glob.c (glob): Recognize patterns starting \/.
51371
51372         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
51373
51374         [BZ #3996]
51375         * lib/glob.c (attribute_hidden): Define if not defined.
51376         (glob): Unescape dirname, filename or username when needed and not
51377         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
51378         is NULL.  Handle unescaped [ in pattern without closing ].
51379         Don't pass GLOB_CHECK down to recursive glob for directories.
51380         (__glob_pattern_type): New function.
51381         (__glob_pattern_p): Implement using __glob_pattern_type.
51382         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
51383         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
51384         Remove unreachable code.
51385
51386         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
51387
51388         * lib/glob.c (glob_in_dir): Add some comments and asserts to
51389         explain why there are no leaks.
51390
51391         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
51392
51393         [BZ #3253]
51394         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
51395         time, rather allocate increasingly bigger arrays of pointers, if
51396         possible with alloca, if too large with malloc.
51397
51398 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
51399
51400         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
51401         Problem reported by H.Merijn Brand in
51402         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
51403         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
51404         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
51405
51406 2007-10-15  Bruno Haible  <bruno@clisp.org>
51407
51408         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
51409         with explicit rpl_ prefix.
51410         * lib/fopen.c (fopen): Likewise.
51411         * lib/freopen.c (freopen): Likewise.
51412         * lib/iconv.c (iconv): Likewise.
51413         * lib/iconv_close.c (iconv_close): Likewise.
51414
51415 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51416
51417         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
51418
51419 2007-10-15  Bruno Haible  <bruno@clisp.org>
51420
51421         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
51422         <stddef.h> instead of <stdlib.h> since we only need NULL.
51423         Reported by Ben Pfaff <blp@cs.stanford.edu>.
51424
51425 2007-10-15  Bruno Haible  <bruno@clisp.org>
51426
51427         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
51428         Replace paragraph talking about LIBOBJS.
51429         Reported by Colin Watson <cjwatson@debian.org>.
51430
51431 2007-10-15  Bruno Haible  <bruno@clisp.org>
51432
51433         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
51434         <stdlib.h> before using NULL.
51435
51436 2007-10-15  Simon Josefsson  <simon@josefsson.org>
51437
51438         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
51439         Reported by Albert Chin <china@thewrittenword.com>.
51440
51441 2007-10-14  Bruno Haible  <bruno@clisp.org>
51442
51443         * modules/iconv_open-utf-tests: New file.
51444         * tests/test-iconv-utf.c: New file.
51445
51446         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
51447         * modules/iconv_open-utf: New file.
51448         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
51449         (iconv, iconv_close): New declarations.
51450         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
51451         be defined.
51452         (iconv_open): Add special handling of conversion between UTF-8 and
51453         UTF-{16,32}{BE,LE}.
51454         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
51455         * lib/iconv_close.c: New file.
51456         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
51457         gl_FUNC_ICONV_OPEN.
51458         (gl_FUNC_ICONV_OPEN): Use it.
51459         (gl_FUNC_ICONV_OPEN_UTF): New macro.
51460         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
51461         and REPLACE_ICONV_UTF.
51462         * modules/iconv_open (Depends-on): Add c-strcase.
51463         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
51464         ICONV_CONST.
51465         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
51466
51467 2007-10-13  Albert Chin  <china@thewrittenword.com>
51468             Bruno Haible  <bruno@clisp.org>
51469
51470         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
51471         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
51472
51473 2007-10-13  Bruno Haible  <bruno@clisp.org>
51474
51475         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
51476         defined, use the ISO C99 inline semantics.
51477         * lib/argp.h (ARGP_EI): Likewise.
51478
51479 2007-10-13  Bruno Haible  <bruno@clisp.org>
51480
51481         Handle 'inline' change in gcc 4.3.0.
51482         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
51483         argp_fmtstream_write, argp_fmtstream_set_lmargin,
51484         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
51485         argp_fmtstream_point): Disable 'extern' declaration if the function
51486         definition is going to be provided inline.
51487         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
51488         semantics, not the ISO C99 inline semantics.
51489         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
51490         'extern' declaration if the function definition is going to be provided
51491         inline.
51492         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
51493         the GNU C inline semantics, not the ISO C99 inline semantics. With
51494         GCC 4.2, avoid a warning.
51495
51496 2007-10-13  Bruno Haible  <bruno@clisp.org>
51497
51498         * lib/freading.h (freading): Enable the use of __freading for
51499         glibc >= 2.7.
51500         * lib/freading.c (freading): Likewise.
51501
51502 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
51503
51504         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
51505         "warning: C99 inline functions are not supported; using GNU89".
51506
51507 2007-10-12  Bruno Haible  <bruno@clisp.org>
51508
51509         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
51510         of 2.
51511         * tests/test-ceilf2.c: New file.
51512         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
51513
51514         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
51515         * modules/ceilf-tests: Update.
51516
51517 2007-10-12  Bruno Haible  <bruno@clisp.org>
51518
51519         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
51520         of 2.
51521         * tests/test-floorf2.c: New file.
51522         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
51523
51524         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
51525         * modules/floorf-tests: Update.
51526
51527 2007-10-12  Bruno Haible  <bruno@clisp.org>
51528
51529         * tests/test-trunc2.c: New file.
51530         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
51531
51532         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
51533         * modules/trunc-tests: Update.
51534
51535 2007-10-12  Bruno Haible  <bruno@clisp.org>
51536
51537         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
51538         of 2.
51539         * tests/test-truncf2.c: New file.
51540         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
51541
51542         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
51543         * modules/truncf-tests: Update.
51544
51545 2007-10-11  Eric Blake  <ebb9@byu.net>
51546
51547         Don't claim strerror is broken on Interix.
51548         * doc/functions/strerror.texi (strerror): Known broken systems are
51549         now Solaris 8, and not Interix.
51550         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
51551         Interix on cross-compile.
51552         Reported by Martin Koeppe in
51553         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
51554
51555 2007-10-11  Bruno Haible  <bruno@clisp.org>
51556
51557         * modules/i-ring-tests: New file.
51558         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
51559         instead of assert.
51560
51561 2007-10-11  Bruno Haible  <bruno@clisp.org>
51562
51563         * modules/filenamecat-tests: New file.
51564         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
51565         * lib/filenamecat.c: Remove test code.
51566
51567 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
51568
51569         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
51570
51571         * lib/strerror.c: Include <string.h> always, to test interface,
51572         and to remove the need for the dummy.
51573         Include intprops.h to compute width instead of doing it ourselves
51574         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
51575         (strerror): Define it to return NULL if there's no system strerror.
51576         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
51577         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
51578         ancient pre-strerror Unix systems well any more.  Saying "unknown
51579         system error" is enough.
51580         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
51581         simpler strerror.c implementation.
51582         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
51583         Simplify the tests to reflect the simpler strerror implementation.
51584         * modules/strerror (Depends-on): Add intprops.
51585
51586 2007-10-09  Eric Blake  <ebb9@byu.net>
51587
51588         Silence test-fpending.
51589         * modules/fpending-tests (Files): Add wrapper script.
51590         * tests/test-fpending.sh: New file.
51591
51592 2007-10-09  Bruno Haible  <bruno@clisp.org>
51593
51594         * MODULES.html.sh (func_module): Don't create a hyperlink for
51595         function names like 'printf_frexp'.
51596         (Misc): Add crc, memxor.
51597         (Characteristics of floating types): New section.
51598         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
51599         isnanf-nolibm, signbit, trunc, truncf, truncl.
51600         (Enhancements for ISO C 99 functions): New subsection Input/output.
51601         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
51602         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
51603         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
51604         (Compatibility checks for POSIX:2001 functions): Add clock-time.
51605         (Enhancements for POSIX:2001 functions): Add chdir-long.
51606         (File system functions): Add areadlink, chdir-safer, read-file.
51607         Remove cycle-check.
51608         (File system as inode set): New section.
51609         (Date and time): Add gethrxtime.
51610         (Multithreading): Add openmp.
51611         (Internationalization functions): Add localename.
51612         (Unicode string functions): Add unistr/u*-mbsnlen.
51613         (Support for maintaining and releasing projects): Add git-version-gen.
51614         (Lone files): Remove directories.
51615
51616 2007-10-08  Ben Pfaff  <blp@gnu.org>
51617
51618         * lib/xmalloca.h: Fix typo in comment.
51619
51620 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
51621
51622         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
51623         when avoiding problems with integer overflow.  Use a portable test
51624         instead.
51625
51626 2007-10-08  Simon Josefsson  <simon@josefsson.org>
51627
51628         * modules/dummy (License): Change to LGPLv2+.
51629         * modules/float (License): Likewise
51630         * modules/realloc (License): Likewise
51631         * modules/stdlib (License): Likewise
51632
51633 2007-10-07  Bruno Haible  <bruno@clisp.org>
51634
51635         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
51636         * floor.c (TWO_MANT_DIG): Likewise.
51637         * ceil.c (TWO_MANT_DIG): Likewise.
51638         Reported by Ben Pfaff.
51639
51640 2007-10-07  Bruno Haible  <bruno@clisp.org>
51641
51642         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
51643         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
51644         * lib/frexp.c (FUNC): Likewise.
51645         * lib/printf-frexp.h (printf_frexp): Likewise.
51646         * lib/printf-frexpl.h (printf_frexpl): Likewise.
51647         * lib/printf-frexp.c (FUNC): Likewise.
51648         Suggested by Jim Meyering.
51649
51650 2007-10-07  Jim Meyering  <meyering@redhat.com>
51651
51652         Make xnanosleep's integer overflow test more robust.
51653         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
51654         so that gcc-4.3.0 doesn't optimize away this test for overflow.
51655
51656 2007-10-07  Bruno Haible  <bruno@clisp.org>
51657
51658         * NEWS: Mention the license change.
51659
51660         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
51661         abbreviations in the modules files.
51662
51663         Change copyright notice from GPLv2+ to GPLv3+.
51664         * README: Change copyright notice.
51665         * MODULES.html.sh: Likewise.
51666         * build-aux/bootstrap.conf: Likewise.
51667         * build-aux/config.libpath: Likewise.
51668         * build-aux/csharpcomp.sh.in: Likewise.
51669         * build-aux/csharpexec.sh.in: Likewise.
51670         * build-aux/install-reloc: Likewise.
51671         * build-aux/javacomp.sh.in: Likewise.
51672         * build-aux/javaexec.sh.in: Likewise.
51673         * build-aux/ldd.sh.in: Likewise.
51674         * build-aux/reloc-ldflags: Likewise.
51675         * build-aux/relocatable.sh.in: Likewise.
51676         * build-aux/x-to-1.in: Likewise.
51677         * check-module: Likewise.
51678         * config/srclistvars.sh: Likewise.
51679         * gnulib-tool: Likewise.
51680         * lib/acl-internal.h: Likewise.
51681         * lib/acl.c: Likewise.
51682         * lib/acl.h: Likewise.
51683         * lib/acl_entries.c: Likewise.
51684         * lib/areadlink-with-size.c: Likewise.
51685         * lib/areadlink.c: Likewise.
51686         * lib/areadlink.h: Likewise.
51687         * lib/argmatch.c: Likewise.
51688         * lib/argmatch.h: Likewise.
51689         * lib/argp-ba.c: Likewise.
51690         * lib/argp-eexst.c: Likewise.
51691         * lib/argp-fmtstream.c: Likewise.
51692         * lib/argp-fmtstream.h: Likewise.
51693         * lib/argp-fs-xinl.c: Likewise.
51694         * lib/argp-help.c: Likewise.
51695         * lib/argp-namefrob.h: Likewise.
51696         * lib/argp-parse.c: Likewise.
51697         * lib/argp-pin.c: Likewise.
51698         * lib/argp-pv.c: Likewise.
51699         * lib/argp-pvh.c: Likewise.
51700         * lib/argp-xinl.c: Likewise.
51701         * lib/argp.h: Likewise.
51702         * lib/at-func.c: Likewise.
51703         * lib/atanl.c: Likewise.
51704         * lib/backupfile.c: Likewise.
51705         * lib/backupfile.h: Likewise.
51706         * lib/basename.c: Likewise.
51707         * lib/binary-io.h: Likewise.
51708         * lib/byteswap.in.h: Likewise.
51709         * lib/c-stack.c: Likewise.
51710         * lib/c-stack.h: Likewise.
51711         * lib/c-strcasestr.c: Likewise.
51712         * lib/c-strcasestr.h: Likewise.
51713         * lib/c-strstr.c: Likewise.
51714         * lib/c-strstr.h: Likewise.
51715         * lib/c-strtod.c: Likewise.
51716         * lib/calloc.c: Likewise.
51717         * lib/canon-host.c: Likewise.
51718         * lib/canon-host.h: Likewise.
51719         * lib/canonicalize-lgpl.c: Likewise.
51720         * lib/canonicalize.c: Likewise.
51721         * lib/canonicalize.h: Likewise.
51722         * lib/ceil.c: Likewise.
51723         * lib/ceilf.c: Likewise.
51724         * lib/ceill.c: Likewise.
51725         * lib/chdir-long.c: Likewise.
51726         * lib/chdir-long.h: Likewise.
51727         * lib/chdir-safer.c: Likewise.
51728         * lib/chdir-safer.h: Likewise.
51729         * lib/chown.c: Likewise.
51730         * lib/classpath.c: Likewise.
51731         * lib/classpath.h: Likewise.
51732         * lib/clean-temp.c: Likewise.
51733         * lib/clean-temp.h: Likewise.
51734         * lib/cloexec.c: Likewise.
51735         * lib/close-stream.c: Likewise.
51736         * lib/closein.c: Likewise.
51737         * lib/closein.h: Likewise.
51738         * lib/closeout.c: Likewise.
51739         * lib/closeout.h: Likewise.
51740         * lib/concat-filename.c: Likewise.
51741         * lib/copy-file.c: Likewise.
51742         * lib/copy-file.h: Likewise.
51743         * lib/count-one-bits.h: Likewise.
51744         * lib/crc.c: Likewise.
51745         * lib/crc.h: Likewise.
51746         * lib/creat-safer.c: Likewise.
51747         * lib/csharpcomp.c: Likewise.
51748         * lib/csharpcomp.h: Likewise.
51749         * lib/csharpexec.c: Likewise.
51750         * lib/csharpexec.h: Likewise.
51751         * lib/cycle-check.c: Likewise.
51752         * lib/cycle-check.h: Likewise.
51753         * lib/diacrit.c: Likewise.
51754         * lib/diacrit.h: Likewise.
51755         * lib/diffseq.h: Likewise.
51756         * lib/dirchownmod.c: Likewise.
51757         * lib/dirent.in.h: Likewise.
51758         * lib/dirfd.c: Likewise.
51759         * lib/dirfd.h: Likewise.
51760         * lib/dirname.c: Likewise.
51761         * lib/dirname.h: Likewise.
51762         * lib/dummy.c: Likewise.
51763         * lib/dup-safer.c: Likewise.
51764         * lib/dup2.c: Likewise.
51765         * lib/eealloc.h: Likewise.
51766         * lib/error.c: Likewise.
51767         * lib/error.h: Likewise.
51768         * lib/euidaccess.c: Likewise.
51769         * lib/exclude.c: Likewise.
51770         * lib/exclude.h: Likewise.
51771         * lib/execute.c: Likewise.
51772         * lib/execute.h: Likewise.
51773         * lib/exitfail.c: Likewise.
51774         * lib/exitfail.h: Likewise.
51775         * lib/expl.c: Likewise.
51776         * lib/fatal-signal.c: Likewise.
51777         * lib/fatal-signal.h: Likewise.
51778         * lib/fbufmode.c: Likewise.
51779         * lib/fbufmode.h: Likewise.
51780         * lib/fchdir.c: Likewise.
51781         * lib/fchmodat.c: Likewise.
51782         * lib/fchownat.c: Likewise.
51783         * lib/fcntl--.h: Likewise.
51784         * lib/fcntl-safer.h: Likewise.
51785         * lib/fcntl.in.h: Likewise.
51786         * lib/fd-safer.c: Likewise.
51787         * lib/fflush.c: Likewise.
51788         * lib/file-has-acl.c: Likewise.
51789         * lib/file-set.c: Likewise.
51790         * lib/file-type.c: Likewise.
51791         * lib/file-type.h: Likewise.
51792         * lib/fileblocks.c: Likewise.
51793         * lib/filemode.c: Likewise.
51794         * lib/filemode.h: Likewise.
51795         * lib/filename.h: Likewise.
51796         * lib/filenamecat.c: Likewise.
51797         * lib/filenamecat.h: Likewise.
51798         * lib/findprog.c: Likewise.
51799         * lib/findprog.h: Likewise.
51800         * lib/float.in.h: Likewise.
51801         * lib/floor.c: Likewise.
51802         * lib/floorf.c: Likewise.
51803         * lib/floorl.c: Likewise.
51804         * lib/fopen-safer.c: Likewise.
51805         * lib/fopen.c: Likewise.
51806         * lib/fpending.c: Likewise.
51807         * lib/fpending.h: Likewise.
51808         * lib/fprintf.c: Likewise.
51809         * lib/fprintftime.h: Likewise.
51810         * lib/fpucw.h: Likewise.
51811         * lib/fpurge.c: Likewise.
51812         * lib/fpurge.h: Likewise.
51813         * lib/freadable.c: Likewise.
51814         * lib/freadable.h: Likewise.
51815         * lib/freadahead.c: Likewise.
51816         * lib/freadahead.h: Likewise.
51817         * lib/freading.c: Likewise.
51818         * lib/freading.h: Likewise.
51819         * lib/free.c: Likewise.
51820         * lib/freopen.c: Likewise.
51821         * lib/frexp.c: Likewise.
51822         * lib/frexpl.c: Likewise.
51823         * lib/fseek.c: Likewise.
51824         * lib/fseterr.c: Likewise.
51825         * lib/fseterr.h: Likewise.
51826         * lib/fstatat.c: Likewise.
51827         * lib/fstrcmp.c: Likewise.
51828         * lib/fstrcmp.h: Likewise.
51829         * lib/fsusage.c: Likewise.
51830         * lib/fsusage.h: Likewise.
51831         * lib/ftell.c: Likewise.
51832         * lib/ftello.c: Likewise.
51833         * lib/fts-cycle.c: Likewise.
51834         * lib/fts.c: Likewise.
51835         * lib/fts_.h: Likewise.
51836         * lib/full-read.c: Likewise.
51837         * lib/full-read.h: Likewise.
51838         * lib/full-write.c: Likewise.
51839         * lib/full-write.h: Likewise.
51840         * lib/fwritable.c: Likewise.
51841         * lib/fwritable.h: Likewise.
51842         * lib/fwriteerror.c: Likewise.
51843         * lib/fwriteerror.h: Likewise.
51844         * lib/fwriting.c: Likewise.
51845         * lib/fwriting.h: Likewise.
51846         * lib/gcd.c: Likewise.
51847         * lib/gcd.h: Likewise.
51848         * lib/getcwd.c: Likewise.
51849         * lib/getdate.h: Likewise.
51850         * lib/getdate.y: Likewise.
51851         * lib/getdomainname.c: Likewise.
51852         * lib/getdomainname.h: Likewise.
51853         * lib/getgroups.c: Likewise.
51854         * lib/gethostname.c: Likewise.
51855         * lib/gethrxtime.c: Likewise.
51856         * lib/gethrxtime.h: Likewise.
51857         * lib/getloadavg.c: Likewise.
51858         * lib/getndelim2.c: Likewise.
51859         * lib/getndelim2.h: Likewise.
51860         * lib/getnline.c: Likewise.
51861         * lib/getnline.h: Likewise.
51862         * lib/getopt.c: Likewise.
51863         * lib/getopt.in.h: Likewise.
51864         * lib/getopt1.c: Likewise.
51865         * lib/getopt_int.h: Likewise.
51866         * lib/getpagesize.h: Likewise.
51867         * lib/getsubopt.c: Likewise.
51868         * lib/gettime.c: Likewise.
51869         * lib/getugroups.c: Likewise.
51870         * lib/getugroups.h: Likewise.
51871         * lib/getusershell.c: Likewise.
51872         * lib/gl_anyavltree_list1.h: Likewise.
51873         * lib/gl_anyavltree_list2.h: Likewise.
51874         * lib/gl_anyhash_list1.h: Likewise.
51875         * lib/gl_anyhash_list2.h: Likewise.
51876         * lib/gl_anylinked_list1.h: Likewise.
51877         * lib/gl_anylinked_list2.h: Likewise.
51878         * lib/gl_anyrbtree_list1.h: Likewise.
51879         * lib/gl_anyrbtree_list2.h: Likewise.
51880         * lib/gl_anytree_list1.h: Likewise.
51881         * lib/gl_anytree_list2.h: Likewise.
51882         * lib/gl_anytree_oset.h: Likewise.
51883         * lib/gl_anytreehash_list1.h: Likewise.
51884         * lib/gl_anytreehash_list2.h: Likewise.
51885         * lib/gl_array_list.c: Likewise.
51886         * lib/gl_array_list.h: Likewise.
51887         * lib/gl_array_oset.c: Likewise.
51888         * lib/gl_array_oset.h: Likewise.
51889         * lib/gl_avltree_list.c: Likewise.
51890         * lib/gl_avltree_list.h: Likewise.
51891         * lib/gl_avltree_oset.c: Likewise.
51892         * lib/gl_avltree_oset.h: Likewise.
51893         * lib/gl_avltreehash_list.c: Likewise.
51894         * lib/gl_avltreehash_list.h: Likewise.
51895         * lib/gl_carray_list.c: Likewise.
51896         * lib/gl_carray_list.h: Likewise.
51897         * lib/gl_linked_list.c: Likewise.
51898         * lib/gl_linked_list.h: Likewise.
51899         * lib/gl_linkedhash_list.c: Likewise.
51900         * lib/gl_linkedhash_list.h: Likewise.
51901         * lib/gl_list.c: Likewise.
51902         * lib/gl_list.h: Likewise.
51903         * lib/gl_oset.c: Likewise.
51904         * lib/gl_oset.h: Likewise.
51905         * lib/gl_rbtree_list.c: Likewise.
51906         * lib/gl_rbtree_list.h: Likewise.
51907         * lib/gl_rbtree_oset.c: Likewise.
51908         * lib/gl_rbtree_oset.h: Likewise.
51909         * lib/gl_rbtreehash_list.c: Likewise.
51910         * lib/gl_rbtreehash_list.h: Likewise.
51911         * lib/gl_sublist.c: Likewise.
51912         * lib/gl_sublist.h: Likewise.
51913         * lib/group-member.c: Likewise.
51914         * lib/group-member.h: Likewise.
51915         * lib/hard-locale.c: Likewise.
51916         * lib/hard-locale.h: Likewise.
51917         * lib/hash-pjw.c: Likewise.
51918         * lib/hash-pjw.h: Likewise.
51919         * lib/hash-triple.c: Likewise.
51920         * lib/hash.c: Likewise.
51921         * lib/hash.h: Likewise.
51922         * lib/human.c: Likewise.
51923         * lib/human.h: Likewise.
51924         * lib/i-ring.c: Likewise.
51925         * lib/i-ring.h: Likewise.
51926         * lib/idcache.c: Likewise.
51927         * lib/imaxabs.c: Likewise.
51928         * lib/imaxdiv.c: Likewise.
51929         * lib/inet_pton.c: Likewise.
51930         * lib/inet_pton.h: Likewise.
51931         * lib/intprops.h: Likewise.
51932         * lib/inttostr.c: Likewise.
51933         * lib/inttostr.h: Likewise.
51934         * lib/inttypes.in.h: Likewise.
51935         * lib/isapipe.c: Likewise.
51936         * lib/isdir.c: Likewise.
51937         * lib/isnan.c: Likewise.
51938         * lib/isnan.h: Likewise.
51939         * lib/isnanf.c: Likewise.
51940         * lib/isnanf.h: Likewise.
51941         * lib/isnanl-nolibm.h: Likewise.
51942         * lib/isnanl.c: Likewise.
51943         * lib/isnanl.h: Likewise.
51944         * lib/javacomp.c: Likewise.
51945         * lib/javacomp.h: Likewise.
51946         * lib/javaexec.c: Likewise.
51947         * lib/javaexec.h: Likewise.
51948         * lib/javaversion.c: Likewise.
51949         * lib/javaversion.h: Likewise.
51950         * lib/javaversion.java: Likewise.
51951         * lib/lbrkprop.h: Likewise.
51952         * lib/lchmod.h: Likewise.
51953         * lib/lchown.c: Likewise.
51954         * lib/ldexpl.c: Likewise.
51955         * lib/linebreak.c: Likewise.
51956         * lib/linebreak.h: Likewise.
51957         * lib/linebuffer.c: Likewise.
51958         * lib/linebuffer.h: Likewise.
51959         * lib/locale.in.h: Likewise.
51960         * lib/logl.c: Likewise.
51961         * lib/long-options.c: Likewise.
51962         * lib/long-options.h: Likewise.
51963         * lib/lstat.c: Likewise.
51964         * lib/lstat.h: Likewise.
51965         * lib/math.in.h: Likewise.
51966         * lib/mbchar.c: Likewise.
51967         * lib/mbchar.h: Likewise.
51968         * lib/mbfile.h: Likewise.
51969         * lib/mbiter.h: Likewise.
51970         * lib/mbscasecmp.c: Likewise.
51971         * lib/mbscasestr.c: Likewise.
51972         * lib/mbschr.c: Likewise.
51973         * lib/mbscspn.c: Likewise.
51974         * lib/mbslen.c: Likewise.
51975         * lib/mbsncasecmp.c: Likewise.
51976         * lib/mbsnlen.c: Likewise.
51977         * lib/mbspbrk.c: Likewise.
51978         * lib/mbspcasecmp.c: Likewise.
51979         * lib/mbsrchr.c: Likewise.
51980         * lib/mbssep.c: Likewise.
51981         * lib/mbsspn.c: Likewise.
51982         * lib/mbsstr.c: Likewise.
51983         * lib/mbstok_r.c: Likewise.
51984         * lib/mbswidth.c: Likewise.
51985         * lib/mbswidth.h: Likewise.
51986         * lib/mbuiter.h: Likewise.
51987         * lib/memcasecmp.c: Likewise.
51988         * lib/memcasecmp.h: Likewise.
51989         * lib/memchr.c: Likewise.
51990         * lib/memcmp.c: Likewise.
51991         * lib/memcoll.c: Likewise.
51992         * lib/memcoll.h: Likewise.
51993         * lib/memcpy.c: Likewise.
51994         * lib/memrchr.c: Likewise.
51995         * lib/mkancesdirs.c: Likewise.
51996         * lib/mkdir-p.c: Likewise.
51997         * lib/mkdir-p.h: Likewise.
51998         * lib/mkdir.c: Likewise.
51999         * lib/mkdirat.c: Likewise.
52000         * lib/mkdtemp.c: Likewise.
52001         * lib/mkstemp-safer.c: Likewise.
52002         * lib/mkstemp.c: Likewise.
52003         * lib/modechange.c: Likewise.
52004         * lib/modechange.h: Likewise.
52005         * lib/mountlist.c: Likewise.
52006         * lib/mountlist.h: Likewise.
52007         * lib/mpsort.c: Likewise.
52008         * lib/nanosleep.c: Likewise.
52009         * lib/obstack.c: Likewise.
52010         * lib/obstack.h: Likewise.
52011         * lib/open-safer.c: Likewise.
52012         * lib/open.c: Likewise.
52013         * lib/openat-die.c: Likewise.
52014         * lib/openat-priv.h: Likewise.
52015         * lib/openat-proc.c: Likewise.
52016         * lib/openat.c: Likewise.
52017         * lib/openat.h: Likewise.
52018         * lib/pagealign_alloc.c: Likewise.
52019         * lib/pagealign_alloc.h: Likewise.
52020         * lib/physmem.c: Likewise.
52021         * lib/physmem.h: Likewise.
52022         * lib/pipe-safer.c: Likewise.
52023         * lib/pipe.c: Likewise.
52024         * lib/pipe.h: Likewise.
52025         * lib/posixtm.c: Likewise.
52026         * lib/posixtm.h: Likewise.
52027         * lib/posixver.c: Likewise.
52028         * lib/printf-frexp.c: Likewise.
52029         * lib/printf-frexp.h: Likewise.
52030         * lib/printf-frexpl.c: Likewise.
52031         * lib/printf-frexpl.h: Likewise.
52032         * lib/printf.c: Likewise.
52033         * lib/progname.c: Likewise.
52034         * lib/progname.h: Likewise.
52035         * lib/progreloc.c: Likewise.
52036         * lib/putenv.c: Likewise.
52037         * lib/quote.c: Likewise.
52038         * lib/quote.h: Likewise.
52039         * lib/quotearg.c: Likewise.
52040         * lib/quotearg.h: Likewise.
52041         * lib/raise.c: Likewise.
52042         * lib/readline.c: Likewise.
52043         * lib/readline.h: Likewise.
52044         * lib/readlink.c: Likewise.
52045         * lib/readtokens.c: Likewise.
52046         * lib/readtokens.h: Likewise.
52047         * lib/readtokens0.c: Likewise.
52048         * lib/readtokens0.h: Likewise.
52049         * lib/readutmp.c: Likewise.
52050         * lib/readutmp.h: Likewise.
52051         * lib/realloc.c: Likewise.
52052         * lib/relocwrapper.c: Likewise.
52053         * lib/rename-dest-slash.c: Likewise.
52054         * lib/rename.c: Likewise.
52055         * lib/rmdir.c: Likewise.
52056         * lib/rpmatch.c: Likewise.
52057         * lib/safe-read.c: Likewise.
52058         * lib/safe-read.h: Likewise.
52059         * lib/safe-write.c: Likewise.
52060         * lib/safe-write.h: Likewise.
52061         * lib/same-inode.h: Likewise.
52062         * lib/same.c: Likewise.
52063         * lib/same.h: Likewise.
52064         * lib/save-cwd.c: Likewise.
52065         * lib/save-cwd.h: Likewise.
52066         * lib/savedir.c: Likewise.
52067         * lib/savedir.h: Likewise.
52068         * lib/savewd.c: Likewise.
52069         * lib/savewd.h: Likewise.
52070         * lib/search.in.h: Likewise.
52071         * lib/setenv.c: Likewise.
52072         * lib/setenv.h: Likewise.
52073         * lib/settime.c: Likewise.
52074         * lib/sh-quote.c: Likewise.
52075         * lib/sh-quote.h: Likewise.
52076         * lib/sig2str.c: Likewise.
52077         * lib/sig2str.h: Likewise.
52078         * lib/signal.in.h: Likewise.
52079         * lib/signbitd.c: Likewise.
52080         * lib/signbitf.c: Likewise.
52081         * lib/signbitl.c: Likewise.
52082         * lib/sigprocmask.c: Likewise.
52083         * lib/sincosl.c: Likewise.
52084         * lib/sleep.c: Likewise.
52085         * lib/sprintf.c: Likewise.
52086         * lib/sqrtl.c: Likewise.
52087         * lib/stat-time.h: Likewise.
52088         * lib/stdio--.h: Likewise.
52089         * lib/stdio-safer.h: Likewise.
52090         * lib/stdlib--.h: Likewise.
52091         * lib/stdlib-safer.h: Likewise.
52092         * lib/stdlib.in.h: Likewise.
52093         * lib/stpcpy.c: Likewise.
52094         * lib/stpncpy.c: Likewise.
52095         * lib/strchrnul.c: Likewise.
52096         * lib/strcspn.c: Likewise.
52097         * lib/strerror.c: Likewise.
52098         * lib/strftime.c: Likewise.
52099         * lib/strftime.h: Likewise.
52100         * lib/striconveh.c: Likewise.
52101         * lib/striconveh.h: Likewise.
52102         * lib/striconveha.c: Likewise.
52103         * lib/striconveha.h: Likewise.
52104         * lib/stripslash.c: Likewise.
52105         * lib/strnlen1.c: Likewise.
52106         * lib/strnlen1.h: Likewise.
52107         * lib/strtod.c: Likewise.
52108         * lib/strtoimax.c: Likewise.
52109         * lib/strtok_r.c: Likewise.
52110         * lib/strtol.c: Likewise.
52111         * lib/strtoll.c: Likewise.
52112         * lib/strtoul.c: Likewise.
52113         * lib/strtoull.c: Likewise.
52114         * lib/sysexits.in.h: Likewise.
52115         * lib/tempname.c: Likewise.
52116         * lib/tempname.h: Likewise.
52117         * lib/timespec.h: Likewise.
52118         * lib/tls.c: Likewise.
52119         * lib/tls.h: Likewise.
52120         * lib/tmpdir.c: Likewise.
52121         * lib/tmpdir.h: Likewise.
52122         * lib/tmpfile-safer.c: Likewise.
52123         * lib/tmpfile.c: Likewise.
52124         * lib/trigl.c: Likewise.
52125         * lib/trigl.h: Likewise.
52126         * lib/trim.c: Likewise.
52127         * lib/trim.h: Likewise.
52128         * lib/trunc.c: Likewise.
52129         * lib/truncf.c: Likewise.
52130         * lib/truncl.c: Likewise.
52131         * lib/tsearch.c: Likewise.
52132         * lib/unicodeio.c: Likewise.
52133         * lib/unicodeio.h: Likewise.
52134         * lib/unistd--.h: Likewise.
52135         * lib/unistd-safer.h: Likewise.
52136         * lib/unistdio/ulc-fprintf.c: Likewise.
52137         * lib/unistdio/ulc-vfprintf.c: Likewise.
52138         * lib/unlinkdir.c: Likewise.
52139         * lib/unlinkdir.h: Likewise.
52140         * lib/unlocked-io.h: Likewise.
52141         * lib/unsetenv.c: Likewise.
52142         * lib/userspec.c: Likewise.
52143         * lib/utime.c: Likewise.
52144         * lib/utimecmp.c: Likewise.
52145         * lib/utimecmp.h: Likewise.
52146         * lib/utimens.c: Likewise.
52147         * lib/verify.h: Likewise.
52148         * lib/verror.c: Likewise.
52149         * lib/verror.h: Likewise.
52150         * lib/version-etc-fsf.c: Likewise.
52151         * lib/version-etc.c: Likewise.
52152         * lib/version-etc.h: Likewise.
52153         * lib/vfprintf.c: Likewise.
52154         * lib/vprintf.c: Likewise.
52155         * lib/vsprintf.c: Likewise.
52156         * lib/w32spawn.h: Likewise.
52157         * lib/wait-process.c: Likewise.
52158         * lib/wait-process.h: Likewise.
52159         * lib/wcwidth.c: Likewise.
52160         * lib/write-any-file.c: Likewise.
52161         * lib/xalloc-die.c: Likewise.
52162         * lib/xalloc.h: Likewise.
52163         * lib/xasprintf.c: Likewise.
52164         * lib/xgetcwd.c: Likewise.
52165         * lib/xgetcwd.h: Likewise.
52166         * lib/xgetdomainname.c: Likewise.
52167         * lib/xgetdomainname.h: Likewise.
52168         * lib/xgethostname.c: Likewise.
52169         * lib/xmalloc.c: Likewise.
52170         * lib/xmalloca.c: Likewise.
52171         * lib/xmalloca.h: Likewise.
52172         * lib/xmemcoll.c: Likewise.
52173         * lib/xnanosleep.c: Likewise.
52174         * lib/xreadlink.c: Likewise.
52175         * lib/xreadlink.h: Likewise.
52176         * lib/xsetenv.c: Likewise.
52177         * lib/xsetenv.h: Likewise.
52178         * lib/xstriconv.c: Likewise.
52179         * lib/xstriconv.h: Likewise.
52180         * lib/xstrndup.c: Likewise.
52181         * lib/xstrndup.h: Likewise.
52182         * lib/xstrtod.c: Likewise.
52183         * lib/xstrtod.h: Likewise.
52184         * lib/xstrtol-error.c: Likewise.
52185         * lib/xstrtol.c: Likewise.
52186         * lib/xstrtol.h: Likewise.
52187         * lib/xtime.h: Likewise.
52188         * lib/xvasprintf.c: Likewise.
52189         * lib/xvasprintf.h: Likewise.
52190         * lib/yesno.c: Likewise.
52191         * lib/yesno.h: Likewise.
52192         * posix-modules: Likewise.
52193         * tests/test-alloca-opt.c: Likewise.
52194         * tests/test-arcfour.c: Likewise.
52195         * tests/test-arctwo.c: Likewise.
52196         * tests/test-argmatch.c: Likewise.
52197         * tests/test-argp-2.sh: Likewise.
52198         * tests/test-argp.c: Likewise.
52199         * tests/test-arpa_inet.c: Likewise.
52200         * tests/test-array_list.c: Likewise.
52201         * tests/test-array_oset.c: Likewise.
52202         * tests/test-atexit.c: Likewise.
52203         * tests/test-avltree_list.c: Likewise.
52204         * tests/test-avltree_oset.c: Likewise.
52205         * tests/test-avltreehash_list.c: Likewise.
52206         * tests/test-base64.c: Likewise.
52207         * tests/test-binary-io.c: Likewise.
52208         * tests/test-byteswap.c: Likewise.
52209         * tests/test-c-ctype.c: Likewise.
52210         * tests/test-c-strcasecmp.c: Likewise.
52211         * tests/test-c-strcasestr.c: Likewise.
52212         * tests/test-c-strncasecmp.c: Likewise.
52213         * tests/test-c-strstr.c: Likewise.
52214         * tests/test-canonicalize-lgpl.c: Likewise.
52215         * tests/test-canonicalize.c: Likewise.
52216         * tests/test-carray_list.c: Likewise.
52217         * tests/test-ceilf.c: Likewise.
52218         * tests/test-ceill.c: Likewise.
52219         * tests/test-count-one-bits.c: Likewise.
52220         * tests/test-crc.c: Likewise.
52221         * tests/test-dirname.c: Likewise.
52222         * tests/test-fbufmode.c: Likewise.
52223         * tests/test-fcntl.c: Likewise.
52224         * tests/test-fflush.c: Likewise.
52225         * tests/test-floorf.c: Likewise.
52226         * tests/test-floorl.c: Likewise.
52227         * tests/test-fopen.c: Likewise.
52228         * tests/test-fprintf-posix.c: Likewise.
52229         * tests/test-fprintf-posix.h: Likewise.
52230         * tests/test-fpurge.c: Likewise.
52231         * tests/test-freadable.c: Likewise.
52232         * tests/test-freadahead.c: Likewise.
52233         * tests/test-freading.c: Likewise.
52234         * tests/test-freopen.c: Likewise.
52235         * tests/test-frexp.c: Likewise.
52236         * tests/test-frexpl.c: Likewise.
52237         * tests/test-fseek.c: Likewise.
52238         * tests/test-fseeko.c: Likewise.
52239         * tests/test-fseterr.c: Likewise.
52240         * tests/test-fstrcmp.c: Likewise.
52241         * tests/test-ftell.c: Likewise.
52242         * tests/test-ftello.c: Likewise.
52243         * tests/test-fwritable.c: Likewise.
52244         * tests/test-fwriting.c: Likewise.
52245         * tests/test-getaddrinfo.c: Likewise.
52246         * tests/test-getpass.c: Likewise.
52247         * tests/test-gettimeofday.c: Likewise.
52248         * tests/test-hmac-md5.c: Likewise.
52249         * tests/test-hmac-sha1.c: Likewise.
52250         * tests/test-iconv.c: Likewise.
52251         * tests/test-iconvme.c: Likewise.
52252         * tests/test-inttypes.c: Likewise.
52253         * tests/test-isnan.c: Likewise.
52254         * tests/test-isnanf.c: Likewise.
52255         * tests/test-isnanl-nolibm.c: Likewise.
52256         * tests/test-isnanl.c: Likewise.
52257         * tests/test-isnanl.h: Likewise.
52258         * tests/test-ldexpl.c: Likewise.
52259         * tests/test-linked_list.c: Likewise.
52260         * tests/test-linkedhash_list.c: Likewise.
52261         * tests/test-locale.c: Likewise.
52262         * tests/test-localename.c: Likewise.
52263         * tests/test-lock.c: Likewise.
52264         * tests/test-lseek.c: Likewise.
52265         * tests/test-malloca.c: Likewise.
52266         * tests/test-math.c: Likewise.
52267         * tests/test-mbscasecmp.c: Likewise.
52268         * tests/test-mbscasestr1.c: Likewise.
52269         * tests/test-mbscasestr2.c: Likewise.
52270         * tests/test-mbscasestr3.c: Likewise.
52271         * tests/test-mbscasestr4.c: Likewise.
52272         * tests/test-mbschr.c: Likewise.
52273         * tests/test-mbscspn.c: Likewise.
52274         * tests/test-mbsncasecmp.c: Likewise.
52275         * tests/test-mbspbrk.c: Likewise.
52276         * tests/test-mbspcasecmp.c: Likewise.
52277         * tests/test-mbsrchr.c: Likewise.
52278         * tests/test-mbsspn.c: Likewise.
52279         * tests/test-mbsstr1.c: Likewise.
52280         * tests/test-mbsstr2.c: Likewise.
52281         * tests/test-mbsstr3.c: Likewise.
52282         * tests/test-md5.c: Likewise.
52283         * tests/test-memmem.c: Likewise.
52284         * tests/test-netinet_in.c: Likewise.
52285         * tests/test-open.c: Likewise.
52286         * tests/test-printf-frexp.c: Likewise.
52287         * tests/test-printf-frexpl.c: Likewise.
52288         * tests/test-printf-posix.c: Likewise.
52289         * tests/test-printf-posix.h: Likewise.
52290         * tests/test-rbtree_list.c: Likewise.
52291         * tests/test-rbtree_oset.c: Likewise.
52292         * tests/test-rbtreehash_list.c: Likewise.
52293         * tests/test-read-file.c: Likewise.
52294         * tests/test-rijndael.c: Likewise.
52295         * tests/test-search.c: Likewise.
52296         * tests/test-signbit.c: Likewise.
52297         * tests/test-sleep.c: Likewise.
52298         * tests/test-snprintf-posix.c: Likewise.
52299         * tests/test-snprintf-posix.h: Likewise.
52300         * tests/test-snprintf.c: Likewise.
52301         * tests/test-sprintf-posix.c: Likewise.
52302         * tests/test-sprintf-posix.h: Likewise.
52303         * tests/test-stat-time.c: Likewise.
52304         * tests/test-stdbool.c: Likewise.
52305         * tests/test-stdint.c: Likewise.
52306         * tests/test-stdio.c: Likewise.
52307         * tests/test-stdlib.c: Likewise.
52308         * tests/test-stpncpy.c: Likewise.
52309         * tests/test-strcasestr.c: Likewise.
52310         * tests/test-striconv.c: Likewise.
52311         * tests/test-striconveh.c: Likewise.
52312         * tests/test-striconveha.c: Likewise.
52313         * tests/test-string.c: Likewise.
52314         * tests/test-sys_select.c: Likewise.
52315         * tests/test-sys_socket.c: Likewise.
52316         * tests/test-sys_stat.c: Likewise.
52317         * tests/test-sys_time.c: Likewise.
52318         * tests/test-sysexits.c: Likewise.
52319         * tests/test-time.c: Likewise.
52320         * tests/test-tls.c: Likewise.
52321         * tests/test-trunc.c: Likewise.
52322         * tests/test-truncf.c: Likewise.
52323         * tests/test-truncl.c: Likewise.
52324         * tests/test-unistd.c: Likewise.
52325         * tests/test-vasnprintf-posix.c: Likewise.
52326         * tests/test-vasnprintf-posix2.c: Likewise.
52327         * tests/test-vasnprintf.c: Likewise.
52328         * tests/test-vasprintf-posix.c: Likewise.
52329         * tests/test-vasprintf.c: Likewise.
52330         * tests/test-verify.c: Likewise.
52331         * tests/test-vfprintf-posix.c: Likewise.
52332         * tests/test-vprintf-posix.c: Likewise.
52333         * tests/test-vsnprintf-posix.c: Likewise.
52334         * tests/test-vsnprintf.c: Likewise.
52335         * tests/test-vsprintf-posix.c: Likewise.
52336         * tests/test-wchar.c: Likewise.
52337         * tests/test-wctype.c: Likewise.
52338         * tests/test-wcwidth.c: Likewise.
52339         * tests/test-xstrtol.c: Likewise.
52340         * tests/test-xvasprintf.c: Likewise.
52341         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
52342         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
52343         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
52344         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
52345         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
52346         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
52347         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
52348         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
52349         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
52350         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
52351         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
52352         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
52353         * tests/uniname/test-uninames.c: Likewise.
52354         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
52355         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
52356         * tests/unistdio/test-u16-printf1.h: Likewise.
52357         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
52358         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
52359         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
52360         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
52361         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
52362         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
52363         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
52364         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
52365         * tests/unistdio/test-u32-printf1.h: Likewise.
52366         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
52367         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
52368         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
52369         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
52370         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
52371         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
52372         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
52373         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
52374         * tests/unistdio/test-u8-printf1.h: Likewise.
52375         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
52376         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
52377         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
52378         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
52379         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
52380         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
52381         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
52382         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
52383         * tests/unistdio/test-ulc-printf1.h: Likewise.
52384         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
52385         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
52386         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
52387         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
52388         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
52389         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
52390         * tests/uniwidth/test-u16-strwidth.c: Likewise.
52391         * tests/uniwidth/test-u16-width.c: Likewise.
52392         * tests/uniwidth/test-u32-strwidth.c: Likewise.
52393         * tests/uniwidth/test-u32-width.c: Likewise.
52394         * tests/uniwidth/test-u8-strwidth.c: Likewise.
52395         * tests/uniwidth/test-u8-width.c: Likewise.
52396         * tests/uniwidth/test-uc_width.c: Likewise.
52397         * config/srclist-update: Likewise.
52398         (fixlicense): Update to GPLv3+.
52399
52400         Change copyright notice from LGPLv2.1+ to LGPLv3+.
52401         * tests/test-tsearch.c: Change copyright notice.
52402
52403         Change copyright notice from LGPLv2.0+ to LGPLv3+.
52404         * lib/c-strcaseeq.h: Change copyright notice.
52405         * lib/streq.h: Likewise.
52406         * lib/uniconv.h: Likewise.
52407         * lib/uniconv/u-conv-from-enc.h: Likewise.
52408         * lib/uniconv/u-conv-to-enc.h: Likewise.
52409         * lib/uniconv/u-strconv-from-enc.h: Likewise.
52410         * lib/uniconv/u-strconv-to-enc.h: Likewise.
52411         * lib/uniconv/u16-conv-from-enc.c: Likewise.
52412         * lib/uniconv/u16-conv-to-enc.c: Likewise.
52413         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
52414         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
52415         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
52416         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
52417         * lib/uniconv/u32-conv-from-enc.c: Likewise.
52418         * lib/uniconv/u32-conv-to-enc.c: Likewise.
52419         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
52420         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
52421         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
52422         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
52423         * lib/uniconv/u8-conv-from-enc.c: Likewise.
52424         * lib/uniconv/u8-conv-to-enc.c: Likewise.
52425         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
52426         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
52427         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
52428         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
52429         * lib/uniname.h: Likewise.
52430         * lib/uniname/uniname.c: Likewise.
52431         * lib/unistdio.h: Likewise.
52432         * lib/unistdio/u-asnprintf.h: Likewise.
52433         * lib/unistdio/u-asprintf.h: Likewise.
52434         * lib/unistdio/u-printf-args.c: Likewise.
52435         * lib/unistdio/u-printf-args.h: Likewise.
52436         * lib/unistdio/u-printf-parse.h: Likewise.
52437         * lib/unistdio/u-snprintf.h: Likewise.
52438         * lib/unistdio/u-sprintf.h: Likewise.
52439         * lib/unistdio/u-vasprintf.h: Likewise.
52440         * lib/unistdio/u-vsnprintf.h: Likewise.
52441         * lib/unistdio/u-vsprintf.h: Likewise.
52442         * lib/unistdio/u16-asnprintf.c: Likewise.
52443         * lib/unistdio/u16-asprintf.c: Likewise.
52444         * lib/unistdio/u16-printf-parse.c: Likewise.
52445         * lib/unistdio/u16-snprintf.c: Likewise.
52446         * lib/unistdio/u16-sprintf.c: Likewise.
52447         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
52448         * lib/unistdio/u16-u16-asprintf.c: Likewise.
52449         * lib/unistdio/u16-u16-snprintf.c: Likewise.
52450         * lib/unistdio/u16-u16-sprintf.c: Likewise.
52451         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
52452         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
52453         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
52454         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
52455         * lib/unistdio/u16-vasnprintf.c: Likewise.
52456         * lib/unistdio/u16-vasprintf.c: Likewise.
52457         * lib/unistdio/u16-vsnprintf.c: Likewise.
52458         * lib/unistdio/u16-vsprintf.c: Likewise.
52459         * lib/unistdio/u32-asnprintf.c: Likewise.
52460         * lib/unistdio/u32-asprintf.c: Likewise.
52461         * lib/unistdio/u32-printf-parse.c: Likewise.
52462         * lib/unistdio/u32-snprintf.c: Likewise.
52463         * lib/unistdio/u32-sprintf.c: Likewise.
52464         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
52465         * lib/unistdio/u32-u32-asprintf.c: Likewise.
52466         * lib/unistdio/u32-u32-snprintf.c: Likewise.
52467         * lib/unistdio/u32-u32-sprintf.c: Likewise.
52468         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
52469         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
52470         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
52471         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
52472         * lib/unistdio/u32-vasnprintf.c: Likewise.
52473         * lib/unistdio/u32-vasprintf.c: Likewise.
52474         * lib/unistdio/u32-vsnprintf.c: Likewise.
52475         * lib/unistdio/u32-vsprintf.c: Likewise.
52476         * lib/unistdio/u8-asnprintf.c: Likewise.
52477         * lib/unistdio/u8-asprintf.c: Likewise.
52478         * lib/unistdio/u8-printf-parse.c: Likewise.
52479         * lib/unistdio/u8-snprintf.c: Likewise.
52480         * lib/unistdio/u8-sprintf.c: Likewise.
52481         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
52482         * lib/unistdio/u8-u8-asprintf.c: Likewise.
52483         * lib/unistdio/u8-u8-snprintf.c: Likewise.
52484         * lib/unistdio/u8-u8-sprintf.c: Likewise.
52485         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
52486         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
52487         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
52488         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
52489         * lib/unistdio/u8-vasnprintf.c: Likewise.
52490         * lib/unistdio/u8-vasprintf.c: Likewise.
52491         * lib/unistdio/u8-vsnprintf.c: Likewise.
52492         * lib/unistdio/u8-vsprintf.c: Likewise.
52493         * lib/unistdio/ulc-asnprintf.c: Likewise.
52494         * lib/unistdio/ulc-asprintf.c: Likewise.
52495         * lib/unistdio/ulc-printf-parse.c: Likewise.
52496         * lib/unistdio/ulc-snprintf.c: Likewise.
52497         * lib/unistdio/ulc-sprintf.c: Likewise.
52498         * lib/unistdio/ulc-vasnprintf.c: Likewise.
52499         * lib/unistdio/ulc-vasprintf.c: Likewise.
52500         * lib/unistdio/ulc-vsnprintf.c: Likewise.
52501         * lib/unistdio/ulc-vsprintf.c: Likewise.
52502         * lib/unistr.h: Likewise.
52503         * lib/unistr/u-cpy-alloc.h: Likewise.
52504         * lib/unistr/u-cpy.h: Likewise.
52505         * lib/unistr/u-endswith.h: Likewise.
52506         * lib/unistr/u-move.h: Likewise.
52507         * lib/unistr/u-set.h: Likewise.
52508         * lib/unistr/u-startswith.h: Likewise.
52509         * lib/unistr/u-stpcpy.h: Likewise.
52510         * lib/unistr/u-stpncpy.h: Likewise.
52511         * lib/unistr/u-strcat.h: Likewise.
52512         * lib/unistr/u-strcpy.h: Likewise.
52513         * lib/unistr/u-strcspn.h: Likewise.
52514         * lib/unistr/u-strdup.h: Likewise.
52515         * lib/unistr/u-strlen.h: Likewise.
52516         * lib/unistr/u-strncat.h: Likewise.
52517         * lib/unistr/u-strncpy.h: Likewise.
52518         * lib/unistr/u-strnlen.h: Likewise.
52519         * lib/unistr/u-strpbrk.h: Likewise.
52520         * lib/unistr/u-strspn.h: Likewise.
52521         * lib/unistr/u-strstr.h: Likewise.
52522         * lib/unistr/u-strtok.h: Likewise.
52523         * lib/unistr/u16-check.c: Likewise.
52524         * lib/unistr/u16-chr.c: Likewise.
52525         * lib/unistr/u16-cmp.c: Likewise.
52526         * lib/unistr/u16-cpy-alloc.c: Likewise.
52527         * lib/unistr/u16-cpy.c: Likewise.
52528         * lib/unistr/u16-endswith.c: Likewise.
52529         * lib/unistr/u16-mblen.c: Likewise.
52530         * lib/unistr/u16-mbsnlen.c: Likewise.
52531         * lib/unistr/u16-mbtouc-aux.c: Likewise.
52532         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
52533         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
52534         * lib/unistr/u16-mbtouc.c: Likewise.
52535         * lib/unistr/u16-mbtoucr.c: Likewise.
52536         * lib/unistr/u16-move.c: Likewise.
52537         * lib/unistr/u16-next.c: Likewise.
52538         * lib/unistr/u16-prev.c: Likewise.
52539         * lib/unistr/u16-set.c: Likewise.
52540         * lib/unistr/u16-startswith.c: Likewise.
52541         * lib/unistr/u16-stpcpy.c: Likewise.
52542         * lib/unistr/u16-stpncpy.c: Likewise.
52543         * lib/unistr/u16-strcat.c: Likewise.
52544         * lib/unistr/u16-strchr.c: Likewise.
52545         * lib/unistr/u16-strcmp.c: Likewise.
52546         * lib/unistr/u16-strcpy.c: Likewise.
52547         * lib/unistr/u16-strcspn.c: Likewise.
52548         * lib/unistr/u16-strdup.c: Likewise.
52549         * lib/unistr/u16-strlen.c: Likewise.
52550         * lib/unistr/u16-strmblen.c: Likewise.
52551         * lib/unistr/u16-strmbtouc.c: Likewise.
52552         * lib/unistr/u16-strncat.c: Likewise.
52553         * lib/unistr/u16-strncmp.c: Likewise.
52554         * lib/unistr/u16-strncpy.c: Likewise.
52555         * lib/unistr/u16-strnlen.c: Likewise.
52556         * lib/unistr/u16-strpbrk.c: Likewise.
52557         * lib/unistr/u16-strrchr.c: Likewise.
52558         * lib/unistr/u16-strspn.c: Likewise.
52559         * lib/unistr/u16-strstr.c: Likewise.
52560         * lib/unistr/u16-strtok.c: Likewise.
52561         * lib/unistr/u16-to-u32.c: Likewise.
52562         * lib/unistr/u16-to-u8.c: Likewise.
52563         * lib/unistr/u16-uctomb-aux.c: Likewise.
52564         * lib/unistr/u16-uctomb.c: Likewise.
52565         * lib/unistr/u32-check.c: Likewise.
52566         * lib/unistr/u32-chr.c: Likewise.
52567         * lib/unistr/u32-cmp.c: Likewise.
52568         * lib/unistr/u32-cpy-alloc.c: Likewise.
52569         * lib/unistr/u32-cpy.c: Likewise.
52570         * lib/unistr/u32-endswith.c: Likewise.
52571         * lib/unistr/u32-mblen.c: Likewise.
52572         * lib/unistr/u32-mbsnlen.c: Likewise.
52573         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
52574         * lib/unistr/u32-mbtouc.c: Likewise.
52575         * lib/unistr/u32-mbtoucr.c: Likewise.
52576         * lib/unistr/u32-move.c: Likewise.
52577         * lib/unistr/u32-next.c: Likewise.
52578         * lib/unistr/u32-prev.c: Likewise.
52579         * lib/unistr/u32-set.c: Likewise.
52580         * lib/unistr/u32-startswith.c: Likewise.
52581         * lib/unistr/u32-stpcpy.c: Likewise.
52582         * lib/unistr/u32-stpncpy.c: Likewise.
52583         * lib/unistr/u32-strcat.c: Likewise.
52584         * lib/unistr/u32-strchr.c: Likewise.
52585         * lib/unistr/u32-strcmp.c: Likewise.
52586         * lib/unistr/u32-strcpy.c: Likewise.
52587         * lib/unistr/u32-strcspn.c: Likewise.
52588         * lib/unistr/u32-strdup.c: Likewise.
52589         * lib/unistr/u32-strlen.c: Likewise.
52590         * lib/unistr/u32-strmblen.c: Likewise.
52591         * lib/unistr/u32-strmbtouc.c: Likewise.
52592         * lib/unistr/u32-strncat.c: Likewise.
52593         * lib/unistr/u32-strncmp.c: Likewise.
52594         * lib/unistr/u32-strncpy.c: Likewise.
52595         * lib/unistr/u32-strnlen.c: Likewise.
52596         * lib/unistr/u32-strpbrk.c: Likewise.
52597         * lib/unistr/u32-strrchr.c: Likewise.
52598         * lib/unistr/u32-strspn.c: Likewise.
52599         * lib/unistr/u32-strstr.c: Likewise.
52600         * lib/unistr/u32-strtok.c: Likewise.
52601         * lib/unistr/u32-to-u16.c: Likewise.
52602         * lib/unistr/u32-to-u8.c: Likewise.
52603         * lib/unistr/u32-uctomb.c: Likewise.
52604         * lib/unistr/u8-check.c: Likewise.
52605         * lib/unistr/u8-chr.c: Likewise.
52606         * lib/unistr/u8-cmp.c: Likewise.
52607         * lib/unistr/u8-cpy-alloc.c: Likewise.
52608         * lib/unistr/u8-cpy.c: Likewise.
52609         * lib/unistr/u8-endswith.c: Likewise.
52610         * lib/unistr/u8-mblen.c: Likewise.
52611         * lib/unistr/u8-mbsnlen.c: Likewise.
52612         * lib/unistr/u8-mbtouc-aux.c: Likewise.
52613         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
52614         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
52615         * lib/unistr/u8-mbtouc.c: Likewise.
52616         * lib/unistr/u8-mbtoucr.c: Likewise.
52617         * lib/unistr/u8-move.c: Likewise.
52618         * lib/unistr/u8-next.c: Likewise.
52619         * lib/unistr/u8-prev.c: Likewise.
52620         * lib/unistr/u8-set.c: Likewise.
52621         * lib/unistr/u8-startswith.c: Likewise.
52622         * lib/unistr/u8-stpcpy.c: Likewise.
52623         * lib/unistr/u8-stpncpy.c: Likewise.
52624         * lib/unistr/u8-strcat.c: Likewise.
52625         * lib/unistr/u8-strchr.c: Likewise.
52626         * lib/unistr/u8-strcmp.c: Likewise.
52627         * lib/unistr/u8-strcpy.c: Likewise.
52628         * lib/unistr/u8-strcspn.c: Likewise.
52629         * lib/unistr/u8-strdup.c: Likewise.
52630         * lib/unistr/u8-strlen.c: Likewise.
52631         * lib/unistr/u8-strmblen.c: Likewise.
52632         * lib/unistr/u8-strmbtouc.c: Likewise.
52633         * lib/unistr/u8-strncat.c: Likewise.
52634         * lib/unistr/u8-strncmp.c: Likewise.
52635         * lib/unistr/u8-strncpy.c: Likewise.
52636         * lib/unistr/u8-strnlen.c: Likewise.
52637         * lib/unistr/u8-strpbrk.c: Likewise.
52638         * lib/unistr/u8-strrchr.c: Likewise.
52639         * lib/unistr/u8-strspn.c: Likewise.
52640         * lib/unistr/u8-strstr.c: Likewise.
52641         * lib/unistr/u8-strtok.c: Likewise.
52642         * lib/unistr/u8-to-u16.c: Likewise.
52643         * lib/unistr/u8-to-u32.c: Likewise.
52644         * lib/unistr/u8-uctomb-aux.c: Likewise.
52645         * lib/unistr/u8-uctomb.c: Likewise.
52646         * lib/unitypes.h: Likewise.
52647         * lib/uniwidth.h: Likewise.
52648         * lib/uniwidth/cjk.h: Likewise.
52649         * lib/uniwidth/u16-strwidth.c: Likewise.
52650         * lib/uniwidth/u16-width.c: Likewise.
52651         * lib/uniwidth/u32-strwidth.c: Likewise.
52652         * lib/uniwidth/u32-width.c: Likewise.
52653         * lib/uniwidth/u8-strwidth.c: Likewise.
52654         * lib/uniwidth/u8-width.c: Likewise.
52655         * lib/uniwidth/width.c: Likewise.
52656
52657 2007-10-07  Bruno Haible  <bruno@clisp.org>
52658
52659         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
52660         The file is still under LGPL (see modules/inttypes).
52661
52662 2007-10-06  Bruno Haible  <bruno@clisp.org>
52663
52664         * modules/trunc (Dependencies): Add 'extensions'.
52665         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
52666         Reported by Ben Pfaff <blp@gnu.org>.
52667
52668 2007-10-06  Bruno Haible  <bruno@clisp.org>
52669
52670         * modules/freopen-tests: New file.
52671         * tests/test-freopen.c: New file.
52672
52673         * modules/fopen-tests: New file.
52674         * tests/test-fopen.c: New file.
52675
52676         * modules/fopen: New file.
52677         * lib/fopen.c: New file.
52678         * m4/fopen.m4: New file.
52679         * modules/freopen: New file.
52680         * lib/freopen.c: New file.
52681         * m4/freopen.m4: New file.
52682         * lib/stdio.in.h (fopen, freopen): New declarations.
52683         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
52684         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
52685         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
52686         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
52687         * doc/functions/fopen.texi: Mention the 'fopen' module.
52688         * doc/functions/freopen.texi: Mention the 'freopen' module.
52689
52690 2007-10-06  Bruno Haible  <bruno@clisp.org>
52691
52692         * modules/open-tests: New file.
52693         * tests/test-open.c: New file.
52694
52695         * modules/open: New file.
52696         * lib/open.c: New file.
52697         * m4/open.m4: New file.
52698         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
52699         lib/open.c does.
52700         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
52701         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
52702         macros.
52703         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
52704         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
52705         REPLACE_OPEN.
52706         * doc/functions/open.texi: Mention the 'open' module.
52707
52708 2007-10-04  Bruno Haible  <bruno@clisp.org>
52709
52710         * modules/ceill-tests: New file.
52711         * tests/test-ceill.c: New file.
52712
52713         * modules/ceill: New file.
52714         * lib/ceill.c: Replace entire file.
52715         * m4/ceill.m4: New file.
52716         * lib/math.in.h (ceill): Replace declaration.
52717         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
52718         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
52719         * doc/functions/ceill.texi: Mention the 'ceill' module.
52720         * modules/mathl (Files): Remove lib/ceill.c.
52721         (Depends-on): Add ceill.
52722
52723 2007-10-04  Bruno Haible  <bruno@clisp.org>
52724
52725         * modules/ceilf-tests: New file.
52726         * tests/test-ceilf.c: New file.
52727
52728         * modules/ceilf: New file.
52729         * lib/ceil.c: New file.
52730         * lib/ceilf.c: New file.
52731         * m4/ceilf.m4: New file.
52732         * lib/math.in.h (ceilf): New declaration.
52733         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
52734         HAVE_DECL_CEILF.
52735         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
52736         HAVE_DECL_CEILF.
52737         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
52738
52739 2007-10-04  Bruno Haible  <bruno@clisp.org>
52740
52741         * modules/floorl-tests: New file.
52742         * tests/test-floorl.c: New file.
52743
52744         * modules/floorl: New file.
52745         * lib/floorl.c: Replace entire file.
52746         * m4/floorl.m4: New file.
52747         * lib/math.in.h (floorl): Replace declaration.
52748         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
52749         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
52750         * doc/functions/floorl.texi: Mention the 'floorl' module.
52751         * modules/mathl (Files): Remove lib/floorl.c.
52752         (Depends-on): Add floorl.
52753
52754 2007-10-04  Bruno Haible  <bruno@clisp.org>
52755
52756         * modules/floorf-tests: New file.
52757         * tests/test-floorf.c: New file.
52758
52759         * modules/floorf: New file.
52760         * lib/floor.c: New file.
52761         * lib/floorf.c: New file.
52762         * m4/floorf.m4: New file.
52763         * lib/math.in.h (floorf): New declaration.
52764         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
52765         HAVE_DECL_FLOORF.
52766         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
52767         HAVE_DECL_FLOORF.
52768         * doc/functions/floorf.texi: Mention the 'floorf' module.
52769
52770 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
52771             Bruno Haible  <bruno@clisp.org>
52772
52773         Advertise for the Git server instead of the CVS server.
52774         * doc/gnulib-intro.texi (Steady Development): Mention the Git
52775         repository instead of the CVS one.
52776         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
52777         about all VCS systems generically.
52778         * doc/gnulib.texi (Introduction): Capitalize `Git'.
52779
52780 2007-10-04  Bruno Haible  <bruno@clisp.org>
52781
52782         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
52783         means.
52784         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
52785
52786 2007-10-04  Bruno Haible  <bruno@clisp.org>
52787
52788         * modules/truncl-tests: New file.
52789         * tests/test-truncl.c: New file.
52790
52791         * modules/truncl: New file.
52792         * lib/truncl.c: New file.
52793         * m4/truncl.m4: New file.
52794         * lib/math.in.h (truncl): New declaration.
52795         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
52796         HAVE_DECL_TRUNCL.
52797         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
52798         HAVE_DECL_TRUNCL.
52799         * doc/functions/truncl.texi: Mention the 'truncl' module.
52800
52801 2007-10-04  Bruno Haible  <bruno@clisp.org>
52802
52803         * modules/truncf-tests: New file.
52804         * tests/test-truncf.c: New file.
52805
52806         * modules/truncf: New file.
52807         * lib/trunc.c: Make paramerizable through USE_* macros.
52808         * lib/truncf.c: New file.
52809         * m4/truncf.m4: New file.
52810         * lib/math.in.h (truncf): New declaration.
52811         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
52812         HAVE_DECL_TRUNCF.
52813         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
52814         HAVE_DECL_TRUNCF.
52815         * doc/functions/truncf.texi: Mention the 'truncf' module.
52816
52817 2007-10-03  Bruno Haible  <bruno@clisp.org>
52818
52819         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
52820         augmentation also for tests modules.
52821         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
52822         * modules/atexit-tests (Makefile.am): Likewise.
52823         * modules/binary-io-tests (Makefile.am): Likewise.
52824         * modules/c-strcase-tests (Makefile.am): Likewise.
52825         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
52826         * modules/canonicalize-tests (Makefile.am): Likewise.
52827         * modules/closein-tests (Makefile.am): Likewise.
52828         * modules/fprintf-posix-tests (Makefile.am): Likewise.
52829         * modules/freadahead-tests (Makefile.am): Likewise.
52830         * modules/fseek-tests (Makefile.am): Likewise.
52831         * modules/fseeko-tests (Makefile.am): Likewise.
52832         * modules/ftell-tests (Makefile.am): Likewise.
52833         * modules/ftello-tests (Makefile.am): Likewise.
52834         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
52835         * modules/isnanl-tests (Makefile.am): Likewise.
52836         * modules/lseek-tests (Makefile.am): Likewise.
52837         * modules/mbscasecmp-tests (Makefile.am): Likewise.
52838         * modules/mbscasestr-tests (Makefile.am): Likewise.
52839         * modules/mbschr-tests (Makefile.am): Likewise.
52840         * modules/mbscspn-tests (Makefile.am): Likewise.
52841         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
52842         * modules/mbspbrk-tests (Makefile.am): Likewise.
52843         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
52844         * modules/mbsrchr-tests (Makefile.am): Likewise.
52845         * modules/mbsspn-tests (Makefile.am): Likewise.
52846         * modules/mbsstr-tests (Makefile.am): Likewise.
52847         * modules/printf-posix-tests (Makefile.am): Likewise.
52848         * modules/snprintf-posix-tests (Makefile.am): Likewise.
52849         * modules/sprintf-posix-tests (Makefile.am): Likewise.
52850         * modules/tsearch-tests (Makefile.am): Likewise.
52851         * modules/uniname/uniname-tests (Makefile.am): Likewise.
52852         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
52853         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
52854         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
52855         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
52856         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
52857         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
52858         * modules/vprintf-posix-tests (Makefile.am): Likewise.
52859         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
52860         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
52861         * modules/xstrtoimax-tests (Makefile.am): Likewise.
52862         * modules/xstrtol-tests (Makefile.am): Likewise.
52863         * modules/xstrtoumax-tests (Makefile.am): Likewise.
52864         * modules/yesno-tests (Makefile.am): Likewise.
52865
52866 2007-10-03  Bruno Haible  <bruno@clisp.org>
52867
52868         * modules/trunc-tests: New file.
52869         * tests/test-trunc.c: New file.
52870
52871         * modules/trunc: New file.
52872         * lib/trunc.c: New file.
52873         * m4/trunc.m4: New file.
52874         * lib/math.in.h (trunc): New declaration.
52875         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
52876         HAVE_DECL_TRUNC.
52877         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
52878         HAVE_DECL_TRUNC.
52879         * doc/functions/trunc.texi: Mention the 'trunc' module.
52880
52881 2007-10-03  Bruno Haible  <bruno@clisp.org>
52882
52883         * tests/test-fpending.c: New file, mostly copied
52884         from coreutils/lib/t-fpending.c.
52885         * modules/fpending-tests: New file.
52886
52887 2007-10-03  Bruno Haible  <bruno@clisp.org>
52888
52889         Port the stdio extensions to QNX (untested).
52890         * lib/fseterr.c (fseterr): Add support for QNX.
52891         * lib/fbufmode.c (fbufmode): Likewise.
52892         * lib/freadable.c (freadable): Likewise.
52893         * lib/fwritable.c (fwritable): Likewise.
52894         * lib/freading.c (freading): Likewise.
52895         * lib/fwriting.c (fwriting): Likewise.
52896         * lib/freadahead.c (freadahed): Likewise.
52897         * lib/fpurge.c (fpurge): Likewise.
52898         * lib/fseeko.c (rpl_fseeko): Likewise.
52899
52900 2007-10-03  Bruno Haible  <bruno@clisp.org>
52901             Jim Meyering  <jim@meyering.net>
52902             Eric Blake  <ebb9@byu.net>
52903
52904         * doc/relocatable.texi: Use @command instead of @program.
52905
52906 2007-10-02  Jim Meyering  <jim@meyering.net>
52907
52908         Perform one more "_.h" -> ".in.h" substitution.
52909         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
52910         instead of unistd_.h here, too.
52911
52912 2007-10-01  Bruno Haible  <bruno@clisp.org>
52913
52914         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
52915         Needed for the alloca-opt module.
52916
52917 2007-09-30  Bruno Haible  <bruno@clisp.org>
52918
52919         * lib/alloca.in.h: Renamed from lib/alloca_.h.
52920         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
52921         alloca_.h.
52922         * lib/argz.in.h: Renamed from lib/argz_.h.
52923         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
52924         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
52925         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
52926         byteswap_.h.
52927         * lib/dirent.in.h: Renamed from lib/dirent_.h.
52928         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
52929         dirent_.h.
52930         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
52931         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
52932         fcntl_.h.
52933         * lib/float.in.h: Renamed from lib/float_.h.
52934         * modules/float (Files, Makefile.am): Use float.in.h instead of
52935         float_.h.
52936         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
52937         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
52938         fnmatch_.h.
52939         * lib/getopt.in.h: Renamed from lib/getopt_.h.
52940         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
52941         getopt_.h.
52942         * lib/glob.in.h: Renamed from lib/glob_.h.
52943         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
52944         * lib/iconv.in.h: Renamed from lib/iconv_.h.
52945         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
52946         iconv_.h.
52947         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
52948         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
52949         inttypes_.h.
52950         * lib/locale.in.h: Renamed from lib/locale_.h.
52951         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
52952         locale_.h.
52953         * lib/math.in.h: Renamed from lib/math_.h.
52954         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
52955         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
52956         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
52957         of netinet_in_.h. Add dependency.
52958         * lib/poll.in.h: Renamed from lib/poll_.h.
52959         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
52960         * lib/search.in.h: Renamed from lib/search_.h.
52961         * modules/search (Files, Makefile.am): Use search.in.h instead of
52962         search_.h.
52963         * lib/signal.in.h: Renamed from lib/signal_.h.
52964         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
52965         _signal.h.
52966         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
52967         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
52968         stdbool_.h.
52969         * lib/stdint.in.h: Renamed from lib/stdint_.h.
52970         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
52971         stdint_.h.
52972         * lib/stdio.in.h: Renamed from lib/stdio_.h.
52973         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
52974         stdio_.h.
52975         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
52976         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
52977         stdlib_.h.
52978         * lib/string.in.h: Renamed from lib/string_.h.
52979         * modules/string (Files, Makefile.am): Use string.in.h instead of
52980         string_.h.
52981         * doc/gnulib-tool.texi (Initial import): Update.
52982         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
52983         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
52984         of sys_select_.h. Add dependency.
52985         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
52986         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
52987         of sys_socket_.h.
52988         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
52989         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
52990         sys_stat_.h.
52991         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
52992         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
52993         sys_time_.h.
52994         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
52995         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
52996         sysexits_.h.
52997         * lib/time.in.h: Renamed from lib/time_.h.
52998         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
52999         * lib/unistd.in.h: Renamed from lib/unistd_.h.
53000         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
53001         unistd_.h.
53002         * lib/wchar.in.h: Renamed from lib/wchar_.h.
53003         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
53004         wchar_.h.
53005         * lib/wctype.in.h: Renamed from lib/wctype_.h.
53006         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
53007         wctype_.h.
53008         * build-aux/bootstrap (slurp): Update.
53009         * lib/.cppi-disable: Update.
53010
53011 2007-09-30  Bruno Haible  <bruno@clisp.org>
53012
53013         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
53014         Needed on BeOS.
53015
53016 2007-09-30  Bruno Haible  <bruno@clisp.org>
53017
53018         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
53019
53020 2007-09-29  Bruno Haible  <bruno@clisp.org>
53021
53022         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
53023
53024 2007-09-29  Bruno Haible  <bruno@clisp.org>
53025
53026         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
53027         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
53028         * build-aux/install-reloc: Compile also areadlink.c.
53029         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
53030
53031 2007-09-29  Bruno Haible  <bruno@clisp.org>
53032
53033         * gnulib-tool (func_emit_initmacro_done): Indentation.
53034
53035 2007-09-29  Bruno Haible  <bruno@clisp.org>
53036
53037         * README: Add CVS checkout update instructions.
53038         Info from Bob Proulx <bob@proulx.com>.
53039
53040 2007-09-28  Eric Blake  <ebb9@byu.net>
53041
53042         Provide move-if-change.
53043         * build-aux/move-if-change: New file, based on best practice
53044         rather than any canonical upstream location.
53045
53046 2007-09-28  Jim Meyering  <jim@meyering.net>
53047
53048         Fix canonicalize loop-detection corner case.
53049         Do not attempt to stat the symlink values stored via seen_triple.
53050         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
53051         on linux-2.6.18, (but not 2.6.22).
53052         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
53053         triple_compare.  The former compares dev,ino,filename, while the latter
53054         would actually stat dirname(filename) when dev and ino were equal.
53055         * lib/hash-triple.c: Install <string.h>.
53056         (STREQ): Define.
53057         (triple_compare_ino_str): New function.
53058         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
53059
53060 2007-09-28  Eric Blake  <ebb9@byu.net>
53061
53062         Enforce that AC_REPLACE_FUNCS files exist.
53063         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
53064         override check for typos.
53065
53066         Fix test-closein on Solaris 10.
53067         * tests/test-closein.c (main): Don't assume stdin can be inherited
53068         closed on all systems.
53069         * tests/test-closein.sh: Likewise.
53070         Reported by Piotr Tarnowski.
53071
53072 2007-09-28  Jim Meyering  <jim@meyering.net>
53073
53074         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
53075
53076 2007-09-27  Jim Meyering  <jim@meyering.net>
53077
53078         canonicalize: Avoid a false-positive cycle failure.
53079         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
53080         Sort.  Remove cycle-check.
53081         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
53082         not cycle-check.h.
53083         (seen_triple): New function.
53084         (canonicalize_filename_mode): Use it instead of cycle-check.
53085         * tests/test-canonicalize.c: Add a test for this bug.
53086         * tests/test-canonicalize.sh: Set up and run the test.
53087
53088         New module, file-set, from coreutils.
53089         * modules/file-set: Define it.
53090         * lib/file-set.c, lib/file-set.h: Implement.
53091
53092         New module, hash-triple, from coreutils.
53093         * modules/hash-triple: Define it.
53094         * lib/hash-triple.c, lib/hash-triple.h: Implement.
53095
53096 2007-09-25  Eric Blake  <ebb9@byu.net>
53097
53098         Fix strerror on Interix.
53099         * lib/string_.h (strerror): Declare replacement.
53100         * doc/functions/strerror.texi (strerror): Document the Interix
53101         shortcoming.
53102         * modules/string (Makefile.am): Support new hooks.
53103         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
53104         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
53105         gl_FUNC_STRERROR_SEPARATE.
53106         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
53107         * lib/strerror.c (rpl_strerror): Provide replacement.
53108         * modules/strerror (Depends-on): Add string.
53109         (configure.ac): Detect use of module.
53110         * tests/test-strerror.c: New file.
53111         * modules/strerror-tests: New test module.
53112         * modules/argp (Depends-on): Add strerror.
53113         * modules/error (Depends-on): Likewise.
53114         Reported by Martin Koeppe.
53115
53116 2007-09-24  Bruno Haible  <bruno@clisp.org>
53117
53118         * README: Update git instructions.
53119
53120 2007-09-24  Eric Blake  <ebb9@byu.net>
53121
53122         Revert fpending breakage from 2007-09-08.
53123         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
53124         __fpending.c.
53125
53126 2007-09-24  Jim Meyering  <jim@meyering.net>
53127
53128         filenamecat.c: Add a test.
53129         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
53130         showing how the function works when DIR is the empty string.
53131
53132 2007-09-21  Simon Josefsson  <simon@josefsson.org>
53133
53134         * tests/test-canonicalize.sh: Turn on executable bit.
53135
53136 2007-09-19  Eric Blake  <ebb9@byu.net>
53137
53138         * README: Update CVS instructions.
53139
53140 2007-09-18  Bruno Haible  <bruno@clisp.org>
53141
53142         * modules/areadlink: New file.
53143         * lib/areadlink.h (areadlink): New declaration.
53144         * lib/areadlink.c: New file, based on lib/xreadlink.c.
53145
53146 2007-09-17  Jim Meyering  <jim@meyering.net>
53147
53148         * lib/savewd.c (ESTALE) [!defined]: Define.
53149         Reported to be required on Interix by Martin Koeppe.
53150
53151 2007-09-17  Bruno Haible  <bruno@clisp.org>
53152
53153         * gnulib-tool (func_version): Use $version.
53154
53155 2007-09-16  Bruno Haible  <bruno@clisp.org>
53156
53157         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
53158         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
53159         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
53160         Reported by Greg Schafer <gschafer@zip.com.au>.
53161
53162 2007-09-15  Bruno Haible  <bruno@clisp.org>
53163
53164         * gnulib-tool (sed): Try a little harder to make bash understand the
53165         alias.
53166         Reported by Bruce Korb <bruce.korb@gmail.com>.
53167
53168 2007-09-13  Eric Blake  <ebb9@byu.net>
53169
53170         * ChangeLog: Remove conflict markers.
53171
53172 2007-09-13  Simon Josefsson  <simon@josefsson.org>
53173
53174         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
53175         Reported by Bruno Haible <bruno@clisp.org>.
53176
53177 2007-09-12  Bruno Haible  <bruno@clisp.org>
53178
53179         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
53180         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
53181         is not defined.
53182
53183 2007-09-12  Eric Blake  <ebb9@byu.net>
53184
53185         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
53186         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
53187         Autoconf definition.
53188         * modules/euidaccess (Depends-on): Add extensions, for
53189         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
53190         * modules/fnmatch (Depends-on): Likewise.
53191         * modules/getaddrinfo (Depends-on): Likewise.
53192         * modules/getdelim (Depends-on): Likewise.
53193         * modules/getline (Depends-on): Likewise.
53194         * modules/getsubopt (Depends-on): Likewise.
53195         * modules/gettext (Depends-on): Likewise.
53196         * modules/group-member (Depends-on): Likewise.
53197         * modules/mbchar (Depends-on): Likewise.
53198         * modules/memmem (Depends-on): Likewise.
53199         * modules/mempcpy (Depends-on): Likewise.
53200         * modules/memrchr (Depends-on): Likewise.
53201         * modules/pagealign_alloc (Depends-on): Likewise.
53202         * modules/readutmp (Depends-on): Likewise.
53203         * modules/stpcpy (Depends-on): Likewise.
53204         * modules/stpncpy (Depends-on): Likewise.
53205         * modules/strchrnul (Depends-on): Likewise.
53206         * modules/strndup (Depends-on): Likewise.
53207         * modules/strsep (Depends-on): Likewise.
53208         * modules/strverscmp (Depends-on): Likewise.
53209         * modules/vasprintf (Depends-on): Likewise.
53210         * modules/wcwidth (Depends-on): Likewise.
53211         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
53212         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
53213         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
53214         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
53215         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
53216         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
53217         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
53218         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
53219         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
53220         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
53221         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
53222         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
53223         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
53224         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
53225         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
53226         * m4/readutmp.m4 (gl_READUTMP): Likewise.
53227         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
53228         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
53229         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
53230         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
53231         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
53232         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
53233         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
53234         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
53235         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
53236         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
53237         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
53238         so that lock.m4 can be used in gettext without extensions module.
53239
53240 2007-09-11  Bruno Haible  <bruno@clisp.org>
53241
53242         * m4/isc-posix.m4: Remove file.
53243         Suggested by Eric Blake.
53244
53245 2007-09-11  Eric Blake  <ebb9@byu.net>
53246
53247         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
53248
53249 2007-09-10  Bruno Haible  <bruno@clisp.org>
53250
53251         * posix-modules: Fix typo in error message.
53252         Reported by Matt <mkraai@beckman.com>.
53253
53254 2007-09-09  Bruno Haible  <bruno@clisp.org>
53255
53256         * doc/functions/getdelim.texi: Update list of platforms lacking the
53257         function.
53258         * doc/functions/getline.texi: Likewise.
53259
53260 2007-09-09  Jim Meyering  <jim@meyering.net>
53261
53262         * lib/hash.c (hash_initialize): Detect calloc failure.
53263         Reported by Bruno Haible.
53264
53265 2007-09-09  Bruno Haible  <bruno@clisp.org>
53266
53267         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
53268         malloc or realloc fails.
53269
53270 2007-09-09  Bruno Haible  <bruno@clisp.org>
53271
53272         * modules/getcwd (Depends-on): Add malloc-posix.
53273         * modules/glob (Depends-on): Likewise.
53274         * modules/putenv (Depends-on): Likewise.
53275         * modules/strdup (Depends-on): Likewise.
53276         * modules/getdelim (Depends-on): Add realloc-posix.
53277         * modules/read-file (Depends-on): Likewise.
53278
53279 2007-09-09  Bruno Haible  <bruno@clisp.org>
53280
53281         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
53282         (gl_FUNC_MALLOC_POSIX): Require it.
53283         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
53284         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
53285         * modules/realloc (Files): Add m4/malloc.m4.
53286         * modules/calloc (Files): Likewise.
53287
53288 2007-09-09  Bruno Haible  <bruno@clisp.org>
53289
53290         * modules/malloc-posix: New file.
53291         * modules/malloc (Depends-on): Add malloc-posix.
53292         * lib/malloc.c: Include errno.h.
53293         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
53294         and a POSIX-compatible malloc into a single function. Set ENOMEM
53295         when returning NULL.
53296         * m4/malloc.m4: New file.
53297         * doc/functions/malloc.texi: Mention the malloc-posix module.
53298         * lib/stdlib_.h (malloc): New declaration.
53299         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
53300         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
53301         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
53302         and HAVE_MALLOC_POSIX.
53303
53304 2007-09-09  Bruno Haible  <bruno@clisp.org>
53305
53306         * modules/realloc-posix: New file.
53307         * modules/realloc (Depends-on): Add realloc-posix.
53308         * lib/realloc.c: Include errno.h.
53309         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
53310         and a POSIX-compatible realloc into a single function. Set ENOMEM
53311         when returning NULL.
53312         * m4/realloc.m4: New file.
53313         * doc/functions/realloc.texi: Mention the realloc-posix module.
53314         * lib/stdlib_.h (realloc): New declaration.
53315         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
53316         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
53317         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
53318         and HAVE_REALLOC_POSIX.
53319
53320 2007-09-09  Bruno Haible  <bruno@clisp.org>
53321
53322         * modules/calloc-posix: New file.
53323         * modules/calloc (Depends-on): Add calloc-posix.
53324         * lib/calloc.c: Include errno.h.
53325         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
53326         and a POSIX-compatible calloc into a single function. Set ENOMEM
53327         when returning NULL.
53328         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
53329         * doc/functions/calloc.texi: Mention the calloc-posix module.
53330         * lib/stdlib_.h (calloc): New declaration.
53331         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
53332         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
53333         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
53334         and HAVE_CALLOC_POSIX.
53335
53336 2007-09-09  Bruno Haible  <bruno@clisp.org>
53337
53338         Allow for modules to show an arbitrary notice.
53339         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
53340         * gnulib-tool: New option --extract-notice.
53341         (func_usage): Document it.
53342         (sed_extract_prog): Update.
53343         (func_get_notice): New function.
53344         (func_modules_notice): New function.
53345         (func_import, func_create_testdir): Invoke it.
53346         Suggested by Jim Meyering.
53347
53348 2007-09-09  Bruno Haible  <bruno@clisp.org>
53349
53350         * gnulib-tool: New options --verbose, --quiet.
53351         (func_usage): Document them.
53352         (verbose): New variable.
53353         (func_execute_command): New function.
53354         (func_import): Don't show the module list and the file list if
53355         $verbose < 0.
53356         (func_create_testdir): Likewise. Use func_execute_command.
53357         (func_create_megatestdir): Use func_execute_command.
53358
53359 2007-09-08  Bruno Haible  <bruno@clisp.org>
53360
53361         * gnulib-tool (func_import): Prefer rsync over wget when available,
53362         for fetching the PO files.
53363
53364 2007-09-08  Bruno Haible  <bruno@clisp.org>
53365
53366         * posix-modules: New file. Portions copied from gnulib-tool.
53367         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
53368
53369 2007-09-08  Jim Meyering  <jim@meyering.net>
53370
53371         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
53372         * lib/fpending.h: Rename from __fpending.h.
53373         * lib/fpending.c: Rename from __fpending.c.
53374         Include "fpending.h", not "__fpending.h".
53375         * lib/__fpending.h, lib/__fpending.c: Remove files.
53376         * modules/fpending (Files): Reflect new file names.
53377         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
53378
53379 2007-09-08  Bruno Haible  <bruno@clisp.org>
53380
53381         * m4/inttypes-h.m4: Remove stub file.
53382
53383 2007-09-07  Simon Josefsson  <simon@josefsson.org>
53384
53385         * doc/headers/stdint.texi: Discuss #include_next issue.
53386
53387 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
53388
53389         * build-aux/bootstrap: Remove obsolete comment about wget --help.
53390
53391 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53392
53393         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
53394         in variable name.
53395
53396 2007-09-03  Jim Meyering  <jim@meyering.net>
53397
53398         New module: git-version-gen.
53399         * modules/git-version-gen: New file.
53400
53401         Import changes from coreutils for bootstrap script.
53402
53403         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
53404
53405         bootstrap: uses rsync to download the .po files
53406         * build-aux/bootstrap (po_download_command_format): New global.
53407         (download_po_files): Use rsync.
53408         (update_po_files): Don't remove .po files after download,
53409         so future rsync runs can take advantage of the copies.
53410
53411         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
53412
53413         Solve the unnecessary-.po-file-regeneration problem once and for all.
53414         * build-aux/bootstrap (download_po_files): New function, renamed from
53415         get_translations.  Now, downloads, but doesn't update LINGUAS.
53416         (update_po_files): New function.
53417
53418         bootstrap: Ignore more.
53419         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
53420         uniwidth to e.g., lib/.gitignore.
53421         (slurp): Handle the sys_stat_.h -> sys mapping, too.
53422
53423         * build-aux/bootstrap: New setting: vc_ignore.
53424         (insert_sorted_if_absent): Create $file if absent.
53425         Adapt to new, possibly empty, list: $vc_ignore.
53426
53427         bootstrap: generate more ignorable names
53428         * build-aux/bootstrap (slurp): When generating ignorable names,
53429         also map .sin to .sed, .gperf to .c, and .y to .c.
53430
53431 2007-09-03  Jim Meyering  <jim@meyering.net>
53432
53433         * build-aux/git-version-gen: New file, from coreutils.  For details, see
53434         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
53435
53436 2007-09-02  Bruno Haible  <bruno@clisp.org>
53437
53438         Fix mis-recognition of 'mcs' on QNX 6.
53439         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
53440         output contains the string "Mono".
53441         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
53442         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
53443
53444 2007-09-01  Bruno Haible  <bruno@clisp.org>
53445
53446         Fix collision between uniwidth/* and linebreak modules.
53447         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
53448         u32_width): Remove declarations.
53449         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
53450         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
53451         streq3, streq2, streq1, streq0): Remove functions.
53452         (STREQ): Remove macro.
53453         (is_cjk_encoding): Remove function.
53454         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
53455         (uc_width, u8_width, u16_width, u32_width): Remove functions.
53456         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
53457         * NEWS: Document the change.
53458
53459 2007-09-01  Bruno Haible  <bruno@clisp.org>
53460
53461         * lib/streq.h: Add double-inclusion guard.
53462
53463 2007-09-01  Karl Berry  <karl@gnu.org>
53464
53465         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
53466
53467 2007-08-28  Jim Meyering  <jim@meyering.net>
53468
53469         Rename mreadlink_with_size to areadlink_with_size.
53470         * NEWS: Document the change.
53471         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
53472         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
53473         * lib/mreadlink.h: Rename this to...
53474         * lib/areadlink.h: ...this.
53475         * modules/mreadlink-with-size: Rename this to...
53476         * modules/areadlink-with-size: ...this.
53477         * lib/canonicalize.c: Reflect the renaming.
53478         * modules/canonicalize: Likewise.
53479
53480 2007-08-26  Bruno Haible  <bruno@clisp.org>
53481
53482         * gnulib-tool (func_import): When deciding which files to remove,
53483         consider also dangling symbolic links.
53484         Reported by Eric Blake.
53485
53486 2007-08-26  Bruno Haible  <bruno@clisp.org>
53487
53488         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
53489
53490 2007-08-23  Simon Josefsson  <simon@josefsson.org>
53491
53492         * lib/readline.c: Don't include getline.h, the prototype is now
53493         found in stdio.h.
53494
53495 2007-08-23  Jim Meyering  <jim@meyering.net>
53496
53497         Getdelim touchup.
53498         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
53499         around the funlockfile call, since funlockfile never sets errno.
53500         Don't set errno upon failed realloc.
53501
53502 2007-08-22  Eric Blake  <ebb9@byu.net>
53503
53504         Getline touchups.
53505         * lib/getdelim.c (getdelim): Revert regression that required *n to
53506         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
53507         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
53508         getdelim, rather than whether implementation is missing.
53509         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
53510         * lib/stdio_.h (getline): Also declare if replacement is
53511         required.
53512         * doc/functions/getdelim.texi: New file.
53513         * doc/functions/getline.texi: Likewise.
53514         * doc/gnulib.texi (Function Substitutes): Add new files.
53515         Reported by Bruno Haible.
53516
53517 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
53518
53519         * users.txt: Add Guile.
53520
53521 2007-08-22  Eric Blake  <ebb9@byu.net>
53522
53523         * tests/test-getdelim.c (main): Use remove, not unlink.
53524         * tests/test-getline.c (main): Likewise.
53525
53526         Move getline and getdelim into stdio.h, per POSIX 200x.
53527         * modules/getline (Files): Remove getline.h.
53528         (Depends-on): Add stdio.
53529         (configure.ac): Add module indicator.
53530         * modules/getdelim (Files): Remove getdelim.h.
53531         (Depends-on): Add stdio.
53532         (configure.ac): Add module indicator.
53533         * modules/stdio (Makefile.am): Work with new indicators.
53534         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
53535         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
53536         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
53537         * lib/getdelim.h: Delete.
53538         * lib/getline.h: Delete.
53539         * lib/stdio_.h (getdelim, getline): Declare.
53540         * modules/getdelim-tests: New module.
53541         * modules/getline-tests: Likewise.
53542         * tests/test-getdelim.c: New file.
53543         * tests/test-getline.c: Likewise.
53544         * NEWS: Document the change.
53545         * lib/getline.c: Update choice of header.
53546         * lib/csharpcomp.c: Likewise.
53547         * lib/getpass.c: Likewise.
53548         * lib/javacomp.c: Likewise.
53549         * lib/javaversion.c: Likewise.
53550         * lib/yesno.c: Likewise.
53551         * lib/getdelim.c: Likewise.
53552         (getdelim): Set errno on failure, and avoid memory leak.
53553
53554 2007-08-19  Bruno Haible  <bruno@clisp.org>
53555
53556         * modules/closein (Depends-on): Add freadahead.
53557         * lib/closein.c: Include freadahead.h.
53558         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
53559         is zero.
53560
53561 2007-08-19  Bruno Haible  <bruno@clisp.org>
53562
53563         * modules/freadahead-tests: New file.
53564         * tests/test-freadahead.sh: New file.
53565         * tests/test-freadahead.c: New file.
53566
53567         * modules/freadahead: New file.
53568         * lib/freadahead.h: New file.
53569         * lib/freadahead.c: New file.
53570         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
53571         fbufmode, fpurge, freadable, fwritable.
53572
53573 2007-08-19  Eric Blake  <ebb9@byu.net>
53574
53575         Test yesno in combination with closein.
53576         * lib/yesno.c (yesno): Document use of stdin.
53577         * modules/yesno-tests (Files): New module.
53578         * tests/test-yesno.c (main): New file.
53579         * tests/test-yesno.sh: Likewise.
53580
53581 2007-08-19  Bruno Haible  <bruno@clisp.org>
53582
53583         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
53584         * lib/fseeko.c (rpl_fseeko): Likewise.
53585         * lib/fseterr.c (fseterr): Likewise.
53586
53587 2007-08-19  Bruno Haible  <bruno@clisp.org>
53588
53589         * tests/test-lseek.c (main): Disable a test for BeOS.
53590         * doc/functions/lseek.texi: Document the BeOS bug.
53591
53592 2007-08-19  Bruno Haible  <bruno@clisp.org>
53593             Eric Blake  <ebb9@byu.net>
53594
53595         * lib/lseek.c: Include <sys/stat.h>.
53596         (rpl_lseek): Add workaround code also for Unix platforms.
53597         Needed for BeOS.
53598         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
53599         * doc/functions/lseek.texi: Document BeOS definiency.
53600
53601 2007-08-18  Bruno Haible  <bruno@clisp.org>
53602
53603         * modules/fstrcmp-tests: New file.
53604         * tests/test-fstrcmp.c: New file.
53605
53606 2007-08-18  Bruno Haible  <bruno@clisp.org>
53607
53608         * modules/fstrcmp: New file, from GNU gettext with modifications.
53609         * lib/fstrcmp.h: New file, from GNU gettext.
53610         * lib/fstrcmp.c: New file, from GNU gettext.
53611         * MODULES.html.sh (String handling): Add fstrcmp.
53612
53613 2007-08-18  Bruno Haible  <bruno@clisp.org>
53614
53615         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
53616         'bool'.
53617         (diag, compareseq): Remove const from the ctxt argument.
53618         (USE_HEURISTIC): Undefine at the end.
53619
53620 2007-08-18  Jim Meyering  <jim@meyering.net>
53621
53622         New file: lib/idcache.h
53623         * NEWS: Mention the addition.
53624         * modules/idcache (Files): Add lib/idcache.h
53625         * lib/idcache.c: Include "idcache.h".
53626         Don't include <sys/types.h>.
53627         Add a FIXME comment.
53628         Move file-scoped "static" declarations to the top.
53629         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
53630
53631 2007-08-17  Bruno Haible  <bruno@clisp.org>
53632         and Paul Eggert  <eggert@cs.ucla.edu>
53633
53634         * MODULES.html.sh: Add diffseq.
53635         * modules/diffseq: New file.
53636         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
53637         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
53638
53639 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
53640
53641         Import changes from coreutils for bootstrap script.
53642
53643         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
53644
53645         * build-aux/bootstrap (slurp): Work even in environments where
53646         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
53647         current code does not slurp files whose names start with ".", and
53648         this looks like it might be a troublesome area.
53649
53650         2007-07-11  Jim Meyering  <jim@meyering.net>
53651
53652         If there's a GPL vN copyright comment, require that N == 3.
53653
53654         2007-07-08  Jim Meyering  <jim@meyering.net>
53655
53656         Run the coreutils-specific code only if tests/Makefile.am.in exists.
53657         * build-aux/bootstrap (mam_template): Move definition out of loop.
53658
53659         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
53660
53661         * build-aux/bootstrap (symlink_to_dir): Rename function from
53662         symlink_to_gnulib.  Add a directory parameter.  Update all
53663         callers.
53664         (cp_mark_as_generated): Also check for -- and link to -- files in
53665         gl/.
53666
53667         2007-07-08  Jim Meyering  <jim@meyering.net>
53668
53669         Adapt to deeper hierarchy in gnulib.
53670         * build-aux/bootstrap (symlink_to_dir): If the destination
53671         directory doesn't exist, create it. This is required at least for
53672         "lib/uniwidth/cjk.h".
53673
53674         2007-05-15  Jim Meyering  <jim@meyering.net>
53675
53676         * build-aux/bootstrap: Now that generated Makefile.am files
53677         are no longer under version control, they must be created at
53678         bootstrap time.
53679
53680 2007-08-14  Ben Pfaff  <blp@gnu.org>
53681
53682         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
53683
53684 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
53685
53686         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
53687         given the changes below.
53688         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
53689         even on hosts that have padding bits beyond the supported 64.
53690
53691 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
53692
53693         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
53694         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
53695         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
53696         depends on it.
53697         (xstrtol_error): Remove.
53698         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
53699         but with a different signature.
53700         (ATTRIBUTE_NORETURN, __attribute__): New macros.
53701         * lib/xstrtol-error.c: Include exitfail.h.
53702         (xstrtol_fatal): New function, with a different signature from the
53703         old xstrtol_error, so that the caller need not worry about passing
53704         in an exit status, or about storage management of the option argument.
53705         (xstrtol_error): Now a static function.  Redo signature to
53706         implement xstrtol_fatal.  Output the correct number of hyphens in
53707         front of the option so that the caller need not worry about
53708         storage management.
53709         (N_): New macro.
53710         (_): Remove; not used now.
53711         * modules/xstrtol: Depend on getopt.
53712         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
53713         of old STRTOL_FATAL_ERROR macro.
53714         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
53715         of test program.
53716         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
53717         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
53718
53719 2007-08-08  Eric Blake  <ebb9@byu.net>
53720
53721         * lib/xstrtol-error.c: Add missing include.
53722
53723         Move xstrtol messages into gnulib domain, when --pobase is used.
53724         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
53725         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
53726         * modules/xstrtol (Files): Distribute new file.
53727         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
53728         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
53729         * tests/test-xstrtol.c: ...into new file.
53730         * tests/test-xstrtoul.c: Also test xstrtoul.
53731         * tests/test-xstrtoimax.c: Also test xstrtoimax.
53732         * tests/test-xstrtoumax.c: Also test xstrtoumax.
53733         * tests/test-xstrtol.sh: Drive the tests.
53734         * tests/test-xstrtoimax.sh: Likewise.
53735         * tests/test-xstrtoumax.sh: Likewise.
53736         * modules/xstrtol-tests: New module.
53737         * modules/xstrtoimax-tests: Likewise.
53738         * modules/xstrtoumax-tests: Likewise.
53739
53740 2007-08-08  Jim Meyering  <jim@meyering.net>
53741
53742         New function: mfile_name_concat.
53743         * lib/filenamecat.c (mfile_name_concat): New function, just like
53744         file_name_concat, but return NULL upon failure rather than exiting
53745         with a diagnostic.
53746         * lib/filenamecat.h: Declare it.
53747
53748 2007-08-07  Bruno Haible  <bruno@clisp.org>
53749
53750         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
53751         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
53752         warning from gcc.
53753         Reported by Eric Blake.
53754
53755 2007-08-07  Simon Josefsson  <simon@josefsson.org>
53756
53757         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
53758         * modules/crypto/arcfour (License): Likewise.
53759         * modules/crypto/des-tests (License): Likewise.
53760         * modules/crypto/gc-arctwo-tests (License): Likewise.
53761         * modules/crypto/gc-des-tests (License): Likewise.
53762         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
53763         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
53764         * modules/crypto/gc-md2-tests (License): Likewise.
53765         * modules/crypto/gc-md4-tests (License): Likewise.
53766         * modules/crypto/gc-md5-tests (License): Likewise.
53767         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
53768         * modules/crypto/gc-rijndael-tests (License): Likewise.
53769         * modules/crypto/gc-sha1-tests (License): Likewise.
53770         * modules/crypto/gc-tests (License): Likewise.
53771         * modules/crypto/hmac-md5 (License): Likewise.
53772         * modules/crypto/hmac-sha1 (License): Likewise.
53773         * modules/crypto/md2-tests (License): Likewise.
53774         * modules/crypto/md4-tests (License): Likewise.
53775         * modules/crypto/md5 (License): Likewise.
53776         * modules/crypto/rijndael (License): Likewise.
53777         * modules/crypto/sha1 (License): Likewise.
53778         * modules/memxor (License): Likewise.
53779
53780 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
53781         and Bruno Haible  <bruno@clisp.org>
53782
53783         * NEWS: Describe interface changes to human, xstrtol.
53784         * lib/human.h: Include <xstrtol.h>.
53785         (human_options): Return enum strtol_error, not int.  Remove
53786         bool arg; take int * instead.
53787         * lib/human.c: Don't include "gettext.h".
53788         (_): Remove; no longer used.
53789         Don't include <xstrtol.h>, since human.h does it.
53790         (human_options): Adjust to abovementioned interface changes.
53791         Do not report error to stderr; that's now the caller's
53792         responsibility.
53793         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
53794         interface change.
53795         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
53796         Str, Argument_type_string.  All uses changed.  Put " argument"
53797         in diagnostics to make them clearer.  Change wording of suffix
53798         message for clarity.
53799         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
53800         Argument_type_string.
53801         (STRTOL_FATAL_WARN): Remove; no longer used.
53802         * modules/human (Depends-on): Remove gettext-h.
53803
53804 2007-08-06  Simon Josefsson  <simon@josefsson.org>
53805
53806         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
53807
53808 2007-07-31  Bruno Haible  <bruno@clisp.org>
53809
53810         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
53811         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
53812         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
53813
53814 2007-07-31  Bruno Haible  <bruno@clisp.org>
53815
53816         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
53817         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
53818
53819 2007-07-30  Bruno Haible  <bruno@clisp.org>
53820
53821         * modules/base64 (License): Use the synonymous term "LGPLv2+".
53822         * modules/c-ctype (License): Likewise.
53823         * modules/c-strcase (License): Likewise.
53824         * modules/check-version (License): Likewise.
53825         * modules/iconv (License): Likewise.
53826         * modules/iconv_open (License): Likewise.
53827         * modules/read-file (License): Likewise.
53828         * modules/striconv (License): Likewise.
53829         * modules/strverscmp (License): Likewise.
53830         * modules/vasprintf (License): Likewise.
53831         * modules/crypto/des (License): Likewise.
53832         * modules/crypto/gc (License): Likewise.
53833         * modules/crypto/gc-arcfour (License): Likewise.
53834         * modules/crypto/gc-arctwo (License): Likewise.
53835         * modules/crypto/gc-des (License): Likewise.
53836         * modules/crypto/gc-hmac-md5 (License): Likewise.
53837         * modules/crypto/gc-hmac-sha1 (License): Likewise.
53838         * modules/crypto/gc-md2 (License): Likewise.
53839         * modules/crypto/gc-md4 (License): Likewise.
53840         * modules/crypto/gc-md5 (License): Likewise.
53841         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
53842         * modules/crypto/gc-random (License): Likewise.
53843         * modules/crypto/gc-rijndael (License): Likewise.
53844         * modules/crypto/gc-sha1 (License): Likewise.
53845         * modules/crypto/md2 (License): Likewise.
53846         * modules/crypto/md4 (License): Likewise.
53847
53848 2007-07-30  Jim Meyering  <jim@meyering.net>
53849
53850         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
53851         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
53852         it has valid stat data.  This bug would cause du not to count the
53853         sizes of inaccessible directories.
53854         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
53855         in <http://bugzilla.redhat.com/250077>.
53856
53857 2007-07-25  Peter O'Gorman  <peter@pogma.com>
53858             Bruno Haible  <bruno@clisp.org>
53859
53860         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
53861         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
53862         #include_next, gives a diagnostic about it, but reports no error in
53863         the exit code.
53864         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
53865
53866 2007-07-24  Ben Pfaff  <blp@gnu.org>
53867
53868         Improve name: "count-one-bits" is better than "popcount".
53869         * MODULES.html.sh: Update name.
53870         * lib/popcount.h: Renamed lib/count-one-bits.h.
53871         (popcount): Renamed count_one_bits.
53872         (popcountl): Renamed count_one_bits_l.
53873         (popcountll): Renamed count_one_bits_ll.
53874         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
53875         * modules/popcount: Renamed module/count-one-bits.
53876         * modules/popcount-tests: Renamed module/count-one-bits-tests.
53877         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
53878
53879 2007-07-23  Ben Pfaff  <blp@gnu.org>
53880
53881         * lib/popcount.h (popcount32): Reduce size of constants, to allow
53882         better code generation, and add U to large constants to avoid
53883         warnings, in non-GCC case.
53884         Suggested by Bruno Haible.
53885
53886 2007-07-23  Ben Pfaff  <blp@gnu.org>
53887
53888         * lib/popcount.h: Use verify_true instead of if...abort.
53889         * modules/popcount: Depend on verify module.
53890         Suggested by Jim Meyering.
53891
53892 2007-07-23  Bruno Haible  <bruno@clisp.org>
53893
53894         * gnulib-tool (func_import): Create a .cvsignore file also when the
53895         directory is not yet in CVS but the toplevel directory is. When
53896         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
53897         Reported by Karl Berry.
53898
53899 2007-07-22  Ben Pfaff  <blp@gnu.org>
53900
53901         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
53902         case.
53903         Suggested by Eric Blake.
53904
53905 2007-07-22  Ben Pfaff  <blp@gnu.org>
53906
53907         New module: popcount.
53908         * MODULES.html.sh: Add popcount.
53909         * modules/popcount: New file.
53910         * modules/popcount-tests: New file.
53911         * tests/test-popcount.c: New file.
53912         * lib/popcount.h: New file.
53913         * m4/popcount.m4: New file.
53914
53915 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
53916
53917         * build-aux/announce-gen: Update to GPLv3.
53918
53919         * build-aux/config.guess: Update from config.
53920
53921 2007-07-21  Bruno Haible  <bruno@clisp.org>
53922
53923         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
53924         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
53925
53926 2007-07-20  Jim Meyering  <jim@meyering.net>
53927
53928         * check-module: Diagnose a self-dependency.
53929
53930 2007-07-19  Bruno Haible  <bruno@clisp.org>
53931
53932         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
53933         empty.
53934         Reported by Eric Blake.
53935
53936 2007-07-18  Bruno Haible  <bruno@clisp.org>
53937
53938         * gnulib-tool: New options --po-base, --po-domain.
53939         (func_usage): Document them.
53940         (pobase, po_domain): New variables.
53941         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
53942         DEFAULT_TEXT_DOMAIN.
53943         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
53944         (func_import): Consider pobase and po_domain. Create a po/ directory.
53945         (func_create_testdir): Set pobase and po_domain to empty.
53946         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
53947         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
53948
53949 2007-07-18  Bruno Haible  <bruno@clisp.org>
53950
53951         * gnulib-tool (func_get_automake_snippet): Synthesize also an
53952         EXTRA_DIST augmentation for files in build-aux/.
53953
53954 2007-07-16  Bruno Haible  <bruno@clisp.org>
53955
53956         * modules/lseek (License): Use the synonymous term "LGPLv2+".
53957         * modules/getdelim (License): Likewise.
53958
53959 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53960
53961         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
53962         * modules/d-type (License): Likewise.
53963         * modules/extensions (License): Likewise.
53964         * modules/fnmatch (License): Likewise.
53965         * modules/fseeko (License): Likewise.
53966         * modules/getaddrinfo (License): Likewise.
53967         * modules/getline (License): Likewise.
53968         * modules/getlogin_r (License): Likewise.
53969         * modules/getpass (License): Likewise.
53970         * modules/gettimeofday (License): Likewise.
53971         * modules/glob (License): Likewise.
53972         * modules/inet_ntop (License): Likewise.
53973         * modules/malloc (License): Likewise.
53974         * modules/malloca (License): Likewise.
53975         * modules/memmem (License): Likewise.
53976         * modules/mempcpy (License): Likewise.
53977         * modules/memset (License): Likewise.
53978         * modules/minmax (License): Likewise.
53979         * modules/mktime (License): Likewise.
53980         * modules/netinet_in (License): Likewise.
53981         * modules/pathmax (License): Likewise.
53982         * modules/poll (License): Likewise.
53983         * modules/regex (License): Likewise.
53984         * modules/snprintf (License): Likewise.
53985         * modules/stdbool (License): Likewise.
53986         * modules/stdint (License): Likewise.
53987         * modules/stdio (License): Likewise.
53988         * modules/strcase (License): Likewise.
53989         * modules/strcasestr (License): Likewise.
53990         * modules/strdup (License): Likewise.
53991         * modules/string (License): Likewise.
53992         * modules/strndup (License): Likewise.
53993         * modules/strnlen (License): Likewise.
53994         * modules/strpbrk (License): Likewise.
53995         * modules/strptime (License): Likewise.
53996         * modules/strsep (License): Likewise.
53997         * modules/sys_select (License): Likewise.
53998         * modules/sys_socket (License): Likewise.
53999         * modules/sys_stat (License): Likewise.
54000         * modules/sys_time (License): Likewise.
54001         * modules/time (License): Likewise.
54002         * modules/time_r (License): Likewise.
54003         * modules/timegm (License): Likewise.
54004         * modules/unistd (License): Likewise.
54005         * modules/vsnprintf (License): Likewise.
54006         * modules/wctype (License): Likewise.
54007
54008 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54009
54010         * modules/argz (License): LGPLv2+.
54011
54012 2007-07-15  Karl Berry  <karl@gnu.org>
54013
54014         * doc/gnulib.texi: revise node structure per new fdl.texi.
54015
54016 2007-07-14  Bruno Haible  <bruno@clisp.org>
54017
54018         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
54019         the output file.
54020         * lib/uniname/uninames.h: Regenerated.
54021
54022 2007-07-14  Karl Berry  <karl@gnu.org>
54023
54024         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
54025         omitting sectioning and index commands.
54026
54027 2007-07-13  Bruno Haible  <bruno@clisp.org>
54028
54029         New gnulib-tool option --more-symlinks.
54030         * gnulib-tool (func_usage): Document --more-symlinks.
54031         (do_copyrights): New variable.
54032         Recognize option --more-symlinks.
54033         (func_import): Don't add a copyright notice transform to
54034         sed_transform_lib_file if do_copyrights is empty.
54035
54036 2007-07-13  Bruno Haible  <bruno@clisp.org>
54037
54038         * lib/vasnprintf.c (decimal_point_char): Define also if
54039         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
54040         && !NEED_PRINTF_DIRECTIVE_A.
54041         Reported by Clemens Koller <clemens.koller@anagramm.de> via
54042         Gary V. Vaughan <gary@gnu.org>.
54043
54044 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
54045
54046         * lib/inttypes_.h: Undo previous change, since it was fixed
54047         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
54048
54049 2007-07-13  Bruno Haible  <bruno@clisp.org>
54050
54051         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
54052         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
54053
54054 2007-07-13  Jim Meyering  <jim@meyering.net>
54055
54056         df: Don't fail for Tru64's "file-on-file mount".
54057         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
54058         so we fall through and use statfs instead.  Details here:
54059         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
54060         Reported by Albert Chin.
54061
54062 2007-07-13  Bruno Haible  <bruno@clisp.org>
54063
54064         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
54065         * modules/configmake (License): Likewise.
54066         * modules/gettext (License): Likewise.
54067         * modules/gettext-h (License): Likewise.
54068         * modules/include_next (License): Likewise.
54069         * modules/link-warning (License): Likewise.
54070         * modules/localcharset (License): Likewise.
54071         * modules/localename (License): Likewise.
54072         * modules/lock (License): Likewise.
54073         * modules/relocatable-lib-lgpl (License): Likewise.
54074         * modules/size_max (License): Likewise.
54075         * modules/vasnprintf (License): Likewise.
54076         * modules/wchar (License): Likewise.
54077         * modules/xsize (License): Likewise.
54078
54079 2007-07-13  Bruno Haible  <bruno@clisp.org>
54080
54081         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
54082         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
54083
54084 2007-07-12  Bruno Haible  <bruno@clisp.org>
54085
54086         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
54087         in the modules files.
54088
54089 2007-07-11  Karl Berry  <karl@gnu.org>
54090
54091         * MODULES.html.sh (func_module): use
54092          sed -e '\|^'"${includefile}"'$|d'
54093          instead of /.../d, to avoid errors on $includefile's containing /.
54094
54095 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
54096
54097         * gnulib-tool (func_import): Avoid duplication of --avoid
54098         statements
54099         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
54100         names to `_' in variable names.
54101
54102 2007-07-10  Eric Blake  <ebb9@byu.net>
54103
54104         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
54105         * NEWS: Document this change.
54106
54107 2007-07-08  Bruno Haible  <bruno@clisp.org>
54108
54109         Update to Unicode 5.0.
54110         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
54111         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
54112         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
54113         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
54114         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
54115         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
54116         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
54117         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
54118         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
54119         U+10A3F, U+1D242..U+1D244.
54120         (nonspacing_table_ind): Update.
54121         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
54122         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
54123
54124 2007-07-08  Bruno Haible  <bruno@clisp.org>
54125
54126         Update to Unicode 5.0.
54127         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
54128         code transform. Extend the name index field of unicode_name_to_code and
54129         unicode_code_to_name from 16 to 24 bits.
54130         * lib/uniname/uniname.c (unicode_character_name,
54131         unicode_name_character): Add the range 0x12xxx to the code transform.
54132         * lib/uniname/uninames.h: Regenerated.
54133         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
54134
54135 2007-07-07  Bruno Haible  <bruno@clisp.org>
54136
54137         * modules/wcwidth-tests: New file.
54138         * tests/test-wcwidth.c: New file.
54139
54140         Work around MacOS X wcwidth() bug.
54141         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
54142         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
54143         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
54144         original wcwidth in non-UTF-8 locales.
54145         * modules/wcwidth (Depends-on): Add localcharset, streq,
54146         uniwidth/width.
54147         * doc/functions/wcwidth.texi: Update.
54148
54149 2007-07-07  Bruno Haible  <bruno@clisp.org>
54150
54151         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
54152         (wcwidth): New declaration.
54153         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
54154         macros.
54155         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
54156         here. Prepare for creating <wchar.h> unconditionally.
54157         * modules/wchar (Depends-on): Add link-warning.
54158         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
54159         REPLACE_WCWIDTH, and GL_LINK_WARNING.
54160         * lib/wcwidth.h: Remove file.
54161         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
54162         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
54163         * modules/wcwidth (Files): Remove lib/wcwidth.h.
54164         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
54165         (Include): Replace wcwidth.h with <wchar.h>.
54166         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
54167         * lib/mbchar.h: Don't include wcwidth.h.
54168         * lib/mbswidth.c: Likewise.
54169         * NEWS: Mention the change.
54170
54171 2007-07-07  Bruno Haible  <bruno@clisp.org>
54172
54173         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
54174         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
54175         definition with an external declaration.
54176         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
54177         defined as a function. Remove AC_C_INLINE requirement.
54178         * modules/wcwidth (Files): Add lib/wcwidth.c.
54179         (Makefile.am): Remove redundant statement.
54180
54181 2007-07-07  Bruno Haible  <bruno@clisp.org>
54182
54183         * MODULES.html.sh (Unicode string functions): Add the new modules.
54184
54185         * tests/uniwidth/test-u32-strwidth.c: New file.
54186         * modules/uniwidth/u32-strwidth-tests: New file.
54187
54188         * lib/uniwidth/u32-strwidth.c: New file.
54189         * modules/uniwidth/u32-strwidth: New file.
54190
54191         * tests/uniwidth/test-u16-strwidth.c: New file.
54192         * modules/uniwidth/u16-strwidth-tests: New file.
54193
54194         * lib/uniwidth/u16-strwidth.c: New file.
54195         * modules/uniwidth/u16-strwidth: New file.
54196
54197         * tests/uniwidth/test-u8-strwidth.c: New file.
54198         * modules/uniwidth/u8-strwidth-tests: New file.
54199
54200         * lib/uniwidth/u8-strwidth.c: New file.
54201         * modules/uniwidth/u8-strwidth: New file.
54202
54203         * tests/uniwidth/test-u32-width.c: New file.
54204         * modules/uniwidth/u32-width-tests: New file.
54205
54206         * lib/uniwidth/u32-width.c: New file.
54207         * modules/uniwidth/u32-width: New file.
54208
54209         * tests/uniwidth/test-u16-width.c: New file.
54210         * modules/uniwidth/u16-width-tests: New file.
54211
54212         * lib/uniwidth/u16-width.c: New file.
54213         * modules/uniwidth/u16-width: New file.
54214
54215         * tests/uniwidth/test-u8-width.c: New file.
54216         * modules/uniwidth/u8-width-tests: New file.
54217
54218         * lib/uniwidth/u8-width.c: New file.
54219         * modules/uniwidth/u8-width: New file.
54220
54221         * tests/uniwidth/test-uc_width.c: New file.
54222         * modules/uniwidth/width-tests: New file.
54223
54224         * lib/uniwidth/width.c: New file, from GNU libiconv.
54225         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
54226         * modules/uniwidth/width: New file.
54227
54228         * lib/uniwidth.h: New file, from GNU libiconv.
54229         * modules/uniwidth/base: New file.
54230
54231 2007-07-07  Bruno Haible  <bruno@clisp.org>
54232
54233         * lib/uniname.h: New file, from GNU gettext.
54234         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
54235         * lib/uniname/uninames.h: New file, from GNU gettext.
54236         * lib/uniname/uniname.c: New file, from GNU gettext.
54237         * tests/uniname/test-uninames.sh: New file.
54238         * tests/uniname/test-uninames.c: New file, from GNU gettext.
54239         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
54240         * modules/uniname/base: New file.
54241         * modules/uniname/uniname: New file.
54242         * modules/uniname/uniname-tests: New file.
54243         * MODULES.html.sh (Unicode string functions): Add the new modules.
54244
54245 2007-07-06  Bruno Haible  <bruno@clisp.org>
54246
54247         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
54248
54249 2007-07-06  Bruno Haible  <bruno@clisp.org>
54250
54251         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
54252         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
54253         includes <cygwin/sys_time.h> which includes <sys/select.h> which
54254         include <sys/time.h>.
54255         Reported by Eric Blake.
54256
54257 2007-07-06  Eric Blake  <ebb9@byu.net>
54258
54259         Fix testing canonicalize on cygwin.
54260         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
54261         Revert patch from 2007-06-19.
54262         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
54263         canonicalize module is also in use.
54264         * tests/test-canonicalize.c: New file.
54265         * tests/test-canonicalize.sh: Likewise.
54266         * modules/canonicalize-tests: Likewise.
54267
54268 2007-07-06  Jim Meyering  <jim@meyering.net>
54269
54270         * lib/getugroups.c (getugroups): Detect getgrent failure.
54271         Adjust comment to reflect reality: this function may return -1.
54272
54273 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
54274
54275         * build-aux/bootstrap (TP_URL,get_translations): Update to use
54276         the new TP address.
54277         (usage): Fix typo
54278         (gnulib_mk): New variable.
54279
54280 2007-07-05  Jim Meyering  <jim@meyering.net>
54281
54282         Don't let endgrent clobber errno, no matter how improbable.
54283         * lib/getugroups.c (getugroups): Save and restore errno around
54284         endgrent call.
54285
54286         Close the group DB even when failing with 2^31 or more members.
54287         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
54288
54289 2007-07-04  Jim Meyering  <jim@meyering.net>
54290
54291         * lib/getugroups.h: New file.
54292         * lib/getugroups.c: Include "getugroups.h".
54293         Remove uses of "register" keyword.
54294         Move local variable, "cp", down into scope where used.
54295         Give "username" parameter the "const" attribute.
54296         * modules/getugroups (Files): Add lib/getugroups.h
54297
54298 2007-07-04  Karl Berry  <karl@gnu.org>
54299
54300         * MODULES.html.sh (func_all_modules): Complete rename of
54301         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
54302
54303 2007-07-02  Bruno Haible  <bruno@clisp.org>
54304
54305         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
54306         mode, when inttypes.h comes from gnulib.
54307         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
54308
54309 2007-07-02  Simon Josefsson  <simon@josefsson.org>
54310
54311         * NEWS: Mention lgpl module name change.
54312
54313         * modules/lgpl-2.1: Renamed from lgpl.
54314
54315         * NEWS: Mention gpl module name change.
54316
54317         * modules/gpl-3.0: New file, based on gpl-2.0.
54318
54319         * modules/gpl-2.0: Renamed from gpl.
54320
54321         * modules/gpl: Fix filename, doc/gpl.texi is now found at
54322         doc/gpl-2.0.texi.
54323
54324 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
54325
54326         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
54327         #define __STDC_LIMIT_MACROS temporarily while including
54328         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
54329         Problem reported by Joel E. Denny in
54330         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
54331
54332 2007-07-01  Bruno Haible  <bruno@clisp.org>
54333
54334         * lib/unistdio.h: New file.
54335         * lib/unistdio/u-asnprintf.h: New file.
54336         * lib/unistdio/u-asprintf.h: New file.
54337         * lib/unistdio/u-printf-args.c: New file.
54338         * lib/unistdio/u-printf-args.h: New file.
54339         * lib/unistdio/u-printf-parse.h: New file.
54340         * lib/unistdio/u-snprintf.h: New file.
54341         * lib/unistdio/u-sprintf.h: New file.
54342         * lib/unistdio/u-vasprintf.h: New file.
54343         * lib/unistdio/u-vsnprintf.h: New file.
54344         * lib/unistdio/u-vsprintf.h: New file.
54345         * lib/unistdio/ulc-asnprintf.c: New file.
54346         * lib/unistdio/ulc-asprintf.c: New file.
54347         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
54348         * lib/unistdio/ulc-printf-parse.c: New file.
54349         * lib/unistdio/ulc-snprintf.c: New file.
54350         * lib/unistdio/ulc-sprintf.c: New file.
54351         * lib/unistdio/ulc-vasnprintf.c: New file.
54352         * lib/unistdio/ulc-vasprintf.c: New file.
54353         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
54354         * lib/unistdio/ulc-vsnprintf.c: New file.
54355         * lib/unistdio/ulc-vsprintf.c: New file.
54356         * lib/unistdio/u8-asnprintf.c: New file.
54357         * lib/unistdio/u8-asprintf.c: New file.
54358         * lib/unistdio/u8-printf-parse.c: New file.
54359         * lib/unistdio/u8-snprintf.c: New file.
54360         * lib/unistdio/u8-sprintf.c: New file.
54361         * lib/unistdio/u8-vasnprintf.c: New file.
54362         * lib/unistdio/u8-vasprintf.c: New file.
54363         * lib/unistdio/u8-vsnprintf.c: New file.
54364         * lib/unistdio/u8-vsprintf.c: New file.
54365         * lib/unistdio/u8-u8-asnprintf.c: New file.
54366         * lib/unistdio/u8-u8-asprintf.c: New file.
54367         * lib/unistdio/u8-u8-snprintf.c: New file.
54368         * lib/unistdio/u8-u8-sprintf.c: New file.
54369         * lib/unistdio/u8-u8-vasnprintf.c: New file.
54370         * lib/unistdio/u8-u8-vasprintf.c: New file.
54371         * lib/unistdio/u8-u8-vsnprintf.c: New file.
54372         * lib/unistdio/u8-u8-vsprintf.c: New file.
54373         * lib/unistdio/u16-asnprintf.c: New file.
54374         * lib/unistdio/u16-asprintf.c: New file.
54375         * lib/unistdio/u16-printf-parse.c: New file.
54376         * lib/unistdio/u16-snprintf.c: New file.
54377         * lib/unistdio/u16-sprintf.c: New file.
54378         * lib/unistdio/u16-vasnprintf.c: New file.
54379         * lib/unistdio/u16-vasprintf.c: New file.
54380         * lib/unistdio/u16-vsnprintf.c: New file.
54381         * lib/unistdio/u16-vsprintf.c: New file.
54382         * lib/unistdio/u16-u16-asnprintf.c: New file.
54383         * lib/unistdio/u16-u16-asprintf.c: New file.
54384         * lib/unistdio/u16-u16-snprintf.c: New file.
54385         * lib/unistdio/u16-u16-sprintf.c: New file.
54386         * lib/unistdio/u16-u16-vasnprintf.c: New file.
54387         * lib/unistdio/u16-u16-vasprintf.c: New file.
54388         * lib/unistdio/u16-u16-vsnprintf.c: New file.
54389         * lib/unistdio/u16-u16-vsprintf.c: New file.
54390         * lib/unistdio/u32-asnprintf.c: New file.
54391         * lib/unistdio/u32-asprintf.c: New file.
54392         * lib/unistdio/u32-printf-parse.c: New file.
54393         * lib/unistdio/u32-snprintf.c: New file.
54394         * lib/unistdio/u32-sprintf.c: New file.
54395         * lib/unistdio/u32-vasnprintf.c: New file.
54396         * lib/unistdio/u32-vasprintf.c: New file.
54397         * lib/unistdio/u32-vsnprintf.c: New file.
54398         * lib/unistdio/u32-vsprintf.c: New file.
54399         * lib/unistdio/u32-u32-asnprintf.c: New file.
54400         * lib/unistdio/u32-u32-asprintf.c: New file.
54401         * lib/unistdio/u32-u32-snprintf.c: New file.
54402         * lib/unistdio/u32-u32-sprintf.c: New file.
54403         * lib/unistdio/u32-u32-vasnprintf.c: New file.
54404         * lib/unistdio/u32-u32-vasprintf.c: New file.
54405         * lib/unistdio/u32-u32-vsnprintf.c: New file.
54406         * lib/unistdio/u32-u32-vsprintf.c: New file.
54407         * tests/unistdio/test-ulc-asnprintf1.c: New file.
54408         * tests/unistdio/test-ulc-asnprintf1.h: New file.
54409         * tests/unistdio/test-ulc-printf1.h: New file.
54410         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
54411         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
54412         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
54413         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
54414         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
54415         * tests/unistdio/test-ulc-vasprintf1.c: New file.
54416         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
54417         * tests/unistdio/test-ulc-vsprintf1.c: New file.
54418         * tests/unistdio/test-u8-asnprintf1.c: New file.
54419         * tests/unistdio/test-u8-asnprintf1.h: New file.
54420         * tests/unistdio/test-u8-printf1.h: New file.
54421         * tests/unistdio/test-u8-vasnprintf1.c: New file.
54422         * tests/unistdio/test-u8-vasnprintf2.c: New file.
54423         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
54424         * tests/unistdio/test-u8-vasnprintf3.c: New file.
54425         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
54426         * tests/unistdio/test-u8-vasprintf1.c: New file.
54427         * tests/unistdio/test-u8-vsnprintf1.c: New file.
54428         * tests/unistdio/test-u8-vsprintf1.c: New file.
54429         * tests/unistdio/test-u16-asnprintf1.c: New file.
54430         * tests/unistdio/test-u16-asnprintf1.h: New file.
54431         * tests/unistdio/test-u16-printf1.h: New file.
54432         * tests/unistdio/test-u16-vasnprintf1.c: New file.
54433         * tests/unistdio/test-u16-vasnprintf2.c: New file.
54434         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
54435         * tests/unistdio/test-u16-vasnprintf3.c: New file.
54436         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
54437         * tests/unistdio/test-u16-vasprintf1.c: New file.
54438         * tests/unistdio/test-u16-vsnprintf1.c: New file.
54439         * tests/unistdio/test-u16-vsprintf1.c: New file.
54440         * tests/unistdio/test-u32-asnprintf1.c: New file.
54441         * tests/unistdio/test-u32-asnprintf1.h: New file.
54442         * tests/unistdio/test-u32-printf1.h: New file.
54443         * tests/unistdio/test-u32-vasnprintf1.c: New file.
54444         * tests/unistdio/test-u32-vasnprintf2.c: New file.
54445         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
54446         * tests/unistdio/test-u32-vasnprintf3.c: New file.
54447         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
54448         * tests/unistdio/test-u32-vasprintf1.c: New file.
54449         * tests/unistdio/test-u32-vsnprintf1.c: New file.
54450         * tests/unistdio/test-u32-vsprintf1.c: New file.
54451         * modules/unistdio/base: New file.
54452         * modules/unistdio/u-printf-args: New file.
54453         * modules/unistdio/ulc-asnprintf: New file.
54454         * modules/unistdio/ulc-asprintf: New file.
54455         * modules/unistdio/ulc-fprintf: New file.
54456         * modules/unistdio/ulc-printf-parse: New file.
54457         * modules/unistdio/ulc-snprintf: New file.
54458         * modules/unistdio/ulc-sprintf: New file.
54459         * modules/unistdio/ulc-vasnprintf: New file.
54460         * modules/unistdio/ulc-vasprintf: New file.
54461         * modules/unistdio/ulc-vfprintf: New file.
54462         * modules/unistdio/ulc-vsnprintf: New file.
54463         * modules/unistdio/ulc-vsprintf: New file.
54464         * modules/unistdio/u8-asnprintf: New file.
54465         * modules/unistdio/u8-asprintf: New file.
54466         * modules/unistdio/u8-printf-parse: New file.
54467         * modules/unistdio/u8-snprintf: New file.
54468         * modules/unistdio/u8-sprintf: New file.
54469         * modules/unistdio/u8-vasnprintf: New file.
54470         * modules/unistdio/u8-vasprintf: New file.
54471         * modules/unistdio/u8-vsnprintf: New file.
54472         * modules/unistdio/u8-vsprintf: New file.
54473         * modules/unistdio/u8-u8-asnprintf: New file.
54474         * modules/unistdio/u8-u8-asprintf: New file.
54475         * modules/unistdio/u8-u8-snprintf: New file.
54476         * modules/unistdio/u8-u8-sprintf: New file.
54477         * modules/unistdio/u8-u8-vasnprintf: New file.
54478         * modules/unistdio/u8-u8-vasprintf: New file.
54479         * modules/unistdio/u8-u8-vsnprintf: New file.
54480         * modules/unistdio/u8-u8-vsprintf: New file.
54481         * modules/unistdio/u16-asnprintf: New file.
54482         * modules/unistdio/u16-asprintf: New file.
54483         * modules/unistdio/u16-printf-parse: New file.
54484         * modules/unistdio/u16-snprintf: New file.
54485         * modules/unistdio/u16-sprintf: New file.
54486         * modules/unistdio/u16-vasnprintf: New file.
54487         * modules/unistdio/u16-vasprintf: New file.
54488         * modules/unistdio/u16-vsnprintf: New file.
54489         * modules/unistdio/u16-vsprintf: New file.
54490         * modules/unistdio/u16-u16-asnprintf: New file.
54491         * modules/unistdio/u16-u16-asprintf: New file.
54492         * modules/unistdio/u16-u16-snprintf: New file.
54493         * modules/unistdio/u16-u16-sprintf: New file.
54494         * modules/unistdio/u16-u16-vasnprintf: New file.
54495         * modules/unistdio/u16-u16-vasprintf: New file.
54496         * modules/unistdio/u16-u16-vsnprintf: New file.
54497         * modules/unistdio/u16-u16-vsprintf: New file.
54498         * modules/unistdio/u32-asnprintf: New file.
54499         * modules/unistdio/u32-asprintf: New file.
54500         * modules/unistdio/u32-printf-parse: New file.
54501         * modules/unistdio/u32-snprintf: New file.
54502         * modules/unistdio/u32-sprintf: New file.
54503         * modules/unistdio/u32-vasnprintf: New file.
54504         * modules/unistdio/u32-vasprintf: New file.
54505         * modules/unistdio/u32-vsnprintf: New file.
54506         * modules/unistdio/u32-vsprintf: New file.
54507         * modules/unistdio/u32-u32-asnprintf: New file.
54508         * modules/unistdio/u32-u32-asprintf: New file.
54509         * modules/unistdio/u32-u32-snprintf: New file.
54510         * modules/unistdio/u32-u32-sprintf: New file.
54511         * modules/unistdio/u32-u32-vasnprintf: New file.
54512         * modules/unistdio/u32-u32-vasprintf: New file.
54513         * modules/unistdio/u32-u32-vsnprintf: New file.
54514         * modules/unistdio/u32-u32-vsprintf: New file.
54515         * modules/unistdio/ulc-asnprintf-tests: New file.
54516         * modules/unistdio/ulc-vasnprintf-tests: New file.
54517         * modules/unistdio/ulc-vasprintf-tests: New file.
54518         * modules/unistdio/ulc-vsnprintf-tests: New file.
54519         * modules/unistdio/ulc-vsprintf-tests: New file.
54520         * modules/unistdio/u8-asnprintf-tests: New file.
54521         * modules/unistdio/u8-vasnprintf-tests: New file.
54522         * modules/unistdio/u8-vasprintf-tests: New file.
54523         * modules/unistdio/u8-vsnprintf-tests: New file.
54524         * modules/unistdio/u8-vsprintf-tests: New file.
54525         * modules/unistdio/u16-asnprintf-tests: New file.
54526         * modules/unistdio/u16-vasnprintf-tests: New file.
54527         * modules/unistdio/u16-vasprintf-tests: New file.
54528         * modules/unistdio/u16-vsnprintf-tests: New file.
54529         * modules/unistdio/u16-vsprintf-tests: New file.
54530         * modules/unistdio/u32-asnprintf-tests: New file.
54531         * modules/unistdio/u32-vasnprintf-tests: New file.
54532         * modules/unistdio/u32-vasprintf-tests: New file.
54533         * modules/unistdio/u32-vsnprintf-tests: New file.
54534         * modules/unistdio/u32-vsprintf-tests: New file.
54535         * MODULES.html.sh (Unicode string functions): Add the new modules.
54536
54537 2007-07-01  Bruno Haible  <bruno@clisp.org>
54538
54539         * lib/sprintf.c (sprintf): Limit the available length estimation,
54540         to avoid address wraparound.
54541         * lib/vsprintf.c (vsprintf): Likewise.
54542         * modules/sprintf-posix (Dependencies): Add stdint.
54543         * modules/vsprintf-posix (Dependencies): Likewise.
54544
54545 2007-07-01  Bruno Haible  <bruno@clisp.org>
54546
54547         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
54548         Windows PATH as well. Conservative double-quoting. Comments.
54549
54550 2007-07-01  Bruno Haible  <bruno@clisp.org>
54551             Eric Blake  <ebb9@byu.net>
54552             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54553
54554         * gnulib-tool (self_abspathname): Fix algorithm to cope with
54555         empty components in $PATH, denoting '.'.
54556
54557 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54558
54559         * gnulib-tool: Fix indentation.
54560         (func_create_megatestdir): Likewise.
54561         Report by Bruno Haible.
54562
54563 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54564
54565         Sync from Automake.
54566         * build-aux/gnupload: Fix shell portability issues with for loops.
54567         Report by Karl Berry.
54568
54569 2007-06-29  Simon Josefsson  <simon@josefsson.org>
54570
54571         * build-aux/maint.mk (POURL): Use translationproject.org.
54572
54573 2007-06-27  Simon Josefsson  <simon@josefsson.org>
54574             Bruno Haible  <bruno@clisp.org>
54575
54576         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
54577         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
54578         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
54579         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
54580         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
54581
54582 2007-06-27  Bruno Haible  <bruno@clisp.org>
54583
54584         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
54585         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
54586
54587 2007-06-26  Karl Berry  <karl@gnu.org>
54588
54589         * MODULES.html.sh: remove xreadlink-with-size.
54590
54591 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
54592
54593         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
54594         method that I hope also handles the double-include problem noted
54595         by Bruno Haible in
54596         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
54597
54598 2007-06-23  Bruno Haible  <bruno@clisp.org>
54599
54600         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
54601         Don't let the 'mostlyclean' target fail if the last subdirectory could
54602         not be removed.
54603         Reported by Karl Berry.
54604
54605 2007-06-23  Bruno Haible  <bruno@clisp.org>
54606
54607         * gnulib-tool (echo): Add a speedier workaround for ksh.
54608         * tests/test-echo.sh: Likewise.
54609
54610 2007-06-23  Bruno Haible  <bruno@clisp.org>
54611
54612         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
54613         * tests/test-echo.sh: Likewise.
54614
54615 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54616
54617         * gnulib-tool (IFS): Initialize early, so we don't set it to
54618         empty later.
54619         (self_abspathname): Rewrite algorithm to set it, reindent.
54620         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
54621         (func_create_megatestdir): Merge some sed scripts.
54622
54623 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
54624
54625         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
54626         exposed by Sun Studio 11 cc on Solaris 8.
54627
54628 2007-06-22  Bruno Haible  <bruno@clisp.org>
54629
54630         * gnulib-tool (echo): Ensure the echo primitive does not interpret
54631         backslashes.
54632         * tests/test-echo.sh: New file.
54633
54634 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54635
54636         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
54637         simplify `sed_replace_build_aux' scripts, they are portable but
54638         echoing them with `echo' is not.
54639         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
54640
54641 2007-06-21  Karl Berry  <karl@gnu.org>
54642
54643         * config/srclist.txt: guess we can't handle the licenses via
54644         srclist at the moment.
54645
54646 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
54647
54648         * MODULES.html.sh: Add include_next.
54649         * modules/include_next: New file.
54650
54651 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
54652
54653         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
54654         INCLUDE_NEXT.
54655         (gl_CHECK_NEXT_HEADERS): New macro.
54656         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
54657         the obsolescent gl_ABSOLUTE_HEADER.
54658         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
54659         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
54660         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
54661         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
54662         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
54663         * m4/math_h.m4 (gl_MATH_H): Likewise.
54664         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
54665         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
54666         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
54667         * m4/stdint.m4 (gl_STDINT_H): Likewise.
54668         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
54669         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
54670         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
54671         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
54672         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
54673         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
54674         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
54675         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
54676         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
54677         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
54678         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
54679         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
54680         * m4/inttypes.m4 (gl_INTTYPES_H): Define
54681         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
54682         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
54683         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
54684         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
54685         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
54686         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
54687         * lib/float_.h: Likewise.
54688         * lib/inttypes_.h: Likewise.
54689         * lib/math_.h: Likewise.
54690         * lib/search_.h: Likewise.
54691         * lib/signal_.h: Likewise.
54692         * lib/stdint_.h: Likewise.
54693         * lib/stdio_.h: Likewise.
54694         * lib/stdlib_.h: Likewise.
54695         * lib/string_.h: Likewise.
54696         * lib/sys_stat_.h: Likewise.
54697         * lib/sys_time_.h: Likewise.
54698         * lib/time_.h: Likewise.
54699         * lib/unistd_.h: Likewise.
54700         * lib/wchar_.h: Likewise.
54701         * lib/wctype_.h: Likewise.
54702         * lib/dirent_.h: Likewise.
54703         * lib/iconv_.h: Likewise.
54704         * lib/locale_.h: Likewise.
54705         * lib/netinet_in_.h: Likewise.
54706         * lib/sys_select_.h: Likewise.
54707         * lib/sys_socket_.h: Likewise.
54708         * lib/sysexits_.h: Likewise.
54709         * modules/fcntl (Depends-on): Depend on include_next, not
54710         absolute_header.
54711         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
54712         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
54713         * modules/fchdir: Likewise.
54714         * modules/float: Likewise.
54715         * modules/iconv_open: Likewise.
54716         * modules/inttypes: Likewise.
54717         * modules/locale: Likewise.
54718         * modules/math: Likewise.
54719         * modules/netinet_in: Likewise.
54720         * modules/search: Likewise.
54721         * modules/signal: Likewise.
54722         * modules/stdint: Likewise.
54723         * modules/stdio: Likewise.
54724         * modules/stdlib: Likewise.
54725         * modules/string: Likewise.
54726         * modules/sys_select: Likewise.
54727         * modules/sys_socket: Likewise.
54728         * modules/sys_stat: Likewise.
54729         * modules/sys_time: Likewise.
54730         * modules/sysexits: Likewise.
54731         * modules/time: Likewise.
54732         * modules/unistd: Likewise.
54733         * modules/wchar: Likewise.
54734         * modules/wctype: Likewise.
54735         * modules/sys_stat: Change maintainer to "all".
54736         * modules/unistd: Likewise.
54737
54738 2007-06-20  Karl Berry  <karl@gnu.org>
54739
54740         * config/srclist.txt: track www changes in license files.
54741
54742 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
54743
54744         * build-aux/bootstrap: Remove stray dot.
54745         Make sure build_aux settings are honored when linking
54746         gnulib_extra_files.
54747
54748 2007-06-19  Eric Blake  <ebb9@byu.net>
54749
54750         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
54751         Allow compilation on cygwin.
54752
54753 2007-06-19  Jim Meyering  <jim@meyering.net>
54754
54755         xreadlink-with-size: Remove module.  No longer used.
54756         Ex-callers now use xreadlink or mreadlink-with-size.
54757         * modules/xreadlink-with-size: Remove module.
54758         * lib/xreadlink-with-size.c: Remove file.
54759         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
54760         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
54761         just before the function definition *is* accurate.
54762
54763         Eliminate one way canonicalize_filename_mode could exit.
54764         * lib/canonicalize.c (canonicalize_filename_mode):
54765         Use mreadlink_with_size, not xreadlink_with_size.
54766
54767 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
54768
54769         Detect porting problems to FreeBSD/arm, which has time_t wider than
54770         long int.  Original problem reported for GNU diff by Xin Li in
54771         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
54772         * modules/getdate (Depends-on): Add intprops, verify.
54773         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
54774         is an integer type no wider than long int.
54775
54776 2007-06-18  Jim Meyering  <jim@meyering.net>
54777
54778         New module: mreadlink-with-size.
54779         * MODULES.html.sh: Add mreadlink-with-size.
54780         * modules/mreadlink-with-size: New module
54781         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
54782         not xreadlink-with-size.
54783         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
54784
54785 2007-06-16  Bruno Haible  <bruno@clisp.org>
54786
54787         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
54788         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
54789         Reported by Gary V. Vaughan <gary@gnu.org>.
54790
54791 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
54792
54793         Revamp lchown so that it lives in unistd.h where it belongs.
54794         * lib/lchown.h: Remove.
54795         * lib/dirchownmod.c: Don't include lib/lchown.h.
54796         * lib/fchownat.c: Likewise.
54797         * lib/openat.c: Likewise.
54798         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
54799         does not follow symlinks.
54800         (EOPNOTSUPP): Define if not defined.
54801         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
54802         is defined to 0.
54803         (lchown): New decl.
54804         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
54805         Do not check for lchown decl.
54806         Set REPLACE_LCHOWN.
54807         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
54808         REPLACE_LCHOWN.
54809         * modules/chown: Make it clear it follows symlinks.
54810         * modules/lchown: Make it clear it doesn't follow symlinks.
54811         (Files): Remove lib/lchown.h
54812         (Depends-on): Add unistd.
54813         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
54814         (Include): Include <unistd.h>, not "lchown.h".
54815         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
54816         REPLACE_LCHOWN.
54817
54818 2007-06-15  Jim Meyering  <jim@meyering.net>
54819
54820         Change license (GPL to LGPL) of fsusage and dependents.
54821         * modules/fsusage (License): Change to LGPL.
54822         * modules/full-read (License): Likewise.
54823         * modules/full-write (License): Likewise.
54824         * modules/safe-read (License): Likewise.
54825         * modules/safe-write (License): Likewise.
54826
54827 2007-06-14  Ben Pfaff  <blp@gnu.org>
54828
54829         Missing part of allocsa -> malloca transition.
54830         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
54831         gl_MALLOCA.
54832
54833 2007-06-12  Bruno Haible  <bruno@clisp.org>
54834
54835         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
54836         to ia64, x86_64, i386.
54837         Reported by Eric Blake.
54838
54839 2007-06-12  Bruno Haible  <bruno@clisp.org>
54840
54841         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
54842         cross-compiling to x86_64.
54843
54844 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
54845
54846         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
54847         glitch reported by Ralf Wildenhues in
54848         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
54849
54850         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
54851         Vin Shelton.
54852
54853 2007-06-11  Bruno Haible  <bruno@clisp.org>
54854
54855         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
54856         replacement string.
54857         Reported by Eric Blake.
54858
54859 2007-06-10  Bruno Haible  <bruno@clisp.org>
54860
54861         Prepare vasnprintf code for use with Unicode strings.
54862         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
54863         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
54864         TYPE_U32_STRING.
54865         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
54866         a_u32_string variants.
54867         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
54868         * lib/printf-args.c: Don't include config.h and the specification
54869         header if PRINTF_FETCHARGS is already defined.
54870         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
54871         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
54872         TYPE_U16_STRING, TYPE_U32_STRING.
54873         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
54874         u16_directive, u16_directives, u32_directive, u32_directives): New
54875         types.
54876         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
54877         New declarations.
54878         * lib/printf-parse.c: Don't include config.h and the specification
54879         header if PRINTF_PARSE is already defined. Eliminate the set of
54880         parameters for WIDE_CHAR_VERSION; the user of this file must provide
54881         them now. Include c-ctype.h.
54882         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
54883         directive and CHAR_T_ONLY_ASCII.
54884         * lib/vasnprintf.c: Don't include config.h and the specification header
54885         if VASNPRINTF is already defined.
54886         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
54887         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
54888         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
54889         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
54890         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
54891         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
54892         code accordingly.
54893         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
54894         pad_ourselves also in this case, with the 'c' and 's' directives, and
54895         with a different notion of "width".
54896         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
54897
54898 2007-06-10  Bruno Haible  <bruno@clisp.org>
54899
54900         * modules/unistr/u32-mbsnlen: New file.
54901         * lib/unistr/u32-mbsnlen.c: New file.
54902
54903         * modules/unistr/u16-mbsnlen: New file.
54904         * lib/unistr/u16-mbsnlen.c: New file.
54905
54906         * modules/unistr/u8-mbsnlen: New file.
54907         * lib/unistr/u8-mbsnlen.c: New file.
54908
54909         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
54910         declarations.
54911
54912 2007-06-10  Bruno Haible  <bruno@clisp.org>
54913
54914         * lib/string_.h (mbsnlen): New declaration.
54915         * lib/mbsnlen.c: New file.
54916         * m4/mbsnlen.m4: New file.
54917         * modules/mbsnlen: New file.
54918         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
54919         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
54920         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
54921
54922 2007-06-10  Bruno Haible  <bruno@clisp.org>
54923
54924         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
54925
54926 2007-06-10  Bruno Haible  <bruno@clisp.org>
54927
54928         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
54929         * lib/mbuiter.h: Likewise.
54930
54931 2007-06-10  Bruno Haible  <bruno@clisp.org>
54932
54933         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
54934         declaration.
54935
54936 2007-06-10  Karl Berry  <karl@gnu.org>
54937
54938         * config/srclist.txt: remove gettext entries, Bruno prefers
54939         to update individually.
54940
54941 2007-06-10  Bruno Haible  <bruno@clisp.org>
54942
54943         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
54944         'maxlen'. Ensure only length + width bytes are allocated, not
54945         length + 1 + width.
54946
54947 2007-06-09  Bruno Haible  <bruno@clisp.org>
54948
54949         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
54950         (CHAR_T): Remove macro.
54951         (VASNPRINTF): Update.
54952
54953 2007-06-09  Bruno Haible  <bruno@clisp.org>
54954
54955         * MODULES.html.sh (Unicode string functions): Add the new modules.
54956
54957         * modules/uniconv/u32-conv-to-enc: New file.
54958         * lib/uniconv/u32-conv-to-enc.c: New file.
54959         * modules/uniconv/u32-conv-to-enc-tests: New file.
54960         * tests/uniconv/test-u32-conv-to-enc.c: New file.
54961
54962         * modules/uniconv/u16-conv-to-enc: New file.
54963         * lib/uniconv/u16-conv-to-enc.c: New file.
54964         * lib/uniconv/u-conv-to-enc.h: New file.
54965         * modules/uniconv/u16-conv-to-enc-tests: New file.
54966         * tests/uniconv/test-u16-conv-to-enc.c: New file.
54967
54968         * modules/uniconv/u8-conv-to-enc: New file.
54969         * lib/uniconv/u8-conv-to-enc.c: New file.
54970         * modules/uniconv/u8-conv-to-enc-tests: New file.
54971         * tests/uniconv/test-u8-conv-to-enc.c: New file.
54972
54973         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
54974         u32_conv_to_encoding): New declarations.
54975
54976 2007-06-09  Bruno Haible  <bruno@clisp.org>
54977
54978         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
54979
54980 2007-06-09  Bruno Haible  <bruno@clisp.org>
54981
54982         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
54983         * modules/malloca: Renamed from modules/allocsa, updated.
54984         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
54985         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
54986         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
54987         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
54988         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
54989         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
54990         * modules/xmalloca: Renamed from modules/xallocsa, updated.
54991         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
54992         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
54993         * modules/c-strcasestr (Depends-on): Update.
54994         * lib/c-strcasestr.c: Update.
54995         * modules/c-strstr (Depends-on): Update.
54996         * lib/c-strstr.c: Update.
54997         * modules/canonicalize-lgpl (Depends-on): Update.
54998         * lib/canonicalize-lgpl.c: Update.
54999         * modules/clean-temp (Depends-on): Update.
55000         * lib/clean-temp.c: Update.
55001         * modules/csharpcomp (Depends-on): Update.
55002         * lib/csharpcomp.c: Update.
55003         * modules/csharpexec (Depends-on): Update.
55004         * lib/csharpexec.c: Update.
55005         * modules/javacomp (Depends-on): Update.
55006         * lib/javacomp.c: Update.
55007         * modules/javaexec (Depends-on): Update.
55008         * lib/javaexec.c: Update.
55009         * modules/mbscasestr (Depends-on): Update.
55010         * lib/mbscasestr.c: Update.
55011         * modules/mbsstr (Depends-on): Update.
55012         * lib/mbsstr.c: Update.
55013         * modules/setenv (Depends-on): Update.
55014         * lib/setenv.c: Update.
55015         * modules/strcasestr (Depends-on): Update.
55016         * lib/strcasestr.c: Update.
55017         * modules/striconveha (Depends-on): Update.
55018         * lib/striconveha.c: Update.
55019         * modules/relocatable-prog-wrapper (Files): Update.
55020         * lib/relocwrapper.c: Update.
55021         * build-aux/install-reloc: Update.
55022         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
55023
55024 2007-06-08  Bruno Haible  <bruno@clisp.org>
55025
55026         Port to uClibc.
55027         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
55028         * lib/fpurge.c (fpurge): Likewise.
55029         * lib/freading.c (freading): Likewise.
55030         * lib/fseeko.c (rpl_fseeko): Likewise.
55031         * lib/fseterr.c (fseterr): Likewise.
55032         * lib/fwriting.c (fwriting): Likewise.
55033         * tests/test-fflush.c (main): Avoid a failure on uClibc.
55034
55035 2007-06-08  Bruno Haible  <bruno@clisp.org>
55036
55037         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
55038         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
55039         * modules/gettext (Files): Add m4/intlmacosx.m4.
55040
55041 2007-06-07  Bruno Haible  <bruno@clisp.org>
55042
55043         * modules/localename-tests: New file.
55044         * tests/test-localename.c: New file.
55045
55046         New module 'localename'.
55047         * lib/localename.h: New file.
55048         * lib/localename.c: New file, from GNU gettext.
55049         * m4/localename.m4: New file.
55050         * modules/localename: New file.
55051
55052 2007-06-07  Bruno Haible  <bruno@clisp.org>
55053
55054         Work around the lack of <wchar.h> on some builds of uClibc.
55055         * doc/headers/wchar.texi: Update.
55056         * lib/wchar_.h: Include <wchar.h> only if it exists.
55057         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
55058         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
55059         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
55060         doesn't exist.
55061         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
55062         * modules/mbfile (Depends-on): Add wchar.
55063         * modules/mbiter (Depends-on): Likewise.
55064         * modules/mbuiter (Depends-on): Likewise.
55065         Reported by Simon Josefsson.
55066
55067 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
55068
55069         Work around problem reported by Steven M. Schweda in
55070         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
55071         Tru64 5.1B with the Compaq compiler environment installed declares
55072         an 'isblank' function but does not define it in the C library.
55073         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
55074         * lib/regex_internal.h (isblank): Likewise.
55075         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
55076         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
55077
55078 2007-06-05  Bruno Haible  <bruno@clisp.org>
55079
55080         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
55081         ia64.
55082         * modules/printf-safe: New file.
55083         * modules/fprintf-posix (Depends-on): Add printf-safe.
55084         * modules/printf-posix (Depends-on): Likewise.
55085         * modules/snprintf-posix (Depends-on): Likewise.
55086         * modules/sprintf-posix (Depends-on): Likewise.
55087         * modules/vasnprintf-posix (Depends-on): Likewise.
55088         * modules/vasprintf-posix (Depends-on): Likewise.
55089         * modules/vfprintf-posix (Depends-on): Likewise.
55090         * modules/vprintf-posix (Depends-on): Likewise.
55091         * modules/vsnprintf-posix (Depends-on): Likewise.
55092         * modules/vsprintf-posix (Depends-on): Likewise.
55093         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
55094         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
55095         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
55096         "no" on i386, x86_64, ia64.
55097         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
55098         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
55099         on i386, x86_64, ia64.
55100         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
55101         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
55102         on i386, x86_64, ia64.
55103         * tests/test-vasnprintf-posix.c: Include float.h.
55104         (LDBL80_WORDS): New macro.
55105         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
55106         on i386, x86_64, ia64.
55107         * tests/test-vasprintf-posix.c: Include float.h.
55108         (LDBL80_WORDS): New macro.
55109         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
55110         on i386, x86_64, ia64.
55111         * tests/test-snprintf-posix.c: Include float.h.
55112         * tests/test-sprintf-posix.c: Likewise.
55113         * tests/test-vsnprintf-posix.c: Likewise.
55114         * tests/test-vsprintf-posix.c: Likewise.
55115
55116 2007-06-05  Bruno Haible  <bruno@clisp.org>
55117
55118         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
55119         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
55120         non-IEEE numbers on i386, x86_64, ia64.
55121         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
55122         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
55123         * tests/test-isnanl.h: Include float.h.
55124         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
55125
55126 2007-06-05  Bruno Haible  <bruno@clisp.org>
55127
55128         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
55129         also the %a / %A. Handle the %a / %A code before this extra handling.
55130
55131 2007-06-05  Bruno Haible  <bruno@clisp.org>
55132
55133         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
55134         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
55135
55136 2007-06-05  Bruno Haible  <bruno@clisp.org>
55137
55138         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
55139         typo in variable name.
55140
55141 2007-06-05  Eric Blake  <ebb9@byu.net>
55142
55143         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
55144         Reported by Simon Josefsson.
55145
55146 2007-06-04  Bruno Haible  <bruno@clisp.org>
55147
55148         Avoid test failures on some PowerPC platforms.
55149         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
55150         Define differently for PowerPC.
55151         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
55152         Reported by Gary V. Vaughan <gary@gnu.org>.
55153
55154 2007-06-02  Bruno Haible  <bruno@clisp.org>
55155
55156         Fix test-stdint failure on FreeBSD/ia64.
55157         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
55158         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
55159         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
55160         * doc/headers/stdint.texi: Update.
55161
55162 2007-06-01  Bruno Haible  <bruno@clisp.org>
55163
55164         * tests/test-binary-io.c (main): Pass a third argument to open().
55165         Reported by Gary V. Vaughan <gary@gnu.org>.
55166
55167 2007-06-01  Bruno Haible  <bruno@clisp.org>
55168
55169         * doc/functions/frexpl.texi: Update for mingw.
55170
55171 2007-06-01  Bruno Haible  <bruno@clisp.org>
55172
55173         * tests/test-lseek.c (main): Disable test of errno for invalid third
55174         argument.
55175         * doc/functions/lseek.texi: Update.
55176         Reported by Gary V. Vaughan <gary@gnu.org>.
55177
55178 2007-05-28  Bruno Haible  <bruno@clisp.org>
55179
55180         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
55181
55182 2007-05-31  Eric Blake  <ebb9@byu.net>
55183
55184         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
55185         cross compiling.
55186
55187 2007-05-30  Eric Blake  <ebb9@byu.net>
55188         and Bruno Haible  <bruno@clisp.org>
55189
55190         Work around mingw test failures exposed by m4-1.4.9b.
55191         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
55192         * tests/test-unistd.c: Disable uid_t and git_t tests for the
55193         moment.
55194
55195 2007-05-30  Bruno Haible  <bruno@clisp.org>
55196
55197         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
55198         assuming that they are closed. Needed on HP-UX 11.
55199
55200 2007-05-29  Bruno Haible  <bruno@clisp.org>
55201
55202         Fix a problem with #include_next.
55203         * lib/dirent_.h: Split the double-inclusion guard.
55204         * lib/fcntl_.h: Likewise.
55205         * lib/float_.h: Likewise.
55206         * lib/iconv_.h: Likewise.
55207         * lib/inttypes_.h: Likewise.
55208         * lib/locale_.h: Likewise.
55209         * lib/math_.h: Likewise.
55210         * lib/netinet_in_.h: Likewise.
55211         * lib/search_.h: Likewise.
55212         * lib/signal_.h: Likewise.
55213         * lib/stdint_.h: Likewise.
55214         * lib/stdio_.h: Likewise.
55215         * lib/stdlib_.h: Likewise.
55216         * lib/string_.h: Likewise.
55217         * lib/sys_select_.h: Likewise.
55218         * lib/sys_socket_.h: Likewise.
55219         * lib/sys_stat_.h: Likewise.
55220         * lib/sys_time_.h: Likewise.
55221         * lib/sysexits_.h: Likewise.
55222         * lib/time_.h: Likewise.
55223         * lib/unistd_.h: Likewise.
55224         * lib/wchar_.h: Likewise.
55225         * lib/wctype_.h: Likewise.
55226
55227 2007-05-29  Bruno Haible  <bruno@clisp.org>
55228
55229         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
55230         for the moment.
55231
55232 2007-05-29  Bruno Haible  <bruno@clisp.org>
55233
55234         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
55235         invocation.
55236         Reported by Eric Blake.
55237
55238 2007-05-29  Bruno Haible  <bruno@clisp.org>
55239
55240         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
55241         compiling case.
55242
55243 2007-05-29  Eric Blake  <ebb9@byu.net>
55244             Bruno Haible  <bruno@clisp.org>
55245
55246         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
55247         cross compiles.
55248
55249 2007-05-28  Eric Blake  <ebb9@byu.net>
55250
55251         * modules/closein-tests (test_closein_LDADD): Support test on
55252         cygwin with libtool.
55253
55254 2007-05-28  Bruno Haible  <bruno@clisp.org>
55255
55256         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
55257         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
55258         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
55259         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
55260         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
55261         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
55262         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
55263         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
55264         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
55265
55266 2007-05-28  Eric Blake  <ebb9@byu.net>
55267
55268         Unconditionally include <config.h> in unit tests.
55269         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
55270         * tests/test-allocsa.c, tests/test-arcfour.c,
55271         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
55272         tests/test-array_list.c, tests/test-array_oset.c,
55273         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
55274         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
55275         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
55276         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
55277         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
55278         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
55279         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
55280         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
55281         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
55282         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
55283         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
55284         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
55285         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
55286         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
55287         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
55288         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
55289         test-md5.c, test-memmem.c, test-printf-posix.c,
55290         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
55291         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
55292         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
55293         test-strcasestr.c, test-striconv.c, test-striconveh.c,
55294         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
55295         test-vasnprintf-posix2.c, test-vasnprintf.c,
55296         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
55297         test-vfprintf-posix.c, test-vprintf-posix.c,
55298         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
55299         test-xvasprintf.c: Likewise.
55300
55301 2007-05-28  Bruno Haible  <bruno@clisp.org>
55302
55303         * gnulib-tool (func_import): Remember the --with-tests command-line
55304         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
55305         Reported by Eric Blake.
55306
55307 2007-05-28  Bruno Haible  <bruno@clisp.org>
55308
55309         * modules/ftell-tests: New file.
55310         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
55311         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
55312
55313         * lib/ftell.c: New file.
55314         * modules/ftell: New file.
55315         * m4/ftell.m4: New file.
55316         * doc/functions/ftell.texi: Update.
55317         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
55318         REPLACE_FTELL.
55319         * lib/stdio_.h (rpl_ftell): New declaration.
55320         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
55321         REPLACE_FTELL.
55322
55323 2007-05-28  Eric Blake  <ebb9@byu.net>
55324
55325         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
55326
55327 2007-05-28  Bruno Haible  <bruno@clisp.org>
55328
55329         * modules/fseek-tests: New file.
55330         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
55331         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
55332
55333         * lib/fseek.c: New file.
55334         * modules/fseek: New file.
55335         * m4/fseek.m4: New file.
55336         * doc/functions/fseek.texi: Update.
55337         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
55338         REPLACE_FSEEK.
55339         * lib/stdio_.h (rpl_fseek): New declaration.
55340         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
55341         REPLACE_FSEEK.
55342
55343 2007-05-28  Bruno Haible  <bruno@clisp.org>
55344
55345         * lib/stdio_.h (fflush): More comments.
55346
55347 2007-05-28  Bruno Haible  <bruno@clisp.org>
55348
55349         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
55350         runtime test.
55351
55352 2007-05-28  Eric Blake  <ebb9@byu.net>
55353
55354         Improve lseek module.
55355         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
55356         * lib/unistd_.h (lseek): Scale back link warning message.
55357         * tests/test-lseek.c: Beef up test.
55358         * tests/test-lseek.sh: Exercise more facets of lseek.
55359         Reported by Bruno Haible.
55360
55361 2007-05-28  Bruno Haible  <bruno@clisp.org>
55362
55363         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
55364         to define.
55365
55366 2007-05-27  Bruno Haible  <bruno@clisp.org>
55367
55368         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
55369
55370 2007-05-27  Bruno Haible  <bruno@clisp.org>
55371
55372         * modules/openmp: New file.
55373         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
55374         Noah Misch.
55375
55376 2007-05-26  Bruno Haible  <bruno@clisp.org>
55377
55378         * modules/chdir-long (Depends-on): Add fchdir.
55379         * modules/chdir-safer (Depends-on): Likewise.
55380         * modules/fts (Depends-on): Likewise.
55381         * modules/fts-lgpl (Depends-on): Likewise.
55382         * modules/openat (Depends-on): Likewise.
55383         * modules/savewd (Depends-on): Likewise.
55384
55385 2007-05-24  Eric Blake  <ebb9@byu.net>
55386
55387         Fix lseek on mingw.
55388         * modules/lseek: New module.
55389         * m4/lseek.m4: New file.
55390         * lib/lseek.c: New file.
55391         * modules/lseek-tests: New file.
55392         * tests/test-lseek.c: New file.
55393         * tests/test-lseek.sh: New file.
55394         * MODULES.html.sh: Document lseek module.
55395         * modules/fflush (Depends-on): Add lseek, fseeko.
55396         * modules/fseeko (Depends-on): Likewise.
55397         * modules/ftello (Depends-on): Likewise.
55398         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
55399         broken.
55400         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
55401         broken.
55402         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
55403         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
55404         * lib/ftello.c (rpl_ftello): Likewise.
55405         * tests/test-fseeko.c (main): Test this.
55406         * tests/test-fseeko.sh: Likewise.
55407         * tests/test-ftello.c (main): Likewise.
55408         * tests/test-ftello.sh: Likewise.
55409         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
55410         implies replacing fseek.
55411         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
55412         HAVE_FTELLO.
55413         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
55414         * modules/unistd (Makefile.am): Likewise.
55415         * lib/unistd_.h (lseek): Declare a replacement.
55416         * doc/functions/lseek.texi (lseek): Document this fix.
55417         * doc/functions/fseek.texi (fseek): Likewise.
55418         * doc/functions/ftell.texi (ftell): Likewise.
55419
55420 2007-05-24  Bruno Haible  <bruno@clisp.org>
55421
55422         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
55423         in the printed representation of a NaN.
55424         * tests/test-vasprintf-posix.c (test_function): Likewise.
55425         * tests/test-snprintf-posix.h (test_function): Likewise.
55426         * tests/test-sprintf-posix.h (test_function): Likewise.
55427         Reported by Eric Blake.
55428
55429 2007-05-23  Eric Blake  <ebb9@byu.net>
55430
55431         Fix fseeko/ftello on cygwin 1.5.24.
55432         * doc/functions/fseeko.texi (fseeko): Document the fix.
55433         * doc/functions/ftello.texi (ftello): Document the fix.
55434         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
55435         * doc/functions/stdout.text (stdout): New file.
55436         * doc/functions/stderr.text (stderr): New file.
55437         * doc/gnulib.texi (Function Substitutes): Use new files.
55438         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
55439         prior to 1.7.0.
55440         * tests/test-ftello.c (main): Likewise for ftello.
55441         * tests/test-fseeko.sh: New file.
55442         * tests/test-ftello.sh: New file.
55443         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
55444         with seekable stdin.
55445         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
55446         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
55447         (gl_REPLACE_FSEEKO): New macro.
55448         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
55449         * modules/fseeko (Files): Distribute fseeko.c.
55450         * modules/ftello (Files): Distribute ftello.c.
55451         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
55452         mode.
55453         * lib/ftello.c (rpl_ftello): New file.
55454         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
55455         fseeko, ftello.
55456         (gl_STDIN_LARGE_OFFSET): New macro.
55457         * modules/stdio (Makefile.am): Perform the replacement.
55458         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
55459
55460 2007-05-23  Bruno Haible  <bruno@clisp.org>
55461
55462         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
55463         GNULIB_POSIXCHECK is defined.
55464
55465 2007-05-21  Bruno Haible  <bruno@clisp.org>
55466
55467         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
55468         Check also the output for NaN arguments. When cross-compiling, guess
55469         no on IRIX.
55470         * lib/vasnprintf.c: Update comments.
55471         * tests/test-vasnprintf-posix.c (strisnan): New function.
55472         (test_function): Use it.
55473         * tests/test-vasprintf-posix.c (strisnan): New function.
55474         (test_function): Use it.
55475         * tests/test-snprintf-posix.h (strisnan): New function.
55476         (test_function): Use it.
55477         * tests/test-sprintf-posix.h (strisnan): New function.
55478         (test_function): Use it.
55479         Reported by Eric Blake.
55480
55481 2007-05-20  Bruno Haible  <bruno@clisp.org>
55482
55483         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
55484         numbers that fails on BeOS.
55485         * doc/functions/frexpl.texi: Update.
55486
55487 2007-05-20  Jim Meyering  <jim@meyering.net>
55488
55489         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
55490         forced upon us by glibc-2.6.
55491
55492 2007-05-20  Bruno Haible  <bruno@clisp.org>
55493
55494         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
55495         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
55496         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
55497         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
55498         NEED_PRINTF_INFINITE.
55499         (is_infinitel): New function.
55500         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
55501         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
55502         gl_PREREQ_VASNPRINTF_INFINITE.
55503         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
55504         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55505         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
55506         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
55507         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
55508         gl_PREREQ_VASNPRINTF_INFINITE.
55509         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55510         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55511         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55512         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55513         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55514         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55515         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55516         * doc/functions/fprintf.texi: Update.
55517         * doc/functions/printf.texi: Update.
55518         * doc/functions/snprintf.texi: Update.
55519         * doc/functions/sprintf.texi: Update.
55520         * doc/functions/vfprintf.texi: Update.
55521         * doc/functions/vprintf.texi: Update.
55522         * doc/functions/vsnprintf.texi: Update.
55523         * doc/functions/vsprintf.texi: Update.
55524
55525 2007-05-20  Bruno Haible  <bruno@clisp.org>
55526
55527         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
55528         was not found in libc.
55529         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
55530
55531 2007-05-20  Bruno Haible  <bruno@clisp.org>
55532
55533         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
55534         printed as "-nan" instead of "nan".
55535         * tests/test-vasprintf-posix.c (test_function): Likewise.
55536         * tests/test-snprintf-posix.h (test_function): Likewise.
55537         * tests/test-sprintf-posix.h (test_function): Likewise.
55538         Needed for HP-UX 11.
55539
55540 2007-05-20  Jim Meyering  <jim@meyering.net>
55541
55542         Fix buggy test for the fchownat-deref bug.
55543         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
55544         symlink required for the run-test.  Without it, this test would
55545         always declare that fchownat doesn't work, and client code would
55546         unnecessarily use the replacement function with fixed libc.
55547         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
55548         Reported by Greg Schafer.
55549
55550 2007-05-19  Bruno Haible  <bruno@clisp.org>
55551
55552         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
55553         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
55554         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
55555         Needed for IRIX 6.5 and Solaris 2.5.1.
55556
55557 2007-05-19  Bruno Haible  <bruno@clisp.org>
55558
55559         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
55560         (test_function): Skip tests involving -0.0 on platforms where
55561         -0.0 = 0.0.
55562         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
55563         (test_function): Skip tests involving -0.0 on platforms where
55564         -0.0 = 0.0.
55565         * tests/test-snprintf-posix.h (have_minus_zero): New function.
55566         (test_function): Skip tests involving -0.0 on platforms where
55567         -0.0 = 0.0.
55568         * tests/test-sprintf-posix.h (have_minus_zero): New function.
55569         (test_function): Skip tests involving -0.0 on platforms where
55570         -0.0 = 0.0.
55571         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
55572         tests.
55573         * tests/test-printf-posix.h (test_function): Likewise.
55574         * tests/test-printf-posix.output: Remove all -0.0 related results.
55575         Needed for IRIX 6.5.
55576
55577 2007-05-19  Bruno Haible  <bruno@clisp.org>
55578
55579         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
55580         printed as "nan0x7fffffff" instead of "nan".
55581         * tests/test-vasprintf-posix.c (test_function): Likewise.
55582         * tests/test-snprintf-posix.h (test_function): Likewise.
55583         * tests/test-sprintf-posix.h (test_function): Likewise.
55584         * tests/test-fprintf-posix.h (NaN): Remove macro.
55585         (test_function): Remove all NaN related tests.
55586         * tests/test-printf-posix.h (NaN): Remove macro.
55587         (test_function): Remove all NaN related tests.
55588         * tests/test-printf-posix.output: Remove all NaN related results.
55589         Needed for IRIX 6.5.
55590
55591 2007-05-19  Bruno Haible  <bruno@clisp.org>
55592
55593         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
55594         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
55595
55596 2007-05-19  Bruno Haible  <bruno@clisp.org>
55597
55598         * lib/float_.h: New file.
55599         * m4/float_h.m4: New file.
55600         * modules/float: New file.
55601         * modules/isnanl (Dependencies): Add float.
55602         * modules/isnanl-nolibm (Dependencies): Likewise.
55603         * modules/mathl (Dependencies): Likewise.
55604         * modules/printf-frexpl (Dependencies): Likewise.
55605         * modules/signbit (Dependencies): Likewise.
55606         * modules/vasnprintf (Dependencies): Likewise.
55607         * doc/headers/float.texi: Update.
55608
55609 2007-05-19  Jim Meyering  <jim@meyering.net>
55610
55611         * lib/utimens.c (gl_futimens): Rename from futimens,
55612         now that glibc-2.6 declares futimens.
55613         * lib/utimens.h: Likewise.
55614
55615 2007-05-19  Bruno Haible  <bruno@clisp.org>
55616
55617         Avoid test failures on mingw.
55618         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
55619         * tests/test-printf-posix.sh: Likewise.
55620         * tests/test-vfprintf-posix.sh: Likewise.
55621         * tests/test-vprintf-posix.sh: Likewise.
55622
55623 2007-05-19  Bruno Haible  <bruno@clisp.org>
55624
55625         Fix *printf result for NaN, Inf, -0.0 on mingw.
55626         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
55627         * lib/vasnprintf.c: Include math.h and isnan.h.
55628         (is_infinite_or_zero): New function.
55629         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
55630         values in the %f, %F, %e, %E, %g, %G directives.
55631         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
55632         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55633         gl_PRINTF_INFINITE and test its result. Invoke
55634         gl_PREREQ_VASNPRINTF_INFINITE.
55635         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55636         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55637         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55638         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55639         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55640         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55641         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55642         * doc/functions/fprintf.texi: Update.
55643         * doc/functions/printf.texi: Update.
55644         * doc/functions/snprintf.texi: Update.
55645         * doc/functions/sprintf.texi: Update.
55646         * doc/functions/vfprintf.texi: Update.
55647         * doc/functions/vprintf.texi: Update.
55648         * doc/functions/vsnprintf.texi: Update.
55649         * doc/functions/vsprintf.texi: Update.
55650
55651 2007-05-19  Bruno Haible  <bruno@clisp.org>
55652
55653         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
55654         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
55655         Instead of multiplying with 10^k, set extra_zeroes to k.
55656         (scale10_round_long_double): Remove function.
55657
55658 2007-05-18  Bruno Haible  <bruno@clisp.org>
55659
55660         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
55661         introduced on 2007-05-06.
55662
55663 2007-05-18  Bruno Haible  <bruno@clisp.org>
55664
55665         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
55666         %g directives.
55667         * tests/test-vasprintf-posix.c (test_function): Likewise.
55668         * tests/test-snprintf-posix.h (test_function): Likewise.
55669         * tests/test-sprintf-posix.h (test_function): Likewise.
55670
55671 2007-05-18  Bruno Haible  <bruno@clisp.org>
55672
55673         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
55674         (strmatch): New function.
55675         (test_function): Test the %f directive on numbers of various exponents.
55676         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
55677         (strmatch): New function.
55678         (test_function): Test the %f directive on numbers of various exponents.
55679         * tests/test-snprintf-posix.h (strmatch): New function.
55680         (test_function): Test the %f directive on numbers of various exponents.
55681         * tests/test-sprintf-posix.h (strmatch): New function.
55682         (test_function): Test the %f directive on numbers of various exponents.
55683         * tests/test-snprintf-posix.c (SIZEOF): New macro.
55684         * tests/test-sprintf-posix.c (SIZEOF): New macro.
55685         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
55686         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
55687
55688 2007-05-18  Bruno Haible  <bruno@clisp.org>
55689
55690         Add support for 'long double' number output.
55691         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
55692         * lib/vasnprintf.c: Include math.h and float+.h.
55693         (mp_limb_t): New type.
55694         (GMP_LIMB_BITS): New macro.
55695         (mp_twolimb_t): New type.
55696         (GMP_TWOLIMB_BITS): New macro.
55697         (mpn_t): New type.
55698         (multiply, divide, convert_to_decimal, decode_long_double,
55699         scale10_round_long_double, scale10_round_decimal_long_double,
55700         floorlog10l): New functions.
55701         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
55702         for the %f, %F, %e, %E, %g, %G directives.
55703         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
55704         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55705         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
55706         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
55707         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55708         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55709         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55710         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55711         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55712         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55713         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55714         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
55715         * modules/snprintf-posix (Depends-on): Likewise.
55716         * modules/sprintf-posix (Depends-on): Likewise.
55717         * modules/vasnprintf-posix (Depends-on): Likewise.
55718         * modules/vasprintf-posix (Depends-on): Likewise.
55719         * modules/vfprintf-posix (Depends-on): Likewise.
55720         * modules/vsnprintf-posix (Depends-on): Likewise.
55721         * modules/vsprintf-posix (Depends-on): Likewise.
55722         * modules/vasnprintf (Files): Add lib/float+.h.
55723         * doc/functions/fprintf.texi: Update.
55724         * doc/functions/printf.texi: Update.
55725         * doc/functions/snprintf.texi: Update.
55726         * doc/functions/sprintf.texi: Update.
55727         * doc/functions/vfprintf.texi: Update.
55728         * doc/functions/vprintf.texi: Update.
55729         * doc/functions/vsnprintf.texi: Update.
55730         * doc/functions/vsprintf.texi: Update.
55731
55732 2007-05-18  Bruno Haible  <bruno@clisp.org>
55733
55734         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
55735
55736 2007-05-18  Bruno Haible  <bruno@clisp.org>
55737
55738         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
55739         for printing 64-bit integers. Needed for mingw.
55740
55741 2007-05-18  Bruno Haible  <bruno@clisp.org>
55742
55743         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
55744         gl_FUNC_FREXPL_WORKS.
55745         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
55746
55747 2007-05-18  Bruno Haible  <bruno@clisp.org>
55748
55749         * modules/frexpl-nolibm-tests: New file.
55750
55751         * modules/frexpl-nolibm: New file.
55752         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
55753
55754 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
55755
55756         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
55757         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
55758         GCC 4.2, which otherwise issues a lot of warnings.
55759         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
55760         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
55761         Likewise.
55762         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
55763         * modules/iconv_open (iconv.h): Likewise.
55764         * modules/locale (locale.h): Likewise.
55765         * modules/netinet_in (netinet/in.h): Likewise.
55766         * modules/sys_select (sys_select.h): Likewise.
55767         * modules/sys_socket (sys/socket.h): Likewise.
55768         * modules/sys_stat (sys/stat.h): Likewise.
55769         * modules/sysexits (sysexits.h): Likewise.
55770         * modules/unistd (unistd.h): Likewise.
55771
55772 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55773
55774         * modules/closein-tests (Makefile.am): Distribute
55775         `test-closein.sh'.
55776
55777 2007-05-17  Bruno Haible  <bruno@clisp.org>
55778
55779         * tests/test-printf-posix.output: Renamed from
55780         tests/test-fprintf-posix.out.
55781         * modules/fprintf-posix-tests: Update.
55782         * modules/printf-posix-tests: Update.
55783         * modules/vfprintf-posix-tests: Update.
55784         * modules/vprintf-posix-tests: Update.
55785         * tests/test-fprintf-posix.sh: Update.
55786         * tests/test-printf-posix.sh: Update.
55787         * tests/test-vfprintf-posix.sh: Update.
55788         * tests/test-vprintf-posix.sh: Update.
55789         Reported by Ralf Wildenhues.
55790
55791 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
55792
55793         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
55794         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
55795         GCC 4.2, which otherwise issues a lot of warnings.
55796         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
55797         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
55798         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
55799         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
55800         it should no longer be needed.
55801         * lib/string_.h: Likewise.
55802         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
55803         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
55804         * modules/inttypes (inttypes.h): Likewise.
55805         * modules/math (math.h): Likewise.
55806         * modules/search (search.h): Likewise.
55807         * modules/signal (signal.h): Likewise.
55808         * modules/stdint (stdint.h): Likewise.
55809         * modules/stdio (stdio.h): Likewise.
55810         * modules/stdlib (stdlib.h): Likewise.
55811         * modules/string (string.h): Likewise.
55812         * modules/sys_time (sys/time.h): Likewise.
55813         * modules/time (time.h): Likewise.
55814         * modules/wchar (wchar.h): Likewise.
55815         * modules/wctype (wtype.h): Likewise.
55816
55817 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
55818
55819         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
55820
55821 2007-05-13  Bruno Haible  <bruno@clisp.org>
55822
55823         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
55824         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
55825         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
55826         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
55827         (gl_PREREQ_STRTOK_R): Don't require it here.
55828
55829 2007-05-13  Bruno Haible  <bruno@clisp.org>
55830
55831         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
55832         when used in C++ mode.
55833
55834 2007-05-12  Bruno Haible  <bruno@clisp.org>
55835
55836         * lib/linebuffer.h: Tweak doc.
55837         * lib/linebuffer.c: Likewise.
55838
55839 2007-05-12  James Youngman  <jay@gnu.org>
55840
55841         * lib/linebuffer.c (readlinebuffer_delim): New function,
55842         like readlinebuffer, but use a caller-specified delimiter.
55843         (readlinebuffer): Just call readlinebuffer_delim with '\n'
55844         as the delimiter.
55845         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
55846
55847 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
55848
55849         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
55850         * modules/openat (Files): Remove openat-die.c.
55851         (Depends-on): Add openat-die.
55852         * modules/openat-die: New module.
55853
55854 2007-05-06  Bruno Haible  <bruno@clisp.org>
55855
55856         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
55857         Update with info about Cygwin.
55858         * doc/functions/fprintf.texi: Update.
55859         * doc/functions/printf.texi: Update.
55860         * doc/functions/snprintf.texi: Update.
55861         * doc/functions/sprintf.texi: Update.
55862         * doc/functions/vfprintf.texi: Update.
55863         * doc/functions/vprintf.texi: Update.
55864         * doc/functions/vsnprintf.texi: Update.
55865         * doc/functions/vsprintf.texi: Update.
55866         Reported by Eric Blake.
55867
55868 2007-05-06  Bruno Haible  <bruno@clisp.org>
55869
55870         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
55871         padding ourselves for the floating-point directives.
55872         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
55873         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
55874         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
55875         gl_PRINTF_FLAG_ZERO and test its result. Invoke
55876         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
55877         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55878         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
55879         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55880         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55881         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55882         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55883         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55884         * tests/test-snprintf-posix.h (test_function): Also check the width
55885         and some flags in the %f directive.
55886         * tests/test-sprintf-posix.h (test_function): Likewise.
55887         * tests/test-vasnprintf-posix.c (test_function): Likewise.
55888         * tests/test-vasprintf-posix.c (test_function): Likewise.
55889         * doc/functions/fprintf.texi: Update.
55890         * doc/functions/printf.texi: Update.
55891         * doc/functions/snprintf.texi: Update.
55892         * doc/functions/sprintf.texi: Update.
55893         * doc/functions/vfprintf.texi: Update.
55894         * doc/functions/vprintf.texi: Update.
55895         * doc/functions/vsnprintf.texi: Update.
55896         * doc/functions/vsprintf.texi: Update.
55897
55898 2007-05-06  Bruno Haible  <bruno@clisp.org>
55899
55900         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
55901         pass the ' flag character to sprintf or snprintf.
55902         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
55903         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
55904         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
55905         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
55906         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
55907         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55908         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
55909         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55910         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55911         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55912         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55913         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55914         * tests/test-snprintf-posix.h (test_function): Also check the grouping
55915         flag.
55916         * tests/test-sprintf-posix.h (test_function): Likewise.
55917         * tests/test-vasnprintf-posix.c (test_function): Likewise.
55918         * tests/test-vasprintf-posix.c (test_function): Likewise.
55919         * doc/functions/fprintf.texi: Update.
55920         * doc/functions/printf.texi: Update.
55921         * doc/functions/snprintf.texi: Update.
55922         * doc/functions/sprintf.texi: Update.
55923         * doc/functions/vfprintf.texi: Update.
55924         * doc/functions/vprintf.texi: Update.
55925         * doc/functions/vsnprintf.texi: Update.
55926         * doc/functions/vsprintf.texi: Update.
55927
55928 2007-05-01  Bruno Haible  <bruno@clisp.org>
55929
55930         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
55931
55932 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
55933
55934         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
55935         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
55936
55937 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
55938
55939         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
55940         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
55941         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
55942
55943 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
55944
55945         * lib/argp-help.c (struct hol_entry): New member `ord'.
55946         (HOL_ENTRY_PTRCMP): Use ord for comparison
55947         (hol_sort): Initialize ord.
55948
55949 2007-05-01  Bruno Haible  <bruno@clisp.org>
55950
55951         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
55952         Reported by Eric Blake.
55953         * doc/gnulib.texi (Function Substitutes): Update.
55954
55955 2007-05-01  Bruno Haible  <bruno@clisp.org>
55956
55957         * doc/functions.texi: Remove file, now redundant through
55958         doc/functions/*.texi.
55959
55960 2007-05-01  Bruno Haible  <bruno@clisp.org>
55961
55962         * modules/argp (Depends-on): Add sleep.
55963
55964 2007-05-01  Bruno Haible  <bruno@clisp.org>
55965
55966         * modules/sleep-tests: New file.
55967         * tests/test-sleep.c: New file.
55968
55969         * modules/sleep: New file.
55970         * lib/sleep.c: New file.
55971         * m4/sleep.m4: New file.
55972         * lib/unistd_.h (sleep): New declaration.
55973         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
55974         HAVE_SLEEP.
55975         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
55976         * doc/functions/sleep.texi: Document the sleep module.
55977
55978 2007-05-01  Bruno Haible  <bruno@clisp.org>
55979
55980         * lib/sigprocmask.h: Remove file.
55981         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
55982         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
55983         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
55984         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
55985         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
55986         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
55987         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
55988         HAVE_SIGSET_T as a shell variable.
55989         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
55990         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
55991         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
55992         (Depends-on): Add signal. Remove verify.
55993         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
55994         (Include): Mention <signal.h> instead of sigprocmask.h.
55995         * NEWS: Mention the change.
55996         * lib/fatal-signal.c: Don't include sigprocmask.h.
55997
55998 2007-05-01  Bruno Haible  <bruno@clisp.org>
55999
56000         * modules/signal: New file.
56001         * lib/signal_.h: New file.
56002         * m4/signal_h.m4: New file.
56003
56004 2007-05-01  Bruno Haible  <bruno@clisp.org>
56005
56006         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
56007         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
56008         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
56009         HAVE_WCTYPE_CTMP_BUG into wctype.h.
56010
56011 2007-05-01  Bruno Haible  <bruno@clisp.org>
56012
56013         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
56014         configure time.
56015         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
56016         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
56017         * modules/sys_stat (Makefile.am): Substitute their values into
56018         sys/stat.h.
56019
56020 2007-05-01  Bruno Haible  <bruno@clisp.org>
56021
56022         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
56023         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
56024         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
56025
56026 2007-05-01  Bruno Haible  <bruno@clisp.org>
56027
56028         * doc/header/assert.texi: Undo last change: don't mention the gnulib
56029         'assert' module here.
56030
56031 2007-05-01  Bruno Haible  <bruno@clisp.org>
56032
56033         * doc/functions/*.texi: New files.
56034         * doc/functions/google-ranking.txt: New file.
56035         * doc/gnulib.texi (Function Substitutes): New chapter.
56036         (ctime, inet_ntoa): Remove sections.
56037         * doc/ctime.texi: Remove file.
56038         * doc/inet_ntoa.texi: Remove file.
56039         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
56040         dependencies.
56041         (%.info): New rule, specifying a --reference-limit.
56042
56043 2007-05-01  Bruno Haible  <bruno@clisp.org>
56044
56045         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
56046
56047 2007-05-01  Bruno Haible  <bruno@clisp.org>
56048
56049         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
56050         the portability of 'mkdir' to mingw systems.
56051
56052 2007-05-01  Bruno Haible  <bruno@clisp.org>
56053
56054         * doc/headers/google-ranking.txt: New file.
56055
56056 2007-04-30  Eric Blake  <ebb9@byu.net>
56057
56058         Prefer fseeko to fseek.
56059         * modules/getpass (Depends-on): Add fseeko.
56060         * lib/getpass.c (getpass): Use fseeko, not fseek.
56061
56062 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
56063
56064         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
56065         assumes the sorting is stable, while most qsort implementations
56066         are not.  Use argument addresses to ensure they never compare as
56067         equal.
56068
56069         * tests/test-argp-2.sh (usage-indent test): Fix output
56070         (func_compare): Restore diff options
56071         * tests/test-argp.c: Restore #include "progname.h"
56072
56073 2007-04-29  Bruno Haible  <bruno@clisp.org>
56074
56075         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
56076         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56077         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
56078         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56079         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
56080         (configure.ac): Define CHECK_SNPRINTF_POSIX.
56081         (TESTS, check_PROGRAMS): Add test-snprintf.
56082         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
56083         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
56084         (TESTS, check_PROGRAMS): Add test-vsnprintf.
56085         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
56086         assertions that fail on HP-UX, OSF/1, or IRIX.
56087         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
56088
56089 2007-04-29  Bruno Haible  <bruno@clisp.org>
56090
56091         * MODULES.html.sh (posix_functions): Remove 'contents'.
56092
56093 2007-04-29  Karl Berry  <karl@gnu.org>
56094
56095         * config/srclist.txt (gendocs_template_min): new entry.
56096
56097 2007-04-29  Bruno Haible  <bruno@clisp.org>
56098
56099         Work around fpurge bug on BSD systems.
56100         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
56101         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
56102         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
56103         fpurge to rpl_fpurge if the system already has this function.
56104         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
56105         the case where the system already has this function. Correct invariants
56106         on BSD systems.
56107         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
56108         BSD systems.
56109
56110 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
56111
56112         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
56113         proposed by Sven Verdoolaege.
56114
56115         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
56116         options.
56117         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
56118         (usage and help tests): Update
56119
56120 2007-04-29  Bruno Haible  <bruno@clisp.org>
56121
56122         * tests/test-fflush.c (main): Use a file of size 17, not 10.
56123         Print more information in case of failure. Disable a test on BeOS.
56124
56125 2007-04-29  Bruno Haible  <bruno@clisp.org>
56126
56127         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
56128         This helps debugging on systems on which no gdb is available.
56129
56130 2007-04-29  Bruno Haible  <bruno@clisp.org>
56131
56132         * lib/freading.h: Improve comments.
56133         * lib/fwriting.h: Likewise.
56134         * tests/test-freading.c (main): Don't check freading immediately after
56135         repositioning. Needed for glibc.
56136
56137 2007-04-29  Bruno Haible  <bruno@clisp.org>
56138
56139         * lib/freading.c (freading): Trivial simplification.
56140
56141 2007-04-28  Bruno Haible  <bruno@clisp.org>
56142
56143         * tests/test-fwriting.c (main): Also test the interaction between
56144         fflush and fwriting.
56145         * modules/fwriting-tests (Depends-on): Add fflush.
56146
56147         * tests/test-freading.c (main): Also test the interaction between
56148         fflush and freading.
56149         * modules/freading-tests (Depends-on): Add fflush.
56150
56151 2007-04-28  Bruno Haible  <bruno@clisp.org>
56152
56153         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
56154         fseeko and ftello.
56155         Suggested by Eric Blake.
56156
56157 2007-04-28  Jim Meyering  <jim@meyering.net>
56158
56159         Avoid false-negative in gl_STDINT_H's C99 conformance test.
56160         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
56161         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
56162
56163 2007-04-27  Eric Blake  <ebb9@byu.net>
56164
56165         * doc/headers/assert.texi (assert.h): Document assert module use.
56166
56167 2007-04-27  Bruno Haible  <bruno@clisp.org>
56168
56169         * doc/headers/*.texi: New files.
56170         * doc/gnulib.texi (Header File Substitutes): New chapter.
56171         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
56172         dependencies.
56173         (standards.info ,standards.html, standards.dvi): Update dependencies.
56174         (mostlyclean, clean): New targets.
56175
56176 2007-04-27  Bruno Haible  <bruno@clisp.org>
56177
56178         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
56179         * modules/sysexits (Files, Makefile.am): Update.
56180
56181         * lib/sys_socket_.h: Renamed from lib/socket_.h.
56182         * modules/sys_socket (Files, Makefile.am): Update.
56183
56184         * lib/sys_stat_.h: Renamed from lib/stat_.h.
56185         * modules/sys_stat (Files, Makefile.am): Update.
56186
56187 2007-04-27  Eric Blake  <ebb9@byu.net>
56188
56189         * lib/freading.h: Improve comments.
56190         * lib/fwriting.h: Likewise.
56191         * lib/fflush.c: Likewise.
56192
56193         Fix closein for mingw.
56194         * modules/closein-tests: Add tests for closein.
56195         * tests/test-closein.c: New file.
56196         * tests/test-closein.sh: Likewise.
56197         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
56198         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
56199
56200 2007-04-27  Bruno Haible  <bruno@clisp.org>
56201
56202         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
56203         version is < 6.
56204         * lib/math_.h [__DECC]: Likewise.
56205         * lib/stdio_.h [__DECC]: Likewise.
56206         * lib/stdlib_.h [__DECC]: Likewise.
56207         * lib/string_.h [__DECC]: Likewise.
56208         * lib/time_.h [__DECC]: Likewise.
56209         * lib/wchar_.h [__DECC]: Likewise.
56210         * lib/wctype_.h [__DECC]: Likewise.
56211
56212 2007-04-27  Bruno Haible  <bruno@clisp.org>
56213
56214         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
56215
56216 2007-04-27  Bruno Haible  <bruno@clisp.org>
56217
56218         * lib/fflush.c: Add comments.
56219         * modules/fpurge-tests (Depends-on): Add fflush.
56220         * modules/freadable-tests (Depends-on): Likewise.
56221         * modules/fwritable-tests (Depends-on): Likewise.
56222
56223 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
56224
56225         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
56226         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
56227         Report by Bruno Haible <bruno@clisp.org>.
56228
56229 2007-04-26  Eric Blake  <ebb9@byu.net>
56230
56231         Fix fflush on mingw.
56232         * modules/fflush (Depends-on): Add freading.
56233         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
56234         but unread data.
56235
56236 2007-04-26  Eric Blake  <ebb9@byu.net>
56237         and Bruno Haible  <bruno@clisp.org>
56238
56239         Implement freading and fwriting.
56240         * lib/freading.c: New file.
56241         * lib/freading.h: Likewise.
56242         * m4/freading.m4: Likewise.
56243         * modules/freading: Likewise.
56244         * modules/freading-tests: Likewise.
56245         * tests/test-freading.c: Likewise.
56246         * lib/fwriting.c: New file.
56247         * lib/fwriting.h: Likewise.
56248         * m4/fwriting.m4: Likewise.
56249         * modules/fwriting: Likewise.
56250         * modules/fwriting-tests: Likewise.
56251         * tests/test-fwriting.c: Likewise.
56252         * MODULES.html.sh (File stream based Input/Output): Mention them.
56253
56254 2007-04-26  Bruno Haible  <bruno@clisp.org>
56255
56256         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
56257         'long' when we assume it.
56258         Suggested by Eric Blake.
56259
56260 2007-04-26  Bruno Haible  <bruno@clisp.org>
56261
56262         Ensure fseeko, ftello are declared on glibc systems.
56263         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
56264         * modules/fseeko (configure.ac-early): Likewise.
56265         * modules/ftello (configure.ac-early): Likewise.
56266         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
56267         AC_FUNC_FSEEKO for this.
56268         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
56269         (gl_CHECK_FSEEKO): Remove macro.
56270
56271 2007-04-26  Bruno Haible  <bruno@clisp.org>
56272
56273         * tests/test-fflush.c (main): Also check the ftell result after
56274         fflush and fseek/fseeko.
56275         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
56276         file descriptor position cache in the stream.
56277         * lib/fseeko.c (rpl_fseeko): Likewise.
56278
56279 2007-04-26  Bruno Haible  <bruno@clisp.org>
56280
56281         * modules/fflush-tests (Depends-on): Add fseeko.
56282
56283 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
56284             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56285
56286         * lib/argz_.h: ensure error_t definition is obtained in same
56287         mechanism system argz.h would have.
56288         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
56289         argz facilities are known bad.  Err on the side of caution if
56290         cross-compiling.
56291
56292 2007-04-25  Eric Blake  <ebb9@byu.net>
56293
56294         * lib/fpurge.c (includes): Use stdlib.h for free.
56295         * tests/test-fflush.c (main): Also test fflush-fseeko.
56296
56297 2007-04-25  Bruno Haible  <bruno@clisp.org>
56298
56299         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
56300         * lib/fseeko.c: New file.
56301         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
56302         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
56303         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
56304         gl_FUNC_FSEEKO.
56305         (gl_FUNC_FSEEKO): Invoke it.
56306         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
56307         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
56308         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
56309
56310 2007-04-25  Bruno Haible  <bruno@clisp.org>
56311
56312         * modules/fflush (Depends-on): Add ftello.
56313
56314 2007-04-25  Bruno Haible  <bruno@clisp.org>
56315
56316         * modules/ftello-tests: New file.
56317         * tests/test-ftello.c: New file.
56318
56319         * modules/ftello: New file.
56320         * m4/ftello.m4: New file.
56321         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
56322         HAVE_FTELLO.
56323         * lib/stdio_.h (ftello): New declaration.
56324         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
56325         HAVE_FTELLO.
56326
56327 2007-04-25  Bruno Haible  <bruno@clisp.org>
56328
56329         * modules/fseeko-tests: New file.
56330         * tests/test-fseeko.c: New file.
56331
56332         * modules/fseeko: New file.
56333         * m4/fseeko.m4: New file.
56334         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
56335         HAVE_FSEEKO.
56336         * lib/stdio_.h (fseeko): New declaration.
56337         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
56338         HAVE_FSEEKO.
56339
56340 2007-04-25  Bruno Haible  <bruno@clisp.org>
56341
56342         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
56343
56344 2007-04-25  Bruno Haible  <bruno@clisp.org>
56345
56346         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
56347         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
56348         * tests/test-unistd.c: Likewise.
56349         * tests/test-fcntl.c: Likewise.
56350
56351 2007-04-23  Eric Blake  <ebb9@byu.net>
56352
56353         * lib/fflush.c: Fix missing include.
56354         Reported by Bruno Haible.
56355
56356 2007-04-23  Bruno Haible  <bruno@clisp.org>
56357
56358         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
56359         Reported by Eric Blake.
56360
56361 2007-04-23  Bruno Haible  <bruno@clisp.org>
56362
56363         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
56364
56365 2007-04-23  Bruno Haible  <bruno@clisp.org>
56366
56367         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
56368
56369 2007-04-23  Bruno Haible  <bruno@clisp.org>
56370
56371         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
56372         Needed on HP-UX 11.
56373
56374 2007-04-16  Eric Blake  <ebb9@byu.net>
56375
56376         Make fflush rely on fpurge.
56377         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
56378         open coding all variants.
56379         * modules/fflush (Depends-on): Add fpurge and unistd.
56380         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
56381         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
56382
56383         Fix --with-tests compilation on cygwin.
56384         * modules/argmatch-tests (Makefile.am): List gnulib library first
56385         in LDADD.
56386         * modules/argp-tests (Makefile.am): Likewise.
56387         * modules/array-list-tests (Makefile.am): Likewise.
56388         * modules/array-oset-tests (Makefile.am): Likewise.
56389         * modules/avltree-list-tests (Makefile.am): Likewise.
56390         * modules/avltree-oset-tests (Makefile.am): Likewise.
56391         * modules/avltreehash-list-tests (Makefile.am): Likewise.
56392         * modules/carray-list-tests (Makefile.am): Likewise.
56393         * modules/dirname-tests (Makefile.am): Likewise.
56394         * modules/frexp-tests (Makefile.am): Likewise.
56395         * modules/isnanl-tests (Makefile.am): Likewise.
56396         * modules/linked-list-tests (Makefile.am): Likewise.
56397         * modules/linkedhash-list-tests (Makefile.am): Likewise.
56398         * modules/lock-tests (Makefile.am): Likewise.
56399         * modules/rbtree-list-tests (Makefile.am): Likewise.
56400         * modules/rbtree-oset-tests (Makefile.am): Likewise.
56401         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
56402         * modules/tls-tests (Makefile.am): Likewise.
56403         * modules/tsearch-tests (Makefile.am): Likewise.
56404         * modules/xvasprintf-tests (Makefile.am): Likewise.
56405
56406         Fix fpurge for cygwin.
56407         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
56408         value.
56409         * modules/fpurge-tests (Depends-on): Clean up trash.
56410
56411 2007-04-16  Simon Josefsson  <simon@josefsson.org>
56412
56413         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
56414
56415         * m4/autobuild.m4: Re-indent.
56416
56417 2007-04-13  Bruno Haible  <bruno@clisp.org>
56418
56419         * modules/fpurge-tests: New file.
56420         * tests/test-fpurge.c: New file.
56421
56422         * modules/fpurge: New file.
56423         * lib/fpurge.h: New file.
56424         * lib/fpurge.c: New file.
56425         * m4/fpurge.m4: New file.
56426
56427 2007-04-13  Bruno Haible  <bruno@clisp.org>
56428
56429         * modules/fbufmode-tests: New file.
56430         * tests/test-fbufmode.c: New file.
56431
56432         * modules/fbufmode: New file.
56433         * lib/fbufmode.h: New file.
56434         * lib/fbufmode.c: New file.
56435         * m4/fbufmode.m4: New file.
56436
56437 2007-04-13  Bruno Haible  <bruno@clisp.org>
56438
56439         * modules/fwritable-tests: New file.
56440         * tests/test-fwritable.c: New file.
56441
56442         * modules/fwritable: New file.
56443         * lib/fwritable.h: New file.
56444         * lib/fwritable.c: New file.
56445         * m4/fwritable.m4: New file.
56446
56447 2007-04-13  Bruno Haible  <bruno@clisp.org>
56448
56449         * modules/freadable-tests: New file.
56450         * tests/test-freadable.c: New file.
56451
56452         * modules/freadable: New file.
56453         * lib/freadable.h: New file.
56454         * lib/freadable.c: New file.
56455         * m4/freadable.m4: New file.
56456
56457 2007-04-13  Bruno Haible  <bruno@clisp.org>
56458
56459         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
56460         MOSTLYCLEANFILES.
56461
56462 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
56463
56464         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
56465         gzip bootstrap.conf to avoid dragging in i18n machinery.
56466         (gnulib_tool_option): Use it.
56467
56468 2007-04-13  Bruno Haible  <bruno@clisp.org>
56469
56470         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
56471         %F directives.
56472         * tests/test-vasprintf-posix.c (test_function): Likewise.
56473         * tests/test-snprintf-posix.h (test_function): Likewise.
56474         * tests/test-sprintf-posix.h (test_function): Likewise.
56475         * tests/test-fprintf-posix.h (test_function): Likewise.
56476         * tests/test-printf-posix.h (test_function): Likewise.
56477         * tests/test-fprintf-posix.out: Likewise.
56478
56479 2007-04-13  Bruno Haible  <bruno@clisp.org>
56480
56481         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
56482         * modules/tls-tests (configure.ac): Likewise.
56483         Reported by Arto C. Nirkko <anirkko@insel.ch>.
56484
56485 2007-04-13  Bruno Haible  <bruno@clisp.org>
56486
56487         * lib/tls.c (glthread_tls_get): Fix return type.
56488         Patch by Arto C. Nirkko <anirkko@insel.ch>.
56489
56490 2007-04-12  Eric Blake  <ebb9@byu.net>
56491
56492         * modules/gettime (Depends-on): Remove gettime.
56493         Reported by Dmitry V. Levin.
56494
56495 2007-04-12  Bruno Haible  <bruno@clisp.org>
56496
56497         * modules/fflush (Include): Mention <stdio.h>.
56498         * modules/strtoimax (Include): Mention <inttypes.h>.
56499         * modules/strtoumax (Include): Likewise.
56500
56501 2007-04-12  Eric Blake  <ebb9@byu.net>
56502
56503         * .cvsignore: New file.
56504         * .gitignore: Likewise.
56505
56506 2007-04-12  Bruno Haible  <bruno@clisp.org>
56507
56508         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
56509         not before, since $(LDADD) often contains libgnu.a.
56510         * modules/striconv-tests (test_striconv_LDADD): Likewise.
56511         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
56512         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
56513         Needed on Cygwin.
56514
56515 2007-04-12  Eric Blake  <ebb9@byu.net>
56516
56517         Work around glibc's failure to flush stdin on fclose.
56518         * lib/closein.c (close_stdin): Flush stdin before closing.
56519
56520         Work around glibc's failure to reset seekable stdin on exit.
56521         * modules/closein: New module.
56522         * lib/closein.c: New file.
56523         * lib/closein.h: Likewise.
56524         * m4/closein.m4: Likewise.
56525         * MODULES.html.sh (File stream based Input/Output): Document it.
56526
56527 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56528
56529         * gnulib-tool: Rename generated 'autobuild' script to
56530         'do-autobuild' in --create-megatestdir output.
56531
56532         * doc/gnulib.texi (Build robot for gnulib): Fix.
56533
56534 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56535
56536         * modules/sysexits (Depends-on): Add absolute-header.
56537
56538 2007-04-12  Eric Blake  <ebb9@byu.net>
56539
56540         No need to preserve errno on success.
56541         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
56542         Reported by Bruno Haible.
56543
56544 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56545
56546         * MODULES.html.sh (Support for maintaining and releasing
56547         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
56548
56549 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56550
56551         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
56552
56553 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56554
56555         * modules/autobuild: New module.
56556
56557         * m4/autobuild.m4: New file.
56558
56559 2007-04-11  Bruno Haible  <bruno@clisp.org>
56560
56561         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
56562         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
56563         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
56564         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
56565         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56566         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56567         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56568         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56569         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56570         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56571         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
56572         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56573         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56574         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
56575         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56576         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56577         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
56578         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56579         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56580         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
56581         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56582         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56583         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
56584         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56585         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56586         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
56587         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56588         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56589         Reported by Eric Blake.
56590
56591 2007-04-11  Bruno Haible  <bruno@clisp.org>
56592
56593         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
56594
56595 2007-04-10  Bruno Haible  <bruno@clisp.org>
56596
56597         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
56598         for NaN and Infinity. Needed on FreeBSD 6.1.
56599         * tests/test-vasnprintf-posix.c (test_function): Undo last change
56600         regarding results for "%010a" of Infinity and NaN.
56601         * tests/test-vasprintf-posix.c (test_function): Likewise.
56602         * tests/test-snprintf-posix.h (test_function): Likewise.
56603         * tests/test-sprintf-posix.h (test_function): Likewise.
56604         * tests/test-fprintf-posix.h (test_function): Likewise.
56605         * tests/test-printf-posix.h (test_function): Likewise.
56606         * tests/test-fprintf-posix.out: Likewise.
56607
56608 2007-04-10  Bruno Haible  <bruno@clisp.org>
56609
56610         * modules/locale-tests: New file.
56611         * tests/test-locale.c: New file.
56612
56613         * modules/locale: New file.
56614         * lib/locale_.h: New file.
56615         * m4/locale_h.m4: New file.
56616
56617 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
56618             Bruno Haible  <bruno@clisp.org>
56619
56620         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
56621         be determined, test for availability of the copysignf, copysign,
56622         copysignl functions.
56623         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
56624         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
56625         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
56626
56627 2007-04-09  Eric Blake  <ebb9@byu.net>
56628
56629         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
56630         * modules/stdio (Makefile.am): Support fflush.
56631         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
56632         * modules/fflush: New file.
56633         * lib/fflush.c: Likewise.
56634         * m4/fflush.m4: Likewise.
56635         * modules/fflush-tests: New test.
56636         * tests/test-fflush.c: Likewise.
56637         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
56638
56639 2007-04-06  Bruno Haible  <bruno@clisp.org>
56640
56641         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
56642         (VASNPRINTF): Use signbit for faster determination whether to print a
56643         minus sign.
56644         * modules/vasnprintf (Files): Remove lib/float+.h.
56645         * modules/fprintf-posix (Depends-on): Add signbit.
56646         * modules/snprintf-posix (Depends-on): Likewise.
56647         * modules/sprintf-posix (Depends-on): Likewise.
56648         * modules/vasnprintf-posix (Depends-on): Likewise.
56649         * modules/vasprintf-posix (Depends-on): Likewise.
56650         * modules/vfprintf-posix (Depends-on): Likewise.
56651         * modules/vsnprintf-posix (Depends-on): Likewise.
56652         * modules/vsprintf-posix (Depends-on): Likewise.
56653
56654 2007-04-06  Bruno Haible  <bruno@clisp.org>
56655
56656         * tests/test-frexp.c (main): Test also the sign bit of zero results.
56657         * tests/test-frexpl.c (main): Likewise.
56658         * tests/test-ldexpl.c (main): Likewise.
56659         * modules/frexp-tests (Depends-on): Add signbit.
56660         * modules/frexpl-tests (Depdends-on): Likewise.
56661         * modules/ldexpl-tests (Depdends-on): Likewise.
56662
56663 2007-04-06  Bruno Haible  <bruno@clisp.org>
56664
56665         * modules/signbit-tests: New file.
56666         * tests/test-signbit.c: New file.
56667
56668         * modules/signbit: New file.
56669         * lib/signbitf.c: New file.
56670         * lib/signbitd.c: New file.
56671         * lib/signbitl.c: New file.
56672         * m4/signbit.m4: New file.
56673         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
56674         (signbit): New macro.
56675         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
56676         REPLACE_SIGNBIT.
56677         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
56678         REPLACE_FREXPL into math.h.
56679
56680 2007-04-06  Bruno Haible  <bruno@clisp.org>
56681
56682         * modules/isnanf-nolibm-tests: New file.
56683         * tests/test-isnanf.c: New file.
56684
56685         * modules/isnanf-nolibm: New file.
56686         * lib/isnanf.h: New file.
56687         * lib/isnanf.c: New file.
56688         * lib/isnan.c: Consider the USE_FLOAT macro.
56689         * m4/isnanf.m4: New file.
56690
56691 2007-04-06  Bruno Haible  <bruno@clisp.org>
56692
56693         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
56694         (Link): New section.
56695
56696         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
56697
56698 2007-04-06  Bruno Haible  <bruno@clisp.org>
56699
56700         Assume the 'long double' type.
56701         * m4/longdouble.m4: Remove file.
56702         * config/srclist.txt: Don't mention longdouble.m4.
56703         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
56704         * lib/float+.h: Likewise.
56705         * lib/frexp.c: Likewise.
56706         * lib/printf-args.h: Likewise.
56707         * lib/printf-args.c: Likewise.
56708         * lib/printf-frexp.c: Likewise.
56709         * lib/printf-parse.c: Likewise.
56710         * lib/vasnprintf.c: Likewise.
56711         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
56712         * m4/intl.m4: Likewise.
56713         * m4/isnanl.m4: Likewise.
56714         * m4/printf.m4: Likewise.
56715         * m4/printf-frexpl.m4: Likewise.
56716         * m4/vasnprintf.m4: Likewise.
56717         * modules/allocsa (Files): Remove m4/longdouble.m4.
56718         * modules/gettext (Files): Likewise.
56719         * modules/relocatable-prog-wrapper (Files): Likewise.
56720         * modules/vasnprintf (Files): Likewise.
56721         * modules/isnanl (Files): Likewise.
56722         (Include): Simplify.
56723         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
56724         (Include): Simplify.
56725         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
56726         (Include): Simplify.
56727         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
56728         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56729         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
56730         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56731         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
56732         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56733         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
56734         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56735         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
56736         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56737         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
56738         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56739         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
56740         * tests/test-isnanl.c: Likewise.
56741         * tests/test-snprintf-posix.h: Likewise.
56742         * tests/test-sprintf-posix.h: Likewise.
56743         * tests/test-vasnprintf-posix.c: Likewise.
56744         * tests/test-vasnprintf-posix2.c: Likewise.
56745         * tests/test-vasprintf-posix.c: Likewise.
56746
56747 2007-04-06  Bruno Haible  <bruno@clisp.org>
56748
56749         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
56750         * lib/math_.h [__DECC]: Include the overridden include file through
56751         #include_next, outside the double-inclusion guard.
56752         * lib/stdio_.h [__DECC]: Likewise.
56753         * lib/stdlib_.h [__DECC]: Likewise.
56754         * lib/string_.h [__DECC]: Likewise.
56755         * lib/time_.h [__DECC]: Likewise.
56756         * lib/wchar_.h [__DECC]: Likewise.
56757         * lib/wctype_.h [__DECC]: Likewise.
56758         * lib/inttypes_.h [__DECC]: Likewise.
56759         Reported by Albert Chin <china@thewrittenword.com> in
56760         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
56761
56762 2007-04-04  Eric Blake  <ebb9@byu.net>
56763
56764         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
56765         1.5.x.
56766
56767 2007-04-04  Bruno Haible  <bruno@clisp.org>
56768
56769         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
56770         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
56771
56772 2007-04-04  Bruno Haible  <bruno@clisp.org>
56773
56774         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
56775         results for "%010a" of Infinity and NaN.
56776         * tests/test-vasprintf-posix.c (test_function): Likewise.
56777         * tests/test-snprintf-posix.h (test_function): Likewise.
56778         * tests/test-sprintf-posix.h (test_function): Likewise.
56779         * tests/test-fprintf-posix.h (test_function): Remove these tests.
56780         * tests/test-printf-posix.h (test_function): Likewise.
56781         * tests/test-fprintf-posix.out: Update.
56782         Needed for FreeBSD 6.1.
56783
56784 2007-04-04  Bruno Haible  <bruno@clisp.org>
56785
56786         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
56787         directly used by the gnulib modules nor by gnulib-tool.
56788
56789 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
56790
56791         * DEPENDENCIES: Give overall description of version dependency
56792         desirability.  Use more-typical names for apps.
56793         Add shell, coreutils, diffutils, grep, tar, gzip.
56794
56795 2007-04-04  Simon Josefsson  <simon@josefsson.org>
56796
56797         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
56798
56799 2007-04-04  Karl Berry  <karl@gnu.org>
56800
56801         * MODULES.html.sh (func_module): missing '.
56802
56803 2007-04-03  Bruno Haible  <bruno@clisp.org>
56804
56805         * modules/argmatch-tests (Makefile.am): New variable
56806         test_argmatch_LDADD.
56807         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
56808         * modules/array-list-tests (Makefile.am): New variable
56809         test_array_list_LDADD.
56810         * modules/array-oset-tests (Makefile.am): New variable
56811         test_array_oset_LDADD.
56812         * modules/avltree-list-tests (Makefile.am): New variable
56813         test_avltree_list_LDADD.
56814         * modules/avltree-oset-tests (Makefile.am): New variable
56815         test_avltree_oset_LDADD.
56816         * modules/avltreehash-list-tests (Makefile.am): New variable
56817         test_avltreehash_list_LDADD.
56818         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
56819         test_canonicalize_lgpl_LDADD.
56820         * modules/carray-list-tests (Makefile.am): New variable
56821         test_carray_list_LDADD.
56822         * modules/dirname-tests (Makefile.am): New variable
56823         test_dirname_LDADD.
56824         * modules/linked-list-tests (Makefile.am): New variable
56825         test_linked_list_LDADD.
56826         * modules/linkedhash-list-tests (Makefile.am): New variable
56827         test_linkedhash_list_LDADD.
56828         * modules/rbtree-list-tests (Makefile.am): New variable
56829         test_rbtree_list_LDADD.
56830         * modules/rbtree-oset-tests (Makefile.am): New variable
56831         test_rbtree_oset_LDADD.
56832         * modules/rbtreehash-list-tests (Makefile.am): New variable
56833         test_rbtreehash_list_LDADD.
56834         * modules/xvasprintf-tests (Makefile.am): New variable
56835         test_xvasprintf_LDADD.
56836         Reported by Eric Blake.
56837
56838 2007-04-03  Eric Blake  <ebb9@byu.net>
56839
56840         * DEPENDENCIES: Weaken m4 requirements.
56841
56842 2007-04-03  Bruno Haible  <bruno@clisp.org>
56843
56844         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
56845         * modules/isnanl-tests (configure.ac): Likewise.
56846
56847 2007-04-03  Ben Pfaff  <blp@gnu.org>
56848
56849         * modules/iconv_open: Add $(srcdir)/ to source directory
56850         references in Makefile fragments that call gperf, to fix VPATH
56851         builds.
56852
56853 2007-04-03  Bruno Haible  <bruno@clisp.org>
56854
56855         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
56856         * lib/ldexpl.c: Undo last change.
56857
56858 2007-04-03  Bruno Haible  <bruno@clisp.org>
56859
56860         * modules/printf-frexpl (Depends-on): Undo last change.
56861         (Files): Add m4/ldexpl.m4.
56862
56863 2007-04-03  Bruno Haible  <bruno@clisp.org>
56864
56865         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
56866         * modules/isnanl (Link): New section.
56867
56868         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
56869         * modules/frexp (Link): New section.
56870
56871         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
56872         * modules/frexpl (Link): New section.
56873
56874         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
56875         * modules/ldexpl (Link): New section.
56876
56877 2007-04-03  Bruno Haible  <bruno@clisp.org>
56878
56879         * modules/TEMPLATE-EXTENDED: New file.
56880         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
56881
56882 2007-04-03  Bruno Haible  <bruno@clisp.org>
56883
56884         * DEPENDENCIES: New file.
56885         Suggested by Simon Josefsson.
56886
56887 2007-04-03  Bruno Haible  <bruno@clisp.org>
56888
56889         * doc/gnulib.texi: Escape @.
56890
56891 2007-04-03  James Youngman  <jay@gnu.org>
56892         and Paul Eggert  <eggert@cs.ucla.edu>
56893
56894         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
56895         birthtime on all systems that have birthtime, not just those which
56896         use st_birthtimensec rather than st_birthtim.  Putting zero in
56897         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
56898         that the birth time is not available for files on an NFS mount.
56899
56900 2007-04-03  Simon Josefsson  <simon@josefsson.org>
56901
56902         * modules/memxor: Move back from crypto/, suggested by Bruno.
56903         * modules/crypto/hmac-sha1: Fix memxor dependency.
56904
56905         * modules/crypto/gc: Moved from ../.
56906
56907 2007-04-02  Eric Blake  <ebb9@byu.net>
56908
56909         * lib/ldexpl.c (includes): Avoid libm.
56910
56911         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
56912
56913 2007-04-02  Bruno Haible  <bruno@clisp.org>
56914
56915         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
56916         on IRIX.
56917
56918 2007-04-02  Bruno Haible  <bruno@clisp.org>
56919
56920         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
56921         x86 or x86_64 platforms running MacOS X.
56922         Reported by Ryan Schmidt <@ryandesign.com>.
56923
56924 2007-04-02  Bruno Haible  <bruno@clisp.org>
56925
56926         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
56927         i386.
56928
56929 2007-04-01  Simon Josefsson  <simon@josefsson.org>
56930
56931         * modules/crypto/arcfour: Moved from ../.
56932         * modules/crypto/arcfour-tests: Moved from ../.
56933         * modules/crypto/arctwo: Moved from ../.
56934         * modules/crypto/arctwo-tests: Moved from ../.
56935         * modules/crypto/des: Moved from ../.
56936         * modules/crypto/des-tests: Moved from ../.
56937         * modules/crypto/gc-arcfour: Moved from ../.
56938         * modules/crypto/gc-arcfour-tests: Moved from ../.
56939         * modules/crypto/gc-arctwo: Moved from ../.
56940         * modules/crypto/gc-arctwo-tests: Moved from ../.
56941         * modules/crypto/gc-des: Moved from ../.
56942         * modules/crypto/gc-des-tests: Moved from ../.
56943         * modules/crypto/gc-hmac-md5: Moved from ../.
56944         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
56945         * modules/crypto/gc-hmac-sha1: Moved from ../.
56946         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
56947         * modules/crypto/gc-md2: Moved from ../.
56948         * modules/crypto/gc-md2-tests: Moved from ../.
56949         * modules/crypto/gc-md4: Moved from ../.
56950         * modules/crypto/gc-md4-tests: Moved from ../.
56951         * modules/crypto/gc-md5: Moved from ../.
56952         * modules/crypto/gc-md5-tests: Moved from ../.
56953         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
56954         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
56955         * modules/crypto/gc-random: Moved from ../.
56956         * modules/crypto/gc-rijndael: Moved from ../.
56957         * modules/crypto/gc-rijndael-tests: Moved from ../.
56958         * modules/crypto/gc-sha1: Moved from ../.
56959         * modules/crypto/gc-sha1-tests: Moved from ../.
56960         * modules/crypto/gc-tests: Moved from ../.
56961         * modules/crypto/hmac-md5: Moved from ../.
56962         * modules/crypto/hmac-md5-tests: Moved from ../.
56963         * modules/crypto/hmac-sha1: Moved from ../.
56964         * modules/crypto/hmac-sha1-tests: Moved from ../.
56965         * modules/crypto/md2: Moved from ../.
56966         * modules/crypto/md2-tests: Moved from ../.
56967         * modules/crypto/md4: Moved from ../.
56968         * modules/crypto/md4-tests: Moved from ../.
56969         * modules/crypto/md5: Moved from ../.
56970         * modules/crypto/md5-tests: Moved from ../.
56971         * modules/crypto/memxor: Moved from ../.
56972         * modules/crypto/rijndael: Moved from ../.
56973         * modules/crypto/rijndael-tests: Moved from ../.
56974         * modules/crypto/sha1: Moved from ../.
56975
56976 2007-03-30  James Youngman  <jay@gnu.org>
56977
56978         * tests/test-stat-time.c (prepare_test): use chmod() rather than
56979         rename() to change the ctime of a file (because ctime is unaffected
56980         by rename on jfs2 on AIX 5.1).
56981         (main): Start by doing cleanup, in case a previous run failed leaving
56982         test files behind.
56983
56984 2007-03-31  Bruno Haible  <bruno@clisp.org>
56985
56986         Support old proprietary implementations of iconv.
56987         * modules/iconv_open: New file.
56988         * lib/iconv_.h: New file.
56989         * m4/iconv_h.m4: New file.
56990         * lib/iconv_open.c: New file.
56991         * lib/iconv_open-aix.gperf: New file.
56992         * lib/iconv_open-hpux.gperf: New file.
56993         * lib/iconv_open-irix.gperf: New file.
56994         * lib/iconv_open-osf.gperf: New file.
56995         * m4/iconv_open.m4: New file.
56996         * modules/linebreak (Depends-on): Add iconv_open.
56997         * modules/striconv (Depends-on): Likewise.
56998         * modules/striconveh (Depends-on): Likewise.
56999         * modules/unicodeio (Depends-on): Likewise.
57000         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
57001         (iconv_t)(-1).
57002         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
57003         conversion if cd is (iconv_t)(-1).
57004         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
57005         is not possible.
57006
57007 2007-03-31  Bruno Haible  <bruno@clisp.org>
57008
57009         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
57010         work on Solaris either. Protect also second use of "autodetect_jp".
57011
57012 2007-03-31  Bruno Haible  <bruno@clisp.org>
57013
57014         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
57015         the function is not present.
57016
57017 2007-03-31  Bruno Haible  <bruno@clisp.org>
57018
57019         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
57020         the function is not present.
57021
57022 2007-03-31  Bruno Haible  <bruno@clisp.org>
57023
57024         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
57025         a bug in HP-UX iconv_open().
57026
57027 2007-03-31  Bruno Haible  <bruno@clisp.org>
57028
57029         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
57030         (Mathematics <math.h>): New section, add fpieee.
57031         (Input/output <stdio.h>): Add fseterr.
57032         (Mathematics <math.h>): New section, add printf-frexp.
57033         (Container data structures): Add sublist.
57034         (Core language properties): Add fpucw, inline.
57035         (Functions for greatest-width integer types <inttypes.h>): Add
57036         imaxabs, imaxdiv, inttypes.
57037         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
57038         isnanl-nolibm, ldexp.
57039         (Mathematics <math.h>): New section, add printf-frexpl.
57040         (Support for systems lacking POSIX:2001): Add fprintf-posix,
57041         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
57042         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
57043         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
57044         (Unicode string functions): Add unistr/u*-mbtoucr.
57045         (Java): Add javacomp-script, javaexec-script.
57046         (C#): Add csharpcomp-script, csharpexec-script.
57047         (Support for building libraries and executables): Add havelib,
57048         relocatable-*.
57049         (Support for maintaining and releasing projects): Renamed from
57050         'Support for maintaining and release projects'. Add announce-gen.
57051
57052 2007-03-31  Bruno Haible  <bruno@clisp.org>
57053
57054         * README: Talk primarily about git.
57055         (git and CVS): Renamed from CVS.
57056         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
57057         gnulib is available through git.
57058         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
57059
57060 2007-03-30  Bruno Haible  <bruno@clisp.org>
57061
57062         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
57063         * lib/poll_.h: Likewise.
57064         * lib/stat_.h: Likewise.
57065         * lib/sys_time_.h: Likewise.
57066         * lib/sysexit_.h: Likewise.
57067         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
57068         * lib/stdbool_.h: Likewise.
57069         * lib/byteswap_.h: Add double-inclusion guard.
57070
57071 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
57072
57073         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
57074
57075 2007-03-30  Karl Berry  <karl@gnu.org>
57076
57077         * config/srclist-update: double space after USA in the license
57078         substitution, since that's how it's usually (?) written.
57079
57080 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
57081
57082         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
57083         reported by Bruno Haible.
57084
57085 2007-03-29  Bruno Haible  <bruno@clisp.org>
57086
57087         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
57088         a bug in AIX iconv().
57089
57090 2007-03-29  Bruno Haible  <bruno@clisp.org>
57091
57092         * modules/ldexpl-tests: New file.
57093         * tests/test-ldexpl.c: New file.
57094
57095 2007-03-29  Bruno Haible  <bruno@clisp.org>
57096
57097         * lib/ldexpl.c: Include fpucw.h.
57098         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
57099         multiplication.
57100         * modules/ldexpl (Depends-on): Add fpucw.
57101
57102 2007-03-29  Bruno Haible  <bruno@clisp.org>
57103
57104         * modules/ldexpl: New file.
57105         * m4/ldexpl.m4: New file.
57106         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
57107         set.
57108         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
57109         REPLACE_LDEXPL.
57110         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
57111         REPLACE_LDEXPL.
57112         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
57113         gl_FUNC_LDEXPL_WORKS.
57114         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
57115         * modules/mathl (Files): Remove lib/ldexpl.c.
57116         (Depends-on): Add ldexpl.
57117
57118 2007-03-29  Bruno Haible  <bruno@clisp.org>
57119
57120         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
57121
57122 2007-03-29  Bruno Haible  <bruno@clisp.org>
57123
57124         * tests/test-striconveh.c (main): Don't assume that a direct conversion
57125         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
57126         and possibly also HP-UX.
57127         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
57128         work on AIX, IRIX, HP-UX, OSF/1.
57129         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
57130         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
57131         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
57132         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
57133         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
57134         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
57135
57136 2007-03-29  Bruno Haible  <bruno@clisp.org>
57137
57138         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
57139
57140 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
57141
57142         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
57143         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
57144
57145 2007-03-29  Eric Blake  <ebb9@byu.net>
57146
57147         * lib/acl-internal.h: Remove redundant include.
57148         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
57149         Cygwin when a file is locked.
57150
57151 2007-03-29  Bruno Haible  <bruno@clisp.org>
57152
57153         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
57154         file.
57155         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
57156
57157 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
57158
57159         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
57160         try to remove a parent directory if the child couldn't be removed
57161         (except for the first rmdir, which could fail because the child
57162         doesn't exist).  Problem reported by Jeff Blaine in
57163         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
57164
57165 2007-03-28  Bruno Haible  <bruno@clisp.org>
57166
57167         * lib/striconveh.c (utf8conv_carefully): New function.
57168         (mem_cd_iconveh_internal): Invoke it.
57169
57170 2007-03-28  Bruno Haible  <bruno@clisp.org>
57171
57172         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
57173         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
57174         input.
57175         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
57176         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
57177         unistr/u8-uctomb.
57178
57179 2007-03-28  Bruno Haible  <bruno@clisp.org>
57180
57181         * modules/unistr/u8-mbtoucr: New file.
57182         * lib/unistr/u8-mbtoucr.c: New file.
57183         * modules/unistr/u16-mbtoucr: New file.
57184         * lib/unistr/u16-mbtoucr.c: New file.
57185         * modules/unistr/u16-mbtoucr: New file.
57186         * lib/unistr/u16-mbtoucr.c: New file.
57187         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
57188
57189 2007-03-27  Simon Josefsson  <simon@josefsson.org>
57190             Bruno Haible  <bruno@clisp.org>
57191
57192         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
57193         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
57194         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
57195
57196         * m4/stdio_h.m4: Add stubs for vasprintf too.
57197
57198         * modules/stdio: Support vasprintf in sed command.
57199
57200         * modules/vasprintf: Depend on stdio for prototypes.  Remove
57201         vasprintf.h.  Add stdio module indicator.
57202
57203         * lib/stdio_.h: Declare asprintf and vasprintf, based on
57204         vasprintf.h.
57205
57206         * lib/vasprintf.h: File removed.
57207
57208         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
57209         * lib/vasprintf.c: Ditto.
57210         * lib/xvasprintf.c: Ditto.
57211         * tests/test-vasprintf-posix.c: Ditto.
57212         * tests/test-vasprintf.c: Ditto.
57213
57214 2007-03-27  Bruno Haible  <bruno@clisp.org>
57215
57216         Make vasnprintf multithread-safe.
57217         * lib/vasnprintf.c (decimal_point_char): New function.
57218         (VASNPRINTF): Use it.
57219         Suggested by Simon Josefsson.
57220
57221 2007-03-27  Eric Blake  <ebb9@byu.net>
57222
57223         Support sub-second birthtime on cygwin.
57224         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
57225         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
57226         (get_stat_birthtime): Also work with st_birthtim.
57227
57228 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
57229
57230         * lib/stat-time.h (USE_BIRTHTIME): Remove.
57231         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
57232         (get_stat_birthtime_ns): Do not try to use "spare" fields.
57233         (get_stat_birthtime_ns): Simplify compile-time tests.
57234         (get_stat_birthtime): Change the API to look like
57235         get_stat_mtime etc., except return a negative tv_nsec on error.
57236         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
57237         Don't check for "spare" fields.
57238         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
57239         or for struct stat.st_birthtime, as these tests aren't used.
57240         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
57241
57242 2007-03-27  Bruno Haible  <bruno@clisp.org>
57243
57244         * lib/stat-time.h: Include <sys/stat.h>.
57245
57246 2007-03-27  James Youngman  <jay@gnu.org>
57247
57248         * lib/stat-time.h (get_stat_birthtime): New function for
57249           retrieving st_birthtime as provided by UFS2 (hence *BSD).
57250         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
57251           and its variants.
57252         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
57253         * modules/stat-time-test: New file.
57254         * tests/test-stat-time.c: New test, devised by Bruno Haible.
57255
57256 2007-03-26  Bruno Haible  <bruno@clisp.org>
57257
57258         Better support of signalling NaNs.
57259         * lib/atanl.c: Include isnanl.h.
57260         (atanl): Perform test for NaN at the beginning of the function and
57261         through a call to isnanl.
57262         * lib/cosl.c: Include isnanl.h.
57263         (cosl): Perform test for NaN at the beginning of the function and
57264         through a call to isnanl.
57265         * lib/ldexpl.c: Include isnanl.h.
57266         (ldexpl): Perform test for NaN through a call to isnanl.
57267         * lib/logl.c: Include isnanl.h.
57268         (logl): Perform test for NaN at the beginning of the function and
57269         through a call to isnanl.
57270         * lib/sinl.c: Include isnanl.h.
57271         (sinl): Perform test for NaN at the beginning of the function and
57272         through a call to isnanl.
57273         * lib/sqrtl.c: Include isnanl.h.
57274         (sqrtl): Perform test for NaN at the beginning of the function and
57275         through a call to isnanl.
57276         * lib/tanl.c: Include isnanl.h.
57277         (tanl): Perform test for NaN at the beginning of the function and
57278         through a call to isnanl.
57279         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
57280         * modules/mathl (Depends-on): Add isnanl.
57281
57282 2007-03-26  Eric Blake  <ebb9@byu.net>
57283
57284         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
57285         regression in logic sense of previous patch.
57286
57287 2007-03-26  Bruno Haible  <bruno@clisp.org>
57288
57289         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
57290         unportable shell command "if ! ...".
57291         Reported by Ralf Wildenhues.
57292
57293 2007-03-25  Bruno Haible  <bruno@clisp.org>
57294
57295         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
57296         <sysexits.h> file, and only add EX_CONFIG.
57297         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
57298         absolute file name and whether it is sufficient. Substitute also
57299         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
57300         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
57301         ABSOLUTE_SYSEXITS_H into sysexits.h.
57302
57303 2007-03-25  Bruno Haible  <bruno@clisp.org>
57304
57305         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
57306         hints is NULL.
57307
57308 2007-03-25  Bruno Haible  <bruno@clisp.org>
57309
57310         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
57311         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
57312
57313 2007-03-25  Bruno Haible  <bruno@clisp.org>
57314
57315         * lib/vasnprintf.c: Include langinfo.h.
57316         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
57317         multithread-safe.
57318         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
57319         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
57320         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
57321         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57322         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57323         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57324         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57325         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
57326         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57327         Reported by Simon Josefsson.
57328
57329 2007-03-25  Bruno Haible  <bruno@clisp.org>
57330
57331         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
57332         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
57333         * modules/vasnprintf (Depends-on): Add stdint.
57334
57335 2007-03-25  Bruno Haible  <bruno@clisp.org>
57336
57337         * modules/fpieee: New file.
57338         * m4/fpieee.m4: New file.
57339         * modules/isnan-nolibm (Depends-on): Add fpieee.
57340         * modules/isnanl-nolibm (Depends-on): Add fpieee.
57341         * modules/isnanl (Depends-on): Add fpieee.
57342
57343 2007-03-25  Bruno Haible  <bruno@clisp.org>
57344
57345         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
57346
57347 2007-03-25  Bruno Haible  <bruno@clisp.org>
57348
57349         Avoid test failures on IRIX 6.5.
57350         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
57351         (main): Use it.
57352         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
57353         macros.
57354         (main): Use them.
57355
57356 2007-03-25  Bruno Haible  <bruno@clisp.org>
57357
57358         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
57359         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
57360         exists but doesn't work.
57361         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
57362         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
57363         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
57364         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
57365         math.h.
57366
57367 2007-03-25  Bruno Haible  <bruno@clisp.org>
57368
57369         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
57370         returns inf. Needed on IRIX 6.5.
57371
57372 2007-03-25  Bruno Haible  <bruno@clisp.org>
57373
57374         * tests/test-frexpl.c: Include isnanl-nolibm.h.
57375         (main): Use isnanl instead of x != x idiom.
57376         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
57377
57378         * tests/test-frexp.c: Include isnan.h.
57379         (main): Use isnan instead of x != x idiom.
57380         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
57381
57382 2007-03-25  Bruno Haible  <bruno@clisp.org>
57383
57384         * tests/test-frexp.c (NaN): New function/macro.
57385         (main): Use it instead of 0.0 / 0.0.
57386         * tests/test-isnan.c (NaN): New function/macro.
57387         (main): Use it instead of 0.0 / 0.0.
57388         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
57389         (test_function): Use it instead of 0.0 / 0.0.
57390         * tests/test-vasprintf-posix.c (NaN): New function/macro.
57391         (test_function): Use it instead of 0.0 / 0.0.
57392         * tests/test-snprintf-posix.h (NaN): New function/macro.
57393         (test_function): Use it instead of 0.0 / 0.0.
57394         * tests/test-sprintf-posix.h (NaN): New function/macro.
57395         (test_function): Use it instead of 0.0 / 0.0.
57396         * tests/test-fprintf-posix.h (NaN): New function/macro.
57397         (test_function): Use it instead of 0.0 / 0.0.
57398         * tests/test-printf-posix.h (NaN): New function/macro.
57399         (test_function): Use it instead of 0.0 / 0.0.
57400
57401         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
57402
57403 2007-03-25  Bruno Haible  <bruno@clisp.org>
57404
57405         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
57406
57407 2007-03-25  Bruno Haible  <bruno@clisp.org>
57408
57409         * lib/regexec.c (merge_state_with_log): Make static.
57410
57411 2007-03-25  Bruno Haible  <bruno@clisp.org>
57412
57413         * lib/trigl.c (kernel_rem_pio2): Make static.
57414
57415 2007-03-25  Bruno Haible  <bruno@clisp.org>
57416
57417         * lib/sincosl.c (sincosl_table): Make static.
57418
57419 2007-03-25  Bruno Haible  <bruno@clisp.org>
57420
57421         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
57422         if the compiler does not support C99.
57423
57424 2007-03-25  Bruno Haible  <bruno@clisp.org>
57425
57426         * modules/time (Makefile.am): Ensure all rule action lines start with a
57427         tab.
57428
57429 2007-03-24  Bruno Haible  <bruno@clisp.org>
57430
57431         * modules/tsearch-tests: New file.
57432         * tests/test-tsearch.sh: New file.
57433         * tests/test-tsearch.c: New file, mostly copied from glibc.
57434
57435         * modules/search-tests: New file.
57436         * tests/test-search.c: New file.
57437
57438         * modules/search: New file.
57439         * lib/search_.h: New file, incorporating lib/tsearch.h.
57440         * m4/search_h.m4: New file.
57441         * lib/tsearch.h: Remove file.
57442         * lib/tsearch.c: Include search.h instead of tsearch.h.
57443         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
57444         HAVE_TSEARCH.
57445         * modules/tsearch (Files): Remove lib/tsearch.h.
57446         (Depends-on): Add search.
57447         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
57448         (Include): Change tsearch.h into search.h.
57449
57450 2007-03-24  Bruno Haible  <bruno@clisp.org>
57451
57452         * modules/fpucw: New file.
57453         * lib/fpucw.h: New file.
57454         * lib/frexp.c: Include fpucw.h.
57455         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
57456         (FUNC): Use them.
57457         * lib/printf-frexp.c: Include fpucw.h.
57458         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
57459         (FUNC): Use them.
57460         * lib/vasnprintf.c: Include fpucw.h.
57461         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
57462         'long double' calculations.
57463         * tests/test-frexpl.c: Include fpucw.h.
57464         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
57465         * tests/test-printf-frexpl.c: Include fpucw.h.
57466         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
57467         * modules/frexpl (Depends-on): Add fpucw.
57468         * modules/printf-frexpl (Depends-on): Likewise.
57469         * modules/fprintf-posix (Depends-on): Likewise.
57470         * modules/snprintf-posix (Depends-on): Likewise.
57471         * modules/sprintf-posix (Depends-on): Likewise.
57472         * modules/vasnprintf-posix (Depends-on): Likewise.
57473         * modules/vasprintf-posix (Depends-on): Likewise.
57474         * modules/vfprintf-posix (Depends-on): Likewise.
57475         * modules/vsnprintf-posix (Depends-on): Likewise.
57476         * modules/vsprintf-posix (Depends-on): Likewise.
57477         * modules/frexpl-tests (Depends-on): Likewise.
57478         * modules/printf-frexpl-tests (Depends-on): Likewise.
57479
57480 2007-03-24  Bruno Haible  <bruno@clisp.org>
57481
57482         * lib/float+.h: New file.
57483         * lib/isnan.c: Include float+.h.
57484         (SIZE): New macro.
57485         (FUNC): Compare only SIZE bytes of the value.
57486         * lib/vasnprintf.c: Include float+.h.
57487         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
57488         SIZEOF_LDBL or SIZEOF_DBL bytes.
57489         * modules/isnan-nolibm (Files): Add lib/float+.h.
57490         * modules/isnanl-nolibm (Files): Add lib/float+.h.
57491         * modules/isnanl (Files): Add lib/float+.h.
57492         * modules/vasnprintf (Files): Add lib/float+.h.
57493
57494 2007-03-24  Bruno Haible  <bruno@clisp.org>
57495
57496         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
57497         include isnanl-nolibm.h.
57498
57499 2007-03-24  Bruno Haible  <bruno@clisp.org>
57500
57501         * tests/test-read-file.c (main): Don't produce spurious output for
57502         expected situations. Make the test fail if it encountered unexpected
57503         results.
57504
57505 2007-03-24  Bruno Haible  <bruno@clisp.org>
57506
57507         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
57508         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
57509
57510 2007-03-24  Bruno Haible  <bruno@clisp.org>
57511
57512         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
57513
57514 2007-03-24  Bruno Haible  <bruno@clisp.org>
57515
57516         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
57517         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
57518
57519         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
57520         * modules/utf8-ucs4: Turn into a symbolic link to module
57521         unistr/u8-mbtouc.
57522
57523         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
57524         utf8-ucs4-unsafe.
57525         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
57526         unistr/u8-mbtouc-unsafe.
57527
57528         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
57529         * modules/utf16-ucs4: Turn into a symbolic link to module
57530         unistr/u16-mbtouc.
57531
57532         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
57533         utf16-ucs4-unsafe.
57534         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
57535         unistr/u16-mbtouc-unsafe.
57536
57537         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
57538         * modules/ucs4-utf8: Turn into a symbolic link to module
57539         unistr/u8-ubtomb.
57540
57541         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
57542         * modules/ucs4-utf16: Turn into a symbolic link to module
57543         unistr/u16-ubtomb.
57544
57545 2007-03-24  Bruno Haible  <bruno@clisp.org>
57546
57547         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
57548         Enable the function only if HAVE_INLINE.
57549         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
57550         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
57551         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
57552         Enable the function only if HAVE_INLINE.
57553         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
57554         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
57555         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
57556         Enable the function only if HAVE_INLINE.
57557         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
57558         Enable the function only if HAVE_INLINE.
57559         * modules/utf8-ucs4: Update.
57560         * modules/utf8-ucs4-unsafe: Update.
57561         * modules/utf16-ucs4: Update.
57562         * modules/utf16-ucs4-unsafe: Update.
57563         * modules/ucs4-utf8: Update.
57564         * modules/ucs4-utf16: Update.
57565
57566 2007-03-24  Bruno Haible  <bruno@clisp.org>
57567
57568         * lib/utf8-ucs4.h: Remove file.
57569         * lib/utf8-ucs4-unsafe.h: Remove file.
57570         * lib/utf16-ucs4.h: Remove file.
57571         * lib/utf16-ucs4-unsafe.h: Remove file.
57572         * lib/ucs4-utf8.h: Remove file.
57573         * lib/ucs4-utf16.h: Remove file.
57574         * lib/unistr.h: Include their previous contents.
57575         * m4/utf-ucs4.m4: Remove file.
57576         * m4/ucs4-utf.m4: Remove file.
57577         * modules/utf8-ucs4 (Files): Remove lib/utf8-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/utf8-ucs4-unsafe (Files): Remove lib/utf8-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/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
57588         (Depends-on): Add unistr/base.
57589         (configure.ac): Remove gl_UTF_UCS4.
57590         (Makefile.am): Update.
57591         (Include): Change to unistr.h.
57592         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
57593         (Depends-on): Add unistr/base.
57594         (configure.ac): Remove gl_UTF_UCS4.
57595         (Makefile.am): Update.
57596         (Include): Change to unistr.h.
57597         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
57598         (Depends-on): Add unistr/base.
57599         (configure.ac): Remove gl_UCS4_UTF.
57600         (Makefile.am): Update.
57601         (Include): Change to unistr.h.
57602         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
57603         (Depends-on): Add unistr/base.
57604         (configure.ac): Remove gl_UCS4_UTF.
57605         (Makefile.am): Update.
57606         (Include): Change to unistr.h.
57607         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
57608         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
57609         utf8-ucs4-unsafe.h.
57610         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
57611         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
57612         utf16-ucs4-unsafe.h.
57613         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
57614         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
57615         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
57616         * lib/unistr/u8-strchr.c: Likewise.
57617         * lib/unistr/u8-strrchr.c: Likewise.
57618         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
57619         * lib/unistr/u16-strchr.c: Likewise.
57620         * lib/unistr/u16-strrchr.c: Likewise.
57621         * lib/striconveh.c: Update.
57622         * lib/linebreak.c: Update.
57623
57624 2007-03-24  Bruno Haible  <bruno@clisp.org>
57625
57626         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
57627         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
57628
57629 2007-03-22  Bruno Haible  <bruno@clisp.org>
57630
57631         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
57632
57633 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
57634
57635         * MODULES.html.sh (File system functions): New module write-any-file.
57636         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
57637         * m4/write-any-file.m4: New files.
57638
57639 2007-03-23  Eric Blake  <ebb9@byu.net>
57640
57641         * gnulib-tool: Rearrange space-tab sequences, since some editors
57642         like to eat them.
57643
57644 2007-03-23  Eric Blake  <ebb9@byu.net>
57645
57646         * lib/version-etc.c (version_etc_va): Update license wording to
57647         be more concise.  Recommended by Richard Stallman.
57648
57649 2007-03-22  Bruno Haible  <bruno@clisp.org>
57650
57651         * lib/poll.c (MSG_PEEK): New fallback definition.
57652
57653 2007-03-22  Bruno Haible  <bruno@clisp.org>
57654
57655         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
57656         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
57657         (main): Update.
57658         Fixes a compilation error on BeOS.
57659
57660 2007-03-22  Bruno Haible  <bruno@clisp.org>
57661
57662         * modules/frexpl-tests: New file.
57663         * tests/test-frexpl.c: New file.
57664
57665         * modules/frexpl: New file.
57666         * m4/frexpl.m4: New file.
57667         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
57668         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
57669         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
57670         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
57671         (Depends-on): Add frexpl. Remove isnanl-nolibm.
57672         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
57673
57674 2007-03-22  Bruno Haible  <bruno@clisp.org>
57675
57676         * lib/frexpl.c: Share code with lib/frexp.c.
57677         * modules/mathl (Files): Add lib/frexp.c.
57678         (Depends-on): Add isnanl-nolibm.
57679
57680 2007-03-22  Bruno Haible  <bruno@clisp.org>
57681
57682         * modules/printf-frexp (Files): Add m4/frexp.m4.
57683         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
57684         only if the found frexp function actually works.
57685
57686 2007-03-22  Bruno Haible  <bruno@clisp.org>
57687
57688         * lib/frexp.c: Remove older implementation that uses divisions.
57689
57690 2007-03-21  Bruno Haible  <bruno@clisp.org>
57691
57692         * modules/frexp-tests: New file.
57693         * tests/test-frexp.c: New file.
57694
57695         * modules/frexp: New file.
57696         * lib/frexp.c: New file.
57697         * m4/frexp.m4: New file.
57698         * lib/math_.h (frexp): New declaration.
57699         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
57700         REPLACE_FREXP.
57701         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
57702
57703 2007-03-21  Bruno Haible  <bruno@clisp.org>
57704
57705         * modules/isnanl-tests: New file.
57706         * tests/test-isnanl.c: New file.
57707
57708         * modules/isnanl: New file.
57709         * lib/isnanl.h: New file.
57710         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
57711         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
57712         gl_FUNC_ISNANL_WORKS.
57713         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
57714         New macros.
57715
57716 2007-03-21  Bruno Haible  <bruno@clisp.org>
57717
57718         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
57719         lib/isnanl.h.
57720         (Include): Update.
57721         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
57722         * lib/vasnprintf.c: Update.
57723         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
57724         tests/test-isnanl.h, remove tests/test-isnanl.c.
57725         (Makefile.am): Update.
57726         * tests/test-isnanl-nolibm.c: New file.
57727         * tests/test-isnanl.h: New file.
57728         * tests/test-isnanl.c: Remove file.
57729
57730 2007-03-21  Jim Meyering  <jim@meyering.net>
57731
57732         When trying to open ".", treat ESTALE like EACCES.
57733         * lib/savewd.c (savewd_save): Resort to forking not just upon
57734         failure with EACCES, but also when errno is ESTALE.
57735
57736 2007-03-20  Bruno Haible  <bruno@clisp.org>
57737
57738         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
57739         Needed on AIX 5.1. Reported by Matthew Woehlke.
57740
57741 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
57742
57743         Suggestions by Bruno Haible:
57744         * lib/acl-internal.h: Include "gettext.h" rather than rolling
57745         our own.
57746         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
57747         * modules/acl (Depends-on): Add gettext.
57748
57749 2007-03-19  Bruno Haible  <bruno@clisp.org>
57750
57751         * modules/iconvme: Remove file.
57752         * lib/iconvme.h: Remove file.
57753         * lib/iconvme.c: Remove file.
57754         * m4/iconvme.m4: Remove file.
57755
57756 2007-03-19  Bruno Haible  <bruno@clisp.org>
57757
57758         * doc/relocatable-maint.texi: Break long shell script line.
57759         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
57760
57761 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
57762
57763         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
57764         handle file_has_acl.
57765         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
57766         * lib/acl.c: Move header inclusions and related macro defns into
57767         lib/acl-internal.h.
57768         (S_ISLNK): Remove defn, since that's now done for us.
57769         (file_has_acl): Move to lib/file-has-acl.c.
57770         Call acl_trivial if available.  This is the crucial part of the fix.
57771         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
57772         shared within the library.  Rewrite a bit, partly to make it compatible
57773         with the GNU coding style.
57774         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
57775         Remove unnecessary double-quotes.
57776         Don't test for acl_to_text; the build will catch that.
57777         Replace acl_entries if it doesn't exist and it is needed.
57778         Check for -lsec and acl_trivial (as used on Solaris 10).
57779         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
57780         lib/file-has-acl.c.
57781         (Depends-on): Add sys_stat, for S_ISLNK.
57782
57783 2007-03-19  Ben Pfaff  <blp@gnu.org>
57784
57785         * doc/gnulib.texi: Fix typos.
57786         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
57787
57788 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
57789
57790         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
57791         If size is zero here, buf must be zero.
57792
57793 2007-03-19  Simon Josefsson  <simon@josefsson.org>
57794
57795         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
57796         <bruno@clisp.org>.
57797
57798 2007-03-18  Bruno Haible  <bruno@clisp.org>
57799
57800         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
57801         Suggested by Eric Blake.
57802
57803 2007-03-18  Ben Pfaff  <blp@gnu.org>
57804
57805         * doc/relocatable.texi: Recommend using as prefix a directory
57806         that does not exist and will never be created.  Based on
57807         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
57808         and others.
57809
57810 2007-03-17  Bruno Haible  <bruno@clisp.org>
57811
57812         * lib/fchownat.c: Include lchown.h.
57813
57814 2007-03-17  Bruno Haible  <bruno@clisp.org>
57815
57816         Fix endless loop when the given allocated size was > INT_MAX.
57817         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
57818         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
57819         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
57820         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
57821         * lib/sprintf.c (sprintf): Likewise.
57822
57823 2007-03-17  Bruno Haible  <bruno@clisp.org>
57824
57825         * tests/test-argp-2.sh (func_compare): Output a context diff.
57826
57827 2007-03-17  Bruno Haible  <bruno@clisp.org>
57828
57829         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
57830         locale's decimal-point character.
57831
57832 2007-03-17  Bruno Haible  <bruno@clisp.org>
57833
57834         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
57835         before comparing it. Needed because on some platforms (e.g. x86) a
57836         'long double' occupies less bytes than sizeof (long double).
57837
57838 2007-03-17  Bruno Haible  <bruno@clisp.org>
57839
57840         * tests/test-crc.c (main): Make printf statements 64-bit clean.
57841         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
57842         * tests/test-getaddrinfo.c (simple): Likewise.
57843         * tests/test-read-file.c (main): Likewise.
57844
57845 2007-03-17  Bruno Haible  <bruno@clisp.org>
57846
57847         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
57848
57849 2007-03-17  Bruno Haible  <bruno@clisp.org>
57850
57851         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
57852         unused variable.
57853
57854 2007-03-17  Bruno Haible  <bruno@clisp.org>
57855
57856         * tests/test-c-strcasecmp.c: Include c-strcase.h.
57857         * tests/test-c-strncasecmp.c: Likewise.
57858
57859 2007-03-17  Bruno Haible  <bruno@clisp.org>
57860
57861         * modules/stdlib (Depends-on): Add unistd.
57862         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
57863         Needed for MacOS X 10.3.
57864
57865 2007-03-17  Bruno Haible  <bruno@clisp.org>
57866
57867         * lib/unistr/u-strdup.h: Include <stdlib.h>.
57868
57869 2007-03-17  Bruno Haible  <bruno@clisp.org>
57870
57871         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
57872
57873 2007-03-17  Bruno Haible  <bruno@clisp.org>
57874
57875         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
57876         to reflect files copied from gnulib (with or without modifications).
57877         Suggested by Jim Meyering.
57878
57879 2007-03-17  Eric Blake  <ebb9@byu.net>
57880
57881         * NEWS: Document stdlib change from 2007-02-18.
57882
57883 2007-03-17  Jim Meyering  <jim@meyering.net>
57884
57885         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
57886         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
57887         someone uses a name containing shell meta-characters.
57888         Reported by Alfred M. Szmidt.
57889
57890         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
57891
57892 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
57893
57894         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
57895         and copy gettext configuration files only if configure.ac contains
57896         a use of AM_GNU_GETTEXT_VERSION.
57897
57898 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
57899
57900         * build-aux/bootstrap (gnulib_name): New variable.
57901         (gnulib_tool_options): Use it.
57902
57903 2007-03-13  Simon Josefsson  <simon@josefsson.org>
57904
57905         * tests/test-des.c: Use new namespace.
57906
57907 2007-03-15  Bruno Haible  <bruno@clisp.org>
57908
57909         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
57910         Reported by James Youngman <jay@gnu.org>.
57911
57912 2007-03-15  Bruno Haible  <bruno@clisp.org>
57913
57914         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
57915         declared prototype. Needed with cc on OSF/1 5.1.
57916
57917 2007-03-15  Bruno Haible  <bruno@clisp.org>
57918
57919         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
57920         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
57921         (struct gl_list_implementation): Add dispose_fn argument to the
57922         'create_empty', 'create' methods.
57923         (struct gl_list_impl_base): Add field 'dispose_fn'.
57924         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
57925         argument.
57926         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
57927         dispose_fn argument.
57928         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
57929         dispose_fn on the dropped values.
57930         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
57931         dispose_fn argument.
57932         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
57933         dropped values.
57934         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
57935         (gl_tree_remove_node): Call dispose_fn on the dropped value.
57936         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
57937         (gl_tree_remove_node): Call dispose_fn on the dropped value.
57938         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
57939         argument.
57940         (gl_tree_list_free): Call dispose_fn on the dropped values.
57941         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
57942         the dropped values.
57943         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
57944         Add dispose_fn argument.
57945         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
57946         Call dispose_fn on the dropped values.
57947         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
57948         Add dispose_fn argument.
57949         (gl_sublist_create): Initialize the 'dispose_fn' field.
57950         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
57951         * tests/test-array_list.c (main): Update.
57952         * tests/test-carray_list.c (main): Update.
57953         * tests/test-avltree_list.c (main): Update.
57954         * tests/test-rbtree_list.c (main): Update.
57955         * tests/test-avltreehash_list.c (main): Update.
57956         * tests/test-rbtreehash_list.c (main): Update.
57957         * tests/test-linked_list.c (main): Update.
57958         * tests/test-linkedhash_list.c (main): Update.
57959         * tests/test-array_oset.c (main): Update.
57960
57961 2007-03-15  Bruno Haible  <bruno@clisp.org>
57962
57963         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
57964         (gl_oset_create_empty): Add dispose_fn argument.
57965         (struct gl_oset_implementation): Add dispose_fn argument to
57966         'create_empty' method.
57967         (struct gl_oset_impl_base): Add dispose_fn field.
57968         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
57969         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
57970         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
57971         values.
57972         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
57973         (gl_tree_oset_free): Call dispose_fn on the dropped values.
57974         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
57975         dropped value.
57976         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
57977         dropped value.
57978         * tests/test-array_oset.c (main): Update.
57979         * tests/test-avltree_oset.c (main): Update.
57980         * tests/test-rbtree_oset.c (main): Update.
57981         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
57982
57983 2007-03-13  Bruno Haible  <bruno@clisp.org>
57984
57985         * tests/test-stdbool.c (i): Update after last patch.
57986
57987 2007-03-12  Bruno Haible  <bruno@clisp.org>
57988
57989         * lib/quotearg.c: Include <wctype.h> early, before the definition of
57990         the iswprint macro. Needed on Solaris 2.5.1.
57991
57992 2007-03-12  Bruno Haible  <bruno@clisp.org>
57993
57994         * tests/test-printf-frexp.c (main): Declare x as volatile.
57995
57996 2007-03-12  Simon Josefsson  <simon@josefsson.org>
57997
57998         * doc/gnulib.texi (Build robot for gnulib): New section.
57999
58000 2007-03-12  Jim Meyering  <jim@meyering.net>
58001
58002         * build-aux/bootstrap: New file.
58003         * build-aux/bootstrap.conf: New file, from coreutils.
58004
58005 2007-03-11  Bruno Haible  <bruno@clisp.org>
58006
58007         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
58008
58009 2007-03-12  Simon Josefsson  <simon@josefsson.org>
58010
58011         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
58012         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
58013         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
58014
58015 2007-03-11  Bruno Haible  <bruno@clisp.org>
58016
58017         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
58018         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
58019
58020 2007-03-11  Bruno Haible  <bruno@clisp.org>
58021
58022         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
58023         formula. Needed for SunPRO C 5.0.
58024
58025 2007-03-11  Bruno Haible  <bruno@clisp.org>
58026
58027         * modules/long-options (Depends-on): Add getopt.
58028
58029 2007-03-11  Bruno Haible  <bruno@clisp.org>
58030
58031         * modules/modechange (Depends-on): Add stdbool.
58032
58033 2007-03-11  Bruno Haible  <bruno@clisp.org>
58034
58035         * modules/i-ring (Depends-on): Add stdbool.
58036
58037 2007-03-11  Bruno Haible  <bruno@clisp.org>
58038
58039         * modules/gc-des (Depends-on): Add stdbool.
58040
58041 2007-03-11  Bruno Haible  <bruno@clisp.org>
58042
58043         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
58044
58045 2007-03-11  Bruno Haible  <bruno@clisp.org>
58046
58047         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
58048
58049 2007-03-11  Bruno Haible  <bruno@clisp.org>
58050
58051         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
58052
58053 2007-03-11  Bruno Haible  <bruno@clisp.org>
58054
58055         * lib/vasnprintf.c (sprintf): Undefine.
58056
58057 2007-03-11  Bruno Haible  <bruno@clisp.org>
58058
58059         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
58060         initializers in SunPRO C and Compaq C compilers.
58061
58062 2007-03-11  Bruno Haible  <bruno@clisp.org>
58063
58064         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
58065         decrementing code ANSI C compliant.
58066
58067 2007-03-11  Bruno Haible  <bruno@clisp.org>
58068
58069         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
58070         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
58071
58072 2007-03-11  Bruno Haible  <bruno@clisp.org>
58073
58074         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
58075         <stdbool.h> substitute doesn't pass.
58076
58077 2007-03-11  Bruno Haible  <bruno@clisp.org>
58078
58079         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
58080
58081 2007-03-11  Bruno Haible  <bruno@clisp.org>
58082
58083         * gnulib-tool (func_create_megatestdir): Create also an autobuild
58084         script, for submission to autobuild.josefsson.org.
58085
58086 2007-03-10  Bruno Haible  <bruno@clisp.org>
58087
58088         * modules/canonicalize-lgpl-tests: New file.
58089         * tests/test-canonicalize-lgpl.sh: New file.
58090         * tests/test-canonicalize-lgpl.c: New file.
58091
58092         * modules/c-strcase-tests: New file.
58093         * tests/test-c-strcase.sh: New file.
58094         * tests/test-c-strcasecmp.c: New file.
58095         * tests/test-c-strncasecmp.c: New file.
58096
58097         * modules/atexit-tests: New file.
58098         * tests/test-atexit.sh: New file.
58099         * tests/test-atexit.c: New file.
58100
58101 2007-03-10  Bruno Haible  <bruno@clisp.org>
58102
58103         * tests/test-binary-io.sh: Use temporary filenames that are not so
58104         likely to clash with those of other tests (in a parallel make).
58105         * tests/test-binary-io.c: Likewise.
58106
58107 2007-03-10  Bruno Haible  <bruno@clisp.org>
58108
58109         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
58110         fallback; use #error instead.
58111         Suggested by Simon Josefsson.
58112
58113 2007-03-10  Bruno Haible  <bruno@clisp.org>
58114
58115         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
58116         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
58117         first and the last.
58118
58119 2007-03-10  Bruno Haible  <bruno@clisp.org>
58120
58121         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
58122
58123 2007-03-10  Bruno Haible  <bruno@clisp.org>
58124
58125         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
58126         "make distcheck".
58127         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
58128         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
58129         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
58130
58131 2007-03-10  Bruno Haible  <bruno@clisp.org>
58132
58133         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
58134         variable.
58135         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
58136         variable.
58137
58138 2007-03-09  Eric Blake  <ebb9@byu.net>
58139         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
58140
58141         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
58142         types are not being provided by gnulib.
58143         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
58144         types are supported.
58145
58146 2007-03-10  Bruno Haible  <bruno@clisp.org>
58147
58148         * lib/stdio_.h (__attribute__): New macro.
58149         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
58150         vsprintf): Specify __attribute__ __format__ for GCC.
58151         Suggested by Eric Blake.
58152
58153 2007-03-09  Bruno Haible  <bruno@clisp.org>
58154
58155         * modules/printf-posix-tests: New file.
58156         * tests/test-printf-posix.sh: New file.
58157         * tests/test-printf-posix.c: New file.
58158
58159         * modules/printf-posix: New file.
58160         * lib/printf.c: New file.
58161         * m4/printf-posix-rpl.m4: New file.
58162         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
58163         REPLACE_PRINTF.
58164         * lib/stdio_.h (printf): New declaration.
58165         (format, __format__, ____printf____, ____scanf____, ____strftime____,
58166         ____strfmon____): New macros.
58167         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
58168         REPLACE_PRINTF.
58169
58170 2007-03-09  Bruno Haible  <bruno@clisp.org>
58171
58172         * tests/test-vasnprintf-posix2.sh: New file.
58173         * tests/test-vasnprintf-posix2.c: New file.
58174         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
58175         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
58176         (Makefile.am): Activate test-vasnprintf-posix2.sh.
58177
58178         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
58179         a locale dependent decimal point, rather than always '.'.
58180
58181 2007-03-09  Eric Blake  <ebb9@byu.net>
58182
58183         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
58184         spite of platforms like Tandem/NSK that define it to -1.
58185
58186 2007-03-08  Bruno Haible  <bruno@clisp.org>
58187
58188         * modules/vprintf-posix-tests: New file.
58189         * tests/test-vprintf-posix.sh: New file.
58190         * tests/test-vprintf-posix.c: New file.
58191         * tests/test-printf-posix.h: New file.
58192
58193         * modules/vprintf-posix: New file.
58194         * lib/vprintf.c: New file.
58195         * m4/vprintf-posix.m4: New file.
58196         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
58197         REPLACE_VPRINTF.
58198         * lib/stdio_.h (vprintf): New declaration.
58199         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
58200         REPLACE_VPRINTF.
58201
58202 2007-03-08  Bruno Haible  <bruno@clisp.org>
58203
58204         * modules/fprintf-posix-tests: New file.
58205         * tests/test-fprintf-posix.sh: New file.
58206         * tests/test-fprintf-posix.c: New file.
58207
58208         * modules/fprintf-posix: New file.
58209         * lib/fprintf.c: New file.
58210         * m4/fprintf-posix.m4: New file.
58211         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
58212         REPLACE_FPRINTF.
58213         * lib/stdio_.h (fprintf): New declaration.
58214         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
58215         REPLACE_FPRINTF.
58216
58217 2007-03-08  Bruno Haible  <bruno@clisp.org>
58218
58219         * modules/vfprintf-posix-tests: New file.
58220         * tests/test-vfprintf-posix.sh: New file.
58221         * tests/test-vfprintf-posix.c: New file.
58222         * tests/test-fprintf-posix.h: New file.
58223         * tests/test-fprintf-posix.out: New file.
58224
58225         * modules/vfprintf-posix: New file.
58226         * lib/vfprintf.c: New file.
58227         * m4/vfprintf-posix.m4: New file.
58228         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
58229         REPLACE_VFPRINTF.
58230         * lib/stdio_.h (vfprintf): New declaration.
58231         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
58232         REPLACE_VFPRINTF.
58233
58234 2007-03-08  Bruno Haible  <bruno@clisp.org>
58235
58236         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
58237
58238 2007-03-08  Bruno Haible  <bruno@clisp.org>
58239
58240         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
58241         instead of 'expr' invocations.
58242         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58243         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58244         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58245         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58246         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58247         Suggested by Paul Eggert.
58248
58249 2007-03-08  Bruno Haible  <bruno@clisp.org>
58250
58251         * modules/fseterr-tests: New file.
58252         * tests/test-fseterr.c: New file.
58253
58254         * modules/fseterr: New file.
58255         * lib/fseterr.h: New file.
58256         * lib/fseterr.c: New file.
58257
58258 2007-03-08  Bruno Haible  <bruno@clisp.org>
58259
58260         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
58261         * lib/getopt_.h: Likewise.
58262         * lib/mbswidth.h: Likewise.
58263         * lib/setenv.h: Likewise.
58264         * lib/vasnprintf.h: Likewise.
58265         * lib/vasprintf.h: Likewise.
58266         * lib/verror.h: Likewise.
58267         * lib/xsetenv.h: Likewise.
58268         * lib/xvasprintf.h: Likewise.
58269
58270 2007-03-08  Jim Meyering  <jim@meyering.net>
58271
58272         * users.txt: Add parted.
58273
58274         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
58275
58276 2007-03-07  Bruno Haible  <bruno@clisp.org>
58277
58278         * m4/printf.m4: Make the shell script snippets copy&pastable.
58279
58280 2007-03-02  Bruno Haible  <bruno@clisp.org>
58281
58282         * lib/netinet_in_.h: New file.
58283         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
58284         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
58285         * modules/netinet_in (Files): Add lib/netinet_in_.h.
58286         (Depends-on): Add absolute-header.
58287         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
58288         into netinet/in.h.
58289
58290 2007-03-03  Bruno Haible  <bruno@clisp.org>
58291
58292         * lib/sys_select_.h: New file.
58293         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
58294         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
58295         * modules/sys_select (Files): Add lib/sys_select_.h.
58296         (Depends-on): Add absolute-header.
58297         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
58298         into sys/select.h.
58299
58300 2007-03-02  Bruno Haible  <bruno@clisp.org>
58301
58302         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
58303         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
58304         values.
58305         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
58306         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
58307         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
58308         * modules/sys_socket (Depends-on): Add absolute-header.
58309         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
58310         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
58311         (Include): Remove requirement of inclusion of <sys/types.h>.
58312
58313 2007-03-02  Bruno Haible  <bruno@clisp.org>
58314
58315         * lib/byteswap_.h (bswap_32): Fix formula.
58316
58317 2007-03-06  Bruno Haible  <bruno@clisp.org>
58318
58319         * modules/sprintf-posix-tests: New file.
58320         * tests/test-sprintf-posix.c: New file.
58321
58322         * modules/sprintf-posix: New file.
58323         * lib/sprintf.c: New file.
58324         * m4/sprintf-posix.m4: New file.
58325         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
58326         REPLACE_SPRINTF.
58327         * lib/stdio_.h (sprintf): New declaration.
58328         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
58329         REPLACE_SPRINTF.
58330
58331 2007-03-06  Bruno Haible  <bruno@clisp.org>
58332
58333         * modules/vsprintf-posix-tests: New file.
58334         * tests/test-vsprintf-posix.c: New file.
58335         * tests/test-sprintf-posix.h: New file.
58336
58337         * modules/vsprintf-posix: New file.
58338         * lib/vsprintf.c: New file.
58339         * m4/vsprintf-posix.m4: New file.
58340         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
58341         REPLACE_VSPRINTF.
58342         * lib/stdio_.h (vsprintf): New declaration.
58343         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
58344         REPLACE_VSPRINTF.
58345
58346 2007-03-06  Bruno Haible  <bruno@clisp.org>
58347
58348         * modules/vsnprintf (Depend-on): Remove minmax.
58349
58350 2007-03-06  Bruno Haible  <bruno@clisp.org>
58351
58352         * modules/snprintf-posix-tests: New file.
58353         * tests/test-snprintf-posix.c: New file.
58354
58355         * modules/snprintf-posix: New file.
58356         * m4/snprintf-posix.m4: New file.
58357         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
58358         gl_FUNC_SNPRINTF.
58359         (gl_FUNC_SNPRINTF): Invoke it.
58360         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
58361         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
58362         is set.
58363         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
58364
58365 2007-03-06  Bruno Haible  <bruno@clisp.org>
58366
58367         * modules/vsnprintf-posix-tests: New file.
58368         * tests/test-vsnprintf-posix.c: New file.
58369         * tests/test-snprintf-posix.h: New file.
58370
58371         * modules/vsnprintf-posix: New file.
58372         * m4/vsnprintf-posix.m4: New file.
58373         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
58374         gl_FUNC_VSNPRINTF.
58375         (gl_FUNC_VSNPRINTF): Invoke it.
58376         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
58377         * lib/stdio_.h (vsnprintf): Define as a replacement if
58378         REPLACE_VSNPRINTF is set.
58379         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
58380
58381 2007-03-06  Bruno Haible  <bruno@clisp.org>
58382
58383         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
58384         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
58385
58386 2007-03-06  Bruno Haible  <bruno@clisp.org>
58387
58388         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
58389         (asinl): Declare also if HAVE_DECL_ASINL is set.
58390         (atanl): Declare also if HAVE_DECL_ATANL is set.
58391         (ceill): Declare also if HAVE_DECL_CEILL is set.
58392         (cosl): Declare also if HAVE_DECL_COSL is set.
58393         (expl): Declare also if HAVE_DECL_EXPL is set.
58394         (floorl): Declare also if HAVE_DECL_FLOORL is set.
58395         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
58396         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
58397         (logl): Declare also if HAVE_DECL_LOGL is set.
58398         (sinl): Declare also if HAVE_DECL_SINL is set.
58399         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
58400         (tanl): Declare also if HAVE_DECL_TANL is set.
58401         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
58402         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
58403         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
58404         declaration of frexpl, ldexpl.
58405         * modules/printf-frexpl (Depends-on): Add math.
58406         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
58407
58408 2007-03-05  Bruno Haible  <bruno@clisp.org>
58409
58410         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
58411         frexpl and ldexpl are declared.
58412         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
58413
58414 2007-03-05  Bruno Haible  <bruno@clisp.org>
58415
58416         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
58417         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
58418
58419 2007-03-05  Bruno Haible  <bruno@clisp.org>
58420
58421         * lib/stdio_.h: Include <stddef.h>.
58422
58423 2007-03-05  Bruno Haible  <bruno@clisp.org>
58424
58425         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
58426
58427 2007-03-05  Bruno Haible  <bruno@clisp.org>
58428
58429         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
58430         NetBSD 4, from Ralf Wildenhues.
58431
58432 2007-03-04  Bruno Haible  <bruno@clisp.org>
58433
58434         * lib/vasprintf.h: Update #if logic for the case when the functions
58435         exist but are overridden.
58436
58437 2007-03-04  Bruno Haible  <bruno@clisp.org>
58438
58439         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
58440         implementations: glibc-2.4 and MacOS X 10.3.
58441         * tests/test-vasnprintf-posix.c (test_function): Test also the case
58442         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
58443         * tests/test-vasprintf-posix.c (test_function): Likewise.
58444
58445 2007-03-04  Bruno Haible  <bruno@clisp.org>
58446
58447         * modules/vasprintf-posix-tests: New file.
58448         * tests/test-vasprintf-posix.c: New file.
58449
58450         * modules/vasprintf-posix: New file.
58451         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
58452         defined.
58453         * m4/vasprintf-posix.m4: New file.
58454         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
58455         gl_FUNC_VASPRINTF.
58456         (gl_FUNC_VASPRINTF): Invoke it.
58457         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
58458         here.
58459         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
58460
58461 2007-03-04  Bruno Haible  <bruno@clisp.org>
58462
58463         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
58464         REPLACE_GETTIMEOFDAY.
58465         * modules/sys_time (Makefile.am): Likewise.
58466         * m4/sys_time_h.m4: Likewise.
58467         * m4/gettimeofday.m4: Likewise.
58468
58469 2007-03-04  Bruno Haible  <bruno@clisp.org>
58470
58471         * modules/vasnprintf-posix-tests: New file.
58472         * tests/test-vasnprintf-posix.c: New file.
58473
58474         * modules/vasnprintf-posix: New file.
58475         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
58476         printf-frexpl.h.
58477         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
58478         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
58479         REPLACE_VASNPRINTF is defined.
58480         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
58481         gl_FUNC_VASNPRINTF.
58482         (gl_FUNC_VASNPRINTF): Invoke it.
58483         * m4/vasnprintf-posix.m4: New file.
58484         * m4/printf.m4: New file.
58485
58486 2007-03-04  Bruno Haible  <bruno@clisp.org>
58487
58488         Compile progreloc.c only if --enable-relocatable is specified.
58489         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
58490         if --enable-relocatable was specified.
58491         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
58492         lib_SOURCES.
58493
58494 2007-03-04  Jim Meyering  <jim@meyering.net>
58495
58496         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
58497         Use it consistently, rather than enumerating errno constants.
58498
58499 2007-03-04  Bruno Haible  <bruno@clisp.org>
58500
58501         * modules/xvasprintf-tests: New file.
58502         * tests/test-xvasprintf.c: New file.
58503
58504         * modules/vasprintf-tests: New file.
58505         * tests/test-vasprintf.c: New file.
58506
58507         * modules/vasnprintf-tests: New file.
58508         * tests/test-vasnprintf.c: New file.
58509
58510         * modules/vsnprintf-tests: New file.
58511         * tests/test-vsnprintf.c: New file.
58512
58513         * modules/snprintf-tests: New file.
58514         * tests/test-snprintf.c: New file.
58515
58516 2007-03-04  Bruno Haible  <bruno@clisp.org>
58517
58518         Compile relocatable.c only if --enable-relocatable is specified.
58519         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
58520         gl_RELOCATABLE_LIBRARY.
58521         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
58522         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
58523         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
58524         gl_RELOCATABLE_LIBRARY.
58525         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
58526         (Makefile.am): Remove lib_SOURCES.
58527         * modules/relocatable-lib-lgpl (configure.ac): Invoke
58528         gl_RELOCATABLE_LIBRARY.
58529         (Makefile.am): Remove lib_SOURCES.
58530         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
58531         always.
58532         * modules/relocatable-prog-wrapper (configure.ac): Invoke
58533         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
58534
58535 2007-03-04  Bruno Haible  <bruno@clisp.org>
58536
58537         * modules/argmatch-tests: New file.
58538         * tests/test-argmatch.c: New file.
58539
58540         * tests/test-allocsa.c (main): Halve the number of loop runs.
58541
58542         * modules/alloca-opt-tests: New file.
58543         * tests/test-alloca-opt.c: New file.
58544
58545 2007-03-04  Jim Meyering  <jim@meyering.net>
58546
58547         Work around difference between Linux ACLs and Solaris 10 ZFS.
58548         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
58549         for EINVAL.
58550
58551 2007-03-03  Bruno Haible  <bruno@clisp.org>
58552
58553         * modules/relocatable-prog (Depends-on): Add back progreloc's
58554         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
58555
58556 2007-03-03  Bruno Haible  <bruno@clisp.org>
58557
58558         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
58559         * modules/relocatable-lib: New file.
58560
58561 2007-03-03  Bruno Haible  <bruno@clisp.org>
58562
58563         * modules/relocatable-prog: Renamed from modules/relocatable.
58564         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
58565
58566 2007-03-03  Bruno Haible  <bruno@clisp.org>
58567
58568         * modules/relocatable-script (Files): Add doc/relocatable.texi,
58569         m4/relocatable-lib.m4.
58570         (Depends-on): Remove 'relocatable'.
58571         (configure.ac): Add gl_RELOCATABLE_NOP.
58572
58573 2007-03-03  Bruno Haible  <bruno@clisp.org>
58574
58575         * modules/relocatable-prog-wrapper: New file.
58576         * modules/relocatable (Depends-on): Add it. Remove all other
58577         dependencies except progname.
58578         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
58579
58580         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
58581         (gl_FUNC_STRERROR): Nop.
58582         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
58583
58584         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
58585         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
58586
58587         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
58588         (gl_FUNC_READLINK): Update.
58589
58590         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
58591
58592 2007-03-03  Bruno Haible  <bruno@clisp.org>
58593
58594         * lib/xreadlink.c: Include <unistd.h> unconditionally.
58595         * modules/xreadlink (Depends-on): Add unistd.
58596         * modules/xreadlink-with-size (Depends-on): Likewise.
58597
58598 2007-03-03  Bruno Haible  <bruno@clisp.org>
58599
58600         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
58601         extracted from gt_FUNC_SETENV.
58602         (gt_FUNC_SETENV): Remove macro.
58603         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
58604         remove gt_FUNC_SETENV.
58605
58606 2007-03-03  Bruno Haible  <bruno@clisp.org>
58607
58608         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
58609         ENABLE_RELOCATABLE here.
58610         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
58611
58612 2007-03-03  Bruno Haible  <bruno@clisp.org>
58613
58614         * modules/rbtreehash-list-tests (Depends-on): Add progname.
58615         * tests/test-rbtreehash_list.c: Include progname.h.
58616         (main): Call set_program_name.
58617
58618         * modules/rbtree-oset-tests (Depends-on): Add progname.
58619         * tests/test-rbtree_oset.c: Include progname.h.
58620         (main): Call set_program_name.
58621
58622         * modules/rbtree-list-tests (Depends-on): Add progname.
58623         * tests/test-rbtree_list.c: Include progname.h.
58624         (main): Call set_program_name.
58625
58626         * modules/linked-list-tests (Depends-on): Add progname.
58627         * tests/test-linked_list.c: Include progname.h.
58628         (main): Call set_program_name.
58629
58630 2007-03-03  Bruno Haible  <bruno@clisp.org>
58631
58632         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
58633         All uses of __restrict changed to _Restrict_.
58634         * lib/glob_.h (__restrict): Remove macro.
58635
58636 2007-03-02  Bruno Haible  <bruno@clisp.org>
58637
58638         * modules/gettext (configure.ac): Require gettext infrastructure
58639         from version 0.16.1.
58640
58641 2007-03-02  Bruno Haible  <bruno@clisp.org>
58642
58643         * modules/linkedhash-list-tests (Depends-on): Add progname.
58644         * tests/test-linkedhash_list.c: Include progname.h.
58645         (main): Call set_program_name.
58646
58647         * modules/carray-list-tests (Depends-on): Add progname.
58648         * tests/test-carray_list.c: Include progname.h.
58649         (main): Call set_program_name.
58650
58651         * modules/avltreehash-list-tests (Depends-on): Add progname.
58652         * tests/test-avltreehash_list.c: Include progname.h.
58653         (main): Call set_program_name.
58654
58655         * modules/avltree-oset-tests (Depends-on): Add progname.
58656         * tests/test-avltree_oset.c: Include progname.h.
58657         (main): Call set_program_name.
58658
58659         * modules/avltree-list-tests (Depends-on): Add progname.
58660         * tests/test-avltree_list.c: Include progname.h.
58661         (main): Call set_program_name.
58662
58663         * modules/array-oset-tests (Depends-on): Add progname.
58664         * tests/test-array_oset.c: Include progname.h.
58665         (main): Call set_program_name.
58666
58667         * modules/array-list-tests (Depends-on): Add progname.
58668         * tests/test-array_list.c: Include progname.h.
58669         (main): Call set_program_name.
58670
58671         * modules/argp-tests (Depends-on): Add progname.
58672         * tests/test-argp.c: Include argp.h first. Include progname.h.
58673         (main): Call set_program_name.
58674
58675 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
58676
58677         * doc/gnulib-tool.texi (Initial import): Reword description of
58678         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
58679         limited effect even if defined after the first system include.
58680
58681 2007-03-01  Bruno Haible  <bruno@clisp.org>
58682
58683         * build-aux/config.libpath: Update to libtool-1.5.22.
58684         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
58685
58686 2007-03-01  Bruno Haible  <bruno@clisp.org>
58687
58688         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
58689         foo_CFLAGS.
58690         Reported by Ralf Wildenhues.
58691
58692 2007-03-01  Bruno Haible  <bruno@clisp.org>
58693
58694         * build-aux/install-reloc: Remove object files left over by some
58695         compilers.
58696         Reported by Ralf Wildenhues.
58697
58698 2007-03-01  Bruno Haible  <bruno@clisp.org>
58699
58700         * build-aux/install-reloc: Break long lines.
58701
58702 2007-03-01  Bruno Haible  <bruno@clisp.org>
58703
58704         * doc/relocatable.texi: Document that it may not work on OpenBSD.
58705         Reported by Ralf Wildenhues.
58706
58707 2007-03-01  Bruno Haible  <bruno@clisp.org>
58708
58709         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
58710         include ordering constraints.
58711
58712 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
58713
58714         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
58715         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
58716         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
58717         as another example.
58718         * lib/time_.h: Fix misspelling.
58719         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
58720         Require gl_HEADER_TIME_H_DEFAULTS.
58721         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
58722         * m4/time_r.m4 (gl_TIME_R): Likewise.
58723         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
58724
58725 2007-03-01  Bruno Haible  <bruno@clisp.org>
58726
58727         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
58728         * m4/utimens.m4 (gl_UTIMENS): Likewise.
58729
58730 2007-03-01  Jim Meyering  <jim@meyering.net>
58731
58732         * modules/xreadlink (Maintainer): Add my name.
58733         * modules/xreadlink-with-size (Depends-on): Alphabetize.
58734
58735 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
58736             Bruno Haible  <bruno@clisp.org>
58737
58738         * build-aux/install-reloc: Compile also c-ctype.c.
58739         * build-aux/relocatable.sh.in: New file.
58740         * doc/relocatable.texi: New file.
58741         * doc/relocatable-maint.texi: New file.
58742         * doc/gnulib.texi: Include relocatable-maint.texi.
58743         * lib/progreloc.c: Include unistd.h unconditionally.
58744         * lib/relocwrapper.c: Include unistd.h unconditionally.
58745         Include c-ctype.h.
58746         (add_dotbin): Use c_tolower.
58747         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
58748         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
58749         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
58750         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
58751         to m4/relocatable-lib.m4.
58752         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
58753         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
58754         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
58755         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
58756         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
58757         * modules/relocatable: New file.
58758         * modules/relocatable-lib: New file.
58759         * modules/relocatable-script: New file.
58760
58761 2007-02-28  Bruno Haible  <bruno@clisp.org>
58762
58763         Import --enable-relocatable infrastructure.
58764         * build-aux/config.libpath: New file, from GNU gettext.
58765         * build-aux/install-reloc: New file, from GNU gettext.
58766         * build-aux/reloc-ldflags: New file, from GNU gettext.
58767         * lib/relocatable.h: New file, from GNU gettext.
58768         * lib/relocatable.c: New file, from GNU gettext.
58769         * lib/relocwrapper.c: New file, from GNU gettext.
58770         * m4/relocatable.m4: New file, from GNU gettext.
58771
58772 2007-02-28  Bruno Haible  <bruno@clisp.org>
58773
58774         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
58775
58776         * modules/xreadlink: New file, from GNU gettext with modifications.
58777         * lib/xreadlink.c: New file, from GNU gettext.
58778         * lib/xreadlink.h: Add comments.
58779         (xreadlink): New declaration.
58780
58781         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
58782         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
58783         lib/xreadlink-with-size.c.
58784         (configure.ac): Remove gl_XREADLINK invocation.
58785         (Makefile.am): Augment lib_SOURCES.
58786         * m4/xreadlink.m4: Remove file.
58787         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
58788         (xreadlink_with_size): Renamed from xreadink.
58789         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
58790         * modules/canonicalize (Depends-on): Replace xreadlink with
58791         xreadlink-with-size.
58792         * lib/canonicalize.c (canonicalize_filename_mode): Update.
58793
58794 2007-02-25  Jim Meyering  <jim@meyering.net>
58795
58796         * build-aux/announce-gen: When complaining about excess arguments,
58797         list them.
58798
58799 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
58800
58801         * README: Document signed integer overflow situation more
58802         accurately.
58803
58804 2007-02-25  Bruno Haible  <bruno@clisp.org>
58805
58806         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
58807         'a' or 'A' conversion.
58808
58809 2007-02-25  Bruno Haible  <bruno@clisp.org>
58810
58811         * modules/filename: Renamed from modules/pathname.
58812         (Files): Replace lib/pathname.h with lib/filename.h. Replace
58813         lib/concatpath.c with lib/concat-filename.c.
58814         (Makefile.am): Update.
58815         (Include): Replace pathname.h with filename.h.
58816         * lib/filename.h: Renamed from lib/pathname.h.
58817         (concatenated_filename): Renamed from concatenated_pathname.
58818         * lib/concat-filename.c: Renamed from lib/concatpath.c.
58819         (concatenated_filename): Renamed from concatenated_pathname.
58820         * lib/findprog.c: Include filename.h instead of pathname.h.
58821         (find_in_path): Update.
58822         * lib/javacomp.c: Include filename.h instead of pathname.h.
58823         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
58824         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
58825         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
58826         is_oldgcj_14_13_usable, is_javac_usable): Update.
58827         * lib/javaexec.c: Include filename.h instead of pathname.h.
58828         (execute_java_class): Update.
58829         * modules/findprog: Update.
58830         * modules/javacomp: Update.
58831         * modules/javaexec: Update.
58832         * MODULES.html.sh (File system functions): Add 'filename', remove
58833         'pathname'.
58834
58835 2007-02-25  Bruno Haible  <bruno@clisp.org>
58836
58837         * modules/printf-frexpl-tests: New file.
58838         * tests/test-printf-frexpl.c: New file.
58839
58840         * modules/printf-frexpl: New file.
58841         * lib/printf-frexpl.h: New file.
58842         * lib/printf-frexpl.c: New file.
58843         * m4/printf-frexpl.m4: New file.
58844
58845 2007-02-25  Bruno Haible  <bruno@clisp.org>
58846
58847         * modules/printf-frexp-tests: New file.
58848         * tests/test-printf-frexp.c: New file.
58849
58850         * modules/printf-frexp: New file.
58851         * lib/printf-frexp.h: New file.
58852         * lib/printf-frexp.c: New file.
58853         * m4/printf-frexp.m4: New file.
58854
58855 2007-02-25  Bruno Haible  <bruno@clisp.org>
58856
58857         Assume automake >= 1.10 for the tests.
58858         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
58859         * modules/arctwo-tests: Likewise.
58860         * modules/argp-tests: Likewise.
58861         * modules/avltree-list-tests: Likewise.
58862         * modules/avltree-oset-tests: Likewise.
58863         * modules/avltreehash-list-tests: Likewise.
58864         * modules/carray-list-tests: Likewise.
58865         * modules/crc-tests: Likewise.
58866         * modules/des-tests: Likewise.
58867         * modules/gc-arcfour-tests: Likewise.
58868         * modules/gc-arctwo-tests: Likewise.
58869         * modules/gc-des-tests: Likewise.
58870         * modules/gc-hmac-md5-tests: Likewise.
58871         * modules/gc-hmac-sha1-tests: Likewise.
58872         * modules/gc-md2-tests: Likewise.
58873         * modules/gc-md4-tests: Likewise.
58874         * modules/gc-md5-tests: Likewise.
58875         * modules/gc-pbkdf2-sha1-tests: Likewise.
58876         * modules/gc-rijndael-tests: Likewise.
58877         * modules/gc-sha1-tests: Likewise.
58878         * modules/gc-tests: Likewise.
58879         * modules/getaddrinfo-tests: Likewise.
58880         * modules/hmac-md5-tests: Likewise.
58881         * modules/hmac-sha1-tests: Likewise.
58882         * modules/linked-list-tests: Likewise.
58883         * modules/linkedhash-list-tests: Likewise.
58884         * modules/lock-tests: Likewise.
58885         * modules/md2-tests: Likewise.
58886         * modules/md4-tests: Likewise.
58887         * modules/md5-tests: Likewise.
58888         * modules/rbtree-list-tests: Likewise.
58889         * modules/rbtree-oset-tests: Likewise.
58890         * modules/rbtreehash-list-tests: Likewise.
58891         * modules/read-file-tests: Likewise.
58892         * modules/rijndael-tests: Likewise.
58893         * modules/stdint-tests: Likewise.
58894         * modules/tls-tests: Likewise.
58895
58896 2007-02-24  Bruno Haible  <bruno@clisp.org>
58897
58898         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
58899         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
58900         function; instead check whether isnan with a double argument links.
58901         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
58902         function; instead check whether isnan with a 'long double' argument
58903         links.
58904         Reported by Eric Blake <ebb9@byu.net>.
58905
58906 2007-02-24  Bruno Haible  <bruno@clisp.org>
58907
58908         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
58909         defined.
58910         * lib/isnanl.c: Remove all code. Just include isnan.c.
58911         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
58912
58913 2007-02-25  Jim Meyering  <jim@meyering.net>
58914
58915         Avoid conflicting types for 'unsetenv' on FreeBSD.
58916         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
58917         conflicting with FreeBSD's (5.0 and 6.1) function declaration
58918         in stdlib.h.
58919
58920 2007-02-24  Bruno Haible  <bruno@clisp.org>
58921
58922         * modules/isnanl-nolibm-tests: New file.
58923         * tests/test-isnanl.c: New file.
58924
58925         * modules/isnanl-nolibm: New file.
58926         * lib/isnanl.h: New file.
58927         * lib/isnanl.c: New file.
58928         * m4/isnanl.m4: New file.
58929
58930 2007-02-24  Bruno Haible  <bruno@clisp.org>
58931
58932         * modules/isnan-nolibm-tests: New file.
58933         * tests/test-isnan.c: New file.
58934
58935         * modules/isnan-nolibm: New file.
58936         * lib/isnan.h: New file.
58937         * lib/isnan.c: New file.
58938         * m4/isnan.m4: New file.
58939
58940 2007-02-24  Bruno Haible  <bruno@clisp.org>
58941
58942         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
58943         assume that an exponent fits in 20 bits.
58944
58945 2007-02-24  Jim Meyering  <jim@meyering.net>
58946
58947         * m4/regex.m4: Update the description of the configure-time option,
58948         --without-included-regex, to state accurately what the defaults are,
58949         and perhaps to give people an idea why using this option is risky.
58950
58951 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
58952
58953         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
58954         loops on small arguments.  This attempts to avoid the problem
58955         Bruno Haible reported for AIX 4.3.2 in
58956         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
58957
58958 2007-02-23  Bruno Haible  <bruno@clisp.org>
58959
58960         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
58961         Needed for help2man.
58962
58963 2007-02-23  Karl Berry  <karl@gnu.org>
58964
58965         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
58966         exists, foo.h should be cvs-ignored, not committed.
58967
58968 2007-02-23  Eric Blake  <ebb9@byu.net>
58969
58970         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
58971         * lib/stat-time.h (includes): Likewise.
58972         * lib/utimecmp.c (includes): Likewise.
58973         * lib/utimens.h (includes): Likewise.
58974         * lib/getdate.y (includes): Also include "timespec.h" for use
58975         internal to the module.
58976         * modules/utimens (Depends-on): Revert yesterday's patch.
58977         * modules/nanosleep (Depends-on): Add missing dependency.
58978
58979 2007-02-22  Bruno Haible  <bruno@clisp.org>
58980
58981         * lib/glob.c: Don't include getlogin_r.h.
58982
58983 2007-02-22  Jim Meyering  <jim@meyering.net>
58984
58985         * modules/utimens (Depends-on): Add timespec, required for
58986         utimens.h's inclusion of timespec.h.
58987
58988 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
58989
58990         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
58991         long unreadable paths in GNU/Linux.  Problem reported by Andreas
58992         Schwab in
58993         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
58994         I'll try to think of a better way to fix the Solaris problem.
58995
58996         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
58997         like glibc; on Solaris 10, it fails with errno == EINVAL.
58998         POSIX says the behavior is unspecified if the first argument is NULL,
58999         so play it safe and never pass NULL to the system getcwd.
59000
59001 2007-02-21  Jim Meyering  <jim@meyering.net>
59002
59003         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
59004         of gettimeofday.  It would conflict with the one now always
59005         provided via sys_time_.h.  Reported by Matthew Woehlke, as
59006         an IRIX 6.5 build failure.
59007
59008 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
59009
59010         Minor fixups to port to Solaris 10 with Sun C 5.8.
59011         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
59012         * modules/getcwd (Depends-on): Add dirfd.
59013         * lib/putenv.c (putenv): #undef it.
59014         (rpl_putenv): New decl.
59015         (malloc, free): Include <stdlib.h> rather than prototyping separately.
59016
59017 2007-02-20  Bruno Haible  <bruno@clisp.org>
59018
59019         * modules/stdio-tests: New file.
59020         * tests/test-stdio.c: New file.
59021
59022         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
59023         (Depends-on): Add stdio.
59024         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
59025         (Include): Use <stdio.h> instead of vsnprintf.h.
59026         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
59027         HAVE_DECL_VSNPRINTF.
59028         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
59029
59030         * modules/snprintf (Files): Remove lib/snprintf.h.
59031         (Depends-on): Add stdio.
59032         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
59033         (Include): Use <stdio.h> instead of snprintf.h.
59034         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
59035         HAVE_DECL_SNPRINTF.
59036         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
59037         * lib/getaddrinfo.c: Likewise.
59038
59039         * modules/stdio: New file.
59040         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
59041         * lib/snprintf.h: Remove file.
59042         * lib/vsnprintf.h: Remove file.
59043         * lib/.cppi-disable: Remove snprintf.h.
59044         * m4/stdio_h.m4: New file.
59045         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
59046
59047 2007-02-20  Jim Meyering  <jim@meyering.net>
59048
59049         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
59050         used by e.g., mingw.  From Bruno Haible.
59051
59052 2007-02-19  Bruno Haible  <bruno@clisp.org>
59053
59054         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
59055         warnings.
59056         Reported by Ben Pfaff <blp@cs.stanford.edu>.
59057
59058 2007-02-19  Bruno Haible  <bruno@clisp.org>
59059
59060         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
59061         from mingw users.
59062
59063 2007-02-19  Bruno Haible  <bruno@clisp.org>
59064
59065         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
59066         warnings.
59067         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
59068
59069 2007-02-19  Jim Meyering  <jim@meyering.net>
59070
59071         Don't use FD after a successful "fdopendir (fd)".
59072         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
59073         Reset it by calling dirfd on the just-obtained DIR*.
59074
59075         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
59076         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
59077
59078 2007-02-18  Bruno Haible  <bruno@clisp.org>
59079
59080         * lib/readlink.c: Include <unistd.h>.
59081         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
59082         HAVE_READLINK.
59083         * modules/readlink (Depends-on): Add unistd.
59084         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59085         (Include): Add <unistd.h>.
59086
59087         * lib/getlogin_r.h: Remove file.
59088         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
59089         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
59090         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
59091         HAVE_DECL_GETLOGIN_R.
59092         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
59093         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59094         (Include): Use <unistd.h> instead of getlogin_r.h.
59095
59096         * lib/getcwd.h: Remove file.
59097         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
59098         * lib/xgetcwd.c: Likewise.
59099         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
59100         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
59101         * modules/getcwd (Files): Remove lib/getcwd.h.
59102         (Depends-on): Add unistd.
59103         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59104         (Include): Use <unistd.h> instad of getcwd.h.
59105
59106         * lib/ftruncate.c: Include <unistd.h> first.
59107         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
59108         Set HAVE_FTRUNCATE.
59109         * modules/ftruncate (Depends-on): Add unistd.
59110         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59111
59112         * lib/fchdir.c: Include <unistd.h> first.
59113         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
59114         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
59115         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
59116         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59117         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
59118
59119         * lib/dup2.c: Include <unistd.h> first.
59120         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
59121         HAVE_DUP2.
59122         * modules/dup2 (Depends-on): Add unistd.
59123         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59124
59125         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
59126         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
59127         REPLACE_CHOWN. Don't define chown as a macro here.
59128         * modules/chown (Depends-on): Add unistd.
59129         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59130
59131         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
59132         Add definition for GL_LINK_WARNING.
59133         (chown, dup2): New declarations.
59134         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
59135         link warning.
59136         (ftruncate): New declaration.
59137         (getcwd): New declaration, taken from old getcwd.h.
59138         (getlogin_r): New declaration, taken from old getlogin_r.h.
59139         (readlink): New declaration.
59140         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
59141         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
59142         (gl_PREREQ_UNISTD): Remove macro.
59143         (gl_UNISTD_MODULE_INDICATOR): New macro.
59144         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
59145         many new variables. Don't set UNISTD_H.
59146         * modules/unistd (Description): Change.
59147         (Depends-on): Add link-warning.
59148         (configure.ac): Update.
59149         (Makefile.am): Create unistd.h always. Substitute many new variables
59150         into it.
59151
59152 2007-02-18  Bruno Haible  <bruno@clisp.org>
59153
59154         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
59155         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
59156         HAVE_GETSUBOPT.
59157         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
59158         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
59159         * lib/getsubopt.h: Remove file.
59160         * modules/getsubopt (Files): Remove lib/getsubopt.h.
59161         (Depends-on): Add stdlib.
59162         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59163         (Includes): Use <stdlib.h> instead of getsubopt.h.
59164         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
59165         Set HAVE_GETSUBOPT.
59166         * lib/getsubopt.c: Don't include getsubopt.h.
59167
59168 2007-02-18  Bruno Haible  <bruno@clisp.org>
59169
59170         * modules/fchdir (Depends-on): Add dup2.
59171
59172 2007-02-18  Bruno Haible  <bruno@clisp.org>
59173
59174         * lib/stdlib_.h: Handle glibc's special invocation convention
59175         specially.
59176
59177 2007-02-18  Bruno Haible  <bruno@clisp.org>
59178
59179         * modules/stdlib-tests: New file.
59180         * tests/test-stdlib.c: New file.
59181
59182         * modules/mkstemp (Files): Remove lib/mkstemp.h.
59183         (Depends-on): Add stdlib.
59184         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59185         (Includes): Use <stdlib.h> instead of mkstemp.h.
59186         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
59187         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
59188         * lib/mkstemp.c: Don't include mkstemp.h.
59189         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
59190         * lib/stdlib--.h: Don't include mkstemp.h.
59191
59192         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
59193         (Depends-on): Add stdlib.
59194         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59195         (Includes): Use <stdlib.h> instead of mkdtemp.h.
59196         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
59197         HAVE_MKDTEMP.
59198         * lib/mkdtemp.c: Don't include mkdtemp.h.
59199         * lib/clean-temp.c: Don't include mkdtemp.h.
59200
59201         * modules/exit (Files): Remove lib/exit.h.
59202         (Depends-on): Add stdlib.
59203         (Makefile.am): Remove lib_SOURCES.
59204         (Include): Use <stdlib.h> instead of exit.h.
59205         * lib/argmatch.c: Don't include exit.h.
59206         * lib/execute.c: Likewise.
59207         * lib/pagealign_alloc.c: Likewise.
59208         * lib/pipe.c: Likewise.
59209         * lib/wait-process.c: Likewise.
59210         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
59211         * lib/exitfail.c: Likewise.
59212         * lib/savewd.c: Likewise.
59213         * lib/xsetenv.c: Likewise.
59214
59215         * modules/stdlib: New file.
59216         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
59217         and extra comments about mkstemp().
59218         * lib/exit.h: Remove file.
59219         * lib/mkdtemp.h: Remove file.
59220         * lib/mkstemp.h: Remove file.
59221         * m4/stdlib_h.m4: New file.
59222         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
59223
59224 2007-02-18  Bruno Haible  <bruno@clisp.org>
59225
59226         * modules/math-tests: New file.
59227         * tests/test-math.c: New file.
59228
59229         * modules/math: New file.
59230         * modules/mathl (Files): Remove lib/mathl.h.
59231         (Depends-on): Add math.
59232         (Makefile.am): Don't mention mathl.h.
59233         (Include): Use <math.h> instead of mathl.h.
59234         * lib/math_.h: New file.
59235         * lib/mathl.h: Remove file.
59236         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
59237         mathl.h.
59238         * lib/asinl.c: Likewise.
59239         * lib/atanl.c: Likewise.
59240         * lib/ceill.c: Likewise.
59241         * lib/cosl.c: Likewise.
59242         * lib/expl.c: Likewise.
59243         * lib/floorl.c: Likewise.
59244         * lib/frexpl.c: Likewise.
59245         * lib/ldexpl.c: Likewise.
59246         * lib/logl.c: Likewise.
59247         * lib/sincosl.c: Likewise.
59248         * lib/sinl.c: Likewise.
59249         * lib/sqrtl.c: Likewise.
59250         * lib/tanl.c: Likewise.
59251         * lib/trigl.c: Likewise.
59252         * m4/math_h.m4: New file.
59253         * MODULES.html.sh (Mathematics): Add math.
59254
59255 2007-02-17  Bruno Haible  <bruno@clisp.org>
59256
59257         * modules/wctype-tests: New file.
59258         * tests/test-wctype.c: New file.
59259
59260         * modules/wchar-tests: New file.
59261         * tests/test-wchar.c: New file.
59262
59263         * modules/unistd-tests: New file.
59264         * tests/test-unistd.c: New file.
59265
59266         * modules/time-tests: New file.
59267         * tests/test-time.c: New file.
59268
59269         * modules/sysexits-tests: New file.
59270         * tests/test-sysexits.c: New file.
59271
59272         * modules/sys_time-tests: New file.
59273         * tests/test-sys_time.c: New file.
59274
59275         * modules/sys_stat-tests: New file.
59276         * tests/test-sys_stat.c: New file.
59277
59278         * modules/sys_socket-tests: New file.
59279         * tests/test-sys_socket.c: New file.
59280
59281         * modules/sys_select-tests: New file.
59282         * tests/test-sys_select.c: New file.
59283
59284         * modules/string-tests: New file.
59285         * tests/test-string.c: New file.
59286
59287         * modules/stdbool-tests: New file.
59288         * tests/test-stdbool.c: New file.
59289
59290         * modules/netinet_in-tests: New file.
59291         * tests/test-netinet_in.c: New file.
59292
59293         * modules/inttypes-tests: New file.
59294         * tests/test-inttypes.c: New file.
59295
59296         * modules/fcntl-tests: New file.
59297         * tests/test-fcntl.c: New file.
59298
59299         * modules/byteswap-tests: New file.
59300         * tests/test-byteswap.c: New file.
59301
59302         * modules/arpa_inet-tests: New file.
59303         * tests/test-arpa_inet.c: New file.
59304
59305 2007-02-17  Bruno Haible  <bruno@clisp.org>
59306
59307         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
59308         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
59309         if the corresponding module is not enabled. Emit link warnings if
59310         the function is used nevertheless.
59311         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
59312         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
59313         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
59314         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
59315         * modules/inttypes (Depends-on): Add link-warning.
59316         (Makefile.am): Copy the contents of build-aux/link-warning.h into
59317         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
59318         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
59319         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
59320         * modules/imaxdiv (configure.ac): Likewise.
59321         * modules/strtoimax (configure.ac): Likewise.
59322         * modules/strtoumax (configure.ac): Likewise.
59323
59324 2007-02-17  Bruno Haible  <bruno@clisp.org>
59325
59326         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
59327         gl_STRING_MODULE_INDICATOR_DEFAULTS.
59328         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
59329         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
59330
59331 2007-02-17  Bruno Haible  <bruno@clisp.org>
59332
59333         * modules/link-warning: New file.
59334         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
59335         * lib/string_.h (GL_LINK_WARNING): Remove definition.
59336         * modules/string (Depends-on): Add link-warning.
59337         (Makefile.am): Copy the contents of build-aux/link-warning.h into
59338         string.h.
59339         * MODULES.html.sh (Support for building libraries and executables): Add
59340         link-warning.
59341
59342 2007-02-17  Bruno Haible  <bruno@clisp.org>
59343
59344         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
59345         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
59346         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
59347         long lines.
59348
59349 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
59350             Bruno Haible  <bruno@clisp.org>
59351
59352         * modules/tmpfile: New file.
59353         * lib/tmpfile.c: New file.
59354         * m4/tmpfile.m4: New file.
59355         * MODULES.html.sh (func_all_modules): New section "Input/output".
59356
59357 2007-02-15  Bruno Haible  <bruno@clisp.org>
59358
59359         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
59360         (supports_delete_on_close): New function.
59361         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
59362
59363 2007-02-14  Bruno Haible  <bruno@clisp.org>
59364
59365         * modules/mbspcasecmp-tests: New file.
59366         * tests/test-mbspcasecmp.sh: New file.
59367         * tests/test-mbspcasecmp.c: New file.
59368
59369         New module mbspcasecmp.
59370         * modules/mbspcasecmp: New file.
59371         * lib/mbspcasecmp.c: New file.
59372         * lib/string_.h (strncasecmp): Change warning message.
59373         (mbspcasecmp): New declaration.
59374         * m4/mbspcasecmp.m4: New file.
59375         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59376         GNULIB_MBSPCASECMP.
59377         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
59378         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
59379
59380 2007-02-14  Bruno Haible  <bruno@clisp.org>
59381
59382         * modules/mbsncasecmp-tests: New file.
59383         * tests/test-mbsncasecmp.sh: New file.
59384         * tests/test-mbsncasecmp.c: New file.
59385
59386         New module mbsncasecmp.
59387         * modules/mbsncasecmp: New file.
59388         * lib/mbsncasecmp.c: New file.
59389         * lib/string_.h (mbsncasecmp): New declaration.
59390         * m4/mbsncasecmp.m4: New file.
59391         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59392         GNULIB_MBSNCASECMP.
59393         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
59394         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
59395
59396 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
59397
59398         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
59399         Verify that it doesn't overlap with our flags.
59400         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
59401         do not have the desired effect in multibyte locales; instead, use
59402         mbscasecmp.
59403         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
59404         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
59405         we don't require GNU fnmatch ourselves (if our users require it, they
59406         should do so explicitly).
59407
59408         Fix regex code so it doesn't rely on strcasecmp.
59409         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
59410         Otherwise, include gnulib's langinfo.h.
59411         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
59412         undesirable behavior in non-C locales.  Instead, rely on localecharset.
59413         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
59414         * modules/regex (FILES): Remove m4/codeset.m4.
59415         (Depends-on): Add localcharset.  Remove strcase.
59416
59417 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59418
59419         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
59420         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
59421
59422 2007-02-13  Bruno Haible  <bruno@clisp.org>
59423
59424         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
59425         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59426
59427 2007-02-12  Bruno Haible  <bruno@clisp.org>
59428
59429         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
59430         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
59431         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
59432         time warning rather than a link error.
59433
59434 2007-02-12  Bruno Haible  <bruno@clisp.org>
59435
59436         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
59437         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
59438         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59439
59440 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
59441
59442         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
59443         args, not 2.
59444
59445 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
59446
59447         New module 'time', so that apps can include <time.h> as per
59448         POSIX and GNU instead of separate include files like time_r.h
59449         and timegm.h.  This implementation tries out a simpler approach
59450         for replacing decls in standard include files (as compared to
59451         the string module), somewhat as an experiment.
59452
59453         * config/srclist.txt: Comment out mktime.c for now.
59454         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
59455         since it doesn't apply any more.  Use generic wording instead.
59456         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
59457         'time'.
59458         * lib/time_.h, m4/time_h.m4, modules/time: New files.
59459         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
59460         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
59461         Don't include <sys/types.h>; no longer needed since we assume C89.
59462         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
59463         * lib/strftime.c: Likewise.
59464         * lib/time_r.c: Likewise.
59465         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
59466         * lib/nanosleep.c: Include <time.h> first, to check interface.
59467         * lib/strptime.c: Likewise.
59468         * lib/time_r.c: Likewise.
59469         * lib/timegm.c: Likewise.
59470         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
59471         needed.
59472         * lib/timegm.c: Don't include timegm.h; no longer needed.
59473         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
59474         time.h now handles any problems in that area.
59475         (struct timespec, nanosleep): Remove; time.h now arranges for these.
59476         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
59477         that time.h defines struct timespec.
59478         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
59479         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
59480         handles that.
59481         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
59482         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
59483         needed.  Set REPLACE_LOCALTIME.
59484         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
59485         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
59486         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
59487         nanosleep; time_h.m4 now does that.  Don't require
59488         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
59489         module handles this now.
59490         * modules/getdate (Depends-on): Remove timespec.  Add time.
59491         * modules/nanosleep (Depends-on): Likewise.
59492         * modules/stat-time (Depends-on): Likewise.
59493         * modules/nanosleep (Include): Include time.h, not timespec.h.
59494         * modules/strptime (Files): Remove lib/strptime.h.
59495         (Depends-on): Add extensions, time.
59496         (Include): Include time.h, not strptime.h.
59497         * modules/time_r (Files): Remove lib/time_r.h.
59498         (Depends-on): Add time.
59499         (Include): Include time.h, not time_r.h.
59500         * modules/timegm: Likewise.
59501         * modules/timespec (Description): Now does timespec-related decls
59502         of our own, instead of struct timespec itself.
59503         (Depends-on): Add time; remove extensions.
59504         (Maintainer): Add self.
59505         * modules/utimecmp (Depends-on): Add time; remove timespec.
59506         * modules/utimens (Depends-on): Likewise.
59507         * modules/xnanosleep (Depends-on): Likewise.
59508
59509 2007-02-11  Bruno Haible  <bruno@clisp.org>
59510
59511         * lib/c-strstr.c: Include allocsa.h.
59512         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
59513         * lib/c-strcasestr.c: Include allocsa.h.
59514         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
59515         * lib/strcasestr.c: Include allocsa.h.
59516         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
59517         * lib/mbsstr.c: Include allocsa.h.
59518         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
59519         allocsa/freesa instead of malloc/free.
59520         * lib/mbscasestr.c: Include allocsa.h.
59521         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
59522         allocsa/freesa instead of malloc/free.
59523         * modules/c-strstr (Depends-on): Add allocsa.
59524         * modules/c-strcasestr (Depends-on): Likewise.
59525         * modules/strcasestr (Depends-on): Likewise.
59526         * modules/mbsstr (Depends-on): Likewise.
59527         * modules/mbscasestr (Depends-on): Likewise.
59528
59529 2007-02-11  Bruno Haible  <bruno@clisp.org>
59530
59531         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
59532
59533         * modules/mbsspn-tests: New file.
59534         * tests/test-mbsspn.sh: New file.
59535         * tests/test-mbsspn.c: New file.
59536
59537 2007-02-11  Bruno Haible  <bruno@clisp.org>
59538
59539         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
59540
59541         * modules/mbspbrk-tests: New file.
59542         * tests/test-mbspbrk.sh: New file.
59543         * tests/test-mbspbrk.c: New file.
59544
59545 2007-02-11  Bruno Haible  <bruno@clisp.org>
59546
59547         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
59548         unneeded cast.
59549
59550         * modules/mbscspn-tests: New file.
59551         * tests/test-mbscspn.sh: New file.
59552         * tests/test-mbscspn.c: New file.
59553
59554 2007-02-11  Bruno Haible  <bruno@clisp.org>
59555
59556         * modules/mbscasecmp-tests: New file.
59557         * tests/test-mbscasecmp.sh: New file.
59558         * tests/test-mbscasecmp.c: New file.
59559
59560 2007-02-11  Bruno Haible  <bruno@clisp.org>
59561
59562         Ensure O(n) worst-case complexity of mbscasestr.
59563         * lib/mbscasestr.c: Include stdbool.h.
59564         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
59565         functions.
59566         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
59567         the bookkeeping indicates that it's worth it.
59568         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
59569
59570         * modules/mbscasestr-tests: New file.
59571         * tests/test-mbscasestr1.c: New file.
59572         * tests/test-mbscasestr2.sh: New file.
59573         * tests/test-mbscasestr2.c: New file.
59574         * tests/test-mbscasestr3.sh: New file.
59575         * tests/test-mbscasestr3.c: New file.
59576         * tests/test-mbscasestr4.sh: New file.
59577         * tests/test-mbscasestr4.c: New file.
59578         * m4/locale-tr.m4: New file.
59579
59580 2007-02-11  Bruno Haible  <bruno@clisp.org>
59581
59582         Ensure O(n) worst-case complexity of mbsstr.
59583         * lib/mbsstr.c: Include stdbool.h.
59584         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
59585         functions.
59586         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
59587         bookkeeping indicates that it's worth it.
59588         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
59589
59590         * modules/mbsstr-tests: New file.
59591         * tests/test-mbsstr1.c: New file.
59592         * tests/test-mbsstr2.sh: New file.
59593         * tests/test-mbsstr2.c: New file.
59594         * tests/test-mbsstr3.sh: New file.
59595         * tests/test-mbsstr3.c: New file.
59596         * m4/locale-fr.m4: New file.
59597
59598 2007-02-11  Bruno Haible  <bruno@clisp.org>
59599
59600         * lib/mbsrchr.c (mbsrchr): Fix bug.
59601
59602         * modules/mbsrchr-tests: New file.
59603         * tests/test-mbsrchr.sh: New file.
59604         * tests/test-mbsrchr.c: New file.
59605
59606 2007-02-11  Bruno Haible  <bruno@clisp.org>
59607
59608         * lib/mbschr.c (mbschr): Fix bug.
59609
59610         * modules/mbschr-tests: New file.
59611         * tests/test-mbschr.sh: New file.
59612         * tests/test-mbschr.c: New file.
59613         * m4/locale-zh.m4: New file.
59614
59615 2007-02-11  Bruno Haible  <bruno@clisp.org>
59616
59617         Support for copying multibyte string iterators.
59618         * lib/mbiter.h: Include <string.h>.
59619         (mbiter_multi_copy): New function.
59620         (mbi_copy): New macro.
59621         * lib/mbuiter.h: Include <string.h>.
59622         (mbuiter_multi_copy): New function.
59623         (mbui_copy): New macro.
59624
59625 2007-02-11  Bruno Haible  <bruno@clisp.org>
59626
59627         New module mbslen.
59628         * modules/mbslen: New file.
59629         * lib/mbslen.c: New file.
59630         * lib/string_.h (mbslen): New declaration.
59631         * m4/mbslen.m4: New file.
59632         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59633         GNULIB_MBSLEN.
59634         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
59635         * MODULES.html.sh (Internationalization functions): Add mbslen.
59636
59637 2007-02-11  Bruno Haible  <bruno@clisp.org>
59638
59639         Ensure O(n) worst-case complexity of strcasestr substitute.
59640         * lib/strcasestr.c: Include stdbool.h.
59641         (knuth_morris_pratt): New function.
59642         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
59643         bookkeeping indicates that it's worth it.
59644         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
59645
59646         * modules/strcasestr-tests: New file.
59647         * tests/test-strcasestr.c: New file.
59648
59649 2007-02-11  Bruno Haible  <bruno@clisp.org>
59650
59651         Ensure O(n) worst-case complexity of c_strcasestr.
59652         * lib/c-strcasestr.c: Include stdbool.h, string.h.
59653         (knuth_morris_pratt): New function.
59654         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
59655         the bookkeeping indicates that it's worth it.
59656         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
59657
59658         * modules/c-strcasestr-tests: New file.
59659         * tests/test-c-strcasestr.c: New file.
59660
59661 2007-02-11  Bruno Haible  <bruno@clisp.org>
59662
59663         Ensure O(n) worst-case complexity of c_strstr.
59664         * lib/c-strstr.c: Include stdbool.h, string.h.
59665         (knuth_morris_pratt): New function.
59666         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
59667         bookkeeping indicates that it's worth it.
59668         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
59669
59670         * lib/c-strstr.c: Complete rewrite for maintainability.
59671
59672         * modules/c-strstr-tests: New file.
59673         * tests/test-c-strstr.c: New file.
59674
59675 2007-02-11  Bruno Haible  <bruno@clisp.org>
59676
59677         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
59678         5.2.1 and earlier, whereby \055 was treated just like the range
59679         delimiter '-'.
59680         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
59681
59682 2007-02-08  Bruno Haible  <bruno@clisp.org>
59683
59684         * modules/regex (Depends-on): Add stdbool.
59685         Reported by Dalibor Topic <robilad@kaffe.org>.
59686
59687 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
59688
59689         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
59690         Prefer returning from main to exiting from it.
59691         Remove unnecessary parens after sizeof.
59692
59693 2007-02-05  Bruno Haible  <bruno@clisp.org>
59694
59695         New module mbssep.
59696         * modules/mbssep: New file.
59697         * lib/mbssep.c: New file.
59698         * lib/string_.h (strsep): Add a conditional link warning.
59699         (mbssep): New declaration.
59700         * m4/mbssep.m4: New file.
59701         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59702         GNULIB_MBSSEP.
59703         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
59704         * MODULES.html.sh (Internationalization functions): Add mbssep.
59705
59706 2007-02-05  Bruno Haible  <bruno@clisp.org>
59707
59708         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
59709         Optimize search in case of 1 delimiter.
59710
59711 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
59712
59713         * lib/acl.h: Include sys/types.h before sys/acl.h.
59714
59715 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
59716
59717         Merge upstream fix for glibc bugzilla #3957:
59718
59719         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
59720
59721         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
59722         bit for RE_HAT_LISTS_NOT_NEWLINE.
59723         (build_charclass_op): Remove bogus comment.
59724
59725 2007-02-05  Simon Josefsson  <simon@josefsson.org>
59726
59727         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
59728
59729 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
59730
59731         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
59732         * lib/memmem.c [!defined _LIBC]: Include config.h.
59733
59734 2007-02-04  Bruno Haible  <bruno@clisp.org>
59735
59736         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
59737         warning message.
59738
59739 2007-02-04  Bruno Haible  <bruno@clisp.org>
59740
59741         New module mbstok_r.
59742         * modules/mbstok_r: New file.
59743         * lib/mbstok_r.c: New file.
59744         * lib/string_.h (strtok_r): Change argument names to match the
59745         comments. Add a conditional link warning.
59746         (mbstok_r): New declaration.
59747         * m4/mbstok_r.m4: New file.
59748         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59749         GNULIB_MBSTOK_R.
59750         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
59751         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
59752
59753 2007-02-04  Bruno Haible  <bruno@clisp.org>
59754
59755         New module mbsspn.
59756         * modules/mbsspn: New file.
59757         * lib/mbsspn.c: New file.
59758         * lib/string_.h (strspn): Add a conditional link warning.
59759         (mbsspn): New declaration.
59760         * m4/mbsspn.m4: New file.
59761         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59762         GNULIB_MBSSPN.
59763         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
59764         * MODULES.html.sh (Internationalization functions): Add mbsspn.
59765
59766 2007-02-04  Bruno Haible  <bruno@clisp.org>
59767
59768         New module mbspbrk.
59769         * modules/mbspbrk: New file.
59770         * lib/mbspbrk.c: New file.
59771         * lib/string_.h (strpbrk): Add a conditional link warning.
59772         (mbspbrk): New declaration.
59773         * m4/mbspbrk.m4: New file.
59774         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59775         GNULIB_MBSPBRK.
59776         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
59777         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
59778
59779 2007-02-04  Bruno Haible  <bruno@clisp.org>
59780
59781         New module mbscspn.
59782         * modules/mbscspn: New file.
59783         * lib/mbscspn.c: New file.
59784         * lib/string_.h (strcspn): Add a conditional link warning.
59785         (mbscspn): New declaration.
59786         * m4/mbscspn.m4: New file.
59787         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59788         GNULIB_MBSCSPN.
59789         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
59790         * MODULES.html.sh (Internationalization functions): Add mbscspn.
59791
59792 2007-02-04  Bruno Haible  <bruno@clisp.org>
59793
59794         New module mbscasestr, reduced goal of strcasestr.
59795         * modules/mbscasestr: New file.
59796         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
59797         (mbscasestr): Renamed from strcasestr.
59798         * lib/strcasestr.c: Don't include mbuiter.h.
59799         (strcasestr): Remove support for multibyte locales.
59800         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
59801         Change the conditional link warning.
59802         (mbscasestr): New declaration.
59803         * m4/mbscasestr.m4: New file.
59804         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
59805         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
59806         REPLACE_STRCASESTR.
59807         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
59808         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
59809         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
59810         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
59811         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
59812         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
59813         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
59814         (Depends-on): Remove mbuiter.
59815         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
59816
59817 2007-02-04  Bruno Haible  <bruno@clisp.org>
59818
59819         Simplify handling of strncasecmp.
59820         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
59821         the conditional link warning.
59822         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
59823         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
59824         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
59825         * modules/strcase (configure.ac): Don't invoke
59826         gl_STRING_MODULE_INDICATOR.
59827         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
59828
59829 2007-02-04  Bruno Haible  <bruno@clisp.org>
59830
59831         New module mbscasecmp, reduced goal of strcasecmp.
59832         * modules/mbscasecmp: New file.
59833         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
59834         (mbscasecmp): Renamed from strcasecmp.
59835         * lib/strcasecmp.c: Don't include mbuiter.h.
59836         (strcasecmp): Remove support for multibyte locales.
59837         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
59838         Change the conditional link warning.
59839         (mbscasecmp): New declaration.
59840         * m4/mbscasecmp.m4: New file.
59841         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
59842         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
59843         REPLACE_STRCASECMP.
59844         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
59845         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59846         GNULIB_MBSCASECMP.
59847         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
59848         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
59849         * modules/strcase (Files): Remove m4/mbrtowc.m4.
59850         (Depends-on): Remove mbuiter.
59851         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
59852
59853 2007-02-04  Bruno Haible  <bruno@clisp.org>
59854
59855         New module mbsstr. Remove module strstr.
59856         * modules/mbsstr: New file.
59857         * modules/strstr: Remove file.
59858         * lib/mbsstr.c: Renamed from lib/strstr.c.
59859         (mbsstr): Renamed from strstr.
59860         * lib/string_.h (strstr): Remove declaration. Change the conditional
59861         link warning.
59862         (mbsstr): New declaration.
59863         * m4/mbsstr.m4: New file.
59864         * m4/strstr.m4: Remove file.
59865         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
59866         REPLACE_STRSTR.
59867         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
59868         Don't initialize GNULIB_STRSTR.
59869         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
59870         substitute GNULIB_STRSTR and REPLACE_STRSTR.
59871         * MODULES.html.sh (Internationalization functions): Add mbsstr.
59872         (Support for systems lacking ANSI C 89): Remove strstr.
59873
59874 2007-02-04  Bruno Haible  <bruno@clisp.org>
59875
59876         New module mbsrchr.
59877         * modules/mbsrchr: New file.
59878         * lib/mbsrchr.c: New file.
59879         * lib/string_.h (strrchr): Add a conditional link warning.
59880         (mbsrchr): New declaration.
59881         * m4/mbsrchr.m4: New file.
59882         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59883         GNULIB_MBSRCHR.
59884         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
59885         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
59886
59887 2007-02-04  Bruno Haible  <bruno@clisp.org>
59888
59889         New module mbschr.
59890         * modules/mbschr: New file.
59891         * lib/mbschr.c: New file.
59892         * lib/string_.h (strchr): Add a conditional link warning.
59893         (mbschr): New declaration.
59894         * m4/mbschr.m4: New file.
59895         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59896         GNULIB_MBSCHR.
59897         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
59898         * MODULES.html.sh (Internationalization functions): Add mbschr.
59899
59900 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
59901
59902         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
59903
59904         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
59905
59906 2007-02-04  Bruno Haible  <bruno@clisp.org>
59907
59908         New module description section 'configure.ac-early'.
59909         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
59910         (func_get_autoconf_early_snippet): New function.
59911         (func_import, func_create_testdir): Use it. Remove special cases for
59912         modules 'extensions' and 'lock'.
59913         * modules/extensions (configure.ac-early): Require
59914         gl_USE_SYSTEM_EXTENSIONS.
59915         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
59916
59917 2007-02-04  Bruno Haible  <bruno@clisp.org>
59918
59919         Make use of gcj-4.3's -fsource and -ftarget option.
59920         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
59921         and if so try the options -fsource and -ftarget.
59922         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
59923         source_version, ftarget_option, target_version arguments.
59924         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
59925         (is_envjavac_oldgcj_14_14_usable): Renamed from
59926         is_envjavac_gcj_14_14_usable.
59927         (is_envjavac_oldgcj_14_13_usable): Renamed from
59928         is_envjavac_gcj_14_13_usable.
59929         (is_gcj_present): Update.
59930         (is_gcj_43, is_gcj43_usable): New functions.
59931         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
59932         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
59933         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
59934         try the options -fsource and -ftarget.
59935
59936 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
59937
59938         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
59939         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
59940         larger value.
59941
59942 2007-02-03  Jim Meyering  <jim@meyering.net>
59943
59944         Give tools a better chance to allocate space for very large buffers.
59945         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
59946
59947         Make pwd and readlink work also when run with an unreadable parent dir
59948         on systems with openat support.
59949         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
59950         provided getcwd function, even when we have openat support.
59951         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
59952
59953 2007-02-02  Bruno Haible  <bruno@clisp.org>
59954
59955         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
59956         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
59957         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
59958         portability problems if one of these functions is only used on specific
59959         platforms.
59960         Reported by Paul Eggert.
59961
59962 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
59963
59964         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
59965         is causing more trouble than it's curing.
59966         * lib/regex_internal.h (__mempcpy): Remove.
59967         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
59968         (and make the code a tad smaller to boot).
59969         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
59970
59971 2007-02-02  Jim Meyering  <jim@meyering.net>
59972
59973         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
59974         section, not in the Makefile.am: one.
59975
59976 2007-02-02  Eric Blake  <ebb9@byu.net>
59977
59978         * lib/strchrnul.c: Always include config.h first.
59979
59980         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
59981         gnulib strstr is not necessary here.
59982
59983 2007-02-02  Simon Josefsson  <simon@josefsson.org>
59984
59985         * m4/socklen.m4: Fix typo.
59986
59987 2007-02-02  Eric Blake  <ebb9@byu.net>
59988
59989         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
59990         * modules/netinet_in (Makefile.am): Likewise.
59991
59992 2007-02-01  Bruno Haible  <bruno@clisp.org>
59993
59994         * lib/string_.h (GL_LINK_WARNING): New macro.
59995         (strcasecmp, strstr, strcasestr): If provided by the system,
59996         conditionally define as a macro that leads to a warning instead of to
59997         an error.
59998         (strncasecmp): Conditionally define as a macro that leads to a warning.
59999
60000 2007-02-01  Karl Berry  <karl@gnu.org>
60001
60002         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
60003
60004 2007-02-01  Bruno Haible  <bruno@clisp.org>
60005
60006         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
60007         renamings.
60008
60009 2007-02-01  Eric Blake  <ebb9@byu.net>
60010
60011         * modules/regex (Depends-on): Revert dependence on mempcpy.
60012         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
60013         module's definition of mempcpy.
60014         Reported by Paul Eggert.
60015
60016 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
60017
60018         * lib/string_.h: If the gnulib module XYZ is not present, undefine
60019         the symbol XYZ before redefining it.  This fixes a problem with
60020         programs that don't use XYZ, when compiled on systems that define
60021         XYZ to something else.
60022
60023 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
60024
60025         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
60026         occurs when "mkdir -m foo" creates a setgid directory that is (1)
60027         writeable to group or other and (2) is intended to have a special
60028         mode bit that is set or cleared.  In such a case, the directory
60029         should be neither group- nor other-writeable until the special
60030         mode bits are right.
60031
60032 2007-01-31  Eric Blake  <ebb9@byu.net>
60033
60034         * modules/mountlist (Depends-on): Add strstr.
60035
60036         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
60037         bug.
60038         * modules/string (Makefile.am): Remove redundant replacement.
60039         * modules/regex (Depends-on): Add mempcpy.
60040
60041 2007-01-31  Bruno Haible  <bruno@clisp.org>
60042
60043         New module description field 'Link'.
60044         * gnulib-tool (func_usage): Document --extract-link-directive.
60045         (sed_extract_prog): Recognize 'Link' directive.
60046         (func_get_link_directive): New function.
60047         (func_import): Show summary of link directives.
60048         Handle --extract-link-directive option.
60049         * modules/acl (Link): New section.
60050         * modules/clock-time (Link): New section.
60051         * modules/euidaccess (Link): New section.
60052         * modules/gettext (Link): New section.
60053         * modules/iconv (Link): New section.
60054         * modules/lock (Link): New section.
60055         * modules/nanosleep (Link): New section.
60056         * modules/readline (Link): New section.
60057
60058 2007-01-27  Bruno Haible  <bruno@clisp.org>
60059
60060         Enforce the use of gnulib modules for unportable <string.h> functions.
60061         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
60062         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
60063         (gl_HEADER_STRING_H_BODY): Require it.
60064         * lib/string_.h: If the gnulib module XYZ is not present, redefine
60065         the symbol XYZ to one that gives a link error.
60066         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
60067         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
60068         * modules/mempcpy (configure.ac): Likewise.
60069         * modules/memrchr (configure.ac): Likewise.
60070         * modules/stpcpy (configure.ac): Likewise.
60071         * modules/stpncpy (configure.ac): Likewise.
60072         * modules/strcase (configure.ac): Likewise.
60073         * modules/strcasestr (configure.ac): Likewise.
60074         * modules/strchrnul (configure.ac): Likewise.
60075         * modules/strdup (configure.ac): Likewise.
60076         * modules/strndup (configure.ac): Likewise.
60077         * modules/strnlen (configure.ac): Likewise.
60078         * modules/strpbrk (configure.ac): Likewise.
60079         * modules/strsep (configure.ac): Likewise.
60080         * modules/strstr (configure.ac): Likewise.
60081         * modules/strtok_r (configure.ac): Likewise.
60082
60083 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
60084
60085         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
60086
60087 2007-01-30  Jim Meyering  <jim@meyering.net>
60088
60089         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
60090
60091 2007-01-29  Bruno Haible  <bruno@clisp.org>
60092
60093         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
60094         * lib/execute.c: Likewise.
60095         * lib/pipe.c: Likewise.
60096         * lib/printf-args.h: Likewise.
60097         * lib/printf-args.c: Likewise.
60098         * lib/printf-parse.c: Likewise.
60099         * lib/vasnprintf.c: Likewise.
60100
60101 2007-01-29  Eric Blake  <ebb9@byu.net>
60102
60103         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
60104         declaration.
60105
60106 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
60107
60108         * lib/strptime.h (strptime): Use 'restrict' for args where
60109         POSIX requires this.
60110         * lib/strptime.c (strptime): Likewise.
60111         Change license notice from LGPL to GPL, since gnulib-tool will
60112         change this as needed.
60113         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
60114         defined.
60115         Include "strptime.h" first, to check interface.
60116         Do not #undef _LIBC and _NL_CURRENT.
60117         Do not include <stdlib.h>; no longer needed.
60118         Include "time_r.h" and declare ptime_locale_status
60119         only if _LIBC is not defined.
60120         (__P): Remove unused macro.
60121         (match_string): Bring back glibc version, but use it only if _LIBC
60122         is defined.
60123         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
60124         Remove unnecessary assertion and abort() call.
60125         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
60126         * m4/strptime.m4: Fix serial number comment.
60127         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
60128         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
60129         (Depends-on): Add time_r.
60130
60131 2007-01-29  Bruno Haible  <bruno@clisp.org>
60132
60133         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
60134         strptime.
60135         * modules/strptime (Depends-on): Add stdbool.
60136         * lib/strptime.h: Include <time.h> always. Add comments.
60137
60138 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
60139
60140         * modules/strptime: New file.
60141         * lib/strptime.h: New file.
60142         * lib/strptime.c: New file.
60143         * m4/strptime.m4: New file.
60144
60145 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
60146
60147         * MODULES.html.sh: New module mpsort.
60148         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
60149
60150         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
60151         a circularity problem with HP-UX ia64 reported by Bob Proulx in
60152         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
60153         All uses changed.
60154         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
60155         All uses changed.
60156         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
60157         to _Restrict_.
60158         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
60159         the parameter matches the prototype.
60160
60161 2007-01-28  Jim Meyering  <jim@meyering.net>
60162
60163         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
60164         sys/time.h here, reverting that part of the previous patch:
60165         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
60166
60167 2007-01-28  Bruno Haible  <bruno@clisp.org>
60168
60169         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
60170         value of $(SYS_TIME_H).
60171         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
60172         remove it conditionally, too. [added by Jim Meyering]
60173         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
60174         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
60175         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
60176         GETTIMEOFDAY_REPLACEMENT to 1.
60177
60178 2007-01-28  Bruno Haible  <bruno@clisp.org>
60179
60180         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
60181         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
60182         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
60183         Set UNISTD_H instead of UNISTD_H2.
60184         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
60185
60186 2007-01-28  Bruno Haible  <bruno@clisp.org>
60187
60188         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
60189         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
60190
60191 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60192
60193         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
60194         (func_create_testdir): Ensure C locale for `grep' and `tr'
60195         character ranges.
60196         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
60197         ACLOCAL_AMFLAGS parsing state machine.
60198
60199 2007-01-27  Bruno Haible  <bruno@clisp.org>
60200
60201         * modules/unistr/base: Update.
60202
60203 2007-01-27  Bruno Haible  <bruno@clisp.org>
60204
60205         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
60206         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
60207         * modules/unistr/u32-mbtouc-unsafe: Renamed from
60208         modules/unistr/u32-mbtouc.
60209         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
60210         * lib/unistr.h: Update.
60211         * lib/linebreak.c: Update.
60212         * modules/unistr/u32-mbtouc: Renamed from
60213         modules/unistr/u32-mbtouc-safe.
60214         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
60215         * lib/unistr.h: Update.
60216         * lib/unistr/u32-to-u8.c: Update.
60217         * lib/unistr/u32-to-u16.c: Update.
60218
60219 2007-01-27  Bruno Haible  <bruno@clisp.org>
60220
60221         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
60222         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
60223         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
60224         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
60225         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
60226         * modules/unistr/u16-mbtouc-unsafe: Renamed from
60227         modules/unistr/u16-mbtouc.
60228         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
60229         * lib/unistr.h: Update.
60230         * lib/linebreak.c: Update.
60231         * modules/linebreak: Update.
60232         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
60233         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
60234         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
60235         * modules/unistr/u16-mbtouc: Renamed from
60236         modules/unistr/u16-mbtouc-safe.
60237         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
60238         * lib/unistr.h: Update.
60239         * lib/unistr/u16-to-u8.c: Update.
60240         * modules/unistr/u16-to-u8: Update.
60241         * lib/unistr/u16-to-u32.c: Update.
60242         * modules/unistr/u16-to-u32: Update.
60243
60244 2007-01-27  Bruno Haible  <bruno@clisp.org>
60245
60246         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
60247         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
60248         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
60249         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
60250         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
60251         * modules/unistr/u8-mbtouc-unsafe: Renamed from
60252         modules/unistr/u8-mbtouc.
60253         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
60254         * lib/unistr.h: Update.
60255         * lib/striconveh.c: Update.
60256         * modules/striconveh: Update.
60257         * lib/linebreak.c: Update.
60258         * modules/linebreak: Update.
60259         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
60260         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
60261         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
60262         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
60263         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
60264         * lib/unistr.h: Update.
60265         * lib/striconveh.c: Update.
60266         * modules/striconveh: Update.
60267         * lib/unistr/u8-to-u16.c: Update.
60268         * modules/unistr/u8-to-u16: Update.
60269         * lib/unistr/u8-to-u32.c: Update.
60270         * modules/unistr/u8-to-u32: Update.
60271
60272 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60273
60274         Sync from Libtool.
60275         * lib/argz.c: Do not include strings.h nor memory.h, include
60276         string.h unconditionally.  Patch by Simon Josefsson.
60277
60278 2007-01-27  Bruno Haible  <bruno@clisp.org>
60279
60280         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
60281         from gl_HEADER_STRING_H_BODY.
60282         (gl_HEADER_STRING_H_BODY): Require it.
60283         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
60284         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
60285         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
60286         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
60287         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
60288         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
60289         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
60290         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
60291         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
60292         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
60293         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
60294         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
60295         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
60296         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
60297         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
60298
60299 2007-01-27  Bruno Haible  <bruno@clisp.org>
60300
60301         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
60302         check_PROGRAMS into noinst_PROGRAMS.
60303         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
60304         check_PROGRAMS in this case.
60305         (func_import): Set for_test to false.
60306         (func_create_testdir): Set for_test to true.
60307
60308 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
60309             Bruno Haible  <bruno@clisp.org>
60310
60311         * modules/strcasestr (Files): Remove lib/strcasestr.h.
60312         (Depends-on): Add string.
60313         (Includes): Use <string.h> instead of strcasestr.h.
60314         * modules/string (Makefile.am): Also substitute the value of
60315         REPLACE_STRCASESTR.
60316         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
60317         assume strcasestr is declared in <string.h> not <strings.h>. Also
60318         set REPLACE_STRCASESTR.
60319         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
60320         REPLACE_STRCASESTR.
60321         * lib/strcasestr.h: Remove file.
60322         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
60323         * lib/string_.h (strcasestr): New declaration.
60324
60325 2007-01-27  Bruno Haible  <bruno@clisp.org>
60326
60327         * lib/string_.h: Use 'extern'.
60328
60329 2007-01-27  Jim Meyering  <jim@meyering.net>
60330
60331         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
60332         of set-but-not-used local, "q".
60333
60334         * lib/mempcpy.c: Include <config.h> before <string.h>.
60335         This fixes a compilation error on HP-UX, due to the system's
60336         "restrict"-using mempcpy prototype.
60337
60338 2007-01-26  Bruno Haible  <bruno@clisp.org>
60339
60340         Small optimization.
60341         * lib/javacomp.c: Include c-strstr.h.
60342          (is_envjavac_gcj): Use c_strstr instead of strstr.
60343         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
60344
60345 2007-01-26  Bruno Haible  <bruno@clisp.org>
60346
60347         * MODULES.html.sh (Unicode string functions): Add the new modules.
60348
60349         * modules/uniconv/u32-strconv-to-locale: New file.
60350         * lib/uniconv/u32-strconv-to-locale.c: New file.
60351
60352         * modules/uniconv/u16-strconv-to-locale: New file.
60353         * lib/uniconv/u16-strconv-to-locale.c: New file.
60354
60355         * modules/uniconv/u8-strconv-to-locale: New file.
60356         * lib/uniconv/u8-strconv-to-locale.c: New file.
60357
60358         * modules/uniconv/u32-strconv-from-locale: New file.
60359         * lib/uniconv/u32-strconv-from-locale.c: New file.
60360
60361         * modules/uniconv/u16-strconv-from-locale: New file.
60362         * lib/uniconv/u16-strconv-from-locale.c: New file.
60363
60364         * modules/uniconv/u8-strconv-from-locale: New file.
60365         * lib/uniconv/u8-strconv-from-locale.c: New file.
60366
60367         * modules/uniconv/u32-strconv-to-enc: New file.
60368         * lib/uniconv/u32-strconv-to-enc.c: New file.
60369         * modules/uniconv/u32-strconv-to-enc-tests: New file.
60370         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
60371
60372         * modules/uniconv/u16-strconv-to-enc: New file.
60373         * lib/uniconv/u16-strconv-to-enc.c: New file.
60374         * lib/uniconv/u-strconv-to-enc.h: New file.
60375         * modules/uniconv/u16-strconv-to-enc-tests: New file.
60376         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
60377
60378         * modules/uniconv/u8-strconv-to-enc: New file.
60379         * lib/uniconv/u8-strconv-to-enc.c: New file.
60380         * modules/uniconv/u8-strconv-to-enc-tests: New file.
60381         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
60382
60383         * modules/uniconv/u32-strconv-from-enc: New file.
60384         * lib/uniconv/u32-strconv-from-enc.c: New file.
60385         * modules/uniconv/u32-strconv-from-enc-tests: New file.
60386         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
60387
60388         * modules/uniconv/u16-strconv-from-enc: New file.
60389         * lib/uniconv/u16-strconv-from-enc.c: New file.
60390         * modules/uniconv/u16-strconv-from-enc-tests: New file.
60391         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
60392
60393         * modules/uniconv/u8-strconv-from-enc: New file.
60394         * lib/uniconv/u8-strconv-from-enc.c: New file.
60395         * lib/uniconv/u-strconv-from-enc.h: New file.
60396         * modules/uniconv/u8-strconv-from-enc-tests: New file.
60397         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
60398
60399         * modules/uniconv/u32-conv-from-enc: New file.
60400         * lib/uniconv/u32-conv-from-enc.c: New file.
60401         * modules/uniconv/u32-conv-from-enc-tests: New file.
60402         * tests/uniconv/test-u32-conv-from-enc.c: New file.
60403
60404         * modules/uniconv/u16-conv-from-enc: New file.
60405         * lib/uniconv/u16-conv-from-enc.c: New file.
60406         * lib/uniconv/u-conv-from-enc.h: New file.
60407         * modules/uniconv/u16-conv-from-enc-tests: New file.
60408         * tests/uniconv/test-u16-conv-from-enc.c: New file.
60409
60410         * modules/uniconv/u8-conv-from-enc: New file.
60411         * lib/uniconv/u8-conv-from-enc.c: New file.
60412         * modules/uniconv/u8-conv-from-enc-tests: New file.
60413         * tests/uniconv/test-u8-conv-from-enc.c: New file.
60414
60415         * modules/uniconv/base: New file.
60416         * lib/uniconv.h: New file.
60417
60418 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
60419
60420         * doc/gnulib-tool.texi (Initial import): Update to match current
60421         behavior with strdup module.
60422         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
60423         * lib/memmem.h: Remove; all uses removed.  This is now done
60424         by <string.h>.
60425         * lib/mempcpy.h: Likewise.
60426         * lib/memrchr.h: Likewise.
60427         * lib/stpcpy.h: Likewise.
60428         * lib/stpncpy.h: Likewise.
60429         * lib/strcase.h: Likewise.
60430         * lib/strchrnul.h: Likewise.
60431         * lib/strdup.h: Likewise.
60432         * lib/strndup.h: Likewise.
60433         * lib/strnlen.h: Likewise.
60434         * lib/strpbrk.h: Likewise.
60435         * lib/strsep.h: Likewise.
60436         * lib/strstr.h: Likewise.
60437         * lib/strtok_r.h: Likewise.
60438         * lib/string_.h: New file.
60439         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
60440         Rely on <string.h> instead.
60441         * lib/canon-host.c: Likewise.
60442         * lib/chdir-long.c: Likewise.
60443         * lib/concatpath.c: Likewise.
60444         * lib/exclude.c: Likewise.
60445         * lib/fchdir.c: Likewise.
60446         * lib/getaddrinfo.c: Likewise.
60447         * lib/getcwd.c: Likewise.
60448         * lib/getsubopt.c: Likewise.
60449         * lib/glob.c: Likewise.
60450         * lib/hard-locale.c: Likewise.
60451         * lib/iconvme.c: Likewise.
60452         * lib/javacomp.c: Likewise.
60453         * lib/mempcpy.c: Likewise.
60454         * lib/memrchr.c: Likewise.
60455         * lib/regex_internal.h: Likewise.
60456         * lib/stpncpy.c: Likewise.
60457         * lib/strcasecmp.c: Likewise.
60458         * lib/strchrnul.c: Likewise.
60459         * lib/strdup.c: Likewise.
60460         * lib/striconv.c: Likewise.
60461         * lib/striconveh.c: Likewise.
60462         * lib/striconveha.c: Likewise.
60463         * lib/strncasecmp.c: Likewise.
60464         * lib/strndup.c: Likewise.
60465         * lib/strnlen.c: Likewise.
60466         * lib/strsep.c: Likewise.
60467         * lib/strstr.c: Likewise.
60468         * lib/strtok_r.c: Likewise.
60469         * lib/userspec.c: Likewise.
60470         * lib/w32spawn.h: Likewise.
60471         * lib/xstrndup.c: Likewise.
60472         * lib/mountlist.c (strstr): Remove decl.
60473         * m4/string_h.m4: New file.
60474         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
60475         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
60476         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
60477         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
60478         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
60479         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
60480         Set REPLACE_STRCASECMP if necessary.
60481         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
60482         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
60483         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
60484         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
60485         HAVE_DECL_STRDUP if necessary.
60486         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
60487         since gl_FUNC_STRNDUP does that now.
60488         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
60489         Check for decl here...
60490         (gl_PREREQ_STRNLEN): ... not here.
60491         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
60492         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
60493         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
60494         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
60495         necessary.
60496         * modules/string: New file.
60497         * modules/memmem (Files): Remove special-purpose include file.
60498         (Depends-on): Add string.
60499         (Include): Include <string.h>, not the removed file.
60500         * modules/mempcpy: Likewise.
60501         * modules/memrchr: Likewise.
60502         * modules/stpcpy: Likewise.
60503         * modules/stpncpy: Likewise.
60504         * modules/strcase: Likewise.
60505         * modules/strchrnul: Likewise.
60506         * modules/strdup: Likewise.
60507         * modules/strndup: Likewise.
60508         * modules/strnlen: Likewise.
60509         * modules/strpbrk: Likewise.
60510         * modules/strsep: Likewise.
60511         * modules/strstr: Likewise.
60512         * modules/strtok_r: Likewise.
60513         * tests/test-dirname.c: Don't include "strdup.h", since
60514         <string.h> now suffices.
60515         * tests/test-memmem.c: Don't include "memmem.h", since
60516         <string.h> now suffices.
60517
60518 2007-01-25  Bruno Haible  <bruno@clisp.org>
60519
60520         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
60521         *resultp is 0.
60522
60523         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
60524         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
60525         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
60526         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
60527
60528         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
60529         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
60530         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
60531         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
60532         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
60533         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
60534
60535 2007-01-24  Bruno Haible  <bruno@clisp.org>
60536
60537         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
60538         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
60539         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
60540         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
60541         gl_FUNC_FTS_CORE.
60542         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
60543         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
60544         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
60545         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
60546         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
60547         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
60548         gl_FUNC_FCHOWNAT.
60549         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
60550         gl_FUNC_STRFTIME.
60551         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
60552         Reported by Ralf Wildenhues.
60553
60554 2007-01-24  Bruno Haible  <bruno@clisp.org>
60555
60556         Drop AC_REQUIRE calls that are redundant with the module dependencies.
60557         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
60558         gl_GETADDRINFO.
60559         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
60560         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
60561         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
60562
60563 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
60564
60565         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
60566         Don't use 'exit'; just return from 'main'.
60567         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
60568
60569         * lib/fnmatch_.h: Readjust white space and comments to match
60570         glibc, to avoid spurious diffs.
60571
60572 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
60573
60574         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
60575         2004-12-01 change by Jakub Jelinek, since this code won't compile
60576         if !LIBC.  Problem reported by Bob Proulx.
60577
60578 2007-01-23  Bruno Haible  <bruno@clisp.org>
60579
60580         * lib/striconveh.c: Include c-strcaseeq.h.
60581         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
60582         * modules/striconveh (Depends-on): Add c-strcaseeq.
60583
60584 2007-01-23  Bruno Haible  <bruno@clisp.org>
60585
60586         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
60587
60588         * modules/c-strcaseeq: New file.
60589         * lib/c-strcaseeq.h: New file.
60590
60591         * modules/streq: New file.
60592         * lib/streq.h: New file.
60593
60594 2007-01-23  Bruno Haible  <bruno@clisp.org>
60595
60596         * modules/striconveha-tests: New file.
60597         * tests/test-striconveha.c: New file.
60598
60599         * lib/striconveha.h: Include <stdbool.h>.
60600         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
60601         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
60602         (mem_iconveha_notranslit): Renamed from mem_iconveha.
60603         (mem_iconveha): New function.
60604         (str_iconveha_notranslit): Renamed from str_iconveha.
60605         (str_iconveha): New function.
60606         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
60607         c-strcase.
60608
60609 2007-01-23  Bruno Haible  <bruno@clisp.org>
60610
60611         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
60612         encodings without forgiving before trying any encoding with handler.
60613         (str_iconveha): Try all encodings without forgiving before trying any
60614         encoding with handler.
60615
60616 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
60617
60618         Import the following changes from libc.
60619
60620         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
60621
60622         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
60623
60624         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
60625
60626         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
60627         normal_bracket label.
60628
60629         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
60630
60631         [BZ #361]
60632         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
60633         to normal_bracket after fetching the next character.
60634
60635 2007-01-22  Bruno Haible  <bruno@clisp.org>
60636
60637         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
60638         argument.
60639         * lib/striconveh.c (iconv_carefully_1): New function.
60640         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
60641         argument.
60642         (str_cd_iconveh): Update.
60643         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
60644         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
60645         * tests/test-striconveh.c (MAGIC): New macro.
60646         (new_offsets): New function.
60647         (main): Test call with and without offsets.
60648
60649 2007-01-22  Bruno Haible  <bruno@clisp.org>
60650
60651         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
60652         * modules/sys_select (Makefile.am): Likewise.
60653         * modules/sys_socket (Makefile.am): Likewise.
60654         * modules/sys_time (Makefile.am): Likewise.
60655
60656 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
60657
60658         * modules/gettimeofday (License): Change from GPL to LGPL, since
60659         gettimeofday is a library function.
60660
60661 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60662
60663         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
60664
60665 2007-01-21  Bruno Haible  <bruno@clisp.org>
60666
60667         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
60668
60669 2007-01-21  Bruno Haible  <bruno@clisp.org>
60670
60671         * modules/striconveha: New file.
60672         * lib/striconveha.h: New file.
60673         * lib/striconveha.c: New file.
60674         * MODULES.html.sh (Internationalization functions): Add striconveha.
60675         * lib/striconv.c (str_iconv): Optimize the case of an empty input
60676         string.
60677         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
60678
60679 2007-01-21  Bruno Haible  <bruno@clisp.org>
60680
60681         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
60682         * lib/striconveh.c (str_iconveh): Likewise.
60683
60684 2007-01-21  Bruno Haible  <bruno@clisp.org>
60685
60686         * lib/striconveh.h (mem_iconveh): New declaration.
60687         * lib/striconveh.c (mem_iconveh): New function.
60688         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
60689
60690 2007-01-21  Bruno Haible  <bruno@clisp.org>
60691
60692         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
60693
60694         * lib/striconveh.h (mem_cd_iconveh): Change specification.
60695         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
60696         original result buffer.
60697         (str_cd_iconveh): Update.
60698         * tests/test-striconveh.c (main): Update.
60699
60700         * lib/striconv.h (mem_cd_iconv): Change specification.
60701         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
60702         result buffer.
60703         (str_cd_iconv): Update.
60704         * tests/test-striconv.c (main): Update.
60705
60706 2007-01-21  Bruno Haible  <bruno@clisp.org>
60707
60708         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
60709
60710 2007-01-20  Jim Meyering  <jim@meyering.net>
60711
60712         * lib/userspec.c (parse_with_separator): If a user or group string
60713         starts with "+", skip the corresponding name-to-ID look-up, since
60714         such a look-up must fail: user and group names may not include "+".
60715
60716 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
60717
60718         * lib/poll.c: Include sys/time.h and time.h unconditionally,
60719         since we now assume the sys_time module.
60720         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
60721         check for sys/time.h; no longer needed.
60722         * modules/poll (Depends-on): Depend on sys_time.
60723
60724 2007-01-18  Bruno Haible  <bruno@clisp.org>
60725
60726         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
60727         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
60728
60729         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
60730         gettimeofday.
60731
60732         * tests/test-gettimeofday.c: Include <time.h>.
60733         (dummy): Remove variable.
60734
60735         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
60736         gl_HEADER_SYS_TIME_H.
60737         (gl_HEADER_SYS_TIME_H): New macro.
60738
60739         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
60740         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60741         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
60742         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
60743         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60744         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
60745         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
60746         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60747         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
60748         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
60749         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60750
60751         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
60752         last change; it caused a compilation error when cross-compiling to
60753         Cygwin.
60754
60755 2007-01-18  Jim Meyering  <jim@meyering.net>
60756
60757         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
60758         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
60759         than the race-prone "test -d sys || mkdir sys".
60760         (configure.ac): Use AC_PROG_MKDIR_P.
60761         * modules/sys_select: Likewise.
60762         * modules/sys_socket: Likewise.
60763         * modules/sys_time: Likewise.
60764
60765 2007-01-18  Eric Blake  <ebb9@byu.net>
60766
60767         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
60768         replace gettimeofday.
60769         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
60770         name, to avoid infinite recursion.
60771
60772 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
60773
60774         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
60775         module sys_time.
60776         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
60777         assume timespec.h defines struct timeval.
60778         * lib/settime.c: Likewise.
60779         * lib/utimens.c: Likewise.
60780         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
60781         since we now assume the gettimeofday module.
60782         * lib/tempname.c (__gen_tempname): Likewise.
60783         * lib/gettimeofday.h: Remove.
60784         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
60785         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
60786         Include <time.h>, for 'time()'.
60787         (localtime_buffer_addr): Also use this workaround if
60788         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
60789         to simplify the uses.  All uses changed.
60790         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
60791         that #undef is inside {}, and 'const' follows type name consistently.
60792         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
60793         (gettimeofday): Do not use the maximum possible value for
60794         tv->tv_usec, since that might break usages other than ls.c.
60795         Instead, we'll leave ls.c alone.  This undoes today's patch
60796         by Bruno.  Add a compile-time warning for 1s-clock resolution;
60797         we've never observed the problem but might as well keep the
60798         canary.
60799         * lib/nanosleep.c: Include timespec.h first, for interface check.
60800         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
60801         now assume the sys_time module.
60802         * lib/tempname.c: Likewise.
60803         * lib/timespec.h: Likewise.
60804         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
60805         needed.
60806         * lib/strftime.c: Likewise.
60807         * lib/timespec.h: Likewise.
60808         * lib/posixtm.c: Include posixtm.h first, for interface check.
60809         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
60810         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
60811         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
60812         * lib/sys_time_.h: New file.
60813         * lib/timespec.h (struct timespec): Use long int, not long.
60814         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
60815         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
60816         Remove obsolescent call to AC_HEADER_TIME.
60817         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
60818         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
60819         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
60820         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
60821         Likewise.
60822         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
60823         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
60824         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
60825         into the sys_time module.  Check for gettimeofday just once.
60826         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
60827         for gettimeofday signature to just check the signature.  Merely
60828         compile it, since linking doesn't test signature.  Improve test for
60829         whether gettimeofday.o is actually needed.
60830         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
60831         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
60832         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
60833         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60834         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
60835         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
60836         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
60837         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
60838         than worrying about sys/time.h.
60839         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
60840         Don't bother worrying about TIME_WITH_SYS_TIME.
60841         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
60842         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
60843         * m4/sys_time_h.m4: New file.
60844         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
60845         Don't include sys/time.h.  Return from main rather than exiting.
60846         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
60847         all uses changed.
60848         * modules/gethrxtime (Depends-on): Add sys_time.
60849         * modules/gettime (Depends-on): Likewise.
60850         * modules/gettimeofday (Depends-on): Likewise.
60851         * modules/nanosleep (Depends-on): Likewise.
60852         * modules/settime (Depends-on): Likewise.
60853         * modules/tempname (Depends-on): Likewise.
60854         * modules/utimens (Depends-on): Likewise.
60855         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
60856         (Include): Change back to <sys/time.h>.
60857         (Maintainer): Add self.
60858         * modules/sys_time: New file.
60859         * modules/tempname (Depends-on): Add gettimeofday.
60860         * tests/test-gettimeofday.c: Include <sys/time.h>
60861         rather than gettimeofday.h.
60862
60863 2007-01-17  Bruno Haible  <bruno@clisp.org>
60864
60865         * gnulib-tool (func_get_license): Revert last patch. Instead, let
60866         the license default to GPL.
60867         (func_create_testdir): Don't complain if a module is LGPL and its
60868         tests module depends on GPLed modules.
60869
60870 2007-01-17  Bruno Haible  <bruno@clisp.org>
60871
60872         * lib/gettimeofday.c (gettimeofday): Add code for the case
60873         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
60874         maximum possible value for tv->tv_usec, rather than the minimum one.
60875
60876 2005-10-08  Martin Lambers  <marlam@marlam.de>
60877 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
60878 2007-01-16  Bruno Haible  <bruno@clisp.org>
60879
60880         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
60881         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
60882         gl_FUNC_GETTIMEOFDAY.
60883         (Include): Add gettimeofday.h.
60884         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
60885         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
60886         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
60887         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
60888         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
60889         * lib/gettimeofday.h: New file.
60890         * lib/gettimeofday.c: Include <sys/timeb.h>.
60891         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
60892         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60893         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
60894         fall back on time().
60895
60896         * tests/test-gettimeofday.c: New file.
60897         * modules/gettimeofday-tests: New file.
60898
60899 2007-01-16  Eric Blake  <ebb9@byu.net>
60900
60901         * modules/fnmatch (Depends-on): Depend on wchar.
60902         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
60903         * m4/fnmatch.m4: Likewise.
60904         * modules/mbchar (Makefile.am): Assume <wchar.h>.
60905         * m4/mbchar.m4: Likewise.
60906         * modules/mbswidth (Depends-on): Depend on wchar.
60907         * lib/mbswidth.c: Assume <wchar.h>.
60908         * m4/mbswidth.m4: Likewise.
60909         * modules/quotearg (Depends-on): Depend on wchar.
60910         * lib/quotearg.c: Assume <wchar.h>.
60911         * m4/quotearg.m4: Likewise.
60912         * modules/regex (Depends-on): Depend on wchar.
60913         * lib/regex_internal.h: Assume <wchar.h>.
60914         * m4/regex.m4: Likewise.
60915         * modules/stdint (Depends-on): Depend on wchar.
60916         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
60917         * m4/stdint.m4: Likewise.
60918         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
60919         * modules/strftime (Depends-on): Depend on wchar.
60920         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
60921         * modules/strtol (Depends-on): Depend on wchar.
60922         * lib/strtol.c: Assume <wchar.h>.
60923         * modules/wcwidth (Depends-on): Depend on wchar.
60924         * lib/wcwidth.h: Assume <wchar.h>.
60925         * m4/wcwidth.m4: Likewise.
60926
60927 2007-01-16  Bruno Haible  <bruno@clisp.org>
60928
60929         * modules/csharpexec-script: New, created from...
60930         * modules/csharpexec: ... this.
60931
60932 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
60933
60934         * modules/javaexec-script: New, created from...
60935         * modules/javaexec: ... this.
60936
60937 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60938
60939         * modules/poll (Dependencies): Add sys_select.
60940
60941 2007-01-15  Jim Meyering  <jim@meyering.net>
60942
60943         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
60944         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
60945         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
60946         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
60947
60948 2007-01-15  Bruno Haible  <bruno@clisp.org>
60949
60950         * modules/striconveh: New file.
60951         * lib/striconveh.h: New file.
60952         * lib/striconveh.c: New file.
60953         * MODULES.html.sh (Internationalization functions): Add striconveh.
60954
60955         * modules/striconveh-tests: New file.
60956         * tests/test-striconveh.c: New file.
60957
60958 2007-01-15  Bruno Haible  <bruno@clisp.org>
60959
60960         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
60961         not from GNU libiconv or GNU libc.
60962
60963 2007-01-15  Bruno Haible  <bruno@clisp.org>
60964
60965         * doc/gnulib-intro.texi (Copyright): Explain the different license
60966         terms for module descriptions, autoconf macros, tests, documentation.
60967
60968 2007-01-14  Bruno Haible  <bruno@clisp.org>
60969
60970         * modules/striconv-tests: New file.
60971         * tests/test-striconv.c: New file.
60972
60973 2007-01-14  Bruno Haible  <bruno@clisp.org>
60974
60975         * modules/iconv-tests: New file.
60976         * tests/test-iconv.c: New file.
60977
60978 2007-01-14  Bruno Haible  <bruno@clisp.org>
60979
60980         * gnulib-tool (func_get_license): For test modules, use the license of
60981         the main module.
60982
60983 2007-01-14  Bruno Haible  <bruno@clisp.org>
60984
60985         * modules/iconv (Include): Clarify that <iconv.h> can only be included
60986         if iconv is found to exist.
60987
60988 2007-01-14  Bruno Haible  <bruno@clisp.org>
60989
60990         * modules/c-ctype-tests: New file.
60991         * tests/test-c-ctype.c: New file.
60992
60993 2007-01-14  Bruno Haible  <bruno@clisp.org>
60994
60995         * modules/binary-io-tests: New file.
60996         * tests/test-binary-io.sh: New file.
60997         * tests/test-binary-io.c: New file.
60998
60999 2007-01-14  Bruno Haible  <bruno@clisp.org>
61000
61001         * modules/array-oset-tests: New file.
61002         * tests/test-array_oset.c: New file.
61003
61004 2007-01-14  Bruno Haible  <bruno@clisp.org>
61005
61006         * modules/array-list-tests: New file.
61007         * tests/test-array_list.c: New file.
61008
61009 2007-01-14  Bruno Haible  <bruno@clisp.org>
61010
61011         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
61012         and make.
61013         Reported by Simon Josefsson in
61014         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
61015
61016 2007-01-14  Bruno Haible  <bruno@clisp.org>
61017
61018         * modules/allocsa-tests: New file.
61019         * tests/test-allocsa.c: New file.
61020
61021 2007-01-14  Bruno Haible  <bruno@clisp.org>
61022
61023         * modules/fchdir (Depends-on): Add absolute-header.
61024         * modules/unistd (Depends-on): Likewise.
61025
61026 2006-12-30  Bruno Haible  <bruno@clisp.org>
61027
61028         * modules/fchdir: New file.
61029         * modules/unistd (Files): Add lib/unistd_.h.
61030         (Makefile.am): Generate unistd.h from unistd_.h.
61031         * lib/fchdir.c: New file.
61032         * lib/dirent_.h: New file.
61033         * lib/unistd_.h: New file.
61034         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
61035         * m4/fchdir.m4: New file.
61036         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
61037         (gl_HEADER_UNISTD): Invoke it.
61038         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
61039         function.
61040         * lib/backupfile.c (opendir, closedir): Undefine.
61041         * lib/chown.c (open, close): Undefine.
61042         * lib/clean-temp.c (open, close): Undefine.
61043         * lib/copy-file.c (open, close): Undefine.
61044         * lib/execute.c (open, close): Undefine.
61045         * lib/fsusage.c (open, close): Undefine.
61046         * lib/gc-gnulib.c (open, close): Undefine.
61047         * lib/getcwd.c (opendir, closedir): Undefine.
61048         * lib/glob.c (opendir, closedir): Undefine.
61049         * lib/javacomp.c (open, close): Undefine.
61050         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
61051         * lib/openat-proc.c (open, close): Undefine.
61052         * lib/pagealign_alloc.c (open, close): Undefine.
61053         * lib/pipe.c (open, close): Undefine.
61054         * lib/progreloc.c (open, close): Undefine.
61055         * lib/savedir.c (opendir, closedir): Undefine.
61056         * lib/utime.c (open, close): Undefine.
61057         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
61058
61059 2007-01-10  Bruno Haible  <bruno@clisp.org>
61060
61061         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
61062
61063 2007-01-12  Eric Blake  <ebb9@byu.net>
61064
61065         Provide a robust <wchar.h>.  Further simplifications are now
61066         possible in other modules, but not included here.
61067         * modules/wchar: New module.
61068         * m4/wchar.m4: New file.
61069         * lib/wchar_.h: Likewise.
61070         * modules/mbchar (Depends-on): Depend on wchar, as the first use
61071         of the new module.
61072         * MODULES.html.sh (Extended multibyte and wide character utilities):
61073         New section.
61074
61075 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
61076
61077         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
61078         to a reasonable default for memory allocation.
61079         (xreadlink): Don't allocate a huge buffer, to work around a buggy
61080         file system that reports garbage st_size values for symlinks.
61081         Problem reported by Liyang Hu.
61082
61083 2007-01-11  Simon Josefsson  <simon@josefsson.org>
61084
61085         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
61086         Emacs .#* auto-save files).
61087
61088 2007-01-11  Bruno Haible  <bruno@clisp.org>
61089
61090         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
61091         directory.
61092
61093 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
61094
61095         Use @...@ consistently in lib/wctype_.h.
61096         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
61097         on it being set to 1 or 0.
61098         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
61099         go back to AC_SUBSTing it.
61100         * modules/wctype (Makefile.am): Undo previous change.
61101
61102 2007-01-10  Eric Blake  <ebb9@byu.net>
61103
61104         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
61105         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
61106         * modules/wctype (Makefile.am): Likewise.
61107         Reported by Chris McGuire.
61108
61109 2007-01-10  Jim Meyering  <jim@meyering.net>
61110
61111         fts.c: a small readability/maintainability improvement
61112         * lib/fts.c (fts_read): Make this code slightly more readable and
61113         maintainable by hoisting the "sp->fts_cur = p" assignments to
61114         immediately follow the statements that set P.  Derived from
61115         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
61116
61117 2007-01-10  Eric Blake  <ebb9@byu.net>
61118
61119         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
61120         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
61121         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
61122         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
61123         Reported by Chris McGuire.
61124
61125 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61126
61127         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
61128         in sed script.
61129
61130 2007-01-09  Bruno Haible  <bruno@clisp.org>
61131
61132         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
61133         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
61134         variables.
61135         (func_module): Use them.
61136
61137 2007-01-09  Bruno Haible  <bruno@clisp.org>
61138
61139         * modules/unistr/base: New file.
61140         * lib/unistr.h: New file.
61141
61142         * modules/unistr/u8-to-u16: New file.
61143         * lib/unistr/u8-to-u16.c: New file.
61144
61145         * modules/unistr/u8-to-u32: New file.
61146         * lib/unistr/u8-to-u32.c: New file.
61147
61148         * modules/unistr/u16-to-u8: New file.
61149         * lib/unistr/u16-to-u8.c: New file.
61150
61151         * modules/unistr/u16-to-u32: New file.
61152         * lib/unistr/u16-to-u32.c: New file.
61153
61154         * modules/unistr/u32-to-u8: New file.
61155         * lib/unistr/u32-to-u8.c: New file.
61156
61157         * modules/unistr/u32-to-u16: New file.
61158         * lib/unistr/u32-to-u16.c: New file.
61159
61160         * modules/unistr/u8-check: New file.
61161         * modules/unistr/u16-check: New file.
61162         * modules/unistr/u32-check: New file.
61163         * lib/unistr/u8-check.c: New file.
61164         * lib/unistr/u16-check.c: New file.
61165         * lib/unistr/u32-check.c: New file.
61166
61167         * modules/unistr/u8-chr: New file.
61168         * modules/unistr/u16-chr: New file.
61169         * modules/unistr/u32-chr: New file.
61170         * lib/unistr/u8-chr.c: New file.
61171         * lib/unistr/u16-chr.c: New file.
61172         * lib/unistr/u32-chr.c: New file.
61173
61174         * modules/unistr/u8-cmp: New file.
61175         * modules/unistr/u16-cmp: New file.
61176         * modules/unistr/u32-cmp: New file.
61177         * lib/unistr/u8-cmp.c: New file.
61178         * lib/unistr/u16-cmp.c: New file.
61179         * lib/unistr/u32-cmp.c: New file.
61180
61181         * modules/unistr/u8-cpy: New file.
61182         * modules/unistr/u16-cpy: New file.
61183         * modules/unistr/u32-cpy: New file.
61184         * lib/unistr/u8-cpy.c: New file.
61185         * lib/unistr/u16-cpy.c: New file.
61186         * lib/unistr/u32-cpy.c: New file.
61187         * lib/unistr/u-cpy.h: New file.
61188
61189         * modules/unistr/u8-cpy-alloc: New file.
61190         * modules/unistr/u16-cpy-alloc: New file.
61191         * modules/unistr/u32-cpy-alloc: New file.
61192         * lib/unistr/u8-cpy-alloc.c: New file.
61193         * lib/unistr/u16-cpy-alloc.c: New file.
61194         * lib/unistr/u32-cpy-alloc.c: New file.
61195         * lib/unistr/u-cpy-alloc.h: New file.
61196
61197         * modules/unistr/u8-endswith: New file.
61198         * modules/unistr/u16-endswith: New file.
61199         * modules/unistr/u32-endswith: New file.
61200         * lib/unistr/u8-endswith.c: New file.
61201         * lib/unistr/u16-endswith.c: New file.
61202         * lib/unistr/u32-endswith.c: New file.
61203         * lib/unistr/u-endswith.h: New file.
61204
61205         * modules/unistr/u8-mblen: New file.
61206         * modules/unistr/u16-mblen: New file.
61207         * modules/unistr/u32-mblen: New file.
61208         * lib/unistr/u8-mblen.c: New file.
61209         * lib/unistr/u16-mblen.c: New file.
61210         * lib/unistr/u32-mblen.c: New file.
61211
61212         * modules/unistr/u8-mbtouc: New file.
61213         * modules/unistr/u16-mbtouc: New file.
61214         * modules/unistr/u32-mbtouc: New file.
61215         * lib/unistr/u8-mbtouc.c: New file.
61216         * lib/unistr/u16-mbtouc.c: New file.
61217         * lib/unistr/u32-mbtouc.c: New file.
61218
61219         * modules/unistr/u8-mbtouc-safe: New file.
61220         * modules/unistr/u16-mbtouc-safe: New file.
61221         * modules/unistr/u32-mbtouc-safe: New file.
61222         * lib/unistr/u8-mbtouc-safe.c: New file.
61223         * lib/unistr/u16-mbtouc-safe.c: New file.
61224         * lib/unistr/u32-mbtouc-safe.c: New file.
61225
61226         * modules/unistr/u8-move: New file.
61227         * modules/unistr/u16-move: New file.
61228         * modules/unistr/u32-move: New file.
61229         * lib/unistr/u8-move.c: New file.
61230         * lib/unistr/u16-move.c: New file.
61231         * lib/unistr/u32-move.c: New file.
61232         * lib/unistr/u-move.h: New file.
61233
61234         * modules/unistr/u8-next: New file.
61235         * modules/unistr/u16-next: New file.
61236         * modules/unistr/u32-next: New file.
61237         * lib/unistr/u8-next.c: New file.
61238         * lib/unistr/u16-next.c: New file.
61239         * lib/unistr/u32-next.c: New file.
61240
61241         * modules/unistr/u8-prev: New file.
61242         * modules/unistr/u16-prev: New file.
61243         * modules/unistr/u32-prev: New file.
61244         * lib/unistr/u8-prev.c: New file.
61245         * lib/unistr/u16-prev.c: New file.
61246         * lib/unistr/u32-prev.c: New file.
61247
61248         * modules/unistr/u8-set: New file.
61249         * modules/unistr/u16-set: New file.
61250         * modules/unistr/u32-set: New file.
61251         * lib/unistr/u8-set.c: New file.
61252         * lib/unistr/u16-set.c: New file.
61253         * lib/unistr/u32-set.c: New file.
61254         * lib/unistr/u-set.h: New file.
61255
61256         * modules/unistr/u8-startswith: New file.
61257         * modules/unistr/u16-startswith: New file.
61258         * modules/unistr/u32-startswith: New file.
61259         * lib/unistr/u8-startswith.c: New file.
61260         * lib/unistr/u16-startswith.c: New file.
61261         * lib/unistr/u32-startswith.c: New file.
61262         * lib/unistr/u-startswith.h: New file.
61263
61264         * modules/unistr/u8-stpcpy: New file.
61265         * modules/unistr/u16-stpcpy: New file.
61266         * modules/unistr/u32-stpcpy: New file.
61267         * lib/unistr/u8-stpcpy.c: New file.
61268         * lib/unistr/u16-stpcpy.c: New file.
61269         * lib/unistr/u32-stpcpy.c: New file.
61270         * lib/unistr/u-stpcpy.h: New file.
61271
61272         * modules/unistr/u8-stpncpy: New file.
61273         * modules/unistr/u16-stpncpy: New file.
61274         * modules/unistr/u32-stpncpy: New file.
61275         * lib/unistr/u8-stpncpy.c: New file.
61276         * lib/unistr/u16-stpncpy.c: New file.
61277         * lib/unistr/u32-stpncpy.c: New file.
61278         * lib/unistr/u-stpncpy.h: New file.
61279
61280         * modules/unistr/u8-strcat: New file.
61281         * modules/unistr/u16-strcat: New file.
61282         * modules/unistr/u32-strcat: New file.
61283         * lib/unistr/u8-strcat.c: New file.
61284         * lib/unistr/u16-strcat.c: New file.
61285         * lib/unistr/u32-strcat.c: New file.
61286         * lib/unistr/u-strcat.h: New file.
61287
61288         * modules/unistr/u8-strchr: New file.
61289         * modules/unistr/u16-strchr: New file.
61290         * modules/unistr/u32-strchr: New file.
61291         * lib/unistr/u8-strchr.c: New file.
61292         * lib/unistr/u16-strchr.c: New file.
61293         * lib/unistr/u32-strchr.c: New file.
61294
61295         * modules/unistr/u8-strcmp: New file.
61296         * modules/unistr/u16-strcmp: New file.
61297         * modules/unistr/u32-strcmp: New file.
61298         * lib/unistr/u8-strcmp.c: New file.
61299         * lib/unistr/u16-strcmp.c: New file.
61300         * lib/unistr/u32-strcmp.c: New file.
61301
61302         * modules/unistr/u8-strcpy: New file.
61303         * modules/unistr/u16-strcpy: New file.
61304         * modules/unistr/u32-strcpy: New file.
61305         * lib/unistr/u8-strcpy.c: New file.
61306         * lib/unistr/u16-strcpy.c: New file.
61307         * lib/unistr/u32-strcpy.c: New file.
61308         * lib/unistr/u-strcpy.h: New file.
61309
61310         * modules/unistr/u8-strcspn: New file.
61311         * modules/unistr/u16-strcspn: New file.
61312         * modules/unistr/u32-strcspn: New file.
61313         * lib/unistr/u8-strcspn.c: New file.
61314         * lib/unistr/u16-strcspn.c: New file.
61315         * lib/unistr/u32-strcspn.c: New file.
61316         * lib/unistr/u-strcspn.h: New file.
61317
61318         * modules/unistr/u8-strdup: New file.
61319         * modules/unistr/u16-strdup: New file.
61320         * modules/unistr/u32-strdup: New file.
61321         * lib/unistr/u8-strdup.c: New file.
61322         * lib/unistr/u16-strdup.c: New file.
61323         * lib/unistr/u32-strdup.c: New file.
61324         * lib/unistr/u-strdup.h: New file.
61325
61326         * modules/unistr/u8-strlen: New file.
61327         * modules/unistr/u16-strlen: New file.
61328         * modules/unistr/u32-strlen: New file.
61329         * lib/unistr/u8-strlen.c: New file.
61330         * lib/unistr/u16-strlen.c: New file.
61331         * lib/unistr/u32-strlen.c: New file.
61332         * lib/unistr/u-strlen.h: New file.
61333
61334         * modules/unistr/u8-strmblen: New file.
61335         * modules/unistr/u16-strmblen: New file.
61336         * modules/unistr/u32-strmblen: New file.
61337         * lib/unistr/u8-strmblen.c: New file.
61338         * lib/unistr/u16-strmblen.c: New file.
61339         * lib/unistr/u32-strmblen.c: New file.
61340
61341         * modules/unistr/u8-strmbtouc: New file.
61342         * modules/unistr/u16-strmbtouc: New file.
61343         * modules/unistr/u32-strmbtouc: New file.
61344         * lib/unistr/u8-strmbtouc.c: New file.
61345         * lib/unistr/u16-strmbtouc.c: New file.
61346         * lib/unistr/u32-strmbtouc.c: New file.
61347
61348         * modules/unistr/u8-strncat: New file.
61349         * modules/unistr/u16-strncat: New file.
61350         * modules/unistr/u32-strncat: New file.
61351         * lib/unistr/u8-strncat.c: New file.
61352         * lib/unistr/u16-strncat.c: New file.
61353         * lib/unistr/u32-strncat.c: New file.
61354         * lib/unistr/u-strncat.h: New file.
61355
61356         * modules/unistr/u8-strncmp: New file.
61357         * modules/unistr/u16-strncmp: New file.
61358         * modules/unistr/u32-strncmp: New file.
61359         * lib/unistr/u8-strncmp.c: New file.
61360         * lib/unistr/u16-strncmp.c: New file.
61361         * lib/unistr/u32-strncmp.c: New file.
61362
61363         * modules/unistr/u8-strncpy: New file.
61364         * modules/unistr/u16-strncpy: New file.
61365         * modules/unistr/u32-strncpy: New file.
61366         * lib/unistr/u8-strncpy.c: New file.
61367         * lib/unistr/u16-strncpy.c: New file.
61368         * lib/unistr/u32-strncpy.c: New file.
61369         * lib/unistr/u-strncpy.h: New file.
61370
61371         * modules/unistr/u8-strnlen: New file.
61372         * modules/unistr/u16-strnlen: New file.
61373         * modules/unistr/u32-strnlen: New file.
61374         * lib/unistr/u8-strnlen.c: New file.
61375         * lib/unistr/u16-strnlen.c: New file.
61376         * lib/unistr/u32-strnlen.c: New file.
61377         * lib/unistr/u-strnlen.h: New file.
61378
61379         * modules/unistr/u8-strpbrk: New file.
61380         * modules/unistr/u16-strpbrk: New file.
61381         * modules/unistr/u32-strpbrk: New file.
61382         * lib/unistr/u8-strpbrk.c: New file.
61383         * lib/unistr/u16-strpbrk.c: New file.
61384         * lib/unistr/u32-strpbrk.c: New file.
61385         * lib/unistr/u-strpbrk.h: New file.
61386
61387         * modules/unistr/u8-strrchr: New file.
61388         * modules/unistr/u16-strrchr: New file.
61389         * modules/unistr/u32-strrchr: New file.
61390         * lib/unistr/u8-strrchr.c: New file.
61391         * lib/unistr/u16-strrchr.c: New file.
61392         * lib/unistr/u32-strrchr.c: New file.
61393
61394         * modules/unistr/u8-strspn: New file.
61395         * modules/unistr/u16-strspn: New file.
61396         * modules/unistr/u32-strspn: New file.
61397         * lib/unistr/u8-strspn.c: New file.
61398         * lib/unistr/u16-strspn.c: New file.
61399         * lib/unistr/u32-strspn.c: New file.
61400         * lib/unistr/u-strspn.h: New file.
61401
61402         * modules/unistr/u8-strstr: New file.
61403         * modules/unistr/u16-strstr: New file.
61404         * modules/unistr/u32-strstr: New file.
61405         * lib/unistr/u8-strstr.c: New file.
61406         * lib/unistr/u16-strstr.c: New file.
61407         * lib/unistr/u32-strstr.c: New file.
61408         * lib/unistr/u-strstr.h: New file.
61409
61410         * modules/unistr/u8-strtok: New file.
61411         * modules/unistr/u16-strtok: New file.
61412         * modules/unistr/u32-strtok: New file.
61413         * lib/unistr/u8-strtok.c: New file.
61414         * lib/unistr/u16-strtok.c: New file.
61415         * lib/unistr/u32-strtok.c: New file.
61416         * lib/unistr/u-strtok.h: New file.
61417
61418         * modules/unistr/u8-uctomb: New file.
61419         * modules/unistr/u16-uctomb: New file.
61420         * modules/unistr/u32-uctomb: New file.
61421         * lib/unistr/u8-uctomb.c: New file.
61422         * lib/unistr/u16-uctomb.c: New file.
61423         * lib/unistr/u32-uctomb.c: New file.
61424
61425         * MODULES.html.sh (Unicode string functions): Add the new modules.
61426
61427 2007-01-08  Bruno Haible  <bruno@clisp.org>
61428
61429         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
61430         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
61431         subdirectories.
61432
61433 2007-01-08  Karl Berry  <karl@gnu.org>
61434
61435         * doc/error.texi: mention that main() fns must set program_name
61436         when progname is used.
61437
61438 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
61439
61440         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
61441         WCTYPE_H is empty, for the benefit of builds from non-distclean
61442         directories.  Problem reported by Eric Blake in
61443         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
61444
61445 2007-01-08  Bruno Haible  <bruno@clisp.org>
61446
61447         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
61448         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
61449         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
61450         PROVIDE_CANONICALIZE_FILENAME_MODE.
61451         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
61452
61453 2007-01-08  Bruno Haible  <bruno@clisp.org>
61454
61455         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
61456         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
61457         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
61458         * lib/fts.c: Likewise.
61459         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
61460
61461 2006-12-25  Bruno Haible  <bruno@clisp.org>
61462
61463         * modules/utf8-ucs4-safe: New file.
61464         * lib/utf8-ucs4-safe.h: New file.
61465         * lib/unistr/utf8-ucs4-safe.c: New file.
61466
61467         * modules/utf16-ucs4-safe: New file.
61468         * lib/utf16-ucs4-safe.h: New file.
61469         * lib/unistr/utf16-ucs4-safe.c: New file.
61470
61471         * MODULES.html.sh (Unicode string functions): Add the new modules.
61472
61473 2007-01-08  Bruno Haible  <bruno@clisp.org>
61474
61475         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
61476         (Depends-on): Add unitypes.
61477         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
61478         (u8_mbtouc_aux): Move out to separate file.
61479         (u8_mbtouc): Use ucs4_t, uint8_t types.
61480         * lib/unistr/utf8-ucs4.c: New file.
61481
61482         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
61483         (Depends-on): Add unitypes.
61484         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
61485         (u16_mbtouc_aux): Move out to separate file.
61486         (u16_mbtouc): Use ucs4_t, uint16_t types.
61487         * lib/unistr/utf16-ucs4.c: New file.
61488
61489         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
61490         (Depends-on): Add unitypes.
61491         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
61492         (u8_uctomb_aux): Move out to separate file.
61493         (u8_uctomb): Use ucs4_t, uint8_t types.
61494         * lib/unistr/ucs4-utf8.c: New file.
61495
61496         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
61497         (Depends-on): Add unitypes.
61498         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
61499         (u16_uctomb_aux): Move out to separate file.
61500         (u16_uctomb): Use ucs4_t, uint16_t types.
61501         * lib/unistr/ucs4-utf16.c: New file.
61502
61503 2006-12-25  Bruno Haible  <bruno@clisp.org>
61504
61505         * modules/unitypes: New file.
61506         * lib/unitypes.h: New file.
61507         * MODULES.html.sh (func_all_modules): New section "Unicode string
61508         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
61509         this section. Add unitypes.
61510
61511 2007-01-08  Bruno Haible  <bruno@clisp.org>
61512
61513         Avoid variable names that conflict with those from libtool.
61514         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
61515         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
61516         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
61517         library_names_spec to acl_library_names_spec, hardcode_* to
61518         acl_hardcode_*.
61519         Reported by Ralf Wildenhues.
61520
61521 2007-01-08  Bruno Haible  <bruno@clisp.org>
61522
61523         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
61524         definition.
61525         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
61526         definition.
61527         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
61528         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
61529         definition.
61530         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
61531         definition.
61532         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
61533         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
61534         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
61535         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
61536         definition.
61537         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
61538         definition.
61539         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
61540         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
61541         GC_USE_<algorithm>.
61542         * lib/gc-libgcrypt.c: Likewise.
61543         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
61544         * modules/gc-arctwo (configure.ac): Likewise.
61545         * modules/gc-des (configure.ac): Likewise.
61546         * modules/gc-hmac-md5 (configure.ac): Likewise.
61547         * modules/gc-hmac-sha1 (configure.ac): Likewise.
61548         * modules/gc-md2 (configure.ac): Likewise.
61549         * modules/gc-md4 (configure.ac): Likewise.
61550         * modules/gc-md5 (configure.ac): Likewise.
61551         * modules/gc-random (configure.ac): Likewise.
61552         * modules/gc-rijndael (configure.ac): Likewise.
61553         * modules/gc-sha1 (configure.ac): Likewise.
61554
61555 2007-01-08  Bruno Haible  <bruno@clisp.org>
61556
61557         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
61558         macro definition.
61559         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
61560         definition.
61561         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
61562         definition.
61563         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
61564         * modules/fcntl-safer (configure.ac): Likewise.
61565         * modules/fopen-safer (configure.ac): Likewise.
61566         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
61567         GNULIB_FWRITEERROR macro definition.
61568
61569 2007-01-08  Bruno Haible  <bruno@clisp.org>
61570
61571         * m4/gnulib-common.m4: New file.
61572         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
61573         (func_get_filelist): Add m4/gnulib-common.m4.
61574
61575 2007-01-08  Bruno Haible  <bruno@clisp.org>
61576
61577         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
61578         command.
61579
61580 2007-01-08  Jim Meyering  <jim@meyering.net>
61581
61582         Use a more robust test for a "can't happen" condition.
61583         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
61584         narrowed the st_size value.  Presuming the "can't happen" condition
61585         is true, that narrowing could conceivably convert an invalid st_size
61586         value into a valid one.  Instead, use a change based on Matthew
61587         Woehlke's original patch.
61588
61589         Slight readability improvement: use an assert-like macro
61590         in place of literal "abort ()" uses.
61591         * lib/fts.c (fts_assert): Define.
61592         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
61593         Use this macro instead of a bare 'abort'.
61594
61595 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
61596
61597         Don't worry about using IRIX 5.3's wctype.h broken definitions;
61598         simply work around them.
61599         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
61600         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
61601         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
61602         declaring.
61603         Don't bother to define as macros, since the standard doesn't require it.
61604         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
61605         longer worry about IRIX 5.3.
61606         (HAVE_WCTYPE_CTMP_BUG): Remove.
61607
61608 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
61609
61610         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
61611         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
61612         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
61613         Problems reported by Georg Schwarz for IRIX 5.3.
61614
61615         * gnulib-tool (autoconf_minversion): Take the maximum version number
61616         found, not the minimum.  Problem reported by James Youngman.
61617
61618 2007-01-03  Karl Berry  <karl@gnu.org>
61619
61620         * doc/error.texi: new file, explaining interaction with progname.
61621         * doc/gnulib.texi: include it.  Update copyright.
61622
61623 2007-01-03  Simon Josefsson  <simon@josefsson.org>
61624
61625         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
61626         AC_CANONICAL_HOST, to improve autobuild outputs.
61627
61628 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
61629             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
61630
61631         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
61632         sockets, server sockets, and other file descriptors.  Count errors
61633         to compute the return value.  Reorder the code a bit to be easier
61634         to follow.  Don't set event bits that were not requested (except
61635         POLLERR and POLLHUP).
61636
61637 2007-01-01  Bruno Haible  <bruno@clisp.org>
61638
61639         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
61640
61641 2007-01-03  Jim Meyering  <jim@meyering.net>
61642
61643         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
61644
61645 2007-01-02  Bruno Haible  <bruno@clisp.org>
61646
61647         * modules/settime (Include): Require timespec.h.
61648         * modules/nanosleep (Include): Likewise.
61649
61650 2007-01-01  Bruno Haible  <bruno@clisp.org>
61651
61652         * gnulib-tool (func_emit_copyright_notice): Bump year.
61653         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
61654
61655 2007-01-01  Bruno Haible  <bruno@clisp.org>
61656
61657         Improve support for OpenBSD.
61658         * build-aux/config.rpath (libname_spec): Export.
61659         (library_names_spec): New variable. Export.
61660         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
61661         library_names_spec from the config.rpath output. Locate shared library
61662         through the name pattern in library_names_spec.
61663
61664 2007-01-01  Eric Blake  <ebb9@byu.net>
61665
61666         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
61667
61668 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
61669
61670         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
61671         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
61672         assume the C locale, and avoid an "eval" that could cause trouble.
61673         Problem with SORT reported by Bob Proulx.
61674
61675         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
61676         Define.  Trivial patch from Henning Nielsen Lund, originally
61677         sent to bug-grep@gnu.org today.
61678
61679 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
61680
61681         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
61682         struct stat.  Problem reported by Henning Nielsen Lund.
61683         * lib/acl.c: Include acl.h first, to check interface.  Don't
61684         bother to include sys/types.h and sys/stat.h again.
61685
61686 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
61687
61688         Import the following change from libc; problem reported by
61689         Sven Verdoolaege.
61690
61691         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
61692
61693         [BZ #1373]
61694         * lib/argp.h: Remove __NTH for __argp_usage inline function.
61695
61696 2006-12-28  Jim Meyering  <jim@meyering.net>
61697
61698         * build-aux/announce-gen: Do not assume that the package
61699         builds any of tar.gz, tar.bz2, and .xdelta files.
61700         Suggestion from Simon Josefsson.
61701
61702 2006-12-28  Simon Josefsson  <simon@josefsson.org>
61703
61704         * modules/announce-gen: New file.
61705
61706 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
61707
61708         * lib/mbchar.h: Just include <wctype.h>; the wctype module
61709         handles its gotchas now.
61710         * lib/mbswidth.c: Likewise.
61711         * lib/wcwidth.h: Likewise.
61712         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
61713         and iswcntrl; the wctype module does this stuff now.
61714         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
61715         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
61716         * modules/mbchar (Depends-on): Add wctype.
61717         * modules/mbswidth (Depends-on): Likewise.
61718         * modules/wcwidth (Depends-on): Likewise.
61719
61720 2006-12-27  Eric Blake  <ebb9@byu.net>
61721
61722         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
61723         module uses more than what <wctype.h> is required to provide.
61724
61725 2006-12-26  Eric Blake  <ebb9@byu.net>
61726
61727         * gnulib-tool (sed_extract_prog): Avoid space-tab.
61728
61729 2006-12-26  Eric Blake  <ebb9@byu.net>
61730
61731         * modules/absolute-header: New module.
61732         * modules/fcntl (Depends-on): Depend on it.
61733         * modules/inttypes (Depends-on): Likewise.
61734         * modules/stdint (Depends-on): Likewise.
61735         * modules/sys_stat (Depends-on): Likewise.
61736         * modules/wctype (Depends-on): Likewise.
61737         * MODULES.html.sh (Support for building libraries and
61738         executables): Document it.
61739
61740 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
61741
61742         * gnulib-tool (SED): Remove, undoing previous change.
61743         The problem was that it broke coreutils on Solaris, because
61744         "sed --posix" leaked into a makefile.
61745         (sed): New alias, if 'alias' and GNU sed.
61746
61747 2006-12-24  Jim Meyering  <jim@meyering.net>
61748
61749         Work around an fchownat bug in glibc-2.4:
61750         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
61751         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
61752         in spite of the -P option.
61753         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
61754         New macros.
61755         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
61756         * modules/openat (Files): Add lib/fchownat.c.
61757         * lib/openat.c (fchownat): Don't define here.  Move to...
61758         * lib/fchownat.c: ...this new file.
61759
61760 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
61761
61762         Fix bug reported by Bruno Haible in
61763         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
61764         where quotearg.c didn't compile on Mac OS X 10.2 because it
61765         lacks <wchar.h> and wint_t.
61766         * lib/wctype_.h (__wctype_wint_t): New type.
61767         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
61768         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
61769         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
61770         Arg is now of type __wctype_wint_t, not wint_t.
61771         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
61772         substitute HAVE_WINT_T.
61773         * modules/wctype (Files): Add m4/wint_t.m4.
61774         (wctype.h): Substitute HAVE_WINT_T.
61775
61776 2006-12-23  Bruno Haible  <bruno@clisp.org>
61777
61778         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
61779
61780 2006-12-23  Bruno Haible  <bruno@clisp.org>
61781
61782         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
61783         S_ISLNK.
61784         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
61785         mingw.
61786
61787 2006-12-22  Bruno Haible  <bruno@clisp.org>
61788
61789         * lib/copy-file.c: Include acl.h.
61790         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
61791         Close the file descriptors only after being done with copy_acl.
61792         * modules/copy-file (Depends-on): Add acl.
61793
61794 2006-12-22  Bruno Haible  <bruno@clisp.org>
61795
61796         * gnulib-tool (SED): New variable.
61797         Use $SED instead of sed everywhere.
61798
61799 2006-12-22  Bruno Haible  <bruno@clisp.org>
61800
61801         * modules/no-c++: New file.
61802         * m4/no-c++.m4: New file.
61803         * MODULES.html.sh (Support for building libraries and executables):
61804         Add no-c++.
61805
61806 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
61807
61808         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
61809         Include <limits.h>, and use its INT_MAX to rewrite the
61810         j loop so that it does not overflow 'int'.  Problem reported by
61811         Ralf Wildenhues in
61812         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
61813         Play it safe by shifting left by 1 rather than multiplying by 2,
61814         as GCC is less likely to optimize this away when the value
61815         is signed (when it assumes overflow leads to undefined behavior).
61816         Also, don't assume time_t uses two's complement.
61817
61818 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
61819
61820         * MODULES.html.sh: New module wctype.
61821         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
61822         * lib/fnmatch.c: Don't bother to include <wchar.h> before
61823         <wctype.h>, since the new wctype module should fix this.
61824         * lib/quotearg.c: Include <wctype.h> unconditionally, since
61825         the wctype module should arrange for it.
61826         * lib/regex_internal.h: Likewise.
61827         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
61828         since the wctype module should handle this now.
61829         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
61830         * modules/fnmatch (Depends-on): Add wctype.
61831         * modules/quotearg (Depends-on): Likewise.
61832         * modules/regex (Depends-on): Likewise.
61833
61834 2006-12-19  Bruno Haible  <bruno@clisp.org>
61835
61836         * lib/strdup.h [C++]: Wrap definitions in extern "C".
61837         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
61838
61839 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61840
61841         * modules/savewd (Depends-on): Fix dependency on fcntl.
61842
61843 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
61844
61845         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
61846         conforms to C99, rather than relying on the user's environment
61847         setting of STDINT_H.
61848
61849 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
61850         and Eric Blake  <ebb9@byu.net>
61851
61852         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
61853         This is more consistent with the other defines here.
61854         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
61855         Port to z/OS.  Problem reported by Paul Gilmartin.
61856         Change local vars to use gl_ prefix rather than ac_.
61857         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
61858         with other defines.
61859         * modules/double-slash-root: New module.
61860         * modules/dirname (Files): Remove m4/double-slash-root.m4.
61861         (Depends-on): Add double-slash-root.
61862         * MODULES.html.sh (File system functions): Mention new module.
61863
61864 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
61865
61866         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
61867         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
61868         This is for the benefit of gzip, which doesn't do i18n.
61869
61870 2006-12-12  Jim Meyering  <jim@meyering.net>
61871
61872         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
61873         Reported by Andreas Schwab <schwab@suse.de>.
61874
61875 2006-12-12  Bruno Haible  <bruno@clisp.org>
61876
61877         Merge these changes.
61878         2006-09-05  Bruno Haible  <bruno@clisp.org>
61879         * lib/iconvme.c (iconv_string): No need to save and restore errno when
61880         iconv_alloc succeeded.
61881         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
61882         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
61883         test for " && dest " at the end - dest is always != NULL there. Call
61884         iconv with 4xNULL arguments initially, to reset the state. Call iconv
61885         with 2xNULL arguments, also to flush the state storage. Handle the
61886         IRIX iconv behaviour. Realloc the final result, to throw away unused
61887         memory.
61888
61889 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
61890
61891         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
61892         and fchmodat unconditionally, since glibc 2.4 has them.
61893         Problem reported by Arkadiusz Miskiewicz.
61894
61895 2006-12-10  Bruno Haible  <bruno@clisp.org>
61896
61897         * gnulib-tool (func_import): Show the include files only for those
61898         modules that are copied and specified.
61899         Reported by Karl Berry.
61900
61901 2006-12-08  Jim Meyering  <jim@meyering.net>
61902
61903         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
61904         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
61905
61906         * build-aux/announce-gen: Add two new options, both optional:
61907         --bootstrap-tools=TOOL_LIST
61908               a comma-separated list of tools, e.g.,
61909               autoconf,automake,bison,gnulib
61910         --gnulib-snapshot-date=DATE
61911               if gnulib is in the bootstrap tool list,
61912               then report this as the snapshot date.
61913               If not specified, use the current date/time.
61914               If you specify a date here, be sure it's UTC.
61915
61916 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61917
61918         * tests/test-argp-2.sh: Fix test to match actual output.
61919         (func_compare): Fix sed script to be portable.
61920
61921 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
61922
61923         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
61924         workaround for this case.  It is not autoconfigured now; offhand
61925         it's hard to see how to autoconfigure it.
61926
61927 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
61928
61929         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
61930         a directory that is about to be chowned.  Such a directory's
61931         initial file permissions should permit the owner only and this
61932         should not be changed until after the chown, since the group and
61933         other bits would be incorrect if they granted permission before
61934         the chown.
61935
61936         Fix porting problem for iswctype reported by Georg Schwarz in:
61937         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
61938         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
61939         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
61940         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
61941         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
61942
61943 2006-12-03  Jim Meyering  <jim@meyering.net>
61944
61945         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
61946         p->fts_statp may not yet be defined.
61947         (fts_read): Instead, set it in the caller, once p->fts_statp is
61948         sure to be defined, and corresponds to a top-level directory.
61949         This bug made du -x fail.  Here's the coreutils test case:
61950         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
61951         Reported by Mike Frysinger.
61952
61953 2006-12-01  Jim Meyering  <jim@meyering.net>
61954
61955         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
61956         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
61957         Reported by Simon Josefsson.
61958
61959 2006-11-30  Jim Meyering  <jim@meyering.net>
61960
61961         * m4/warning.m4: Use the all-permissive copyright notice
61962         recommended by RMS (rather than LGPL).
61963         * m4/vararrays.m4: Likewise.
61964         * m4/flexmember.m4: Likewise.
61965
61966 2006-11-29  Bruno Haible  <bruno@clisp.org>
61967
61968         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
61969         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
61970         using +=.
61971         Reported by Simon Josefsson <simon@josefsson.org>.
61972
61973 2006-11-28  James Youngman <jay@gnu.org>
61974
61975         * README: Advise users that they might find the bug-gnulib@gnu.org
61976         and autotools-announce@gnu.org mailing lists useful.
61977
61978 2006-11-28  Bruno Haible  <bruno@clisp.org>
61979
61980         * m4/ptrdiff_max.m4: Remove file.
61981
61982 2006-11-21  Bruno Haible  <bruno@clisp.org>
61983
61984         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
61985         _AC_COMPUTE_INT.
61986         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
61987         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
61988         _AC_COMPUTE_INT.
61989         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
61990         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
61991         _AC_COMPUTE_INT.
61992         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
61993
61994 2006-11-28  Jim Meyering  <jim@meyering.net>
61995
61996         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
61997         warning from "gcc -Wshadow" about shadowing the builtin.
61998
61999 2006-11-27  Bruno Haible  <bruno@clisp.org>
62000
62001         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
62002         _AC_COMPUTE_INT.
62003         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
62004
62005 2006-11-27  Bruno Haible  <bruno@clisp.org>
62006             Paul Eggert  <eggert@cs.ucla.edu>
62007
62008         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
62009
62010 2006-11-26  Bruno Haible  <bruno@clisp.org>
62011
62012         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
62013         noinst_LTLIBRARIES.
62014
62015 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
62016             Bruno Haible  <bruno@clisp.org>
62017
62018         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
62019         if compiling with "gcc -ansi".
62020
62021 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
62022
62023         Fix some incompatibilities with gcc -ansi -pedantic.
62024         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
62025         if compiling pedantically with GCC, unless it's C99 or later.
62026         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
62027         it mishandles gcc -ansi -pedantic as well.
62028         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
62029         if gcc -pedantic.
62030         * lib/regexec.c (check_node_accept_bytes): Don't use auto
62031         initializers for struct if -pedantic, unless it's C99 or later.
62032
62033 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
62034
62035         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
62036         Don't close an fd more than once. Identical atimes indicate
62037         success, not failure.
62038
62039 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
62040
62041         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
62042
62043 2006-11-23  Jim Meyering  <jim@meyering.net>
62044
62045         * build-aux/announce-gen: New file.  From coreutils.
62046
62047 2006-11-22  Jim Meyering  <jim@meyering.net>
62048
62049         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
62050         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
62051         (fts_read): Use a temporary to narrow the overused st_size member
62052         before using it in a switch statement.  Reported by Matthew Woehlke.
62053
62054         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
62055         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
62056
62057 2006-11-20  Bruno Haible  <bruno@clisp.org>
62058
62059         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
62060         changequote instead of pairs of brackets.
62061         Reported by Andreas Schwab <schwab@suse.de>.
62062
62063 2006-11-21  Jim Meyering  <jim@meyering.net>
62064
62065         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
62066         so as to remain compatible with older compilers.
62067         Patch from Michael Deutschmann.
62068
62069 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
62070
62071         * MODULES.html.sh (File system functions): Add openat.
62072
62073         * lib/openat.h (rpl_fstatat): New macro, if
62074         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
62075         (fstatat): Define to rpl_fstatat under the same conditions,
62076         unless COMPILING_FSTATAT.
62077         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
62078         seems to have the bug.
62079         * lib/fstatat.c: New file.
62080         * modules/openat (Files): Add it.
62081
62082 2006-11-20  Bruno Haible  <bruno@clisp.org>
62083
62084         * Makefile: New file.
62085
62086 2006-11-20  Jim Meyering  <jim@meyering.net>
62087
62088         The beginnings of syntax-related checks for gnulib.
62089         * lib/Makefile: New file.
62090         * lib/t-idcache: New script.  Ensure that the two halves of
62091         idcache.c stay in sync.
62092
62093         * lib/idcache.c: Adjust comments in user- and group- portions to
62094         be more accurate, and to be consistent with one another.
62095
62096 2006-11-20  Jim Meyering  <jim@meyering.net>
62097
62098         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
62099         continue using the flexible array member (thus, this module performs
62100         half as many malloc calls), with the addition that...
62101         (getgroup, getuser): Consistently record a non-match via an empty
62102         "name" string, and map an empty string match to a NULL return value.
62103         * modules/idcache (Depends-on): Re-add flexmember.
62104
62105         * lib/idcache.c (getuser): Remove all uses of the register keyword.
62106         (getuidbyname, getgroup, getgidbyname): Likewise.
62107
62108         Use cleaner syntax: NULL rather than 0.
62109         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
62110
62111 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
62112
62113         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
62114         It mishandled the case where the group was missing.
62115         Problem reported by Greg Schafer.
62116         * modules/idcache: Likewise.
62117
62118 2006-11-18  Jim Meyering  <jim@meyering.net>
62119
62120         * check-module (%exempt_header): Add exception for some
62121         conditionally-included headers.
62122
62123         * modules/i-ring (Depends-on): Add verify.
62124         (License): Change to LGPL.
62125
62126 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
62127
62128         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
62129         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
62130         and inttostr.h.  Use snprintf rather than uinttostr, so that
62131         LGPLed code doesn't depend on GPLed.
62132
62133 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
62134
62135         * modules/inline (License): Change from GPL to LGPL.
62136
62137 2006-11-17  Jim Meyering  <jim@meyering.net>
62138
62139         * modules/d-type (License): Switch to LGPL.
62140
62141 2006-11-15  Bruno Haible  <bruno@clisp.org>
62142
62143         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
62144
62145 2006-11-15  Eric Blake  <ebb9@byu.net>
62146
62147         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
62148         the module dependency.
62149
62150 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62151             Bruno Haible  <bruno@clisp.org>
62152
62153         * gnulib-tool (func_create_testdir): Add license consistency check.
62154
62155 2006-11-15  Eric Blake  <ebb9@byu.net>
62156
62157         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
62158         random "(cached)" in configure output.
62159
62160 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62161
62162         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
62163         test for conforming inttypes.h is both announced and cached.
62164
62165         * MODULES.html.sh (seen_modules, seen_files): New variables.
62166         (func_module): Rewrite to use a few less gnulib-tool and sed
62167         invocations.  Avoid a couple of quadratic algorithms for ...
62168         (missed_modules, missed_files): ... these, with ...
62169         (func_append, func_tmpdir): ... these new functions, from
62170         gnulib-tool.  Analogously, install traps for cleanup.
62171
62172         * tests/test-gc.c (main): Remove unused variables.
62173         * tests/test-read-file.c: Include stdlib.h, for 'free'.
62174
62175 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
62176
62177         * modules/inttostr (License): Change to LGPL.
62178
62179 2006-11-14  Eric Blake  <ebb9@byu.net>
62180
62181         * modules/tempname (License): Change to LGPL.
62182
62183 2006-11-14  Eric Blake  <ebb9@byu.net>
62184
62185         * doc/functions.texi (Function Portability): *printf functions on
62186         Cygwin now understand all POSIX size specifiers.
62187
62188 2006-11-14  Bruno Haible  <bruno@clisp.org>
62189
62190         * modules/c-ctype (License): Change to LGPL.
62191
62192 2006-11-12  Bruno Haible  <bruno@clisp.org>
62193
62194         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
62195         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
62196         for GNOME libraries, for which the include files are installed in
62197         subdirectories of $prefix/include.
62198
62199 2006-11-12  Bruno Haible  <bruno@clisp.org>
62200
62201         * m4/lib-link.m4: Require at least autoconf-2.54.
62202         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
62203         name to underscores for the --with option.
62204
62205 2006-11-13  Bruno Haible  <bruno@clisp.org>
62206
62207         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
62208         the tests directory.
62209         Reported by Ralf Wildenhues.
62210
62211 2006-11-13  Bruno Haible  <bruno@clisp.org>
62212
62213         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
62214         (func_emit_initmacro_end): Undo the override here.
62215         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
62216         Works around the famous automake error in coreutils.
62217
62218 2006-11-13  Eric Blake  <ebb9@byu.net>
62219
62220         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
62221         element, not its node.
62222
62223 2006-11-12  Bruno Haible  <bruno@clisp.org>
62224
62225         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
62226         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
62227
62228 2006-11-12  Bruno Haible  <bruno@clisp.org>
62229
62230         * gnulib-tool: New option --local-symlink.
62231         (func_usage): Document it.
62232         (lsymbolic): New variable.
62233         (func_import, func_create_testdir): If --symlink was not specified,
62234         test whether --local-symlink was specified and the file comes from
62235         the local_gnulib_dir.
62236
62237 2006-11-12  Bruno Haible  <bruno@clisp.org>
62238
62239         * gnulib-tool (func_ln): New function.
62240         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
62241
62242 2006-11-12  Bruno Haible  <bruno@clisp.org>
62243
62244         Finish support for source files in subdirectories.
62245         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
62246         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
62247         AUTOMAKE_OPTIONS.
62248         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
62249
62250 2006-11-12  Bruno Haible  <bruno@clisp.org>
62251
62252         * gnulib-tool (func_get_automake_snippet): Synthesize also an
62253         EXTRA_lib_SOURCES augmentation.
62254         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
62255
62256 2006-11-12  Jim Meyering  <jim@meyering.net>
62257
62258         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
62259         file descriptors.  This also averts a failure on systems with
62260         native openat support when a traversed directory lacks "x" access.
62261         * lib/fts_.h: Include "i-ring.h"
62262         (struct FTS) [fts_fd_ring]: New member.
62263         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
62264         (FCHDIR): Add parentheses.
62265         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
62266         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
62267         When descending, rather than simply closing the previous
62268         fts_cwd_fd value, push that file descriptor onto the ring.
62269         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
62270         (fts_open): Initialize the new fd_ring member.
62271         (fts_close): Clear the ring.
62272         (fts_safe_changedir): When possible, use our new fd_ring to skip
62273         the diropen and fstat and dev/ino comparison that would normally
62274         accompany a virtual `chdir ("..")'.
62275
62276         * modules/fts (Depends-on): Add i-ring.
62277         * modules/i-ring: New module.
62278         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
62279         * m4/i-ring.m4: New file.
62280
62281 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62282
62283         * gnulib-tool (func_create_testdir): Fix replacement of
62284         `build-aux' in configure.ac.  Run autotools in gltests
62285         subdirectory.
62286         (func_create_testdir, func_create_megatestdir, test): There is
62287         no need for '--force' in most autotool invocations in a new
62288         tree.  Actually fail the whole test if any of the tools, or the
62289         configure or make stages fail.
62290
62291         Sync from Automake.
62292         * build-aux/gnupload: Revert last change.  Add pointer to upload
62293         instructions of the GNU Maintenance Instructions.
62294         Suggestion by Karl Berry.
62295
62296 2006-11-10  Jim Meyering  <jim@meyering.net>
62297
62298         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
62299
62300 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
62301
62302         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
62303         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
62304         (bind_textdomain_codeset) [! ENABLE_NLS]:
62305         Evaluate all the arguments.  That way, callers get compatible behavior
62306         if the arguments have side effects.  Also, it avoids some GCC
62307         diagnostics in some cases; Joel E. Denny reported problems when Bison
62308         was configured with --enable-gcc-warnigs.
62309
62310 2006-11-10  Jim Meyering  <jim@meyering.net>
62311
62312         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
62313         relevant options in CFLAGS (like -O, -fno-inline) are taken into
62314         account.
62315
62316 2006-11-10  Jim Meyering  <jim@meyering.net>
62317
62318         * modules/inline: New file/module.
62319         * modules/xalloc (Files): Remove m4/inline.m4.
62320         (Depends-on): Add inline, instead.
62321         * modules/oset: Likewise.
62322         * modules/list: Likewise.
62323
62324 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
62325
62326         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
62327         Problem reported by Matthew Woehlke.
62328
62329 2006-11-09  Bruno Haible  <bruno@clisp.org>
62330
62331         * lib/tempname.c (gen_tempname): Remove variant that invokes
62332         __gen_tempname.
62333         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
62334         __gen_tempname.
62335
62336 2006-11-08  Bruno Haible  <bruno@clisp.org>
62337
62338         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
62339         to 'yes' instead of 'cross-compiling'.
62340
62341 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
62342
62343         * lib/quotearg.h (quotearg_free): New decl.
62344         * lib/quotearg.c (quotearg_free): New function.
62345         (slot0, nslots, slotvec0, slotvec):
62346         Now file-scope so that quotearg_free can get at them.
62347
62348 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62349
62350         Sync from Automake.
62351         * build-aux/gnupload: Add missing 'gnu' to example URL.
62352         Report by Karl Berry.
62353
62354 2006-11-08  Bruno Haible  <bruno@clisp.org>
62355
62356         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
62357         Suggested by Paul Eggert.
62358
62359 2006-11-08  Jim Meyering  <jim@meyering.net>
62360
62361         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
62362         It's already included if !_LIBC.
62363         (fts_safe_changedir): Add a comment.
62364
62365 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
62366
62367         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
62368         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
62369         Matthew Woehlke.
62370
62371         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
62372         definitions up, to avoid colliding with change below.
62373         (static_inline) [HAVE_INLINE]: New macro.
62374         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
62375         Provide extern decls when !HAVE_INLINE.  Do not define unless
62376         static_inline is defined, either by us or by xmalloc.c.  Use
62377         static_inline rather than static inline.
62378         (XCALLOC): Optimize sizeof(T) = 1 case.
62379         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
62380
62381 2006-11-07  Bruno Haible  <bruno@clisp.org>
62382
62383         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
62384         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
62385         AC_C_INLINE.
62386         * modules/xalloc (Files): Add m4/inline.m4.
62387
62388 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62389
62390         * README: Fix typo.
62391         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
62392         (Miscellanous Notes): ...from this.
62393
62394 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
62395
62396         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
62397         Mention that offsetof should be used instead of sizeof.
62398         From Bruno Haible.
62399
62400 2006-11-07  Bruno Haible  <bruno@clisp.org>
62401
62402         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
62403
62404 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
62405
62406         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
62407         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
62408         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
62409         (gl_tree_add_before, gl_tree_add_after):
62410         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
62411         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
62412         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
62413         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
62414         (gl_linked_add_after, gl_linked_add_at): Likewise.
62415         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
62416         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
62417         (gl_tree_add_before, gl_tree_add_after): Likewise.
62418         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
62419         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
62420         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
62421
62422 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62423
62424         * lib/gl_oset.h: Use C comment style, not C++ comment style.
62425
62426 2006-11-06  Bruno Haible  <bruno@clisp.org>
62427
62428         * m4/inline.m4: New file.
62429         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
62430         * modules/list (Files): Add m4/inline.m4.
62431         * modules/oset (Files): Likewise.
62432
62433 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
62434
62435         * lib/idcache.c: Include <stddef.h>, for offsetof.
62436         (struct userid.name): Change from char * to a flexible array member.
62437         All uses changed.
62438         * modules/idcache (Depends-on): Add flexmember.
62439
62440         * MODULES.html.sh (Core language properties): New module flexmember.
62441         * modules/flexmember, m4/flexmember.m4: New files.
62442
62443         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
62444         inline functions that are identical with the old xnmalloc_inline,
62445         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
62446         that we can avoid some unnecessary integer multiplications and
62447         divisions in the common case where the element size is known at
62448         compile time.
62449         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
62450         needed.
62451         (xnboundedmalloc): Remove.
62452         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
62453         arguments, for consistency with rest of this header.
62454         (xcharalloc): Rewrite using XNMALLOC.
62455         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
62456         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
62457         versions have been moved to lib/xalloc.h and renamed to be the
62458         non-*_inline versions.
62459         (xmalloc, xrealloc): Implement without reference to the xnmalloc
62460         and xnrealloc functions, since those functions are now inline and
62461         now call us.
62462         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
62463         renaming described above.
62464         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
62465         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
62466         captures the dependency in AC_C_INLINE.
62467
62468         New module canonicalize-lgpl, proposed by Charles Wilson in
62469         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
62470         with a few small changes afterwards.
62471         * MODULES.html.sh (File system functions): New module
62472         canonicalize-lgpl.
62473         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
62474         and canonicalize_file_name.
62475         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
62476         * modules/canonicalize-lgpl: New files.
62477
62478 2006-11-05  Bruno Haible  <bruno@clisp.org>
62479
62480         * gnulib-tool (func_import, func_create_testdir): Create directories
62481         also for files in subdirectories of lib/.
62482
62483 2006-11-05  Bruno Haible  <bruno@clisp.org>
62484
62485         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
62486         ANSI C compliant.
62487
62488 2006-11-03  Bruno Haible  <bruno@clisp.org>
62489
62490         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
62491         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
62492         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
62493         (xnboundedmalloc): New inline function.
62494         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
62495         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
62496         xmalloc.
62497         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
62498         xmalloc.
62499         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
62500         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
62501         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
62502         xmalloc.
62503         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
62504         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
62505         xmalloc.
62506         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
62507         gl_tree_add_after): Use XMALLOC instead of xmalloc.
62508         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
62509         xmalloc.
62510         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
62511         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
62512         gl_tree_add_after): Use XMALLOC instead of xmalloc.
62513         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
62514         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
62515         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
62516         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
62517
62518 2006-11-03  Bruno Haible  <bruno@clisp.org>
62519
62520         * lib/c-ctype.h [C++]: Define functions without name mangling.
62521         * lib/fwriteerror.h [C++]: Likewise.
62522         * lib/gcd.h [C++]: Likewise.
62523         * lib/linebreak.h [C++]: Likewise.
62524
62525 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
62526
62527         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
62528         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
62529         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
62530         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
62531         Check for functions and headers just once.
62532         Check for declaration of canonicalize_file_name.
62533         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
62534
62535 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
62536
62537         * gnulib-tool (func_import): Fix typo in actioncmd.
62538
62539 2006-11-02  Bruno Haible  <bruno@clisp.org>
62540
62541         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
62542         newline sequence in the Makefile.am snippet as a space, like "make"
62543         does.
62544         Reported by Roger Persson <perrog@gmail.com>.
62545
62546 2006-11-01  Bruno Haible  <bruno@clisp.org>
62547
62548         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
62549         already declared in <string.h>.
62550         * lib/strcase.h (strncasecmp): Don't declare it if yes.
62551
62552 2006-11-01  Bruno Haible  <bruno@clisp.org>
62553
62554         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
62555         * lib/strcase.h: Include <string.h>.
62556         (strcasecmp): Define to rpl_strcasecmp here.
62557
62558 2006-11-01  Bruno Haible  <bruno@clisp.org>
62559
62560         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
62561
62562 2006-11-01  Eric Blake  <ebb9@byu.net>
62563
62564         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
62565
62566         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
62567
62568 2006-10-29  Bruno Haible  <bruno@clisp.org>
62569
62570         Make it compile in C++ mode.
62571         * lib/full-write.c (full_rw): Add a cast.
62572
62573 2006-11-01  Bruno Haible  <bruno@clisp.org>
62574
62575         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
62576         be POSIX compliant.
62577         Reported by Roger Persson <perrog@gmail.com>.
62578
62579 2006-11-01  Eric Blake  <ebb9@byu.net>
62580
62581         * lib/getopt_.h: Fix comments.
62582
62583 2006-10-31  Eric Blake  <ebb9@byu.net>
62584
62585         * modules/tmpdir (Depends-on): Add sys_stat.
62586         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
62587         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
62588         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
62589         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
62590         tempname.
62591
62592 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
62593
62594         Avoid some C++ diagnostics reported by Bruno Haible.
62595         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
62596         xmalloc.
62597         (quotearg_alloc): Use xcharalloc rather than xmalloc.
62598         (struct slotvec): Move to top level.
62599         (quotearg_n_options): Rewrite to avoid xmalloc.
62600         * lib/xalloc.h (xcharalloc): New function.
62601         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
62602         [defined __cplusplus]: Add function template that provides result
62603         type propagation.  This part of the change is from Bruno Haible.
62604
62605 2006-10-29  Bruno Haible  <bruno@clisp.org>
62606
62607         Make it compile in C++ mode.
62608         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
62609         * lib/strnlen1.c (strnlen1): Cast memchr result.
62610         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
62611         * lib/clean-temp.c (string_equals, string_hash): Add casts.
62612         (create_temp_dir): Rename local variable 'template'.
62613         (compile_csharp_using_sscli): Add cast.
62614         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
62615         * lib/findprog.c (find_in_path): Likewise.
62616         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
62617         * lib/wait-process.c (register_slave_subprocess): Likewise.
62618
62619 2006-10-22  Bruno Haible  <bruno@clisp.org>
62620
62621         * modules/tsearch: New file.
62622         * lib/tsearch.h: New file.
62623         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
62624         * m4/tsearch.m4: New file.
62625         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
62626
62627 2006-10-29  Eric Blake  <ebb9@byu.net>
62628
62629         * lib/arcfour.c: Assume config.h.
62630         * lib/arctwo.c: Likewise.
62631         * lib/base64.c: Likewise.
62632         * lib/check-version.c: Likewise.
62633         * lib/crc.c: Likewise.
62634         * lib/des.c: Likewise.
62635         * lib/gc-gnulib.c: Likewise.
62636         * lib/gc-libgcrypt.c: Likewise.
62637         * lib/gc-pbkdf2-sha1.c: Likewise.
62638         * lib/getaddrinfo.c: Likewise.
62639         * lib/getdelim.c: Likewise.
62640         * lib/getline.c: Likewise.
62641         * lib/hmac-md5.c: Likewise.
62642         * lib/hmac-sha1.c: Likewise.
62643         * lib/iconvme.c: Likewise.
62644         * lib/md2.c: Likewise.
62645         * lib/md4.c: Likewise.
62646         * lib/memxor.c: Likewise.
62647         * lib/read-file.c: Likewise.
62648         * lib/readline.c: Likewise.
62649         * lib/rijndael-alg-fst.c: Likewise.
62650         * lib/rijndael-api-fst.c: Likewise.
62651         * lib/xgetdomainname.c: Likewise.
62652
62653 2006-10-28  Eric Blake  <ebb9@byu.net>
62654
62655         * lib/xstrndup.c: Assume config.h.
62656
62657 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
62658
62659         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
62660         stat-macros.h is now for our own macros, whereas stat_h is for
62661         macros in the <sys/stat.h> name space.
62662         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
62663         (STAT_MACROS_H): Remove.
62664         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
62665         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
62666         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
62667         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
62668         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
62669         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
62670         Move these macros to ...
62671         * lib/stat_.h: here.  Don't include stat-macros.h.
62672         * lib/canonicalize.c: Don't include stat-macros.h.
62673         * lib/chown.c: Likewise.
62674         * lib/euidaccess.c: Likewise.
62675         * lib/file-type.c: Likewise.
62676         * lib/filemode.c: Likewise.
62677         * lib/glob.c: Likewise.
62678         * lib/isapipe.c: Likewise.
62679         * lib/lchown.c: Likewise.
62680         * lib/lstat.c: Likewise.
62681         * lib/mkdir-p.c: Likewise.
62682         * lib/rmdir.c: Likewise.
62683         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
62684         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
62685         unless mkdir isn't declared, to speed up 'configure'.
62686         Always create sys/stat.h, since it's unlikely any real sys/stat.h
62687         would define all the S_* symbols.
62688         * modules/canonicalize (Depends-on):
62689         Depend on sys_stat, not stat-macros.
62690         * modules/chown: Likewise.
62691         * modules/euidaccess: Likewise.
62692         * modules/filemode: Likewise.
62693         * modules/file-type: Likewise.
62694         * modules/glob: Likewise.
62695         * modules/isapipe: Likewise.
62696         * modules/lchown: Likewise.
62697         * modules/lstat: Likewise.
62698         * modules/mkancesdirs: Likewise.
62699         * modules/rmdir: Likewise.
62700         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
62701         * modules/modechange: Likewise.
62702         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
62703         (configure.ac): Remove gl_STAT_MACROS.
62704         * modules/sys_stat (Depends-on): Remove stat-macros.
62705
62706 2006-10-27  Bruno Haible  <bruno@clisp.org>
62707
62708         * m4/signed.m4: Remove file.
62709         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
62710         invocation.
62711         * modules/vasnprintf (Files): Remove m4/signed.m4.
62712
62713 2006-10-27  Bruno Haible  <bruno@clisp.org>
62714
62715         Update to GNU gettext 0.16.
62716         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
62717         m4/inttypes-h.m4, m4/signed.m4.
62718         * m4/gettext.m4: Update to GNU gettext 0.16.
62719         * m4/intl.m4: New file, from GNU gettext.
62720         * m4/intldir.m4: New file, from GNU gettext.
62721         * config/srclist.txt: Update
62722
62723 2006-10-27  Eric Blake  <ebb9@byu.net>
62724
62725         * MODULES.html.sh: Document tempname.
62726         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
62727         dependencies.
62728         (Files): Move lib/tempname.c...
62729         * modules/tempname: ...to this new module.
62730         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
62731         (gl_PREREQ_TEMPNAME): Move...
62732         * m4/tempname.m4: ...to this new file.
62733         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
62734         * modules/sys_stat (Depends-on): Add stat-macros.
62735         * lib/stat_.h (includes): Pick up stat macros.
62736         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
62737         if stat macros are broken.
62738         * lib/tempname.c (includes): No need to include "stat-macros.h".
62739         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
62740         (direxists, __path_search) [!_LIBC]: Don't compile these in
62741         gnulib; the tmpdir module covers that.
62742         * lib/tempname.h: New file.
62743
62744 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
62745
62746         * COPYING: Explain how gnulib-tool converts licence headers.
62747         Almost all wording by Eric Blake.
62748
62749 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
62750
62751         * lib/mbchar.h (is_basic_table): Make read-only.
62752         * lib/mbchar.c (is_basic_table): Likewise.
62753         Reported by John Darrington.
62754
62755 2006-10-25  Bruno Haible  <bruno@clisp.org>
62756
62757         * lib/progname.h (set_program_name): Undefine before defining.
62758
62759 2006-10-25  Bruno Haible  <bruno@clisp.org>
62760
62761         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
62762         false for non-gcc C++ compilers.
62763         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
62764
62765 2006-10-24  Bruno Haible  <bruno@clisp.org>
62766
62767         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
62768         iconv implementations like Irix iconv.
62769
62770 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
62771
62772         * modules/vararrays: New file.
62773         * m4/vararrays.m4: New file, taken from diffutils.
62774         * MODULES.html.sh: New module vararrays.
62775
62776 2006-10-24  Karl Berry  <karl@gnu.org>
62777
62778         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
62779         Don't call GNU Unix.
62780
62781 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62782
62783         * users.txt: Add Libtool.
62784
62785         Sync from Libtool:
62786
62787         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
62788
62789         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
62790         to gnulib's policy of including config.h unconditionally.
62791
62792 2006-10-24  Bruno Haible  <bruno@clisp.org>
62793
62794         * modules/wcwidth (Files): Add m4/wint_t.m4.
62795         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
62796         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
62797
62798 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
62799
62800         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
62801         to pacify GCC with some -W flags enabled.  Problem reported by
62802         Bruno Haible.
62803
62804 2006-10-24  Jim Meyering  <jim@meyering.net>
62805
62806         * MODULES.html.sh: Remove uinttostr.  It's not a module.
62807         Reported by Karl Berry.
62808
62809 2006-10-23  Bruno Haible  <bruno@clisp.org>
62810
62811         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
62812
62813 2006-10-24  Bruno Haible  <bruno@clisp.org>
62814
62815         * lib/gl_list.h: Use C comment style, not C++ comment style.
62816
62817 2006-10-23  Eric Blake  <ebb9@byu.net>
62818
62819         * lib/getaddrinfo.c (includes): Add missing include.
62820
62821 2006-10-23  Bruno Haible  <bruno@clisp.org>
62822             Paul Eggert  <eggert@cs.ucla.edu>
62823
62824         Ability to rename obstack_free.
62825         * lib/obstack.h (__obstack_free): New macro. Declare instead of
62826         obstack_free.
62827         (obstack_free): Invoke the __obstack_free macro.
62828         * lib/obstack.c (obstack_free): Use __obstack_free macro.
62829
62830 2006-10-23  Bruno Haible  <bruno@clisp.org>
62831             Paul Eggert  <eggert@cs.ucla.edu>
62832
62833         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
62834         __argc, __argv from the declaration. (They are defined as macros on
62835         mingw.)
62836
62837 2006-10-22  Bruno Haible  <bruno@clisp.org>
62838
62839         * doc/gnulib-intro.texi: New file.
62840         * doc/gnulib.texi: Include it.
62841
62842 2006-10-21  Bruno Haible  <bruno@clisp.org>
62843
62844         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
62845         "Introduction", "Miscellanous Notes", "Particular Modules".
62846
62847 2006-10-21  Bruno Haible  <bruno@clisp.org>
62848
62849         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62850         Change mostlyclean-local rule to avoid sh syntax error from bash
62851         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
62852
62853 2006-10-23  Jim Meyering  <jim@meyering.net>
62854
62855         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
62856         in place of snprintf.
62857
62858         * modules/inttostr (Files): Add lib/uinttostr.c.
62859         * lib/uinttostr.c (inttostr): New file/function.
62860         * lib/inttostr.h (uinttostr): Declare.
62861         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
62862         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
62863         Add uinttostr.
62864         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
62865
62866 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
62867
62868         * lib/canonicalize.c (ELOOP): Define if not already defined.
62869         Problem reported by Bruno Haible in
62870         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
62871
62872 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
62873
62874         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
62875         Problem reported by Perry Smith and Ville Laurikari.
62876
62877         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
62878         uses.
62879
62880 2006-10-19  Bruno Haible  <bruno@clisp.org>
62881
62882         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
62883         for mingw.
62884
62885 2006-10-19  Bruno Haible  <bruno@clisp.org>
62886
62887         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
62888         Needed for mingw.
62889
62890 2006-10-19  Bruno Haible  <bruno@clisp.org>
62891
62892         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
62893
62894 2006-10-19  Bruno Haible  <bruno@clisp.org>
62895
62896         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
62897         it.
62898
62899 2006-10-19  Bruno Haible  <bruno@clisp.org>
62900
62901         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
62902         invocation.
62903
62904 2006-10-19  Bruno Haible  <bruno@clisp.org>
62905
62906         * gnulib-tool (func_create_testdir): Don't include ftruncate and
62907         mountlist by default.
62908
62909 2006-10-16  Bruno Haible  <bruno@clisp.org>
62910
62911         * lib/c-strstr.c: Include c-strstr.h.
62912
62913 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
62914
62915         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
62916         in a slash.
62917
62918 2006-10-18  Bruno Haible  <bruno@clisp.org>
62919
62920         * lib/lock.h [C++]: Wrap definitions in extern "C".
62921
62922 2006-10-18  Bruno Haible  <bruno@clisp.org>
62923
62924         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
62925         gl_LIBOBJS list.
62926
62927 2006-10-18  Bruno Haible  <bruno@clisp.org>
62928
62929         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
62930
62931 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
62932
62933         * lib/xstrtol.h: Include gettext.h.
62934         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
62935         Problem reported by Eric Blake.
62936         * modules/xstrtol (Depends-on): Add gettext-h.
62937
62938 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
62939
62940         * lib/strftime.c (advance): New macro.
62941         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
62942         incomplete type, so you can't add 0 to it.  Problem and patch
62943         reported by Eelco Dolstra for dietlibc.
62944
62945 2006-10-18  Jim Meyering  <jim@meyering.net>
62946
62947         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
62948         type for a local, and rename it: s/up/user_proc/.
62949
62950 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
62951
62952         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
62953         READ_UTMP_USER_PROCESS.
62954         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
62955
62956 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
62957
62958         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
62959         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
62960
62961 2006-10-17  Eric Blake  <ebb9@byu.net>
62962
62963         * lib/sigprocmask.c (sigprocmask): Fix typo.
62964
62965         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
62966
62967         * modules/clean-temp (Makefile.am): Don't add to make output...
62968         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
62969         config.h.
62970
62971 2006-10-17  Bruno Haible  <bruno@clisp.org>
62972
62973         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
62974         differently if DEFAULT_TEXT_DOMAIN is set.
62975
62976 2006-10-16  Bruno Haible  <bruno@clisp.org>
62977
62978         * lib/clean-temp.c: Include fwriteerror.h.
62979
62980 2006-10-16  Bruno Haible  <bruno@clisp.org>
62981
62982         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
62983
62984 2006-10-16  Bruno Haible  <bruno@clisp.org>
62985
62986         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
62987         * lib/sigprocmask.h: Include <sys/types.h>.
62988         (sigset_t): Use the system's definition if present.
62989
62990 2006-10-17  Eric Blake  <ebb9@byu.net>
62991
62992         * lib/xvasprintf.c (includes): Assume config.h.
62993         * lib/xasprintf.c (includes): Likewise.
62994
62995 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
62996
62997         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
62998         at least as wide as intmax_t.
62999
63000 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
63001
63002         (Imported from Automake.)
63003         * build-aux/gnupload: Update to version 1.1 of directive file.
63004
63005 2006-10-16  Eric Blake  <ebb9@byu.net>
63006
63007         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
63008         match Automake 1.10a.
63009
63010 2006-10-14  Bruno Haible  <bruno@clisp.org>
63011
63012         * modules/sigprocmask: New file.
63013         * lib/sigprocmask.h: New file.
63014         * lib/sigprocmask.c: New file.
63015         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
63016         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
63017         request sigprocmask.o.
63018         (gl_PREREQ_SIGPROCMASK): New macro.
63019         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
63020         (Depends-on): Add sigprocmask.
63021         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
63022         gt_SIGNALBLOCKING. Test for 'raise' only once.
63023         * lib/fatal-signal.c: Include sigprocmask.h.
63024         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
63025         unblock_fatal_signals): Define always.
63026         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
63027         sigprocmask.
63028
63029 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
63030
63031         Sync from Automake.
63032         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
63033         which incorrectly sets the mode of an existing destination
63034         directory.  In some cases the unpatched install-sh could do the
63035         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
63036         system.  We hope this is rare in practice, but it's clearly worth
63037         fixing.  Problem reported by Alex Unleashed in
63038         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
63039         Also, don't bother to check for -m bugs unless we're using -m;
63040         suggested by Stepan Kasal.
63041
63042 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63043
63044         Sync from Automake.
63045         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
63046         `-c' flag, so they appear at the same position as in %FASTDEP%
63047         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
63048         which ignores unknown options only after the first non-option.
63049         Bug report against M4 by Nelson H. F. Beebe.
63050
63051 2006-10-13  Jim Meyering  <jim@meyering.net>
63052
63053         Fix a bug in yesterday's change.
63054         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
63055         p->fts_statp->st_dev would be used uninitialized.
63056         Ensures that we always call fts_stat on the very first entry.
63057         Miklos Szeredi reported that find -xdev stopped working.
63058
63059 2006-10-12  Bruno Haible  <bruno@clisp.org>
63060
63061         * gnulib-tool (func_get_automake_snippet): Append an automatically
63062         computed EXTRA_DIST augmentation.
63063         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
63064         * modules/alloca-opt (Makefile.am): Likewise.
63065         * modules/allocsa (Makefile.am): Likewise.
63066         * modules/arcfour (Makefile.am): Likewise.
63067         * modules/arctwo (Makefile.am): Likewise.
63068         * modules/argmatch (Makefile.am): Likewise.
63069         * modules/argz (Makefile.am): Likewise.
63070         * modules/atexit (Makefile.am): Likewise.
63071         * modules/backupfile (Makefile.am): Likewise.
63072         * modules/byteswap (Makefile.am): Likewise.
63073         * modules/c-strtod (Makefile.am): Likewise.
63074         * modules/c-strtold (Makefile.am): Likewise.
63075         * modules/calloc (Makefile.am): Likewise.
63076         * modules/canon-host (Makefile.am): Likewise.
63077         * modules/canonicalize (Makefile.am): Likewise.
63078         * modules/chdir-long (Makefile.am): Likewise.
63079         * modules/chdir-safer (Makefile.am): Likewise.
63080         * modules/check-version (Makefile.am): Likewise.
63081         * modules/chown (Makefile.am): Likewise.
63082         * modules/cloexec (Makefile.am): Likewise.
63083         * modules/close-stream (Makefile.am): Likewise.
63084         * modules/closeout (Makefile.am): Likewise.
63085         * modules/crc (Makefile.am): Likewise.
63086         * modules/csharpexec (Makefile.am): Likewise.
63087         * modules/cycle-check (Makefile.am): Likewise.
63088         * modules/des (Makefile.am): Likewise.
63089         * modules/dev-ino (Makefile.am): Likewise.
63090         * modules/dirfd (Makefile.am): Likewise.
63091         * modules/dirname (Makefile.am): Likewise.
63092         * modules/dup2 (Makefile.am): Likewise.
63093         * modules/eealloc (Makefile.am): Likewise.
63094         * modules/error (Makefile.am): Likewise.
63095         * modules/euidaccess (Makefile.am): Likewise.
63096         * modules/exclude (Makefile.am): Likewise.
63097         * modules/exitfail (Makefile.am): Likewise.
63098         * modules/fcntl-safer (Makefile.am): Likewise.
63099         * modules/fcntl (Makefile.am): Likewise.
63100         * modules/file-type (Makefile.am): Likewise.
63101         * modules/fileblocks (Makefile.am): Likewise.
63102         * modules/filemode (Makefile.am): Likewise.
63103         * modules/filenamecat (Makefile.am): Likewise.
63104         * modules/fnmatch (Makefile.am): Likewise.
63105         * modules/fopen-safer (Makefile.am): Likewise.
63106         * modules/fpending (Makefile.am): Likewise.
63107         * modules/fprintftime (Makefile.am): Likewise.
63108         * modules/free (Makefile.am): Likewise.
63109         * modules/fsusage (Makefile.am): Likewise.
63110         * modules/ftruncate (Makefile.am): Likewise.
63111         * modules/fts (Makefile.am): Likewise.
63112         * modules/gc-arcfour (Makefile.am): Likewise.
63113         * modules/gc-des (Makefile.am): Likewise.
63114         * modules/gc-hmac-md5 (Makefile.am): Likewise.
63115         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
63116         * modules/gc-md4 (Makefile.am): Likewise.
63117         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
63118         * modules/gc-sha1 (Makefile.am): Likewise.
63119         * modules/gc (Makefile.am): Likewise.
63120         * modules/getaddrinfo (Makefile.am): Likewise.
63121         * modules/getcwd (Makefile.am): Likewise.
63122         * modules/getdelim (Makefile.am): Likewise.
63123         * modules/getdomainname (Makefile.am): Likewise.
63124         * modules/getgroups (Makefile.am): Likewise.
63125         * modules/gethostname (Makefile.am): Likewise.
63126         * modules/gethrxtime (Makefile.am): Likewise.
63127         * modules/getline (Makefile.am): Likewise.
63128         * modules/getloadavg (Makefile.am): Likewise.
63129         * modules/getlogin_r (Makefile.am): Likewise.
63130         * modules/getndelim2 (Makefile.am): Likewise.
63131         * modules/getopt (Makefile.am): Likewise.
63132         * modules/getpagesize (Makefile.am): Likewise.
63133         * modules/getpass-gnu (Makefile.am): Likewise.
63134         * modules/getpass (Makefile.am): Likewise.
63135         * modules/getsubopt (Makefile.am): Likewise.
63136         * modules/gettime (Makefile.am): Likewise.
63137         * modules/gettimeofday (Makefile.am): Likewise.
63138         * modules/getugroups (Makefile.am): Likewise.
63139         * modules/getusershell (Makefile.am): Likewise.
63140         * modules/glob (Makefile.am): Likewise.
63141         * modules/group-member (Makefile.am): Likewise.
63142         * modules/hard-locale (Makefile.am): Likewise.
63143         * modules/hash (Makefile.am): Likewise.
63144         * modules/hmac-md5 (Makefile.am): Likewise.
63145         * modules/hmac-sha1 (Makefile.am): Likewise.
63146         * modules/human (Makefile.am): Likewise.
63147         * modules/idcache (Makefile.am): Likewise.
63148         * modules/imaxabs (Makefile.am): Likewise.
63149         * modules/imaxdiv (Makefile.am): Likewise.
63150         * modules/inet_ntop (Makefile.am): Likewise.
63151         * modules/inet_pton (Makefile.am): Likewise.
63152         * modules/intprops (Makefile.am): Likewise.
63153         * modules/inttostr (Makefile.am): Likewise.
63154         * modules/inttypes (Makefile.am): Likewise.
63155         * modules/isapipe (Makefile.am): Likewise.
63156         * modules/javaversion (Makefile.am): Likewise.
63157         * modules/lchmod (Makefile.am): Likewise.
63158         * modules/lchown (Makefile.am): Likewise.
63159         * modules/localcharset (Makefile.am): Likewise.
63160         * modules/long-options (Makefile.am): Likewise.
63161         * modules/lstat (Makefile.am): Likewise.
63162         * modules/malloc (Makefile.am): Likewise.
63163         * modules/mathl (Makefile.am): Likewise.
63164         * modules/mbchar (Makefile.am): Likewise.
63165         * modules/md2 (Makefile.am): Likewise.
63166         * modules/md4 (Makefile.am): Likewise.
63167         * modules/md5 (Makefile.am): Likewise.
63168         * modules/memcasecmp (Makefile.am): Likewise.
63169         * modules/memchr (Makefile.am): Likewise.
63170         * modules/memcmp (Makefile.am): Likewise.
63171         * modules/memcoll (Makefile.am): Likewise.
63172         * modules/memcpy (Makefile.am): Likewise.
63173         * modules/memmem (Makefile.am): Likewise.
63174         * modules/memmove (Makefile.am): Likewise.
63175         * modules/mempcpy (Makefile.am): Likewise.
63176         * modules/memrchr (Makefile.am): Likewise.
63177         * modules/memset (Makefile.am): Likewise.
63178         * modules/memxor (Makefile.am): Likewise.
63179         * modules/mkancesdirs (Makefile.am): Likewise.
63180         * modules/mkdir-p (Makefile.am): Likewise.
63181         * modules/mkdir (Makefile.am): Likewise.
63182         * modules/mkdtemp (Makefile.am): Likewise.
63183         * modules/mkstemp (Makefile.am): Likewise.
63184         * modules/mktime (Makefile.am): Likewise.
63185         * modules/modechange (Makefile.am): Likewise.
63186         * modules/mountlist (Makefile.am): Likewise.
63187         * modules/nanosleep (Makefile.am): Likewise.
63188         * modules/obstack (Makefile.am): Likewise.
63189         * modules/openat (Makefile.am): Likewise.
63190         * modules/pagealign_alloc (Makefile.am): Likewise.
63191         * modules/pathmax (Makefile.am): Likewise.
63192         * modules/physmem (Makefile.am): Likewise.
63193         * modules/poll (Makefile.am): Likewise.
63194         * modules/posixtm (Makefile.am): Likewise.
63195         * modules/posixver (Makefile.am): Likewise.
63196         * modules/putenv (Makefile.am): Likewise.
63197         * modules/quote (Makefile.am): Likewise.
63198         * modules/quotearg (Makefile.am): Likewise.
63199         * modules/raise (Makefile.am): Likewise.
63200         * modules/read-file (Makefile.am): Likewise.
63201         * modules/readline (Makefile.am): Likewise.
63202         * modules/readlink (Makefile.am): Likewise.
63203         * modules/readtokens (Makefile.am): Likewise.
63204         * modules/readutmp (Makefile.am): Likewise.
63205         * modules/realloc (Makefile.am): Likewise.
63206         * modules/regex (Makefile.am): Likewise.
63207         * modules/rename-dest-slash (Makefile.am): Likewise.
63208         * modules/rename (Makefile.am): Likewise.
63209         * modules/rijndael (Makefile.am): Likewise.
63210         * modules/rmdir (Makefile.am): Likewise.
63211         * modules/rpmatch (Makefile.am): Likewise.
63212         * modules/safe-read (Makefile.am): Likewise.
63213         * modules/safe-write (Makefile.am): Likewise.
63214         * modules/same-inode (Makefile.am): Likewise.
63215         * modules/same (Makefile.am): Likewise.
63216         * modules/save-cwd (Makefile.am): Likewise.
63217         * modules/savedir (Makefile.am): Likewise.
63218         * modules/setenv (Makefile.am): Likewise.
63219         * modules/settime (Makefile.am): Likewise.
63220         * modules/sha1 (Makefile.am): Likewise.
63221         * modules/sig2str (Makefile.am): Likewise.
63222         * modules/snprintf (Makefile.am): Likewise.
63223         * modules/stat-macros (Makefile.am): Likewise.
63224         * modules/stat-time (Makefile.am): Likewise.
63225         * modules/stdbool (Makefile.am): Likewise.
63226         * modules/stdint (Makefile.am): Likewise.
63227         * modules/stdlib-safer (Makefile.am): Likewise.
63228         * modules/stpcpy (Makefile.am): Likewise.
63229         * modules/stpncpy (Makefile.am): Likewise.
63230         * modules/strcase (Makefile.am): Likewise.
63231         * modules/strcasestr (Makefile.am): Likewise.
63232         * modules/strchrnul (Makefile.am): Likewise.
63233         * modules/strcspn (Makefile.am): Likewise.
63234         * modules/strdup (Makefile.am): Likewise.
63235         * modules/strerror (Makefile.am): Likewise.
63236         * modules/strftime (Makefile.am): Likewise.
63237         * modules/strndup (Makefile.am): Likewise.
63238         * modules/strnlen (Makefile.am): Likewise.
63239         * modules/strpbrk (Makefile.am): Likewise.
63240         * modules/strsep (Makefile.am): Likewise.
63241         * modules/strstr (Makefile.am): Likewise.
63242         * modules/strtod (Makefile.am): Likewise.
63243         * modules/strtoimax (Makefile.am): Likewise.
63244         * modules/strtok_r (Makefile.am): Likewise.
63245         * modules/strtol (Makefile.am): Likewise.
63246         * modules/strtoll (Makefile.am): Likewise.
63247         * modules/strtoul (Makefile.am): Likewise.
63248         * modules/strtoull (Makefile.am): Likewise.
63249         * modules/strtoumax (Makefile.am): Likewise.
63250         * modules/strverscmp (Makefile.am): Likewise.
63251         * modules/sys_socket (Makefile.am): Likewise.
63252         * modules/sys_stat (Makefile.am): Likewise.
63253         * modules/sysexits (Makefile.am): Likewise.
63254         * modules/time_r (Makefile.am): Likewise.
63255         * modules/timegm (Makefile.am): Likewise.
63256         * modules/timespec (Makefile.am): Likewise.
63257         * modules/tmpfile-safer (Makefile.am): Likewise.
63258         * modules/trim (Makefile.am): Likewise.
63259         * modules/unistd-safer (Makefile.am): Likewise.
63260         * modules/unlinkdir (Makefile.am): Likewise.
63261         * modules/unlocked-io (Makefile.am): Likewise.
63262         * modules/userspec (Makefile.am): Likewise.
63263         * modules/utime (Makefile.am): Likewise.
63264         * modules/utimecmp (Makefile.am): Likewise.
63265         * modules/utimens (Makefile.am): Likewise.
63266         * modules/vasnprintf (Makefile.am): Likewise.
63267         * modules/vasprintf (Makefile.am): Likewise.
63268         * modules/vsnprintf (Makefile.am): Likewise.
63269         * modules/xalloc (Makefile.am): Likewise.
63270         * modules/xgetcwd (Makefile.am): Likewise.
63271         * modules/xnanosleep (Makefile.am): Likewise.
63272         * modules/xreadlink (Makefile.am): Likewise.
63273         * modules/xstrtod (Makefile.am): Likewise.
63274         * modules/xstrtol (Makefile.am): Likewise.
63275         * modules/xstrtold (Makefile.am): Likewise.
63276         * modules/yesno (Makefile.am): Likewise.
63277         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
63278
63279 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
63280
63281         * modules/error (Makefile.am): Distribute files through
63282         EXTRA_DIST, not lib_SOURCES.
63283
63284 2006-10-12  Eric Blake  <ebb9@byu.net>
63285
63286         * modules/error (Makefile.am): Distribute files in /lib.
63287         * modules/obstack (Makefile.am): Likewise.
63288
63289 2006-10-12  Bruno Haible  <bruno@clisp.org>
63290
63291         * modules/acl (Makefile.am): Distribute all files in lib/ through
63292         EXTRA_DIST.
63293         * modules/arcfour (Makefile.am): Likewise.
63294         * modules/arctwo (Makefile.am): Likewise.
63295         * modules/argmatch (Makefile.am): Likewise.
63296         * modules/argz (Makefile.am): Likewise.
63297         * modules/atexit (Makefile.am): Likewise.
63298         * modules/backupfile (Makefile.am): Likewise.
63299         * modules/c-strtod (Makefile.am): Likewise.
63300         * modules/c-strtold (Makefile.am): Likewise.
63301         * modules/calloc (Makefile.am): Likewise.
63302         * modules/canon-host (Makefile.am): Likewise.
63303         * modules/canonicalize (Makefile.am): Likewise.
63304         * modules/chdir-long (Makefile.am): Likewise.
63305         * modules/chdir-safer (Makefile.am): Likewise.
63306         * modules/check-version (Makefile.am): Likewise.
63307         * modules/chown (Makefile.am): Likewise.
63308         * modules/cloexec (Makefile.am): Likewise.
63309         * modules/close-stream (Makefile.am): Likewise.
63310         * modules/closeout (Makefile.am): Likewise.
63311         * modules/crc (Makefile.am): Likewise.
63312         * modules/cycle-check (Makefile.am): Likewise.
63313         * modules/des (Makefile.am): Likewise.
63314         * modules/dirfd (Makefile.am): Likewise.
63315         * modules/dirname (Makefile.am): Likewise.
63316         * modules/dup2 (Makefile.am): Likewise.
63317         * modules/euidaccess (Makefile.am): Likewise.
63318         * modules/exclude (Makefile.am): Likewise.
63319         * modules/exitfail (Makefile.am): Likewise.
63320         * modules/fcntl-safer (Makefile.am): Likewise.
63321         * modules/file-type (Makefile.am): Likewise.
63322         * modules/fileblocks (Makefile.am): Likewise.
63323         * modules/filemode (Makefile.am): Likewise.
63324         * modules/filenamecat (Makefile.am): Likewise.
63325         * modules/fnmatch (Makefile.am): Likewise.
63326         * modules/fopen-safer (Makefile.am): Likewise.
63327         * modules/fpending (Makefile.am): Likewise.
63328         * modules/fprintftime (Makefile.am): Likewise.
63329         * modules/free (Makefile.am): Likewise.
63330         * modules/fsusage (Makefile.am): Likewise.
63331         * modules/ftruncate (Makefile.am): Likewise.
63332         * modules/fts (Makefile.am): Likewise.
63333         * modules/gc (Makefile.am): Likewise.
63334         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
63335         * modules/getaddrinfo (Makefile.am): Likewise.
63336         * modules/getcwd (Makefile.am): Likewise.
63337         * modules/getdelim (Makefile.am): Likewise.
63338         * modules/getdomainname (Makefile.am): Likewise.
63339         * modules/getgroups (Makefile.am): Likewise.
63340         * modules/gethostname (Makefile.am): Likewise.
63341         * modules/gethrxtime (Makefile.am): Likewise.
63342         * modules/getline (Makefile.am): Likewise.
63343         * modules/getloadavg (Makefile.am): Likewise.
63344         * modules/getlogin_r (Makefile.am): Likewise.
63345         * modules/getopt (Makefile.am): Likewise.
63346         * modules/getpass (Makefile.am): Likewise.
63347         * modules/getpass-gnu (Makefile.am): Likewise.
63348         * modules/getsubopt (Makefile.am): Likewise.
63349         * modules/gettime (Makefile.am): Likewise.
63350         * modules/gettimeofday (Makefile.am): Likewise.
63351         * modules/getugroups (Makefile.am): Likewise.
63352         * modules/getusershell (Makefile.am): Likewise.
63353         * modules/glob (Makefile.am): Likewise.
63354         * modules/group-member (Makefile.am): Likewise.
63355         * modules/hard-locale (Makefile.am): Likewise.
63356         * modules/hash (Makefile.am): Likewise.
63357         * modules/hmac-md5 (Makefile.am): Likewise.
63358         * modules/hmac-sha1 (Makefile.am): Likewise.
63359         * modules/human (Makefile.am): Likewise.
63360         * modules/idcache (Makefile.am): Likewise.
63361         * modules/imaxabs (Makefile.am): Likewise.
63362         * modules/imaxdiv (Makefile.am): Likewise.
63363         * modules/inet_ntop (Makefile.am): Likewise.
63364         * modules/inet_pton (Makefile.am): Likewise.
63365         * modules/inttostr (Makefile.am): Likewise.
63366         * modules/isapipe (Makefile.am): Likewise.
63367         * modules/lchown (Makefile.am): Likewise.
63368         * modules/long-options (Makefile.am): Likewise.
63369         * modules/lstat (Makefile.am): Likewise.
63370         * modules/malloc (Makefile.am): Likewise.
63371         * modules/mathl (Makefile.am): Likewise.
63372         * modules/mbchar (Makefile.am): Likewise.
63373         * modules/md2 (Makefile.am): Likewise.
63374         * modules/md4 (Makefile.am): Likewise.
63375         * modules/md5 (Makefile.am): Likewise.
63376         * modules/memcasecmp (Makefile.am): Likewise.
63377         * modules/memchr (Makefile.am): Likewise.
63378         * modules/memcmp (Makefile.am): Likewise.
63379         * modules/memcoll (Makefile.am): Likewise.
63380         * modules/memcpy (Makefile.am): Likewise.
63381         * modules/memmem (Makefile.am): Likewise.
63382         * modules/memmove (Makefile.am): Likewise.
63383         * modules/mempcpy (Makefile.am): Likewise.
63384         * modules/memrchr (Makefile.am): Likewise.
63385         * modules/memset (Makefile.am): Likewise.
63386         * modules/memxor (Makefile.am): Likewise.
63387         * modules/mkancesdirs (Makefile.am): Likewise.
63388         * modules/mkdir (Makefile.am): Likewise.
63389         * modules/mkdir-p (Makefile.am): Likewise.
63390         * modules/mkdtemp (Makefile.am): Likewise.
63391         * modules/mkstemp (Makefile.am): Likewise.
63392         * modules/mktime (Makefile.am): Likewise.
63393         * modules/modechange (Makefile.am): Likewise.
63394         * modules/mountlist (Makefile.am): Likewise.
63395         * modules/nanosleep (Makefile.am): Likewise.
63396         * modules/openat (Makefile.am): Likewise.
63397         * modules/pagealign_alloc (Makefile.am): Likewise.
63398         * modules/physmem (Makefile.am): Likewise.
63399         * modules/poll (Makefile.am): Likewise.
63400         * modules/posixtm (Makefile.am): Likewise.
63401         * modules/posixver (Makefile.am): Likewise.
63402         * modules/putenv (Makefile.am): Likewise.
63403         * modules/quote (Makefile.am): Likewise.
63404         * modules/quotearg (Makefile.am): Likewise.
63405         * modules/raise (Makefile.am): Likewise.
63406         * modules/read-file (Makefile.am): Likewise.
63407         * modules/readline (Makefile.am): Likewise.
63408         * modules/readlink (Makefile.am): Likewise.
63409         * modules/readtokens (Makefile.am): Likewise.
63410         * modules/readutmp (Makefile.am): Likewise.
63411         * modules/realloc (Makefile.am): Likewise.
63412         * modules/regex (Makefile.am): Likewise.
63413         * modules/rename (Makefile.am): Likewise.
63414         * modules/rename-dest-slash (Makefile.am): Likewise.
63415         * modules/rijndael (Makefile.am): Likewise.
63416         * modules/rmdir (Makefile.am): Likewise.
63417         * modules/rpmatch (Makefile.am): Likewise.
63418         * modules/safe-read (Makefile.am): Likewise.
63419         * modules/safe-write (Makefile.am): Likewise.
63420         * modules/same (Makefile.am): Likewise.
63421         * modules/save-cwd (Makefile.am): Likewise.
63422         * modules/savedir (Makefile.am): Likewise.
63423         * modules/setenv (Makefile.am): Likewise.
63424         * modules/settime (Makefile.am): Likewise.
63425         * modules/sha1 (Makefile.am): Likewise.
63426         * modules/sig2str (Makefile.am): Likewise.
63427         * modules/snprintf (Makefile.am): Likewise.
63428         * modules/stdlib-safer (Makefile.am): Likewise.
63429         * modules/stpcpy (Makefile.am): Likewise.
63430         * modules/stpncpy (Makefile.am): Likewise.
63431         * modules/strcase (Makefile.am): Likewise.
63432         * modules/strcasestr (Makefile.am): Likewise.
63433         * modules/strchrnul (Makefile.am): Likewise.
63434         * modules/strcspn (Makefile.am): Likewise.
63435         * modules/strdup (Makefile.am): Likewise.
63436         * modules/strerror (Makefile.am): Likewise.
63437         * modules/strftime (Makefile.am): Likewise.
63438         * modules/strndup (Makefile.am): Likewise.
63439         * modules/strnlen (Makefile.am): Likewise.
63440         * modules/strpbrk (Makefile.am): Likewise.
63441         * modules/strsep (Makefile.am): Likewise.
63442         * modules/strstr (Makefile.am): Likewise.
63443         * modules/strtod (Makefile.am): Likewise.
63444         * modules/strtoimax (Makefile.am): Likewise.
63445         * modules/strtok_r (Makefile.am): Likewise.
63446         * modules/strtol (Makefile.am): Likewise.
63447         * modules/strtoll (Makefile.am): Likewise.
63448         * modules/strtoul (Makefile.am): Likewise.
63449         * modules/strtoull (Makefile.am): Likewise.
63450         * modules/strtoumax (Makefile.am): Likewise.
63451         * modules/strverscmp (Makefile.am): Likewise.
63452         * modules/time_r (Makefile.am): Likewise.
63453         * modules/timegm (Makefile.am): Likewise.
63454         * modules/tmpfile-safer (Makefile.am): Likewise.
63455         * modules/unistd-safer (Makefile.am): Likewise.
63456         * modules/unlinkdir (Makefile.am): Likewise.
63457         * modules/userspec (Makefile.am): Likewise.
63458         * modules/utime (Makefile.am): Likewise.
63459         * modules/utimecmp (Makefile.am): Likewise.
63460         * modules/utimens (Makefile.am): Likewise.
63461         * modules/vasnprintf (Makefile.am): Likewise.
63462         * modules/vasprintf (Makefile.am): Likewise.
63463         * modules/vsnprintf (Makefile.am): Likewise.
63464         * modules/xalloc (Makefile.am): Likewise.
63465         * modules/xgetcwd (Makefile.am): Likewise.
63466         * modules/xnanosleep (Makefile.am): Likewise.
63467         * modules/xreadlink (Makefile.am): Likewise.
63468         * modules/xstrtod (Makefile.am): Likewise.
63469         * modules/xstrtol (Makefile.am): Likewise.
63470         * modules/xstrtold (Makefile.am): Likewise.
63471         * modules/yesno (Makefile.am): Likewise.
63472
63473 2006-10-12  Jim Meyering  <jim@meyering.net>
63474
63475         * m4/getloadavg.m4: Revert the change below.
63476
63477         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
63478         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
63479         fail with a symlink, which is what coreutils' ./bootstrap now
63480         creates by default.
63481
63482 2006-10-12  Bruno Haible  <bruno@clisp.org>
63483
63484         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
63485         mingw.
63486         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
63487         MSVC and mingw explicitly.
63488
63489 2006-10-11  Simon Josefsson  <jas@extundo.com>
63490             Bruno Haible  <bruno@clisp.org>
63491
63492         Add support for multiple gnulib-tool invocations in the scope of a
63493         single configure.ac file.
63494         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
63495         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
63496         with the same contents as the _LIBADD variable.
63497         (func_emit_initmacro_start, func_emit_initmacro_end,
63498         func_emit_initmacro_done): New functions.
63499         (func_import, func_create_testdir): Invoke them. Allow the identifiers
63500         gl_LIBOBJS and gl_LTLIBOBJS.
63501
63502 2006-10-11  Bruno Haible  <bruno@clisp.org>
63503
63504         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
63505         (func_create_testdir): Don't create po/Makefile.am, don't invoke
63506         autoreconf. Instead, invoke autopoint explicitly but move back the
63507         *.m4 files from gnulib.
63508
63509 2006-10-11  Bruno Haible  <bruno@clisp.org>
63510
63511         * gnulib-tool (func_usage): Make module names after --create-testdir
63512         optional.
63513         (func_create_testdir): If no module was specified, use nearly all
63514         modules.
63515
63516 2006-10-12  Jim Meyering  <jim@meyering.net>
63517
63518         Big performance improvement for fts-based tools that use FTS_NOSTAT.
63519         Avoid spurious inode-mismatch problems on non-POSIX file systems.
63520         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
63521         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
63522         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
63523         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
63524         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
63525         (fts_set_stat_required): New function.
63526         (fts_open): Defer the calls to fts_stat, if possible or requested.
63527         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
63528         into fts_stat itself.
63529         (fts_read): Perform any required (deferred) fts_stat call.
63530         (fts_build): Likewise, for the directory we're about to open and read.
63531         In the readdir loop, carefully decide whether each entry will require
63532         an eventual call to fts_stat, using dirent.d_type info if available.
63533         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
63534         a command line argument into this function.  Update all callers.
63535         Map a return value of FTS_DOT to FTS_D for a command line argument.
63536         * modules/fts (Depends-on): Add d-type.  Alphabetize.
63537         Thanks to Miklos Szeredi for his tenacity and for the initial
63538         bug report about "find" failing on a FUSE-based file system.
63539
63540         * lib/fts.c (fts_open): Use consistent indentation.
63541
63542 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
63543
63544         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
63545         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
63546         reported by Jim Meyering.  All uses of cache variables renamed
63547         to match Autoconf's.
63548         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
63549         the other one.
63550
63551         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
63552         Fix misspelling in diagnostic.
63553
63554 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
63555
63556         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
63557         defined.  Problem reported by Matthew Woehlke.
63558
63559         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
63560         Add support for Tandem NonStop R series.
63561         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
63562         Use new macro.
63563
63564         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
63565         (has_trailing_slash): Omit size arg; all callers changed.
63566         Omit 'inline', since it doesn't help performance and we'd
63567         need to configure it.
63568         Don't count //, ///, etc. as having a trailing slash.
63569         As a side effect, this removes a C99ism reported by Matthew Woehlke.
63570         (rpl_rename_dest_slash): On failure, use rename's errno rather
63571         than (in some cases) an incorrect or junk errno.
63572         Simplify code by removing need to compute length; this does
63573         cause it to make two passes instead of one over the file name,
63574         but it's worth it.
63575
63576         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
63577         change, since Autoconf's version may no longer be appropriate now
63578         that we are using CVS Autoconf's version.  Add support for Tandem.
63579
63580 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
63581             Bruno Haible  <bruno@clisp.org>
63582
63583         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
63584         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
63585         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
63586         gl_AC_TYPE_LONG_LONG.
63587
63588         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
63589         instead of HAVE_LONG_LONG.
63590         * lib/printf-args.c (printf_fetchargs): Likewise.
63591         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
63592         * lib/vasnprintf.c (VASNPRINTF): Likewise.
63593         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
63594         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
63595         gl_AC_TYPE_LONG_LONG.
63596
63597 2006-10-11  Bruno Haible  <bruno@clisp.org>
63598
63599         * m4/longlong.m4: Add comments.
63600         * m4/ulonglong.m4: Likewise.
63601
63602 2006-10-10  Bruno Haible  <bruno@clisp.org>
63603
63604         Make it possible to #define stpcpy, strdup to aliases.
63605         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
63606         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
63607
63608 2006-10-10  Bruno Haible  <bruno@clisp.org>
63609
63610         Make it possible to #define gcd to an alias.
63611         * lib/gcd.c: Include config.h.
63612
63613 2006-10-10  Bruno Haible  <bruno@clisp.org>
63614
63615         Make it possible to #define c_isascii to an alias.
63616         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
63617         defined. Undefine the macros before defining them, to avoid gcc
63618         warnings.
63619         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
63620         define NO_C_CTYPE_MACROS early.
63621
63622 2006-10-10  Bruno Haible  <bruno@clisp.org>
63623
63624         Make it possible to #define set_program_name to an alias.
63625         * lib/progname.c: Don't undefine set_program_name; instead, undefine
63626         ENABLE_RELOCATABLE early.
63627
63628 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
63629
63630         Port to Tandem NSK OSS, which has 64-bit signed int but at most
63631         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
63632         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
63633         More generally, don't assume that 64-bit signed int is available
63634         if unsigned int is, and vice versa.
63635         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
63636         unsigned symbols, not on their signed counterparts.
63637         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
63638         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
63639         (UINT64_C, UINTMAX_C):
63640         Likewise.
63641         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
63642         unsigned counterparts.
63643         (Have_long_long, Unsigned): New macros.
63644         (Int): Renamed from INT.
63645         (strtoimax): Use the new macros.
63646         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
63647         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
63648         * modules/inttypes (inttypes.h): Substitute
63649         HAVE_UNSIGNED_LONG_LONG_INT.
63650         * modules/stdint (stdint.h): Likewise.
63651         (Files): Add m4/ulonglong.m4.
63652
63653 2006-10-10  Bruno Haible  <bruno@clisp.org>
63654
63655         Fix a gcc -Wshadow warning.
63656         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
63657         to 'bucket'.
63658         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
63659         gl_linked_indexof_from_to): Likewise.
63660         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
63661         Likewise.
63662         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
63663         Likewise.
63664         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
63665         Reported by Eric Blake.
63666
63667 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
63668
63669         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
63670         for NetBSD.  Problem reported by Bruno Haible.
63671
63672 2006-10-09  Jim Meyering  <jim@meyering.net>
63673
63674         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
63675         Patch from Bruno Haible.
63676
63677 2006-10-09  Jim Meyering  <jim@meyering.net>
63678
63679         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
63680         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
63681         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
63682
63683 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
63684
63685         Don't include <config.h> twice; this doesn't work in some cases,
63686         e.g., when config.h has "#define intmax_t long long int" and
63687         we include <config.h>, <inttypes.h>, <config.h> in that order.
63688         Problem reported by Matthew Woehlke in:
63689         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
63690         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
63691         * lib/fts-cycle.c: Don't include config.h.
63692         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
63693         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
63694         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
63695         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
63696         inttypes.h.
63697         * lib/xstrtoumax.c: Likewise.
63698         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
63699         __strtol and the like, so that this module is more like its siblings.
63700         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
63701         Remove; no longer needed now that we assume gnulib inttypes.h.
63702
63703 2006-10-08  Bruno Haible  <bruno@clisp.org>
63704
63705         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
63706         option.
63707
63708 2006-10-07  Jim Meyering  <jim@meyering.net>
63709
63710         * modules/inttypes (inttypes.h): Revert what seems to have been
63711         an inadvertent part of today's change: use "|", not "/" in the
63712         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
63713
63714 2006-10-07  Bruno Haible  <bruno@clisp.org>
63715
63716         * modules/sublist: New file.
63717
63718 2006-10-07  Bruno Haible  <bruno@clisp.org>
63719
63720         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
63721         * modules/argz (argz.h): Likewise.
63722         * modules/arpa_inet (arpa/inet.h): Likewise.
63723         * modules/byteswap (byteswap.h): Likewise.
63724         * modules/configmake (configmake.h): Likewise.
63725         * modules/fcntl (fcntl.h): Likewise.
63726         * modules/fnmatch (fnmatch.h): Likewise.
63727         * modules/getopt (getopt.h): Likewise.
63728         * modules/glob (glob.h): Likewise.
63729         * modules/inttypes (inttypes.h): Likewise.
63730         * modules/netinet_in (netinet/in.h): Likewise.
63731         * modules/poll (poll.h): Likewise.
63732         * modules/stdbool (stdbool.h): Likewise.
63733         * modules/stdint (stdint.h): Likewise.
63734         * modules/sys_select (sys/select.h): Likewise.
63735         * modules/sys_socket (sys/socket.h): Likewise.
63736         * modules/sys_stat (sys/stat.h): Likewise.
63737         * modules/sysexits (sysexits.h): Likewise.
63738         * modules/unistd (unistd.h): Likewise.
63739         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63740         Add a "DO NOT EDIT" comment to the generated file.
63741         (func_import): Likewise for gnulib-comp.m4.
63742
63743 2006-10-07  Bruno Haible  <bruno@clisp.org>
63744
63745         * lib/gl_sublist.h: New file.
63746         * lib/gl_sublist.c: New file.
63747
63748 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
63749
63750         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
63751         name (relative to the original working directory) and the file
63752         name component (relative to the temporary working directory).  All
63753         callers changed.
63754         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
63755         * lib/mkdir-p.c (make_dir_parents): Likewise.
63756         * lib/mkdir-p.h (make_dir_parents): Likewise.
63757
63758 2006-10-06  Eric Blake  <ebb9@byu.net>
63759
63760         Define several macros for use by the clean-temp module.
63761         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
63762         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
63763         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
63764
63765         * lib/clean-temp.h (close_stream_temp): New declaration.
63766         * lib/clean-temp.c (includes): Pull in headers according to what
63767         other modules are in use.
63768         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
63769
63770 2006-10-06  Bruno Haible  <bruno@clisp.org>
63771
63772         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
63773         instead of fopen, fwriteerror.
63774
63775 2006-10-06  Bruno Haible  <bruno@clisp.org>
63776
63777         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
63778         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
63779         int.
63780         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
63781         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
63782         Return an error indicator.
63783         Suggested by Eric Blake.
63784
63785 2006-10-06  Bruno Haible  <bruno@clisp.org>
63786
63787         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
63788         Reported by Eric Blake.
63789
63790 2006-10-06  Bruno Haible  <bruno@clisp.org>
63791
63792         * modules/closeout (Description): Mention stderr too.
63793
63794 2006-10-06  Bruno Haible  <bruno@clisp.org>
63795         and Paul Eggert  <eggert@cs.ucla.edu>
63796
63797         * lib/closeout.c (close_stdout): Also close stderr.
63798         * lib/closeout.h: Update comment.
63799
63800 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
63801
63802         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
63803         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
63804         * lib/dirchownmod.c: Include lchown.h.
63805         * lib/lchown.c: Don't include files that lchown.h now includes.
63806         Don't declare chown, since lchown.h now does that.
63807         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
63808         (lchown): Define to rpl_chown if lchown is declared but
63809         does not exist.  Declare using a prototype if lchown is not
63810         declared.  Add a copyright notice.
63811         * lib/mkstemp.h: Include <unistd.h>.
63812         * lib/openat.c: Include lchown.h.
63813
63814         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
63815         we now test for that separately.
63816         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
63817         rather than O_NOFOLLOW, when testing whether it's possible to
63818         avoid a race condition reliably.
63819         * lib/savewd.c (savewd_chdir): Likewise.
63820
63821         Remove macros that are no longer needed now that stdint.h is
63822         reliable.
63823         * lib/fsusage.c (UINTMAX_MAX): Remove.
63824         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
63825         * lib/utimecmp.c (SIZE_MAX): Remove.
63826
63827         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
63828
63829         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
63830         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
63831         O_NOATIME works.
63832
63833 2006-10-05  Bruno Haible  <bruno@clisp.org>
63834
63835         * lib/gl_list.h (gl_sortedlist_search_from_to,
63836         gl_sortedlist_indexof_from_to): New declarations.
63837         (gl_list_implementation): New fields sortedlist_search_from_to,
63838         sortedlist_indexof_from_to.
63839         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
63840         inline functions.
63841         * lib/gl_list.c (gl_sortedlist_search_from_to,
63842         gl_sortedlist_indexof_from_to): New functions.
63843         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
63844         function.
63845         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
63846         (gl_array_sortedlist_search_from_to): New function.
63847         (gl_array_list_implementation): Update.
63848         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
63849         function.
63850         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
63851         (gl_carray_sortedlist_search_from_to): New function.
63852         (gl_carray_list_implementation): Update.
63853         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
63854         gl_linked_sortedlist_indexof_from_to): New functions.
63855         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
63856         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
63857         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
63858         gl_tree_sortedlist_indexof_from_to): New functions.
63859         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
63860         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
63861         Update.
63862         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
63863         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
63864         Update.
63865
63866 2006-10-05  Bruno Haible  <bruno@clisp.org>
63867
63868         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
63869         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
63870         (struct gl_list_implementation): Add fields search_from_to,
63871         indexof_from_to. Remove fields search, indexof.
63872         (gl_list_search): Use the search_from_to method.
63873         (gl_list_search_from, gl_list_search_from_to): New functions.
63874         (gl_list_indexof): Use the indexof_from_to method.
63875         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
63876         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
63877         (gl_list_search_from, gl_list_search_from_to): New functions.
63878         (gl_list_indexof): Use the indexof_from_to method.
63879         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
63880         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
63881         gl_array_indexof. Add start_index, end_index arguments.
63882         (gl_array_search_from_to): Renamed from gl_array_search. Add
63883         start_index, end_index arguments.
63884         (gl_array_remove, gl_array_list_implementation): Update.
63885         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
63886         gl_carray_indexof. Add start_index, end_index arguments.
63887         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
63888         start_index, end_index arguments.
63889         (gl_carray_remove, gl_carray_list_implementation): Update.
63890         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
63891         gl_linked_search. Add start_index, end_index arguments.
63892         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
63893         start_index, end_index arguments.
63894         (gl_linked_remove): Update.
63895         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
63896         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
63897         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
63898         field to 'size_t'.
63899         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
63900         gl_tree_search. Add start_index, end_index arguments.
63901         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
63902         start_index, end_index arguments.
63903         (gl_tree_remove): Update.
63904         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
63905         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
63906         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
63907         function.
63908         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
63909         gl_tree_search. Add start_index, end_index arguments.
63910         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
63911         start_index, end_index arguments.
63912         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
63913         Update.
63914         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
63915
63916 2006-10-05  Bruno Haible  <bruno@clisp.org>
63917
63918         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
63919
63920         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
63921         fwriteerror_temp): New declarations.
63922         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
63923         (descriptors): New variable.
63924         (cleanup): First, close the descriptors.
63925         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
63926         fclose_temp, fwriteerror_temp): New functions.
63927
63928 2006-10-04  Jim Meyering  <jim@meyering.net>
63929
63930         * lib/fts.c (fts_open): Tiny comment change.
63931
63932 2006-10-04  Bruno Haible  <bruno@clisp.org>
63933
63934         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
63935         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
63936         gl_LOCK_BODY.
63937         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
63938         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
63939         gl_LOCK_EARLY_BODY.
63940         (gl_LOCK): Require gl_LOCK_BODY.
63941
63942 2006-10-04  Bruno Haible  <bruno@clisp.org>
63943
63944         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
63945         (gl_oset_search_atleast): New declaration.
63946         (struct gl_oset_implementation): Add field 'search_atleast'.
63947         (gl_oset_search_atleast): New inline function.
63948         * lib/gl_oset.c (gl_oset_search_atleast): New function.
63949         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
63950         (gl_array_oset_implementation): Update.
63951         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
63952         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
63953         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
63954
63955 2006-10-04  Bruno Haible  <bruno@clisp.org>
63956
63957         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
63958
63959 2006-10-03  Bruno Haible  <bruno@clisp.org>
63960
63961         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
63962         from gl_avltreehash_list_implementation.
63963
63964 2006-10-03  Bruno Haible  <bruno@clisp.org>
63965
63966         * lib/gl_oset.c (gl_oset_add): Fix return type.
63967
63968 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
63969
63970         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
63971
63972 2006-10-02  Eric Blake  <ebb9@byu.net>
63973
63974         * modules/strnlen (Depends-on): Add extensions.
63975
63976 2006-10-02  Eric Blake  <ebb9@byu.net>
63977
63978         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
63979         definition in 2.60+.
63980
63981 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
63982
63983         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
63984         checks.
63985
63986 2006-10-02  Bruno Haible  <bruno@clisp.org>
63987
63988         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
63989         to the AUTOMAKE_OPTIONS.
63990         Reported by Jim Meyering.
63991
63992 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
63993
63994         Work around bug in Solaris 10 /proc file system:
63995         /proc/self/fd/NNN/.. isn't the parent directory of
63996         the directory whose file descriptor is NNN.  This needs to
63997         be worked around at run time, not compile time, since a
63998         program might be built on Solaris 8, where things work, and
63999         run on Solaris 10.
64000         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
64001         to use the following interface instead:
64002         (OPENAT_BUFFER_SIZE): New macro.
64003         (openat_proc_name): New function.
64004         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
64005         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
64006         Likewise.
64007         * lib/openat-proc.c: New file.
64008         * modules/openat (Files): Add lib/openat-proc.c.
64009         (Depends-on): Add same-inode, stdbool.
64010         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
64011
64012 2006-09-29  Bruno Haible  <bruno@clisp.org>
64013
64014         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
64015         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
64016         argument. Set stdout_closed before testing for ferror, not after.
64017         (fwriteerror, fwriteerror_no_ebadf): New functions.
64018
64019 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64020
64021         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
64022
64023 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
64024
64025         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
64026         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
64027
64028 2006-09-28  Jim Meyering  <jim@meyering.net>
64029
64030         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
64031         Include <unistd.h>.
64032
64033 2006-09-28  Bruno Haible  <bruno@clisp.org>
64034
64035         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
64036         * modules/linkedhash-list (Depends-on): Likewise.
64037         * modules/rbtreehash-list (Depends-on): Likewise.
64038
64039 2006-09-28  Bruno Haible  <bruno@clisp.org>
64040
64041         * lib/strndup.h: Simplify the redefinition of strndup.
64042         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
64043         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
64044
64045 2006-09-28  Bruno Haible  <bruno@clisp.org>
64046
64047         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
64048         * lib/gl_linkedhash_list.c: Likewise.
64049         * lib/gl_rbtreehash_list.c: Likewise.
64050
64051 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
64052
64053         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
64054         getaddrinfo.
64055
64056         * lib/__fpending.h: Don't include <stdio_ext.h> unless
64057         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
64058         it causes <stdio_ext.h> to cause a compile-time error.
64059         Problem reported by Nelson H. F. Beebe.
64060         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
64061         of HAVE_DECL___PENDING.
64062
64063         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
64064         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
64065         declaration.
64066
64067 2006-09-27  Jim Meyering  <jim@meyering.net>
64068
64069         This file could end up with a definition for a function
64070         named __strndup, rather than rpl_strndup on a system with
64071         incomplete weak_alias support.
64072         * lib/strndup.c (strndup): Rename from __strndup.
64073         Remove #defines that used to map __strndup to strndup.
64074         Don't use K&R prototypes.
64075         Remove LIBC-related code, since this file is not sync'd with glibc.
64076         * lib/strndup.h: Revamp, accordingly.
64077         * m4/strndup.m4: Modernize.
64078
64079 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
64080
64081         * modules/savewd (Depends-on): Add 'raise'.
64082         * lib/savewd.c: Include <signal.h>, for 'raise'.
64083
64084 2006-09-26  Jim Meyering  <jim@meyering.net>
64085
64086         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
64087         when we detect Darwin 8.7.0's acl_get_file bug.
64088         Rearrange to perform the new (below) run-test while $LIBS
64089         contains any acl-related library.  Set USE_ACL at the end.
64090         (gl_ACL_GET_FILE): New function.
64091
64092 2006-09-26  Eric Blake  <ebb9@byu.net>
64093
64094         * lib/verror.c: Include <config.h> unconditionally.
64095
64096 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
64097
64098         * modules/clock-time (Maintainer): Add self.
64099         * modules/getlogin_r (Depends-on): Add extensions.
64100
64101 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64102
64103         * modules/clock-time: New module.
64104         * modules/nanosleep (Depends-on): Add clock-time.
64105         * modules/gethrxtime (Depends-on): Likewise.
64106         * modules/gettime (Depends-on): Likewise.
64107         * modules/settime (Depends-on): Likewise.
64108
64109         * modules/fts-lgpl: Depend on openat.
64110         * modules/mkancesdirs: Depend on savewd.
64111         * modules/mkdir-p: Likewise.
64112
64113 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64114
64115         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
64116
64117         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
64118         `gl_have_arbitrary_file_name_length_limit' to
64119         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
64120         actually works between configure runs.
64121
64122 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64123             Bruno Haible  <bruno@clisp.org>
64124
64125         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
64126
64127 2006-09-25  Jim Meyering  <jim@meyering.net>
64128
64129         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
64130         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
64131
64132 2006-09-25  Eric Blake  <ebb9@byu.net>
64133
64134         * gnulib-tool (func_import, func_create_testdir): Fix typos in
64135         exec's in 2006-09-18 patch when shuffling fds.
64136
64137 2006-09-25  Bruno Haible  <bruno@clisp.org>
64138
64139         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
64140         Reported by Jim Meyering.
64141
64142 2006-09-24  Jim Meyering  <jim@meyering.net>
64143
64144         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
64145         compare a pointer against a literal "0".  That caused failures with
64146         at least HP-UX's hpcc.
64147
64148 2006-09-22  Simon Josefsson  <jas@extundo.com>
64149
64150         * modules/gc-sha1:
64151         * modules/gc-md4:
64152         * modules/gc-hmac-sha1:
64153         * modules/gc-hmac-md5:
64154         * modules/gc-des:
64155         * modules/gc-arcfour: Distribute more files.
64156
64157 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64158
64159         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
64160         (gl_linked_iterator_from_to): Initialize struct completely.
64161         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
64162         (gl_tree_iterator_from_to): Likewise
64163         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
64164         * lib/gl_array_list.c [lint] (gl_array_iterator)
64165         (gl_array_iterator_from_to): Likewise.
64166         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
64167         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
64168         (gl_carray_iterator_from_to): Likewise.
64169
64170         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
64171         * lib/md4.c (md4_process_block): Remove unused variable.
64172         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
64173         parentheses for clarity.
64174
64175 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64176
64177         * modules/bison-i18n (Depends-on): Add gettext.
64178
64179 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64180
64181         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
64182         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
64183         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
64184         also add missing comma that caused broken test.
64185         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
64186         stdlib.h, for `abort'.
64187         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
64188         variables.
64189         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
64190         include unistd.h if present, for `rmdir'.
64191         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
64192         variables.
64193         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
64194         in the process include standard headers for prototypes.
64195         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
64196         gets declared on GNU/Linux.
64197         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
64198         unistd.h, for `rmdir'.
64199         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
64200
64201         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
64202         always true.
64203         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
64204
64205         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
64206
64207 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64208
64209         * gnulib-tool (func_version): Create output all at once.  This
64210         may help avoid triggering unnecessary SIGPIPEs, and at any
64211         rate it doesn't hurt.
64212
64213 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64214             Bruno Haible  <bruno@clisp.org>
64215
64216         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
64217         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
64218         * m4/signed.m4 (bh_C_SIGNED): Likewise.
64219
64220         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
64221         (gl_FUNC_VASPRINTF): Invoke it.
64222
64223 2006-09-22  Bruno Haible  <bruno@clisp.org>
64224
64225         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
64226         getloadavg.c as first argument.
64227
64228 2006-09-22  Bruno Haible  <bruno@clisp.org>
64229
64230         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
64231         at the beginning of the gl_INIT macro.
64232         * modules/getloadavg (configure.ac): Pass $gl_source_base to
64233         gl_GETLOADAVG.
64234
64235 2006-09-22  Bruno Haible  <bruno@clisp.org>
64236
64237         * gnulib-tool (func_create_megatestdir): Don't include the config-h
64238         module.
64239         Suggested by Ralf Wildenhues.
64240
64241 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
64242
64243         Import this patch from libc:
64244
64245         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
64246
64247         * lib/regex_internal.c (re_string_reconstruct): Handle
64248         offset < pstr->valid_raw_len && pstr->offsets_needed case.
64249         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
64250         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
64251         re_string_context_at.
64252
64253         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
64254         now requires it.
64255         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
64256         gl_REGEX now does it for us.
64257         (gl_REGEX): Add test taken from
64258         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
64259
64260         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
64261         Check that large offsets work.  Modernize Autoconf usages.
64262         Prefer "yes" to mean a good thing rather than a bad.
64263         Don't put "#define mkstemp" in config.h, as this might interfere
64264         with standard system headers that "#define mkstemp mkstemp64".
64265
64266         * modules/mkstemp (Depends-on): Add extensions, so that
64267         mkstemp is visible on some platforms.
64268         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
64269         (Include): Change to "mkstemp.h" from <stdlib.h>.
64270         (Files): Add mkstemp.h.
64271
64272         * lib/mkstemp.h: New file, since some standard headers
64273         #define mkstemp.
64274         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
64275         Include "mkstemp.h".
64276         Make the _LIBC code resemble glibc original more,
64277         e.g., use K&R style.
64278         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
64279         (mkstemp): Remove, since mkstemp.h does this for us.
64280         * lib/stdlib--.h: Include mkstemp.h.
64281
64282         Import this patch from libc:
64283
64284         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
64285
64286         * lib/tempname.c (__gen_tempname): Change attempts_min
64287         into a macro.  Use preprocessor to decide how to initialize
64288         attempts [Coverity CID 67].
64289
64290 2006-09-20  Bruno Haible  <bruno@clisp.org>
64291
64292         * lib/mkdtemp.c: Import from libc.
64293         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
64294                 * sysdeps/posix/tempname.c (__gen_tempname): Change
64295                 attempts_min into a macro.  Use preprocessor to decide how to
64296                 initialize attempts [Coverity CID 67].
64297         2001-11-27  Paul Eggert  <eggert@twinsun.com>
64298                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
64299                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
64300
64301 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64302
64303         * gnulib-tool (func_exit): New function, to allow to pass the
64304         exit status portably through the trap.  Use everywhere.
64305         (--help, --version): Signal a write error.
64306         (trap): catch SIGPIPE, for write errors.
64307         Exit at the end of the trap, with the correct exit status.
64308
64309 2006-09-19  Karl Berry  <karl@gnu.org>
64310
64311         * doc/gnulib.texi: note about the license texinfo files.
64312
64313 2006-09-19  Eric Blake  <ebb9@byu.net>
64314
64315         * gnulib-tool: Avoid space-tab.
64316
64317 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
64318
64319         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
64320         that prevented coreutils 6.1 from building.  Problem reported
64321         by Petter Reinholdtsen.
64322
64323 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
64324
64325         * gnulib-tool (avoidlist): Fix typo that broke options like
64326         --avoid=lock that are used by coreutils bootstrap.
64327
64328 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
64329
64330         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
64331         more systematically.
64332
64333 2006-09-18  Jim Meyering  <jim@meyering.net>
64334
64335         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
64336
64337 2006-09-18  Bruno Haible  <bruno@clisp.org>
64338
64339         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
64340
64341 2006-09-18  Bruno Haible  <bruno@clisp.org>
64342
64343         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
64344         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
64345         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
64346         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
64347         * m4/gettext.m4: Require autoconf >= 2.52.
64348         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
64349         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
64350         of gl_cv_header_inttypes_h.
64351
64352 2006-09-18  Bruno Haible  <bruno@clisp.org>
64353
64354         * lib/javaversion.c: Include configmake.h.
64355
64356 2006-09-18  Bruno Haible  <bruno@clisp.org>
64357
64358         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
64359         avoid that the while loops be executed in a subshell.
64360
64361 2006-09-18  Bruno Haible  <bruno@clisp.org>
64362
64363         * MODULES.html.sh (func_module): Break long lines.
64364         Suggested by Bruce Korb <bkorb@gnu.org>.
64365
64366 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64367
64368         Speed up by a factor of 1.12.
64369         * gnulib-tool (nl): New variable.
64370         (func_import): Rewrite include directive extraction to only read each
64371         directive once.
64372
64373 2006-09-17  Bruno Haible  <bruno@clisp.org>
64374
64375         * modules/javaversion (Makefile.am): Remove DEFS setting.
64376         (Depends-on): Add configmake, for PKGDATADIR definition.
64377
64378 2006-09-17  Bruno Haible  <bruno@clisp.org>
64379
64380         * gnulib-tool (func_create_testdir): Rewrite all files at once.
64381
64382 2006-09-17  Bruno Haible  <bruno@clisp.org>
64383
64384         * gnulib-tool (func_append): New function, stolen from libtool.m4.
64385         (func_modules_transitive_closure, func_modules_add_dummy,
64386         func_modules_to_filelist, func_import, func_create_testdir,
64387         func_create_megatestdir, ...): Use it wherever possible.
64388         Suggested by Ralf Wildenhues.
64389
64390 2006-09-16  Karl Berry  <karl@gnu.org>
64391
64392         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
64393         to avoid sectioning errors.
64394         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
64395         [ifinfo]: blank line after @center-ed titles.
64396         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
64397         Spell FSF address consistently with others.
64398         (These changes approved by rms.)
64399
64400 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64401
64402         Speed up by a factor of 1.61.
64403         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
64404         already checked module names again.
64405
64406 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64407
64408         Speed up by a factor of 1.13.
64409         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
64410         for new_files, and the input to func_add_or_update.
64411
64412 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64413
64414         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
64415         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
64416
64417 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
64418
64419         * modules/mkancesdirs (Depends-on): Add fcntl.
64420         * modules/savewd: New file.
64421         * MODULES.html.sh (File system functions): Add savewd.
64422
64423         * modules/configmake (Makefile.am): Add support for the
64424         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
64425
64426 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
64427
64428         * m4/savewd.m4: New file.
64429
64430 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
64431
64432         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
64433         (dirchownmod): New arg FD.  All callers changed.
64434         Use FD rather than opening the directory ourself, as opening is
64435         now the caller's responsibility.
64436         * lib/dirchownmod.h: Likewise.
64437         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
64438         hosts that require <sys/types.h> before <sys/stat.h>.  Include
64439         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
64440         (test_dir): Remove.
64441         (mkancesdirs): Return length of prefix of FILE that has already
64442         been made, or -2 if there is a child doing the work.  Redo
64443         algorithm so that it is O(N) rather than O(N**2).  Optimize away
64444         ".", and treat ".." specially since it might stray back into
64445         already-created areas.  Use a subprocess if necessary.  New arg
64446         WD; all users changed.  MAKE_DIR function should now return 1
64447         if it creates a directory that is not readable.  Return -2 if
64448         a child process is spun off.
64449         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
64450         Adjust signature to match code.
64451         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
64452         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
64453         all users changed.
64454         * lib/savewd.c, lib/savewd.h: New files.
64455
64456 2006-09-15  Jim Meyering  <jim@meyering.net>
64457
64458         * modules/rename-dest-slash: New module.
64459         * MODULES.html.sh (posix_compat): Add it here.
64460
64461         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
64462
64463 2006-09-15  Jim Meyering  <jim@meyering.net>
64464
64465         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
64466         file.
64467
64468         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
64469
64470 2006-09-15  Jim Meyering  <jim@meyering.net>
64471
64472         * lib/rename-dest-slash.c (has_trailing_slash): Use
64473         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
64474         (rpl_rename_dest_slash): Perform the cheaper trailing slash
64475         test before testing whether SRC is a directory.
64476         Suggestions from Bruno Haible.
64477
64478         Avoid a warning about an unused variable.
64479         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
64480         into the #ifdef block where it's used.
64481
64482         * lib/rename-dest-slash.c: New file.
64483
64484 2006-09-14  Bruno Haible  <bruno@clisp.org>
64485
64486         * lib/allocsa.c: Include <config.h> unconditionally.
64487         * lib/asnprintf.c: Likewise.
64488         * lib/asprintf.c: Likewise.
64489         * lib/c-strcasecmp.c: Likewise.
64490         * lib/c-strcasestr.c: Likewise.
64491         * lib/c-strncasecmp.c: Likewise.
64492         * lib/c-strstr.c: Likewise.
64493         * lib/classpath.c: Likewise.
64494         * lib/clean-temp.c: Likewise.
64495         * lib/concatpath.c: Likewise.
64496         * lib/copy-file.c: Likewise.
64497         * lib/csharpcomp.c: Likewise.
64498         * lib/csharpexec.c: Likewise.
64499         * lib/execute.c: Likewise.
64500         * lib/fatal-signal.c: Likewise.
64501         * lib/findprog.c: Likewise.
64502         * lib/fwriteerror.c: Likewise.
64503         * lib/gl_array_list.c: Likewise.
64504         * lib/gl_array_oset.c: Likewise.
64505         * lib/gl_avltree_list.c: Likewise.
64506         * lib/gl_avltree_oset.c: Likewise.
64507         * lib/gl_avltreehash_list.c: Likewise.
64508         * lib/gl_carray_list.c: Likewise.
64509         * lib/gl_linked_list.c: Likewise.
64510         * lib/gl_linkedhash_list.c: Likewise.
64511         * lib/gl_list.c: Likewise.
64512         * lib/gl_oset.c: Likewise.
64513         * lib/gl_rbtree_list.c: Likewise.
64514         * lib/gl_rbtree_oset.c: Likewise.
64515         * lib/gl_rbtreehash_list.c: Likewise.
64516         * lib/imaxabs.c: Likewise.
64517         * lib/imaxdiv.c: Likewise.
64518         * lib/javacomp.c: Likewise.
64519         * lib/javaexec.c: Likewise.
64520         * lib/javaversion.c: Likewise.
64521         * lib/linebreak.c: Likewise.
64522         * lib/localcharset.c: Likewise.
64523         * lib/lock.c: Likewise.
64524         * lib/mbchar.c: Likewise.
64525         * lib/mbswidth.c: Likewise.
64526         * lib/mkdtemp.c: Likewise.
64527         * lib/pipe.c: Likewise.
64528         * lib/printf-args.c: Likewise.
64529         * lib/printf-parse.c: Likewise.
64530         * lib/progname.c: Likewise.
64531         * lib/progreloc.c: Likewise.
64532         * lib/readlink.c: Likewise.
64533         * lib/sh-quote.c: Likewise.
64534         * lib/stpcpy.c: Likewise.
64535         * lib/stpncpy.c: Likewise.
64536         * lib/strcasecmp.c: Likewise.
64537         * lib/strcasestr.c: Likewise.
64538         * lib/strcspn.c: Likewise.
64539         * lib/striconv.c: Likewise.
64540         * lib/strncasecmp.c: Likewise.
64541         * lib/strnlen1.c: Likewise.
64542         * lib/strstr.c: Likewise.
64543         * lib/strtok_r.c: Likewise.
64544         * lib/tls.c: Likewise.
64545         * lib/tmpdir.c: Likewise.
64546         * lib/unicodeio.c: Likewise.
64547         * lib/unsetenv.c: Likewise.
64548         * lib/vasnprintf.c: Likewise.
64549         * lib/vasprintf.c: Likewise.
64550         * lib/wait-process.c: Likewise.
64551         * lib/xallocsa.c: Likewise.
64552         * lib/xsetenv.c: Likewise.
64553         * lib/xstriconv.c: Likewise.
64554
64555 2006-09-13  Simon Josefsson  <jas@extundo.com>
64556
64557         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
64558         that internally, suggested by Ralf Wildenhues
64559         <Ralf.Wildenhues@gmx.de>.
64560
64561 2006-09-13  Simon Josefsson  <jas@extundo.com>
64562
64563         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
64564         @LIBOBJS@.
64565         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64566
64567 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
64568
64569         * lib/_fpending.c: Include <config.h> unconditionally, since we no
64570         longer worry about uses that don't define HAVE_CONFIG_H.
64571         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
64572         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
64573         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
64574         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
64575         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
64576         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
64577         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
64578         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
64579         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
64580         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
64581         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
64582         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
64583         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
64584         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
64585         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
64586         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
64587         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
64588         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
64589         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
64590         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
64591         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
64592         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
64593         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
64594         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
64595         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
64596         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
64597         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
64598         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
64599         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
64600         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
64601         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
64602         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
64603         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
64604         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
64605         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
64606         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
64607         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
64608         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
64609         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
64610         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
64611         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
64612         Likewise.
64613
64614 2006-09-13  Eric Blake  <ebb9@byu.net>
64615
64616         * lib/getopt.c: Fix typo in last commit.
64617
64618 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
64619
64620         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
64621         dgettext.
64622
64623 2006-09-12  Jim Meyering  <jim@meyering.net>
64624
64625         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
64626         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
64627         Reported by Nelson H. F. Beebe.
64628
64629 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
64630
64631         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
64632         program_invocation_name and program_invocation_short_name are
64633         initialized.
64634         * lib/argp-namefrob.h: Move declarations of program_invocation_name
64635         and program_invocation_short_name to argp.h, so they are visible
64636         to user programs.
64637         * lib/argp.h: Likewise
64638
64639 2006-09-10  Bruno Haible  <bruno@clisp.org>
64640
64641         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
64642         m4/inttypes_h.m4, m4/uintmax_t.m4.
64643
64644 2006-09-10  Bruno Haible  <bruno@clisp.org>
64645
64646         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
64647         gl_AC_TYPE_UINTMAX_T.
64648
64649 2006-09-10  Bruno Haible  <bruno@clisp.org>
64650
64651         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
64652
64653 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64654
64655         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
64656         convention.  Text proposed by Bruno Haible.
64657         (struct argp_option): Document the use of N_() wrappers.
64658
64659         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
64660         '\v', and translate the two parts separately, instead of feeding
64661         the whole string to gettext.  This allows to exclude
64662         '\v' from the strings visible to the translator by writing doc
64663         strings as N_("..") "\v" N_("..").
64664
64665 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
64666
64667         * config/srclist.txt: Undo latest change; the bug was fixed.
64668
64669 2006-09-09  Bruno Haible  <bruno@clisp.org>
64670
64671         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
64672         assignments if building a library without libtool.
64673         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
64674         in func_emit_lib_Makefile_am.
64675         (func_import): When building a static library libfoo.a, arrange to
64676         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
64677         (func_create_testdir): Likewise.
64678         * modules/gc (configure.ac, Makefile.am): If building statically,
64679         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
64680         * modules/iconvme (configure.ac, Makefile.am): Likewise.
64681         * modules/striconv (configure.ac, Makefile.am): Likewise.
64682         Based on a suggestion by Ralf Wildenhues.
64683
64684 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64685
64686         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
64687         Check for unistd.h too, since Autoconf doesn't assume POSIX.
64688         Also:
64689
64690         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64691         Add year_2050_test to catch glibc bug 2821
64692         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
64693
64694         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
64695         Prefer #ifdef to #if.
64696
64697         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
64698         Return from 'main' instead of calling 'exit'.
64699
64700 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64701
64702         * lib/mktime.c (guess_time_tm): Fix bug where mktime
64703         returned the maximum time_t value rather than (time_t) -1.
64704         Problem originally reported by William Bardwell
64705         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
64706
64707         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
64708         Moved to here ...
64709         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
64710         ... from here.
64711
64712 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64713
64714         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
64715         2821 is fixed.
64716
64717 2006-09-08  Jim Meyering  <jim@meyering.net>
64718
64719         Don't make generated files read-only.  That would bother too many
64720         people.  However, do retain the ability to work when targets are
64721         read-only: remove the destination and temporary files before writing
64722         them (when generated via sed or echo), or by using the -f option for
64723         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
64724         * modules/alloca-opt, modules/argz, modules/arpa_inet:
64725         * modules/byteswap, modules/configmake, modules/fcntl:
64726         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
64727         * modules/localcharset, modules/netinet_in, modules/poll:
64728         * modules/stdbool, modules/stdint, modules/sys_select:
64729         * modules/sys_socket, modules/sys_stat, modules/sysexits:
64730
64731 2006-09-08  Jim Meyering  <jim@meyering.net>
64732
64733         Avoid new build failure on FreeBSD 6.0.
64734         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
64735         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
64736         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
64737
64738 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64739
64740         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
64741
64742 2006-09-07  Jim Meyering  <jim@meyering.net>
64743
64744         Fix global typo in last change: use chmod u-w, not chmod u-x.
64745         Spotted by Paul Eggert and Bruce Korb.
64746         * modules/alloca-opt, modules/argz, modules/arpa_inet:
64747         * modules/byteswap, modules/configmake, modules/fcntl:
64748         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
64749         * modules/localcharset, modules/netinet_in, modules/poll:
64750         * modules/stdbool, modules/stdint, modules/sys_select:
64751         * modules/sys_socket, modules/sys_stat, modules/sysexits:
64752
64753 2006-09-06  Jim Meyering  <jim@meyering.net>
64754
64755         Make generated files be read-only.
64756         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
64757         Ensure that each generated file is now read-only.
64758         * modules/argz: Likewise.
64759         * modules/arpa_inet: Likewise.
64760         * modules/byteswap: Likewise.
64761         * modules/configmake: Likewise.
64762         * modules/fcntl: Likewise.
64763         * modules/fnmatch: Likewise.
64764         * modules/getopt: Likewise.
64765         * modules/glob: Likewise.
64766         * modules/inttypes: Likewise.
64767         * modules/netinet_in: Likewise.
64768         * modules/poll: Likewise.
64769         * modules/stdbool: Likewise.
64770         * modules/stdint: Likewise.
64771         * modules/sys_select: Likewise.
64772         * modules/sys_socket: Likewise.
64773         * modules/sys_stat: Likewise.
64774         * modules/sysexits: Likewise.
64775         * modules/localcharset: Same as above, but continue using temporary
64776         file named "t-$@" (why different?) rather than the "$@-t" used
64777         everywhere else.
64778
64779         * modules/sysexits (Makefile.am): Replace literal occurrences
64780         of "sysexit.h" more readable, and more consistent, "$@".
64781
64782 2006-09-06  Bruno Haible  <bruno@clisp.org>
64783
64784         * modules/striconv: New file.
64785         * modules/xstriconv: New file.
64786         * MODULES.html.sh (Internationalization functions): Add striconv,
64787         xstriconv.
64788
64789 2006-09-06  Bruno Haible  <bruno@clisp.org>
64790
64791         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
64792         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
64793         not using libtool correctly.
64794
64795 2006-09-06  Bruno Haible  <bruno@clisp.org>
64796
64797         * lib/striconv.h: New file.
64798         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
64799         iconvstring.c.
64800         * lib/xstriconv.h: New file.
64801         * lib/xstriconv.c: New file.
64802
64803 2006-09-06  Bruno Haible  <bruno@clisp.org>
64804
64805         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
64806         lib_..._LDFLAGS.
64807
64808 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64809
64810         * lib/argz_.h: Sync from Libtool.
64811
64812         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
64813                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
64814
64815         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
64816
64817 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
64818
64819         * modules/trim: New file.
64820
64821 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
64822
64823         * lib/trim.h: New file.
64824         * lib/trim.c: New file.
64825
64826 2006-09-05  Bruno Haible  <bruno@clisp.org>
64827
64828         * MODULES.html.sh (String handling): Add trim.
64829
64830 2006-09-04  Karl Berry  <karl@gnu.org>
64831
64832         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
64833         until next release.
64834
64835 2006-09-03  Bruno Haible  <bruno@clisp.org>
64836
64837         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
64838         correctly.
64839
64840 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
64841
64842         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
64843         not gl_GETLOADAVG.  Omit unneeded semicolons.
64844         Problems reported by Ralf Wildenhues in
64845         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
64846         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
64847         at the end, which is the usual gnulib style.
64848
64849         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
64850         of doing all the work ourselves.
64851         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
64852         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
64853
64854 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
64855
64856         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
64857         Problem reported by Ralf Wildenhues in
64858         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
64859
64860         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
64861         HAVE_STRUCT_STATFS_F_FSTYPENAME.
64862
64863 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
64864
64865         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
64866         yesterday's patch by changing test -n to test -z.
64867
64868 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
64869
64870         * modules/getloadavg (Files): Add m4/getloadavg.m4.
64871         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
64872         the former is now obsolescent.
64873
64874         * modules/chdir-long (Depends-on): Add fcntl.
64875
64876 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
64877
64878         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
64879         obsolescent, and programs should use gnulib instead.
64880         * m4/getloadavg.m4: New file, with contents taken from Autoconf
64881         but with prefixes changed.
64882
64883 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
64884
64885         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
64886         or stdbool.h, because they might not exist while configuring.
64887
64888         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
64889         Don't include unistd.h or limits.h; not needed, since chdir-long.h
64890         does that for us.
64891         (O_DIRECTORY): Remove.
64892
64893 2006-08-31  Eric Blake  <ebb9@byu.net>
64894
64895         * gnulib-tool: Don't let emacs change spaces to TAB.
64896
64897 2006-08-31  Bruno Haible  <bruno@clisp.org>
64898
64899         * gnulib-tool: When calling func_import more than once, do it in a
64900         subshell.
64901         Reported by Eric Blake <ebb9@byu.net>.
64902
64903 2006-08-31  Bruno Haible  <bruno@clisp.org>
64904
64905         * gnulib-tool (nl): Remove variable.
64906         (sed_transform_lib_file): Use more robust test for config-h module.
64907         (func_import): Fix typo in 2006-08-25 patch.
64908
64909 2006-08-31  Bruno Haible  <bruno@clisp.org>
64910
64911         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
64912         specified, augment Makefile.am variables instead of assigning them.
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         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
64921         Check for nanosleep bug.
64922         (LIB_NANOSLEEP): Append clock_gettime library if needed.
64923
64924 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
64925
64926         Work around a bug in both the Linux and SunOS 64-bit kernels:
64927         nanosleep mishandles sleeps for longer than 2**31 seconds.
64928         Problem reported by Frank v Waveren in
64929         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
64930         * lib/nanosleep.c (BILLION): New constant.
64931         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
64932         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
64933         implementation.
64934
64935 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
64936
64937         * modules/nanosleep (Depends-on): Add gettime.
64938
64939 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
64940         and Simon Josefsson  <jas@extundo.com>
64941         and Oskar Liljeblad  <oskar@osk.mine.nu>
64942
64943         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
64944         * gnulib-tool (func_import): New license type 'unmodifiable license
64945         text'.
64946         * modules/fdl: Use it.  Longer description.
64947         * module/gpl, module/lgpl: New files.
64948
64949 2006-08-30  Jim Meyering  <jim@meyering.net>
64950
64951         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
64952         shadowing the parameter.
64953
64954 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64955
64956         Sync from Libtool:
64957
64958         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64959
64960         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
64961         sharing with gnulib.  Report by Eric Blake.
64962
64963 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
64964
64965         * modules/isapipe: New file.
64966         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
64967
64968 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
64969
64970         * modules/configmake (Makefile.am): Add a comment, and omit
64971         the CONFIGMAKE_ prefix from generated macro names.  Suggested
64972         by Bruno Haible.
64973
64974 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
64975
64976         * m4/isapipe.m4: New file.
64977
64978 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
64979
64980         * lib/isapipe.c, lib/isapipe.h: New files.
64981
64982 2006-08-29  Jim Meyering  <jim@meyering.net>
64983
64984         * modules/configmake (Makefile.am): Make configmake.h depend on
64985         Makefile.  Otherwise, a stale configmake.h could hang around.
64986
64987 2006-08-29  Eric Blake  <ebb9@byu.net>
64988
64989         * lib/error.c (error_at_line, print_errno_message): Match libc, after
64990         resolution of upstream bug 3044.
64991
64992 2006-08-29  Bruno Haible  <bruno@clisp.org>
64993
64994         * modules/localcharset (Depends-on): Add configmake.
64995         (Makefile.am): Remove setting of LIBDIR through DEFS.
64996
64997 2006-08-29  Bruno Haible  <bruno@clisp.org>
64998
64999         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
65000         defined.
65001
65002 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
65003
65004         * modules/fcntl: New file.
65005         * modules/chdir-safer (Depends-on): Add fcntl.
65006         * modules/fts: Likewise.
65007         * modules/mkdir-p: Likewise.
65008
65009         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
65010         This undoes the most recent change, since we're now addressing the
65011         problem in a different way.
65012
65013         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
65014         into output, since the output might be called Makefile.am even
65015         if $makefile_name is something different.
65016         (func_import): Use $makefile_am rather than
65017         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
65018         empty.
65019
65020         * modules/inttypes (Files): Add m4/inttypes-h.m4.
65021
65022 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
65023
65024         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
65025         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
65026         recent change to stdint.m4, since we're now addressing the problem in a
65027         different way.
65028
65029 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
65030
65031         * m4/fcntl_h.m4: New file.
65032
65033 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
65034
65035         * lib/fcntl_.h: New file.
65036         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
65037         the fcntl module.
65038         * lib/dirchownmod.c: Likewise.
65039         * lib/fts.c: Likewise.
65040
65041         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
65042         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
65043         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
65044         just before including <inttypes.h>, to avoid circular inclusion.
65045
65046 2006-08-28  Jim Meyering  <jim@meyering.net>
65047
65048         * doc/visibility.texi: Actually read and correct the grammar of the
65049         sentence affected by yesterday's change.
65050
65051 2006-08-28  Eric Blake  <ebb9@byu.net>
65052
65053         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
65054         needs wrapper.
65055
65056 2006-08-28  Eric Blake  <ebb9@byu.net>
65057
65058         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
65059
65060 2006-08-28  Eric Blake  <ebb9@byu.net>
65061
65062         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
65063
65064 2006-08-28  Bruno Haible  <bruno@clisp.org>
65065
65066         * modules/c-strstr: New file, from GNU gettext.
65067         * MODULES.html.sh (String handling): Add c-strstr.
65068
65069 2006-08-28  Bruno Haible  <bruno@clisp.org>
65070
65071         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
65072         macros.
65073         Reported by Eric Blake.
65074
65075 2006-08-28  Bruno Haible  <bruno@clisp.org>
65076
65077         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
65078         (VASNPRINTF): Return a string of length > INT_MAX without failing.
65079         * lib/vasprintf.c: Include errno.h, limits.h.
65080         (EOVERFLOW): New fallback definition.
65081         (vasprintf): Test here whether the string length is > INT_MAX.
65082         * lib/vsnprintf.c: Include errno.h, limits.h.
65083         (EOVERFLOW): New fallback definition.
65084         (vsnprintf): Fix bug when generated string was too long for the buffer.
65085         Test here whether the string length is > INT_MAX.
65086
65087 2006-08-28  Bruno Haible  <bruno@clisp.org>
65088
65089         * lib/inttypes_.h (SCNX*): Remove definitions.
65090         Reported by Eric Blake.
65091
65092 2006-08-28  Bruno Haible  <bruno@clisp.org>
65093
65094         * lib/c-strstr.h: New file, from GNU gettext.
65095         * lib/c-strstr.c: New file, from GNU gettext.
65096
65097 2006-08-28  Bruno Haible  <bruno@clisp.org>
65098
65099         * gnulib-tool: Reorder some statements.
65100
65101 2006-08-28  Bruno Haible  <bruno@clisp.org>
65102
65103         * gnulib-tool: New option --makefile-name.
65104         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
65105         $makefile_name.
65106         (func_import): Write $makefile_name to the cache file, and read it from
65107         there unless explicitly specified. Use $makefile_name as file name
65108         instead of Makefile.am. Adjust the recommendations accordingly.
65109
65110 2006-08-28  Bruno Haible  <bruno@clisp.org>
65111
65112         * gnulib-tool (func_verify_module): Check against misapplying patch.
65113
65114 2006-08-28  Bruno Haible  <bruno@clisp.org>
65115
65116         * gnulib-tool (func_relativize, func_relconcat): New functions.
65117         Give an error if --local-dir is given with --update.
65118         Remove trailing slashes from $local_gnulib_dir.
65119         (func_import): Store the relativized $local_gnulib_dir in
65120         gnulib-cache.m4, and read it from there if not specified explicitly.
65121
65122 2006-08-28  Bruno Haible  <bruno@clisp.org>
65123
65124         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
65125         is the current directory. Respect also $local_gnulib_dir.
65126
65127 2006-08-28  Bruno Haible  <bruno@clisp.org>
65128             Simon Josefsson  <jas@extundo.com>
65129
65130         BeOS portability.
65131         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
65132
65133 2006-08-27  Jim Meyering  <jim@meyering.net>
65134
65135         * doc/visibility.texi: Remove duplicate word: "pointer".
65136
65137 2006-08-26  Bruno Haible  <bruno@clisp.org>
65138
65139         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
65140         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
65141         (Makefile.am): Create inttypes.h from inttypes_.h.
65142         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
65143
65144         * modules/imaxabs: New file.
65145
65146         * modules/imaxdiv: New file.
65147
65148 2006-08-26  Bruno Haible  <bruno@clisp.org>
65149
65150         * m4/inttypes.m4: New file.
65151         * m4/_inttypes_h.m4: Remove file.
65152         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
65153         PRI_MACROS_BROKEN.
65154         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
65155
65156         * m4/imaxabs.m4: New file.
65157
65158         * m4/imaxdiv.m4: New file.
65159
65160 2006-08-26  Bruno Haible  <bruno@clisp.org>
65161
65162         * lib/inttypes_.h: New file.
65163         * lib/inttypes.h: Remove file.
65164         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
65165
65166         * lib/imaxabs.c: New file.
65167
65168         * lib/imaxdiv.c: New file.
65169
65170 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65171
65172         New config-h module, so that "make" output needn't be cluttered
65173         by -DHAVE_CONFIG_H.
65174         * MODULES.html.sh (Support for building libraries and executables):
65175         Add config-h.
65176         * modules/config-h: New file.
65177         * gnulib-tool (nl, sed_transform_lib_file): New vars.
65178         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
65179         the config-h module is used.
65180
65181         New configmake module, so that "make" output needn't be cluttered
65182         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
65183         * MODULES.html.sh (Support for building libraries and executables):
65184         Add configmake.
65185         * modules/configmake: New file.
65186
65187 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65188
65189         * m4/config-h.m4: New file.
65190
65191 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
65192
65193         * config/srclist.txt: Add elisp-comp.
65194
65195 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
65196
65197         * MODULES.html.sh (Support for building libraries and executables):
65198         Add elisp-comp.
65199         * build-aux/elisp-comp: New file.
65200         * modules/elisp-comp: New file.
65201
65202 2006-08-24  Bruno Haible  <bruno@clisp.org>
65203
65204         * gnulib-tool (func_create_testdir): Use non-default values of
65205         sourcebase and m4base.
65206
65207 2006-08-24  Bruno Haible  <bruno@clisp.org>
65208
65209         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
65210         HTML structure.
65211
65212 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
65213
65214         * modules/openat (Depends-on): Add lchown.
65215
65216 2006-08-23  Bruno Haible  <bruno@clisp.org>
65217
65218         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
65219         of gl_LOCK_EARLY instead of gl_LOCK.
65220
65221 2006-08-23  Bruno Haible  <bruno@clisp.org>
65222
65223         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
65224         on OSF/1 to no.
65225         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
65226
65227 2006-08-23  Bruno Haible  <bruno@clisp.org>
65228
65229         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
65230         as unusable.
65231
65232         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
65233         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
65234         (gl_LOCK): New macro.
65235
65236 2006-08-22  Simon Josefsson  <jas@extundo.com>
65237
65238         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
65239         to md5 module.
65240
65241 2006-08-22  Simon Josefsson  <jas@extundo.com>
65242
65243         * MODULES.html.sh: Add "Support for maintaining and release
65244         projects".
65245
65246         * build-aux/gnupload: New file, from coreutils.
65247
65248 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
65249
65250         Avoid the need for AC_LIBSOURCES in m4 macros.
65251         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
65252         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
65253         * modules/check-version (EXTRA_DIST): Add check-version.h.
65254         * modules/crc (EXTRA_DIST): Add crc.h.
65255         * modules/des (EXTRA_DIST): Add des.h.
65256         * modules/gc (EXTRA_DIST): Add gc.h.
65257         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
65258         * modules/getline (EXTRA_DIST): Add getline.h.
65259         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
65260         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
65261         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
65262         * modules/md2 (EXTRA_DIST): Add md2.h.
65263         * modules/md4 (EXTRA_DIST): Add md4.h.
65264         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
65265         * modules/read-file (EXTRA_DIST): Add read-file.h.
65266         * modules/readline (EXTRA_DIST): Add readline.h.
65267         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
65268         rijndael-api-fst.h.
65269
65270 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
65271
65272         * m4/rijndael.m4 (gl_ARCFOUR):
65273         * m4/arctwo.m4 (gl_ARCTWO):
65274         * m4/check-version.m4 (gl_CHECK_VERSION):
65275         * m4/crc.m4 (gl_CRC):
65276         * m4/des.m4 (gl_DES):
65277         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
65278         * m4/gc.m4 (gl_GC):
65279         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
65280         * m4/getline.m4 (gl_FUNC_GETLINE):
65281         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
65282         * m4/hmac-md5.m4 (gl_HMAC_MD5):
65283         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
65284         * m4/md2.m4 (gl_MD2):
65285         * m4/md4.m4 (gl_MD4):
65286         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
65287         * m4/read-file.m4 (gl_FUNC_READ_FILE):
65288         * m4/readline.m4 (gl_FUNC_READLINE):
65289         * m4/rijndael.m4 (gl_RIJNDAEL):
65290         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
65291         to get the necessary .h files and whatnot.
65292
65293 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
65294
65295         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
65296         gnulib rather than the other way around.
65297         * config/srclistvars.sh (COREUTILS): Remove.
65298
65299 2006-08-22  Jim Meyering  <jim@meyering.net>
65300
65301         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
65302
65303         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
65304
65305 2006-08-22  Eric Blake  <ebb9@byu.net>
65306
65307         * modules/regexprops-generic: New file.
65308         * MODULES.html.sh (Support for building documentation): List it.
65309
65310 2006-08-22  Eric Blake  <ebb9@byu.net>
65311
65312         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
65313         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
65314         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
65315         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
65316
65317 2006-08-22  Bruno Haible  <bruno@clisp.org>
65318
65319         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
65320         and lib_LTLIBRARIES like the other lib_* variables.
65321
65322 2006-08-22  Bruno Haible  <bruno@clisp.org>
65323
65324         * build-aux/x-to-1.in: New file, from GNU gettext.
65325
65326 2006-08-22  Bruno Haible  <bruno@clisp.org>
65327
65328         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
65329         <utmpx.h> exists.
65330
65331 2006-08-22  Bruno Haible  <bruno@clisp.org>
65332
65333         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
65334         <utmpx.h> exists.
65335
65336 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
65337
65338         BeOS portability.
65339         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
65340         exist.
65341         Problem reported by Bruno Haible.
65342
65343 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
65344
65345         Avoid the need for AC_LIBSOURCES in m4 macros.
65346         * modules/acl (EXTRA_DIST): Add acl.h.
65347         * modules/argmatch (Files): Add m4/argmatch.m4.
65348         (configure.ac): Add gl_ARGMATCH.
65349         (EXTRA_DIST): Renamed from lib_SOURCES, for
65350         consistency with the other modules.  Remove argmatch.c.
65351         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
65352         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
65353         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
65354         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
65355         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
65356         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
65357         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
65358         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
65359         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
65360         * modules/closeout (EXTRA_DIST): Add closeout.h.
65361         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
65362         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
65363         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
65364         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
65365         dirname.h; remove basename.c and stripslash.c.
65366         * modules/exclude (EXTRA_DIST): Add exclude.h.
65367         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
65368         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
65369         * modules/file-type (EXTRA_DIST): Add file-type.h.
65370         * modules/filemode (EXTRA_DIST): Add filemode.h.
65371         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
65372         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
65373         * modules/fpending (EXTRA_DIST): Add __fpending.h.
65374         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
65375         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
65376         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
65377         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
65378         * modules/getdate (EXTRA_DIST): Add getdate.c.
65379         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
65380         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
65381         * modules/getpass (EXTRA_DIST): Add getpass.h.
65382         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
65383         * modules/group-member (EXTRA_DIST): Add group-member.h.
65384         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
65385         * modules/hash (EXTRA_DIST): Add hash.h.
65386         * modules/human (EXTRA_DIST): Add human.h.
65387         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
65388         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
65389         * modules/lchown (EXTRA_DIST): Add lchown.h.
65390         * modules/long-options (EXTRA_DIST): Add long-options.h.
65391         * modules/lstat (EXTRA_DIST): Add lstat.h.
65392         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
65393         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
65394         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
65395         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
65396         * modules/memxor (EXTRA_DIST): Add memxor.h.
65397         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
65398         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
65399         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
65400         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
65401         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
65402         * modules/physmem (EXTRA_DIST): Add physmem.h.
65403         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
65404         * modules/posixver (EXTRA_DIST): Add posixver.h.
65405         * modules/quote (EXTRA_DIST): Add quote.h.
65406         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
65407         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
65408         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
65409         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
65410         regex_internal.h regexec.c.
65411         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
65412         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
65413         * modules/same (EXTRA_DIST): Add same.h.
65414         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
65415         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
65416         * modules/savedir (EXTRA_DIST): Add savedir.h.
65417         * modules/sha1 (EXTRA_DIST): Add sha1.h.
65418         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
65419         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
65420         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
65421         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
65422         * modules/strdup (EXTRA_DIST): Add strdup.h.
65423         * modules/strftime (EXTRA_DIST): Add strftime.h.
65424         * modules/strndup (EXTRA_DIST): Add strndup.h.
65425         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
65426         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
65427         * modules/time_r (EXTRA_DIST): Add time_r.h.
65428         * modules/timespec (EXTRA_DIST): Add timespec.h.
65429         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
65430         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
65431         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
65432         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
65433         * modules/userspec (EXTRA_DIST): Add userspec.h.
65434         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
65435         * modules/utimens (EXTRA_DIST): Add utimens.h.
65436         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
65437         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
65438         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
65439         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
65440         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
65441         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
65442         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
65443         * modules/yesno (EXTRA_DIST): Add yesno.h.
65444
65445 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
65446
65447         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
65448
65449         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
65450         * m4/dev-ino.m4, same-inode.m4: Remove.
65451
65452         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
65453         * m4/acl.m4 (AC_FUNC_ACL):
65454         * m4/backupfile.m4 (gl_BACKUPFILE):
65455         * m4/c-strtod.m4 (gl_C99_STRTOLD):
65456         * m4/canon-host.m4 (gl_CANON_HOST):
65457         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
65458         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
65459         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
65460         * m4/cloexec.m4 (gl_CLOEXEC):
65461         * m4/close-stream.m4 (gl_CLOSE_STREAM):
65462         * m4/closeout.m4 (gl_CLOSEOUT):
65463         * m4/dirfd.m4 (gl_FUNC_DIRFD):
65464         * m4/dirname.m4 (gl_DIRNAME):
65465         * m4/exclude.m4 (gl_EXCLUDE):
65466         * m4/exitfail.m4 (gl_EXITFAIL):
65467         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
65468         * m4/file-type.m4 (gl_FILE_TYPE):
65469         * m4/filemode.m4 (gl_FILEMODE):
65470         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
65471         * m4/fpending.m4 (gl_FUNC_FPENDING):
65472         * m4/fprintftime.m4 (gl_FPRINTFTIME):
65473         * m4/fts.m4 (gl_FUNC_FTS):
65474         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
65475         * m4/getdate.m4 (gl_GETDATE):
65476         * m4/gethrxtime.m4 (gl_GETHRXTIME):
65477         * m4/getpagesize.m4 (gl_GETPAGESIZE):
65478         * m4/getpass.m4 (gl_FUNC_GETPASS):
65479         * m4/gettime.m4 (gl_GETTIME):
65480         * m4/getugroups.m4 (gl_GETUGROUPS):
65481         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
65482         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
65483         * m4/hard-locale.m4 (gl_HARD_LOCALE):
65484         * m4/hash.m4 (gl_HASH):
65485         * m4/idcache.m4 (gl_IDCACHE):
65486         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
65487         * m4/lchown.m4 (gl_FUNC_LCHOWN):
65488         * m4/long-options.m4 (gl_LONG_OPTIONS):
65489         * m4/lstat.m4 (gl_FUNC_LSTAT):
65490         * m4/md5.m4 (gl_MD5):
65491         * m4/memcasecmp.m4 (gl_MEMCASECMP):
65492         * m4/memcoll.m4 (gl_MEMCOLL):
65493         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
65494         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
65495         * m4/memxor.m4 (gl_MEMXOR):
65496         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
65497         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
65498         * m4/modechange.m4 (gl_MODECHANGE):
65499         * m4/mountlist.m4 (gl_MOUNTLIST):
65500         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
65501         * m4/openat.m4 (gl_FUNC_OPENAT):
65502         * m4/pathmax.m4 (gl_PATHMAX):
65503         * m4/physmem.m4 (gl_PHYSMEM):
65504         * m4/posixtm.m4 (gl_POSIXTM):
65505         * m4/posixver.m4 (gl_POSIXVER):
65506         * m4/quote.m4 (gl_QUOTE):
65507         * m4/quotearg.m4 (gl_QUOTEARG):
65508         * m4/readtokens.m4 (gl_READTOKENS):
65509         * m4/readutmp.m4 (gl_READUTMP):
65510         * m4/regex.m4 (gl_REGEX):
65511         * m4/safe-read.m4 (gl_SAFE_READ):
65512         * m4/safe-write.m4 (gl_SAFE_WRITE):
65513         * m4/same.m4 (gl_SAME):
65514         * m4/save-cwd.m4 (gl_SAVE_CWD):
65515         * m4/savedir.m4 (gl_SAVEDIR):
65516         * m4/settime.m4 (gl_SETTIME):
65517         * m4/sha1.m4 (gl_SHA1):
65518         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
65519         * m4/stat-macros.m4 (gl_STAT_MACROS):
65520         * m4/stat-time.m4 (gl_STAT_TIME):
65521         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
65522         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
65523         * m4/strdup.m4 (gl_FUNC_STRDUP):
65524         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
65525         * m4/strndup.m4 (gl_FUNC_STRNDUP):
65526         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
65527         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
65528         * m4/time_r.m4 (gl_TIME_R):
65529         * m4/timespec.m4 (gl_TIMESPEC):
65530         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
65531         * m4/unlinkdir.m4 (gl_UNLINKDIR):
65532         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
65533         * m4/userspec.m4 (gl_USERSPEC):
65534         * m4/utimecmp.m4 (gl_UTIMECMP):
65535         * m4/utimens.m4 (gl_UTIMENS):
65536         * m4/xalloc.m4 (gl_XALLOC):
65537         * m4/xgetcwd.m4 (gl_XGETCWD):
65538         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
65539         * m4/xreadlink.m4 (gl_XREADLINK):
65540         * m4/xstrtod.m4 (gl_XSTRTOD):
65541         * m4/yesno.m4 (gl_YESNO):
65542         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
65543         to get the necessary .h files and whatnot.
65544
65545 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
65546             Bruno Haible  <bruno@clisp.org>
65547
65548         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
65549         /bin/sh understanding of '!' conditional negation.
65550
65551 2006-08-21  Jim Meyering  <jim@meyering.net>
65552
65553         * modules/openat (Depends-on): Really alphabetize.
65554
65555         * modules/acl (Depends-on): Add error and quote.
65556
65557         * check-module (find_included_lib_files): Add at-func.c to the
65558         ok-to-include-more-than-once white list.
65559
65560         * modules/openat (Depends-on): Add lstat.  Alphabetize.
65561
65562 2006-08-21  Bruno Haible  <bruno@clisp.org>
65563
65564         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65565         Emit a pkgdata_DATA variable only if some snippets add contents to it.
65566         Reported by Martin Lambers <marlam@marlam.de>.
65567
65568 2006-08-21  Bruno Haible  <bruno@clisp.org>
65569
65570         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
65571         specify an installation location, don't emit a noinst_LIBRARIES or
65572         noinst_LTLIBRARIES assignment.
65573
65574 2006-08-21  Bruno Haible  <bruno@clisp.org>
65575
65576         BeOS portability.
65577         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
65578         BeOS has mbrtowc() but no <wctype.h>.
65579
65580 2006-08-21  Bruno Haible  <bruno@clisp.org>
65581
65582         BeOS portability.
65583         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
65584         exist.
65585
65586 2006-08-21  Bruno Haible  <bruno@clisp.org>
65587
65588         BeOS portability.
65589         * lib/mbchar.h: Include <wctype.h> only if it exists.
65590
65591 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65592
65593         Remove files that are no longer needed by their respective modules.
65594         * m4/obstack.m4: Remove.
65595         * m4/strerror_r.m4: Remove.
65596         * m4/uint32_t.m4: Remove.
65597         * m4/uintptr_t.m4: Remove.
65598         * m4/ullong_max.m4: Remove.
65599         * m4/xstrtoimax.m4: Remove.
65600         * m4/xstrtoumax.m4: Remove.
65601
65602         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
65603         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
65604         dependencies now capture this.
65605
65606         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
65607         Do not use AC_LIBSOURCES, since gnulib modules now do this.
65608         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
65609         * m4/human.m4 (gl_HUMAN): Likewise.
65610         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
65611         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
65612
65613         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
65614
65615         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
65616         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
65617         stdint.
65618         * m4/human.m4 (gl_HUMAN): Likewise.
65619         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
65620         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
65621         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
65622         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
65623         * m4/xstrtol (gl_XSTRTOL): Likewise.
65624
65625         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
65626         AC_TYPE_LONG_LONG_INT.
65627         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
65628         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
65629         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
65630         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
65631
65632         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
65633         on stdbool.
65634
65635         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
65636         (gl_PREREQ_XSTRTOUL): Remove.
65637
65638         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
65639
65640         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
65641         mode.
65642
65643 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65644
65645         Add and change modules to make it easier for coreutils to use
65646         gnulib-tool.
65647         * modules/backupfile (Files): Remove m4/d-ino.m4.
65648         (Depends-on): Add d-ino.
65649         * modules/cycle-check (Depends-on): Add stdint.
65650         (lib_SOURCES): Add cycle-check.h.
65651         * modules/d-ino: New module.
65652         * modules/d-type: New module.
65653         * modules/error (Files): Remove m4/strerror_r.m4.
65654         * modules/filemode (Files): Add m4/st_dm_mode.m4.
65655         * modules/fsuage (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 fsusage.h.
65659         * modules/getcwd (Files): Remove d-ino.m4.
65660         (Depends-on): Add d-ino.
65661         * modules/getndelim2 (Depends-on): Add stdint.
65662         * modules/glob (Files): Remove m4/d-type.m4.
65663         (Depends-on): Add d-type.
65664         * modules/host-os: New module.
65665         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
65666         m4/inttypes_h.m4, m4/uintmax_t.m4.
65667         * Depends-on: Add stdint.
65668         (lib_SOURCES): Add human.h.
65669         * modules/inttostr (Files): Remove m4/intmax_t.m4,
65670         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
65671         m4/uintmax_t.m4, m4/ulonglong.m4.
65672         (Depends-on): Add stdint.
65673         (EXTRA_DIST): Add inttostr.h.
65674         * modules/lchmod: New module.
65675         * modules/link-follow: New module.
65676         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
65677         (Depends-on): Add lchmod.
65678         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
65679         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
65680         (Depends-on): Add stdint.
65681         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
65682         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
65683         (Depends-on): Add stdint.
65684         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
65685         * modules/perl: New module.
65686         * modules/regex (Depends-on): Add stdint.
65687         * modules/rmdir-errno: New module.
65688         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
65689         m4/intmax_t.m4.
65690         (Depends-on): Add stdint.
65691         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
65692         m4/uintmax_t.m4.
65693         (Depends-on): Add stdint.
65694         * modules/unlink-busy: New module.
65695         * modules/utimecmp (Depends-on): Add stdint.
65696         * modules/uptime: New module.
65697         * modules/winsz-ioctl: New module.
65698         * modules/winsz-termios: New module.
65699         * modules/xnanosleep (Depends-on): Add nanosleep.
65700         * modules/ullong_max: Remove.
65701         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
65702         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
65703         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
65704         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
65705         (Depends-on): Add inttypes.
65706         (lib_SOURCES): Add xstrtol.h.
65707         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
65708         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
65709         * MODULES.html.sh: Move 'assert' into the assert section.
65710         Move 'dummy' into the linking section.
65711         Remove ullong_max.
65712         Add section for compatibility checks for POSIX:2001 functions,
65713         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
65714         winsz-ioctl, and winsz-termios into it.
65715         Add lchmod.
65716         Add top-level Misc section and put host-os, perl, and uptime
65717         into it.
65718
65719 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65720
65721         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
65722         now assume the stdint module.  Do not include inttypes.h.
65723         * lib/fsusage.h: Likewise.
65724         * lib/getndelim2.c: Likewise.
65725         * lib/human.h: Likewise.
65726         * lib/inttostr.h: Likewise.
65727         * lib/obstack.c: Likewise.
65728         * lib/regex_internal.h: Likewise.
65729         * lib/tempname.c: Likewise.
65730         * lib/utimecmp.c: Likewise.
65731         * lib/xstrtol.h: Likewise.
65732
65733         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
65734
65735         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
65736         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
65737         * lib/xtime.h: Likewise.
65738
65739 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65740
65741         * modules/openat (Files): Add lib/fchmodat.c.
65742         Fixes problem reported by Jay Youngman.
65743
65744 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65745
65746         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
65747         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
65748
65749 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
65750             Bruno Haible  <bruno@clisp.org>
65751
65752         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
65753         and is a script that invokes bison. Tighten the code. Add comments.
65754
65755 2006-08-18  Jim Meyering  <jim@meyering.net>
65756
65757         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
65758         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
65759         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
65760         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
65761
65762 2006-08-18  Bruno Haible  <bruno@clisp.org>
65763
65764         * modules/bison-i18n: New file.
65765         * MODULES.html.sh (Internationalization functions): Add it.
65766
65767 2006-08-18  Bruno Haible  <bruno@clisp.org>
65768
65769         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
65770         sys/statvfs.h. When getmntinfo was found, check its declaration and
65771         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
65772
65773 2006-08-18  Bruno Haible  <bruno@clisp.org>
65774
65775         * m4/bison-i18n.m4: New file, from bison.
65776
65777 2006-08-18  Bruno Haible  <bruno@clisp.org>
65778
65779         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
65780         (ME_DUMMY): Treat "kernfs" as a dummy.
65781         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
65782
65783 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
65784
65785         Update from coreutils.
65786
65787         2006-08-15  Jim Meyering  <jim@meyering.net>
65788
65789         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
65790
65791         2006-01-17  Jim Meyering  <jim@meyering.net>
65792
65793         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
65794
65795         2006-01-11  Jim Meyering  <jim@meyering.net>
65796
65797         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
65798         Check for the lchmod function.
65799
65800 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
65801
65802         Update from coreutils.
65803
65804         * lib/__fpending.h: Add copyright notice.
65805         * lib/fprintftime.h: Likewise.
65806         * lib/savedir.c: Use (C) in copyright notice.
65807         * lib/savedir.h: Likewise.
65808
65809         2006-08-15  Jim Meyering  <jim@meyering.net>
65810
65811         * lib/at-func.c: New file, with the logic of all emulated at-functions.
65812         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
65813         in support of the EXPECTED_ERRNO macro.
65814         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
65815         definitions.  Instead, define the appropriate symbols and include
65816         "at-func.c".
65817         * lib/mkdirat.c (mkdirat): Likewise.
65818         * lib/fchmodat.c (fchmodat): Likewise.
65819         (ENOSYS): Remove definition.
65820         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
65821         it.  Don't include "unistd--.h" -- it wasn't ever used.
65822
65823         2006-01-17  Jim Meyering  <jim@meyering.net>
65824
65825         Rewrite fts.c not to change the current working directory,
65826         by using openat, fstatat, fdopendir, etc..
65827
65828         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
65829         (HAVE_OPENAT_SUPPORT): Define.
65830         [_LIBC] (fchdir): Don't undef or define; no longer used.
65831         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
65832         Now, this `function' always succeeds, and consumes its file descriptor
65833         parameter -- so callers must not close such FDs.  Update callers.
65834         (diropen_fd, opendirat, cwd_advance_fd): New functions.
65835         (diropen): Add parameter, SP.  Adjust all callers.
65836         Implement using diropen_fd, rather than open.
65837         (fts_open): Initialize new member, fts_cwd_fd.
65838         Remove fts_rft-setting code.
65839         (fts_close): Close fts_cwd_fd, if necessary.
65840         (__opendir2): Define in terms of opendir or opendirat,
65841         depending on whether the FST_NOCHDIR flag is set.
65842         (fts_build): Since fts_safe_changedir consumes its FD, and since
65843         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
65844         and close the dup'd file descriptor upon failure.
65845         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
65846         (fts_safe_changedir): Tweak semantics to reflect that this function
65847         now calls cwd_advance_fd and hence consumes its FD argument.
65848         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
65849         [struct FTS] (fts_rft): Remove now-unused member.
65850         [struct FTS] (fts_cycle.state): Improve comment.
65851
65852         * lib/openat.c (openat_needs_fchdir): New function.
65853         * lib/openat.h (openat_needs_fchdir): Declare it.
65854
65855 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
65856
65857         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
65858         Problem and fix reported by Pádraig Brady in
65859         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
65860
65861 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65862
65863         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
65864
65865 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65866
65867         * lib/memcoll.c (memcoll): Optimize for the common case where the
65868         arguments are bytewise equal.
65869
65870 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65871
65872         * doc/regexprops-generic.texi: Add a copyright notice.
65873
65874 2006-08-15  Bruno Haible  <bruno@clisp.org>
65875
65876         * modules/tmpdir (License): Change to LGPL.
65877
65878 2006-08-15  Bruno Haible  <bruno@clisp.org>
65879
65880         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
65881         module.
65882
65883 2006-08-14  Simon Josefsson  <jas@extundo.com>
65884
65885         * config/srclist.txt: Add gnupload.
65886
65887 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
65888
65889         Change copyright notice from LGPL 2 to GPL 2, since that's the
65890         standard form used in the gnulib repository.
65891         * tests/test-lock.c: Likewise.
65892         * tests/test-stdint.c: Likewise.
65893         * tests/test-tls.c: Likewise.
65894
65895         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
65896         prelude-manager.  User shorter URLs for GNU projects, without '?'.
65897         Add copyright notice.
65898
65899         * check-module: Add copyright notice.  Output a copyright
65900         notice if "--version" is specified.
65901         * modules/COPYING: New file.
65902         * tests/test-getaddrinfo.c: Add copyright notice.
65903         * tests/test-verify.c: Likewise.
65904
65905 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
65906
65907         Change copyright notice from LGPL 2 to GPL 2, since that's the
65908         standard form used in the gnulib repository.
65909         * lib/lock.c: LGPL -> GPL.
65910         * lib/lock.h: Likewise.
65911         * lib/strnlen1.c: Likewise.
65912         * lib/strnlen1.h: Likewise.
65913         * lib/tls.c: Likewise.
65914         * lib/tls.h: Likewise.
65915         * lib/tmpdir.c: Likewise.
65916
65917         * lib/TODO: Remove; this belongs only in coreutils.
65918
65919 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
65920
65921         Add copyright notices to long-enough files that lack them, since
65922         otherwise the files aren't clearly free.  Use the same notice that
65923         getdate.texi already uses.
65924         * doc/alloca-opt.texi: Add copyright notice.
65925         * doc/alloca.texi: Likewise.
65926         * doc/ctime.texi: Likewise.
65927         * doc/functions.texi: Likewise.
65928         * doc/gcd.texi: Likewise.
65929         * doc/gnulib-tool.texi: Likewise.
65930         * doc/inet_ntoa.texi: Likewise.
65931         * doc/visibility.texi: Likewise.
65932
65933         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
65934         * doc/quote.texi: Add copyright notice.
65935
65936         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
65937         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
65938         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
65939         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
65940         is now obsolete, and give a pointer to the Sun list.
65941         Add copyright notice.
65942
65943 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
65944
65945         * config/srclistvars.sh: Add copyright notice.
65946
65947 2006-08-14  Eric Blake  <ebb9@byu.net>
65948
65949         Import the following change from libc:
65950
65951         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
65952
65953         Upstream bug 2997.
65954         * lib/misc/error.c: Add space between program name and message if file
65955         name is missing.
65956
65957 2006-08-12  Karl Berry  <karl@gnu.org>
65958
65959         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
65960         remove, these originate in gnulib now.
65961
65962 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65963
65964         * doc/Makefile (standards.info standards.html standards.dvi):
65965         Also depend on make-stds.texi.
65966
65967 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
65968
65969         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
65970         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
65971
65972         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
65973         in wchar_t.  Problem reported by Eric Blake.
65974
65975         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
65976         LEN is smaller than SIZE.  Suggested by Bruno Haible.
65977         Also, help the compiler to keep LEN in a register.
65978
65979 2006-08-11  Eric Blake  <ebb9@byu.net>
65980
65981         * users.txt: Sort.  Add tar.
65982
65983 2006-08-11  Bruno Haible  <bruno@clisp.org>
65984
65985         * users.txt: New file.
65986
65987 2006-08-11  Bruno Haible  <bruno@clisp.org>
65988
65989         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
65990         before <wchar.h>. Needed for OSF/1 and BSD/OS.
65991
65992 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
65993
65994         * modules/snprintf (Depends-on): Remove minmax.
65995         (Maintainer): Add self and Bruno.
65996
65997 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
65998
65999         * lib/.cppi-disable: Add snprintf.h, socket_.h.
66000         * lib/snprintf.c: Include <errno.h> and <limits.h>.
66001         (EOVERFLOW): Define if the system does not.
66002         Do not include "minmax.h"; it wasn't used.
66003         (snprintf): Don't assume size_t promotes to an unsigned type.
66004         Fix bug when generated string was too long for the buffer: the
66005         buffer's contents are supposed to be the initial prefix of the
66006         output.  Don't assume vasnprintf returns EOVERFLOW if the size
66007         exceeds INT_MAX; do the check ourselves.
66008
66009         Import the following changes from libc:
66010
66011         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
66012
66013         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
66014         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
66015         set wc to the byte which couldn't be converted.
66016         (re_string_reconstruct): Don't clear valid_raw_len before calling
66017         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
66018         tip_context using re_string_context_at.
66019
66020         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
66021
66022         * lib/posix/regex.h: g++ still cannot handled [restrict].
66023
66024         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
66025
66026         * lib/posix/regex.h: Remove special handling for VMS.
66027
66028 2006-08-10  Jim Meyering  <jim@meyering.net>
66029
66030         * modules/same-inode: New module.
66031         * modules/dev-ino: New module.
66032         * modules/cycle-check: Depend on these modules, rather than simply
66033         including their .h files.
66034         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
66035         required via m4/cycle-check.m4.
66036         * modules/same: Depend on new same-inode module, rather than
66037         including same-inode.h.
66038         * modules/chdir-safer: New file.
66039
66040         * modules/chown (Depends-on): Add stat-macros.
66041
66042 2006-08-10  Jim Meyering  <jim@meyering.net>
66043
66044         * m4/cycle-check.m4: New file.
66045         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
66046         * m4/dev-ino.m4, m4/same-inode.m4: New files.
66047
66048 2006-08-10  Eric Blake  <ebb9@byu.net>
66049
66050         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
66051         in from original proposal.
66052
66053 2006-08-10  Eric Blake  <ebb9@byu.net>
66054         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
66055
66056         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
66057         namespace.
66058
66059 2006-08-10  Bruno Haible  <bruno@clisp.org>
66060
66061         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
66062         as well.
66063
66064 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
66065
66066         Sync from coreutils.
66067
66068         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
66069
66070         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
66071         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
66072
66073 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
66074
66075         * modules/restrict: Remove; no longer needed now that we assume
66076         Autoconf 2.59 or later.
66077         * MODULES.html.sh: Remove 'restrict'.
66078         * modules/argp (Depends-on): Remove 'restrict'.
66079         * modules/base64 (Depends-on): Likewise.
66080         * modules/gc (Depends-on): Likewise.
66081         * modules/getaddrinfo (Depends-on): Likewise.
66082         * modules/glob (Depends-on): Likewise.
66083         * modules/inet_ntop (Depends-on): Likewise.
66084         * modules/inet_pton (Depends-on): Likewise.
66085         * modules/memxor (Depends-on): Likewise.
66086         * modules/regex (Depends-on): Likewise.
66087         * modules/strtok_r (Depends-on): Likewise.
66088         * modules/time_r (Depends-on): Likewise.
66089
66090 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
66091
66092         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
66093         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
66094         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
66095         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
66096         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
66097         * m4/memxor.m4 (gl_MEMXOR): Likewise.
66098         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
66099         gl_C_RESTRICT replaced by AC_C_RESTRICT.
66100
66101         Merge from coreutils.
66102         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
66103         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
66104         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
66105         * m4/time_r.m4 (gl_TIME_R): Likewise.
66106
66107 2006-08-09  Karl Berry  <karl@gnu.org>
66108
66109         * config/srclist.txt: no more gettext-tools, per Bruno.
66110
66111 2006-08-08  Eric Blake  <ebb9@byu.net>
66112
66113         * modules/verror: New module.
66114         * MODULES.html.sh: Document it.
66115
66116 2006-08-08  Eric Blake  <ebb9@byu.net>
66117
66118         * lib/verror.h, lib/verror.c: New files.
66119
66120 2006-08-08  Eric Blake  <ebb9@byu.net>
66121
66122         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
66123         verror_at_line output complies with GNU Coding Standards even when
66124         file is NULL.
66125
66126 2006-08-07  Bruno Haible  <bruno@clisp.org>
66127
66128         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
66129         versions of AIX.
66130         Reported by Ralf Wildenhues.
66131
66132 2006-08-07  Bruno Haible  <bruno@clisp.org>
66133
66134         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
66135         in an AC_DEFUN. Needed so that the autoconf snippets can use
66136         AC_REQUIRE.
66137
66138 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66139
66140         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66141         Initialize pkgdata_DATA.
66142         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
66143         overriding it.
66144
66145 2006-08-06  Eric Blake  <ebb9@byu.net>
66146
66147         * lib/error.h: Fold in some upstream changes from glibc.
66148         * lib/error.c: Likewise.
66149
66150 2006-08-04  Bruno Haible  <bruno@clisp.org>
66151
66152         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66153         Make the mostlyclean-local rule depend on mostlyclean-generic.
66154         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
66155
66156 2006-07-31  Bruno Haible  <bruno@clisp.org>
66157
66158         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
66159         <stdlib.h>, <string.h>.
66160
66161 2006-07-30  Bruno Haible  <bruno@clisp.org>
66162
66163         * modules/readlink (License): Change to LGPL.
66164
66165 2006-07-30  Bruno Haible  <bruno@clisp.org>
66166
66167         * modules/javaversion (Makefile.am): Distribute javaversion.java and
66168         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
66169         set PKGDATADIR to point to it.
66170
66171 2006-07-30  Bruno Haible  <bruno@clisp.org>
66172
66173         * modules/csharpexec (configure.ac): Comment out macro invocation.
66174         * modules/javaexec (configure.ac): Likewise.
66175         * modules/javacomp-script (configure.ac): Likewise.
66176
66177         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
66178
66179 2006-07-30  Bruno Haible  <bruno@clisp.org>
66180
66181         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
66182         linked-list.
66183
66184 2006-07-30  Bruno Haible  <bruno@clisp.org>
66185
66186         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
66187
66188 2006-07-30  Bruno Haible  <bruno@clisp.org>
66189
66190         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66191         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
66192         get removed.
66193
66194 2006-07-29  Bruno Haible  <bruno@clisp.org>
66195
66196         Make it possible for gnulib-tool to work with locally modified or
66197         augmented gnulib repositories.
66198         * gnulib-tool (func_usage): Document --local-dir option.
66199         (local_gnulib_dir): New variable.
66200         Handle --local-dir option.
66201         (func_lookup_file): New function.
66202         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
66203         (func_get_description, func_get_filelist, func_get_description,
66204         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
66205         func_get_automake_snippet, func_get_include_directive,
66206         func_get_license, func_get_maintainer): Use func_lookup_file.
66207         (func_import, func_create_testdir): Use func_lookup_file.
66208
66209 2006-07-29  Bruno Haible  <bruno@clisp.org>
66210
66211         * modules/setenv (Depends-on): Add unistd.
66212
66213 2006-07-29  Bruno Haible  <bruno@clisp.org>
66214
66215         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
66216
66217 2006-07-29  Bruno Haible  <bruno@clisp.org>
66218
66219         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
66220
66221 2006-07-29  Bruno Haible  <bruno@clisp.org>
66222
66223         * gnulib-tool (import, update): If there is no Makefile.am, look at
66224         aclocal.m4, instead of bailing out.
66225
66226 2006-07-29  Bruno Haible  <bruno@clisp.org>
66227
66228         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
66229         Categorize the options by when they are useful.
66230
66231 2006-07-29  Bruno Haible  <bruno@clisp.org>
66232
66233         * gnulib-tool (func_usage): Document option --no-libtool.
66234         Handle option --no-libtool.
66235         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
66236         for changed semantics of $libtool variable.
66237         (func_import): Likewise. If libtool is not used, show this through
66238         an option --no-libtool.
66239         (func_create_testdir): Update.
66240
66241 2006-07-29  Bruno Haible  <bruno@clisp.org>
66242
66243         * gnulib-tool (func_import): Extend error message about missing
66244         --doc-base.
66245
66246 2006-07-29  Bruno Haible  <bruno@clisp.org>
66247
66248         * gnulib-tool (func_import): Don't create the $docbase directory if
66249         there is no file to store there.
66250
66251 2006-07-29  Bruno Haible  <bruno@clisp.org>
66252
66253         * gnulib-tool (autoconf_minversion): If a --dir option is given and
66254         relevant, look for configure.ac there, not in the current directory.
66255         Also use a simple search for AC_PREREQ, not "autoconf --trace".
66256
66257 2006-07-29  Bruno Haible  <bruno@clisp.org>
66258
66259         * gnulib-tool (SORT): New variable.
66260         (func_usage): Undocument --assume-autoconf option.
66261         Remove --assume-autoconf option handling.
66262         (autoconf_minversion): Determine from the contents of configure.ac.
66263         (func_import): Remove autoconf_minversion handling.
66264         Suggested by Eric Blake.
66265
66266 2006-07-29  Bruno Haible  <bruno@clisp.org>
66267
66268         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
66269
66270 2006-07-29  Bruno Haible  <bruno@clisp.org>
66271
66272         * config/srclist.txt (*setenv.[ch]): Remove rules.
66273
66274 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66275
66276         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
66277
66278 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66279
66280         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
66281         arpa/inet.h.
66282
66283 2006-07-28  Simon Josefsson  <jas@extundo.com>
66284
66285         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
66286         * modules/inet_pton (Depends-on): Likewise.
66287
66288 2006-07-28  Simon Josefsson  <jas@extundo.com>
66289
66290         * m4/netinet_in_h.m4: New file.
66291
66292 2006-07-28  Simon Josefsson  <jas@extundo.com>
66293
66294         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
66295         #include's.
66296
66297 2006-07-28  Simon Josefsson  <jas@extundo.com>
66298
66299         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
66300         #include's.
66301
66302 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
66303
66304         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
66305         setgid on directories only if they set these bits.
66306         * lib/modechange.h: Remove obsolete comment about masks.
66307
66308 2006-07-28  Eric Blake  <ebb9@byu.net>
66309
66310         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
66311         macro expansion.
66312
66313 2006-07-28  Bruno Haible  <bruno@clisp.org>
66314
66315         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
66316
66317 2006-07-28  Bruno Haible  <bruno@clisp.org>
66318
66319         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
66320
66321 2006-07-28  Bruno Haible  <bruno@clisp.org>
66322
66323         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
66324         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
66325         Define fallbacks.
66326         Avoids link error on FreeBSD 4.x.
66327         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
66328
66329         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
66330         encoding.
66331         * lib/mbswidth.c (iswcntrl): Likewise.
66332
66333 2006-07-27  Bruno Haible  <bruno@clisp.org>
66334
66335         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
66336         test.
66337
66338 2006-07-27  Bruno Haible  <bruno@clisp.org>
66339
66340         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
66341         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
66342         defined.
66343
66344 2006-07-26  Eric Blake  <ebb9@byu.net>
66345
66346         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
66347
66348 2006-07-26  Eric Blake  <ebb9@byu.net>
66349
66350         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
66351         like mingw that lack mkstemp.
66352         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
66353         avoid compilation warning on mingw.
66354
66355 2006-07-26  Bruno Haible  <bruno@clisp.org>
66356
66357         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
66358         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
66359         INT_FAST*_MIN, INTPTR_MIN.
66360
66361 2006-07-25  Bruno Haible  <bruno@clisp.org>
66362
66363         * modules/version-etc (Depends-on): Add stdarg.
66364
66365 2006-07-25  Bruno Haible  <bruno@clisp.org>
66366
66367         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
66368         complex commands.
66369
66370 2006-07-25  Bruno Haible  <bruno@clisp.org>
66371
66372         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
66373         defined in <stdarg.h> or config.h.
66374
66375 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
66376
66377         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
66378         (gl_STDIO_SAFER): Remove.
66379
66380 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
66381
66382         * MODULES.html.sh (File stream based Input/Output):
66383         Add fopen-safer, tmpfile-safer; remove stdio-safer.
66384         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
66385         * modules/fopen-safer, modules/tmpfile-safer: New files.
66386         * modules/stdio-safer: Remove.
66387
66388 2006-07-24  Bruno Haible  <bruno@clisp.org>
66389
66390         * modules/tmpdir: New file.
66391         * MODULES.html.sh (File system functions): Add it.
66392
66393 2006-07-24  Bruno Haible  <bruno@clisp.org>
66394
66395         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
66396         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
66397
66398 2006-07-24  Bruno Haible  <bruno@clisp.org>
66399
66400         * modules/clean-temp: New file.
66401
66402 2006-07-24  Bruno Haible  <bruno@clisp.org>
66403
66404         * m4/tmpdir.m4: New file, from GNU gettext.
66405
66406 2006-07-24  Bruno Haible  <bruno@clisp.org>
66407
66408         * lib/tmpdir.h: New file, from GNU gettext.
66409         * lib/tmpdir.c: New file, from GNU gettext.
66410
66411 2006-07-24  Bruno Haible  <bruno@clisp.org>
66412
66413         * lib/clean-temp.h: New file, from GNU gettext.
66414         * lib/clean-temp.c: New file, from GNU gettext.
66415
66416 2006-07-23  Eric Blake  <ebb9@byu.net>
66417
66418         * modules/stdio-safer (Files): Add tmpfile-safer.c.
66419         (Depends-on): Add binary-io.
66420
66421 2006-07-23  Eric Blake  <ebb9@byu.net>
66422
66423         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
66424
66425 2006-07-23  Eric Blake  <ebb9@byu.net>
66426
66427         * lib/tmpfile-safer.c: New file.
66428         * lib/stdio-safer.h (fopen_safer): Add prototype.
66429         * lib/stdio--.h (tmpfile): Make safer.
66430
66431 2006-07-23  Bruno Haible  <bruno@clisp.org>
66432
66433         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
66434         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
66435         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
66436         gl_linked_remove_at): Use it.
66437
66438 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66439         and Simon Josefsson <jas@extundo.com>
66440
66441         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
66442
66443         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
66444
66445 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
66446
66447         * modules/close-stream: New file.
66448         * modules/closeout (Description): Make it clear that it exits
66449         with a diagnostic on error.
66450         (Depends-on): Add close-stream.  Remove fpending, stdbool.
66451         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
66452
66453 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
66454
66455         * m4/close-stream.m4: New file.
66456
66457 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
66458
66459         * lib/close-stream.c, lib/close-stream.h: New files.
66460
66461 2006-07-22  Bruno Haible  <bruno@clisp.org>
66462
66463         Merge from GNU gettext 0.15.
66464
66465         2006-05-01  Bruno Haible  <bruno@clisp.org>
66466
66467                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
66468
66469         2006-07-22  Bruno Haible  <bruno@clisp.org>
66470
66471                 * modules/javaversion: New file.
66472                 * MODULES.html.sh (Java): Add javaversion.
66473
66474         2006-03-12  Bruno Haible  <bruno@clisp.org>
66475
66476                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
66477
66478         2005-12-04  Bruno Haible  <bruno@clisp.org>
66479
66480                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
66481                 (untested).
66482
66483         2006-06-21  Bruno Haible  <bruno@clisp.org>
66484
66485                 Avoid warnings from recent versions of mcs.
66486                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
66487                 -o, -L, -r any more. Use options documented since mcs-1.0
66488                 instead. Similarly for -g.
66489
66490         2005-12-04  Bruno Haible  <bruno@clisp.org>
66491
66492                 * build-aux/csharpcomp.sh.in: Suffix for resources is
66493                 .resources, not .resource.
66494
66495         2005-07-09  Bruno Haible  <bruno@clisp.org>
66496
66497                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
66498                 add a .dll suffix.
66499                 Reported by Mark Junker <mjscod@gmx.de>.
66500
66501         2006-07-22  Bruno Haible  <bruno@clisp.org>
66502
66503                 * modules/gettext: Upgrade to gettext-0.15.
66504                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
66505                 m4/visibility.m4.
66506                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
66507
66508 2006-07-22  Bruno Haible  <bruno@clisp.org>
66509
66510         Merge from GNU gettext 0.15.
66511
66512         2006-03-25  Bruno Haible  <bruno@clisp.org>
66513
66514                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
66515
66516         2006-07-21  Bruno Haible  <bruno@clisp.org>
66517
66518                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
66519                 "1.1".
66520
66521         2006-05-09  Bruno Haible  <bruno@clisp.org>
66522
66523                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
66524                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
66525                 for the conftestver execution.
66526
66527         2006-05-01  Bruno Haible  <bruno@clisp.org>
66528
66529                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
66530                 optional target-version argument. Verify that the compiler
66531                 groks source of the specified source-version, or add -source
66532                 option as necessary. Verify that the compiler produces
66533                 bytecode in the specified target-version, or add -target and
66534                 -source options as necessary. Make the result of the test
66535                 available as variable CONF_JAVAC. Also log error output in
66536                 config.log.
66537
66538         2006-03-11  Bruno Haible  <bruno@clisp.org>
66539
66540                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
66541
66542         2006-05-09  Bruno Haible  <bruno@clisp.org>
66543
66544                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
66545                 CLASSPATH_SEPARATOR to a semicolon.
66546
66547         2006-03-12  Bruno Haible  <bruno@clisp.org>
66548
66549                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
66550                 available as variable CONF_JAVA, for subsequent autoconf
66551                 tests. Also log error output in config.log.
66552
66553         2006-07-19  Bruno Haible  <bruno@clisp.org>
66554
66555                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
66556                 that getline works on glibc2 systems. Needed to avoid trouble
66557                 in relocatable.c.
66558                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
66559
66560         2005-12-04  Bruno Haible  <bruno@clisp.org>
66561
66562                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
66563                 launcher (untested).
66564
66565         2005-12-04  Bruno Haible  <bruno@clisp.org>
66566
66567                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
66568
66569         2006-07-22  Bruno Haible  <bruno@clisp.org>
66570
66571                 * gettext.m4: Update from GNU gettext-0.15.
66572                 * nls.m4: Likewise.
66573                 * po.m4: Likewise.
66574                 * inttypes-pri.m4: Likewise.
66575                 * inttypes-h.m4: Renamed from inttypes.m4.
66576                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
66577
66578 2006-07-22  Bruno Haible  <bruno@clisp.org>
66579
66580         Merge from GNU gettext 0.15.
66581
66582         2005-07-05  Bruno Haible  <bruno@clisp.org>
66583
66584                 * printf-args.c (printf_fetchargs): Work around broken
66585                 definition of wint_t on mingw.
66586
66587         2005-02-12  Bruno Haible  <bruno@clisp.org>
66588
66589                 * xallocsa.h: Add extern "C" for C++.
66590
66591         2006-05-17  Bruno Haible  <bruno@clisp.org>
66592
66593                 Cygwin portability.
66594                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
66595
66596         2006-04-30  Bruno Haible  <bruno@clisp.org>
66597
66598                 * progreloc.c: Include <mach-o/dyld.h> if available.
66599                 (find_executable): Use _NSGetExecutablePath when possible.
66600
66601         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
66602
66603                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
66604                 function.
66605
66606         2005-12-29  Bruno Haible  <bruno@clisp.org>
66607
66608                 * progreloc.c (set_program_name_and_installdir): Fix
66609                 compilation error.
66610
66611         2005-12-04  Bruno Haible  <bruno@clisp.org>
66612
66613                 Cygwin portability.
66614                 * progreloc.c: Include <windows.h> also on Cygwin.
66615                 (find_executable): Add support for Cygwin.
66616                 (set_program_name_and_installdir): Handle also platforms with
66617                 nonempty EXEEXT.
66618
66619         2006-07-11  Bruno Haible  <bruno@clisp.org>
66620
66621                 * javacomp.c: Fix a comment.
66622                 Reported by Jim Meyering.
66623
66624         2006-04-30  Bruno Haible  <bruno@clisp.org>
66625
66626                 * javacomp.h (compile_java_class): Add source_version,
66627                 target_version arguments.
66628                 * javacomp.c: Rewritten to choose only a compiler that
66629                 respects the specified source_version and target_version.
66630
66631         2006-06-27  Bruno Haible  <bruno@clisp.org>
66632
66633                 Assume correct S_ISDIR macro.
66634                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
66635
66636         2006-07-22  Bruno Haible  <bruno@clisp.org>
66637
66638                 * javaversion.h: New file, from GNU gettext.
66639                 * javaversion.c: New file, from GNU gettext.
66640                 * javaversion.java: New file, from GNU gettext.
66641                 * javaversion.class: New file, from GNU gettext.
66642
66643         2006-05-17  Bruno Haible  <bruno@clisp.org>
66644
66645                 Cygwin portability.
66646                 * javaexec.c (execute_java_class): Test for jview program
66647                 also on Cygwin.
66648
66649         2006-04-09  Bruno Haible  <bruno@clisp.org>
66650
66651                 * fatal-signal.c: Don't include string.h.
66652                 (at_fatal_signal): Use a copying loop instead of memcpy.
66653
66654         2005-12-04  Bruno Haible  <bruno@clisp.org>
66655
66656                 * csharpexec.c: Add support for 'clix' launcher (untested).
66657                 (execute_csharp_using_sscli): New function.
66658                 (execute_csharp_program): Call it.
66659
66660         2006-06-21  Bruno Haible  <bruno@clisp.org>
66661
66662                 Avoid warnings from recent versions of mcs.
66663                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
66664                 -o, -L, -r any more. Use options documented since mcs-1.0
66665                 instead. Similarly for -g.
66666
66667         2005-07-09  Bruno Haible  <bruno@clisp.org>
66668
66669                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
66670                 add a .dll suffix.
66671                 Reported by Mark Junker <mjscod@gmx.de>.
66672
66673         2006-06-17  Bruno Haible  <bruno@clisp.org>
66674
66675                 * config.charset: Update for NetBSD 3.0.
66676
66677         2006-05-17  Bruno Haible  <bruno@clisp.org>
66678
66679                 Cygwin portability.
66680                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
66681
66682         2006-05-16  Bruno Haible  <bruno@clisp.org>
66683
66684                 * localcharset.c [CYGWIN]: Include <windows.h>.
66685                 (get_charset_aliases): For Cygwin, return the same CPxxx
66686                 aliases list as under WIN32.
66687                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
66688                 the environment variables. Fall back to GetACP().
66689
66690         2006-04-05  Bruno Haible  <bruno@clisp.org>
66691
66692                 * config.charset: Update Juan Manuel Guerrero's address.
66693
66694         2005-02-12  Bruno Haible  <bruno@clisp.org>
66695
66696                 * allocsa.h: Add extern "C" for C++.
66697
66698         2005-02-10  Bruno Haible  <bruno@clisp.org>
66699
66700                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
66701                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
66702
66703         2006-07-22  Bruno Haible  <bruno@clisp.org>
66704
66705                 * gettext.h: Update to GNU gettext-0.15.
66706
66707 2006-07-22  Bruno Haible  <bruno@clisp.org>
66708
66709         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
66710         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
66711         lib-prefix.m4, longdouble.m4, ssize_t.m4.
66712
66713 2006-07-21  Eric Blake  <ebb9@byu.net>
66714
66715         * modules/stdlib-safer: New file.
66716         * MODULES.html.sh (File stream based Input/Output): Add
66717         stdlib-safer.
66718
66719 2006-07-21  Eric Blake  <ebb9@byu.net>
66720
66721         * lib/stdlib-safer.h: New file from coreutils, required by
66722         stdlib--.h.
66723
66724 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
66725
66726         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
66727
66728 2006-07-20  Bruno Haible  <bruno@clisp.org>
66729
66730         * gnulib-tool: Recognize new option --assume-autoconf.
66731         (autoconf_minversion): New variable.
66732         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
66733
66734 2006-07-20  Bruno Haible  <bruno@clisp.org>
66735
66736         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
66737
66738 2006-07-19  Derek R. Price  <derek@ximbiot.com>
66739
66740         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
66741         Reindent and repaginate.
66742
66743 2006-07-19  Derek Price  <derek@ximbiot.com>
66744
66745         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
66746         Correct grammar.
66747
66748 2006-07-17  Bruno Haible  <bruno@clisp.org>
66749
66750         * modules/list: New file.
66751         * modules/array-list: New file.
66752         * modules/carray-list, modules/carray-list-tests: New files.
66753         * modules/linked-list, modules/linked-list-tests: New files.
66754         * modules/avltree-list, modules/avltree-list-tests: New files.
66755         * modules/rbtree-list, modules/rbtree-list-tests: New files.
66756         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
66757         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
66758         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
66759         * modules/oset: New file.
66760         * modules/array-oset: New file.
66761         * modules/avltree-oset, modules/avltree-oset-tests: New files.
66762         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
66763         * tests/test-carray_list.c: New file.
66764         * tests/test-linked_list.c: New file.
66765         * tests/test-avltree_list.c: New file.
66766         * tests/test-rbtree_list.c: New file.
66767         * tests/test-linkedhash_list.c: New file.
66768         * tests/test-avltreehash_list.c: New file.
66769         * tests/test-rbtreehash_list.c: New file.
66770         * tests/test-avltree_oset.c: New file.
66771         * tests/test-rbtree_oset.c: New file.
66772         * MODULES.html.sh (Container data structures): New section.
66773
66774 2006-07-17  Bruno Haible  <bruno@clisp.org>
66775
66776         * m4/gl_list.m4: New file.
66777
66778 2006-07-17  Bruno Haible  <bruno@clisp.org>
66779
66780         * lib/gl_list.h: New file.
66781         * lib/gl_list.c: New file.
66782         * lib/gl_array_list.h: New file.
66783         * lib/gl_array_list.c: New file.
66784         * lib/gl_carray_list.h: New file.
66785         * lib/gl_carray_list.c: New file.
66786         * lib/gl_linked_list.h: New file.
66787         * lib/gl_linked_list.c: New file.
66788         * lib/gl_anylinked_list1.h: New file.
66789         * lib/gl_anylinked_list2.h: New file.
66790         * lib/gl_avltree_list.h: New file.
66791         * lib/gl_avltree_list.c: New file.
66792         * lib/gl_anyavltree_list1.h: New file.
66793         * lib/gl_anyavltree_list2.h: New file.
66794         * lib/gl_rbtree_list.h: New file.
66795         * lib/gl_rbtree_list.c: New file.
66796         * lib/gl_anyrbtree_list1.h: New file.
66797         * lib/gl_anyrbtree_list2.h: New file.
66798         * lib/gl_anytree_list1.h: New file.
66799         * lib/gl_anytree_list2.h: New file.
66800         * lib/gl_linkedhash_list.h: New file.
66801         * lib/gl_linkedhash_list.c: New file.
66802         * lib/gl_anyhash_list1.h: New file.
66803         * lib/gl_anyhash_list2.h: New file.
66804         * lib/gl_avltreehash_list.h: New file.
66805         * lib/gl_avltreehash_list.c: New file.
66806         * lib/gl_rbtreehash_list.h: New file.
66807         * lib/gl_rbtreehash_list.c: New file.
66808         * lib/gl_anytreehash_list1.h: New file.
66809         * lib/gl_anytreehash_list2.h: New file.
66810
66811         * lib/gl_oset.h: New file.
66812         * lib/gl_oset.c: New file.
66813         * lib/gl_array_oset.h: New file.
66814         * lib/gl_array_oset.c: New file.
66815         * lib/gl_avltree_oset.h: New file.
66816         * lib/gl_avltree_oset.c: New file.
66817         * lib/gl_rbtree_oset.h: New file.
66818         * lib/gl_rbtree_oset.c: New file.
66819         * lib/gl_anytree_oset.h: New file.
66820
66821 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
66822
66823         * m4/mkancesdirs.m4: New file.
66824         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
66825         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
66826         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
66827         it.
66828
66829 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
66830
66831         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
66832         * lib/mkancesdirs.h: New files.
66833         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
66834         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
66835         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
66836         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
66837         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
66838         callers changed.  Revamp internals significantly, by not
66839         attempting to create directories that are temporarily more
66840         permissive than the final results.  Do not attempt to use
66841         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
66842         This removes some race conditions, fixes some bugs, and simplifies
66843         things.  Use new dirchownmod function to do owner and mode changes.
66844         * lib/mkdir-p.h: Likewise.
66845         * lib/modechange.c (octal_to_mode): New function.
66846         (struct mode_change): New member mentioned.
66847         (make_node_op_equals): New arg mentioned.  All callers changed.
66848         (mode_compile): Keep track of which mode bits the user has explicitly
66849         mentioned.
66850         (mode_adjust): New arg DIR, so that we implement the X op correctly.
66851         New arg PMODE_BITS, to keep track of which mode bits the user
66852         mentioned; it treats S_ISUID and S_ISGID speciall.
66853         All callers changed.
66854         * lib/modechange.h: Likewise.
66855
66856 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
66857
66858         * MODULES.html.sh: Add mkancestors.
66859         * modules/mkancesdirs: New module.
66860         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
66861         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
66862         The chdir-safer and afs files are now orphans; I'll remove them
66863         unless someone speaks up.
66864         Add lib/dirchownmod.c, lib/dirchownmod.h.
66865         (Depends-on): Remove alloca, chown, save-cwd, dirname.
66866         Add lchown, mkancesdirs.
66867         (Maintainer): Add self.
66868
66869 2006-07-15  Karl Berry  <karl@gnu.org>
66870
66871         * gnulib-tool: help message wording/arrangement.
66872
66873 2006-07-14  Simon Josefsson  <jas@extundo.com>
66874
66875         * doc/gnulib.texi (Libtool and Windows): New section.
66876
66877 2006-07-12  Simon Josefsson  <jas@extundo.com>
66878
66879         * modules/gendocs (License): Fix license, approved by Karl.
66880
66881 2006-07-12  Eric Blake  <ebb9@byu.net>
66882
66883         * MODULES.html.sh: Add gendocs.
66884
66885 2006-07-11  Eric Blake  <ebb9@byu.net>
66886
66887         * modules/fdl: New module, to install doc/fdl.texi.
66888         * MODULES.html.sh: Add new section for documentation modules.
66889         * gnulib-tool: Avoid space-tab.
66890         (--doc-base): New option, to manage files from doc.
66891
66892 2006-07-11  Eric Blake  <ebb9@byu.net>
66893
66894         * m4/absolute-header.m4: Fix comments to match recent change.
66895
66896 2006-07-11  Eric Blake  <ebb9@byu.net>
66897
66898         * gnulib-tool: List --doc-base before --tests-base.
66899
66900 2006-07-11  Derek R. Price  <derek@ximbiot.com>
66901
66902         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
66903
66904 2006-07-11  Bruno Haible  <bruno@clisp.org>
66905
66906         * README: Mention where to put documentation.
66907
66908 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66909
66910         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
66911
66912 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
66913
66914         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
66915         to stdint.m4.
66916
66917 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
66918
66919         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
66920         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
66921         "no/such/file/stdint.h" when there is no such file, so that
66922         the resulting C code can be parsed by dodgy compilers.
66923         Problems reported by Bob Proulx.
66924
66925 2006-07-10  Derek R. Price  <derek@ximbiot.com>
66926
66927         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
66928         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
66929         macros into the GNU _D_EXACT_NAMLEN.
66930         * lib/savedir.c:  Likewise.
66931         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
66932
66933 2006-07-10  Derek R. Price  <derek@ximbiot.com>
66934         and Paul Eggert  <eggert@cs.ucla.edu>
66935
66936         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
66937         * m4/savedir.m4:
66938         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
66939         macros into the GNU _D_EXACT_NAMLEN.
66940
66941 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
66942
66943         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
66944         around the absolute name, to work around a problem with the HP-UX
66945         11.23 native C compiler, reported by Bob Proulx.
66946
66947 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
66948
66949         * doc/maintain.texi, make-stds.texi: Sync from
66950         <http://savannah.gnu.org/projects/gnustandards>.
66951
66952 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
66953
66954         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
66955
66956 2006-07-09  Jim Meyering  <jim@meyering.net>
66957
66958         * m4/glob.m4: Remove a doubled word in a comment.
66959
66960 2006-07-09  Jim Meyering  <jim@meyering.net>
66961
66962         * lib/argp-pv.c: Remove a doubled word in a comment.
66963         * lib/check-version.c (check_version): Likewise.
66964         * lib/javacomp.c (compile_java_class): Likewise.
66965
66966 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
66967
66968         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
66969         for the benefit of people using Autoconf 2.60.  If you want to
66970         support older Autoconf versions you can copy m4/onceonly_2_57.m4
66971         (or m4/onceonly.m4, if pre-2.57) manually.
66972
66973 2006-07-08  Jim Meyering  <jim@meyering.net>
66974
66975         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
66976         comment.
66977         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
66978         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
66979         comment.
66980
66981 2006-07-08  Jim Meyering  <jim@meyering.net>
66982
66983         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
66984
66985 2006-07-07  Simon Josefsson  <jas@extundo.com>
66986
66987         * tests/test-crc.c: Change expected crc value, the test vector
66988         were probably computed using the old broken crc.c?
66989
66990 2006-07-06  Simon Josefsson  <jas@extundo.com>
66991
66992         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
66993         now the canonical place for the M4 file).
66994
66995         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
66996         from the sys_socket dependency now.
66997
66998         * modules/inet_pton (Files): Ditto.
66999
67000         * modules/inet_ntop (Files): Ditto.
67001
67002 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
67003
67004         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
67005         not gl_PREREQ_GETUSERSHELL.
67006
67007 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67008
67009         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
67010         with only one argument, for Autoconf 2.60.
67011         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
67012         expand to nothing, so add a shell command to avoid syntax error.
67013         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
67014
67015 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67016
67017         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
67018
67019 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
67020
67021         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
67022         no longer needed.  Check for isblank decl.
67023         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
67024         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
67025         of existence.
67026
67027 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
67028
67029         * lib/getloadavg.c: Use __VMS, not VMS.
67030         * lib/getopt.c: Likewise.
67031         * lib/getpagesize.h: Likewise.
67032         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
67033         and probably does not work.
67034
67035 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
67036
67037         * lib/.cppi-disable: Add wcwidth.
67038         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
67039         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
67040         (ISGRAPH): Remove.  All uses changed to isgraph.
67041         (FOLD) [!defined _LIBC]: Remove special case.
67042         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
67043         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
67044         HAVE_ISBLANK.
67045         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
67046         case.
67047
67048 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
67049
67050         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
67051         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
67052         brackets.  Other minor changes to suppress some compiler
67053         warnings.
67054
67055 2006-07-06  Derek R. Price  <derek@ximbiot.com>
67056         and Paul Eggert  <eggert@cs.ucla.edu>
67057
67058         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
67059         of invoking obsolescent AC_HEADER_DIRENT macro.
67060         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
67061         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
67062         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
67063         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
67064         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
67065         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
67066         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
67067         * m4/readdir.m4: Remove; no longer needed.
67068
67069 2006-07-06  Derek R. Price  <derek@ximbiot.com>
67070         and Paul Eggert  <eggert@cs.ucla.edu>
67071
67072         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
67073         Don't worry about this obsolete case any more.
67074         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
67075         directories.
67076         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
67077         worry about this obsolete case any more.
67078         * lib/fts.c: Likewise.
67079         * lib/getcwd.c: Likewise.
67080         * lib/glob.h: Likewise.
67081         * lib/savedir.c: Likewise.
67082
67083 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
67084
67085         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
67086         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
67087         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
67088         needed.
67089         All uses removed.
67090         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
67091         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
67092         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
67093         needed.
67094         * m4/getdate.m4 (gl_GETDATE): Likewise.
67095         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
67096         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
67097         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
67098         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
67099         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
67100         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
67101         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
67102         needed.
67103
67104 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
67105
67106         * lib/memcasecmp.c: Include <limits.h>.
67107         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
67108         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
67109         Don't assume isdigit succeeds only on '0' through '9'.
67110
67111 2006-07-05  Eric Blake  <ebb9@byu.net>
67112
67113         * modules/getaddrinfo (Depends-on): Add snprintf.
67114
67115 2006-07-05  Eric Blake  <ebb9@byu.net>
67116
67117         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
67118         to avoid 'header present but could not be compiled' on cygwin.
67119
67120 2006-07-05  Eric Blake  <ebb9@byu.net>
67121
67122         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
67123         missing from netdb.h.
67124         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
67125
67126 2006-07-05  Derek R. Price  <derek@ximbiot.com>
67127
67128         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
67129         no longer needed.
67130         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
67131         * m4/getdate.m4 (gl_GETDATE): Likewise.
67132         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
67133         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
67134         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
67135         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
67136         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
67137
67138 2006-07-05  Derek R. Price  <derek@ximbiot.com>
67139
67140         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
67141         All uses of is_space replaced by isspace.
67142         * lib/exit.h: Don't talk about STDC_HEADERS.
67143         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
67144         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
67145         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
67146         replaced by isprint etc.
67147         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
67148         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
67149         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
67150         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
67151         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
67152         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
67153
67154 2006-07-05  Bruno Haible  <bruno@clisp.org>
67155
67156         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
67157         the function exists, before testing against AIX.
67158         Reported by Martin Lambers <marlam@marlam.de>.
67159
67160 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
67161
67162         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
67163         From Mark D. Baushke.
67164
67165 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
67166
67167         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
67168         to the absolute name, not just one, to bypass Sun C 5.8's
67169         "warning: #include of /usr/include/... may be non-portable".
67170
67171 2006-07-04  Eric Blake  <ebb9@byu.net>
67172
67173         * modules/dirname-tests: New test module.
67174         * tests/test-dirname.c: New file, replacing dirname.c
67175         TEST_DIRNAME section that was recently deleted.
67176
67177 2006-07-04  Bruno Haible  <bruno@clisp.org>
67178
67179         Assume ANSI C header files and <ctype.h> functions.
67180         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
67181         (mbsnwidth): Use isprint, iscntrl instead.
67182
67183 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67184
67185         Merge from coreutils.
67186         * MODULES.html.sh: Add xstrtold.
67187         * modules/xstrtold: New file.
67188         * modules/cycle-check (Files): Add lib/same-inode.h.
67189         * modules/dirname (Files): Add m4/double-slash-root.m4.
67190         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
67191         * modules/mkdir-p (Files): Add lib/same-inode.h.
67192         * modules/same (Files): Add lib/same-inode.h.
67193
67194 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67195
67196         * m4/absolute-header.m4: Renamed from full-header-path.m4.
67197         This is to keep the terminology clean; POSIX talks about
67198         "absolute pathnames", not "full pathnames", but the GNU
67199         Coding Standards say to use "path" for something else;
67200         so use "absolute" to keep both sides happy.
67201         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
67202         Set gl_absolute_header, not gl_full_header_path.
67203         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
67204         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
67205         All uses changed.
67206
67207         Merge from coreutils.
67208
67209         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
67210
67211         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
67212         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
67213         want to require the building of c-strtod.o.
67214         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
67215         needs -lm directly.
67216         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
67217
67218         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
67219
67220         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
67221         --as-needed option if available.  Problem reported by Albert Chin in
67222         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
67223         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
67224         cc merely issues a bunch of annoying warnings for --as-needed
67225         (this problem was reported by Bob Proulx).  Also, try linking with
67226         -lm to detect a bug in binutils 2.16 (this problem was reported
67227         by Ralf Wildenhues).
67228
67229         2006-06-18  Jim Meyering  <jim@meyering.net>
67230
67231         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
67232         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
67233         macro.
67234         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
67235         also check for glibc-2.4's abort-inducing bug.
67236
67237         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
67238         Low-probability clean-up should be to use rmdir to get rid of
67239         the just-created directory, not unlink.
67240
67241         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
67242         configure fail, and request a bug report to inform us about it.
67243         Add a comment that, barring reports to the contrary, in 2007 we'll
67244         assume ftruncate is universally available.
67245
67246         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
67247
67248         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
67249
67250         2006-03-12  Jim Meyering  <jim@meyering.net>
67251
67252         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
67253         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
67254         * m4/same.m4 (gl_SAME): Likewise.
67255         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
67256
67257         2006-03-11  Eric Blake  <ebb9@byu.net>
67258
67259         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
67260         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
67261         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
67262         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
67263
67264 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67265
67266         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
67267         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
67268         reported by Mark D. Baushke, one in
67269         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
67270
67271         Merge from coreutils.
67272
67273         * lib/.cppi-disable: Add stdint_.h.
67274         * lib/.cvsignore: Add stdint.h.
67275
67276         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
67277
67278         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
67279         both double and long double versions.
67280         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
67281         * lib/xstrtold.c: New file.
67282         * lib/xstrtod.h (xstrtold): New decl.
67283
67284         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
67285
67286         * lib/filemode.c (setst): Remove.
67287         (strmode): Rewrite to avoid setst.  This makes the code shorter,
67288         (arguably) clearer, and the generated code is a bit smaller on my
67289         Debian GNU/Linux stable x86 host.
67290
67291         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
67292
67293         * lib/filemode.c: Include "filemode.h" first, to test the interface.
67294         Assume that filemode.h includes sys/types.h and sys/stat.h.
67295         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
67296         (ftypelet): Reorder to put common cases first, for efficiency.
67297         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
67298         to do 'M'.
67299         (strmode): Renamed from mode_string, and now stores 12 bytes instead
67300         of 10, for compatibility with FreeBSD.  All callers changed.
67301         (filemodestring): Now stores 12 bytes instead of 10, and sets file
67302         types that can't be deduced solely from st_mode.  First arg is now a
67303         const pointer.
67304         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
67305         (strmode): Renamed from mode_string.
67306         (filemodestring): New decl.
67307         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
67308         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
67309         needed.
67310         (S_ISPORT, S_ISWHT): New macros, if not already defined.
67311
67312         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
67313
67314         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
67315         fsusage.h now does that.  Include fsusage.h first, to test interface.
67316         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
67317         at most one method (the old code could have generated decls that
67318         didn't conform to C89, not that this was ever exercised).
67319         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
67320
67321         2006-03-19  Jim Meyering  <jim@meyering.net>
67322
67323         Work even in a chroot where d_ino values for entries in "/"
67324         don't match the stat.st_ino values for the same names.
67325         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
67326         number, iterate through all entries again, using lstat instead.
67327         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
67328         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
67329
67330         * lib/getcwd.c (__getcwd): Clarify a comment.
67331         Use memcpy in place of a call to strcpy.
67332
67333         2006-03-12  Jim Meyering  <jim@meyering.net>
67334
67335         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
67336         matches that of the current directory (which we're about to chdir ".."
67337         out of), then save the dev-ino of the parent, instead.
67338
67339         * lib/same-inode.h (SAME_INODE): New file/macro.
67340         * lib/chdir-safer.c (SAME_INODE): Remove definition.
67341         Include "same-inode.h", instead.
67342         * lib/same.c: Likewise.
67343         * lib/cycle-check.h: Include "same-inode.h".
67344         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
67345         * lib/cycle-check.c (SAME_INODE): Remove definition.
67346         * lib/root-dev-ino.h: Include "same-inode.h".
67347
67348         2006-03-11  Eric Blake  <ebb9@byu.net>
67349
67350         * lib/same.c (same_name): s/base_name/last_component/
67351         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
67352         * lib/filenamecat.c (file_name_concat): Likewise.
67353
67354         2006-03-11  Eric Blake  <ebb9@byu.net>,
67355                     Paul Eggert  <eggert@cs.ucla.edu>
67356
67357         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
67358         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
67359         drive prefix.
67360         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
67361         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
67362         (last_component): New method.
67363         * lib/dirname.c (dir_len): Determine when drive letters need a
67364         subsequent slash.  Preserve // when it is special.
67365         (dir_name): Don't append dot when drive letter is absolute.
67366         [TEST_DIRNAME]: Move into a full-blown gnulib test.
67367         * lib/basename.c (base_name): New semantics - malloc the result.
67368         Preserve // when it is special.  Preserve relative files that look
67369         like drive letters.
67370         (base_len): Preserve // when it is special.
67371         (last_component): New method, similar to old base_name semantics.
67372         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
67373         base_name.  Strip redundant slashes from ///.
67374
67375 2006-07-03  Jim Meyering  <jim@meyering.net>
67376
67377         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
67378         macro is used before the first cycle_check call.
67379
67380 2006-07-03  Eric Blake  <ebb9@byu.net>
67381
67382         * modules/dirname (Depends-on): Add xstrndup.
67383
67384 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
67385
67386         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
67387         test cases, so that config.log is a bit easier to follow.
67388
67389 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
67390
67391         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
67392         both are 64 bits, since this seems to be the tradition, and this
67393         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
67394         we ever run into a host that prefers long long to long in this
67395         case, we'll need another configure-time test.  Problem reported by
67396         Jim Meyering.
67397
67398 2006-07-02  Eric Blake  <ebb9@byu.net>
67399
67400         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
67401
67402 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
67403
67404         * modules/inttypes (Depends-on): No longer depends on stdint.
67405         * modules/stdint (Description): Say more about assumptions.
67406         Say that the fast types might differ.  Say macros are used.
67407         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
67408         (Makefile.am): Revise list of substituted symbols to match
67409         new stdint.m4.
67410         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
67411         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
67412         * tests/test-stdint.c (verify_same_types)
67413         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
67414         the code conforms to C99/C89.
67415         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
67416         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
67417
67418 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
67419
67420         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
67421         but fix a bug, by requiring at least 64 bits.
67422         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
67423         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
67424         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
67425         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
67426
67427         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
67428         changes.  Make 2.59 a prerequisite.  Check and substitute for
67429         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
67430         inttypes.h.  Do not use special include files; just use the
67431         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
67432         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
67433         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
67434         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
67435         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
67436         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
67437         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
67438         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
67439         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
67440         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
67441         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
67442         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
67443         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
67444         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
67445         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
67446         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
67447         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
67448         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
67449         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
67450         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
67451         WINT_MAX.  Check for C99 conformance more strictly, by detecting
67452         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
67453         not check for things that C99 does not require, e.g., int8_t.  If
67454         a test isn't needed unless <stdint.h> isn't working, and is
67455         unlikely to be needed for any other reason, then don't do it
67456         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
67457         size_t, since we assume C89 freestanding at least.  Do not check
67458         for sig_atomic_t, wchar_t, or wint_t, since the code now does
67459         the right thing even if the types are not defined.  Instead use:
67460         (gl_STDINT_TYPE_PROPERTIES): New macro.
67461         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
67462         testing whether <sys/types.h> clashes, as Autoconf does this for
67463         us now.  All uses removed.
67464         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
67465         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
67466         (gl_CHECK_TYPE_SAME):
67467         Remove; no longer needed.
67468         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
67469         exists, since we'll return 0 anyway in that case.
67470         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
67471
67472 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
67473
67474         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
67475         possible collision with system files.
67476         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
67477         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
67478         WCHAR_MIN and WCHAR_MAX in this case.
67479         (<stddef.h>): Do not include; no longer needed.
67480         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
67481         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
67482         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
67483         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
67484         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
67485         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
67486         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
67487         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
67488         !defined(__c99))]: Include in this case too, since it's harmless
67489         now.
67490         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
67491         dangerous to do so.
67492         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
67493         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
67494         (_STDINT_MIN, _STDINT_MAX): New macros.
67495         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
67496         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
67497         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
67498         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
67499         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
67500         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
67501         macros, not typedefs; this simplifies things quite a bit.
67502         Use long int for all types narrower than int64_t.
67503         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
67504         Define in terms of long long int or int64_t or long int,
67505         not int64_t or int32_t.  This saves some compile-time testing.
67506         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
67507         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
67508         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
67509         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
67510         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
67511         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
67512         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
67513         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
67514         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
67515         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
67516         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
67517         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
67518         undef any previous version and define our own version, for
67519         simplicity and consistency with the new macros for types.
67520         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
67521         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
67522         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
67523         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
67524         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
67525         @WINT_T_SUFFIX@ to keep things simple here.
67526         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
67527         Simplify by assuming typical 8/16/32/64 host, since we're
67528         already doing that elsewhere anyway.
67529         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
67530         and assume long long int is 64 bits if available.  This
67531         speeds up 'configure'.
67532
67533 2006-07-01  Eric Blake  <ebb9@byu.net>
67534
67535         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
67536         Reported by Andreas Buening.
67537
67538 2006-07-01  Eric Blake  <ebb9@byu.net>
67539
67540         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
67541
67542 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
67543
67544         * lib/getaddrinfo.c: fixed typo
67545
67546 2006-06-29  Jim Meyering  <jim@meyering.net>
67547
67548         * modules/strftime (Maintainer): Add my name, since with the
67549         FPRINTFTIME changes strftime.c has forked from glibc.
67550
67551 2006-06-29  Eric Blake  <ebb9@byu.net>
67552
67553         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
67554
67555 2006-06-29  Eric Blake  <ebb9@byu.net>
67556
67557         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
67558
67559 2006-06-29  Eric Blake  <ebb9@byu.net>
67560
67561         * lib/stat_.h: New file.
67562
67563 2006-06-29  Eric Blake  <ebb9@byu.net>
67564
67565         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
67566         unused static function.
67567
67568 2006-06-29  Eric Blake  <ebb9@byu.net>
67569
67570         * doc/functions.texi (Function Portability): Document missing lstat
67571         on mingw.
67572
67573 2006-06-29  Eric Blake  <ebb9@byu.net>
67574
67575         * MODULES.html.sh: Add sys_stat.
67576         * modules/sys_stat: New module.
67577         * modules/mkstemp (Depends-on): Add sys_stat.
67578
67579 2006-06-29  Derek R. Price  <derek@ximbiot.com>
67580
67581         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
67582
67583 2006-06-29  Derek R. Price  <derek@ximbiot.com>
67584
67585         * m4/c-bs-a.m4: Removed.
67586
67587 2006-06-29  Derek R. Price  <derek@ximbiot.com>
67588
67589         * lib/strftime.c: Assume strftime() exists.
67590
67591 2006-06-29  Derek Price  <derek@ximbiot.com>
67592
67593         * modules/c-bs-a: Removed - \a is C89.
67594         * MODULES.html.sh: Remove c-bs-a.
67595
67596 2006-06-29  Bruno Haible  <bruno@clisp.org>
67597
67598         * modules/wcwidth (License): Change to LGPL.
67599
67600 2006-06-28  Simon Josefsson  <jas@extundo.com>
67601
67602         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
67603         on _WIN32.
67604
67605         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
67606         getnameinfo.
67607
67608 2006-06-28  Simon Josefsson  <jas@extundo.com>
67609
67610         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
67611
67612 2006-06-28  Simon Josefsson  <jas@extundo.com>
67613
67614         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
67615         functions there.  It will succeed on Windows XP, but on Windows
67616         2000 and (presumably) earlier, it will fail, and use the internal
67617         re-implementation.
67618         (use_win32_p): New function.
67619         (getaddrinfo): Use strtoul on servname, to support numeric ports.
67620         Support AI_NUMERICSERV to disable getservbyname.
67621         (getnameinfo): New function, only supports
67622         NI_NUMERICHOST|NI_NUMERICSERV for now.
67623
67624         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
67625         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
67626         getnameinfo.
67627
67628 2006-06-28  Eric Blake  <ebb9@byu.net>
67629
67630         * modules/wcwidth: New file.
67631         * modules/mbchar (Depends-on): Add wcwidth.
67632         * modules/mbswidth (Depends-on): Add wcwidth.
67633         * MODULES.html.sh: Add wcwidth.
67634
67635 2006-06-28  Eric Blake  <ebb9@byu.net>
67636
67637         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
67638         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
67639
67640 2006-06-28  Eric Blake  <ebb9@byu.net>
67641
67642         * lib/xvasprintf.h: Fix comments.
67643
67644 2006-06-28  Eric Blake  <ebb9@byu.net>
67645
67646         * lib/mbchar.h (wcwidth): Include wcwidth.h.
67647         * lib/mbswidth.c (wcwidth): Move from here...
67648         * lib/wcwidth.h: ...to this new file.
67649
67650 2006-06-28  Derek R. Price  <derek@ximbiot.com>
67651
67652         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
67653
67654         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
67655         it's obsolete.
67656         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
67657
67658 2006-06-28  Derek R. Price  <derek@ximbiot.com>
67659
67660         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
67661         Autoconf 2.60 says this stuff was obsolete.
67662
67663 2006-06-28  Bruno Haible  <bruno@clisp.org>
67664
67665         * modules/wcwidth (Files): Add m4/wchar_t.m4.
67666
67667 2006-06-28  Bruno Haible  <bruno@clisp.org>
67668
67669         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
67670         gt_TYPE_WCHAR_T.
67671
67672 2006-06-28  Bruno Haible  <bruno@clisp.org>
67673
67674         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
67675         declaration for wcwidth.
67676         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
67677
67678 2006-06-28  Bruno Haible  <bruno@clisp.org>
67679
67680         * lib/mkdtemp.c [MINGW]: Include <io.h>.
67681         (mkdir): Define using _mkdir.
67682
67683 2006-06-28  Bruno Haible  <bruno@clisp.org>
67684
67685         * lib/getaddrinfo.h: Fix POSIX URL.
67686         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
67687         _WIN32.
67688         (use_win32_p): Make static.
67689         (getaddrinfo): Reject service name if it is empty or does not consist
67690         solely of decimal digits, or if its value is > 65535.
67691         (getnameinfo): Remove useless casts.
67692
67693 2006-06-27  Simon Josefsson  <jas@extundo.com>
67694
67695         * modules/sys_select: New file, suggested by Bruno Haible, Paul
67696         Eggert and Martin Lambers.
67697
67698 2006-06-27  Simon Josefsson  <jas@extundo.com>
67699
67700         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
67701         Eggert and Martin Lambers.
67702
67703 2006-06-27  Bruno Haible  <bruno@clisp.org>
67704
67705         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
67706         result to 0, not to empty.
67707         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
67708
67709 2006-06-27  Bruno Haible  <bruno@clisp.org>
67710
67711         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
67712
67713 2006-06-26  Simon Josefsson  <jas@extundo.com>
67714
67715         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
67716         present.
67717
67718 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
67719
67720         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
67721         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
67722         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
67723
67724 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
67725
67726         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
67727
67728 2006-06-26  Bruno Haible  <bruno@clisp.org>
67729
67730         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
67731
67732 2006-06-26  Bruno Haible  <bruno@clisp.org>
67733
67734         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
67735
67736 2006-06-26  Bruno Haible  <bruno@clisp.org>
67737
67738         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
67739         SGI C compiler in pre-C99 mode.
67740         Suggested by Mark D. Baushke and Larry Jones.
67741
67742 2006-06-26  Bruno Haible  <bruno@clisp.org>
67743
67744         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
67745         WCHAR_MAX.
67746         Reported by Mark D. Baushke and Larry Jones.
67747
67748 2006-06-26  Bruno Haible  <bruno@clisp.org>
67749
67750         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
67751         in pre-C99 mode.
67752         Suggested by Mark D. Baushke and Larry Jones.
67753
67754 2006-06-23  Simon Josefsson  <jas@extundo.com>
67755             Bruno Haible  <bruno@clisp.org>
67756
67757         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
67758         Emit mostlyclean-local rule.
67759         (func_emit_tests_Makefile_am): Likewise.
67760         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
67761
67762 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
67763
67764         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
67765
67766 2006-06-23  Bruno Haible  <bruno@clisp.org>
67767
67768         * tests/test-stdint.c: Update to match ISO C 99 Technical
67769         Corrigendum 1.
67770
67771 2006-06-23  Bruno Haible  <bruno@clisp.org>
67772
67773         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
67774
67775 2006-06-23  Bruno Haible  <bruno@clisp.org>
67776
67777         * lib/stdint_.h: Treat IRIX like OpenBSD.
67778
67779 2006-06-23  Bruno Haible  <bruno@clisp.org>
67780
67781         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
67782         ISO C 99 Technical Corrigendum 1.
67783
67784 2006-06-22  Simon Josefsson  <jas@extundo.com>
67785
67786         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
67787         MinGW.
67788
67789 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
67790
67791         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
67792         needed.  Some compiler complained about some of them.  Problem reported
67793         by Larry Jones in
67794         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
67795
67796 2006-06-21  Simon Josefsson  <jas@extundo.com>
67797
67798         * tests/test-getaddrinfo.c: New file.
67799
67800         * modules/getaddrinfo-tests: New file.
67801
67802         * MODULES.html.sh: Add inet_pton.
67803
67804         * modules/inet_pton: New file.
67805
67806 2006-06-21  Simon Josefsson  <jas@extundo.com>
67807
67808         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
67809         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
67810         of using the (limited) gnulib implementation on Windows XP.
67811
67812         * m4/inet_pton.m4: New file.
67813
67814 2006-06-21  Simon Josefsson  <jas@extundo.com>
67815
67816         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
67817         variable.
67818
67819         * lib/socket_.h: Don't define WINVER.
67820
67821         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
67822         slightly modified to work in gnulib.
67823
67824 2006-06-21  Simon Josefsson  <jas@extundo.com>
67825
67826         * doc/gnulib.texi (Windows sockets): Add.
67827
67828 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
67829
67830         * lib/read-file.c (fread_file): Start with buffer allocation of
67831         0 bytes rather than 1 byte; this simplifies the code.
67832         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
67833         code to free buffer and save/restore errno.
67834         (internal_read_file): Remove unused local.
67835
67836 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
67837
67838         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
67839         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
67840         Problem reported by Denis Excoffier in
67841         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
67842
67843 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67844
67845         * modules/sys_socket, modules/socklen: Include sys/types since
67846         FreeBSD 4.x's sys/socket.h needs it.
67847
67848 2006-06-19  Simon Josefsson  <jas@extundo.com>
67849
67850         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
67851
67852 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
67853
67854         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
67855
67856 2006-06-19  Bruno Haible  <bruno@clisp.org>
67857
67858         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
67859         and FULL_PATH_INTTYPES_H in angle brackets.
67860         Reported by Mark D. Baushke <mdb@gnu.org>.
67861
67862 2006-06-17  Eric Blake  <ebb9@byu.net>
67863
67864         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
67865         errno.
67866
67867 2006-06-17  Bruno Haible  <bruno@clisp.org>
67868
67869         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
67870         <sys/inttypes.h>.
67871
67872 2006-06-17  Bruno Haible  <bruno@clisp.org>
67873
67874         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
67875         whether errno is declared. Assume <errno.h> declares errno.
67876
67877 2006-06-17  Bruno Haible  <bruno@clisp.org>
67878
67879         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
67880
67881 2006-06-17  Bruno Haible  <bruno@clisp.org>
67882
67883         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
67884         problem on Solaris 2.5.1.
67885
67886 2006-06-16  Eric Blake  <ebb9@byu.net>
67887
67888         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
67889         * lib/unicodeio.c [!defined errno]: Likewise.
67890         * lib/strtol.c [!defined errno]: Likewise.
67891         * lib/strtod.c [!defined errno]: Likewise.
67892
67893 2006-06-15  Eric Blake  <ebb9@byu.net>
67894
67895         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
67896
67897 2006-06-15  Eric Blake  <ebb9@byu.net>
67898
67899         * config/srclist.txt (ssize_t.m4): Lose sync.
67900
67901 2006-06-15  Bruno Haible  <bruno@clisp.org>
67902
67903         * modules/stdint (Files): Include m4/full-header-path.m4,
67904         m4/size_max.m4, m4/wchar_t.m4.
67905         (Makefile.am): Many more substitutions.
67906         * modules/stdint-tests: New file.
67907         * tests/test-stdint.c: New file.
67908
67909 2006-06-15  Bruno Haible  <bruno@clisp.org>
67910
67911         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
67912         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
67913         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
67914         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
67915         gl_CHECK_TYPE_SAME): New macros.
67916
67917 2006-06-15  Bruno Haible  <bruno@clisp.org>
67918
67919         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
67920
67921 2006-06-15  Bruno Haible  <bruno@clisp.org>
67922
67923         * lib/stdint_.h: Rewritten to be fully auto-configured.
67924         Fixes bug on HP-UX/IA64.
67925
67926 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
67927
67928         * lib/getdate.y (__attribute__): Don't define if already defined.
67929         Problem reported by Larry Jones.
67930         * lib/utimens.c (__attribute__): Likewise.
67931
67932 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
67933
67934         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
67935         reported by Andreas Schwab.
67936
67937 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67938             Bruno Haible  <bruno@clisp.org>
67939
67940         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
67941         check for the declaration of strnlen and a run test that exposes the
67942         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
67943         rpl_strndup.
67944
67945 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67946             Bruno Haible  <bruno@clisp.org>
67947
67948         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
67949
67950 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67951
67952         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
67953         compile test, for Tru64 4.0D.
67954
67955 2006-05-28  Karl Berry  <karl@gnu.org>
67956
67957         * config/srclist.txt (printf-args.c): lose sync.
67958
67959 2006-05-26  Martin Lambers  <marlam@marlam.de>
67960
67961         * lib/getpass.c: Updates the test for the native W32 API, and adds
67962         missing includes, thus fixing compilation warnings.
67963
67964 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
67965
67966         * lib/exclude.c (exclude_fnmatch): New function.
67967         (excluded_file_name): Call exclude_fnmatch.
67968         * lib/exclude.h (excluded_file_name): New prototype
67969
67970 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
67971
67972         * lib/tempname.c (small_open, large_open): New macros.
67973         (__open, __open64) [!_LIBC]: Remove.
67974         (__gen_tempname): Use small_open and large_open instead of __open
67975         and __open64.  This fixes a portability bug on HP-UX 11.11i
67976         reported by Simon Wing-Tang in
67977         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
67978
67979 2006-05-24  Bruno Haible  <bruno@clisp.org>
67980
67981         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
67982         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
67983         Reported by Thorsten Maerz <torte@netztorte.de> via
67984         Aaron Stone <aaron@serendipity.cx>.
67985
67986 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
67987
67988         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
67989         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
67990         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
67991         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
67992         not really conditional on the cache.
67993         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
67994
67995 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
67996
67997         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
67998         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
67999         (my_usleep): Don't mishandle maximum value.
68000
68001 2006-05-19  Jim Meyering  <jim@meyering.net>
68002
68003         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
68004
68005 2006-05-17  Bruno Haible  <bruno@clisp.org>
68006
68007         Cygwin portability.
68008         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
68009
68010 2006-05-17  Bruno Haible  <bruno@clisp.org>
68011
68012         * lib/stdint_.h: Fix recognition of Cygwin.
68013
68014 2006-05-15  Bruno Haible  <bruno@clisp.org>
68015
68016         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
68017         on libtool patch by Ralf Wildenhues.
68018
68019 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
68020
68021         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
68022         test for C99 conformance; (bool) 0.5 is an integer constant
68023         expression, but (bool) -0.5 is not.  Problem reported by Fedor
68024         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
68025
68026 2006-05-11  Simon Josefsson  <jas@extundo.com>
68027
68028         * m4/xvasprintf.m4: Fix obvious typo.
68029
68030 2006-05-11  Jim Meyering  <jim@meyering.net>
68031
68032         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
68033         James Lemley.
68034
68035 2006-05-10  Simon Josefsson  <jas@extundo.com>
68036
68037         * lib/md4.c: Typo fix, update copyright years.
68038         (K1, K2): Don't use L because it turn computations into 64-bit on
68039         64-bit platforms.
68040
68041 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
68042
68043         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
68044         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
68045         unwanted sign propagation, e.g., on hosts with 64-bit int.
68046         There still are some problems with reeelly weird theoretical hosts
68047         (e.g., 33-bit int) but it's not worth worrying about now.
68048         * lib/sha1.c (rol): Likewise.
68049         (K1, K2, K3, K4): Remove unnecessary L suffix.
68050
68051 2006-05-10  Bruno Haible  <bruno@clisp.org>
68052
68053         * lib/des.c: Cast to avoid warnings.
68054
68055 2006-05-09  Bruno Haible  <bruno@clisp.org>
68056
68057         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
68058         (Depends-on): Depend also on xsize, stdarg.
68059         (configure.ac): Add gl_XVASPRINTF.
68060
68061 2006-05-09  Bruno Haible  <bruno@clisp.org>
68062
68063         * m4/xvasprintf.m4: New file.
68064
68065 2006-05-09  Bruno Haible  <bruno@clisp.org>
68066
68067         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
68068         (EOVERFLOW): Define fallback value.
68069         (xstrcat): New function.
68070         (xvasprintf): Recognize the special case of a string concatenation.
68071
68072 2006-05-08  Eric Blake  <ebb9@byu.net>
68073
68074         * gnulib-tool (func_version): Base copyright year on CVS date.
68075         (func_emit_copyright_notice): New function.
68076         (func_emit_lib_Makefile_am): Use it.
68077         (func_emit_tests_Makefile_am): Likewise.
68078         (func_import): Likewise.
68079
68080 2006-05-08  Bruno Haible  <bruno@clisp.org>
68081
68082         * modules/stdarg: New file.
68083         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
68084
68085 2006-05-08  Bruno Haible  <bruno@clisp.org>
68086
68087         * m4/stdarg.m4: New file, from GNU gettext.
68088
68089 2006-05-08  Bruno Haible  <bruno@clisp.org>
68090
68091         * config/srclist.txt (build-aux/config.rpath): different from latest
68092         release.
68093
68094 2006-05-08  Bruno Haible  <bruno@clisp.org>
68095
68096         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
68097
68098 2006-05-05  Jim Meyering  <jim@meyering.net>
68099
68100         * m4/warning.m4: New file, derived from bison's file by the same name.
68101
68102 2006-05-03  Bruno Haible  <bruno@clisp.org>
68103
68104         * lib/stdint_.h: Shorter URL.
68105         * lib/inttypes.h: Likewise.
68106
68107 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
68108
68109         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
68110
68111 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
68112
68113         * lib/verify.h: Document the internals better.  Most of this change
68114         was written by Bruno Haible.
68115
68116 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
68117
68118         * doc/verify.texi: New file, partly based on a proposal by
68119         Bruno Haible.
68120
68121 2006-05-02  Bruno Haible  <bruno@clisp.org>
68122
68123         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
68124         test from here...
68125         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
68126
68127 2006-04-29  Bruno Haible  <bruno@clisp.org>
68128
68129         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
68130         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
68131
68132 2006-04-29  Bruno Haible  <bruno@clisp.org>
68133
68134         * gnulib-tool: Make --update option actually work.
68135
68136 2006-04-29  Bruno Haible  <bruno@clisp.org>
68137
68138         * doc/gcd.texi: New file.
68139         * doc/gnulib.texi: Include it.
68140
68141 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
68142
68143         * lib/getdate.y (get_date): When adding relative date, start with the
68144         initial time, not with the result of the first mktime call.
68145
68146 2006-04-25  Bruno Haible  <bruno@clisp.org>
68147
68148         * gnulib-tool (func_import): Output the include directives in three
68149         blocks, sorted separately.
68150         Reported by Ben Pfaff <blp@cs.stanford.edu>.
68151
68152 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
68153
68154         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
68155         to define main with arguments, for C++.  Reported by Eric Blake.
68156         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
68157         Prefer 'int main ()' to 'int main (void)', for C++.
68158         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
68159         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
68160         for 'main', for C99 and C++.
68161
68162 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
68163
68164         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
68165         Don't assume that exit status -1 is valid.
68166         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
68167         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
68168         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
68169         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
68170         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
68171         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
68172         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
68173         functions can be used without declaring them, or that you can
68174         exit with status -1.
68175         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
68176
68177 2006-04-24  Karl Berry  <karl@gnu.org>
68178
68179         * config/srclist.txt (longdouble.m4): sync lost.
68180
68181 2006-04-24  Eric Blake  <ebb9@byu.net>
68182
68183         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
68184
68185 2006-04-24  Bruno Haible  <bruno@clisp.org>
68186
68187         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
68188         poll() implementation in AIX.
68189         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68190
68191 2006-04-24  Bruno Haible  <bruno@clisp.org>
68192
68193         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
68194         assigned exactly once.
68195
68196 2006-04-23  Claudio Fontana  <claudio@gnu.org>
68197             Bruno Haible  <bruno@clisp.org>
68198
68199         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
68200         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
68201         for AM_CPPFLAGS.
68202
68203 2006-04-23  Bruno Haible  <bruno@clisp.org>
68204
68205         * modules/copy-file: Depend on unistd.
68206         * modules/execute: Likewise.
68207         * modules/fatal-signal: Likewise.
68208         * modules/findprog: Likewise.
68209         * modules/mkdtemp : Likewise.
68210         * modules/pipe: Likewise.
68211         * modules/wait-process: Likewise.
68212
68213 2006-04-23  Bruno Haible  <bruno@clisp.org>
68214
68215         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
68216         condition was already detected.
68217         Reported by Ben Pfaff <blp@cs.stanford.edu>.
68218
68219 2006-04-23  Bruno Haible  <bruno@clisp.org>
68220
68221         * lib/copy-file.c: Include <unistd.h> unconditionally.
68222         * lib/execute.c: Likewise.
68223         * lib/fatal-signal.c: Likewise.
68224         * lib/findprog.c: Likewise.
68225         * lib/mkdtemp.c: Likewise.
68226         * lib/pipe.h: Likewise.
68227         * lib/pipe.c: Likewise.
68228         * lib/wait-process.h: Likewise.
68229
68230 2006-04-23  Bruno Haible  <bruno@clisp.org>
68231
68232         * gnulib-tool (func_usage): Fix --import description. Document
68233         --update.
68234         (func_import): Create temporary file in a temporary directory, if
68235         --dry-run is specified. Silence errors from 'grep' when there are no
68236         m4 files in $m4dir.
68237         (func_create_testdir): Silence errors from 'grep' when there are no
68238         m4 files in $m4dir.
68239         Reported by Karl Berry <karl@freefriends.org>.
68240
68241 2006-04-20  Bruno Haible  <bruno@clisp.org>
68242
68243         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
68244         one argument, so that the code will be portable to Autoconf 2.60.
68245         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
68246         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
68247         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
68248
68249 2006-04-19  Derek Price  <derek@ximbiot.com>
68250             Eric Blake  <ebb9@byu.net>
68251
68252         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
68253         rather than "/full/path.h".  Update comment to match.  Shorten &
68254         generalize m4_translit call via AS_TR_CPP.
68255
68256 2006-04-19  Derek Price  <derek@ximbiot.com>
68257             Eric Blake  <ebb9@byu.net>
68258
68259         * lib/inttypes.h: Correct grammar in comment.
68260
68261 2006-04-18  Derek Price  <derek@ximbiot.com>
68262             Paul Eggert  <eggert@cs.ucla.edu>
68263
68264         * modules/inttypes: New file.
68265         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
68266
68267 2006-04-18  Derek Price  <derek@ximbiot.com>
68268             Paul Eggert  <eggert@cs.ucla.edu>
68269
68270         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
68271         New files.
68272
68273 2006-04-18  Derek Price  <derek@ximbiot.com>
68274             Paul Eggert  <eggert@cs.ucla.edu>
68275
68276         * lib/inttypes.h: New file.
68277         * lib/strtoimax.c: Assume <inttypes.h>.
68278
68279 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
68280
68281         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
68282         isn't mounted.  Problem reported by Kir Kolyshkin.
68283
68284 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
68285
68286         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
68287         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
68288         Derek R. Price.
68289         * lib/regex.h (RE_DUP_MAX): Update comment to match current
68290         implementation.
68291
68292 2006-04-12  Eric Blake  <ebb9@byu.net>
68293
68294         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
68295         is now done automatically by the corresponding Autoconf macro.
68296
68297 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
68298
68299         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
68300         time_r.h.
68301
68302 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
68303
68304         Merge regex changes from libc, removing some of our
68305         POSIX-conformance changes that were rejected and redoing them in a
68306         less-intrusive way.
68307
68308         * lib/regcomp.c (re_compile_internal, init_dfa):
68309         Length arg is now size_t, not Idx.  All uses changed.
68310         (peek_token): Forward decl now says internal_function.
68311         (__re_error_msgid, __re_error_msgid_idx):
68312         Now static rather than extern with attribute_hidden.
68313         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
68314         For some reason libc prefers K&R style defns for external functions.
68315         (regerror) [!defined _LIBC]: Likewise.
68316         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
68317         (seek_collating_symbol_entry, lookup_collation_sequence_value):
68318         (build_range_exp, build_collating_symbol):
68319         Use K&R-style defn.
68320         (re_compile_fastmap): Use '\0' to memset, not 0.
68321         (utf8_sb_map): Make the calculations more obvious.
68322         (init_dfa, parse_bracket_exp, build_charclass_op):
68323         Call calloc and cast result, as glibc does.
68324         (init_word_char, fetch_token, peek_token, peek_token_bracket):
68325         (build_range_exp, build_collating_symbol):
68326         Now internal functions.
68327
68328         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
68329
68330         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
68331         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
68332         Don't depend on VMS; depend on __VMS instead, for POSIX
68333         namespace cleanness.
68334         (regoff_t): Define to ssize_t, not long int.
68335
68336         Remove the REG_ macros named below.  Instead, make the old names
68337         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
68338         __USE_GNU_REGEX.
68339         (REG_BACKSLASH_ESCAPE_IN_LISTS):
68340         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
68341         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
68342         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
68343         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
68344         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
68345         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
68346         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
68347         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
68348         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
68349         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
68350         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
68351         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
68352         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
68353         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
68354         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
68355         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
68356         (REG_NREGS):
68357         Remove.  All uses replaced by the old RE_* names.
68358         (RE_BACKSLASH_ESCAPE_IN_LISTS):
68359         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
68360         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
68361         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
68362         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
68363         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
68364         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
68365         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
68366         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
68367         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
68368         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
68369         Don't bother having these macros be independent of each others'
68370         values, since they no longer exist in the POSIX name space.
68371
68372         Rename the following member names back to their old names,
68373         unless !__USE_GNU_REGEX.  All uses changed back.
68374         (buffer): Renamed from re_buffer.
68375         (allocated): Renamed from re_allocated.
68376         (used): Renamed from re_used.
68377         (syntax): Renamed from re_syntax.
68378         (fastmap): Renamed from re_fastmap.
68379         (translate): Renamed from re_translate.
68380         (can_be_null): Renamed from re_can_be_null.
68381         (regs_allocated): Renamed from re_regs_allocated.
68382         (fastmap_accurate): Renamed from re_fastmap_accurate.
68383         (no_sub): Renamed from re_no_sub.
68384         (not_bol): Renamed from re_not_bol.
68385         (not_eol): Renamed from re_not_eol.
68386         (newline_anchor): Renamed from re_newline_anchor.
68387         (num_regs): Renamed from rm_num_regs.
68388         (start): Renamed from rm_start.
68389         (end): Renamed from rm_end.
68390
68391         (free_state): Move up a bit.
68392
68393         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
68394         #define to be empty.
68395         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
68396         when that is what is intended.
68397         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
68398         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
68399         (MAX): New macro.
68400         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
68401         All uses changed back to re_malloc, etc.  It's now the caller's
68402         responsibility to check for overflow; all callers changed.
68403         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
68404         (re_x2nrealloc): Remove.
68405         (free_state): Remove decl.
68406
68407         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
68408         (re_set_registers, re_exec):
68409         Use K&R-style defn.
68410
68411         2006-01-31  Roland McGrath  <roland@redhat.com>
68412
68413         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
68414         Reported by Mike Frysinger <vapier@gentoo.org>.
68415
68416         2006-01-15  Andreas Jaeger  <aj@suse.de>
68417
68418         [BZ #1950]
68419         * lib/regex_internal.c (re_string_reconstruct): Adjust for
68420         build_wcs_upper_buffer change.
68421         (build_wcs_upper_buffer): Change return type.
68422
68423         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
68424
68425         * lib/regex_internal.h: Include <stdint.h> if available.
68426
68427         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
68428
68429         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
68430
68431         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
68432
68433         * lib/regcomp.c: Adjust for changed secondary hash function.
68434
68435         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
68436
68437         * lib/regex.h: Pretty printing.
68438         Clean up namespace a bit.
68439
68440         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
68441
68442         * lib/regexec.c (update_cur_sifted_state, check_arrival,
68443         check_arrival_add_next_nodes): Avoid using uninitialized variable.
68444
68445         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
68446                     Ulrich Drepper  <drepper@redhat.com>
68447
68448         [BZ #1302]
68449         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
68450         changed.
68451         (bitset_word_t): Renamed from bitset_word.  All uses changed.
68452
68453         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
68454
68455         [BZ #281]
68456         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
68457         * lib/regcomp.c: Remove unnecessary uses of
68458         unsigned RE_TRANSLATE_TYPE.
68459         * lib/regex_internal.h: Likewise.
68460         * lib/regex_internal.c: Likewise.
68461         * lib/regexec.c: Likewise.
68462         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
68463
68464         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
68465
68466         * lib/regexec.c (find_recover_state): Remove unnecessary
68467         initialization.
68468         (transit_state_bkref): Make DFA a const pointer.
68469         (get_subexp): Likewise.
68470         (check_arrival): Likewise.
68471         (update_cur_sifted_state): Likewise.
68472         (re_search_internal): Likewise.
68473         (prune_impossible_nodes): Likewise.
68474         (acquire_init_state_context): Likewise.
68475         (proceed_next_node): Likewise.
68476         (set_regs): Likewise.
68477         (free_fail_stack_return): Likewise.
68478         (check_arrival_expand_ecl): Mark DFA parameter as const.
68479         (check_arrival_expand_ecl_sub): Likewise.
68480         (check_subexp_limits): Likewise.
68481         (sub_epsilon_src_nodes):  Likewise.
68482         (add_epsilon_src_nodes):  Likewise.
68483         (merge_state_array): Likewise.
68484         (update_regs): Likewise.
68485         (build_trtable): Likewise.
68486         (sift_states_backward): Mark MCTX parameter as const.
68487         (build_sifted_states): Likewise.
68488         (update_cur_sifted_state): Likewise.
68489         (sift_states_mkref): Likewise.
68490         (check_arrival_expand_ecl): Mark eclosure as const.
68491         (check_dst_limits_calc_pos_1): Likewise.
68492         * lib/regex_internal.h (re_match_context_t): Make dfa a const
68493         pointer.
68494
68495         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
68496
68497         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
68498         (transit_state_sb): Likewise.
68499         (transit_state_mb): Likewise.
68500         (sift_states_iter_mb): Likewise.
68501         (check_arrival_add_next_nodes): Likewise.
68502         (check_node_accept_bytes): Change first parameter to pointer-to-const.
68503         [_LIBC] (re_search_2_stub): Use mempcpy.
68504
68505         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
68506         mbrtowc for very simple UTF-8 case.
68507
68508         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
68509         a pointer-to-const.
68510         (re_acquire_state_context): Likewise.
68511         * lib/regex_internal.h: Adjust prototypes.
68512
68513         * lib/regex.c: Prevent using C++ compilers.
68514
68515         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
68516         (re_acquire_state_context): Likewise.
68517
68518 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
68519
68520         * modules/regex (Depends-on): Add ssize_t.
68521
68522 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
68523
68524         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
68525         translation table.
68526
68527 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
68528
68529         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
68530
68531 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
68532             Bruno Haible  <bruno@clisp.org>
68533
68534         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
68535         <sys/types.h> and <inttypes.h>.
68536
68537 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68538
68539         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
68540         `__error_t_defined', so argp.h will not typedef the former.
68541
68542 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
68543
68544         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
68545         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
68546         glibc names.  Even if glibc is changed to conform to POSIX, the
68547         traditional names will be available anyway, since regex depends on
68548         the extensions module.  Also, fix a longstanding typo in the
68549         implementation of Spencer ERE test #75 from grep 2.3.  Problems
68550         reported by Emanuele Giaquinta.  Also, change sense of cached
68551         variable, so that the message makes sense.
68552
68553 2006-03-24  Simon Josefsson  <jas@extundo.com>
68554
68555         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
68556         including some doc fixes.
68557         (base64_encode_alloc): Fix +1 bug on allocation failures.
68558
68559 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68560
68561         * lib/base64.c (base64_encode): Do not read past end of array with
68562         unsanitized input on systems with CHAR_BIT > 8.
68563
68564 2006-03-24  Eric Blake  <ebb9@byu.net>
68565
68566         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
68567
68568 2006-03-22  Karl Berry  <karl@gnu.org>
68569
68570         * config/srclist.txt (*setenv.[ch]): get from coreutils.
68571         * config/srclistvars.sh (COREUTILS): new var.
68572
68573 2006-03-17  Jim Meyering  <jim@meyering.net>
68574
68575         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
68576         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
68577
68578 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
68579
68580         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
68581         no longer needs it.  Instead, check that regoff_t is as least
68582         as wide as ptrdiff_t.
68583
68584         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
68585         so that our regex.h stays compatible with the installed regex.
68586         This is helpful for installers who configure --without-included-regex.
68587         Problem reported by Emanuele Giaquinta.
68588
68589 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
68590
68591         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
68592         Typedef to long int, not to off_, as POSIX will likely change
68593         in that direction.
68594
68595 2006-03-15  Eric Blake  <ebb9@byu.net>
68596
68597         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
68598
68599 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
68600
68601         * lib/argp-help.c (validate_uparams): Fix typo
68602         * lib/argp-parse.c (argp_default_options): Consistently begin help
68603         messages with a lowercase letter.
68604
68605 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
68606
68607         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
68608         overrun buffers and shouldn't be used (much as gets shouldn't be
68609         used).
68610         * lib/time_r.c (asctime_r, ctime_r): Likewise.
68611
68612 2006-03-08  Simon Josefsson  <jas@extundo.com>
68613
68614         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
68615         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68616
68617 2006-03-08  Simon Josefsson  <jas@extundo.com>
68618
68619         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
68620         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68621
68622 2006-03-08  Simon Josefsson  <jas@extundo.com>
68623
68624         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
68625         signal that configure disabled the device.
68626
68627 2006-03-08  Simon Josefsson  <jas@extundo.com>
68628
68629         * build-aux/maint.mk: Fix refresh-po, to handle no translated
68630         languages.
68631
68632 2006-03-07  Simon Josefsson  <jas@extundo.com>
68633
68634         * modules/getopt (Depends-on): Add unistd.
68635
68636         * modules/unistd: New file.
68637
68638 2006-03-07  Simon Josefsson  <jas@extundo.com>
68639
68640         * modules/gc-random: New file.
68641
68642 2006-03-07  Simon Josefsson  <jas@extundo.com>
68643
68644         * m4/unistd_h.m4: New file.
68645
68646 2006-03-07  Simon Josefsson  <jas@extundo.com>
68647
68648         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
68649         test to be side-effect free by storing the result in the cache
68650         variable gl_cv_lib_readline, and moving the assignment of
68651         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
68652         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68653
68654 2006-03-07  Simon Josefsson  <jas@extundo.com>
68655
68656         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
68657         error on missing devices (the functions will return an error).
68658
68659         * m4/gc.m4: Move random stuff to gc-random.m4
68660
68661 2006-03-07  Simon Josefsson  <jas@extundo.com>
68662
68663         * lib/unistd_.h: New file.
68664
68665 2006-03-07  Simon Josefsson  <jas@extundo.com>
68666
68667         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
68668
68669 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
68670
68671         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
68672         Problem reported by Juan Manuel Guerrero.
68673
68674 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
68675
68676         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
68677         the unistd module.
68678         * lib/getlogin_r.c: Likewise.
68679         * lib/getlogin_r.h: Likewise.
68680         * lib/glob.c: Likewise.
68681         * lib/pagealign_alloc.c: Likewise.
68682         * lib/unistd_.h: Remove; no longer needed.
68683
68684 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
68685
68686         * MODULES.html.sh (Support for systems lacking POSIX:2001):
68687         Add unistd.
68688         * modules/c-stack (Depends-on): Add unistd.
68689         * modules/getlogin_r: Likewise.
68690         * modules/glob: Likewise.
68691         * modules/pagealign_alloc: Likewise.
68692         * modules/unistd (Files): Remove lib/unistd_.h.
68693         (EXTRA_DIST): Remove.
68694         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
68695         need unistd_.h.
68696         (MOSTLYCLEANFILES): Remove unistd.h-t.
68697
68698 2006-03-03  Simon Josefsson  <jas@extundo.com>
68699
68700         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
68701
68702 2006-03-03  Simon Josefsson  <jas@extundo.com>
68703
68704         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
68705         libidn and bison.
68706
68707 2006-03-03  Simon Josefsson  <jas@extundo.com>
68708
68709         * build-aux/maint.mk: Add indent target.
68710
68711 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
68712
68713         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
68714         our replacement poll.h in any case, to avoid a differing
68715         declaration from a system header.  Seen on AIX.
68716
68717 2006-03-01  Simon Josefsson  <jas@extundo.com>
68718
68719         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
68720         <kasal@ucw.cz>.
68721
68722 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68723
68724         * modules/gettime (Depends-on): Add extensions module.
68725         * modules/nanosleep (Depends-on): Likewise.
68726         * modules/settime (Depends-on): Likewise.
68727
68728 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68729
68730         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
68731         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
68732         pedantically.
68733         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
68734         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
68735
68736         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
68737         not "==".  Reported by Ralf Wildenhues.
68738
68739 2006-03-01  Karl Berry  <karl@gnu.org>
68740
68741         * doc/Copyright/request-*: new files, synced from gnuorg.
68742
68743 2006-03-01  Karl Berry  <karl@gnu.org>
68744
68745         * config/srclist.txt (Copyright/*): new entries.
68746
68747 2006-02-28  Simon Josefsson  <jas@extundo.com>
68748
68749         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
68750
68751 2006-02-27  Simon Josefsson  <jas@extundo.com>
68752
68753         * lib/base64.h: Indent #define's.  From Jim Meyering
68754         <jim@meyering.net>.
68755
68756 2006-02-27  Jim Meyering  <jim@meyering.net>
68757
68758         Revert the change of 2006-02-24, so these files can continue
68759         to be sync'd from gettext.
68760         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
68761         of `config.h'.
68762
68763 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
68764
68765         * modules/intprops: New file.
68766         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
68767         Add intprops.
68768         * modules/getloadavg (Files): Remove lib/intprops.h.
68769         (Depends-on): Add intprops.
68770         * modules/human: Likewise.
68771         * modules/inttostr: Likewise.
68772         * modules/openat: Likewise.
68773         * modules/sig2str: Likewise.
68774         * modules/userspec: Likewise.
68775         * modules/utimecmp: Likewise.
68776         * modules/xnanosleep: Likewise.
68777         * modules/xstrtol: Likewise.
68778
68779 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
68780
68781         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
68782         * modules/lock-tests (TESTS): Use $(EXEEXT).
68783         * modules/tls-tests: Likewise.
68784         * modules/argp-tests: Likewise.
68785         (check_PROGRAMS): New var, replacing...
68786         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
68787
68788 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68789
68790         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
68791         `config.h'.
68792
68793 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
68794
68795         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
68796
68797 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68798
68799         Sync from coreutils.
68800         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
68801         gl_CHDIR_SAFER.
68802
68803 2006-02-22  Jim Meyering  <jim@meyering.net>
68804
68805         Sync from coreutils.
68806         * m4/chdir-safer.m4: New file.
68807
68808 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
68809
68810         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
68811         AT_FDCWD exceeds INT_MAX.
68812         * lib/openat.h (AT_FDCWD): Likewise.
68813
68814 2006-02-17  Eric Blake  <address@hidden>
68815
68816         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
68817
68818 2006-02-16  Simon Josefsson  <jas@extundo.com>
68819
68820         * modules/getaddrinfo (Depends-on): Add sys_socket.
68821
68822 2006-02-15  Simon Josefsson  <jas@extundo.com>
68823
68824         * build-aux/maint.mk: Add dsyntax-check rule.
68825
68826 2006-02-15  Eric Blake  <ebb9@byu.net>
68827
68828         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
68829         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
68830         'present but cannot compile' warnings on cygwin.
68831         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
68832         use ws2tcpip.h if sys/socket.h works.
68833         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
68834         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
68835
68836 2006-02-14  Simon Josefsson  <jas@extundo.com>
68837
68838         * modules/maintainer-makefile (Files): Rename.
68839
68840         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
68841         and (the local) Makefile.cfg to maint-cfg.mk.
68842
68843         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
68844         to the latter.
68845
68846         * modules/maintainer-makefile: New module.
68847
68848         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
68849         severaly stripped to make it possible to build it up from scratch
68850         with reliable tests.
68851
68852         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
68853         fixes to permit overriding the default actions when configure and
68854         makefile are not available.
68855
68856 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
68857
68858         Sync from coreutils.
68859         * modules/lstat (Depends-on): Don't depend on xalloc.
68860         (License): Change from GPL to LGPL, since this is now simply a
68861         replacement for a libc function.
68862
68863 2006-02-14  Jim Meyering  <jim@meyering.net>
68864
68865         Sync from coreutils.
68866
68867         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
68868         failure on deficient systems, and simplify gnulib lgpl dependencies.
68869         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
68870         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
68871
68872         * lib/xalloc-die.c: Remove unused definition of N_.
68873
68874 2006-02-14  Jim Meyering  <jim@meyering.net>
68875
68876         Sync from coreutils.
68877         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
68878         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
68879         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
68880         double-quote uses of that variable, to accommodate the rare case in
68881         which getmntent is available in none of the libraries checked.  This
68882         happens at least on FreeBSD 5.0.
68883
68884 2006-02-13  Simon Josefsson  <jas@extundo.com>
68885
68886         * gnulib-tool (Usage): Fix --import, from
68887         karl@freefriends.org (Karl Berry).
68888
68889 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
68890
68891         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
68892
68893 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
68894
68895         * lib/argp-namefrob.h: Restore changes accidentally lost during the
68896         "autoupdate" on 2005-12-12.
68897
68898 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
68899
68900         * modules/closeout (Depends-on): Remove atexit.
68901
68902 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
68903
68904         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
68905         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
68906
68907 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
68908
68909         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
68910         __EXTENSIONS__ if this causes compilation to fail.  Problem
68911         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
68912         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
68913
68914 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
68915
68916         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
68917         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
68918         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
68919         All uses changed.
68920
68921 2006-01-26  Simon Josefsson  <jas@extundo.com>
68922
68923         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
68924         prototype is visible on mingw32.
68925
68926         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
68927         for mingw32.
68928
68929         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
68930         mingw32).
68931
68932 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
68933
68934         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
68935         attempt to open for write; this always fails, at least on POSIX
68936         hosts.  This reinstates the 2006-01-09 change, which was
68937         inadvertently removed.
68938
68939 2006-01-26  Bruno Haible  <bruno@clisp.org>
68940
68941         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
68942         Reported by Paul Eggert.
68943
68944 2006-01-26  Bruno Haible  <bruno@clisp.org>
68945             Paul Eggert  <eggert@cs.ucla.edu>
68946
68947         * lib/stdbool_.h (_Bool)
68948         [(! (defined __cplusplus || defined __BEOS__)
68949           && !defined __GNUC__
68950           && !(defined __HP_cc || defined __xlc__
68951                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
68952                || defined __sgi))]:
68953         #define to signed char in these cases too; this simplifies
68954         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
68955         etc., separately) and makes it more conservative.
68956
68957 2006-01-25  Simon Josefsson  <jas@extundo.com>
68958
68959         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
68960         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
68961         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
68962
68963 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
68964
68965         * lib/argp-namefrob.h: Bugfix. Remove stray #
68966
68967 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
68968
68969         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
68970         so that we test the test.
68971         Check for yet another HP-UX cc bug involving *bool |= bool.
68972
68973 2006-01-25  Karl Berry  <karl@gnu.org>
68974
68975         * config/srclist.txt (vasnprintf.c): sync lost.
68976
68977 2006-01-25  Jim Meyering  <jim@meyering.net>
68978
68979         Sync from the stable (b5) branch of coreutils:
68980
68981         * lib/fts.c (fts_children): Don't let close() clobber errno from
68982         failed fchdir().
68983
68984         * lib/fts.c (fts_stat): When following a symlink-to-directory,
68985         don't necessarily interpret stat-fails+lstat-succeeds as indicating
68986         a dangling symlink.  That can also happen at least for ELOOP.
68987         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
68988         FYI, this bug predates the inclusion of fts.c in coreutils.
68989
68990         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
68991         in their own block, so pre-c99 compilers don't object.
68992
68993         Avoid the double-free (first in fts_read, second in fts_close) that
68994         would occur when an `active' directory is made inaccessible (e.g.,
68995         via chmod a-x) during a traversal.
68996         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
68997         before returning.  Reproduce this failure by
68998         mkdir -p a/b; cd a; chmod a-x . b
68999         Reported by Stavros Passas.
69000
69001 2006-01-25  Jim Meyering  <jim@meyering.net>
69002
69003         * lib/fileblocks.c: Remove more useless parentheses.
69004         * lib/readutmp.h: Likewise.
69005
69006 2006-01-25  Bruno Haible  <bruno@clisp.org>
69007
69008         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
69009         warnings.
69010         Reported by Paul Eggert.
69011
69012 2006-01-25  Bruno Haible  <bruno@clisp.org>
69013
69014         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
69015         rid of a trap command. For Solaris sh.
69016         Reported by Mark D. Baushke <mdb@gnu.org>.
69017
69018 2006-01-24  Simon Josefsson  <jas@extundo.com>
69019
69020         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
69021         Bruno.
69022
69023 2006-01-24  Karl Berry  <karl@gnu.org>
69024
69025         * config/srclist.txt (argp-namefrob.h): sync lost.
69026
69027 2006-01-24  Jim Meyering  <jim@meyering.net>
69028
69029         * modules/openat (Files): Add lib/intprops.h.
69030         From Mark D. Baushke.
69031
69032 2006-01-24  Jim Meyering  <jim@meyering.net>
69033
69034         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
69035         Reported by Mark D. Baushke.
69036
69037 2006-01-24  Jim Meyering  <jim@meyering.net>
69038
69039         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
69040
69041 2006-01-24  Bruno Haible  <bruno@clisp.org>
69042
69043         * modules/strnlen (Maintainer): Change from glibc to all.
69044
69045 2006-01-24  Bruno Haible  <bruno@clisp.org>
69046
69047         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
69048         Patch by Paul Eggert.
69049
69050 2006-01-24  Bruno Haible  <bruno@clisp.org>
69051
69052         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
69053         already has it.
69054         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
69055         2005-11-26.
69056
69057         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
69058         'signed char' to avoid problems with the built-in _Bool type.
69059         Reported by Paul Eggert on 2005-11-26.
69060
69061 2006-01-24  Bruno Haible  <bruno@clisp.org>
69062
69063         * gnulib-tool (func_import): Avoid constructing complicated sed
69064         expressions inside backquote.
69065         Report and solution by Mark D. Baushke <mdb@gnu.org>.
69066
69067 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
69068
69069         These changes imported from libc.
69070         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
69071         test and two separate function calls.
69072         * lib/strndup.c (__strndup): Add libc_hidden_def.
69073
69074 2006-01-23  Simon Josefsson  <jas@extundo.com>
69075
69076         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
69077         Remove the test_*_SOURCES variable: automake infers it by default.
69078         * modules/tls-tests: Likewise.
69079
69080 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69081
69082         Work around porting bugs reported by Dieter in
69083         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
69084         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
69085         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
69086         Include "getopt.h" first, to check interface.
69087         (getenv): Declare only if defined HAVE_DECL_GETENV &&
69088         !HAVE_DECL_GETENV.
69089         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
69090         (__strndup): Revert to K&R-style function dfns, the glibc style.
69091         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
69092         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
69093         Include strnlen.h first, to get prototype properly.
69094         (strnlen): Renamed from __strnlen.
69095         Remove weak alias.
69096
69097 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69098
69099         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
69100
69101 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69102
69103         * config/srclist.txt: Adjust to reflect glibc reorganization.
69104         This affects only comments.
69105
69106 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
69107
69108          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
69109          Reported by Bruce Korb <bkorb@gnu.org>.
69110
69111 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
69112
69113         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
69114         to pacify gcc -Wswitch-default.
69115
69116 2006-01-22  Bruno Haible  <bruno@clisp.org>
69117
69118         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
69119         temporary buffer for sprintf, take into account the precision also
69120         for 'd', 'i', 'u', 'o', 'x', 'X'.
69121
69122 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
69123
69124         * modules/argp-tests: New module
69125         * tests/test-argp.c: New file
69126         * tests/test-argp-2.sh: New file
69127
69128 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
69129
69130         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
69131         (__argp_base_name): Removed
69132         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
69133         typo.
69134         (__argp_base_name): Provide macro definition or extern declaration
69135         depending on the configuration
69136
69137 2006-01-20  Simon Josefsson  <jas@extundo.com>
69138
69139         * modules/inet_ntop (Depends-on): Depend on sys_socket.
69140
69141 2006-01-20  Simon Josefsson  <jas@extundo.com>
69142
69143         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
69144
69145 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
69146
69147         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
69148         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
69149         Suggested by Bruno Haible.
69150
69151 2006-01-20  Karl Berry  <karl@gnu.org>
69152
69153         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
69154         until changes propagate, I guess.
69155
69156 2006-01-19  Simon Josefsson  <jas@extundo.com>
69157
69158         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
69159
69160 2006-01-19  Simon Josefsson  <jas@extundo.com>
69161
69162         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
69163
69164 2006-01-19  Simon Josefsson  <jas@extundo.com>
69165
69166         * gnulib-tool: Set check_PROGRAMS.
69167
69168         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
69169         modules/des-tests, modules/gc-arcfour-tests,
69170         modules/gc-arctwo-tests, modules/gc-des-tests,
69171         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
69172         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
69173         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
69174         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
69175         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
69176         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
69177         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
69178         test_*_SOURCES.
69179
69180 2006-01-18  Simon Josefsson  <jas@extundo.com>
69181
69182         * modules/socklen (Depends-on): Depend on sys_socket.
69183
69184 2006-01-18  Simon Josefsson  <jas@extundo.com>
69185
69186         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
69187         modules/des-tests, modules/gc-arcfour-tests,
69188         modules/gc-arctwo-tests, modules/gc-des-tests,
69189         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
69190         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
69191         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
69192         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
69193         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
69194         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
69195         $(EXEEXT) to automake TESTS variable, for mingw32.
69196
69197 2006-01-17  Simon Josefsson  <jas@extundo.com>
69198
69199         * modules/socklen (Include): Need sys/socket.h.
69200
69201 2006-01-17  Bruno Haible  <bruno@clisp.org>
69202
69203         * modules/ssize_t (Include): Add <sys/types.h>.
69204
69205 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
69206
69207         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
69208         it's not portable and it doesn't work with cross-compiles.
69209         Problem reported by Bruno Haible.  Fix missing-$ typo in
69210         'test "gl_cv_ignore_unused_libraries" ...' that prevented
69211         -zignore from being used with Sun's C compiler.
69212
69213 2006-01-12  Simon Josefsson  <jas@extundo.com>
69214
69215         * lib/base64.c: Fix warning, reported by Bruno Haible
69216         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
69217
69218 2006-01-12  Bruno Haible  <bruno@clisp.org>
69219
69220         * modules/ldd: New file.
69221         * build-aux/ldd.sh.in: New file.
69222         * MODULES.html.sh (Support for building libraries and executables): Add
69223         ldd.
69224
69225 2006-01-12  Bruno Haible  <bruno@clisp.org>
69226
69227         * m4/ldd.m4: New file.
69228
69229 2006-01-12  Bruno Haible  <bruno@clisp.org>
69230
69231         * gnulib-tool (func_import, func_create_testdir): Don't go into an
69232         endless loop while replacing $auxdir with build-aux.
69233
69234 2006-01-11  Simon Josefsson  <jas@extundo.com>
69235
69236         * lib/stdint_.h (SIZE_MAX): Add missing (.
69237
69238 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
69239
69240         Sync from coreutils.
69241         * lib/md5.c: Fix commentary typos.
69242         (alignof, UNALIGNED_P): No need for a GCC-specific version.
69243         * lib/md5.h (__attribute__): Remove; unused.
69244         * lib/sha1.c: Fix commentary to match md5 better.
69245         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
69246         so that we don't need to worry about alignment.  All uses changed.
69247         This merges the 2005-10-28 md5 change into sha1.
69248
69249 2006-01-11  Jim Meyering  <jim@meyering.net>
69250
69251         Sync from coreutils.
69252         * lib/md5.c (OP): Fix spacing.
69253
69254 2006-01-11  Bruno Haible  <bruno@clisp.org>
69255
69256         Ensure automatic ordering between gl_LOCK and gl_ARGP.
69257         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
69258         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
69259
69260 2006-01-11  Bruno Haible  <bruno@clisp.org>
69261
69262         Ensure automatic ordering between gl_LOCK and gl_ARGP.
69263         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
69264         the "early" section as well.
69265
69266 2006-01-11  Bruno Haible  <bruno@clisp.org>
69267
69268         Avoid "ar: no archive members specified" error on MacOS X.
69269         * gnulib-tool (func_modules_add_dummy): New function.
69270         (func_import, func_create_testdir): Invoke it.
69271
69272 2006-01-11  Bruno Haible  <bruno@clisp.org>
69273
69274         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
69275         with $auxdir in AC_CONFIG_FILES statements.
69276
69277 2006-01-11  Bruno Haible  <bruno@clisp.org>
69278
69279         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69280         Initialize also noinst_HEADERS to empty.
69281
69282 2006-01-11  Bruno Haible  <bruno@clisp.org>
69283
69284         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
69285         variables.
69286         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
69287         autoreconf.
69288
69289 2006-01-11  Bruno Haible  <bruno@clisp.org>
69290
69291         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
69292         overridable by the user.
69293         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69294
69295 2006-01-10  Simon Josefsson  <jas@extundo.com>
69296
69297         * modules/sys_socket: New file.
69298
69299 2006-01-10  Simon Josefsson  <jas@extundo.com>
69300
69301         * m4/sys_socket_h.m4: New file.
69302
69303 2006-01-10  Simon Josefsson  <jas@extundo.com>
69304
69305         * lib/socket_.h: New file.
69306
69307 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
69308
69309         * modules/readutmp (Maintainer): Add myself.
69310
69311 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
69312
69313         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
69314         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
69315         People who are still concerned with buggy memcmp implementations
69316         can invoke gl_FUNC_MEMCMP themselves.
69317
69318 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
69319
69320         * lib/regex_internal.h (BITSET_WORD_BITS):
69321         Work around a bug in 64-bit PGC (before version 6.1-2), where the
69322         preprocessor mishandles large unsigned values as if they were signed.
69323         Problem reported by Claudio Fontana in
69324         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
69325
69326 2006-01-10  Jim Meyering  <jim@meyering.net>
69327
69328         Avoid the double-free (first in fts_read, second in fts_close) that
69329         would occur when an `active' directory is made inaccessible (e.g.,
69330         via chmod a-x) during a traversal.
69331         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
69332         before returning.  Reproduce this failure by
69333         mkdir -p a/b; cd a; chmod a-x . b
69334         Reported by Stavros Passas.
69335
69336         Sync from coreutils.
69337         * lib/sha1.c: Tweak grammar in a comment.
69338
69339 2006-01-10  Jim Meyering  <jim@meyering.net>
69340
69341         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
69342         Patch by Joerg Sonnenberger.
69343
69344 2006-01-10  Bruno Haible  <bruno@clisp.org>
69345
69346         * modules/readutmp: Depend on module free.
69347         * modules/strtok_r: Depend on module restrict.
69348
69349 2006-01-10  Bruno Haible  <bruno@clisp.org>
69350
69351         * modules/gettext (configure.ac): Add an invocation of
69352         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
69353
69354 2006-01-10  Bruno Haible  <bruno@clisp.org>
69355
69356         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
69357         Reported by Werner Lemberg <wl@gnu.org>.
69358
69359 2006-01-10  Bruno Haible  <bruno@clisp.org>
69360
69361         * lib/localcharset.c: Update from GNU gettext.
69362
69363 2006-01-10  Bruno Haible  <bruno@clisp.org>
69364
69365         * lib/argp.h (__const): Remove macro. Use const instead.
69366         * lib/argp-fmtstream.h (__const): Likewise.
69367         * lib/glob_.h (__const): Remove macro.
69368         * lib/glob-libc.h: Use const instead of __const.
69369
69370 2006-01-10  Bruno Haible  <bruno@clisp.org>
69371
69372         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
69373         variable.
69374         Needed to avoid an automake error regarding the 'gettext' module.
69375
69376 2006-01-09  Simon Josefsson  <jas@extundo.com>
69377
69378         * modules/inet_ntop (Depends-on): Add restrict.
69379
69380 2006-01-09  Simon Josefsson  <jas@extundo.com>
69381
69382         * modules/gc-rijndael-tests (License): Put under LGPL.
69383
69384         * modules/gc-des-tests (License): Likewise.
69385
69386         * modules/gc-arcfour-tests (License): Likewise.
69387
69388         * modules/gc-arctwo-tests (License): Likewise.
69389
69390         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
69391
69392         * modules/gc-hmac-sha1-tests (Files): Likewise.
69393
69394         * modules/gc-hmac-md5-tests (License): Likewise.
69395
69396         * modules/gc-sha1-tests (License): Likewise.
69397
69398         * modules/gc-md5-tests (License): Likewise.
69399
69400         * modules/gc-md4-tests (License): Likewise.
69401
69402         * modules/gc-md2-tests (License): Likewise.
69403
69404         * modules/gc-tests (License): Likewise.
69405
69406         * modules/des-tests (License): Likewise.
69407
69408         * modules/md4-tests (License): Likewise.
69409
69410         * modules/md2-tests (License): Likewise.
69411
69412 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69413
69414         Sync from coreutils:
69415
69416         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
69417         * modules/lib-ignore: New file.
69418         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
69419         chdir-safer.m4, lchmod.m4.
69420         * modules/openat: Add mkdirat.c, openat-priv.h.
69421
69422 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69423
69424         Sync from coreutils.
69425         * m4/lib-ignore.m4: New file.
69426         * m4/lchmod.m4: New file.
69427
69428 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69429
69430         Sync from coreutils.
69431         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
69432         for write access: POSIX says that must fail.
69433         * lib/fts.c (diropen): Likewise.
69434         * lib/save-cwd.c (save_cwd): Likewise.
69435         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
69436         well, for minor improvements on hosts that lack O_DIRECTORY.
69437         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
69438         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
69439         Fall back on chown if open failed with EACCES.
69440
69441         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
69442         Report an error at compile-time if only a 1-second nominal clock
69443         resolution is found.
69444
69445         * lib/lchmod.h: New file.
69446         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
69447         (make_dir_parents): Use lchown rather than chown, and
69448         lchmod rather than chmod.
69449
69450         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
69451         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
69452         "proc" reported by n0dalus.
69453
69454         * lib/mountlist.c: Include <limits.h>.
69455         (dev_from_mount_options)
69456         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
69457         New function.  It no longer assumes "dev=" has the System V meaning
69458         on Linux (since it doesn't).  It also parses "dev=" more carefully.
69459         (read_file_system_list)
69460         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
69461         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
69462         dev= in that case.
69463
69464         * lib/posixtm.h (PDS_PRE_2000): New macro.
69465         * lib/posixtm.c (year): Arg is now syntax_bits rather than
69466         allow_century.  All usages changed.  Reject dates outside the range
69467         1969-1999 if PDS_PRE_2000 is used.
69468
69469 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69470
69471         Sync from coreutils.
69472         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
69473         (Time of day items): Mention the possibility of leap seconds.
69474         Problem reported by Dr. David Alan Gilbert.
69475
69476 2006-01-09  Jim Meyering  <jim@meyering.net>
69477
69478         Sync from coreutils.
69479
69480         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
69481
69482         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
69483
69484         * lib/modechange.c (mode_compile): Reject an invalid mode string
69485         that starts with an octal digit.  From Andreas Gruenbacher.
69486
69487         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
69488         and dup to open_safer and dup_safer, respectively.
69489         (openat_permissive): Fix typo in comment.
69490
69491         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
69492         "gettext.h"; either no longer needed or are guaranteed by openat.h.
69493         (_): Remove; no longer needed.
69494         (openat): Renamed from rpl_openat; no need for rpl_openat
69495         since openat.h renames openat for us.
69496         Replace most of the body with a call to openat_permissive,
69497         to avoid duplicate code.
69498         Port to (probably hypothetical) environments were mode_t is
69499         wider than int.
69500         (openat_permissive): Require mode arg, so that we can check
69501         types better.  Put it just after flags.  Change cwd failure
69502         indicator from pointer-to-bool to pointer-to-errno-value.
69503         All callers changed.
69504         Invoke openat_save_fail and/or openat_restore_fail if
69505         cwd_errno is null, so that openat can call us.
69506         (openat_permissive, fdopendir, fstatat, unlinkat):
69507         Simplify errno handling to avoid some duplicate code,
69508         as it's OK to set errno on success.
69509         * lib/openat.h: Revamp code so that function macros depend on
69510         __OPENAT_PREFIX only, not also on AT_FDCWD.
69511         (openat_ro): Remove.  Caller changed to use openat_permissive.
69512         (openat_permissive): Now a macro, if not a function.
69513         (openat_restore_fail, openat_save_fail): Now always functions,
69514         since mkdirat needs them even if __OPENAT_PREFIX is defined.
69515
69516         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
69517         and openat.c.
69518         * lib/mkdirat.c: Include openat-priv.h.
69519         Remove definitions of macros defined therein.
69520         * lib/openat.c: Likewise.
69521
69522         * lib/mkdirat.c (mkdirat): New file and function.
69523         * lib/openat.h (mkdirat): Declare.
69524
69525         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
69526
69527         * lib/openat.h (openat_permissive): Declare.
69528         (openat_ro): Define.
69529
69530         * lib/openat.c (EXPECTED_ERRNO): New macro.
69531         (openat_permissive): New function -- used in remove.c rewrite.
69532         (all functions): Set errno just before returning, only if there
69533         was an actual failure.
69534         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
69535
69536         Emulate openat-family functions using Linux's procfs, if possible.
69537         Idea and some code based on Ulrich Drepper's glibc changes.
69538
69539         * lib/openat.c: (BUILD_PROC_NAME): New macro.
69540         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
69541         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
69542         before falling back on save_cwd and restore_cwd.
69543         (fdopendir, fstatat, unlinkat): Likewise.
69544
69545         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
69546         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
69547
69548         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
69549         as second argument to va_arg.  Otherwise, some versions of gcc
69550         warn that `if this code is reached, the program will abort'.
69551
69552 2006-01-09  Jim Meyering  <jim@meyering.net>
69553
69554         Sync from coreutils.
69555         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
69556         Require openat-priv.h.
69557
69558 2006-01-09  Bruno Haible  <bruno@clisp.org>
69559
69560         * modules/strnlen (Include): Use strnlen.h.
69561
69562 2006-01-09  Bruno Haible  <bruno@clisp.org>
69563
69564         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
69565
69566 2006-01-09  Bruno Haible  <bruno@clisp.org>
69567
69568         * lib/sysexit_.h (EX_OK): New macro.
69569         Suggested by Martin Lambers <marlam@marlam.de>.
69570
69571 2006-01-09  Bruno Haible  <bruno@clisp.org>
69572
69573         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
69574         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
69575
69576 2006-01-09  Bruno Haible  <bruno@clisp.org>
69577
69578         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
69579         numbers.
69580
69581 2006-01-09  Bruno Haible  <bruno@clisp.org>
69582
69583         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
69584         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
69585         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
69586         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
69587
69588 2006-01-09  Bruno Haible  <bruno@clisp.org>
69589
69590         * build-aux/javacomp.sh.in: New file, moved from lib/.
69591         * modules/javacomp-script (Files): Update.
69592         (configure.ac): Add AC_CONFIG_FILES invocation.
69593         (EXTRA_DIST): Remove variable.
69594
69595         * build-aux/javaexec.sh.in: New file, moved from lib/.
69596         * modules/javaexec (Files): Update.
69597         (configure.ac): Add AC_CONFIG_FILES invocation.
69598         (EXTRA_DIST): Remove javaexec.sh.in.
69599
69600         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
69601         * modules/csharpcomp-script (Files): Update.
69602         (configure.ac): Add AC_CONFIG_FILES invocation.
69603         (EXTRA_DIST): Remove variable.
69604
69605         * build-aux/csharpexec.sh.in: New file, moved from lib/.
69606         * modules/csharpexec (Files): Update.
69607         (configure.ac): Add AC_CONFIG_FILES invocation.
69608         (EXTRA_DIST): Remove csharpexec.sh.in.
69609
69610 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
69611
69612         Sync from coreutils.
69613
69614         Add POSIX ACL support
69615         * lib/acl.h (copy_acl, set_acl): Add declarations.
69616         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
69617         systems other than Linux.
69618         (chmod_or_fchmod): New function: use fchmod when possible,
69619         and chmod otherwise.
69620         (file_has_acl): Add a POSIX ACL implementation, with a
69621         Linux-specific subcase.
69622         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
69623         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
69624         acls are unsupported.
69625         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
69626         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
69627         are unsupported.
69628
69629 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
69630
69631         Sync from coreutils.
69632         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
69633
69634 2006-01-07  Bruno Haible  <bruno@clisp.org>
69635
69636         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
69637         gl_EARLY.
69638
69639 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
69640
69641         * lib/strftime.c (tzname): Don't declare if it is already #defined.
69642         Problem reported for Mingw by Mark Junker.
69643
69644 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
69645
69646         * README: Gnulib normally doesn't generate a tarball.
69647
69648 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
69649
69650         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
69651         long int, not int, for nanosecond counts, so that people who are
69652         used to POSIX struct timespec won't be surprised.  Reported by Jim
69653         Meyering.
69654
69655 2005-12-28  Bruno Haible  <bruno@clisp.org>
69656
69657         * build-aux/config.rpath: Update from GNU gettext.
69658
69659 2005-12-16  Jim Meyering  <jim@meyering.net>
69660
69661         * modules/fprintftime: New module.
69662         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
69663
69664 2005-12-16  Jim Meyering  <jim@meyering.net>
69665
69666         * m4/fprintftime.m4: New file.
69667
69668 2005-12-16  Jim Meyering  <jim@meyering.net>
69669
69670         * lib/fprintftime.c, lib/fprintftime.h: New files.
69671
69672 2005-12-15  Simon Josefsson  <jas@extundo.com>
69673
69674         * modules/socklen (configure.ac): Fix M4 macro name, to align with
69675         new m4/socklen.m4.
69676
69677 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
69678
69679         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
69680         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
69681
69682 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
69683
69684         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
69685         * lib/argp-help.c (fill_in_uparams): Check if the constructed
69686         struct uparams is valid. Fall back to the default values if it is
69687         not.
69688
69689 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69690
69691         * modules/argp (Files): Add argp-pin.c
69692         (Depends-on): dirname
69693         (lib_SOURCES): Add argp-pin.c
69694
69695 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69696
69697         * m4/argp.m4:  Check if program_invocation_name and
69698         program_invocation_short_name are declared and define appropriate
69699         macros if they are not.
69700
69701 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69702
69703         * lib/argp-help.c (__argp_base_name): New function
69704         (__argp_short_program_name): Rewrite using __argp_base_name
69705         * lib/argp-namefrob.h: Define program_invocation_name and
69706         program_invocation_short_name if requested
69707         (__argp_base_name): Add prototype
69708         * lib/argp-parse.c (argp_def): Use gettext wrappers
69709         (argp_default_parser): Use __argp_base_name
69710         * lib/argp-pin.c: New file. Defines program_invocation_name and
69711         program_invocation_short_name on systems that lack them.
69712
69713 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
69714
69715         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
69716         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
69717         porting problem reported by Georg Schwarz in
69718         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
69719
69720 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
69721
69722         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
69723         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
69724         porting problem reported by Georg Schwarz in
69725         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
69726
69727 2005-12-05  Bruno Haible  <bruno@clisp.org>
69728
69729         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
69730         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
69731         Reported by Mark Junker <mjscod@gmx.de>.
69732
69733 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
69734
69735         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
69736         Use implementation from Albert Chin, with some
69737         comments/corrections by Stepan Kasal and myself.
69738
69739 2005-12-02  Bruno Haible  <bruno@clisp.org>
69740
69741         * gnulib-tool (func_import): Accept GPLed build tool modules when
69742         --lgpl is given.
69743         * modules/csharpcomp-script: New file.
69744         * modules/csharpcomp: Depend on it.
69745         * modules/javacomp-script: New file.
69746         * modules/javacomp: Depend on it.
69747         Suggested by Simon Josefsson.
69748
69749 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
69750
69751         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
69752         statement, to work around an HP-UX 10.20 compiler bug reported by
69753         Peter O'Gorman.
69754
69755 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
69756
69757         * modules/savedir (Depends-on): Add openat.
69758
69759 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
69760
69761         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
69762         (uintmax_t) [defined uintmax_t]: Do not declare.
69763         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
69764         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
69765         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
69766         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
69767         sake of portability to weird hosts that C allows (though we don't
69768         know of any practical examples).
69769
69770         * lib/savedir.h (fdsavedir): New decl.
69771         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
69772         contains most of the former guts of savedir.
69773         (savedir): Use savedirstream.
69774         Include "openat.h".
69775
69776 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
69777
69778         * modules/obstack (Files): Add m4/ulonglong.m4.
69779         Problem reported by Davide Angelocola.
69780
69781 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
69782
69783         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
69784         coreutils no longer futzes with rounding modes.
69785
69786 2005-11-14  Jim Meyering  <jim@meyering.net>
69787
69788         * lib/mkstemp-safer.c: Include <config.h>, required for possible
69789         replacement of mkstemp.
69790
69791 2005-11-10  Simon Josefsson  <jas@extundo.com>
69792
69793         * lib/readline.c: Remove EOL.
69794
69795 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
69796
69797         * modules/gethrxtime (Depends-on): Add gettime.
69798
69799 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
69800
69801         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
69802         or gettimeofday; no longer needed.
69803
69804 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
69805
69806         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
69807         time business.
69808         (gethrxtime) [! (HAVE_NANOUPTIME
69809         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
69810         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
69811         our own approximation.
69812
69813 2005-11-08  Eric Blake  <ebb9@byu.net>
69814
69815         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
69816
69817 2005-11-08  Eric Blake  <ebb9@byu.net>
69818
69819         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
69820
69821 2005-11-04  Bruno Haible  <bruno@clisp.org>
69822
69823         * gnulib-tool: Implement --update mode.
69824
69825 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
69826
69827         Fix porting problem reported by Theodoros V. Kalamatianos.
69828         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
69829         Don't assume that futimes failing means we must fail.
69830
69831 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
69832
69833         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
69834         variables to suggest the intended function of the PATH_MAX check.
69835
69836 2005-10-30  Kean Johnston  <jkj@sco.com>
69837
69838         Trivial changes to support SCO systems.
69839         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
69840         as PATH_MAX.
69841         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
69842         where __ptr is null when no I/O is pending.
69843
69844 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
69845
69846         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
69847         leave errno alone.  Problem reported by Dmitry V. Levin.
69848
69849 2005-10-28  Simon Josefsson  <jas@extundo.com>
69850
69851         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
69852         Test more.
69853
69854         * tests/test-gc-md2.c, tests/test-md2.c: New files.
69855
69856         * modules/md2, modules/md2-tests: New files.
69857
69858 2005-10-28  Simon Josefsson  <jas@extundo.com>
69859
69860         * m4/inet_ntop.m4: More tests.
69861
69862         * m4/gc-md2.m4, md2.m4: New file.
69863
69864 2005-10-28  Simon Josefsson  <jas@extundo.com>
69865
69866         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
69867         "restrict" keywords, as per POSIX.  Protect the function
69868         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
69869         Don't use K&R prototypes.  Check the sprintf return values.
69870         Re-define EAFNOSUPPORT if not present.  Indent.
69871
69872         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
69873         suggested by Bruno Haible <bruno@clisp.org>.
69874
69875         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
69876
69877         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
69878
69879         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
69880         libgcrypt).
69881
69882         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
69883
69884         * lib/md2.h, lib/md2.c: New files.
69885
69886 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
69887
69888         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
69889         errno alone.  Problem reported by Frederic Jolliton.
69890
69891 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
69892
69893         * modules/verify (License): Change from GPL to LGPL.  This is a
69894         tiny module and there are apparently near-equivalents that are
69895         under the BSD license.
69896
69897 2005-10-24  Simon Josefsson  <jas@extundo.com>
69898
69899         * modules/sha1: Relicense to LGPL.
69900
69901 2005-10-24  Simon Josefsson  <jas@extundo.com>
69902
69903         * lib/md4.h: Shrink buffer size, now that we changed the type.
69904
69905 2005-10-23  Simon Josefsson  <jas@extundo.com>
69906
69907         * gnulib-tool (func_import): Fix --tests-base.
69908
69909 2005-10-22  Simon Josefsson  <jas@extundo.com>
69910
69911         * modules/arcfour (Depends-on): Need stdint.
69912
69913 2005-10-22  Simon Josefsson  <jas@extundo.com>
69914
69915         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
69916         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
69917
69918 2005-10-22  Simon Josefsson  <jas@extundo.com>
69919
69920         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
69921         suggested by Bruno Haible <bruno@clisp.org>.
69922
69923 2005-10-22  Simon Josefsson  <jas@extundo.com>
69924
69925         * lib/crc.h: Include stddef.h, for size_t.
69926
69927 2005-10-22  Simon Josefsson  <jas@extundo.com>
69928
69929         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
69930         arcfour_context struct (simplify test vector testing in GNU
69931         Shishi).
69932
69933 2005-10-21  Simon Josefsson  <jas@extundo.com>
69934
69935         * modules/des, modules/des-tests: New files.
69936
69937         * modules/gc-des, modules/gc-des-tests: New files.
69938
69939         * tests/test-des.c, tests/test-gc-des.c: New file.
69940
69941 2005-10-21  Simon Josefsson  <jas@extundo.com>
69942
69943         * modules/arctwo, modules/arctwo-tests: New files.
69944
69945         * tests/test-arctwo.c: New file.
69946
69947         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
69948
69949         * tests/test-gc-arctwo.c: New file.
69950
69951 2005-10-21  Simon Josefsson  <jas@extundo.com>
69952
69953         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
69954         Bruno Haible <bruno@clisp.org>.
69955
69956         * m4/gc-des.m4: New file.
69957
69958 2005-10-21  Simon Josefsson  <jas@extundo.com>
69959
69960         * m4/arctwo.m4: New file.
69961
69962         * m4/gc-arctwo.m4: New file.
69963
69964 2005-10-21  Simon Josefsson  <jas@extundo.com>
69965
69966         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
69967         block.
69968
69969 2005-10-21  Simon Josefsson  <jas@extundo.com>
69970
69971         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
69972         <bruno@clisp.org>.
69973
69974         * lib/hmac-sha1.c (hmac_sha1): Likewise.
69975
69976         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
69977         Bruno Haible <bruno@clisp.org>.
69978
69979         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
69980         <bruno@clisp.org>.
69981
69982 2005-10-21  Simon Josefsson  <jas@extundo.com>
69983
69984         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
69985
69986 2005-10-21  Simon Josefsson  <jas@extundo.com>
69987
69988         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
69989
69990 2005-10-21  Simon Josefsson  <jas@extundo.com>
69991
69992         * lib/des.h, lib/des.c: New files.
69993
69994         * lib/gc-gnulib.c: Support DES.c
69995
69996 2005-10-21  Simon Josefsson  <jas@extundo.com>
69997
69998         * lib/arctwo.h, lib/arctwo.c: New files.
69999
70000         * lib/gc-gnulib.c: Support ARCTWO.
70001
70002 2005-10-21  Simon Josefsson  <jas@extundo.com>
70003
70004         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
70005         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70006
70007 2005-10-21  Simon Josefsson  <jas@extundo.com>
70008
70009         * gnulib-tool (func_import, func_create_testdir): Define automake
70010         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
70011         Makefile.am snippet),
70012         suggested by Bruno Haible <bruno@clisp.org>.
70013
70014         * modules/gc (Makefile.am): Use it.
70015
70016 2005-10-21  Bruno Haible  <bruno@clisp.org>
70017
70018         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
70019         patch.
70020
70021 2005-10-19  Simon Josefsson  <jas@extundo.com>
70022
70023         * tests/test-gc-rijndael.c: New file.
70024
70025         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
70026
70027 2005-10-19  Simon Josefsson  <jas@extundo.com>
70028
70029         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
70030         interface too.
70031
70032 2005-10-19  Simon Josefsson  <jas@extundo.com>
70033
70034         * tests/test-gc-arcfour.c: New file.
70035
70036         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
70037
70038 2005-10-19  Simon Josefsson  <jas@extundo.com>
70039
70040         * modules/gc-md4, modules/gc-md4-tests: New file.
70041
70042         * tests/test-gc-md4.c: New file.
70043
70044 2005-10-19  Simon Josefsson  <jas@extundo.com>
70045
70046         * m4/gc-md4.m4: New file.
70047
70048 2005-10-19  Simon Josefsson  <jas@extundo.com>
70049
70050         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
70051         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
70052         <kasal@ucw.cz>.
70053
70054 2005-10-19  Simon Josefsson  <jas@extundo.com>
70055
70056         * m4/gc-arcfour.m4: New file.
70057
70058         * m4/gc-rijndael.m4: New file.
70059
70060 2005-10-19  Simon Josefsson  <jas@extundo.com>
70061
70062         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
70063
70064 2005-10-19  Simon Josefsson  <jas@extundo.com>
70065
70066         * lib/gc-gnulib.c: Support ARCFOUR.
70067
70068 2005-10-19  Simon Josefsson  <jas@extundo.com>
70069
70070         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
70071         support.
70072
70073         * lib/gc.h: Add ECB enum type.
70074
70075         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
70076
70077 2005-10-18  Simon Josefsson  <jas@extundo.com>
70078
70079         * tests/test-md5.c: New file.
70080
70081         * modules/md5-tests: New file.
70082
70083 2005-10-18  Simon Josefsson  <jas@extundo.com>
70084
70085         * tests/test-md4.c: New file.
70086
70087         * modules/md4, modules/md4-tests: New files.
70088
70089 2005-10-18  Simon Josefsson  <jas@extundo.com>
70090
70091         * m4/md4.m4: New file.
70092
70093 2005-10-18  Simon Josefsson  <jas@extundo.com>
70094
70095         * lib/md4.h, lib/md4.c: New files, based on md5.?.
70096
70097 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
70098
70099         * gnulib-tool (func_create_testdir): Omit the second check whether
70100         BUILT_SOURCES in nonempty.
70101
70102 2005-10-17  Simon Josefsson  <jas@extundo.com>
70103
70104         * tests/test-rijndael.c: New file.
70105
70106 2005-10-17  Simon Josefsson  <jas@extundo.com>
70107
70108         * modules/sha1: Depend on stdint instead of md5.
70109
70110         * modules/md5: Depend on stdint, remove uint32_t.
70111
70112 2005-10-17  Simon Josefsson  <jas@extundo.com>
70113
70114         * modules/gc-sha1-tests: New file.
70115
70116         * tests/test-gc-sha1.c: New file.
70117
70118 2005-10-17  Simon Josefsson  <jas@extundo.com>
70119
70120         * m4/md5.m4: Remove call to uint32_t.m4.
70121
70122 2005-10-17  Simon Josefsson  <jas@extundo.com>
70123
70124         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
70125
70126         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
70127         md5.h.
70128
70129         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
70130
70131         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
70132
70133 2005-10-17  Simon Josefsson  <jas@extundo.com>
70134
70135         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
70136
70137 2005-10-17  Simon Josefsson  <jas@extundo.com>
70138
70139         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
70140
70141 2005-10-17  Simon Josefsson  <jas@extundo.com>
70142
70143         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
70144
70145         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
70146
70147 2005-10-17  Bruno Haible  <bruno@clisp.org>
70148
70149         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
70150         that it can also be used in a test.
70151
70152 2005-10-16  Bruno Haible  <bruno@clisp.org>
70153
70154         * gnulib-tool (func_emit_tests_Makefile_am): Also define
70155         TESTS_ENVIRONMENT, so that individual tests can augment it.
70156
70157         * gnulib-tool (func_create_testdir): Use an intermediate target for
70158         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
70159         macros, like $(ALLOCA_H), which cannot be passed through the command
70160         line.
70161
70162 2005-10-15  Simon Josefsson  <jas@extundo.com>
70163
70164         * modules/rijndael-tests: New file.
70165
70166         * modules/rijndael: New file.
70167
70168 2005-10-15  Simon Josefsson  <jas@extundo.com>
70169
70170         * m4/rijndael.m4: New file.
70171
70172 2005-10-15  Simon Josefsson  <jas@extundo.com>
70173
70174         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
70175
70176         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
70177
70178 2005-10-14  Simon Josefsson  <jas@extundo.com>
70179
70180         * tests/test-arcfour.c: New file.
70181
70182         * modules/arcfour, modules/arcfour-tests: New files.
70183
70184 2005-10-14  Simon Josefsson  <jas@extundo.com>
70185
70186         * m4/arcfour.m4: New file.
70187
70188 2005-10-14  Simon Josefsson  <jas@extundo.com>
70189
70190         * lib/arcfour.h, lib/arcfour.c: New files.
70191
70192 2005-10-14  Roland McGrath  <roland@redhat.com>
70193
70194         Import from libc.  [BZ #1331]
70195         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
70196         macro argument.
70197         Reported by Matej Vela <vela@debian.org>.
70198
70199 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
70200
70201         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
70202         include <wchar.h>; no longer needed.
70203
70204 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
70205
70206         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
70207
70208 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
70209         and  Ulrich Drepper  <drepper@redhat.com>
70210
70211         Import from libc.
70212         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
70213         instead of inline stream orientation test and two separate
70214         function calls.  Pay no attention to USE_IN_LIBIO.
70215
70216 2005-10-13  Simon Josefsson  <jas@extundo.com>
70217
70218         * modules/gc-hmac-md5-tests: New file.
70219
70220         * tests/test-gc-hmac-sha1.c: New file.
70221
70222         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
70223
70224         * modules/gc-hmac-md5-tests: New file.
70225
70226         * tests/test-gc-md5.c: New file.
70227
70228         * modules/gc-md5-tests: New file.
70229
70230 2005-10-13  Simon Josefsson  <jas@extundo.com>
70231
70232         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
70233         Move memory allocation outside of loop.
70234
70235 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
70236
70237         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
70238         intermediate directory is in a read-only file system.  Problem
70239         reported by Eric Blake.
70240
70241 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
70242
70243         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
70244
70245 2005-10-12  Simon Josefsson  <jas@extundo.com>
70246
70247         * tests/test-hmac-sha1.c: New file.
70248
70249         * modules/hmac-sha1-tests: New file.
70250
70251         * modules/hmac-sha1: New file.
70252
70253 2005-10-12  Simon Josefsson  <jas@extundo.com>
70254
70255         * modules/gc-sha1: New file.
70256
70257 2005-10-12  Simon Josefsson  <jas@extundo.com>
70258
70259         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
70260
70261         * tests/test-gc-pbkdf2-sha1.c: New file.
70262
70263 2005-10-12  Simon Josefsson  <jas@extundo.com>
70264
70265         * modules/gc-md5, modules/gc-hmac-md5: New files.
70266
70267         * modules/gc (Files): Remove md5, memxor and hmac files.
70268
70269 2005-10-12  Simon Josefsson  <jas@extundo.com>
70270
70271         * m4/gc-pbkdf2-sha1.m4: New file.
70272
70273         * m4/gc-hmac-sha1.m4: New file.
70274
70275         * m4/gc-sha1: New file.
70276
70277         * m4/hmac-sha1.m4: New file.
70278
70279 2005-10-12  Simon Josefsson  <jas@extundo.com>
70280
70281         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
70282
70283         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
70284
70285 2005-10-12  Simon Josefsson  <jas@extundo.com>
70286
70287         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
70288         suggested by Bruno Haible <bruno@clisp.org>.
70289
70290 2005-10-12  Simon Josefsson  <jas@extundo.com>
70291
70292         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
70293
70294 2005-10-12  Simon Josefsson  <jas@extundo.com>
70295
70296         * lib/gc-pbkdf2-sha1.c: New file.
70297
70298         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
70299
70300 2005-10-12  Simon Josefsson  <jas@extundo.com>
70301
70302         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
70303
70304         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
70305
70306 2005-10-12  Simon Josefsson  <jas@extundo.com>
70307
70308         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
70309         GC_USE_HMAC_MD5, respectively.
70310
70311         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
70312         (gc_md5): Fix typo.
70313
70314         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
70315
70316         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
70317
70318         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
70319
70320 2005-10-12  Bruno Haible  <bruno@clisp.org>
70321
70322         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
70323         Reported by Stepan Kasal <kasal@ucw.cz>.
70324
70325 2005-10-11  Simon Josefsson  <jas@extundo.com>
70326
70327         * tests/test-crc.c: New file.
70328
70329         * modules/crc, modules/crc-tests: New files.
70330
70331 2005-10-11  Simon Josefsson  <jas@extundo.com>
70332
70333         * m4/crc.m4: New file.
70334
70335 2005-10-11  Simon Josefsson  <jas@extundo.com>
70336
70337         * lib/gc.h: Add gc_hash and gc_hash_buffer.
70338
70339         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
70340
70341         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
70342
70343 2005-10-11  Simon Josefsson  <jas@extundo.com>
70344
70345         * lib/crc.h, lib/crc.c: New files.
70346
70347         * lib/gc.h (gc_hash_buffer): Add doc.
70348
70349 2005-10-11  Bruno Haible  <bruno@clisp.org>
70350
70351         * modules/c-strcasestr: New file.
70352         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
70353
70354 2005-10-11  Bruno Haible  <bruno@clisp.org>
70355
70356         * modules/c-strcase: New file.
70357         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
70358
70359 2005-10-11  Bruno Haible  <bruno@clisp.org>
70360
70361         * lib/strcasecmp.c: Include limits.h.
70362         (strcasecmp): Avoid integer overflow on exotic platforms.
70363         * lib/strncasecmp.c: Include limits.h.
70364         (strncasecmp): Avoid integer overflow on exotic platforms.
70365         Reported by Paul Eggert.
70366
70367 2005-10-11  Bruno Haible  <bruno@clisp.org>
70368
70369         * lib/c-strcasestr.h: New file, from GNU gettext.
70370         * lib/c-strcasestr.c: New file, from GNU gettext.
70371
70372 2005-10-11  Bruno Haible  <bruno@clisp.org>
70373
70374         * lib/c-strcase.h: New file, from GNU gettext.
70375         * lib/c-strcasecmp.c: New file, from GNU gettext.
70376         * lib/c-strncasecmp.c: New file, from GNU gettext.
70377
70378 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
70379
70380         * modules/mempcpy (License): GPL -> LGPL.
70381         * modules/strchrnul (License): Likewise.
70382         * modules/sysexits (License): Likewise.
70383
70384 2005-10-08  Simon Josefsson  <jas@extundo.com>
70385
70386         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
70387
70388 2005-10-07  Simon Josefsson  <jas@extundo.com>
70389
70390         * m4/memxor.m4: Remove gl_C_RESTRICT call.
70391
70392 2005-10-06  Simon Josefsson  <jas@extundo.com>
70393
70394         * tests/test-hmac-md5.c: New file.
70395
70396         * modules/hmac-md5-tests: New file.
70397
70398         * modules/hmac-md5: New file.
70399
70400 2005-10-06  Simon Josefsson  <jas@extundo.com>
70401
70402         * m4/hmac-md5.m4: New file.
70403
70404         * m4/memxor.m4: Require gl_C_RESTRICT.
70405
70406 2005-10-06  Simon Josefsson  <jas@extundo.com>
70407
70408         * lib/memxor.c (memxor): Avoid casts and warnings.
70409
70410 2005-10-06  Simon Josefsson  <jas@extundo.com>
70411
70412         * lib/hmac-md5.c: New file.
70413
70414         * lib/hmac.h: New file.
70415
70416 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
70417
70418         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
70419         promotes to int, not unsigned int, to catch the AIX 5.3
70420         compiler bug.
70421
70422 2005-10-05  Simon Josefsson  <jas@extundo.com>
70423
70424         * modules/memxor: New file.
70425
70426         * modules/iconv (Files): Move config.rpath to havelib, it is used
70427         there.
70428
70429         * modules/havelib (Files): Add config.rpath.
70430
70431 2005-10-05  Simon Josefsson  <jas@extundo.com>
70432
70433         * m4/memxor.m4: New file.
70434
70435 2005-10-05  Simon Josefsson  <jas@extundo.com>
70436
70437         * lib/memxor.c (memxor): Fix compiler error.
70438
70439         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
70440         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
70441
70442         * lib/memxor.h, lib/memxor.c: New files.
70443
70444         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
70445         we assume all systems have it, suggested by Jim Meyering
70446         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
70447         any systems lack sys/socket.h; mingw32 is known to lack it, but we
70448         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
70449         same reasons.
70450
70451 2005-10-05  Simon Josefsson  <jas@extundo.com>
70452
70453         * config/srclist.txt: Add glibc bug 1423 for md5.h.
70454
70455 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
70456
70457         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
70458         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
70459         needed, since the source code now assumes these .h files.
70460
70461 2005-10-05  Derek Price  <derek@ximbiot.com>
70462
70463         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
70464
70465 2005-10-05  Bruno Haible  <bruno@clisp.org>
70466
70467         * modules/stdint (License): Change to LGPL.
70468
70469 2005-10-04  Simon Josefsson  <jas@extundo.com>
70470
70471         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
70472         D. Baushke" <mdb@gnu.org>.
70473
70474 2005-10-04  Bruno Haible  <bruno@clisp.org>
70475
70476         * lib/verify.h (verify_true): Provide alternative definition for C++.
70477
70478 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
70479
70480         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
70481         (SSIZE_MAX): New macro, if not already defined.
70482         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
70483         than 2 GiB.
70484
70485 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
70486
70487         Sync from coreutils.
70488         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
70489         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
70490         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
70491         ULLONG_MAX doesn't work with 2.7.2.1.
70492
70493 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
70494
70495         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
70496         From Ben Pfaff.
70497
70498         * modules/exclude (Depends-on): Depend on verify.
70499         * modules/strtoimax (Depends-on): Likewise.
70500         * modules/utimecmp (Depends-on): Likewise.
70501
70502 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
70503
70504         * lib/exclude.c: Include verify.h.
70505         (verify): Remove.  All callers changed to use verify.h's version.
70506         * lib/strtoimax.c: Likewise.
70507         * lib/utimecmp.c: Likewis.e
70508
70509         Sync from coreutils.
70510         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
70511         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
70512         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
70513         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
70514         bother returning ENOSYS if settimeofday or stime fails; just let
70515         them return whatever errno they want to return.
70516         * lib/utimens.c: Include unistd.h, for dup2.
70517         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
70518         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
70519
70520 2005-10-02  Jim Meyering  <jim@meyering.net>
70521
70522         Sync from coreutils.
70523         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
70524         from glibc-2.2.5 that fails for read-only files.
70525
70526 2005-10-02  Jim Meyering  <jim@meyering.net>
70527
70528         Sync from coreutils.
70529         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
70530         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
70531         `#if HAVE_CONFIG_H'.
70532         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
70533         Remove AT_FDCWD test.
70534         Do not consume the fd unless successful.
70535         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
70536         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
70537         block, so that we don't even try to compile it if settimeofday is
70538         available.  This works around a compilation failure on OSF1 V5.1,
70539         due to stime requiring a `long int*' while tv_sec is `int'.
70540
70541 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
70542
70543         Sync from coreutils.
70544         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
70545         against `yes', rather than just testing for nonempty.
70546
70547 2005-10-01  Simon Josefsson  <jas@extundo.com>
70548
70549         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
70550         and Darwin.
70551
70552         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
70553         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
70554         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
70555         freeaddrinfo and gai_strerror are declared by the POSIX headers.
70556         Check if struct addrinfo is declared.
70557
70558 2005-10-01  Simon Josefsson  <jas@extundo.com>
70559
70560         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
70561         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
70562         AI_* and EAI_* definitions.  Protect function declarations.
70563
70564 2005-10-01  Jim Meyering  <jim@meyering.net>
70565
70566         Sync from coreutils.
70567
70568         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
70569         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
70570         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
70571         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
70572         in the inet and nsl libraries.  Required on Solaris 5.7.
70573
70574 2005-10-01  Jim Meyering  <jim@meyering.net>
70575
70576         Sync from coreutils.
70577         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
70578         in the inet and nsl libraries.  Required on Solaris 5.7.
70579
70580 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
70581
70582         * lib/getdelim.c (getdelim): Remove unused variables.
70583
70584 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
70585
70586         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
70587         so that the code works even with ancient cpp.  Portability problem
70588         with GCC 2.7.2.1 reported by Thomas M.Ott.
70589
70590 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
70591
70592         * modules/regex (Depends-on): Add strcase.
70593
70594         * modules/gethostname (Licence): Change from GPL to LGPL, since
70595         gethostname.c is a trivial implementation of a standard library
70596         function.
70597         * modules/poll (License): Change from GPL to LGPL, since it's
70598         derived from LGPL code.
70599
70600 2005-09-27  Jim Meyering  <jim@meyering.net>
70601
70602         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
70603         HAVE_CONFIG_H.
70604
70605         * lib/intprops.h (signed_type_or_expr__): Define.
70606         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
70607         for unsigned types.
70608
70609 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
70610
70611         * lib/verify.h (verify_expr): Remove, replacing with:
70612         (verify_true): New macro that returns true instead of void.
70613         (verify_type__): Remove.
70614         (verify): Use verify_true rather than verify_type__.
70615
70616 2005-09-26  Bruno Haible  <bruno@clisp.org>
70617
70618         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
70619         is necessary.
70620         (lib_SOURCES): Remove mbchar.c.
70621         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
70622         (Files): Add m4/mbrtowc.m4.
70623         * modules/mbiter: Likewise.
70624         * modules/mbuiter: Likewise.
70625
70626 2005-09-26  Bruno Haible  <bruno@clisp.org>
70627
70628         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
70629         compile mbchar.c if they are not both present.
70630         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
70631         * m4/mbiter.m4 (gl_MBITER): Likewise.
70632         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
70633         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
70634         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
70635
70636 2005-09-25  Jim Meyering  <jim@meyering.net>
70637
70638         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
70639         also uses socklen_t.
70640
70641 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
70642
70643         * lib/utimens.c (ENOSYS): Define if not already defined.
70644         (futimens): Support having a null PATH if the file descriptor
70645         is nonnegative.
70646
70647         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
70648         Remove.
70649         (__attribute): Define to empty unless GCC 3.1 or later.
70650         This works around a core dump on OpenBSD 3.4, which has GCC
70651         2.95.3, which dumps core when given __attribute__(()).  It also
70652         simplifies other tests, since we really don't want to bother with
70653         worrying about which ancient version of GCC supported what.
70654         Original problem reported by Yoann Vandoorselaere, with part of
70655         the fix suggested by Derek Price.
70656
70657 2005-09-24  Jim Meyering  <jim@meyering.net>
70658
70659         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
70660         so we can once again use a positive bitfield width of 1 -- now we
70661         don't have to explain why we were using a bitfield width of 2.
70662
70663 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
70664
70665         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
70666         and similarly for the other external symbols.  Problem reported
70667         by James Gallager.
70668
70669         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
70670         bug reported by Jim Meyering.
70671
70672         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
70673         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
70674         not needed, since socklen is a prerequisite module.
70675
70676 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
70677
70678         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
70679         Problem reported by Eric Blake.
70680         (getaddrinfo): Initialize se so that it's not garbage.
70681         Redo internal storage allocation so that it doesn't make unportable
70682         assumptions about alignment.
70683         Fix a memory leak.
70684
70685         * lib/utimens.c (futimens): Use futimesat if available.
70686         Prefer it to futimes since it doesn't have the futimes bug.
70687
70688         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
70689         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
70690         Instead, declare a function that returns a pointer to an array,
70691         and use verify_type__ to declare the size of the array.
70692         Problem and germ of a solution reported by Bruno Haible.
70693         (verify_type__): Use 2, not 1, for bitfield size, to avoid
70694         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
70695
70696 2005-09-23  Jim Meyering  <jim@meyering.net>
70697
70698         Sync from coreutils.
70699         Correct build failure (socklen_t not defined) on at least
70700         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
70701         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
70702
70703 2005-09-23  Jim Meyering  <jim@meyering.net>
70704
70705         * modules/getaddrinfo (Depends-on): Add socklen.
70706
70707 2005-09-23  Bruno Haible  <bruno@clisp.org>
70708
70709         * tests/test-verify.c: New file.
70710
70711 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
70712
70713         Sync from coreutils.
70714
70715         * modules/argmatch (Depends-on): Add verify.
70716         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
70717         unistd-safer.
70718         * modules/save-cwd (Depends-on): Likewise.
70719
70720         * modules/openat (Files): Add lib/openat-die.c.
70721         (Depends-on): Remove error, exitfail.
70722         Add dirname.
70723
70724         * modules/verify: New file.
70725         * MODULES.html.sh (Diagnostics <assert.h>): New section,
70726         with "verify" module.
70727
70728 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
70729
70730         Sync from coreutils.
70731
70732         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
70733         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
70734         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
70735         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
70736         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
70737         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
70738         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
70739         Don't bother checking for string.h, stdlib.h, unistd.h.
70740         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
70741         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
70742         module's job.
70743         * m4/jm-macros.m4 (gl_MACROS): Likewise.
70744         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
70745
70746         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
70747         (gl_GETDATE): Use it.
70748
70749         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
70750
70751 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
70752
70753         Sync from coreutils.
70754
70755         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
70756         stat-time.h.
70757         * lib/argmatch.h: Include verify.h
70758         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
70759         (ARGMATCH_ASSERT): Remove; unused.
70760         * lib/canonicalize.c: Assume STDC_HEADERS.
70761         * lib/exclude.c: Include "strcase.h".
70762         * lib/regex_internal.h [!defined _LIBC]: Likewise.
70763         * lib/getusershell.c: Include stdio--.h rather than stdio.h
70764         and stdio-safer.h.
70765         (getusershell): Call fopen, not fopen_safer.
70766         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
70767         Do not include unistd-safer.h.
70768         (save_cwd): Don't call fd_safer; no longer needed
70769         now that we include fcntl--.h.
70770
70771         * lib/getdate.y (relative_time): New type.
70772         (RELATIVE_TIME_0): New constant.
70773         (parser_control): Use relative_time instead of doing it ourselves.
70774         (%union): Add new relative_time rel member.
70775         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
70776         Now typeless.
70777         (relunit, relunit_snumber): Now of type rel.
70778         (zone, rel, relunit, get_date): Adjust to above changes.
70779
70780         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
70781         Do not include unistd-safer.h.
70782         (getloadavg): Don't call fd_safer; no longer needed
70783         now that we include fcntl--.h.
70784
70785         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
70786         (make_dir_parents): Treat ENOSYS like EEXIST.
70787
70788         Improve quality of diagnostics on restore_cwd failure.
70789         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
70790         (make_dir_parents): Last arg is now int * (for errno), not bool *.
70791         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
70792         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
70793         each time through the loop.  Do not diagnose restore_cwd failure;
70794         that is the caller's job (and perhaps the caller does not care).
70795
70796         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
70797         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
70798         If the file already exists but is not a directory, don't bother
70799         to try to make its parents.
70800         Close potential file descriptor leak if we can't chdir("/") (!).
70801         Don't always return true if chdir($PWD) fails; return true only
70802         if the requested action was done successfully (except for the
70803         chdir($PWD)).
70804         Don't log final directory unless we actually made it.
70805         Refactor to avoid duplicate code to fix up permissions.
70806         Don't attempt to fix up parent permissions if chdir($PWD) fails.
70807
70808         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
70809         to make it a bit faster and (I hope) clearer.
70810         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
70811         Fix bug in formats like %2N.
70812
70813         * lib/verify.h: New file.
70814
70815 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
70816
70817         Sync from coreutils.
70818         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
70819
70820 2005-09-22  Jim Meyering  <jim@meyering.net>
70821
70822         Sync from coreutils.
70823
70824         * m4/lstat.m4 (gl_FUNC_LSTAT):
70825         Use AC_LIBSOURCES to require lstat.c and lstat.h.
70826         Remove obsolete comment.
70827         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
70828         * m4/xstrtod.m4: Likewise.
70829
70830         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
70831
70832 2005-09-22  Jim Meyering  <jim@meyering.net>
70833
70834         Sync from coreutils.
70835
70836         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
70837
70838         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
70839         the .tm_year member, since otherwise gcc-4.0 would now warn about
70840         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
70841
70842         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
70843         order to avoid an unsuppressible warning from gcc on 64-bit systems.
70844
70845         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
70846         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
70847         when run in a time zone for which daylight savings time is in effect
70848         for the starting date.
70849
70850         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
70851         stop us from restricting permissions of just-created absolute-named
70852         directories.
70853         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
70854         to restore initial working directory.
70855         * lib/mkdir-p.c (make_dir_parents): New parameter:
70856         different_working_dir, to tell caller if/when we change the working
70857         directory and are unable to return to the initial one.
70858         * lib/mkdir-p.h (make_dir_parents): Update prototype.
70859         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
70860         `return false'.  This fixes a bug introduced on 2004-07-30.
70861
70862         * lib/openat.c (fdopendir): Be sure to close the supplied
70863         file descriptor before returning.  This makes our replacement
70864         implementation a little closer to Solaris's, where fdopendir
70865         ties the file descriptor to the returned DIR* pointer.
70866         * lib/openat.c (unlinkat): New function.
70867         * lib/openat.h (unlinkat): Add prototype.
70868         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
70869         (openat_restore_fail): Rename from openat_restore_die.
70870         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
70871
70872         Provide an alternative to exiting immediately upon save_cwd or
70873         restore_cwd failure.  Now, an application can arrange e.g.,
70874         to perform a longjump in that case.
70875         * lib/openat.c: Include dirname.h.
70876         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
70877         (rpl_openat, fdopendir, fstatat): Call openat_save_die
70878         and openat_restore_die rather than calling error directly.
70879         Don't include "error.h" or "exitfail.h"; they're no longer needed.
70880
70881         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
70882         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
70883         define.
70884
70885         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
70886         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
70887                             int utc, int nanoseconds);
70888         Background:
70889         date should not have to allocate a megabyte of virtual memory to
70890         handle a format argument like +%1048575T.  When implemented with
70891         strftime, it must allocate such a buffer, use strftime to fill it
70892         in, print it, then free it.
70893         With fprintftime, it simply prints everything and exits.
70894         With no need for memory allocation, that's one fewer way to fail.
70895         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
70896         optional field width, not before, so we accept %9:z, not %:9z.
70897         (my_strftime): Be sure to use L_('x') for literals.
70898
70899         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
70900         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
70901         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
70902         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
70903         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
70904         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
70905         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
70906         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
70907         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
70908         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
70909         * lib/xgethostname.c, lib/xreadlink.c:
70910         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
70911
70912         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
70913         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
70914         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
70915         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
70916         and don't include <sys/file.h>).
70917
70918 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
70919
70920         Sync from coreutils.
70921
70922         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
70923         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
70924         [!LDAV_DONE]: Avoid unused variable warning.
70925
70926 2005-09-21  Bruno Haible  <bruno@clisp.org>
70927
70928         * lib/unicodeio.h (unicode_to_mb): New declaration.
70929
70930 2005-09-20  Derek Price  <derek@ximbiot.com>
70931
70932         * lib/getaddrinfo.c: Don't include <netdb.h> included from
70933         getaddrinfo.h.
70934
70935 2005-09-20  Bruno Haible  <bruno@clisp.org>
70936
70937         * gnulib-tool: Remove trailing slashes from the values specified for
70938         --source-base, --m4-base, --tests-base, --aux-dir.
70939         Suggested by Simon Josefsson <jas@extundo.com>.
70940
70941 2005-09-20  Bruno Haible  <bruno@clisp.org>
70942
70943         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
70944         func_modules_to_filelist, func_import, func_create_testdir): Make all
70945         sorting results locale-independent, so that gnulib-cache.m4 doesn't
70946         change when gnulib-tool is invoked in a different locale.
70947
70948 2005-09-19  Simon Josefsson  <jas@extundo.com>
70949
70950         * m4/socklen.m4: Fix typo.
70951
70952 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70953
70954         Use a consistent style for including <config.h>.
70955         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
70956         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
70957         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
70958         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
70959         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
70960         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
70961         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
70962         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
70963         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
70964         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
70965         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
70966         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
70967         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
70968         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
70969         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
70970         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
70971         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
70972         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
70973         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
70974         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
70975         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
70976         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
70977         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
70978         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
70979         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
70980         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
70981         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
70982         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
70983         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
70984         lib/xstrtoumax.c, lib/yesno.c:
70985         Standardize inclusion of config.h.
70986         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
70987         lib/inttostr.h:  Removed inclusion of config.h from header files.
70988         * lib/inttostr.c:  Adjusted in-tree users.
70989         * lib/timespec.h: Remove superfluous warning to include config.h.
70990         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
70991         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
70992         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
70993         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
70994         config.h with HAVE_CONFIG_H.
70995
70996 2005-09-19  Jim Meyering  <jim@meyering.net>
70997
70998         * modules/pathmax (License): Change to LGPL.
70999
71000 2005-09-19  Derek Price  <derek@ximbiot.com>
71001
71002         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
71003
71004 2005-09-19  Bruno Haible  <bruno@clisp.org>
71005
71006         * gnulib-tool (import): Provide default for --tests-base.
71007
71008 2005-09-19  Bruno Haible  <bruno@clisp.org>
71009
71010         * doc/quote.texi: New file, extracted from gnulib.texi.
71011         * doc/ctime.texi: New file, extracted from gnulib.texi.
71012         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
71013         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
71014         * doc/gnulib.texi: Include them.
71015
71016 2005-09-18  Bruno Haible  <bruno@clisp.org>
71017
71018         Portability fix.
71019         * gnulib-tool (func_readlink): New function.
71020         (func_ln_if_changed): Use it.
71021
71022 2005-09-18  Bruno Haible  <bruno@clisp.org>
71023
71024         * gnulib-tool: Support --with-tests also with --import.
71025         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
71026         (func_import): Use variables $testsbase and $inctests. Emit a
71027         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
71028         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
71029         SUBDIRS += $testsdir.
71030         (func_create_testdir): Update.
71031
71032 2005-09-18  Bruno Haible  <bruno@clisp.org>
71033
71034         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
71035         instead of $dry_run.
71036         (func_cp_if_changed, func_mv_if_changed): Remove functions.
71037         (func_ln_if_changed): Don't handle dry-run here.
71038         (func_import): In dry-run mode, detect more precisely which actions
71039         would be performed, and don't use "...ing" verbs.
71040
71041 2005-09-18  Bruno Haible  <bruno@clisp.org>
71042
71043         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
71044         (func_import): Use join on two temporary files instead of three nested
71045         loops, in order to determine which files are new or old.
71046
71047 2005-09-18  Bruno Haible  <bruno@clisp.org>
71048
71049         * gnulib-tool (func_import): Comment out code that spits out the
71050         new files with --dry-run.
71051
71052 2005-09-18  Bruno Haible  <bruno@clisp.org>
71053
71054         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
71055
71056 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
71057
71058         * lib/stat-time.h: New file.
71059         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
71060         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
71061         in a different way.
71062         (timespec_cmp): New function.
71063         * lib/utimecmp.c: Include stat-time.h.
71064         (SYSCALL_RESOLUTION): Depend on whether various struct stat
71065         members exist, not on the obsolescent ST_MTIM_NSEC.
71066         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
71067
71068 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
71069
71070         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
71071
71072 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
71073
71074         * MODULES.html.sh (File system functions): Add stat-time.
71075         * modules/stat-time: New file.
71076         * modules/timespec (Files): Remove m4/st_mtim.m4; this
71077         is now done in a different way, by the stat-time module.
71078         * modules/utimecmp (Depends-on): Add stat-time.
71079
71080 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
71081
71082         * m4/st_mtim.m4: Remove.  Superseded by...
71083         * m4/stat-time.m4: New file.
71084         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
71085         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
71086
71087 2005-09-15  Derek Price  <derek@ximbiot.com>
71088
71089         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
71090
71091 2005-09-15  Derek Price  <derek@ximbiot.com>
71092
71093         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
71094         * lib/regex_internal.c: Ditto, using this...
71095         (__GNUC_PREREQ): ...new macro.
71096         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
71097         using...
71098         (__GNUC_PREREQ): ...this new macro.
71099
71100         * lib/strstr.h: Include string.h. Define strstr as a macro here.
71101
71102 2005-09-15  Derek Price  <derek@ximbiot.com>
71103             Paul Eggert  <eggert@cs.ucla.edu>
71104
71105         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
71106         changes, consolidating in...
71107         * lib/regex_internal.h: ...this file.
71108
71109 2005-09-13  Jim Meyering  <jim@meyering.net>
71110
71111         * lib/canon-host.c: Filter through gnu indent and reword comments
71112         slightly.
71113         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
71114
71115 2005-09-13  Derek Price  <derek@ximbiot.com>
71116
71117         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
71118         failure.
71119         Reported by Jim Meyering  <jim@meyering.net>.
71120
71121 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
71122
71123         * lib/base64.c: Typo.
71124         (base64_encode): Put b64str in initialized data section.
71125
71126 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
71127
71128         Merge glibc and coreutils changes into gnulib, plus a few
71129         extra fixes.
71130         * lib/md5.c: Use #error rather than a string.
71131         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
71132         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
71133         (__attribute__): Define to empty for non recent-GCC.
71134         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
71135         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
71136         Renamed from their non-__ counterparts, with new macros replacing
71137         them if not _LIBC.  Add __THROW attribute.
71138         (rol): Remove.
71139         (struct md5_ctx): Align buffer if using GCC.
71140         * lib/sha1.h (struct sha1_ctx): Likewise.
71141         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
71142         The old name was backwards.
71143         (NOTSWAP): Remove; not used.
71144         (rol): New macro, moved here from md5.h.
71145         (sha1_process_block): Remove a FIXME that doesn't make sense.
71146
71147 2005-09-12  Derek Price  <derek@ximbiot.com>
71148
71149         Return usable errors from canon-host.
71150         * lib/canon-host.h: New file.
71151         * lib/canon-host.c (canon_host): Wrap...
71152         (canon_host_r): ...this new function, which now relies exclusively on
71153         getaddrinfo.
71154         (ch_strerror): New function.
71155         (last_cherror): New global.
71156         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
71157         interface.
71158         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
71159         void *.
71160         (freeaddrinfo): Free ai->ai_canonname when set.
71161
71162 2005-09-12  Derek Price  <derek@ximbiot.com>
71163
71164         Make canon-host require getaddrinfo.
71165         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
71166         AC_LIBSOURCE canon-host.h.  Call...
71167         (gl_PREREQ_CANON_HOST): ...this new function, which requires
71168         gl_GETADDRINFO.
71169         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
71170
71171 2005-09-12  Derek Price  <derek@ximbiot.com>
71172
71173         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
71174         LGPL.
71175         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
71176
71177 2005-09-12  Derek Price  <derek@ximbiot.com>
71178
71179         * lib/gai_strerror.c: Include config.h when available.  Include
71180         getaddrinfo.h before other headers to test interface.
71181         Reported by Larry Jones <lawrence.jones@ugs.com>.
71182
71183 2005-09-12  Derek Price  <derek@ximbiot.com>
71184             Paul Eggert  <eggert@cs.ucla.edu>
71185
71186         * modules/glob (Files): Add glob-libc.h.
71187
71188 2005-09-12  Derek Price  <derek@ximbiot.com>
71189             Paul Eggert  <eggert@cs.ucla.edu>
71190
71191         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
71192         glob_.h, glob-libc.h.
71193         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
71194
71195 2005-09-12  Derek Price  <derek@ximbiot.com>
71196             Paul Eggert  <eggert@cs.ucla.edu>
71197
71198         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
71199         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
71200         protecting things that should be done only in gnulib contexts.
71201         * lib/glob_.h: New file, containing only the glob things needed for
71202         gnulib.
71203         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
71204         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
71205         (glob, globfree, glob_pattern_p): Now defined simply in terms of
71206         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
71207         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
71208         and to respect the namespace rules better.
71209
71210 2005-09-08  Simon Josefsson  <jas@extundo.com>
71211
71212         * modules/socklen: New file.
71213
71214 2005-09-08  Simon Josefsson  <jas@extundo.com>
71215
71216         * m4/socklen.m4: New file.
71217
71218 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
71219
71220         * modules/utimens (Files): Add m4/utimbuf.m4, since
71221         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
71222         Reported by Sergey Poznyakoff.
71223
71224 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
71225
71226         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
71227         definitions, since that's the preferred style in glibc.
71228         Fix a minor spacing issue, and update copyright notice to match
71229         glibc's.
71230
71231 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
71232
71233         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
71234
71235 2005-09-06  Simon Josefsson  <jas@extundo.com>
71236
71237         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
71238         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
71239
71240 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
71241
71242         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
71243         warning.
71244
71245 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
71246
71247         * config/srclist.txt: Add glibc bug 1302.
71248
71249 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
71250
71251         Change bitset word type from unsigned int to unsigned long int,
71252         as this has better performance on typical 64-bit hosts.
71253         Port bitset code to hosts with unusual word sizes.
71254         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
71255         (build_collating_symbol):
71256         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
71257         argument is a bitset.  This is merely a style issue, but it makes
71258         it clearer that an entire array is expected.
71259         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
71260         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
71261         Port to the case where bitset_word is not the same as unsigned int.
71262         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
71263         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
71264         Likewise.
71265         * lib/regexec.c (check_dst_limits_calc_pos_1,
71266         check_subexp_matching_top):
71267         (build_trtable, group_nodes_into_DFAstates):
71268         Likewise.
71269         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
71270         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
71271         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
71272         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
71273         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
71274         * lib/regcomp.c (optimize_subexps, lower_subexp):
71275         Work even if bitset_word has holes in its bitwise representation.
71276         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
71277         * lib/regexec.c (check_dst_limits_calc_pos_1,
71278         check_subexp_matching_top):
71279         Likewise.
71280         * lib/regex_internal.c (re_string_reconstruct):
71281         Don't assume UCHAR_MAX == 255.
71282         * lib/regex_internal.h (bitset_set_all): Likewise.
71283         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
71284         All uses changed.
71285         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
71286         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
71287         All uses changed.
71288         (BITSET_WORD_MAX): New macro.
71289         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
71290         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
71291         (bitset_empty, bitset_copy):
71292         Prefer sizeof (bitset) to multiplying it out ourselves.
71293         (bitset_not_merge): Remove; unused.
71294         (bitset_contain): Return bool, not unsigned int with one bit on.
71295         All callers changed.
71296         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
71297         alignment than re_node_set; do this by defining a new internal
71298         type struct dests_alloc and using it to allocate memory.
71299
71300 2005-09-05  Bruno Haible  <bruno@clisp.org>
71301
71302         * gnulib-tool (func_import): Fix comparison in handling of symbolic
71303         links.
71304
71305 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
71306
71307         * modules/size_max (Makefile.am): Add size_max.h
71308
71309 2005-09-04  Derek Price  <derek@ximbiot.com>
71310
71311         * gnulib-tool (func_import): Fix reversed $symbolic logic.
71312
71313 2005-09-03  Simon Josefsson  <jas@extundo.com>
71314
71315         * gnulib-tool: Fix typo.
71316
71317 2005-09-03  Simon Josefsson  <jas@extundo.com>
71318
71319         * config/srclist.txt: Add glibc bug 1293.
71320
71321 2005-09-03  Derek Price  <derek@ximbiot.com>
71322
71323         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
71324         From Larry Jones <lawrence.jones@ugs.com>.
71325
71326 2005-09-02  Simon Josefsson  <jas@extundo.com>
71327
71328         * modules/socklen: New file.
71329
71330 2005-09-02  Simon Josefsson  <jas@extundo.com>
71331
71332         * modules/havelib: New module.
71333
71334         * modules/gettext, modules/iconv, modules/lock, modules/readline:
71335         Use havelib.
71336
71337 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
71338
71339         Check for arithmetic overflow when calculating sizes, to prevent
71340         some buffer-overflow issues.  These patches are conservative, in the
71341         sense that when I couldn't determine whether an overflow was possible,
71342         I inserted a run-time check.
71343         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
71344         macros.
71345         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
71346         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
71347         (re_xnrealloc, re_x2nrealloc): New inline functions.
71348         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
71349         parse_bracket_exp):
71350         (build_equiv_class, build_charclass): Check for arithmetic overflow
71351         in size expression calculations.
71352         * lib/regex_internal.c (re_string_realloc_buffers):
71353         (build_wcs_upper_buffer, re_node_set_add_intersect):
71354         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
71355         (re_dfa_add_node, register_state): Likewise.
71356         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
71357         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
71358         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
71359         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
71360
71361 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
71362
71363         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
71364         m4/ulonglong.m4.  Problem reported by Martin Lambers.
71365
71366 2005-09-02  Bruno Haible  <bruno@clisp.org>
71367
71368         Support for lib vs. lib64 distinction on biarch platforms.
71369         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
71370         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
71371         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
71372
71373 2005-09-02  Bruno Haible  <bruno@clisp.org>
71374
71375         * gnulib-tool (import): In the other first-use case, provide defaults
71376         as well.
71377
71378 2005-09-02  Bruno Haible  <bruno@clisp.org>
71379
71380         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
71381         patches not yet found in the latest gettext release.
71382
71383 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
71384
71385         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
71386         to avoid a collision with bits/local_lim.h in glibc.
71387         All uses changed.  Problem reported by Dmitry V. Levin in
71388         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
71389
71390         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
71391         bugs in int versus size_t comparisons.
71392         (re_string_context_at): Fix bug where the code assumed that
71393         Idx is signed.
71394
71395         Use bool where appropriate.
71396         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
71397         All callers changed.
71398         (calc_eclosure_iter): Likewise, for ROOT arg.
71399         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
71400         (build_charclass_op): Likewise, for NON_MATCH arg.
71401         * lib/regex_internal.c (re_string_allocate, re_string_construct):
71402         (re_string_construct_common): Likewise, for ICASE arg.
71403         * lib/regexec.c (re_search_2_stub, re_search_stub):
71404         Likewise, for RET_LEN arg.
71405         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
71406         (set_regs): Likewise, for FL_BACKTRACK arg.
71407         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
71408         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
71409         (calc_eclosure_iter, parse_bracket_exp):
71410         Use bool for internal variables that are booleans.
71411         * lib/regexec.c (re_search_internal, check_matching,
71412         proceed_next_node):
71413         (set_regs, build_sifted_states, sift_states_bkref):
71414         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
71415         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
71416         (find_collation_sequence_value):
71417         Likewise.
71418         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
71419         (re_node_set_compare):
71420         Return bool, not int. All callers changed.
71421         * lib/regexec.c (check_halt_node_context, check_dst_limits):
71422         (build_trtable, check_node_accept): Likewise.
71423         * lib/regex_internal.h: Include stdbool.h.
71424
71425         Fix bugs uncovered when converting to bool.
71426         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
71427         failure instead of charging ahead blindly.
71428         * lib/regex_internal.c (register_state): Likewise.
71429         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
71430         for freeing internal storage.
71431         (group_nodes_into_DFA_states): Use unsigned int, not int, for
71432         bitset pieces used as boolean, to avoid undefined behavior
71433         on hosts that do int overflow checking.
71434
71435 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
71436
71437         * config/srclist.txt: Add glibc bugs 1285-1287.
71438
71439 2005-09-01  Jim Meyering  <jim@meyering.net>
71440
71441         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
71442         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
71443         Require gl_STAT_MACROS, too.
71444
71445 2005-09-01  Bruno Haible  <bruno@clisp.org>
71446
71447         * gnulib-tool (import): In the first-use case, provide defaults.
71448
71449 2005-09-01  Bruno Haible  <bruno@clisp.org>
71450
71451         * gnulib-tool (func_import): Remove the .tmp files.
71452
71453 2005-09-01  Bruno Haible  <bruno@clisp.org>
71454
71455         * gnulib-tool (func_import): Fix handling of symbolic links.
71456
71457 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71458
71459         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
71460         old glibc regex code mishandles strings longer than 2**31 bytes.
71461         This patch fixes this when the regex code is used in gnulib
71462         (i.e., outside glibc).
71463
71464         This patch should not affect the use of the regex code inside
71465         glibc.  No doubt this problem also needs to be handled for glibc
71466         as well, but the result will be an incompatible change to the
71467         glibc ABI, and the old ABI will have to be supported too.  That
71468         can be the the subject for another patch.
71469
71470         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
71471         governing whether the rest of this patch is active.  By default,
71472         the macro is disabled and the patch has no effect.
71473         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
71474         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
71475         (struct re_pattern_buffer, re_search, re_search_2, re_match):
71476         (re_match_2, re_set_registers): Use the new types.
71477         * lib/regex_internal.h (Idx, re_hashval_t): New types.
71478         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
71479         New macros.
71480         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
71481         (re_string_context_at, bin_tree_t, re_dfastate_t):
71482         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
71483         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
71484         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
71485         (re_string_char_size_at, re_string_wchar_at):
71486         (re_string_elem_size_at):
71487         Use the new types and macros to port to 64-bit hosts.
71488         Use unsigned types for internal values, so that the code
71489         mostly works even for arrays larger than SSIZE_MAX.
71490         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
71491         (search_duplicated_node, calc_eclosure_iter, fetch_number):
71492         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
71493         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
71494         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
71495         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
71496         (calc_inveclosure, parse_dup_op, build_range_exp):
71497         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
71498         (fetch_number, create_token_tree, mark_opt_subexp):
71499         Likewise.
71500         * lib/regex_internal.c (re_string_construct_common,
71501         create_ci_newstate):
71502         (create_cd_newstate, re_string_allocate, re_string_construct):
71503         (re_string_realloc_buffers, build_wcs_upper_buffer):
71504         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
71505         (re_string_reconstruct, re_string_peek_byte_case):
71506         (re_string_fetch_byte_case, re_string_context_at):
71507         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
71508         (re_node_set_init_copy, re_node_set_add_intersect):
71509         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
71510         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
71511         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
71512         (re_acquire_state, re_acquire_state_context, register_state):
71513         Likewise.
71514         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
71515         search_cur_bkref_entry):
71516         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
71517         (re_search_internal, re_search_2_stub, re_search_stub)
71518         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
71519         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
71520         (update_cur_sifted_state, check_dst_limits):
71521         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
71522         (check_subexp_limits, sift_states_bkref, merge_state_array):
71523         (check_subexp_matching_top, get_subexp, get_subexp_sub):
71524         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
71525         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
71526         (expand_bkref_cache, check_node_accept_bytes):
71527         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
71528         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
71529         (acquire_init_state_context, check_halt_node_context):
71530         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
71531         (sift_states_backward, clean_state_log_if_needed):
71532         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
71533         (find_recover_state, transit_state_sb, transit_state_mb):
71534         (transit_state_bkref, build_trtable, match_ctx_clean):
71535         Likewise.
71536         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
71537         to work around an assumption that REG_MISSING is negative.
71538
71539         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
71540         (seek_collating_symbol_entry) [defined _LIBC]:
71541         (lookup_collation_sequence_value) [defined _LIBC]:
71542         (build_range_exp, build_collating_symbol) [defined _LIBC]:
71543         Use prototypes rather than old-style function definitions.
71544         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
71545         (transit_state_sb) [0]:
71546         (find_collation_sequence_value) [defined _LIBC]: Likewise.
71547
71548         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
71549         rm_eo.
71550
71551         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
71552         (optimize_subexps, lower_subexp):
71553         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
71554         since the signed shift might overflow.  Use 1u<<31 instead.
71555         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
71556         Likewise.
71557         * lib/regexec.c (check_dst_limits_calc_pos_1,
71558         check_subexp_matching_top): Likewise.
71559
71560         * lib/regcomp.c (optimize_subexps, lower_subexp):
71561         Use CHAR_BIT rather than 8, for clarity.
71562         * lib/regexec.c (check_dst_limits_calc_pos_1):
71563         (check_subexp_matching_top): Likewise.
71564         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
71565         have to worry about portability issues when shifting it left.
71566         Remove no-longer-needed test for table_size > 0.
71567         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
71568         in a word, as the resulting behavior is undefined.
71569         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
71570         in one case, a <= should have been an <, and in another case the
71571         whole test was missing.
71572         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
71573         the standard name CHAR_BIT.
71574         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
71575         this is not true on one's complement and signed-magnitude hosts.
71576
71577         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
71578         next_last_offset.
71579         (struct re_dfa_t): Remove unused member states_alloc.
71580         * lib/regcomp.c (init_dfa): Don't initialize unused members.
71581
71582 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71583
71584         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
71585         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
71586         and large-file glibc and in 32-bit large-file Solaris.
71587
71588 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71589
71590         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
71591         lengths fit in regoff_t; this isn't true if regoff_t is the same
71592         width as size_t.
71593         * lib/regex.c (re_search_internal): 5th arg is LAST_START
71594         (= START + RANGE) instead of RANGE.  This avoids overflow
71595         problems when regoff_t is the same width as size_t.
71596         All callers changed.
71597         (re_search_2_stub): Check for overflow when adding the
71598         sizes of the two strings.
71599         (re_search_stub): Check for overflow when adding START
71600         to RANGE; if it occurs, substitute the extreme value.
71601
71602 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71603
71604         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
71605
71606 2005-08-31  Jim Meyering  <jim@meyering.net>
71607
71608         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
71609         a pointer-to-const.
71610         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
71611         (register_state): Likewise.
71612         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
71613         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
71614         (group_nodes_into_DFAstates): Likewise.
71615
71616 2005-08-31  Jim Meyering  <jim@meyering.net>
71617
71618         * check-module: Add a FIXME comment.
71619
71620 2005-08-31  Eric Blake  <ebb9@byu.net>
71621
71622         * modules/unistd-safer (Files): Add unistd--.h.
71623         * modules/stdio-safer (Files): Add stdio--.h.
71624
71625 2005-08-31  Derek Price  <derek@ximbiot.com>
71626
71627         * lib/getdelim.c (getdelim): Return EOF on EOF.
71628         Reported by Larry Jones <lawrence.jones@ugs.com>.
71629
71630 2005-08-31  Bruno Haible  <bruno@clisp.org>
71631
71632         Avoid unnecessary diffs in the generated lib/Makefile.am.
71633         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
71634         the generated files.
71635         (func_import): Don't set cmd.
71636
71637 2005-08-31  Bruno Haible  <bruno@clisp.org>
71638
71639         * lib/strstr.c: Include <stddef.h>, for NULL.
71640         * lib/strcasestr.c: Likewise.
71641         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
71642
71643 2005-08-31  Bruno Haible  <bruno@clisp.org>
71644
71645         * gnulib-tool: New option --macro-prefix.
71646         (func_import): Use macro_prefix.
71647         (import): Handle option --macro-prefix.
71648
71649 2005-08-31  Bruno Haible  <bruno@clisp.org>
71650
71651         * gnulib-tool (import): Rename most ac_* variables to cached_*.
71652         Also use new variables cached_lgpl, cached_libtool.
71653
71654 2005-08-31  Bruno Haible  <bruno@clisp.org>
71655
71656         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
71657         always instantiating them.
71658
71659 2005-08-31  Bruno Haible  <bruno@clisp.org>
71660
71661         * gnulib-tool (func_import): Read the previous cached settings
71662         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
71663         earlier added by gnulib but are now dropped. Warn when a gnulib file
71664         overwrites a non-gnulib file.
71665
71666 2005-08-31  Bruno Haible  <bruno@clisp.org>
71667
71668         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
71669         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
71670         projects that don't keep autogenerated files in CVS. Put into
71671         actioncmd only the specified modules, not the transitive closure.
71672
71673 2005-08-31  Bruno Haible  <bruno@clisp.org>
71674
71675         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
71676         Create directories that shall be filled.
71677         (import): Don't look for gl_* macros in configure.ac. Recurse across
71678         all directories containing a gnulib-cache.m4 files, if meaningful.
71679
71680 2005-08-31  Bruno Haible  <bruno@clisp.org>
71681
71682         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
71683         (import): Set seen_libtool when we see gl_LIBTOOL.
71684
71685 2005-08-31  Bruno Haible  <bruno@clisp.org>
71686
71687         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
71688         declaration macro definitions from generated gnulib.m4.
71689
71690 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
71691
71692         * lib/iconvme.h: Add prototype for iconv_alloc.
71693
71694 2005-08-29  Simon Josefsson  <jas@extundo.com>
71695
71696         * lib/iconvme.c: Fix errno.
71697
71698 2005-08-29  Bruno Haible  <bruno@clisp.org>
71699
71700         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
71701         that it works when the directory contains spaces.
71702
71703 2005-08-29  Bruno Haible  <bruno@clisp.org>
71704
71705         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
71706
71707 2005-08-29  Bruno Haible  <bruno@clisp.org>
71708
71709         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
71710         Emit more advice.
71711
71712 2005-08-29  Bruno Haible  <bruno@clisp.org>
71713         and Stepan Kasal  <kasal@ucw.cz>
71714
71715         * check-module: If more parameters are given, check each of them
71716         separately; add more exceptions, as noted by Jim Meyering.
71717         (check_module): New procedure.
71718         (%exempt_header): Now contains all exceptions.
71719
71720 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
71721
71722         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
71723
71724 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
71725
71726         * lib/iconvme.c: Split iconv_string into iconv_alloc.
71727
71728 2005-08-28  Bruno Haible  <bruno@clisp.org>
71729
71730         * m4/gnulib-tool.m4: New file.
71731
71732 2005-08-27  Jim Meyering  <jim@meyering.net>
71733
71734         * modules/unistd-safer (Files): Add pipe-safer.c.
71735         * modules/fcntl-safer (Files): Add creat-safer.c.
71736
71737 2005-08-27  Jim Meyering  <jim@meyering.net>
71738
71739         * m4/stdlib-safer.m4: New file.  From coreutils.
71740         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
71741         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
71742         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
71743         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
71744         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
71745
71746 2005-08-27  Jim Meyering  <jim@meyering.net>
71747
71748         * lib/fopen-safer.c: Merge minor changes from coreutils.
71749         * lib/dup-safer.c: Likewise.
71750         * lib/fd-safer.c: Likewise.
71751
71752         Merge from coreutils.
71753         * lib/stdio--.h: New file.
71754         * lib/stdlib--.h: New file.
71755         * lib/mkstemp-safer.c: New file.
71756
71757         GNU tar needs these.
71758         * lib/pipe-safer.c: New file.
71759         * lib/creat-safer.c: New file.
71760         * lib/fcntl--.h (creat): Define to creat_safer.
71761         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
71762         * lib/unistd--.h (pipe): Define to pipe_safer.
71763         * lib/unistd-safer.h: Declare pipe_safer.
71764
71765 2005-08-26  Simon Josefsson  <jas@extundo.com>
71766
71767         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
71768         Haible <bruno@clisp.org>.
71769
71770 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
71771
71772         * lib/regex_internal.h: Remove all references to
71773         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
71774         or better.
71775         (bitset_not, bitset_merge, bitset_not_merge):
71776         (bitset_mask, re_string_allocate, re_string_construct):
71777         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
71778         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
71779         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
71780         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
71781         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
71782         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
71783         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
71784         (re_acquire_state_context):
71785         Remove unnecessary forward decls.
71786         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
71787         Put __attribute at function definition,
71788         now that the function decl has been removed.
71789         * lib/regex_internal.c (re_string_peek_byte_case):
71790         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
71791         Likewise.
71792
71793 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
71794
71795         * m4/regex.m4: Add AC_PREREQ(2.50).
71796         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
71797
71798 2005-08-25  Simon Josefsson  <jas@extundo.com>
71799
71800         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
71801         __fsetlocking.
71802
71803 2005-08-25  Simon Josefsson  <jas@extundo.com>
71804
71805         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
71806         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
71807         GLIBC specific code.
71808
71809 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71810
71811         Make regex safe for g++.  This fixes one real bug (an "err"
71812         that should have been "*err").  g++ problem reported by
71813         Sam Steingold.
71814         * lib/regex_internal.h (re_calloc): New macro, consistent with
71815         re_malloc etc.  All callers of calloc changed to use re_calloc.
71816         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
71817         not int.  All callers changed.
71818         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
71819         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
71820         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
71821         (find_recover_state): Change "err" to "*err"; this fixes what
71822         appears to be a real bug.
71823         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
71824         versus int.
71825
71826 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71827
71828         * modules/regex (Depends-on): Add malloc, since the code
71829         assumes that !malloc(0) means failure.
71830
71831 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71832
71833         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
71834
71835         alloca modernization/simplification for regex.
71836         * lib/regex.c: Remove portability cruft for alloca.  This no longer
71837         needs to be at the start of the file, and can be moved into
71838         regex_internal.h and simplified.
71839         * lib/regex_internal.h: Include <alloca.h>.
71840         (__libc_use_alloca) [!defined _LIBC]: New macro.
71841         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
71842         now works outside glibc.
71843
71844 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71845
71846         * config/srclist.txt: Add glibc bugs 1241, 1245.
71847
71848 2005-08-25  Jim Meyering  <jim@meyering.net>
71849
71850         * lib/open-safer.c: Include <config.h>.
71851         Otherwise, we'd lose LARGEFILE support in any file using
71852         e.g. "fcntl--.h"
71853
71854 2005-08-25  Bruno Haible  <bruno@clisp.org>
71855
71856         * m4/minmax.m4: Require autoconf 2.52.
71857         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
71858         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
71859         alternatives of translit over the alphabet.
71860         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
71861
71862 2005-08-24  Simon Josefsson  <jas@extundo.com>
71863
71864         * tests/test-getpass.c: New file.
71865
71866 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
71867
71868         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
71869         for GNU regex features.
71870
71871 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
71872
71873         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
71874         * lib/regex.h (regerror): Likewise.
71875
71876         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
71877         requires this.  (The code never needed it.)
71878
71879         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
71880         All uses of recently-renamed identifiers changed to use the new,
71881         POSIX-compliant names.  The code will build and run just fine
71882         without these changes, but it's better to eat our own dog food
71883         and use the standard-conforming names.
71884
71885         * lib/regex.h: Fix a multitude of POSIX name space violations.
71886         These changes have an effect only for programs that define
71887         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
71888         do not change anything for programs compiled in the normal way.
71889         Also, there is no effect on the ABI.
71890
71891         (_REGEX_SOURCE): New macro.
71892         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
71893         defined and _GNU_SOURCE is not; this fixes a name space violation.
71894
71895         Rename the following macros to obey POSIX requirements.
71896         The old names are still visible as macros if _REGEX_SOURCE is defined.
71897         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
71898         RE_BACKSLASH_ESCAPE_IN_LISTS.
71899         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
71900         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
71901         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
71902         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
71903         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
71904         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
71905         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
71906         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
71907         (REG_INTERVALS): renamed from RE_INTERVALS.
71908         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
71909         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
71910         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
71911         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
71912         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
71913         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
71914         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
71915         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
71916         RE_UNMATCHED_RIGHT_PAREN_ORD.
71917         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
71918         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
71919         (REG_DEBUG): renamed from RE_DEBUG.
71920         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
71921         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
71922         unusual, since we can't clash with the POSIX REG_ICASE.
71923         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
71924         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
71925         (REG_NO_SUB): renamed from RE_NO_SUB.
71926         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
71927         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
71928         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
71929         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
71930         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
71931         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
71932         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
71933         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
71934         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
71935         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
71936         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
71937         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
71938         RE_SYNTAX_POSIX_MINIMAL_BASIC.
71939         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
71940         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
71941         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
71942         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
71943         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
71944         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
71945         (REG_FIXED): Renamed from REGS_FIXED.
71946         (REG_NREGS): Renamed from RE_NREGS.
71947
71948         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
71949         of other REG_* macros, since POSIX says the user is allowed to
71950         #undef these macros selectively.
71951
71952         (reg_errcode_t): Update comment stating what other tables need
71953         to be consistent.
71954
71955         Rename the following enum values to obey POSIX requirements.
71956         The old names are still visible as macros.
71957         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
71958         is not defined, since GNU is supposed to be a superset of POSIX as
71959         much as possible, and since we want reg_errcode_t to be a signed
71960         type for implementation consistency.
71961         (_REG_NOERROR): Renamed from REG_NOERROR.
71962         (_REG_NOMATCH): Renamed from REG_NOMATCH.
71963         (_REG_BADPAT): Renamed from REG_BADPAT.
71964         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
71965         (_REG_ECTYPE): Renamed from REG_ECTYPE.
71966         (_REG_EESCAPE): Renamed from REG_EESCAPE.
71967         (_REG_ESUBREG): Renamed from REG_ESUBREG.
71968         (_REG_EBRACK): Renamed from REG_EBRACK.
71969         (_REG_EPAREN): Renamed from REG_EPAREN.
71970         (_REG_EBRACE): Renamed from REG_EBRACE.
71971         (_REG_BADBR): Renamed from REG_BADBR.
71972         (_REG_ERANGE): Renamed from REG_ERANGE.
71973         (_REG_ESPACE): Renamed from REG_ESPACE.
71974         (_REG_BADRPT): Renamed from REG_BADRPT.
71975         (_REG_EEND): Renamed from REG_EEND.
71976         (_REG_ESIZE): Renamed from REG_ESIZE.
71977         (_REG_ERPAREN): Renamed from REG_ERPAREN.
71978         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
71979         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
71980         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
71981         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
71982
71983         (_REG_RE_NAME, _REG_RM_NAME): New macros.
71984         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
71985         changed.  But support the old name if the new one is not defined
71986         and if _REGEX_SOURCE.
71987
71988         Change the following member names in struct re_pattern_buffer.
71989         The old names are still supported if !_REGEX_SOURCE.
71990         The new names are always supported, regardless of _REGEX_SOURCE.
71991         (re_buffer): Renamed from buffer.
71992         (re_allocated): Renamed from allocated.
71993         (re_used): Renamed from used.
71994         (re_syntax): Renamed from syntax.
71995         (re_fastmap): Renamed from fastmap.
71996         (re_translate): Renamed from translate.
71997         (re_can_be_null): Renamed from can_be_null.
71998         (re_regs_allocated): Renamed from regs_allocated.
71999         (re_fastmap_accurate): Renamed from fastmap_accurate.
72000         (re_no_sub): Renamed from no_sub.
72001         (re_not_bol): Renamed from not_bol.
72002         (re_not_eol): Renamed from not_eol.
72003         (re_newline_anchor): Renamed from newline_anchor.
72004
72005         Change the following member names in struct re_registers.
72006         The old names are still supported if !_REGEX_SOURCE.
72007         The new names are always supported, regardless of _REGEX_SOURCE.
72008         (rm_num_regs): Renamed from num_regs.
72009         (rm_start): Renamed from start.
72010         (rm_end): Renamed from end.
72011
72012         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
72013         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
72014         Prepend __ to parameter names.
72015
72016         Undo yesterday's changes.
72017
72018 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
72019
72020         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
72021         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
72022         lib/regex.c.
72023
72024 2005-08-24  Jim Meyering  <jim@meyering.net>
72025
72026         Sync from coreutils.
72027         * m4/fcntl-safer.m4: New file.
72028
72029         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
72030         and object files for this module.
72031
72032 2005-08-24  Jim Meyering  <jim@meyering.net>
72033
72034         Sync from coreutils.
72035         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
72036
72037 2005-08-24  Jim Meyering  <jim@meyering.net>
72038
72039         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
72040         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
72041
72042 2005-08-24  Jim Meyering  <jim@meyering.net>
72043
72044         * modules/fcntl-safer: New module.
72045         * modules/fts (Depends-on): Add fcntl-safer.
72046         * MODULES.html.sh (File descriptor based Input/Output):
72047         Add fcntl-safer.
72048
72049 2005-08-24  Bruno Haible  <bruno@clisp.org>
72050
72051         Support for unit test modules.
72052         * modules/README: Mention tests modules.
72053         * modules/TEMPLATE-TESTS: New file.
72054         * gnulib-tool: New options --extract-tests-module, --with-tests and
72055         --tests-base (unused for the moment).
72056         (testsbase, inctests): New variables.
72057         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
72058         (func_verify_module): Exclude TEMPLATE-TESTS.
72059         (func_verify_nontests_module, func_verify_tests_module): New functions.
72060         (func_get_dependencies): Add implicit dependency for tests modules.
72061         (func_get_tests_module): New function.
72062         (func_modules_transitive_closure): When --with-tests was specified,
72063         include the unit tests as well, unless explicitly avoided.
72064         (func_emit_lib_Makefile_am): Ignore the tests modules here.
72065         (func_emit_tests_Makefile_am): New function.
72066         (func_create_testdir): When --with-tests was specified, emit a
72067         tests/ directory.
72068         * MODULES.html.sh (Future developments): Update.
72069
72070 2005-08-24  Bruno Haible  <bruno@clisp.org>
72071
72072         * modules/tls-tests: New file.
72073         * tests/test-tls.c: New file, from GNU gettext.
72074
72075 2005-08-24  Bruno Haible  <bruno@clisp.org>
72076
72077         * modules/lock-tests: New file.
72078         * tests/test-lock.c: New file, from GNU gettext.
72079
72080 2005-08-24  Bruno Haible  <bruno@clisp.org>
72081
72082         * lib/lock.h: Add multiple inclusion guard.
72083         * lib/tls.h: Add multiple inclusion guard.
72084
72085 2005-08-24  Bruno Haible  <bruno@clisp.org>
72086
72087         * gnulib-tool: Add support for the --aux-dir option to
72088         --create-testdir, --create-megatestdir, --test, --megatest.
72089         (func_create_testdir, func_create_megatestdir): Optionally emit a
72090         AC_CONFIG_AUX_DIR directive.
72091         (create-testdir, create-megatestdir, test, megatest): Provide a
72092         default value for $auxdir.
72093
72094 2005-08-24  Bruno Haible  <bruno@clisp.org>
72095
72096         * gnulib-tool (import): Use compound statement instead of subshell
72097         where possible.
72098
72099 2005-08-24  Bruno Haible  <bruno@clisp.org>
72100
72101         * gnulib-tool (import): Change --aux-dir default to "build-aux".
72102
72103 2005-08-24  Bruno Haible  <bruno@clisp.org>
72104
72105         * gnulib-tool (func_version): Update.
72106
72107 2005-08-24  Bruno Haible  <bruno@clisp.org>
72108
72109         * gnulib-tool (func_import, func_create_testdir,
72110         func_create_megatestdir): Quote all autoconf macro arguments.
72111
72112 2005-08-24  Bruno Haible  <bruno@clisp.org>
72113
72114         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
72115         option --force, because --force causes the aclocal.m4 of each
72116         subdirectory to be newer than the corresponding config.h.in.
72117
72118 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
72119
72120         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
72121         All contents moved to gl_REGEX.
72122         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
72123         assume that it does.
72124
72125 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
72126
72127         * lib/regex.h (REG_NOSYS)
72128         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
72129         Define, since POSIX requires it as of 2001.
72130         (_REG_ENOSYS)
72131         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
72132         New private symbol, used to keep the enum signed in all cases.
72133         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
72134         Youngman in
72135         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
72136
72137         * lib/regex_internal.c (re_string_skip_chars, register_state):
72138         (calc_state_hash):
72139         Remove forward decls; no longer needed now that we use prototypes.
72140         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
72141         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
72142         (clean_state_log_if_needed): Likewise.
72143
72144 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
72145
72146         * config/srclist.txt: Add glibc bugs 1231-1233.
72147
72148 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
72149
72150         Fix problems reported by Sam Steingold in
72151         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
72152         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
72153         assumed that reg_errcode_t is a signed type, which is not
72154         necessarily true if _XOPEN_SOURCE is not defined.
72155         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
72156         since some compilers warn about it otherwise.
72157
72158 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
72159
72160         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
72161         (init_word_char, create_initial_state, duplicate_node_closure):
72162         (fetch_token, peek_token_bracket, build_range_exp):
72163         (build_collating_symbol): Remove forward decls; no longer needed
72164         now that we use prototypes.
72165
72166         * lib/regcomp.c:
72167         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
72168         (re_compile_fastmap_iter, regcomp, regerror, regfree):
72169         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
72170         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
72171         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
72172         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
72173         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
72174         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
72175         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
72176         (build_range_exp, build_collating_symbol, parse_bracket_exp):
72177         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
72178         (build_charclass, build_charclass_op, fetch_number, create_tree):
72179         (create_token_tree, mark_opt_subexp, duplicate_tree):
72180         Use prototypes rather than old-style definitions.
72181
72182         * lib/regex_internal.c:
72183         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
72184         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
72185         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
72186         (re_string_reconstruct, re_string_peek_byte_case):
72187         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
72188         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
72189         (re_node_set_init_copy, re_node_set_add_intersect):
72190         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
72191         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
72192         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
72193         (re_acquire_state, re_acquire_state_context, register_state):
72194         (create_ci_newstate, create_cd_newstate, free_state):
72195         Likewise.
72196         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
72197         re_search_2):
72198         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
72199         (re_search_internal, prune_impossible_nodes):
72200         (acquire_init_state_context, check_matching, static):
72201         (check_halt_node_context, check_halt_state_context, proceed_next_node):
72202         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
72203         (update_regs, sift_states_backward, build_sifted_states):
72204         (clean_state_log_if_needed, merge_state_array):
72205         (update_cur_sifted_state, add_epsilon_src_nodes):
72206         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
72207         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
72208         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
72209         (find_recover_state, check_subexp_matching_top, transit_state_mb):
72210         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
72211         (check_arrival, check_arrival_add_next_nodes):
72212         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
72213         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
72214         (check_node_accept_bytes, check_node_accept, extend_buffers):
72215         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
72216         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
72217         (sift_ctx_init):
72218         Likewise.
72219
72220         * lib/regex_internal.h:
72221         (re_string_allocate, re_string_construct, re_string_reconstruct):
72222         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
72223         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
72224         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
72225         (re_string_context_at, re_string_peek_byte_case):
72226         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
72227         is defined, since we now use prototypes always.
72228
72229         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
72230         C89 or better.  All uses removed.
72231
72232 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
72233
72234         * config/srclist.txt: Add glibc bugs 1220-1227.
72235
72236 2005-08-20  Jim Meyering  <jim@meyering.net>
72237
72238         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
72239         of unused local, dfa.
72240
72241 2005-08-20  Bruno Haible  <bruno@clisp.org>
72242
72243         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
72244
72245 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72246
72247         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
72248         (re_node_set_insert_last, re_dfa_add_node):
72249         Rename local variables to avoid GCC shadowing warnings.
72250
72251 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72252
72253         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
72254         [defined lint]: Suppress bogus uninitialized-variable warnings.
72255
72256         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
72257         and let the caller return REG_ESPACE if out of space.  This
72258         removes an uninitialied-variable warning with GCC 4.0.1, and also
72259         avoids taking the address of a local variable.  All callers
72260         changed.
72261
72262 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72263
72264         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
72265         $LIBCSRC/posix/regexec.c.
72266         Add glibc bug 1217 for regcomp.c.
72267
72268 2005-08-19  Jim Meyering  <jim@meyering.net>
72269
72270         * lib/regexec.c (proceed_next_node): Redo local variables to
72271         avoid GCC shadowing warnings.
72272
72273 2005-08-18  Bruno Haible  <bruno@clisp.org>
72274
72275         * lib/strstr.c (strstr): Fix return value in multibyte case.
72276         * lib/strcasestr.c (strcasestr): Likewise.
72277
72278 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
72279
72280         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
72281
72282 2005-08-17  Jim Meyering  <jim@meyering.net>
72283
72284         Make the %s format (seconds since the epoch) work for a negative
72285         number and when used with a zero-padded field width, e.g. %015s.
72286
72287         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
72288         label so that it precedes the code to set `digits'.  Otherwise,
72289         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
72290         print `00-22'.  Now, it prints `-0022', as it should.
72291
72292 2005-08-17  Bruno Haible  <bruno@clisp.org>
72293
72294         * modules/strstr (Files): Add m4/mbrtowc.m4.
72295         (Depends-on): Add mbuiter.
72296
72297 2005-08-17  Bruno Haible  <bruno@clisp.org>
72298
72299         * modules/strcasestr: New file.
72300         * MODULES.html.sh (String handling, based on ANSI C 89): Add
72301         strcasestr.
72302
72303 2005-08-17  Bruno Haible  <bruno@clisp.org>
72304
72305         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
72306
72307 2005-08-17  Bruno Haible  <bruno@clisp.org>
72308
72309         * modules/mbuiter: New file.
72310         * MODULES.html.sh (Extended multibyte and wide character utilities):
72311         Add mbuiter.
72312
72313 2005-08-17  Bruno Haible  <bruno@clisp.org>
72314
72315         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
72316         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
72317
72318 2005-08-17  Bruno Haible  <bruno@clisp.org>
72319
72320         * m4/strcasestr.m4: New file.
72321
72322 2005-08-17  Bruno Haible  <bruno@clisp.org>
72323
72324         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
72325         * lib/strstr.c: Completely rewritten, with multibyte locale support.
72326
72327 2005-08-17  Bruno Haible  <bruno@clisp.org>
72328
72329         * lib/strcasestr.h: New file.
72330         * lib/strcasestr.c: New file.
72331
72332 2005-08-17  Bruno Haible  <bruno@clisp.org>
72333
72334         * lib/strcasecmp.c: Use mbuiter.h.
72335
72336 2005-08-17  Bruno Haible  <bruno@clisp.org>
72337
72338         * lib/mbuiter.h: New file.
72339
72340 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
72341
72342         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
72343         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
72344         and gl_GETOPT are both invoked via different paths (as happens
72345         with GNU tar CVS because it uses both argp and getopt), the former
72346         wins.
72347
72348 2005-08-16  Bruno Haible  <bruno@clisp.org>
72349
72350         * modules/tls: New file.
72351         * MODULES.html.sh (Multithreading): Add tls.
72352
72353 2005-08-16  Bruno Haible  <bruno@clisp.org>
72354
72355         * modules/strnlen1: New file.
72356         * MODULES.html.sh (String handling): Add strnlen1.
72357
72358 2005-08-16  Bruno Haible  <bruno@clisp.org>
72359
72360         * modules/strcase (Files): Add m4/mbrtowc.m4.
72361         (Depends-on): Add strnlen1, mbchar.
72362
72363 2005-08-16  Bruno Haible  <bruno@clisp.org>
72364
72365         * modules/mbiter: New file.
72366         * MODULES.html.sh (Extended multibyte and wide character utilities):
72367         Add mbiter.
72368
72369 2005-08-16  Bruno Haible  <bruno@clisp.org>
72370
72371         * modules/mbfile: New file.
72372         * MODULES.html.sh (Extended multibyte and wide character utilities):
72373         Add mbfile.
72374
72375 2005-08-16  Bruno Haible  <bruno@clisp.org>
72376
72377         * modules/mbchar: New file.
72378         * MODULES.html.sh (Extended multibyte and wide character utilities):
72379         New section.
72380
72381 2005-08-16  Bruno Haible  <bruno@clisp.org>
72382
72383         * m4/tls.m4: New file, from GNU gettext.
72384
72385 2005-08-16  Bruno Haible  <bruno@clisp.org>
72386
72387         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
72388         always.
72389         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
72390
72391 2005-08-16  Bruno Haible  <bruno@clisp.org>
72392
72393         * m4/mbiter.m4: New file.
72394
72395 2005-08-16  Bruno Haible  <bruno@clisp.org>
72396
72397         * m4/mbfile.m4: New file.
72398
72399 2005-08-16  Bruno Haible  <bruno@clisp.org>
72400
72401         * m4/mbchar.m4: New file.
72402
72403 2005-08-16  Bruno Haible  <bruno@clisp.org>
72404
72405         * lib/tls.h: New file, from GNU gettext.
72406         * lib/tls.c: New file, from GNU gettext.
72407
72408 2005-08-16  Bruno Haible  <bruno@clisp.org>
72409
72410         * lib/strnlen1.h: New file.
72411         * lib/strnlen1.c: New file.
72412
72413 2005-08-16  Bruno Haible  <bruno@clisp.org>
72414
72415         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
72416         (mbi_init): Update.
72417         (mbi_avail, mbi_advance): Let the iteration end before the terminating
72418         NUL byte, not after it.
72419
72420 2005-08-16  Bruno Haible  <bruno@clisp.org>
72421
72422         * lib/strcase.h (strcasecmp): Add note in comments.
72423         * lib/strncasecmp.c: Use code from strcasecmp.c.
72424         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
72425         (strcasecmp): Work correctly in multibyte locales.
72426
72427 2005-08-16  Bruno Haible  <bruno@clisp.org>
72428
72429         * lib/mbiter.h: New file.
72430
72431 2005-08-16  Bruno Haible  <bruno@clisp.org>
72432
72433         * lib/mbfile.h: New file.
72434
72435 2005-08-16  Bruno Haible  <bruno@clisp.org>
72436
72437         * lib/mbchar.h: New file.
72438         * lib/mbchar.c: New file.
72439
72440 2005-08-16  Bruno Haible  <bruno@clisp.org>
72441
72442         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
72443         the valid ones. Makes the comparison operations transitive:
72444         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
72445         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
72446
72447 2005-08-15  Simon Josefsson  <jas@extundo.com>
72448
72449         * modules/ssize_t (License): Change to 'unlimited'.
72450
72451         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
72452
72453 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
72454
72455         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
72456         Add comments for each pending glibc patch.
72457
72458 2005-08-15  Bruno Haible  <bruno@clisp.org>
72459
72460         * lib/regex.h (__restrict_arr): Don't define to __restrict if
72461         __cplusplus is defined.
72462
72463 2005-08-14  Jim Meyering  <jim@meyering.net>
72464
72465         Sync from coreutils.
72466
72467         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
72468         Use the hash-table-based cycle-detection code not just when
72469         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
72470         Reported by James Youngman in
72471         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
72472         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
72473         FTS_TIGHT_CYCLE_CHECK.
72474         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
72475         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
72476         once again.
72477         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
72478         * lib/fts.c (fd_safer): Remove decl.
72479         Include fcntl--.h rather than unistd-safer.h
72480         (fts_safe_changedir): Don't call fd_safer; no longer needed
72481         now that we include fcntl--.h.
72482
72483 2005-08-12  Simon Josefsson  <jas@extundo.com>
72484
72485         * modules/getndelim2: Use ssize_t module.
72486         * modules/getnline: Likewise.
72487         * modules/safe-read: Likewise.
72488         * modules/xreadlink: Likewise.
72489
72490         * modules/ssize_t: New file.
72491
72492 2005-08-12  Simon Josefsson  <jas@extundo.com>
72493
72494         * m4/readline.m4: Look for termcap, curses or ncurses if required.
72495
72496 2005-08-12  Simon Josefsson  <jas@extundo.com>
72497
72498         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72499         ssize_t.
72500
72501 2005-08-12  Simon Josefsson  <jas@extundo.com>
72502
72503         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
72504         readline, getdelim and check_version.
72505         (Support for systems lacking ISO C 99: Sizes of integer types):
72506         Add size_max.
72507
72508 2005-08-12  Bruno Haible  <bruno@clisp.org>
72509
72510         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
72511
72512 2005-08-11  Simon Josefsson  <jas@extundo.com>
72513
72514         * modules/readline: New file.
72515
72516         * modules/strnlen (Files): Add strnlen.h.
72517
72518 2005-08-11  Simon Josefsson  <jas@extundo.com>
72519
72520         * m4/readline.m4: New file.
72521
72522 2005-08-11  Simon Josefsson  <jas@extundo.com>
72523
72524         * lib/readline.h, readline.c: New file.
72525
72526 2005-08-11  Simon Josefsson  <jas@extundo.com>
72527
72528         * doc/gnulib.texi (Initial import, Finishing touches): Mention
72529         gl_AVOID.
72530
72531 2005-08-11  Bruno Haible  <bruno@clisp.org>
72532
72533         * lib/strnlen.h (strnlen): Change parameter name to match comment.
72534
72535 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
72536
72537         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
72538
72539 2005-08-10  Simon Josefsson  <jas@extundo.com>
72540
72541         * tests/test-iconvme.c: New file.
72542
72543 2005-08-10  Simon Josefsson  <jas@extundo.com>
72544
72545         * m4/strnlen.m4: New file.
72546
72547         * m4/strndup.m4: Don't check for strnlen declaration, done in
72548         strnlen.m4.
72549
72550 2005-08-10  Simon Josefsson  <jas@extundo.com>
72551
72552         * lib/strndup.c: Use strnlen.h.
72553
72554         * lib/strnlen.h: New file.
72555
72556 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
72557
72558         * README: Typos.
72559
72560 2005-08-02  Simon Josefsson  <jas@extundo.com>
72561
72562         * modules/readline: New file.
72563
72564 2005-08-02  Simon Josefsson  <jas@extundo.com>
72565
72566         * modules/getdelim: New file.
72567
72568         * modules/getline: Rewrite, don't use getndelim2.
72569
72570 2005-08-02  Simon Josefsson  <jas@extundo.com>
72571
72572         * m4/getline.m4: Separate out getdelim stuff into separate module.
72573
72574         * m4/getdelim.m4: New file.
72575
72576 2005-08-02  Simon Josefsson  <jas@extundo.com>
72577
72578         * lib/getline.h, getline.c: Rewrite.
72579
72580         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
72581
72582 2005-07-31  Bruno Haible  <bruno@clisp.org>
72583
72584         * lib/lock.h (gl_lock_initializer): New macro.
72585         (gl_lock_define_initialized): Use it.
72586         (gl_rwlock_initializer): New macro.
72587         (gl_rwlock_define_initialized): Use it.
72588         (gl_recursive_lock_initializer): New macro.
72589         (gl_recursive_lock_define_initialized): Use it.
72590
72591 2005-07-30  Karl Berry  <karl@gnu.org>
72592
72593         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
72594         Report from Ben Pfaff, regarding getopt.
72595
72596 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
72597
72598         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
72599         normal way.
72600         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
72601         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
72602         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
72603         (gl_GETOPT): Use the new macros.  Most of the implementation
72604         is moved to the new macros.  This is for programs like Emacs
72605         that don't want all the functionality of gl_GETOPT.
72606
72607 2005-07-26  Bruno Haible  <bruno@clisp.org>
72608
72609         * m4/lock.m4: Update from GNU gettext.
72610
72611 2005-07-26  Bruno Haible  <bruno@clisp.org>
72612
72613         * lib/lock.h: Update from GNU gettext.
72614         * lib/lock.c: Update from GNU gettext.
72615
72616 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
72617
72618         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
72619         obsolescent AC_TRY_RUN.  Include the default includes files, for
72620         'exit'.
72621
72622 2005-07-24  Bruno Haible  <bruno@clisp.org>
72623
72624         * modules/visibility: New file.
72625         * MODULES.html.sh (Misc): Add visibility.
72626
72627 2005-07-24  Bruno Haible  <bruno@clisp.org>
72628
72629         * m4/visibility.m4: New file.
72630
72631 2005-07-24  Bruno Haible  <bruno@clisp.org>
72632
72633         * doc/visibility.texi: New file.
72634
72635 2005-07-22  Bruno Haible  <bruno@clisp.org>
72636
72637         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
72638         $(ALLOCA_H), redundant through BUILT_SOURCES.
72639         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
72640         redundant through BUILT_SOURCES.
72641         * modules/byteswap (Makefile.am): Remove explicit dependency on
72642         $(BYTESWAP_H), redundant through BUILT_SOURCES.
72643         * modules/fnmatch (Makefile.am): Remove explicit dependency on
72644         $(FNMATCH_H), redundant through BUILT_SOURCES.
72645         * modules/getopt (Makefile.am): Remove explicit dependency on
72646         $(GETOPT_H), redundant through BUILT_SOURCES.
72647         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
72648         redundant through BUILT_SOURCES.
72649         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
72650         redundant through BUILT_SOURCES.
72651         * modules/stdbool (Makefile.am): Remove explicit dependency on
72652         $(STDBOOL_H), redundant through BUILT_SOURCES.
72653         * modules/stdint (Makefile.am): Remove explicit dependency on
72654         $(STDINT_H), redundant through BUILT_SOURCES.
72655         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
72656         Remove explicit dependency on $(SYSEXITS_H).
72657         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
72658
72659 2005-07-18  Simon Josefsson  <jas@extundo.com>
72660
72661         * lib/check-version.c (check_version): Accept identical versions too.
72662
72663 2005-07-18  Bruno Haible  <bruno@clisp.org>
72664
72665         * modules/lock: New file.
72666         * MODULES.html.sh (Multithreading): New section.
72667
72668 2005-07-18  Bruno Haible  <bruno@clisp.org>
72669
72670         * m4/lock.m4: New file, from GNU gettext.
72671
72672 2005-07-18  Bruno Haible  <bruno@clisp.org>
72673
72674         * lib/lock.h: New file, from GNU gettext.
72675         * lib/lock.c: New file, from GNU gettext.
72676
72677 2005-07-18  Bruno Haible  <bruno@clisp.org>
72678
72679         * lib/lock.h (gl_once_t): New type.
72680         (gl_once_define, gl_once): New macros.
72681         * lib/lock.c (fresh_once): New variable.
72682         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
72683         functions.
72684
72685 2005-07-16  Simon Josefsson  <jas@extundo.com>
72686
72687         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
72688         workaround, suggested by Bruno.
72689
72690 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
72691
72692         * modules/xalloc (Depends-on): Add xalloc-die.
72693         * modules/xvasprintf (Depends-on): Add xalloc-die.
72694
72695 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
72696
72697         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
72698         with a minor change.
72699
72700 2005-07-15  Bruno Haible  <bruno@clisp.org>
72701
72702         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
72703         When using lib/poll.c, define poll as rpl_poll.
72704
72705 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
72706
72707         * modules/argp (Depends-on): Remove unlocked-io.
72708
72709 2005-07-14  Derek Price  <derek@ximbiot.com>
72710
72711         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
72712         for glob symlink bug.
72713
72714 2005-07-14  Bruno Haible  <bruno@clisp.org>
72715
72716         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
72717         Instead, test for *_unlocked function declarations directly.
72718
72719 2005-07-11  Simon Josefsson  <jas@extundo.com>
72720
72721         * modules/size_max: New file.
72722
72723         * modules/xsize: Depend on size_max module for size_max.m4.
72724
72725 2005-07-11  Simon Josefsson  <jas@extundo.com>
72726
72727         * lib/size_max.h: New file.
72728
72729 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
72730
72731         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
72732         copyright symbol and the year.
72733         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
72734         (version_etc_va): Use parameterized copyright notice.
72735         Reword to conform to the current GNU coding standards.
72736
72737 2005-07-11  Karl Berry  <karl@gnu.org>
72738
72739         * doc/gnulib.texi (Quoting): new node.
72740         (Initial import): more info, from Patrice.
72741
72742 2005-07-11  Bruno Haible  <bruno@clisp.org>
72743
72744         * gnulib-tool (func_usage): Document option --avoid.
72745         (Command line options): Handle --avoid.
72746         (func_acceptable): New function.
72747         (func_modules_transitive_closure): Use it.
72748
72749 2005-07-11  Bruno Haible  <bruno@clisp.org>
72750
72751         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
72752         Reported by Jim Meyering.
72753
72754 2005-07-10  Bruno Haible  <bruno@clisp.org>
72755
72756         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
72757         Needed when size_t is smaller than 'unsigned int'.
72758         Reported by Paul Eggert.
72759
72760 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
72761
72762         * modules/argp (Depends-on): Add unlocked-io
72763
72764 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
72765
72766         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
72767         block of defines.
72768
72769 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
72770
72771         * config/srclist.txt: Comment out regcomp.c, since we have a porting
72772         fix now.
72773
72774 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
72775         and Paul Eggert  <eggert@cs.ucla.edu>
72776
72777         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
72778         in wint_t, not wchar_t.  Remove now-unnecessary cast.
72779
72780 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
72781
72782         * modules/regex (Files): Add lib/regex_internal.c,
72783         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
72784         (Depends-on): Add extensions.
72785         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
72786
72787 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
72788
72789         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
72790         pathconf.
72791         * m4/same.m4 (gl_SAME): Likewise.
72792         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
72793
72794         * m4/regex.m4: Adjust to new libc regex implementation.
72795         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
72796         all the .c and .h parts of (the new) regex.
72797         Quote the m4 stuff better.
72798         Check for RE_ICASE bug of old gnulib.
72799         Check for REG_STARTEND of recent libc.
72800         Rename local variables from jm_* to gl_*.
72801         Quote operand of "test -f".
72802         Say "recent enough" version of libc, not "version 2".
72803         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
72804         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
72805         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
72806         Remove check for btowc, isascii.
72807         Require AM_LANGINFO_CODESET.
72808
72809 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
72810
72811         * lib/regex.c, regex.h: Sync from libc.
72812         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
72813         * lib/regexec.c:
72814         New files, synced from libc, except that regex_internal.h
72815         currently has a small porting fix.
72816
72817 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
72818
72819         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
72820         regex_internal.c, regexec.c.
72821         Add regex_internal.h too, but as a comment, since the libc version
72822         is currently broken in gnulib mode.
72823
72824 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
72825
72826         Support programs like Emacs that use gnulib but not gettext.
72827         * MODULES.html.sh (Internationalization functions): Add gettext-h.
72828         * modules/gettext-h: New file.
72829         * modules/gettext (Files): Remove lib/gettext.h.
72830         (Depends-on): Add gettext-h.
72831         (Makefile.am): Remove lib_SOURCES.
72832         * modules/argmatch, modules/c-stack, modules/closeout:
72833         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
72834         * modules/execute, modules/file-type, modules/getaddrinfo:
72835         * modules/getopt, modules/human, modules/javacomp:
72836         * modules/javaexec, modules/mkdir-p, modules/obstack:
72837         * modules/openat, modules/pagealign_alloc, modules/pipe:
72838         * modules/quotearg, modules/regex, modules/rpmatch:
72839         * modules/unicodeio, modules/userspec, modules/version-etc:
72840         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
72841         * modules/xsetenv:
72842         Depend on gettext-h, not gettext.
72843
72844 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
72845
72846         * gnulib-tool (func_import): Add support for 'public domain' license.
72847         * modules/alloca, modules/atexit, modules/memmove:
72848         Now public domain, not GPL.
72849         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
72850         * modules/realloc, modules/strerror, modules/strtod:
72851         Now LGPL, not GPL.
72852
72853 2005-07-05  Bruno Haible  <bruno@clisp.org>
72854
72855         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
72856         autoconf CVS. Needed for mingw.
72857
72858 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72859
72860         Remove the dependency of the strftime module on the tzset module.
72861         * modules/strftime (Depends-on): Remove dependency on tzset.
72862
72863 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72864
72865         Remove the dependency of the strftime module on the tzset module.
72866         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
72867         gl_FUNC_TZSET_CLOBBER.
72868
72869 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72870
72871         Remove the dependency of the strftime module on the tzset module.
72872         * lib/strftime.c (my_strftime)
72873         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
72874         Copy the input structure, to work around some of the bug with
72875         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
72876         Solaris releases, you should also use the tzset module, but we won't
72877         require it as a dependency any more since we don't want LGPLed code
72878         to depend on GPLed code.
72879
72880 2005-07-02  Jim Meyering  <jim@meyering.net>
72881
72882         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
72883         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
72884         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
72885         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
72886
72887 2005-07-02  Jim Meyering  <jim@meyering.net>
72888
72889         * lib/backupfile.c (backup_args): Change a `0' to NULL.
72890
72891 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
72892
72893         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
72894         declares only 'struct timespec;' (!).
72895
72896 2005-07-01  Jim Meyering  <jim@meyering.net>
72897
72898         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
72899         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
72900         * lib/save-cwd.c, tempname.c:
72901         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
72902         and don't include <sys/file.h>).
72903
72904 2005-06-29  Jim Meyering  <jim@meyering.net>
72905
72906         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
72907         type name.  Use the variable name instead.
72908         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
72909         Likewise.
72910
72911 2005-06-28  Simon Josefsson  <jas@extundo.com>
72912
72913         * modules/check-version (Files): Add check-version.m4.
72914
72915 2005-06-28  Simon Josefsson  <jas@extundo.com>
72916
72917         * m4/check-version.m4: New file, suggested by Jim Meyering
72918         <jim@meyering.net>.
72919
72920 2005-06-28  Simon Josefsson  <jas@extundo.com>
72921
72922         * lib/check-version.h, lib/check-version.c: New files.
72923
72924 2005-06-28  Simon Josefsson  <jas@extundo.com>
72925
72926         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
72927         collision with global variable.  Better indentation.  Don't
72928         increment buffer pointer beyond buffer end.  Based on comments
72929         from Paul Eggert <eggert@cs.ucla.edu>.
72930
72931         * lib/base64.h: Indent.
72932
72933 2005-06-28  Simon Josefsson  <jas@extundo.com>
72934
72935         * doc/gnulib.texi (Library version handling): New section.
72936
72937 2005-06-28  Jim Meyering  <jim@meyering.net>
72938
72939         * check-module (find_included_lib_files): Hard-code another
72940         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
72941         but modules/fts-lgpl (correctly) does not list those files.
72942
72943         * modules/canonicalize (Files): Add lib/pathmax.h.
72944
72945 2005-06-25  Simon Josefsson  <jas@extundo.com>
72946
72947         * modules/check-version: New file.
72948
72949 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
72950
72951         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
72952         initializer of struct addrinfo, as an indication that we don't
72953         care how many members the structure has.
72954
72955 2005-06-24  Derek Price  <derek@ximbiot.com>
72956         and Bruno Haible  <bruno@clisp.org>
72957
72958         Remove stat module & update lstat.
72959         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
72960         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
72961         * m4/stat.m4: Remove this file.
72962
72963 2005-06-24  Derek Price  <derek@ximbiot.com>
72964         and Bruno Haible  <bruno@clisp.org>
72965
72966         Remove stat module & update lstat.
72967         * lib/stat.c: Remove this file...
72968         (slash_aware_lstat): ...moving this content and its support...
72969         * lib/lstat.c (rpl_lstat): ...into here.
72970         * lib/lstat.h: New file.
72971
72972 2005-06-24  Derek Price  <derek@ximbiot.com>
72973         and Bruno Haible  <bruno@clisp.org>
72974
72975         Remove stat module & update lstat.
72976         * config/srclist.txt (libc sources): Remove stat.
72977
72978 2005-06-24  Derek Price  <derek@ximbiot.com>
72979         and Bruno Haible  <bruno@clisp.org>
72980
72981         Remove stat module & update lstat.
72982         * MODULES.html.sh (stat): Remove.
72983         * MODULES.html: Regenerated.
72984         * modules/lstat (Description): Correct function name.
72985         (Files): Add "lstat.h".
72986         (Depends-on): Remove stat, add xalloc, stat-macros.
72987         * modules/stat: Remove this file.
72988         (Include): Add "lstat.h", remove <sys/stat.h>.
72989
72990 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
72991
72992         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
72993         (ranged_convert): Don't save conversion in a temporary struct.
72994         This causes a warning with GCC 4.0.0, and anyway in the typical
72995         case it's not worth the extra 100 bytes or so of code.
72996         (ranged_convert, __mktime_internal): When calling a function via a
72997         pointer P, use P () rather than (*P) (), as we now assume C89 or
72998         better.
72999
73000 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
73001
73002         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
73003         "who -r" failed to give output.  Problem reported by Tim Waugh.
73004
73005         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
73006         (xcalloc): Use it to avoid needless tests.
73007         Problem reported by Jim Meyering.
73008
73009 2005-06-20  Derek Price  <derek@ximbiot.com>
73010
73011         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
73012         unnecessary for Autoconfs > 2.59c.
73013
73014 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73015
73016         * lib/argp.h (__option_is_short): Check upper limit of
73017         __key. Isprint() requires its argument to have the value
73018         of an unsigned char or EOF.
73019
73020 2005-06-16  Jim Meyering  <jim@meyering.net>
73021
73022         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
73023         when either N or S is zero.
73024
73025 2005-06-16  Derek Price  <derek@ximbiot.com>
73026
73027         * m4/bison.m4: Declare YACC & YFLAGS precious.
73028
73029 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
73030
73031         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
73032         multibyte string or pattern, fall back on unibyte matching.
73033         Problem reported by James Youngman.
73034
73035 2005-06-08  Bruno Haible  <bruno@clisp.org>
73036
73037         * modules/csharpcomp: New file.
73038         * MODULES.html.sh (C#): Add csharpcomp.
73039
73040 2005-06-08  Bruno Haible  <bruno@clisp.org>
73041
73042         * m4/csharpcomp.m4: New file, from GNU gettext.
73043
73044 2005-06-08  Bruno Haible  <bruno@clisp.org>
73045
73046         * lib/csharpcomp.h: New file, from GNU gettext.
73047         * lib/csharpcomp.c: New file, from GNU gettext.
73048         * lib/csharpcomp.sh.in: New file, from GNU gettext.
73049
73050 2005-06-08  Bruno Haible  <bruno@clisp.org>
73051
73052         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
73053         warning on mingw.
73054
73055 2005-06-07  Derek Price  <derek@ximbiot.com>
73056
73057         Sync from CVS.
73058         * lib/glob_.h: Indent nested #ifdef.
73059
73060 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
73061
73062         Sync from coreutils.
73063         Use "file name" when talking about file names, instead of "filename"
73064         or "path", as per the GNU coding standards.
73065         * lib/mkdir-p.c: Renamed from makepath.c.
73066         (make_dir_parents): Renamed from make_path.  All callers changed.
73067         * lib/mkdir-p.h: Likewise.  All includers changed.
73068         * lib/filenamecat.c: Renamed from path-concat.c.
73069         (file_name_concat): Renamed from path_concat.  All callers changed.
73070         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
73071         * lib/filenamecat.h: Likewise.  All includers changed.
73072         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
73073         in comments or local variable names.
73074         * lib/basename.c: Likewise.
73075         * lib/canonicalize.c, canonicalize.h: Likewise.
73076         * lib/dirname.c, dirname.h: Likewise.
73077         * lib/euidaccess.c: Likewise.
73078         * lib/exclude.c: Likewise
73079         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
73080         * lib/fsusage.c, fsuage.h: Likewise.
73081         * lib/fts.c, fts_.h: Likewise.
73082         * lib/getcwd.c: Likewise.
73083         * lib/getloadavg.c: Likewise.
73084         * lib/mkstemp.c: Likewise.
73085         * lib/mountlist.c, mountlist.h: Likewise.
73086         * lib/openat.c, openat.h: Likewise.
73087         * lib/readlink-stub.c: Likewise.
73088         * lib/readutmp.c, readutmp.h: Likewise.
73089         * lib/rename.c: Likewise.
73090         * lib/rmdir.c: Likewise.
73091         * lib/same.c: Likewise.
73092         * lib/savedir.c: Likewise.
73093         * lib/stripslash.c: Likewise.
73094         * lib/tempname.c: Likewise.
73095         * lib/xreadlink.c: Likewise.
73096         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
73097         All uses changed.
73098         * lib/exclude.h: Likewise.
73099
73100         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
73101         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
73102         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
73103         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
73104         * lib/pathmax.h: Include <limits.h> unconditionally, since other
73105         files have been getting away with it for years (MORE/BSD 4.3
73106         is extinct now).
73107         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
73108         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
73109
73110         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
73111         Define to 256, not 255, as per modern POSIX.
73112
73113 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
73114
73115         Sync from coreutils.
73116         Use "file name" when talking about file names, instead of "filename"
73117         or "path", as per the GNU coding standards.
73118         * MODULES.html.sh: mkdir-p renamed from makepath.
73119         filenamecat renamed from path-concat.
73120         * modules/filenamecat: Renamed from modules/path-concat.
73121         (Files): filenamecat.h and filenamecat.c renamed from
73122         path-concat.h and path-concat.c.
73123         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
73124         (Include): filenamecat.h, not path-concat.h.
73125         * modules/mkdir-p: Renamed from modules/makepath.
73126         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
73127         makepath.c.
73128         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
73129         (Include): mkdir-p.h, not makepath.h.
73130
73131 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
73132
73133         Sync from coreutils.
73134         * m4/mkdir-p.m4: Renamed from makepath.m4.
73135         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
73136         Rename files from makepath.c to mkdir-p.c, and from
73137         makepath.h to mkdir-p.h.
73138         * m4/filenamecat.m4: Renamed from path-concat.m4.
73139         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
73140         Rename files from path-concat.c to filenamecat.c,
73141         and from path-concat.h to filenamecat.h.
73142         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
73143         "file name" in local variables or comments.
73144         * m4/rename.m4: Likewise.
73145
73146 2005-06-01  Bruno Haible  <bruno@clisp.org>
73147
73148         * modules/csharpexec: New file.
73149         * MODULES.html.sh (C#): New section.
73150
73151 2005-06-01  Bruno Haible  <bruno@clisp.org>
73152
73153         * m4/csharp.m4: New file, from GNU gettext.
73154         * m4/csharpexec.m4: New file, from GNU gettext.
73155
73156 2005-06-01  Bruno Haible  <bruno@clisp.org>
73157
73158         * lib/csharpexec.h: New file, from GNU gettext.
73159         * lib/csharpexec.c: New file, from GNU gettext.
73160         * lib/csharpexec.sh.in: New file, from GNU gettext.
73161
73162 2005-05-31  Derek Price  <derek@ximbiot.com>
73163             Paul Eggert  <eggert@cs.ucla.edu>
73164
73165         Sync from cvs.
73166         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
73167
73168 2005-05-31  Derek Price  <derek@ximbiot.com>
73169             Paul Eggert  <eggert@cs.ucla.edu>
73170
73171         Sync from cvs.
73172         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
73173
73174 2005-05-29  Derek Price  <derek@ximbiot.com>
73175
73176         * config/srclist.txt (glob_.h, glob.c): Add these files.
73177
73178 2005-05-29  Derek Price  <derek@ximbiot.com>
73179
73180         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
73181         * modules/glob: New file.
73182         * modules/getlogin_r: Add link to POSIX spec in description.
73183
73184 2005-05-29  Derek Price  <derek@ximbiot.com>
73185             Paul Eggert  <eggert@cs.ucla.edu>
73186
73187         * m4/glob.m4: New file.
73188
73189 2005-05-29  Derek Price  <derek@ximbiot.com>
73190             Paul Eggert  <eggert@cs.ucla.edu>
73191
73192         * lib/glob_.h, lib/glob.c: New files.
73193
73194 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
73195
73196         * modules/fts (Files): Remove m4/inttypes-pri.m4.
73197         * modules/fts-lgpl (Depends-on): Remove gettext.
73198
73199 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
73200
73201         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
73202         and don't require gt_INTTYPES_PRI.
73203
73204 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
73205
73206         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
73207
73208         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
73209         the configuration hassle isn't worth it.
73210         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
73211         (LONGEST_MODIFIER, PRIuMAX): Remove.
73212
73213 2005-05-27  Bruno Haible  <bruno@clisp.org>
73214
73215         * lib/getlogin_r.h: Remove second include of <stddef.h>.
73216
73217 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
73218
73219         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
73220         _POSIX_PTHREAD_SEMANTICS for Solaris.
73221
73222 2005-05-25  Derek Price  <derek@ximbiot.com>
73223
73224         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
73225
73226 2005-05-25  Derek Price  <derek@ximbiot.com>
73227             Paul Eggert  <eggert@cs.ucla.edu>
73228
73229         * modules/getlogin_r, m4/getlogin_r.m4: New files.
73230         * lib/getlogin_r.c, getlogin_r.h: New files.
73231
73232 2005-05-25  Bruno Haible  <bruno@clisp.org>
73233             Derek Price  <derek@ximbiot.com>
73234
73235         * lib/getlogin_r.h: Simplify API documentation.
73236
73237 2005-05-23  Derek Price  <derek@ximbiot.com>
73238
73239         * modules/minmax (Files): Add m4/minmax.m4.
73240         (configure.ac): Add gl_MINMAX.
73241
73242 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
73243
73244         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
73245         so that unistd-safer.h (GPL'ed code) need not be included.
73246
73247 2005-05-22  Bruno Haible  <bruno@clisp.org>
73248
73249         * m4/minmax.m4: New file.
73250         Based on a patch by Derek Price <derek@ximbiot.com>.
73251
73252 2005-05-22  Bruno Haible  <bruno@clisp.org>
73253
73254         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
73255         (INT64_MIN): Fix definition.
73256         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
73257
73258         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
73259         NEED_SIGNED_INT_TYPES.
73260
73261         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
73262         HAVE_SYSTEM_INTTYPES.
73263
73264 2005-05-22  Bruno Haible  <bruno@clisp.org>
73265
73266         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
73267         Also include <sys/param.h> if it defines MIN, MAX.
73268         Based on a patch by Derek Price <derek@ximbiot.com>.
73269
73270 2005-05-21  Jim Meyering  <jim@meyering.net>
73271
73272         * modules/fts (Files): Add m4/inttypes-pri.m4.
73273         (Depends-on): Add lstat and remove gettext.  Alphabetize.
73274
73275 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
73276
73277         New fts module.
73278         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
73279         (setup_dir, free_dir): New functions.
73280         (enter_dir, leave_dir): Define trivial
73281         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
73282         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
73283         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
73284         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
73285         Move to fts-cycle.c.
73286         (fts_open): Use setup_dir.
73287         (fts_close): Use free_dir.
73288         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
73289         This adds a label and some gotos, but the alternatives were messier.
73290         Check for memory allocation failure when entering a dir.
73291         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
73292         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
73293         (FTS): New member fts_cycle, that is a union that contains the
73294         old active_dir_ht and cycle_state.  All uses changed to mention
73295         fts_cycle.ht and fts_cycle.state.
73296         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
73297         fts.c, with the following changes:
73298         (setup_dir, free_dir): New functions.
73299         (enter_dir): Now returns bool.  Return true if successful, false
73300         if memory exhausted.  All callers changed.
73301         Do not bother partly cleaning up on
73302         memory allocation failure; that is free_dir's job.
73303         However, free ad if hash_insert fails, to avoid memory leak.
73304         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
73305         fts->fts_options to see which union member to use.
73306
73307 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
73308
73309         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
73310         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
73311
73312 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
73313
73314         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
73315
73316 2005-05-20  Jim Meyering  <jim@meyering.net>
73317
73318         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
73319         Now a macro, to pacify GCC.
73320
73321 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
73322
73323         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
73324         of -1.
73325
73326 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
73327
73328         * lib/chown.c (rpl_chown): Return -1 on failure.
73329
73330 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
73331
73332         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
73333         Don't check for stddef.h.
73334         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
73335         don't use its results.
73336         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
73337         since we include them unconditionally.  Don't require
73338         AM_STDBOOL_H, since stdbool is a prerequisite.
73339         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
73340         since we assume C89 or better.
73341         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
73342         as we don't use their results.
73343         Don't check for fchdir, memmove, memset, strrchr, as we use
73344         them unconditionally.
73345         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
73346         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
73347
73348 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
73349
73350         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
73351         Include <stddef.h> unconditionally, since we assume C89 now.
73352         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
73353         * lib/fts.c: Include fts_.h first, to check interface.
73354         Do not include intprops.h; no longer needed.
73355         Include cycle-check.h and hash.h, since fts_.h no longer does.
73356         Remove unnecessary casts of closedir to void.
73357         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
73358         decide whether to decrement nlinks.
73359         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
73360         (FTS): Use struct hash_table * instead of Hash_table, so that
73361         we no longer need to include hash.h here.
73362
73363 2005-05-18  Jim Meyering  <jim@meyering.net>
73364
73365         * modules/dirfd (License): Change to LGPL.  Most of the code
73366         is already in the public domain.
73367
73368 2005-05-18  Jim Meyering  <jim@meyering.net>
73369
73370         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
73371         Reported by Yoann Vandoorselaere.
73372
73373 2005-05-17  Jim Meyering  <jim@meyering.net>
73374
73375         * m4/fts.m4: New file, from coreutils.
73376
73377 2005-05-17  Jim Meyering  <jim@meyering.net>
73378
73379         * lib/fts.c, lib/fts_.h: New files, from coreutils.
73380
73381 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
73382
73383         Sync from coreutils.
73384         * m4/unlinkdir.m4: New file.
73385
73386 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
73387
73388         Sync from coreutils.
73389         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
73390         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
73391         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
73392         White space changes only.
73393         * lib/makepath.c (make_path): Port to hosts where leading "//" is
73394         special.
73395         * lib/yesno.c: Include getline.h, not ctype.h.
73396         (yesno): Don't remove leading white space; POSIX doesn't allow it.
73397         Use getline to remove arbitrary restriction on response length.
73398
73399 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
73400
73401         * config/srclist-update: Spell out "Street" in FSF postal
73402         mail address; this is the style the FSF seems to prefer.
73403
73404         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
73405         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
73406         this updates FSF postal mail address.
73407
73408         Sync from coreutils.
73409         * modules/unlinkdir: New file.
73410         * modules/yesno (Depends-on): Add getline.
73411         * MODULES.html.sh (File system functions): Add unlinkdir.
73412
73413 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
73414
73415         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
73416         lib/strsep.h:
73417         Change the initial comment to refer to GPL, not LGPL.
73418         gnulib-tool will change it to LGPL as needed.
73419
73420         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
73421         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
73422         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
73423         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
73424         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
73425         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
73426         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
73427         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
73428         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
73429         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
73430         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
73431         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
73432         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
73433         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
73434         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
73435         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
73436         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
73437         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
73438         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
73439         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
73440         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
73441         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
73442         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
73443         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
73444         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
73445         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
73446         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
73447         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
73448         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
73449         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
73450         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
73451         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
73452         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
73453         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
73454         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
73455         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
73456         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
73457         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
73458         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
73459         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
73460         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
73461         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
73462         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
73463         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
73464         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
73465         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
73466         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
73467         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
73468         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
73469         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
73470         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
73471         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
73472         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
73473         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
73474         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
73475         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
73476         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
73477         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
73478         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
73479         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
73480         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
73481         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
73482         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
73483         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
73484         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
73485         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
73486         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
73487         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
73488         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
73489         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
73490         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
73491         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
73492         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
73493         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
73494         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
73495         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
73496         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
73497         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
73498         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
73499         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
73500         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
73501         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
73502         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
73503         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
73504         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
73505         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
73506         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
73507         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
73508         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
73509         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
73510         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
73511         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
73512         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
73513         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
73514         lib/yesno.c, lib/yesno.h:
73515         Update FSF postal mail address.
73516
73517 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
73518
73519         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
73520         tests/test-memmem.c, tests/test-stpncpy.c:
73521         Update FSF postal mail address.
73522
73523 2005-05-13  Bruno Haible  <bruno@clisp.org>
73524
73525         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
73526         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
73527         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
73528         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
73529         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
73530         Add support for 64-bit integers in the MSVC compiler.
73531
73532 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73533
73534         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
73535
73536 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
73537
73538         * gnulib-tool (func_import): Sort and uniquify recommended includes.
73539
73540 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
73541
73542         * doc/getdate.texi (General date syntax): Don't say that date
73543         date --iso-8601=ns generates acceptable dates; it doesn't yet.
73544         Problem reported by Nic Ferrier.
73545
73546 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73547
73548         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
73549         specified in ai_socktype. Fix invalid ai_protocol
73550         check. ai_protocol is usually set to 0 or depending on
73551         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
73552         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
73553         ai_socktype / ai_protocol in the returned addrinfo structure.
73554
73555 2005-05-10  Simon Josefsson  <jas@extundo.com>
73556
73557         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
73558         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
73559
73560 2005-05-10  Karl Berry  <karl@gnu.org>
73561
73562         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
73563         (from http://www.gnu.org/licenses).
73564         * doc/COPYING.LIB: also rename to COPYING.LESSER.
73565         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
73566         fdl.texi suffices.
73567
73568 2005-05-10  Karl Berry  <karl@gnu.org>
73569
73570         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
73571         (COPYING.DOC): remove.
73572
73573         * config/srclist-update: new FSF address.
73574
73575 2005-05-10  Derek Price  <derek@ximbiot.com>
73576
73577         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
73578         possible.
73579
73580 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73581             Bruno Haible  <bruno@clisp.org>
73582
73583         * modules/inet_ntop: New file.
73584         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73585         inet_ntop.
73586
73587 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73588             Bruno Haible  <bruno@clisp.org>
73589
73590         * m4/inet_ntop.m4: New file.
73591
73592 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73593             Bruno Haible  <bruno@clisp.org>
73594
73595         * lib/inet_ntop.h: New file.
73596         * lib/inet_ntop.c: New file, from glibc with modifications.
73597
73598 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
73599
73600         * modules/time_r (License): Change to LGPL.
73601         * modules/extensions (License): Change to LGPL.  Actually,
73602         the license is more permissive than that, but currently gnulib-tool
73603         doesn't know how to handle more-permissive licenses.
73604
73605         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
73606         Problem reported by Dave Love.
73607
73608 2005-05-08  Jim Meyering  <jim@meyering.net>
73609
73610         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
73611         blank.
73612
73613 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
73614
73615         * modules/argmatch (Depends-on): Add stdbool.
73616         * modules/backupfile (Depends-on): Likewise.
73617         * modules/chdir-long (Depends-on): Likewise.
73618         * modules/closeout (Depends-on): Likewise.
73619         * modules/cycle-check (Depends-on): Likewise.
73620         * modules/dirname (Depends-on): Likewise.
73621         * modules/fnmatch (Depends-on): Likewise.
73622         * modules/fsusage (Depends-on): Likewise.
73623         * modules/fwriteerror (Depends-on): Likewise.
73624         * modules/getcwd (Depends-on): Likewise.
73625         * modules/getloadavg (Depends-on): Likewise.
73626         * modules/hard-locale (Depends-on): Likewise.
73627         * modules/makepath (Depends-on): Likewise.
73628         * modules/mountlist (Depends-on): Likewise.
73629         * modules/nanosleep (Depends-on): Likewise.
73630         * modules/posixtm (Depends-on): Likewise.
73631         * modules/quotearg (Depends-on): Likewise.
73632         * modules/readtokens (Depends-on): Likewise.
73633         * modules/readtokens0 (Depends-on): Likewise.
73634         * modules/readutmp (Depends-on): Likewise.
73635         * modules/save-cwd (Depends-on): Likewise.
73636         * modules/strftime (Depends-on): Likewise.
73637         * modules/userspec (Depends-on): Likewise.
73638         * modules/utimecmp (Depends-on): Likewise.
73639         * modules/xgetcwd (Depends-on): Likewise.
73640         * modules/xnanosleep (Depends-on): Likewise.
73641         * modules/xstrtod (Depends-on): Likewise.
73642         * modules/yesno (Depends-on): Likewise.
73643
73644 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
73645
73646         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
73647         needless checks.
73648
73649 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
73650
73651         Merge from coreutils.  Among other things,
73652         add bulletproofing for cases where stdin, stdout, or stderr are closed.
73653         * lib/fd-safer.c: New file.
73654         * lib/fcntl-safer.h, open-safer.c: Remove.
73655         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
73656         * lib/dup-safer.c: Include unistd-safer.h first.
73657         Don't include errno.h.
73658         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
73659         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
73660         * lib/file-type.c: Rely on file-type.h change.
73661         * lib/getloadavg.c: Include unistd-safer.h.
73662         (getloadavg): Use safer open.
73663         * lib/getusershell.c: Include "stdio-safer.h".
73664         (getusershell): Use safer fopen.
73665         * lib/long-options.c (long_options): Use NULL rather than 0.
73666         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
73667         'free'.
73668         * lib/modechange.c: Likewise.
73669         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
73670         (MODE_DONE): New constant.
73671         (struct mode_change): Remove 'next' member.
73672         (make_node_op_equals): New function; like the old one of the
73673         same name, except it allocates an array.
73674         (mode_compile, mode_create_from_ref): Use it.
73675         (mode_compile): Allocate result as an array, not a linked list.
73676         Parse octal string ourself, so that we catch mistakes like "+0".
73677         (mode_adjust): Arg is an array, not a linked list.
73678         * lib/modechange.c: Include stat-macros.h, xalloc.h.
73679         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
73680         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
73681         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
73682         Remove.  This is now stat-macros.h's job.
73683         (talloc): Remove.  All callers replaced by xalloc, so that
73684         our invokers don't have to worry about reporting memory failures.
73685         (make_node_op_equals): Remove.
73686         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
73687         New constants.
73688         (struct mode_change): Moved here from modechange.h.
73689         (mode_append_entry): Remove.
73690         (mode_compile): Remove MASKED_OPS arg, since it encouraged
73691         apps to have incorrect behavior.  Use simpler algorithm for head
73692         and tail.  Don't futz with umask; that's now the job of mode_adjust.
73693         Detect more invalid usages rather than having somewhat-random behavior.
73694         Don't insert an "a=" action, as that leads to incorrect behavior.
73695         (mode_compile, mode_create_from_ref): Return NULL on error instead
73696         of an enum, since now there's only one way to have an error.  All
73697         callers changed.
73698         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
73699         at the correct time.  Simplify calculation of "+u" and its ilk.
73700         Don't mishandle "+X".
73701         (mode_free): Remove "register" and localize decls.
73702         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
73703         (struct mode_change): Move to modechange.c; callers don't
73704         need to see this stuff.
73705         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
73706         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
73707         (mode_change, mode_adjust): Reflect the new signatures noted above.
73708         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
73709         that might redefine system include files.
73710         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
73711         (my_usleep): Use NULL rather than (void *) 0.
73712         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
73713         Use siginterrupt to specify that system calls should be interrupted.
73714         (rpl_nanosleep): Move initialization of suspended closer to call of
73715         my_usleep.
73716         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
73717         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
73718         (desirable_utmp_entry): New function.
73719         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
73720         using x2nrealloc, to simplify logic.
73721         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
73722         size calculation.  Do not assume utmp file is a regular file.
73723         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
73724         (READ_UTMP_CHECK_PIDS): New constant.
73725         * lib/save-cwd.c: Include unistd-safer.h.
73726         (save_cwd): Use fd_safer.
73727         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
73728         [!_LIBC] Include "stat-macros.h" instead.
73729         * lib/unistd-safer.h (fd_safer): New decl.
73730
73731 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
73732
73733         * modules/getloadavg (Depends-on): Add unistd-safer.
73734         * modules/getusershell (Depends-on): Add stdio-safer.
73735         * modules/lstat (Depends-on): Remove xalloc.
73736         * modules/mkstemp (Depends-on): Add stat-macros.
73737         * modules/modechange (Depends-on): Remove xstrtol.
73738         Add stat-macros, xalloc.
73739         * modules/save-cwd (Depends-on): Add unistd-safer.
73740         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
73741         * modules/unistd-safer (Files): Add lib/fd-safer.c
73742         (Makefile.am): Remove lib_SOURCES.
73743
73744         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
73745         Remove fcntl-safer; unistd-safer supersedes it.
73746
73747 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
73748
73749         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
73750         AC_HEADER_STAT.
73751         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
73752         (gl_PREREQ_CHOWN): Remove.
73753         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
73754         it.  Don't require AC_HEADER_STAT.
73755         (gl_PREREQ_LSTAT): Remove.
73756         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
73757         Don't require AC_HEADER_STAT.
73758         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
73759         (gl_PREREQ_RMDIR): Remove.
73760         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
73761         mention stat-macros.h or AC_HEADER_STAT, since we'll make
73762         the stat-macros module a prerequisite.
73763         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
73764         * m4/filemode.m4 (gl_FILEMODE): Likewise.
73765         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
73766         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
73767         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
73768         variable names.
73769         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
73770         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
73771         variable prefixes.
73772         * m4/fcntl-safer.m4: Remove.
73773         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
73774         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
73775         Invoke gl_PREREQ_FD_SAFER.
73776         (gl_PREREQ_FD_SAFER): New macro.
73777         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
73778         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
73779         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
73780         Remove duplicate call to AC_LIBOBJ(readutmp).
73781         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
73782
73783         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
73784         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
73785
73786 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
73787
73788         * MODULES.html.sh (Misc): Add byteswap.
73789
73790 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
73791
73792         * modules/getcwd (Depends-on): Add extensions.
73793         * modules/openat (Depends-on): Likewise.
73794
73795 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
73796
73797         * modules/byteswap: New file.
73798
73799 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
73800
73801         * m4/byteswap.m4: New file.
73802
73803 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
73804
73805         * lib/byteswap_.h: New file.
73806
73807 2005-04-25  Karl Berry  <karl@gnu.org>
73808
73809         * m4/gettext.m4: Update from GNU gettext 0.14.4.
73810
73811 2005-04-25  Albert Chin  <china@thewrittenword.com>
73812
73813         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
73814         Toolkit C bug.
73815
73816 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
73817
73818         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
73819         (func_ln_if_changed): Remove forcibly for no error message
73820         in case file does not exist.
73821
73822 2005-04-19  Simon Josefsson  <jas@extundo.com>
73823
73824         * gnulib-tool (Options): Make --symlink mean --symbolic.
73825
73826 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
73827
73828         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
73829
73830 2005-04-16  Simon Josefsson  <jas@extundo.com>
73831
73832         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
73833
73834 2005-04-15  Simon Josefsson  <jas@extundo.com>
73835
73836         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
73837
73838 2005-04-15  Simon Josefsson  <jas@extundo.com>
73839
73840         * gnulib-tool: Rename --symlink to --symbolic.
73841
73842 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
73843
73844         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
73845         symbolic links to files instead of copying/moving.  Add --aux-dir,
73846         specifying directory relative --dir where auxiliary build tools
73847         are placed.
73848
73849 2005-04-14  Bruno Haible  <bruno@clisp.org>
73850
73851         * modules/allocsa (License): Change to LGPL.
73852         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
73853
73854 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
73855
73856         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
73857         that "UTC +1 second" continues to work.  Problem reported
73858         by Dmitry V. Levin.
73859         (relunit_snumber): New rule.
73860         (relunit): Use it.
73861
73862 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
73863
73864         * lib/getdate.y (universal_time_zone_table): New constant.
73865         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
73866         universal_time_zone_table.
73867         (lookup_zone): Prefer universal_time_zone_table to
73868         local_time_zone_table, so that "GMT" time stamps are allowed in
73869         London during the summer.  Problem reported by Ian Abbott.
73870
73871 2005-04-12  Jim Meyering  <jim@meyering.net>
73872
73873         * lib/human.c (humblock): Set *options even when returning due to
73874         xstrtoumax conversion failure.  Thanks to a used-uninitialized
73875         warning from gcc-4.
73876
73877 2005-04-09  Jim Meyering  <jim@meyering.net>
73878
73879         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
73880         -Wuninitialized: initialize tm0.tm_year.
73881
73882 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
73883
73884         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
73885         count, since there's no maximum.  All uses changed.
73886         Add member dsts_seen.
73887         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
73888         not being INT_MAX.
73889         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
73890         Use pc_rels_seen to decide whther a date is absolute.
73891
73892         * lib/getdate.y (number): Don't overwrite year.
73893         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
73894         check.
73895
73896 2005-04-02  Simon Josefsson  <jas@extundo.com>
73897
73898         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
73899         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
73900
73901 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
73902
73903         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
73904         where no absolute path name can be longer than PATH_MAX.
73905
73906 2005-03-27  Jim Meyering  <jim@meyering.net>
73907
73908         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
73909
73910 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
73911
73912         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
73913         "one's complement" -> "ones' complement" in comment, as per Knuth.
73914         "value of type" -> "type or expression" in comment.
73915         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
73916
73917 2005-03-26  Jim Meyering  <jim@meyering.net>
73918
73919         Comment nits.
73920         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
73921         Correct typos: s/or/of/.
73922
73923 2005-03-26  Jim Meyering  <jim@meyering.net>
73924
73925         * modules/check-include-files: Move to ../ and rename to...
73926         * check-module: ...this.
73927
73928 2005-03-25  Jim Meyering  <jim@meyering.net>
73929
73930         * modules/xvasprintf (Files): Add xalloc.h.
73931
73932 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
73933
73934         * modules/gettext (Files): config/config.rpath ->
73935         build-aux/config.rpath
73936         * modules/iconv (Files): Likewise.
73937         Problem reported by Oskar Liljeblad.
73938
73939 2005-03-23  Jim Meyering  <jim@meyering.net>
73940
73941         * modules/check-include-files: New script to check for
73942         missing dependencies, multiple includes, etc.
73943
73944         * modules/c-strtold (Depends-on): Add xalloc.
73945         * modules/c-strtod (Depends-on): Add xalloc.
73946         * modules/hash (Depends-on): Add xalloc.
73947         (Files): Remove lib/xalloc.h.
73948
73949         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
73950         * modules/userspec (Files): Add lib/inttostr.h.
73951
73952 2005-03-23  Jim Meyering  <jim@meyering.net>
73953
73954         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
73955
73956 2005-03-22  Jim Meyering  <jim@meyering.net>
73957
73958         * modules/stat-macros: New module.
73959         * modules/canonicalize, modules/euidaccess, modules/file-type,
73960         * modules/filemode, modules/lchown, modules/makepath,
73961         * modules/rmdir, modules/stat: Depend on new stat-macros module
73962         rather than listing lib/stat-macros.h manually.
73963         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
73964
73965 2005-03-22  Jim Meyering  <jim@meyering.net>
73966
73967         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
73968
73969 2005-03-22  Bruno Haible  <bruno@clisp.org>
73970
73971         * config/srclist.txt: Replace target directory 'config' with
73972         'build-aux'.
73973         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
73974         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
73975         ../build-aux/.
73976
73977 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
73978
73979         * modules/chdir-long (Depends-on): Add mempcpy.
73980
73981         * modules/acl, modules/backupfile, modules/c-strtod,
73982         modules/c-strtold, modules/canon-host, modules/canonicalize,
73983         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
73984         modules/exclude, modules/exitfail, modules/file-type,
73985         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
73986         modules/getdate, modules/getline, modules/getpagesize,
73987         modules/getpass, modules/getugroups, modules/group-member,
73988         modules/hard-locale, modules/hash, modules/human, modules/idcache,
73989         modules/inttostr, modules/long-options, modules/makepath,
73990         modules/md5, modules/memcasecmp, modules/memcoll,
73991         modules/modechange, modules/mountlist, modules/path-concat,
73992         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
73993         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
73994         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
73995         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
73996         modules/strftime, modules/strndup, modules/strverscmp,
73997         modules/timespec, modules/unlocked-io, modules/userspec,
73998         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
73999         modules/yesno:
74000         Remove lib_SOURCES line from Makefile.am section, as this is now
74001         done automatically by the corresponding Autoconf macro.
74002
74003 2005-03-21  Jim Meyering  <jim@meyering.net>
74004
74005         Changes imported from coreutils.
74006
74007         * lib/cycle-check.c: Don't include xalloc.h.
74008
74009         * lib/path-concat.c: Don't include assert.h.
74010         (path_concat): Remove assertion that would have triggered
74011         for ABASE starting with more than one slash.
74012         Reported by Andreas Schwab.
74013
74014         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
74015         properly when ABASE is an absolute file name.
74016         Correct the description of this function.
74017         Include <assert.h>.
74018         Add an assertion and a test driver.
74019         This fixes a bug introduced on 2004-07-02.
74020         Andreas Schwab reported the resulting failure of cp --parents:
74021         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
74022
74023 2005-03-21  Jim Meyering  <jim@meyering.net>
74024
74025         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
74026         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
74027
74028 2005-03-21  Jim Meyering  <jim@meyering.net>
74029         and  Paul Eggert  <eggert@cs.ucla.edu>
74030
74031         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
74032         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
74033         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
74034         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
74035         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
74036         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
74037         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
74038         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
74039         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
74040         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
74041         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
74042         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
74043         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
74044         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
74045         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
74046         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
74047         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
74048         for these modules.
74049
74050 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
74051
74052         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
74053         (which shouldn't happen), generate nothing instead of returning 0
74054         immediately, so that nstrftime (NULL, ...) doesn't return 0.
74055
74056 2005-03-16  Bruno Haible  <bruno@clisp.org>
74057
74058         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
74059         HAVE_LONGLONG_64BIT.
74060
74061 2005-03-16  Bruno Haible  <bruno@clisp.org>
74062
74063         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
74064         HAVE_LONGLONG_64BIT.
74065
74066 2005-03-16  Bruno Haible  <bruno@clisp.org>
74067
74068         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
74069         HAVE_LONGLONG_64BIT.
74070
74071 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
74072
74073         * lib/strftime.c (my_strftime): Prepend space to format so that we can
74074         reliably distinguish strftime failure from empty output on POSIX
74075         hosts.
74076
74077 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
74078
74079         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
74080         (iconv_string): Don't guess a size-zero buffer, as that might cause
74081         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
74082         result would be 'too large', where 'too large' is (heuristically)
74083         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
74084         overflow concerns.  This will prevent some unwanted malloc failures
74085         when the inputs are very large.
74086
74087 2005-03-15  Karl Berry  <karl@gnu.org>
74088
74089         * config/srclist.txt (config.rpath): from gettext.
74090         * config/config.rpath: update.
74091
74092 2005-03-15  Bruno Haible  <bruno@clisp.org>
74093
74094         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
74095         to 'negate'.
74096
74097         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
74098         variable.
74099
74100         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
74101         results.
74102
74103 2005-03-14  Simon Josefsson  <jas@extundo.com>
74104
74105         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
74106         <fx@gnu.org>.
74107
74108 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
74109
74110         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
74111         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
74112         intprops.h.
74113         * lib/strtol.c: Likewise.
74114
74115 2005-03-14  Jim Meyering  <jim@meyering.net>
74116
74117         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
74118         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
74119         to be nonzero so that we (and caller) can detect the difference
74120         between a valid zero-length expansion and an error return, even
74121         when the underlying strftime fails before writing anything into
74122         that location.
74123
74124 2005-03-14  Bruno Haible  <bruno@clisp.org>
74125
74126         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
74127         Update from GNU gettext 0.14.3.
74128
74129 2005-03-10  Jim Meyering  <jim@meyering.net>
74130
74131         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
74132
74133 2005-03-10  Jim Meyering  <jim@meyering.net>
74134
74135         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
74136         so that this module works on systems without fchdir.
74137
74138 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
74139
74140         Factor int-properties macros into a single file, except for
74141         glibc-related files.
74142         * lib/intprops.h: New file.
74143         * lib/getloadavg.c: Include it instead of limits.h.
74144         (INT_STRLEN_BOUND): Remove.
74145         * lib/human.c: Include intprops.h.
74146         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
74147         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
74148         302/1000.
74149         * lib/inttostr.h: Include intprops.h instead of limits.h.
74150         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
74151         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
74152         for consistency with intprops.h.
74153         (time_t_is_integer, twos_complement_arithmetic): Use them.
74154         * lib/sig2str.h: Include <signal.h>, intprops.h.
74155         (INT_STRLEN_BOUND): Remove.
74156         * lib/strftime.c (TYPE_SIGNED): Remove.
74157         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
74158         * lib/strtol.c: Adjust comments to match intprops.h.
74159         * lib/userspec.c: Include intprops.h.
74160         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
74161         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
74162         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
74163         instead of rolling our own expressions.
74164         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
74165
74166         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
74167         instead of int.
74168         (my_strftime): Do not mishandle years close to INT_MAX, by doing
74169         the right thing even if adding 1900 would overflow.  Similarly
74170         for tm_mon + 1 and tm_yday + 1.
74171         Make %Y always equivalent to %C%y, and similarly for %G and %g.
74172         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
74173         (DO_SIGNED_NUMBER): New macro.
74174         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
74175
74176 2005-03-07  Bruno Haible  <bruno@clisp.org>
74177
74178         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
74179
74180 2005-03-07  Bruno Haible  <bruno@clisp.org>
74181
74182         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
74183
74184 2005-03-04  Derek R. Price  <derek@ximbiot.com>
74185
74186         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
74187         (func_import): Only replace files via --import when they have actually
74188         changed.
74189
74190 2005-03-03  Derek R. Price  <derek@ximbiot.com>
74191
74192         * m4/mmap-anon.m4: New file.
74193         * m4/pagealign_alloc.m4: New file.
74194
74195 2005-03-03  Derek R. Price  <derek@ximbiot.com>
74196             Bruno Haible  <bruno@clisp.org>
74197
74198         * modules/pagealign_alloc: New file.
74199         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
74200
74201 2005-03-03  Derek R. Price  <derek@ximbiot.com>
74202             Bruno Haible  <bruno@clisp.org>
74203
74204         * lib/pagealign_alloc.h: New file.
74205         * lib/pagealign_alloc.c: New file.
74206
74207 2005-03-03  Bruno Haible  <bruno@clisp.org>
74208
74209         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
74210         Use an all-permissive copyright notice, recommended by RMS.
74211
74212 2005-03-02  Bruno Haible  <bruno@clisp.org>
74213
74214         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
74215         of AIX, the replacement has to be done only after <string.h> is
74216         included, therefore not in config.h. stpncpy.h does the replacement,
74217         and stpncpy.c uses it.
74218
74219 2005-03-02  Bruno Haible  <bruno@clisp.org>
74220
74221         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
74222         stpncpy.c uses it.
74223
74224 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
74225
74226         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
74227         The workaround isn't strictly needed for POSIX conformance, and
74228         it's too much of a pain to configure and maintain.  We'll ask
74229         people to fix their kernels instead.
74230         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
74231         (NANOSLEEP_BUG_WORKAROUND): Remove.
74232         (xnanosleep): Remove the workaround.
74233
74234 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
74235
74236         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
74237         Reported by Derek Price.
74238         (Include): Add "timespec.h".
74239
74240         * modules/xnanosleep (Depends-on): Remove gethrxtime.
74241
74242 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
74243
74244         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
74245         to detect nanosleep bug.
74246
74247 2005-03-01  Bruno Haible  <bruno@clisp.org>
74248
74249         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
74250
74251 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
74252
74253         * modules/gethrxtime: New file.
74254         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
74255         (Depends-on): Add gethrxtime.
74256         (configure.ac): Add gl_XNANOSLEEP.
74257         (Makefile.am): Remove lib_SOURCES line.
74258
74259 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
74260
74261         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
74262         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
74263
74264 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
74265
74266         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
74267         * lib/timespec.h (gettime): Return void, since it always
74268         succeeds now.  All uses changed.
74269         * lib/gettime.c (gettime): Likewise.
74270         [HAVE_NANOTIME]: Prefer nanotime.
74271         Assume gettimeofday succeeds, as POSIX requires.
74272         Assime time () succeeds, since other code already does.
74273         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
74274         (timespec_subtract): Remove.
74275         (NANOSLEEP_BUG_WORKAROUND): New constant.
74276         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
74277         things considerably.  Use it only on GNU/Linux hosts, since the
74278         workaround shouldn't be needed elsewhere.
74279
74280 2005-02-24  Bruno Haible  <bruno@clisp.org>
74281
74282         * modules/gettext (Files): Add m4/glibc2.m4.
74283
74284 2005-02-24  Bruno Haible  <bruno@clisp.org>
74285
74286         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
74287         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
74288         * m4/progtest.m4:
74289         Update from GNU gettext 0.14.2.
74290         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
74291
74292 2005-02-24  Bruno Haible  <bruno@clisp.org>
74293
74294         * lib/localcharset.c: Update from GNU gettext 0.14.2.
74295         * lib/config.charset: Update from GNU gettext 0.14.2.
74296
74297 2005-02-24  Bruno Haible  <bruno@clisp.org>
74298
74299         * lib/gettext.h: Update from GNU gettext 0.14.2.
74300
74301 2005-02-23  Simon Josefsson  <jas@extundo.com>
74302
74303         * m4/iconvme.m4: New file.
74304
74305 2005-02-23  Jim Meyering  <jim@meyering.net>
74306
74307         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
74308         change.
74309         Thanks to Bruno Haible for catching it.
74310
74311 2005-02-22  Simon Josefsson  <jas@extundo.com>
74312
74313         * modules/iconvme: New file.
74314
74315         * MODULES.html.sh: Add iconvme.
74316
74317 2005-02-22  Simon Josefsson  <jas@extundo.com>
74318
74319         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
74320
74321 2005-02-22  Simon Josefsson  <jas@extundo.com>
74322
74323         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
74324
74325 2005-02-22  Jim Meyering  <jim@meyering.net>
74326
74327         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
74328         s/ifndef/ifdef/.
74329
74330 2005-02-20  Neil Conway  <neilc@samurai.com>
74331
74332         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
74333         returned by OSX/Darwin if the specified buffer is not large
74334         enough for the hostname.
74335
74336 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74337
74338         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
74339         pass it to _help, otherwise the latter coredumps trying to
74340         dereference state.root_argp.
74341
74342 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
74343
74344         * modules/chdir-long (Depends-on): Add memrchr.
74345         * modules/memrchr (Files): Add lib/memrchr.h.
74346         (Include): "memrchr.h".
74347
74348 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
74349
74350         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
74351
74352 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
74353
74354         * lib/memrchr.h: New file.
74355         * lib/chdir-long.c: Include it.
74356         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
74357         Don't bother including stddef.h.
74358
74359 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
74360
74361         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
74362         inclusion.
74363         Include <sys/types.h>, for dev_t.
74364         (ME_DUMMY, ME_REMOTE): Move from here....
74365         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
74366         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
74367         Dmitry V. Levin.
74368         Include mountlist.h first, to test the interface.
74369
74370 2005-01-29  Bruno Haible  <bruno@clisp.org>
74371
74372         * lib/progname.c (program_name): Initialize.
74373         Needed when linking statically on MacOS X.
74374
74375 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
74376
74377         Sync from coreutils.
74378         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
74379         (Depends-on): Add c-strtod.
74380         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
74381
74382 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
74383
74384         Sync from coreutils.
74385         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
74386
74387         Remove files that are specific to coreutils.
74388         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
74389
74390 2005-01-28  Bruno Haible  <bruno@clisp.org>
74391
74392         * modules/javacomp: New file.
74393         * MODULES.html.sh (Java): Add javacomp.
74394
74395 2005-01-28  Bruno Haible  <bruno@clisp.org>
74396
74397         * m4/javacomp.m4: New file, from GNU gettext.
74398
74399 2005-01-28  Bruno Haible  <bruno@clisp.org>
74400
74401         * lib/javacomp.sh.in: New file, from GNU gettext.
74402         * lib/javacomp.h: New file, from GNU gettext.
74403         * lib/javacomp.c: New file, from GNU gettext.
74404
74405 2005-01-26  Simon Josefsson  <jas@extundo.com>
74406
74407         * lib/gai_strerror.c: Use GPL in header.
74408
74409 2005-01-26  Bruno Haible  <bruno@clisp.org>
74410
74411         * modules/javaexec: New file.
74412         * MODULES.html.sh (Java): Add javaexec.
74413
74414 2005-01-26  Bruno Haible  <bruno@clisp.org>
74415
74416         * m4/javaexec.m4: New file, from GNU gettext.
74417
74418 2005-01-26  Bruno Haible  <bruno@clisp.org>
74419
74420         * lib/javaexec.sh.in: New file, from GNU gettext.
74421         * lib/javaexec.h: New file, from GNU gettext.
74422         * lib/javaexec.c: New file, from GNU gettext.
74423
74424 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74425
74426         * modules/lchown (Depends-on): Remove lchown.h
74427
74428 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74429
74430         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
74431         must be defined if the header file was not found, in order
74432         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
74433
74434 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74435
74436         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
74437         initializers for struct pentry_state.
74438         (__argp_error): Check return value of __asprintf
74439         (__argp_failure): Translate error message
74440
74441         * lib/argp-parse.c: Removed braces around the expansion of N_()
74442
74443 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74444
74445         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
74446         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
74447         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
74448         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
74449         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
74450         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
74451         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
74452         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
74453         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
74454         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
74455         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
74456         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
74457         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
74458         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
74459         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
74460         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
74461         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
74462         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
74463         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
74464         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
74465         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
74466         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
74467         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
74468         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
74469         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
74470         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
74471         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
74472         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
74473         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
74474         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
74475         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
74476         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
74477         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
74478         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
74479         xstrtol.m4, xstrtoumax.m4, yesno.m4:
74480         Use an all-permissive copyright notice, recommended by RMS.
74481
74482 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
74483
74484         * modules/chdir-long (Depends-on): Remove mempcpy.
74485
74486 2005-01-21  Jim Meyering  <jim@meyering.net>
74487
74488         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
74489         same value as for Solaris 9.
74490
74491         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
74492         component length.  This included changing the parameter to be
74493         of type `char *' rather than `char const *'.
74494         * lib/chdir-long.h (chdir_long): Update prototype.
74495
74496         * lib/openat.c (fdopendir, fstatat): New functions.
74497         * lib/openat.h: Include headers required for use of DIR and struct
74498         stat.
74499         [AT_SYMLINK_NOFOLLOW]: Define.
74500         (fdopendir, fstatat): Add prototypes.
74501
74502 2005-01-21  Bruno Haible  <bruno@clisp.org>
74503
74504         * modules/classpath: New file.
74505         * MODULES.html.sh (Java): Add classpath.
74506
74507 2005-01-21  Bruno Haible  <bruno@clisp.org>
74508
74509         * lib/classpath.h: New file, from GNU gettext.
74510         * lib/classpath.c: New file, from GNU gettext.
74511
74512 2005-01-20  Simon Josefsson  <jas@extundo.com>
74513
74514         * modules/version-etc-fsf: New file.
74515
74516 2005-01-20  Simon Josefsson  <jas@extundo.com>
74517
74518         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
74519         * lib/version-etc.c: Remove version_etc_copyright.
74520         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
74521         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
74522
74523 2005-01-20  Simon Josefsson  <jas@extundo.com>
74524
74525         * lib/base64.h (isbase64): Add.
74526
74527         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
74528         using a unsigned prototype, don't inline.
74529         (base64_decode): Use it.
74530
74531 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
74532
74533         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
74534         it.
74535
74536 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
74537
74538         * lib/save-cwd.c (save_cwd): Remove code to support the case
74539         where fchdir is missing or flaky.
74540
74541 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
74542
74543         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
74544
74545 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
74546
74547         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
74548         AC_LIBSOURCES now does this.
74549         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
74550         with new ullong_max module.
74551
74552 2005-01-19  Bruno Haible  <bruno@clisp.org>
74553
74554         * modules/sh-quote: New file.
74555         * MODULES.html.sh (Executing programs): Add sh-quote.
74556
74557 2005-01-19  Bruno Haible  <bruno@clisp.org>
74558
74559         * lib/sh-quote.h: New file, from GNU gettext.
74560         * lib/sh-quote.c: New file, from GNU gettext.
74561
74562 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
74563
74564         Merge from coreutils.
74565         * m4/ullong_max.m4: New file.
74566         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
74567         (gl_MACROS): Assume localeconv exists.
74568
74569 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
74570
74571         Merge changes from coreutils, as described below in several
74572         changelogs dated today.
74573
74574         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
74575         (O_DIRECTORY): Remove; not needed here, since "." must be
74576         a directory.  All uses removed.
74577         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
74578         universal on Suns, and we also need to test for IRIX.
74579         Revamp code to use 'if' rather than '#if'.
74580         Avoid unnecessary comparison of cwd->desc to 0.
74581
74582         * lib/utimens.c (futimens): Robustify the previous patch, by checking
74583         for known valid error numbers rather than observed invalid ones.
74584
74585 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
74586
74587         * modules/ullong_max: New file.
74588
74589         * modules/chdir-long, modules/openat: New files.
74590         * modules/save-cwd (Depends-on): Depend on chdir-long.
74591         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
74592
74593 2005-01-18  Jim Meyering  <jim@meyering.net>
74594
74595         Merge from coreutils.
74596         * m4/chdir-long.m4, m4/openat.m4: New files.
74597         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
74598         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
74599         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
74600         is sane and DOES follow symlinks.  Besides, testing 20 different
74601         systems found no broken chown implementations.
74602         Prompted by a change in rsync's copy of this macro.
74603         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
74604
74605         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
74606
74607         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
74608         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
74609         NULL-means-set-to-current-time semantics.
74610         Remove temporary file immediately, rather than waiting
74611         for configure's at-exit trap code to do it.
74612
74613 2005-01-18  Jim Meyering  <jim@meyering.net>
74614
74615         * lib/version-etc.c (version_etc_copyright): Update copyright date.
74616
74617         * lib/utimens.c (futimens): Account for the fact that futimes
74618         can also fail with errno == ENOSYS or errno == ENOENT.
74619         Patch from Dmitry V. Levin.
74620
74621         Change the name of the robust chdir function from chdir to chdir_long.
74622         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
74623         (restore_cwd): Use chdir_long, not chdir.
74624         * lib/chdir-long.c: Renamed from chdir.c.
74625         * lib/chdir-long.h: Renamed from chdir.h.
74626         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
74627         Hurd.
74628
74629 2005-01-18  Bruno Haible  <bruno@clisp.org>
74630
74631         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
74632         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
74633         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
74634         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
74635         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
74636         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
74637         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
74638         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
74639         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
74640         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
74641         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
74642         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
74643         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
74644         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
74645         Use an all-permissive copyright notice, recommended by RMS.
74646
74647 2005-01-18  Bob Proulx  <bob@proulx.com>
74648
74649         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
74650         simplify offsetof() macro construct to avoid compile failure with
74651         native HP-UX 11.0 ANSI C compiler.
74652
74653 2005-01-17  Bruno Haible  <bruno@clisp.org>
74654
74655         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
74656         redundant because stpncpy.m4 takes care of it.
74657
74658 2005-01-17  Bruno Haible  <bruno@clisp.org>
74659
74660         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
74661
74662 2005-01-17  Bruno Haible  <bruno@clisp.org>
74663
74664         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
74665         used.
74666
74667 2005-01-17  Bruno Haible  <bruno@clisp.org>
74668
74669         * lib/fwriteerror.h (fwriteerror): Change specification to include
74670         fclose.
74671         * lib/fwriteerror.c: Include <stdbool.h>.
74672         (fwriteerror): At the end, close the file stream. Record whether
74673         stdout was already closed.
74674
74675 2005-01-17  Bruno Haible  <bruno@clisp.org>
74676
74677         * lib/execute.c (environ): Declare if needed.
74678         * lib/pipe.c (environ): Likewise.
74679         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
74680
74681 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74682
74683         * modules/argp: Depend on vsnprintf
74684
74685 2005-01-10  Jim Meyering  <jim@meyering.net>
74686
74687         * modules/closeout (Depends-on): Add atexit.
74688
74689 2005-01-06  Bruno Haible  <bruno@clisp.org>
74690
74691         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
74692
74693 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
74694
74695         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
74696         definitions to be after all include files, to avoid collisions.
74697         Problem reported by Bob Proulx.
74698
74699 2005-01-04  Jim Meyering  <jim@meyering.net>
74700
74701         Changes imported from coreutils.
74702         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
74703         as the mkstemp template, use a temporary directory and an
74704         8.3-friendly template to avoid trouble on systems like DJGPP.
74705         Reported by Juan M. Guerrero via Stepan Kasal.
74706         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
74707         close. Remove the temporary directory right away, rather than waiting
74708         for configure's at-exit trap code to do it.
74709         Suggestion from Stepan Kasal.
74710
74711 2005-01-01  Simon Josefsson  <jas@extundo.com>
74712
74713         * gnulib-tool: Print #include directives when --import'ing.
74714
74715 2004-12-28  Simon Josefsson  <jas@extundo.com>
74716
74717         * tests/test-base64.c: Include required header files.  Remove
74718         unused variables.
74719
74720 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
74721
74722         * modules/error (Depends-on): Remove gettext.
74723
74724 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
74725
74726         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
74727         not needed.  This removes a dependency on the gettext module.
74728         [defined _LIBC]: Do not include <libintl.h>; not needed.
74729
74730 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
74731
74732         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
74733         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
74734
74735 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
74736
74737         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
74738         HAVE_DECL_STRTOLD.
74739
74740 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
74741
74742         * modules/getdate (Depends-on): Remove alloca-opt.
74743
74744 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
74745
74746         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
74747
74748 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
74749
74750         * lib/argp-parse.c: Include <stddef.h>.
74751         (alignof, alignto): New macros.
74752         (parser_init): Don't assume that void * is aligned sufficiently
74753         for struct option.
74754
74755         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
74756         need to extend the stack.
74757         (YYINITDEPTH): New macro, so that the initial stack isn't overly
74758         large.
74759
74760 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74761
74762         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
74763
74764 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
74765
74766         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
74767         (2004-10-24) change.  Apparently this was a false alarm.
74768
74769         * modules/getdate: Depend on alloca-opt, not alloca.
74770
74771 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
74772
74773         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
74774         Remove now-obsolete comment about AIX.
74775         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
74776         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
74777         (YYMAXDEPTH): New macro.
74778
74779 2004-12-18  Simon Josefsson  <jas@extundo.com>
74780
74781         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
74782
74783 2004-12-18  Bruno Haible  <bruno@clisp.org>
74784
74785         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
74786
74787 2004-12-18  Bruno Haible  <bruno@clisp.org>
74788
74789         * lib/fatal-signal.c (fatal_signals): Make non-const.
74790         (init_fatal_signals): New function.
74791         (uninstall_handlers, install_handlers): Ignore signals that were set to
74792         SIG_IGN.
74793         (at_fatal_signal): Call init_fatal_signals.
74794         (init_fatal_signal_set): Likewise. Ignore signals that were set to
74795         SIG_IGN.
74796         Reported by Paul Eggert.
74797
74798 2004-12-18  Bruno Haible  <bruno@clisp.org>
74799
74800         * doc/alloca.texi: New file.
74801         * doc/alloca-opt.texi: New file.
74802
74803 2004-12-17  Jim Meyering  <jim@meyering.net>
74804
74805         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
74806         Otherwise, install-sh could exit with improper exit status when
74807         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
74808
74809 2004-12-16  Simon Josefsson  <jas@extundo.com>
74810
74811         * tests/test-base64.c: Add license.
74812
74813 2004-12-15  Stepan Kasal  <address@hidden>
74814
74815         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
74816
74817 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
74818
74819         * modules/getcwd (Files): Add m4/d-ino.m4.
74820         Suggested by Mark D. Baushke.
74821
74822 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
74823
74824         * lib/getdate.y (textint): New member "negative".
74825         (time_zone_hhmm): New function.
74826         Expect 14 shift-reduce conflicts, not 13.
74827         (o_colon_minutes): New rule.
74828         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
74829         (yylex): Set the "negative" member of signed numbers.
74830
74831 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
74832
74833         * doc/getdate.texi (Time of day items, Time zone items):
74834         Describe new formats +00:00, UTC+00:00.
74835
74836 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
74837
74838         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
74839         spurious "-l"s.  Problem reported by Stepan Kasal.
74840
74841 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
74842
74843         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
74844         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
74845
74846 2004-12-04  Simon Josefsson  <jas@extundo.com>
74847
74848         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
74849         Vandoorselaere <yoann@prelude-ids.org>.
74850
74851 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
74852
74853         Changes imported from coreutils.
74854         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
74855         exist.
74856         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
74857
74858 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
74859
74860         Changes imported from coreutils.
74861         * lib/hard-locale.c: Assume <locale.h> exists.
74862         Include "strdup.h".
74863         (GLIBC_VERSION): New macro.
74864         (hard_locale): Assume setlocale exists.
74865         Rewrite to avoid #ifdef.
74866         Use strdup rather than malloc + strcpy.
74867         * lib/human.c: Assume <locale.h> exists.
74868         (human_readable): Assume localeconv exists.
74869
74870 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
74871
74872         * modules/hard-locale (Depends-on): Add strdup.
74873
74874 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
74875
74876         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
74877         convert T2, not T.  (Imported from libc.)
74878
74879 2004-11-30  Simon Josefsson  <jas@extundo.com>
74880
74881         * modules/restrict (License): Change to LGPL.
74882
74883 2004-11-30  Simon Josefsson  <jas@extundo.com>
74884
74885         * m4/restrict.m4: Add copyright and copying conditions.
74886
74887 2004-11-30  Simon Josefsson  <jas@extundo.com>
74888
74889         * m4/base64.m4: New file.
74890
74891 2004-11-30  Simon Josefsson  <jas@extundo.com>
74892
74893         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
74894         base64.
74895
74896         * tests/test-base64.c: New file.
74897
74898         * modules/base64: New file.
74899
74900 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
74901
74902         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
74903         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
74904
74905         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
74906
74907 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
74908
74909         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
74910         (__getcwd.c): Don't restore errno; glibc doesn't.
74911         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
74912         first, falling back to our code only if its results look suspicious.
74913         Ensure that the resulting buffer is only as large as necessary.
74914
74915         * lib/readutmp.c: Include readutmp.h first.
74916         Include <errno.h>, since readutmp.h no longer does that.
74917         * lib/readutmp.h: Don't include <errno.h>,
74918         <sys/param.h>, <time.h>; not needed to establish interface.
74919         (errno): Remove decl.
74920         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
74921         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
74922         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
74923
74924 2004-11-28  Simon Josefsson  <jas@extundo.com>
74925
74926         * lib/base64.h, base64.c: New file.
74927
74928 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
74929
74930         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
74931
74932 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
74933
74934         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
74935         (Depends-on): Remove pathmax, same.  Add mempcpy.
74936         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
74937         (Makefile.am): Append getcwd.h to lib_SOURCES.
74938         (Include): Add getcwd.h.
74939         (Maintainer): Change from Jim Meyering to "all, glibc",
74940         since getdate now uses intended-for-glibc code.
74941         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
74942         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
74943
74944 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
74945
74946         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
74947         HP's ANSI C compiler.
74948         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
74949         Declaring int functions causes warnings on some modern systems and
74950         shouldn't be needed to compile on ancient ones.
74951         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
74952         defined.
74953
74954         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
74955         with the following changes.
74956         (__set_errno): Parenthesize properly.
74957         Include <stdbool.h>.
74958         (MIN, MAX, MATCHING_INO): New macros.
74959         (__getcwd): Define with prototype, not K&R form.
74960         Use heuristics to allocate default buffer on stack if possible.
74961         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
74962         behavior, and to avoid the PATH_MAX limit when computing
74963         ../../../../...
74964         Use MATCHING_INO to compare inode number to file.
74965         Check for arithmetic overflow in size calculations.
74966         Fix bug in reallocation of dot array that caused getcwd to fail
74967         on directories nested deeper than 75.
74968         Be more careful about saving errno on error.
74969         Do not use realloc; use only free+malloc, as this is a bit
74970         more flexible and avoids a needless copy operation.
74971         Do not inspect st_dev and st_ino for symbolic links; POSIX
74972         doesn't specify the latter.
74973         Check for closedir errors.
74974         Avoid needless casts.
74975         Use "#ifdef weak_alias" around weak_alias, to be like other
74976         glibc code.
74977         The following changes to getcwd.c have effect only when used in
74978         gnulib; they have no effect inside glibc proper.
74979         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
74980         as alloca isn't used.
74981         (alloca, __alloca): Likewise.
74982         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
74983         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
74984         unconditionally, as gnulib assumes C89 or better.
74985         Do not include <sys/param.h>.
74986         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
74987         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
74988         better.
74989         (NULL) [!defined NULL]: Remove; we assume C89 or better.
74990         Include <dirent.h> in a way that is compatible with modern Autoconf.
74991         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
74992         New macros, if not already defined.
74993         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
74994         Use "_LIBC", not "defined _LIBC", for consistency.
74995         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
74996         a mempcpy module.
74997         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
74998         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
74999         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
75000         credit only to Jim Meyering and adjust the copyright dates.
75001         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
75002         <stdlib.h>, <unistd.h>, "pathmax.h".
75003         Instead, include "xgetcwd.h" (first) and "getcwd.h".
75004         (INITIAL_BUFFER_SIZE): Remove.
75005         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
75006
75007 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
75008
75009         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
75010         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
75011         Use the _ONCE methods, for efficiency.
75012         Check for fcntl.h.  In test program, include <errno.h>
75013         and <fcntl.h> if available.  Remove old K&R cruft from
75014         test program.  Check for common errors in GNU/Linux,
75015         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
75016         don't do AC_LIBOBJ, as that's getcwd.m4's job.
75017         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
75018         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
75019         name accordingly.
75020         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
75021         accommodate new getcwd.c.
75022         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
75023         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
75024         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
75025         that's all we need now.
75026
75027 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75028
75029         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
75030         argp-parse.c depends on getopt internals, that means we should
75031         always use our getopt, to be on the safe side.
75032         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
75033         order not to spoil the result of an eventual previous invocation
75034         of gl_GETOPT_SUBSTITUTE.
75035
75036 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75037
75038         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
75039         redefinition warnings. To avoid them, include the defines
75040         in `#if !defined __need_getopt ... #endif'. The only place
75041         where __getopt_argv_const is used is in definitions
75042         of getopt_long and getopt_long_only below, which are as well
75043         protected by `#ifndef __need_getopt'.
75044         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
75045         __need_getopt after including <stdio.h> and <unistd.h> These
75046         headers might have defined it.
75047
75048 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
75049
75050         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
75051
75052 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
75053
75054         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
75055         (futimens): New function, which uses futimes if available.
75056         (futimens, utimens): Support timespec==NULL, with same semantics
75057         as utime and utimens.
75058         * lib/utimens.h (futimens): New decl.
75059
75060 2004-11-23  Jim Meyering  <jim@meyering.net>
75061
75062         * lib/getopt_.h: Remove trailing blanks.
75063
75064 2004-11-23  Jim Meyering  <jim@meyering.net>
75065
75066         * lib/__fpending.c: Add comment.
75067
75068 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
75069
75070         * modules/canonicalize (Depends-on): Add xreadlink.
75071         Problem reported by James Youngman.
75072
75073 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
75074
75075         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
75076         New macros.
75077         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
75078         optopt): Use them instead of invoking ## directly; otherwise, the
75079         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
75080
75081 2004-11-19  Bruno Haible  <bruno@clisp.org>
75082
75083         * lib/strtok_r.c: Move comments from here...
75084         * lib/strtok_r.h: ... to here.
75085
75086 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
75087
75088         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
75089         implementations that mishandle size_t overflow.
75090
75091 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
75092
75093         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
75094         might fail.  Problem reported by Yoann Vandoorselaere.
75095         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
75096         implementations that mishandle size_t overflow.
75097
75098 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
75099
75100         * modules/canon-host (Depends-on): Add strdup.
75101
75102 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
75103
75104         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
75105
75106 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
75107
75108         * lib/canon-host.c: Include "strdup.h".
75109         (canon_host): Use getaddrinfo if available, so that IPv6 works.
75110         Use strdup instead of malloc/strcpy to duplicate strings.
75111
75112         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
75113         (human_space_before_unit): New constant.
75114         * lib/human.c (human_readable): Support it.
75115
75116         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
75117         (xgetcwd): Set errno correctly when failing.
75118         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
75119         the failure is actually due to a PATH_MAX problem.
75120
75121         Further getopt changes to make it more likely that glibc will
75122         buy the changes back.
75123         * lib/getopt.c (POSIXLY_CORRECT): New constant.
75124         (getopt): Use it, so to preserve glibc semantic
75125         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
75126         when compiling for libc.
75127         * lib/getopt_.h (__getopt_argv_const): Bring it back.
75128         (getopt_long, getopt_long_only): Use it.
75129
75130         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
75131         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
75132         (getopt): Argv is now char * const *, as per standard.
75133         (_getopt_internal_r, _getopt_internal): Argv is now char **,
75134         not char *__getopt_argv_const *.
75135         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
75136         _getopt_long_only_r): Likewise.
75137         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
75138         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
75139         _getopt_long_r, _getopt_long_only_r): Likewise.
75140         * lib/getopt_.h (__getopt_argv_const): Remove.
75141         (getopt): Argv is now char * const *, as per standard.
75142
75143         * lib/getdate.y (tORDINAL): New token.
75144         (day, relunit): Allow it for relative times.
75145         (relative_time_table): Use tORDINAL for ordinals.
75146
75147 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
75148
75149         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
75150         Document that "second" isn't allowed as an ordinal number.
75151
75152 2004-11-16  Jim Meyering  <jim@meyering.net>
75153
75154         * modules/closeout (Depends-on): Add fpending.
75155
75156 2004-11-15  Jim Meyering  <jim@meyering.net>
75157
75158         * lib/closeout.c: Include "__fpending.h" once again.
75159         Include <stdbool.h>.
75160         (close_stdout): Don't fail just because stdout was closed initially,
75161         since some programs don't write to stdout in the normal course of
75162         operation (other than --version and --help), and we don't want this
75163         function to make e.g. `touch file >&-' fail.
75164         But do fail if it was closed and someone has tried to write to it.
75165         E.g., `printf foo >&-' must fail.
75166
75167 2004-11-13  Jim Meyering  <jim@meyering.net>
75168
75169         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
75170
75171 2004-11-12  Simon Josefsson  <jas@extundo.com>
75172
75173         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
75174         small doc fix is still pending.
75175
75176 2004-11-11  Simon Josefsson  <jas@extundo.com>
75177
75178         * modules/strtok_r: New file.
75179
75180         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75181         strtok_r.
75182
75183 2004-11-11  Simon Josefsson  <jas@extundo.com>
75184
75185         * m4/strtok_r.m4: New file.
75186
75187         * m4/getopt.m4: Replace opterr.
75188
75189 2004-11-11  Simon Josefsson  <jas@extundo.com>
75190
75191         * lib/strtok_r.h, strtok_r.c: New file.
75192
75193 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
75194
75195         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
75196         of replacing opterr, getopt, etc.  This should handle the
75197         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
75198
75199 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
75200
75201         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
75202         we can stop lying to compilers about the constness of argv when we
75203         are compiled outside glibc.
75204         (getopt, getopt_long, getopt_long_only): Use it.
75205         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
75206         _getopt_internal, getopt): Likewise.
75207         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
75208         _getopt_long_only_r): Likewise.
75209         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
75210         _getopt_long_r, _getopt_long_only_r): Likewise.
75211
75212         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
75213         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
75214         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
75215         the other external symbols.
75216         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
75217         declaration, since the above renaming now works around collisions.
75218
75219 2004-11-11  Jim Meyering  <jim@meyering.net>
75220
75221         * lib/linebreak.c: Remove trailing blanks.
75222         * lib/alloca_.h: Likewise.
75223         * lib/acosl.c: Likewise.
75224         * lib/euidaccess.c: Likewise.
75225         * lib/allocsa.h: Likewise.
75226
75227 2004-11-10  Simon Josefsson  <jas@extundo.com>
75228
75229         * m4/getaddrinfo.m4: New file.
75230
75231 2004-11-10  Simon Josefsson  <jas@extundo.com>
75232
75233         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
75234
75235 2004-11-10  Simon Josefsson  <jas@extundo.com>
75236
75237         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75238         getaddrinfo.
75239
75240         * modules/getaddrinfo: New file.
75241
75242 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
75243
75244         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
75245
75246 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
75247
75248         * lib/mktime.c (SHR): New macro, which is a portable
75249         substitute for >> that should work even on Crays.
75250         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
75251         Problem reported by Mark D. Baushke in
75252         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
75253         * lib/getdate.y (SHR): Likewise.
75254         (tm_diff): Use it.
75255         * lib/strftime.c (SHR): Likewise.
75256         (tm_diff): Use it.
75257         * lib/quotearg.c (struct quoting_options): Use unsigned int for
75258         quote_these_too, so that right shifts are well defined.  All uses
75259         changed.
75260
75261 2004-11-10  Jim Meyering  <jim@meyering.net>
75262
75263         Ensure that no close failure goes unreported.
75264         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
75265         return early when it seems there's nothing to flush.
75266         Don't include __fpending.h.
75267
75268 2004-11-10  Jim Meyering  <jim@meyering.net>
75269
75270         * modules/closeout (Depends-on): Remove fpending.
75271
75272 2004-11-10  Jim Meyering  <jim@meyering.net>
75273
75274         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
75275
75276 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
75277
75278         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
75279         gl_FUNC_STRFTIME.
75280         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
75281         and AC_REQUIRE when possible, to avoid duplicate checks.
75282         Check for <wchar.h>.
75283
75284 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
75285
75286         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
75287
75288 2004-11-09  Bruno Haible  <bruno@clisp.org>
75289
75290         * m4/sockpfaf.m4: New file.
75291
75292 2004-11-05  Bruno Haible  <bruno@clisp.org>
75293
75294         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
75295         Reported by Mark D. Baushke <mdb@cvshome.org>.
75296
75297 2004-11-04  Bruno Haible  <bruno@clisp.org>
75298
75299         2004-09-11  Bruno Haible  <bruno@clisp.org>
75300                 * allocsa.valgrind: New file.
75301         2004-02-06  Bruno Haible  <bruno@clisp.org>
75302                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
75303                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
75304                 Reported by Christopher Seip <chris.seip@hp.com>.
75305
75306 2004-11-04  Bruno Haible  <bruno@clisp.org>
75307
75308         * modules/allocsa (Files): Add lib/allocsa.valgrind.
75309         (Makefile.am): Distribute it.
75310
75311 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
75312
75313         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
75314         with errno == ERANGE if the buffer is too small.
75315         Problem reported by Mark D. Baushke.
75316
75317 2004-11-03  Albert Chin  <china@thewrittenword.com>
75318             Paul Eggert  <eggert@cs.ucla.edu>
75319
75320         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
75321         equivalent, substitute $ac_type for equivalent type rather than
75322         blindly using uint32_t *always* which won't work if uint32_t is not
75323         available.  Define _UINT32_T to work around typedef of uint32_t if
75324         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
75325         2.5.1.
75326
75327 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
75328
75329         * m4/jm-macros.m4: Sync from coreutils.
75330         (gl_MACROS): Check for mbrlen, for pathchk.
75331         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
75332
75333 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
75334
75335         * lib/xreadlink.c (MAXSIZE): New macro.
75336         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
75337         size does not exceed MAXSIZE.  Avoid cast.
75338         As suggested by Mark D. Baushke in
75339         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
75340         if readlink fails with buffer size just under MAXSIZE, try again
75341         with MAXSIZE.
75342
75343 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
75344
75345         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
75346
75347 2004-11-02  Derek R. Price  <derek@ximbiot.com>
75348         and  Paul Eggert  <eggert@cs.ucla.edu>
75349
75350         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
75351         (get_date): Overparenthesize to avoid GCC warning.
75352
75353 2004-11-02  Bruno Haible  <bruno@clisp.org>
75354
75355         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
75356         returns void.
75357
75358 2004-11-02  Bruno Haible  <bruno@clisp.org>
75359
75360         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
75361         function returns void.
75362
75363 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
75364
75365         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
75366         fflush_unlocked, flockfile, funlockfile, funlockfile,
75367         fputs_unlocked, putc_unlocked.
75368
75369 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
75370
75371         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
75372         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
75373         already declared.
75374
75375 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
75376
75377         * modules/getdate (Files): Add doc/getdate.texi.
75378         (Depends-on): Add setenv, xalloc.
75379
75380 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
75381
75382         * lib/getdate.y: Add support for TZ="foo" within a date string.
75383         Fix some bugs near time_t boundaries.  Reject dates with
75384         out-of-range components, e.g., "Sept 31".
75385         Include <stdlib.h>, "setenv.h", "xalloc.h".
75386         (ISDIGIT_LOCALE): Remove; unused.
75387         Note that the TZ and time functions used here are not reentrant.
75388         (mktime_ok, get_tz): New functions.
75389         (TZBUFSIZE): New constant.
75390         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
75391         This requires that we sometimes generate our own TZ="XXX..." setting.
75392
75393 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
75394
75395         * doc/getdate.texi: New file, from coreutils with modifications for
75396         the new TZ parsing.
75397
75398 2004-10-27  Derek R. Price  <derek@ximbiot.com>
75399
75400         * lib/mktime.c (not_equal_tm): Remove redundant check.
75401
75402 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75403
75404         * modules/regex (lib_SOURCES): Add regex.c.
75405         Reported by James Youngman in
75406         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
75407
75408 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75409
75410         * lib/getdate.y: Use Bison 1.875 features, and some minor
75411         code cleanups.  This change does not affect semantics.
75412         Don't include <stdlib.h>; no longer needed.
75413         Don't include unlocked-io.h; only the "#if TEST" code uses
75414         stdio, and performance isn't crucial there.
75415         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
75416         Bison 1.875 features as described below.
75417         All uses of "PC." replaced by "pc->".
75418         (YYSTYPE): Add a forward declaration.
75419         (yylex, yyerror): Use full prototypes in forward decls.
75420         Use "%pure-parser" rather than obsolescent "%pure_parser".
75421         Use %parse-param and %lex-param instead of obsolescent
75422         YYPARSE_PARAM and YYLEX_PARAM.
75423         (meridian_table, month_and_day_table, time_units_table,
75424         relative_time_table, time_zone_table, military_table,
75425         lookup_zone, lookup_word, get_date):
75426         Use NULL instead of 0 where appropriate.
75427         (to_hour): Avoid abort (), to avoid a dependency on
75428         stdlib.h.
75429         (yyerror, yylex): Now accepts parser_control * arg.
75430         (main) [TEST]: Use '\0' rather than 0 for char.
75431
75432 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
75433
75434         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
75435
75436 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
75437
75438         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
75439         It's now the caller's responsibility to handle the case where
75440         !HAVE_GETPAGESIZE && !defined getpagesize.
75441
75442         * lib/mktime.c (leapyear): Arg is long int, not int.
75443
75444 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
75445
75446         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
75447
75448 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
75449
75450         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
75451         missing.  Problem reported by James Youngman.
75452
75453 2004-10-16  Simon Josefsson  <jas@extundo.com>
75454
75455         * gnulib-tool: Fix comments.  Fix parse problem.
75456         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
75457
75458 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
75459
75460         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
75461         implementation of getopt_long.  Problem reported by Alexander Taler in:
75462         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
75463
75464 2004-10-15  Bruno Haible  <bruno@clisp.org>
75465
75466         * gnulib-tool: Untabify. Initialize supplied_libname.
75467         (func_usage): More homogenous output.
75468         (func_modules_transitive_closure, func_modules_to_filelist,
75469         func_emit_lib_Makefile_am): New functions.
75470         (func_import): New function, extracted from big case statement. Use
75471         func_get_license, func_modules_transitive_closure,
75472         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
75473         opt_lgpl. Don't use test -a, as it's not portable.
75474         (func_create_testdir): Use func_modules_transitive_closure,
75475         func_modules_to_filelist, func_emit_lib_Makefile_am.
75476
75477 2004-10-15  Bruno Haible  <bruno@clisp.org>
75478
75479         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
75480
75481 2004-10-15  Bruno Haible  <bruno@clisp.org>
75482
75483         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
75484         the portions belonging to each module.
75485         Suggested by Derek Robert Price <derek@ximbiot.com>.
75486
75487 2004-10-12  Simon Josefsson  <jas@extundo.com>
75488
75489         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
75490         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
75491         to real functions.
75492
75493 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75494
75495         * modules/vsnprintf: New file.
75496
75497 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75498
75499         * m4/vsnprintf.m4: New file.
75500
75501 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75502
75503         * lib/vsnprintf.h: New file.
75504         * lib/vsnprintf.c: New file.
75505
75506 2004-10-11  Bruno Haible  <bruno@clisp.org>
75507
75508         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
75509         vsnprintf.
75510
75511 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
75512
75513         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
75514
75515 2004-10-07  Bruno Haible  <bruno@clisp.org>
75516
75517         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
75518         fits into the provided buffer.
75519
75520 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
75521
75522         * lib/diacrit.c, diacrit.h: Add GPL notice.
75523
75524         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
75525         notice.
75526         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
75527         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
75528         This avoids a potential constant-folding bug.
75529
75530 2004-10-05  Bruno Haible  <bruno@clisp.org>
75531
75532         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
75533         for the declaration of strsep.
75534
75535 2004-10-05  Bruno Haible  <bruno@clisp.org>
75536
75537         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
75538
75539 2004-10-04  Simon Josefsson  <jas@extundo.com>
75540
75541         * modules/memmem: New file.
75542         * tests/test-memmem.c: New file.
75543         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
75544
75545 2004-10-04  Simon Josefsson  <jas@extundo.com>
75546
75547         * m4/memmem.m4: New file.
75548
75549 2004-10-04  Simon Josefsson  <jas@extundo.com>
75550
75551         * lib/memmem.h: New file.
75552         * lib/memmem.c: New file, taken from glibc.
75553
75554 2004-10-04  Simon Josefsson  <jas@extundo.com>
75555
75556         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
75557         '#ifdef USE_UNLOCKED_IO'.
75558
75559 2004-10-04  Simon Josefsson  <jas@extundo.com>
75560
75561         * config/srclist.txt: Add memmem from glibc.
75562
75563 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
75564
75565         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
75566
75567         * modules/argmatch, modules/argp, modules/closeout, modules/error,
75568         modules/exclude, modules/getdate, modules/getline,
75569         modules/getndelim2, modules/getpass, modules/getpass-gnu,
75570         modules/getusershell, modules/linebuffer, modules/md5,
75571         modules/mountlist, modules/posixtm, modules/readtokens,
75572         modules/readutmp, modules/regex, modules/sha1,
75573         modules/version-etc, modules/yesno:
75574         Remove dependency on unlocked-io.
75575
75576 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
75577
75578         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
75579
75580         * m4/unlocked-io.m4: Add copyright notice.
75581         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
75582
75583 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
75584
75585         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
75586         * lib/xmalloc.c (xmemdup): Likewise.
75587         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
75588         XFREE): Remove these long-obsolescent macros.
75589         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
75590         * lib/xstrdup.c: Remove.
75591
75592         * lib/regex.c (re_comp): Cast gettext return value to char *,
75593         Problem reported by Martin Neitzel via Mark D. Baushke.
75594
75595 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
75596
75597         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
75598         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
75599         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
75600         regex.c, sha1.c, version-etc.c, yesno.c:
75601         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
75602         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
75603         the includer's responsibility.
75604
75605         Sync from coreutils.
75606
75607         * lib/modechange.c (mode_compile): Don't decrement a pointer that
75608         points to the start of a string, as the C Standard says the
75609         resulting behavior is undefined.
75610
75611         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
75612         simple -> simple_backups, numbered_existing ->
75613         numbered_existing_backups, numbered -> numbered_backups
75614         to avoid shadowing problems.  All uses changed.
75615         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
75616         * lib/backupfile.c (check_extension, numbered_backup):
75617         Rename locals to avoid shadowing 'basename'.
75618         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
75619         once.
75620
75621         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
75622         * lib/.cvsignore: Add getopt.h.
75623
75624 2004-10-04  Bruno Haible  <bruno@clisp.org>
75625
75626         * modules/README: New file.
75627         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
75628         not a module.
75629
75630 2004-10-02  Jim Meyering  <jim@meyering.net>
75631
75632         * lib/dirfd.h, getpagesize.h: Add copyright notice.
75633
75634 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75635
75636         * modules/strsep: New file.
75637
75638 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75639
75640         * m4/strsep.m4: New file.
75641
75642 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75643
75644         * lib/strsep.h: New file.
75645         * lib/strsep.c: New file.
75646
75647 2004-10-01  Simon Josefsson  <jas@extundo.com>
75648
75649         * lib/snprintf.c (snprintf): Handle size==0.
75650
75651 2004-10-01  Simon Josefsson  <jas@extundo.com>
75652             Bruno Haible  <bruno@clisp.org>
75653
75654         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
75655         (snprintf): Declare 'args'.
75656
75657 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
75658
75659         * lib/snprintf.c: Remove comments as to why each header is needed.
75660
75661 2004-10-01  Bruno Haible  <bruno@clisp.org>
75662
75663         * MODULES.html.sh: Add strsep.
75664
75665 2004-09-30  Simon Josefsson  <jas@extundo.com>
75666
75667         * modules/snprintf: New file.
75668
75669 2004-09-30  Simon Josefsson  <jas@extundo.com>
75670
75671         * m4/snprintf.m4: New file.
75672
75673 2004-09-30  Simon Josefsson  <jas@extundo.com>
75674
75675         * lib/snprintf.h, lib/snprintf.c: New files.
75676
75677 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75678
75679         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
75680         (hol_entry_help): Never translate an empty string.
75681         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
75682         * lib/argp.h (OPTION_NO_TRANS): New option.
75683
75684 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
75685
75686         * modules/argp (Maintainer): Replace Simon Josefsson
75687         by Sergey Poznyakoff.
75688
75689 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
75690
75691         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
75692         changes merged back into glibc.
75693
75694 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
75695
75696         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
75697
75698 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
75699
75700         * lib/xvasprintf.c: Include xalloc.h.
75701         (xvasprintf): Use xalloc_die, not xmalloc_die.
75702
75703 2004-09-29  Bruno Haible  <bruno@clisp.org>
75704
75705         * modules/alloca-opt: New file, derived from modules/alloca.
75706         * modules/allocsa: Depend on alloca-opt instead of alloca.
75707         * modules/setenv: Likewise.
75708         * modules/vasnprintf: Likewise.
75709         * MODULES.html.sh: Add alloca-opt.
75710
75711 2004-09-28  Simon Josefsson  <jas@extundo.com>
75712
75713         * gnulib-tool: New parameter --lgpl, to asseert that modules are
75714         LGPL, and to replace license template from GPL to LGPL.
75715
75716 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
75717
75718         * modules/dummy: Change license to LGPL.
75719
75720 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
75721
75722         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
75723
75724 2004-09-24  Simon Josefsson  <jas@extundo.com>
75725
75726         * modules/minmax (License): Change from GPL to LGPL.
75727
75728 2004-09-23  Simon Josefsson  <jas@extundo.com>
75729
75730         * gnulib-tool (--import): Typo.
75731
75732 2004-09-23  Simon Josefsson  <jas@extundo.com>
75733
75734         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
75735
75736 2004-09-22  Bruno Haible  <bruno@clisp.org>
75737
75738         * modules/*: Add 'License' field.
75739         * gnulib-tool: Accept --extract-license option.
75740         (func_get_license): New function.
75741
75742 2004-09-21  Bruno Haible  <bruno@clisp.org>
75743
75744         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
75745         Reported by Simon Josefsson.
75746
75747 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
75748
75749         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
75750         gl_AC_TYPE_LONG_LONG.
75751
75752 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
75753
75754         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
75755
75756 2004-09-18  Simon Josefsson  <jas@extundo.com>
75757         and  Paul Eggert  <eggert@cs.ucla.edu>
75758
75759         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
75760         calls with autoreconf.  Define GL_LIB.
75761
75762 2004-09-14  Karl Berry  <karl@gnu.org>
75763
75764         * config/srclist.txt: unsync setenv.c, sigh.
75765
75766 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
75767
75768         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
75769         Problem reported by Bruno Haible in:
75770         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
75771
75772 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
75773
75774         * config/srclist.txt: Comment out argp-pvh.c.
75775
75776 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
75777
75778         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
75779         in case some system header has #define'd it.  Problem reported by
75780         Soeren D. Schulze in
75781         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
75782
75783 2004-09-09  Karl Berry  <karl@gnu.org>
75784
75785         * regex.[ch]: delete from the root.  These were supposed to be
75786                 synced with emacs cvs, but this has not happened for about
75787                 a year, and anyway nothing else uses emacs regex.[ch].
75788                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
75789                 lib/regex[.ch] is untouched.
75790
75791 2004-09-09  Bruno Haible  <bruno@clisp.org>
75792
75793         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
75794
75795 2004-09-09  Bruno Haible  <bruno@clisp.org>
75796
75797         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
75798         modifications.
75799         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
75800
75801 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
75802
75803         * modules/xvasprintf: New file.
75804         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
75805
75806 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
75807
75808         * lib/xvasprintf.h: New file.
75809         * lib/xvasprintf.c: New file.
75810         * lib/xasprintf.c: New file.
75811
75812 2004-09-08  Bruno Haible  <bruno@clisp.org>
75813
75814         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
75815
75816 2004-09-08  Bruno Haible  <bruno@clisp.org>
75817
75818         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
75819         length is > INT_MAX.
75820         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
75821         more.
75822
75823 2004-09-08  Bruno Haible  <bruno@clisp.org>
75824
75825         * lib/stdint_.h: New file, taken from GNU clisp.
75826
75827 2004-09-08  Bruno Haible  <bruno@clisp.org>
75828             Oskar Liljeblad  <oskar@osk.mine.nu>
75829
75830         * modules/stdint: New file.
75831         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
75832
75833 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75834
75835         Import from coreutils.
75836         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
75837         strings on unbounded length.  alloca's performance benefits aren't
75838         that important here.
75839         (V_STRDUP): Remove.
75840         (parse_with_separator): New function, with most of the internals
75841         of the old parse_user_spec.  Allow user to omit both user and group,
75842         for compatibility with FreeBSD.
75843         Clone only the user name, not the entire spec.
75844         Do not set *uid, *gid unless entirely successful.
75845         Avoid memory leak in some failing cases.
75846         Fix regression for USER.GROUP reported by Dmitry V. Levin in
75847         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
75848         (parse_user_spec): Rewrite to use parse_with_separator.
75849
75850 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75851
75852         * modules/userspec: Don't depend on alloca.
75853
75854 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75855
75856         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
75857
75858 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
75859
75860         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
75861         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
75862         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
75863
75864 2004-08-16  Simon Josefsson  <jas@extundo.com>
75865
75866         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
75867         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
75868         Add --dry-run for --import.
75869         Let user provided command line parameters override configure.ac
75870         settings.
75871
75872 2004-08-12  Simon Josefsson  <jas@extundo.com>
75873
75874         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
75875         as discussed with Paul Eggert in threads rooted at
75876         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
75877         and
75878         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
75879         Before, the test was empty, and relied on ELIDE_CODE in source
75880         code.)
75881         (gl_PREREQ_GETOPT): New macro.
75882         (gl_GETOPT): Use them.
75883
75884 2004-08-12  Simon Josefsson  <jas@extundo.com>
75885
75886         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
75887         * lib/getopt_.h: Renamed from getopt.h.
75888
75889 2004-08-12  Simon Josefsson  <jas@extundo.com>
75890
75891         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
75892         Change default library name from libfoo to libgnu.
75893         Now, if you have a configure.ac that says:
75894                 gl_SOURCE_BASE(gl)
75895                 gl_M4_BASE(gl/m4)
75896                 gl_MODULES(error getopt etcetera)
75897                 gl_INIT
75898         you can import all you need by running:
75899                 ../gnulib/gnulib-tool --import
75900
75901         * modules/getopt (Files): Rename getopt.h to getopt_.h.
75902         (Makefile.am): Rewrite, use logic from argz.
75903         (Include): Use <getopt.h> instead of "getopt.h".
75904
75905 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
75906
75907         * modules/argp (Files): Add m4/unlocked-io.m4.
75908         (Depends-on): Add extensions.
75909
75910 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
75911
75912         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
75913         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
75914         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
75915         Check for program_invocation_name, program_invocation_short_name,
75916         flockfile, funlockfile, features.h, _getopt_long_only_r.
75917
75918 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
75919
75920         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
75921         its complicated substitute.
75922         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
75923         and program_invocation_name.
75924         (__argp_basename) [!_LIBC]: Remove; the only use was
75925         replaced by its body.
75926         (__argp_short_program_name): Change condition from
75927         !defined __argp_short_program_name to
75928         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
75929         to match argp-namefrob.h.
75930         (__argp_failure): Don't assume strerror_r returns char *.
75931         * lib/argp-parse.c (N_): Define unconditionally.
75932         (argp_default_options): Fill out initializers with 0 to avoid
75933         gcc warnings.
75934
75935 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
75936
75937         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
75938         getopt1.c.
75939
75940 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
75941
75942         Merge from coreutils.
75943
75944         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
75945
75946         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
75947         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
75948
75949 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
75950
75951         Merge from coreutils.
75952
75953         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
75954         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
75955         for Reliant Unix 5.43.
75956
75957         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
75958         (union fooround): Use uintmax_t, not long int.
75959         The rest is a merge from libc:
75960         [defined _LIBC]: Include <shlib-compat.h>.
75961         (_obstack) [defined _LIBC]: Remove after 2.3.4.
75962
75963         * lib/settime.c (settime): Recode to avoid warning with
75964         Sun Forte C 6U2.
75965
75966         * lib/strverscmp.c: Convert to UTF-8.
75967
75968 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
75969
75970         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
75971         m4/uintmax_t.m4.
75972
75973 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75974
75975         * modules/xalloc-die: New file.
75976         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
75977
75978         * modules/md5 (Files): Add m4/uint32_t.m4.
75979         * modules/sha1: Renamed from modules/sha.
75980         (Files):
75981         Rename lib/sha.h to lib/sha1.h.
75982         Rename lib/sha.c to lib/sha1.c.
75983         Rename m4/sha.m4 to m4/sha1.m4.
75984         (lib_SOURCES): Likewise.
75985         (configure.ac): Rename gl_SHA to gl_SHA1.
75986         (Include): sha.h -> sha1.h.
75987
75988 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75989
75990         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
75991         * m4/sha1.m4: Renamed from sha.m4.
75992         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
75993
75994 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75995
75996         * lib/obstack.h (obstack_empty_p):
75997         Don't assume that chunk->contents is suitably aligned.
75998         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
75999         Likewise. Problem reported by Benno in
76000         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
76001
76002         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
76003         readable.  This could be improved further but it'd take some work.
76004
76005 2004-08-08  Simon Josefsson  <jas@extundo.com>
76006
76007         * modules/xgethostname (Depends-on): Remove exit and error (not
76008         used).
76009
76010         * modules/getpass-gnu: Add getpass.h.
76011         (Depends-on): Add stdbool.
76012         * modules/getpass: Add getpass.h.
76013
76014 2004-08-08  Simon Josefsson  <jas@extundo.com>
76015
76016         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
76017         Check getpass declaration.
76018
76019 2004-08-08  Simon Josefsson  <jas@extundo.com>
76020
76021         * lib/xgethostname.c: Don't include error.h (not used).
76022
76023         * lib/getpass.h: Add.
76024         * lib/getpass.c: Include getpass.h first.
76025
76026 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
76027
76028         * lib/xalloc-die.c: New file.
76029         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
76030         All uses removed.
76031         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
76032         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
76033         xalloc-die.c.
76034         (_, N_, xalloc_die): Move to xalloc-die.c.
76035         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
76036         so that we needn't mess with xalloc_msg_memory_exhausted.
76037
76038         * lib/sha1.h: Renamed from sha.h.
76039         (SHA1_H): Renamed from _SHA_H.
76040         (sha1_ctx): Renamed from sha_ctx.
76041         (sha1_init_ctx): Renamed from sha_init_ctx.
76042         (sha1_process_block): Renamed from sha_process_block.
76043         (sha1_process_bytes): Renamed from sha_process_bytes.
76044         (sha1_finish_ctx): Renamed from sha_finish_ctx.
76045         (sha1_read_ctx): Renamed from sha_read_ctx.
76046         (sha1_stream): Renamed from sha_stream.
76047         (sha1_buffer): Renamed from sha_buffer.
76048         * lib/sha1.c: Likewise; renamed from sha.c.
76049         Do not include <sys/types.h>.
76050         Include <stddef.h> rather than <stdlib.h>.
76051
76052 2004-08-08  Bruno Haible  <bruno@clisp.org>
76053
76054         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
76055         FILESYSTEM_PREFIX_LEN.
76056         * lib/progreloc.c: Likewise.
76057         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
76058
76059 2004-08-06  Simon Josefsson  <jas@extundo.com>
76060
76061         * modules/progname (Depends-on): Don't depend on stdbool.
76062
76063 2004-08-06  Simon Josefsson  <jas@extundo.com>
76064
76065         * modules/getsubopt: New file.
76066         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76067         getsubopt.
76068
76069 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
76070
76071         More merge from coreutils.
76072
76073         * m4/utimens.m4, m4/utimecmp.m4: New files.
76074         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
76075         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
76076         prereq.m4, sha.m4: Import changes from coreutils.
76077
76078 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
76079
76080         More merge from coreutils.
76081         * modules/raise, modules/readtokens0, modules/utimens:
76082         * modules/utimecmp, module/xnanosleep: New files.
76083         * modules/strftime: Add lib/strftime.h.
76084         Change include from <time.h> to "strftime.h".
76085         * modules/yesno: Add lib/yesno.h.
76086         * modules/backupfile: Remove lib/addext.c.
76087         * modules/euidaccess: Add stat-macros.h.
76088         * modules/canonicalize, modules/euidaccess,
76089         modules/filemode, modules/lchown, modules/makepath,
76090         modules/rmdir, modules/stat: Likewise.
76091
76092 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
76093
76094         Merge from tar.
76095         * lib/argp-help.c (make_hol, hol_append): Don't assume that
76096         SIZE_MAX is a valid preprocessor constant.
76097         (__argp_basename): Change from "#ifndef _LIBC"
76098         to "#ifndef __argp_short_program_name", so that
76099         we don't compile these functions for tar.
76100
76101         More merges from coreutils.
76102         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
76103         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
76104         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
76105         * lib/addext.c: Remove; no longer needed.
76106         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
76107         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
76108         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
76109         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
76110         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
76111         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
76112         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
76113         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
76114         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
76115         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
76116         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
76117         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
76118         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
76119         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
76120         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
76121         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
76122         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
76123         Import changes from coreutils.
76124
76125 2004-08-05  Simon Josefsson  <jas@extundo.com>
76126
76127         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
76128
76129 2004-08-05  Simon Josefsson  <jas@extundo.com>
76130
76131         * m4/getsubopt.m4: New file.
76132
76133 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
76134
76135         Merge from coreutils.
76136
76137         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
76138         * m4/getcwd-path-max.m4: New files.
76139
76140         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
76141         FILESYSTEM_PREFIX_LEN ->
76142         FILE_SYSTEM_PREFIX_LEN.
76143         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
76144         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
76145         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
76146         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
76147
76148         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
76149         prerequisite modules now handle the DOS stuff.
76150         Don't check for unistd.h.
76151
76152 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
76153
76154         Merge from coreutils.
76155
76156         * lib/.gdb-history: Remove; this doesn't belong here.
76157
76158         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
76159         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
76160         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
76161         * lib/getcwd.c: New files.
76162
76163         * lib/dirname.h: Include <stdbool.h>.
76164         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
76165         for consistency with POSIX terminology.  All uses changed.
76166         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
76167         (strip_trailing_slashes): Use bool for booleans.
76168         * lib/stripslash.c (strip_trailing_slashes): Likewise.
76169
76170         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
76171         sometimes returns a positive errno value even when it succeeds.
76172         (print_errno_message) [!LIBC]: Fall back on strerror if
76173         __strerror_r fails.
76174
76175         * lib/path-concat.c (mempcpy): Don't define if a system header defines
76176         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
76177         (longest_relative_suffix): New function.
76178         (path_concat): Use it.  Assume first argument is not NULL.
76179         Port to DOS.  Omit redundant separators.
76180         Report an error instead of returning NULL.
76181         Use mempcpy instead of memcpy.
76182         (xpath_concat): Remove: not declared or used.
76183
76184         * lib/same.h: Include <stdbool.h>
76185         (same_name): Return bool, not int.
76186         * lib/same.c (same_name): Likewise.
76187         (errno): Don't declare; we assume C89 or better now.
76188
76189         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
76190         if not already defined.
76191
76192         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
76193         * lib/dup-safer.c (errno): Likewise.
76194
76195 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
76196
76197         Merge from coreutils.
76198         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
76199         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
76200         * modules/path-concat: Don't depend on strdup.
76201
76202 2004-08-03  Simon Josefsson  <jas@extundo.com>
76203
76204         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
76205         * lib/progname.h: Don't include stdbool.h.
76206
76207 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
76208
76209         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
76210         * MODULES.html.sh (func_all_modules): Remove fatal.
76211
76212 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
76213
76214         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
76215
76216 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
76217
76218         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
76219         working.
76220
76221 2004-08-02  Simon Josefsson  <jas@extundo.com>
76222
76223         * lib/getsubopt.h: New file, with comments from Bruno Haible.
76224         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
76225         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
76226
76227 2004-08-01  Simon Josefsson  <jas@extundo.com>
76228
76229         * lib/xgetdomainname.c: Include stdlib.h, for free().
76230
76231 2004-07-19  Bruno Haible  <bruno@clisp.org>
76232
76233         * MODULES.html.sh (func_all_modules): Add dummy.
76234
76235 2004-07-16  Simon Josefsson  <jas@extundo.com>
76236
76237         * modules/dummy: New file.
76238
76239 2004-07-16  Simon Josefsson  <jas@extundo.com>
76240
76241         * lib/dummy.c: New file.
76242
76243 2004-07-16  Bruno Haible  <bruno@clisp.org>
76244
76245         * lib/backupfile.h: Add extern "C" for C++.
76246         * lib/closeout.h: Likewise.
76247         * lib/copy-file.h: Likewise.
76248         * lib/findprog.h: Likewise.
76249         * lib/full-write.h: Likewise.
76250         * lib/pathname.h: Likewise.
76251         * lib/progname.h: Likewise.
76252         * lib/stpcpy.h: Likewise.
76253         * lib/stpncpy.h: Likewise.
76254         * lib/strcase.h: Likewise.
76255         * lib/strstr.h: Likewise.
76256         * lib/xalloc.h: Likewise.
76257
76258         * lib/mbswidth.h: Add extern "C" for C++.
76259         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
76260
76261 2004-07-13  Robert Millan  <robertmh@gnu.org>
76262
76263         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
76264
76265 2004-07-09  Simon Josefsson  <jas@extundo.com>
76266
76267         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
76268         failed without this.)
76269
76270 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76271
76272         * modules/chown (Files): Add lib/fchown-stub.c, since
76273         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
76274
76275 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76276
76277         * lib/fchown-stub.c: New file.
76278
76279 2004-06-24  Jim Meyering  <jim@meyering.net>
76280
76281         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
76282
76283 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76284
76285         * modules/argz: Omit "#include".
76286
76287         * MODULES.html.sh (func_all_modules): Add calloc, to match
76288         2004-06-01 addition of calloc module.
76289
76290 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76291
76292         * m4/argz.m4: New file, which is autoupdated from libtool.
76293
76294 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76295
76296         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
76297         libtool.
76298
76299 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76300
76301         * config/srclist-update: Don't insist on "USA." before the
76302         close-comment, as libtool omits the period and puts the */ on a
76303         separate line.
76304         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
76305         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
76306
76307 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
76308
76309         * modules/argz: New file.
76310         * MODULES.html.sh (func_all_modules): Add argz.
76311
76312 2004-06-12  Jim Meyering  <jim@meyering.net>
76313         and  Paul Eggert  <eggert@cs.ucla.edu>
76314
76315         * modules/hash (Files): Add lib/xalloc.h.
76316         * modules/pipe (Depends-on): Add wait-process.
76317         * modules/stat (Depends-on): Add xalloc.
76318         * modules/userspec (Files): Add lib/userspec.h.
76319         * modules/xstrto
76320
76321         Upgrade from gettext-0.13.
76322         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
76323         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
76324         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
76325
76326 2004-06-10  Jim Meyering  <jim@meyering.net>
76327
76328         * lib/calloc.c: New file.
76329
76330 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
76331
76332         * lib/getdate.y (yylex): Allow space between sign and number.
76333         Problem reported by Dan Jacobson.
76334
76335 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
76336
76337         Merge from coreutils CVS.
76338
76339         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
76340         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
76341         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
76342         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
76343         xstrtol.m4: Fix copyright date and/or serial number.
76344
76345         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
76346         See if we need an fchown replacement.
76347         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
76348         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
76349         and use the replacement function if we detect either defect.
76350
76351         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
76352         gl_UTIMECMP.
76353
76354 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
76355         and  Jim Meyering  <jim@meyering.net>
76356
76357         Merge from coreutils CVS.
76358
76359         * lib/stat-macros.h: New file, with contents from file-type.h
76360         and coreutils' system.h.
76361         * lib/file-type.c: Include "stat-macros.h".
76362         * lib/file-type.h (file_type): Move all macro definitions to new file,
76363         stat-macros.h.
76364
76365         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
76366         Wrap old code with this conditional.
76367         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
76368         function that does not dereference symlinks.
76369         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
76370
76371         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
76372         dependency problems.
76373         (xreadlink): Accept new arg SIZE, for efficiency.
76374         All decls and uses changed.
76375         * lib/xreadlink.h: Include <stddef.h>, for size_t.
76376
76377         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
76378         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
76379
76380         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
76381         sysexits.h.
76382
76383 2004-06-01  Jim Meyering  <jim@meyering.net>
76384
76385         * m4/calloc.m4: New file.
76386
76387 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
76388
76389         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
76390         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
76391         Also, fix a typo in a diagnostic.
76392
76393 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
76394
76395         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
76396         or AC_FUNC_REALLOC.
76397
76398 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
76399
76400         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
76401         macros to be defined.
76402         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
76403         the allocator returns NULL because the requested size is zero.
76404
76405 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
76406
76407         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
76408         var.  Add comment explaining why libc still defines it.  This
76409         merges the following patch from glibc:
76410         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
76411
76412 2004-05-20  Andreas Schwab  <schwab@suse.de>
76413
76414         * m4/free.m4: Replace free if it not known to work, not the other
76415         way round.
76416
76417 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
76418
76419         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
76420         present in glibc since revision 1.1 of this file.
76421         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
76422         obstack_alignment_mask, obstack_alloc, obstack_base,
76423         obstack_blank, obstack_blank_fast, obstack_chunk_size,
76424         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
76425         obstack_grow0, obstack_init, obstack_int_grow,
76426         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
76427         obstack_next_free, obstack_object_size, obstack_ptr_grow,
76428         obstack_ptr_grow_fast, obstack_room): Remove declarations of
76429         nonexistent functions.
76430
76431 2004-05-18  Karl Berry  <karl@gnu.org>
76432
76433         * config/srclist.txt: break link for vasnprintf.c.
76434
76435 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
76436
76437         Port obstack to the AS/400, where pointers are 16 bytes wide and
76438         you cannot cast an integer to a valid pointer.  This patch is
76439         currently waiting to be integrated into glibc; see
76440         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
76441
76442         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
76443         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
76444         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
76445         (struct obstack): temp member is now a union of a pointer and
76446         an integer, instead of an integer.  All integer uses changed.
76447         This does not affect the physical layout of struct obstack,
76448         except on hosts (like the AS/400) where the size or alignment of
76449         void * is greater than that of ptrdiff_t.
76450         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
76451         __STDC__)]: Store temporary in pointer member of union, not
76452         integer member.
76453         * lib/obstack.c: Include <stddef.h>, for offsetof.
76454         (struct fooalign): Remove; it doesn't need a name.
76455         (union fooround): Change double to long double, and add void *.
76456         (DEFAULT_ALIGNMENT): Use offsetof to compute.
76457         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
76458         not a macro.  Hence the values are always int; so remove all
76459         casts-to-int in uses.
76460
76461 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
76462
76463         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
76464         we can get this patch merged into glibc.
76465
76466 2004-05-17  Derek R. Price  <derek@ximbiot.com>
76467             Paul Eggert  <eggert@cs.ucla.edu>
76468
76469         * m4/argp: Depend on alloca.
76470
76471 2004-05-17  Derek R. Price  <derek@ximbiot.com>
76472             Paul Eggert  <eggert@cs.ucla.edu>
76473
76474         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
76475         freecoding.
76476
76477 2004-05-17  Bruno Haible  <bruno@clisp.org>
76478
76479         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
76480         precision that consists of a '.' followed by an empty digit string.
76481         Patch by Tor Lillqvist <tml@iki.fi>.
76482
76483 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
76484
76485         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
76486         for backward compatibility with older code.  We need our own
76487         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
76488         it under some other name, and our alloca.h will define it.
76489
76490 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
76491             Derek Price  <derek@ximbiot.com>
76492
76493         * lib/alloca.c: Include <alloca.h>, to get our interface.
76494         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
76495         include <alloca.h> first.  Use C89 prototype for alloca; this
76496         requires including <stddef.h> for size_t.  Use extern "C" if C++.
76497         Use #elif for simplicity, since we can assume C89 now.
76498         Don't try to source the system alloca.h since it will not be found
76499         and to prevent recursively including its replacement.
76500         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
76501         * lib/regex.c: Likewise.
76502
76503 2004-05-16  Derek Price  <derek@ximbiot.com>
76504             Paul Eggert  <eggert@cs.ucla.edu>
76505
76506         getline cleanup.  This changes the getndelim2 API: both order of
76507         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
76508         no delimiter).
76509
76510         * lib/getline.c: Don't include stddef.h or stdio.h, since our
76511         interface does that.
76512         (getline): Always use getdelim, so that we don't have two
76513         copies of this code.
76514         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
76515         if available.
76516         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
76517         (GETNDELIM2_MAXIMUM): New macro.
76518         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
76519         instead of the old practice of delim2==0.  All callers changed.
76520         Return -1 on overflow, instead of returning junk.
76521         Do not set *linesize unless allocation succeeds.
76522         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
76523         that we include sys/types.h.
76524         * lib/getnline.h: Likewise.
76525         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
76526         (getndelim2): Reorder arguments.
76527         * lib/getnline.c (getnline, getndelim):
76528         Don't discard the NMAX argument.
76529         (getnline): Invoke getndelim, to avoid code duplication.
76530         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
76531         of (size_t) -1 by callers of the getnline family.
76532
76533 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
76534
76535         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
76536         Check for gettimeofday.
76537         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
76538         Check for settimeofday, stime.
76539
76540 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
76541
76542         * lib/nanosleep.c (suspended): Change its type from int to
76543         sig_atomic_t volatile.
76544         (first_call): Make it private to rpl_nanosleep, and have it
76545         be zero initially as that's a bit faster.
76546         (my_usleep): Round up fractional times instead of truncating them,
76547         as this is the usual meaning for 'sleep'.
76548
76549         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
76550         doesn't work.
76551         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
76552         (ENOSYS): Define if not defined.
76553         (settime): Fall back on stime if it exists and settimeofday fails.
76554         But don't bother with fallbacks if a method fails with errno == EPERM.
76555
76556 2004-05-11  Jim Meyering  <jim@meyering.net>
76557
76558         Prior to this change, the save_cwd caller required read access to the
76559         current directory on most systems (ones with the fchdir function).
76560
76561         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
76562         fails, try write-only, and finally, resort to using xgetcwd.
76563
76564 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
76565
76566         * lib/obstack.c, obstack.h: Import changes from libc.
76567
76568 2004-04-28  Bruno Haible  <bruno@clisp.org>
76569
76570         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
76571         also implicitly appends .exe to executables.
76572         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
76573         accepts Windows pathnames.
76574         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
76575         Treat Cygwin like Windows, since it now accepts Windows pathnames.
76576         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
76577         Treat Cygwin like Windows, since it now accepts Windows pathnames.
76578         Reported by Derek Robert Price <derek@ximbiot.com>.
76579
76580 2004-04-21  Karl Berry  <karl@gnu.org>
76581
76582         * config/srclist.txt (localcharset.c): break sync.
76583
76584 2004-04-20  Paul Eggert  <eggert@twinsun.com>
76585
76586         * m4/host-os.m4: Add a copyright notice.
76587
76588 2004-04-20  Jim Meyering  <jim@meyering.net>
76589
76590         Change UTILS_ to gl_ in AC_DEFINE'd names.
76591         Change utils_- and jm_-prefixed variables, too.
76592         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
76593         UTILS_FUNC_MKDIR_TRAILING_SLASH.
76594         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
76595
76596         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
76597         Don't emit trailing blanks.
76598         Also rename jm_-prefixed variables to have gl_ prefix.
76599
76600         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
76601         Also rename jm_-prefixed variables to have gl_ prefix.
76602
76603         * m4/jm-macros.m4: Reflect the renamings.
76604         * m4/prereq.m4: Likewise.
76605
76606 2004-04-20  Jim Meyering  <jim@meyering.net>
76607
76608         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
76609         memory.
76610
76611 2004-04-20  Jim Meyering  <jim@meyering.net>
76612             Bruno Haible  <bruno@clisp.org>
76613
76614         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
76615         memory when realloc fails.
76616
76617 2004-04-19  Jim Meyering  <jim@meyering.net>
76618
76619         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
76620         now that readutmp.c may call `free (0)'.
76621
76622 2004-04-19  Bruno Haible  <bruno@clisp.org>
76623
76624         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
76625         * m4/inttypes_h.m4: Likewise.
76626         * m4/stdint_h.m4: Likewise.
76627         * m4/intmax_t.m4: Likewise.
76628         * m4/uintmax_t.m4: Likewise.
76629
76630 2004-04-18  Jim Meyering  <jim@meyering.net>
76631
76632         * m4/prereq.m4: Don't forbid jm_ prefix.
76633
76634         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
76635         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
76636         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
76637         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
76638         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
76639         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
76640         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
76641         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
76642         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
76643         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
76644         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
76645         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
76646         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
76647         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
76648         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
76649         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
76650         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
76651         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
76652         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
76653
76654 2004-04-18  Jim Meyering  <jim@meyering.net>
76655
76656         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
76657         failure, don't leak memory and do call END_UTMP_ENT.
76658
76659 2004-04-16  Jim Meyering  <jim@meyering.net>
76660
76661         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
76662         coreutils' stat program.
76663         (gl_PREREQ): Don't require jm_PREREQ_STAT.
76664
76665 2004-04-11  Paul Eggert  <eggert@twinsun.com>
76666
76667         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
76668         C89.
76669         (CHAR_BIT): Remove, since we assume C89.
76670         Include <stdint.h> if available, as per current Autoconf CVS advice.
76671
76672 2004-03-31  Jim Meyering  <jim@meyering.net>
76673
76674         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
76675         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
76676         * m4/xalloc.m4: Likewise.
76677
76678 2004-03-30  Paul Eggert  <eggert@twinsun.com>
76679
76680         Merge from coreutils.
76681
76682         * m4/inttostr.m4: New file.
76683         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
76684         Require AM_STDBOOL_H and gl_TIMESPEC instead.
76685         Require gl_CLOCK_TIME.
76686         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
76687
76688 2004-03-30  Paul Eggert  <eggert@twinsun.com>
76689
76690         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
76691         not bool, to be more consistent with Unix conventions.
76692         Suggested by Bruno Haible.
76693
76694         Merge from coreutils.
76695
76696         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
76697         * lib/umaxtostr.c: New files.
76698
76699         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
76700         the usual <time.h> dance.
76701         (get_date): Change signature to support fractional time stamps.
76702         All callers changed.
76703         * lib/getdate.y: Include "getdate.h" first, as we can now
76704         assume C89 and don't need to worry about 'const'.
76705         Similarly, include "unlocked-io.h" near start, not in middle.
76706         Include <limits.h>.
76707         (textint.value): Use long int rather than int.
76708         (textint.digits): Use size_t rather than int.
76709         (BILLION, LOG10_BILLION): New constants.
76710         (parser_control): New member rel_ns.  Members day_ordinal,
76711         time_zone, month, day, hour, minutes, rel_year, rel_month,
76712         rel_day, rel_hour, rel_minutes, rel_seconds
76713         are now long int, not int.  Member seconds is now struct timespec,
76714         not int.  New member timespec_seen.  Members dates_seen, days_seen,
76715         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
76716         not int.
76717         (%union.intval): Now long int, not int.
76718         New member timespec.
76719         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
76720         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
76721         (spec): Now is a timespec or an item list.
76722         (timespec, items): New nonterminals.
76723         (time, rel, relunit, number, get_date):
76724         Add support for fractional seconds.
76725         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
76726         (gmtime, localtime, mktime): Remove decls; not needed with C89.
76727         (to_hour): First arg is now long int, not int.
76728         (to_year): Returns long int, not int.
76729         Don't treat year -70 like 70.
76730         (tm_diff): Returns long int, not int.
76731         (lookup_word): Use bool instead of int when appropriate.
76732         (yylex): Use size_t for count, not int.
76733         Detect overflow when parsing large integer constants.
76734         Add support for fractions.
76735         (get_date): Make pointers 'const' if possible.
76736         Use more-portable code to detect integer overflow.
76737         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
76738         Don't use ctime; it's not reliable if the year has >4 digits.
76739
76740         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
76741         This is for compatibility with BSD.
76742
76743         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
76744         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
76745         From coreutils' system.h.
76746
76747         * lib/userspec.c: Don't include "posixver.h".
76748         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
76749         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
76750         compatible extension.  Simplify code by removing a boolean int
76751         that was always nonzero if a string was nonnull.
76752
76753 2004-03-30  Jim Meyering  <jim@meyering.net>
76754
76755         Merge from coreutils.
76756
76757         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
76758         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
76759         on some systems one must include <grp.h> before it.
76760         Reported by Christian Krackowizer.
76761
76762 2004-03-30  Jim Meyering  <jim@meyering.net>
76763
76764         Merge from coreutils.
76765
76766         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
76767
76768         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
76769         an empty input stream.
76770
76771         * lib/readtokens.c: Include <stdbool.h>.
76772         (readtoken): Use `size_t' rather than int/long.
76773         All callers adjusted.
76774         Use `bool' rather than `int' where appropriate.
76775         Use memset rather than an explicit loop.
76776         Use x2nrealloc rather than xrealloc.
76777         Allow the use of `\0' as a delimiter.
76778         (readtokens): Likewise.
76779         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
76780
76781 2004-03-30  Jim Meyering  <jim@meyering.net>
76782
76783         * m4/realloc.m4: Remove file, since now it does no more than
76784         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
76785         the `configure.ac' section of module/realloc.
76786         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
76787
76788 2004-03-30  Bruno Haible  <bruno@clisp.org>
76789
76790         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
76791         nonnull.
76792
76793 2004-03-29  Paul Eggert  <eggert@twinsun.com>
76794
76795         Merge changes to getloadavg.c from coreutils and Emacs.
76796
76797         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
76798         Define to an expression, not to the empty string.
76799         Include cloexec.h and xalloc.h.
76800         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
76801         Use set_cloexec_flag rather than rolling our own.
76802         * lib/cloexec.c, lib/cloexec.h: New files.
76803
76804 2004-03-29  Paul Eggert  <eggert@twinsun.com>
76805
76806         * m4/cloexec.m4: New file.
76807
76808 2004-03-18  Paul Eggert  <eggert@twinsun.com>
76809
76810         * lib/getopt.h: Sync with libc CVS.
76811
76812 2004-03-18  Paul Eggert  <eggert@twinsun.com>
76813             Bruno Haible  <bruno@clisp.org>
76814
76815         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
76816         mbswidth.
76817
76818 2004-03-18  Paul Eggert  <eggert@twinsun.com>
76819             Bruno Haible  <bruno@clisp.org>
76820
76821         * lib/mbswidth.h: Include <wchar.h> only if
76822         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
76823         <wchar.h>.
76824         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
76825
76826 2004-03-09  Paul Eggert  <eggert@twinsun.com>
76827
76828         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
76829         Sync with libc CVS.
76830         * lib/getopt_int.h: New file, also synced from libc.
76831
76832 2004-03-09  Paul Eggert  <eggert@twinsun.com>
76833
76834         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
76835         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
76836         Bring back getopt.c, getopt.h, getopt1.c.
76837
76838 2004-03-07  Paul Eggert  <eggert@twinsun.com>
76839
76840         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
76841         All uses changed.  Check for sa_sigaction member; this fixes
76842         a bug first reported by Jason Andrade in
76843         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
76844
76845 2004-03-07  Paul Eggert  <eggert@twinsun.com>
76846
76847         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
76848         '#if' expressions.  Unlike the code it replaces, it does not
76849         depend on (defined _SC_PAGESIZE).  However, it does depend on
76850         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
76851         first reported by Jason Andrade in
76852         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
76853
76854 2004-02-25  Simon Josefsson  <jas@extundo.com>
76855
76856         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
76857
76858 2004-02-25  Simon Josefsson  <jas@extundo.com>
76859
76860         * lib/strdup.h: New file.
76861         * lib/strdup.c: Include it.
76862         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
76863         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
76864
76865 2004-02-23  Karl Berry  <karl@gnu.org>
76866
76867         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
76868         (from fencepost.gnu.org:/gd/gnuorg).
76869
76870 2004-02-23  Karl Berry  <karl@gnu.org>
76871
76872         * config/srclistvars.sh (GNUORG) [karl]: redefine.
76873         * config/srclist.txt: add maintain/standards documents.
76874
76875 2004-02-18  Bruno Haible  <bruno@clisp.org>
76876
76877         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
76878         Reported by Derek Robert Price <derek@ximbiot.com>.
76879
76880 2004-02-16  Karl Berry  <karl@gnu.org>
76881
76882         * config/mkinstalldirs, install-sh: update from automake.
76883
76884 2004-02-06  Karl Berry  <karl@gnu.org>
76885
76886         * m4/po.m4: update from gettext 0.14.1.
76887
76888 2004-02-06  Karl Berry  <karl@gnu.org>
76889
76890         * lib/config.charset: update from gettext 0.14.1.
76891
76892 2004-02-05  Paul Eggert  <eggert@twinsun.com>
76893
76894         Add comments and code, prompted by suggestions from Bruno Haible
76895         for sh-quote.
76896         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
76897         describing the enum quoting_style values.
76898         * lib/quotearg.c (quotearg_alloc): New function.
76899         (quotearg_buffer_restyled): Treat lone { and } as special.
76900         Treat = as special.  Work around bug with older shells
76901         that "see" a '\' that is really the 2nd byte of a multibyte char.
76902         Quote empty string with shell_quoting_style.
76903
76904 2004-02-03  Bruno Haible  <bruno@clisp.org>
76905
76906         * m4/pipe.m4: New file, from GNU gettext.
76907
76908 2004-02-03  Bruno Haible  <bruno@clisp.org>
76909
76910         * lib/pipe.h: New file, from GNU gettext.
76911         * lib/pipe.c: New file, from GNU gettext.
76912
76913 2004-01-27  Bruno Haible  <bruno@clisp.org>
76914
76915         * m4/execute.m4: New file, from GNU gettext.
76916
76917 2004-01-27  Bruno Haible  <bruno@clisp.org>
76918
76919         * lib/execute.h: New file, from GNU gettext.
76920         * lib/execute.c: New file, from GNU gettext.
76921         * lib/w32spawn.h: New file, from GNU gettext.
76922
76923 2004-01-24  Paul Eggert  <eggert@twinsun.com>
76924
76925         Merge from diffutils.
76926
76927         * lib/file-type.c (file_type): Add typed memory objects.
76928         * lib/file-type.h (S_TYPEISTMO): New macro.
76929
76930         * lib/c-stack.h (c_stack_action): Remove argv argument.
76931         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
76932         (die): Don't calculate message unless segv_action returns.
76933         (get_stack_location, min_address_from_argv, max_address_from_argv,
76934         volatile stack_base, volatile_stack_size): Remove.
76935         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
76936         that every segmentation violation is a stack overflow.  (Ouch!)
76937         See Debian bug 136249 (still outstanding) for more info about why
76938         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
76939
76940 2004-01-24  Paul Eggert  <eggert@twinsun.com>
76941
76942         Exit-status fix from coreutils.
76943
76944         Use exit_failure consistently in place of EXIT_FAILURE,
76945         so that program exit statuses are consistent on failure.
76946
76947         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
76948         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
76949         * lib/argmatch.h: Comment fix to match the above.
76950         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
76951         Now a macro referring to exit_failure, instead of a separate
76952         variable.  Include "exitfail.h" to get it.
76953         * lib/xstrtol.h: Include "exitfail.h".
76954         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
76955
76956         * lib/long-options.c (parse_long_options): Use prototype
76957         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
76958         for clarity.
76959
76960 2004-01-21  Jim Meyering  <jim@meyering.net>
76961
76962         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
76963         so as not to conflict with a different-sized __mktime_internal
76964         function in GNU libc.
76965         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
76966         Problem building statically-linked `ls' reported by Michael Brunnbauer.
76967
76968 2004-01-20  Karl Berry  <karl@gnu.org>
76969
76970         * config/config.guess: update from config.
76971
76972         * config/srclistvars.sh: GNUWWWLICENSES for karl.
76973
76974 2004-01-20  Bruno Haible  <bruno@clisp.org>
76975
76976         Safer stack allocation.
76977         * lib/setenv.c: Include allocsa.h.
76978         (alloca): Remove fallback definition.
76979         (freea): Remove macro.
76980         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
76981         instead of freea.
76982
76983 2004-01-20  Bruno Haible  <bruno@clisp.org>
76984
76985         * m4/eealloc.m4: New file, from GNU gettext.
76986
76987 2004-01-20  Bruno Haible  <bruno@clisp.org>
76988
76989         * m4/allocsa.m4: New file, from GNU gettext.
76990
76991 2004-01-20  Bruno Haible  <bruno@clisp.org>
76992
76993         * lib/xallocsa.h: New file, from GNU gettext.
76994         * lib/xallocsa.c: New file, from GNU gettext.
76995
76996 2004-01-20  Bruno Haible  <bruno@clisp.org>
76997
76998         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
76999
77000 2004-01-20  Bruno Haible  <bruno@clisp.org>
77001
77002         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
77003         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
77004         specially.
77005
77006 2004-01-20  Bruno Haible  <bruno@clisp.org>
77007
77008         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
77009         patch.
77010
77011 2004-01-20  Bruno Haible  <bruno@clisp.org>
77012
77013         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
77014
77015 2004-01-20  Bruno Haible  <bruno@clisp.org>
77016
77017         * lib/eealloc.h: New file.
77018
77019 2004-01-20  Bruno Haible  <bruno@clisp.org>
77020
77021         * lib/binary-io.h: Avoid warnings on Cygwin.
77022
77023 2004-01-20  Bruno Haible  <bruno@clisp.org>
77024
77025         * lib/allocsa.h: New file, from GNU gettext.
77026         * lib/allocsa.c: New file, from GNU gettext.
77027
77028 2004-01-18  Karl Berry  <karl@gnu.org>
77029
77030         * doc/gpl.texi, doc/lgpl.texi: new files.
77031
77032 2004-01-18  Karl Berry  <karl@gnu.org>
77033
77034         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
77035         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
77036
77037 2004-01-15  Paul Eggert  <eggert@twinsun.com>
77038
77039         Merge from coreutils.
77040
77041         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
77042         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
77043         (gl_DEFAULT_POSIX2_VERSION): Move
77044         the documentation from 'configure' into 'config.hin',
77045         so that 'configure --help' isn't burdened by it and
77046         we don't have to worry about its formatting there.
77047         Reword the documentation so that it's more succinct
77048         and can be run together into a single paragraph.
77049         * m4/same.m4 (gl_SAME): Check for pathconf.
77050
77051 2004-01-15  Paul Eggert  <eggert@twinsun.com>
77052
77053         Merge from coreutils.
77054
77055         * lib/posixver.c: Include posixver.h.
77056
77057         * lib/same.c: Include <stdbool.h>, <limits.h>.
77058         (_POSIX_NAME_MAX): Define if not defined.
77059         (MIN): New macro.
77060         (same_name): If file names are silently truncated, report
77061         that the file names are the same if they are the same after
77062         the silent truncation.
77063
77064         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
77065         conversion function.
77066         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
77067         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
77068         longer needed.
77069
77070 2004-01-15  Jim Meyering  <jim@meyering.net>
77071
77072         Merge from coreutils.
77073
77074         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
77075         if no library is required.
77076         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
77077         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
77078         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
77079         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
77080         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
77081         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
77082         value, $ac_cv_search_crypt, if it's "none required".
77083         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
77084         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
77085         not gl_FUNC_GETLOADAVG.
77086         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
77087         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
77088
77089 2004-01-15  Jim Meyering  <jim@meyering.net>
77090
77091         Merge from coreutils.
77092
77093         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
77094         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
77095         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
77096
77097         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
77098         optional configure-time default.
77099
77100         * lib/version-etc.c (version_etc_copyright): Update copyright date.
77101
77102         * lib/xreadlink.c (xreadlink): Correct outdated comment.
77103
77104 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
77105
77106         Merge from coreutils.
77107
77108         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
77109         value, $ac_cv_search_nanosleep, if it's "none required".
77110
77111 2004-01-14  Paul Eggert  <eggert@twinsun.com>
77112
77113         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
77114         with like-named macro in fnmatch.c.
77115         (EXT): Use an internal constant instead.
77116
77117         Merge fnmatch patches from glibc.
77118         * lib/fnmatch.c (mbsinit): Remove define.
77119         Add libc_hidden_ver (__fnmatch, fnmatch).
77120         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
77121         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
77122
77123 2004-01-14  Karl Berry  <karl@gnu.org>
77124
77125         * config/install-sh: update from automake.
77126
77127 2004-01-13  Karl Berry  <karl@gnu.org>
77128
77129         * config/install-sh: update from automake.
77130
77131 2004-01-09  Karl Berry  <karl@gnu.org>
77132
77133         * config/install-sh: update from automake.
77134
77135 2004-01-05  Karl Berry  <karl@gnu.org>
77136
77137         * config/config.{sub,guess}: update from config.
77138
77139 2003-12-31  Karl Berry  <karl@gnu.org>
77140
77141         * config/depcomp: update from automake.
77142
77143 2003-12-14  Karl Berry  <karl@gnu.org>
77144
77145         * lib/config.charset: update from gettext-runtime.
77146
77147 2003-12-03  Paul Eggert  <eggert@twinsun.com>
77148
77149         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
77150         Bug reported by Alfred M. Szmidt.
77151
77152 2003-12-03  Bruno Haible  <bruno@clisp.org>
77153
77154         * m4/gettext.m4: Upgrade from gettext-0.13.
77155         * m4/po.m4: Upgrade from gettext-0.13.
77156         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
77157         * m4/intmax.m4: New file, from gettext-0.13.
77158         * m4/printf-posix.m4: New file, from gettext-0.13.
77159
77160 2003-11-29  Karl Berry  <karl@gnu.org>
77161
77162         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
77163
77164 2003-11-25  Paul Eggert  <eggert@twinsun.com>
77165             Bruno Haible  <bruno@clisp.org>
77166
77167         * lib/printf-parse.h: Don't include sys/types.h.
77168         (ARG_NONE): New macro.
77169         (char_directive): Change type of *arg_index fields to size_t.
77170         * lib/printf-parse.c: Don't include sys/types.h.
77171         (SSIZE_MAX): Remove macro.
77172         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
77173         Remove unnecessary overflow check.
77174         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
77175         fields.
77176
77177 2003-11-25  Bruno Haible  <bruno@clisp.org>
77178
77179         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
77180
77181 2003-11-25  Bruno Haible  <bruno@clisp.org>
77182
77183         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
77184         gt_TYPE_SSIZE_T.
77185
77186 2003-11-24  Paul Eggert  <eggert@twinsun.com>
77187
77188         * modules/alloca: Remove dependency on xalloc.
77189
77190 2003-11-24  Paul Eggert  <eggert@twinsun.com>
77191
77192         * lib/alloca.c: Remove dependency on xalloc module.
77193         (xalloc_die): Remove.
77194         (memory_full) [!defined emacs]: New macro.
77195         [!defined emacs]: Don't include xalloc.h.
77196         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
77197         address arithmetic overflows.  Change datatypes a bit to avoid
77198         unnecessary casts.
77199
77200 2003-11-22  Jim Meyering  <jim@meyering.net>
77201
77202         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
77203         s/size/size_t/.
77204
77205 2003-11-21  Karl Berry  <karl@gnu.org>
77206
77207         * config/config.{sub,guess}: update from config.
77208
77209 2003-11-18  Karl Berry  <karl@gnu.org>
77210
77211         * config/config.{sub,guess}: update from config.
77212
77213         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
77214
77215 2003-11-17  Paul Eggert  <eggert@twinsun.com>
77216
77217         * README: Mention that S+T cannot overflow if S is the size of
77218         an existing object and T is sufficiently small.
77219
77220 2003-11-17  Jim Meyering  <jim@meyering.net>
77221
77222         On systems without utime and without a utimes function capable of
77223         dealing with a NULL struct utimbuf* argument, this utime replacement
77224         could -- in unusual circumstances -- leak a file descriptor.
77225         * lib/utime.c: Include <unistd.h> and <errno.h>.
77226         (utime_null): Be sure to close `fd' and to preserve errno.
77227         Reported by Geoff Collyer via Arnold Robbins.
77228
77229 2003-11-17  Bruno Haible  <bruno@clisp.org>
77230
77231         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
77232         (Depends-on): Add xsize.
77233
77234 2003-11-17  Bruno Haible  <bruno@clisp.org>
77235
77236         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
77237
77238 2003-11-17  Bruno Haible  <bruno@clisp.org>
77239
77240         * lib/vasnprintf.c (alloca): Remove fallback definition.
77241         (freea): Remove definition.
77242         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
77243         Reported by Paul Eggert.
77244
77245 2003-11-16  Paul Eggert  <eggert@twinsun.com>
77246             Bruno Haible  <bruno@clisp.org>
77247
77248         Protect against address arithmetic overflow.
77249         * lib/printf-args.h: Include stddef.h.
77250         (arguments): Change type of field 'count' to size_t.
77251         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
77252         'unsigned int' where appropriate.
77253         * lib/printf-parse.h: Include sys/types.h.
77254         (char_directive): Change type of *arg_index fields to ssize_t.
77255         (char_directives): Change type of fields 'count', max_*_length to
77256         size_t.
77257         * lib/printf-parse.c: Include sys/types.h and xsize.h.
77258         (SSIZE_MAX): Define fallback value.
77259         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
77260         instead of 'int' where appropriate. Check a_allocated, d_allocated
77261         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
77262         * lib/vasnprintf.c: Include xsize.h.
77263         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
77264         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
77265         overflow. Avoid wraparound when converting a width or precision from
77266         decimal to binary.
77267
77268 2003-11-16  Bruno Haible  <bruno@clisp.org>
77269
77270         Update from GNU gettext.
77271         * lib/printf-parse.c: Generalize to it can be compiled for wide
77272         strings.
77273         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
77274         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
77275         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
77276         SNPRINTF): New macros.
77277         Don't include <alloca.h> if the file is used inside libintl.
77278         (local_wcslen): New function, for Solaris 2.5.1.
77279         (VASNPRINTF): Use it instead of wcslen.
77280
77281 2003-11-16  Bruno Haible  <bruno@clisp.org>
77282
77283         * lib/xsize.h (xmax): New function.
77284         (xsum, xsum3, xsum4): Declare as "pure" functions.
77285
77286 2003-11-12  Paul Eggert  <eggert@twinsun.com>
77287
77288         * modules/xalloc (Files): Undo latest change, since xalloc.h
77289         no longer needs SIZE_MAX or PTRDIFF_MAX.
77290
77291 2003-11-12  Paul Eggert  <eggert@twinsun.com>
77292
77293         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
77294         gl_PTRDIFF_MAX.
77295
77296 2003-11-12  Paul Eggert  <eggert@twinsun.com>
77297
77298         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
77299         "return", to pacify some unknown compiler.  Problem reported
77300         by Joerg Schilling.
77301
77302 2003-11-12  Paul Eggert  <eggert@twinsun.com>
77303
77304         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
77305         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
77306         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
77307         heuristic is just as accurate as far as we know, and it removes a
77308         dependency on size_max.m4 and ptrdiff_max.m4.
77309
77310 2003-11-11  Bruno Haible  <bruno@clisp.org>
77311
77312         * modules/xsize (Files): Add m4/size_max.m4.
77313         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
77314
77315 2003-11-11  Bruno Haible  <bruno@clisp.org>
77316
77317         * m4/size_max.m4: New file.
77318         * m4/ptrdiff_max.m4: New file.
77319         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
77320         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
77321         (gl_XALLOC): Invoke it.
77322
77323 2003-11-11  Bruno Haible  <bruno@clisp.org>
77324
77325         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
77326         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
77327         defined.
77328
77329 2003-11-10  Paul Eggert  <eggert@twinsun.com>
77330
77331         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
77332         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
77333         rejected some allocations of exactly SIZE_MAX - 2 bytes.
77334         From Bruno Haible.
77335         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
77336         not (size_t) -1, since it's defined here.
77337
77338 2003-11-09  Karl Berry  <karl@gnu.org>
77339
77340         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
77341
77342 2003-11-06  Paul Eggert  <eggert@twinsun.com>
77343
77344         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
77345         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
77346         Reject sizes of exactly SIZE_MAX bytes.
77347         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
77348         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
77349
77350 2003-11-05  Bruno Haible  <bruno@clisp.org>
77351
77352         * lib/xsize.h: Include limits.h, to avoid a possible collision with
77353         SIZE_MAX defined in <limits.h> on Solaris.
77354
77355 2003-11-04  Jim Meyering  <jim@meyering.net>
77356
77357         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
77358         variable names, rather than @VAR@.
77359         * modules/poll: Likewise.
77360
77361 2003-11-04  Bruno Haible  <bruno@clisp.org>
77362
77363         * modules/xsize: New file.
77364         * modules/linebreak: Depend on xsize.
77365         * MODULES.html.sh (func_all_modules): Add xsize.
77366
77367 2003-11-04  Bruno Haible  <bruno@clisp.org>
77368
77369         * m4/xsize.m4: New file.
77370
77371 2003-11-04  Bruno Haible  <bruno@clisp.org>
77372
77373         * lib/xsize.h: New file.
77374         * lib/linebreak.c: Include xsize.h.
77375         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
77376         argument for overflow.
77377         Suggested by Paul Eggert.
77378
77379 2003-11-03  Karl Berry  <karl@gnu.org>
77380
77381         * config/config.{guess,sub}: update from config.
77382
77383 2003-11-03  Jim Meyering  <jim@meyering.net>
77384
77385         * modules/userspec (lib_SOURCES): Add userspec.h.
77386         (Include): Add "userspec.h".
77387         Improve description.
77388
77389 2003-11-03  Jim Meyering  <jim@meyering.net>
77390
77391         * lib/userspec.c: Include "userspec.h".
77392         * lib/userspec.h: New file.
77393
77394 2003-11-03  Bruno Haible  <bruno@clisp.org>
77395
77396         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
77397
77398 2003-11-03  Bruno Haible  <bruno@clisp.org>
77399
77400         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
77401         available, to avoid (extremely rare) race condition.
77402         Suggested by Paul Eggert.
77403
77404 2003-11-02  Karl Berry  <karl@gnu.org>
77405
77406         * config/srclist.txt (vasprintf.c): sync broken, sigh.
77407
77408 2003-10-31  Paul Eggert  <eggert@twinsun.com>
77409
77410         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
77411         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
77412         (read_filesystem_list): Set and use me_type_malloced.
77413         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
77414         whatever the type happens to be), for brevity and consistency.
77415         Check for size calculation overflow on Alphas running OSF/1.
77416
77417 2003-10-31  Jim Meyering  <jim@meyering.net>
77418
77419         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
77420
77421         * lib/linebuffer.c: Include <string.h> for declaration of memset.
77422
77423 2003-10-30  Paul Eggert  <eggert@twinsun.com>
77424             Bruno Haible  <bruno@clisp.org>
77425
77426         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
77427         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
77428
77429 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
77430
77431         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
77432         netbsd*-gnu*.  Suggested by Robert Millan.
77433
77434 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77435
77436         * modules/group-member: Depend on stdbool.
77437
77438 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77439
77440         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
77441
77442 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77443
77444         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
77445         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
77446         after the 'gnu' in these cases.  This fixes some bugs in the
77447         previous change, and is based on suggestions by Robert Millan.
77448
77449 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77450
77451         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
77452         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
77453         no longer needed.
77454         * lib/quotearg.c (quotearg_n_options): Use it.
77455         * lib/group-member.c: Include <stdbool.h>.
77456         (free_group_info): Arg is now const *; don't free arg.
77457         (get_group_info): Now returns bool and accepts struct group_info *,
77458         rather than returning a malloc'ed struct group_info *.
77459         All uses changed.  Check for overflow in internal size calculation.
77460
77461         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
77462         rather than xmalloc/xrealloc.
77463         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
77464         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
77465         conformance bug: the old code used a pointer after freeing the
77466         storage that it addressed.
77467         * lib/hash.c (hash_initialize): Simplify the code by using
77468         xalloc_oversized rather than doing it by hand.
77469         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
77470         the buffer preserved.  Use free and xmalloc instead.
77471         * lib/quotearg.c (quotearg_n_options): Likewise.
77472         Use a simpler test for size overflow.  Don't use xalloc_oversized
77473         because unsigned int might be wider than size_t (!); this suggests
77474         that we should switch from unsigned int to size_t for slot numbers.
77475
77476 2003-10-28  Paul Eggert  <eggert@twinsun.com>
77477
77478         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
77479         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
77480         NetBSD kernels.  Requested by Richard Stallman.
77481
77482 2003-10-27  Paul Eggert  <eggert@twinsun.com>
77483
77484         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
77485         to allocate the returned structure.  Do not allocate a subarray,
77486         as x2nrealloc will do that.
77487         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
77488         instead of xnrealloc.
77489         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
77490
77491 2003-10-27  Bruno Haible  <bruno@clisp.org>
77492
77493         * lib/stdbool_.h: Better support for BeOS.
77494
77495 2003-10-26  Paul Eggert  <eggert@twinsun.com>
77496
77497         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
77498         now uses inline.
77499
77500 2003-10-26  Paul Eggert  <eggert@twinsun.com>
77501
77502         * lib/xalloc.h (xalloc_oversized): New static inline function, for
77503         callers that want to do their own size-overflow checking.  Include
77504         <stdbool.h>, since xalloc_oversized returns bool.
77505         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
77506         to use xalloc_oversized.
77507
77508         Add two functions x2realloc, x2nrealloc, for programs that grow
77509         arrays dynamically by doubling their sizes.
77510         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
77511         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
77512         New functions.
77513
77514         Port to C99 semantics for 'inline' of external functions.
77515         Bug reported by Bruno Haible.
77516         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
77517         with the old contents of xnmalloc.
77518         (xnmalloc, xmalloc): Use it.
77519         (xnrealloc_inline): New static inline function,
77520         with the old contents of xnrealloc.
77521         (xnrealloc, xrealloc): Use it.
77522
77523         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
77524         that.
77525
77526 2003-10-26  Karl Berry  <karl@gnu.org>
77527
77528         * config/srclist.txt (COPYING.DOC): no longer available from
77529         /gd/gnuorg; don't know where the ultimate source is.
77530
77531 2003-10-25  Paul Eggert  <eggert@twinsun.com>
77532
77533         Fix several address-calculation bugs in the hash modules,
77534         plus some minor code cleanup.
77535
77536         * lib/hash.h: Include <stdbool.h>, for bool.
77537         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
77538         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
77539         hash_get_n_entries, hash_get_max_bucket_length,
77540         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
77541         hash_rehash): Use size_t rather than unsigned.
77542         * lib/hash.c (struct hash_table, hash_get_n_buckets,
77543         hash_get_n_buckets_used, hash_get_n_entries,
77544         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
77545         hash_get_entries, hash_do_for_each, hash_string, is_prime,
77546         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
77547         Likewise.
77548         (SIZE_MAX): Define if not defined.
77549         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
77550         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
77551         hash_print):
77552         Use const * when possible.
77553         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
77554         (check_tuning): Fix bug: if tuning parameters were very close to
77555         0 or 1, rounding errors could have caused subscript violations.
77556         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
77557         (hash_initialize): Add 'fail:' label
77558         to free table and return NULL, and use it to simplify code.
77559         Use calloc rather than clearing the storage ourself.
77560         (hash_initialize, hash_rehash): Check for arithmetic overflow in
77561         buffer size calculations.
77562         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
77563         Include <stddef.h>, for size_t.
77564         * lib/hash-pjw.c (hash_pjw): Likewise.
77565         Switch to method described by Bruno Haible.
77566         Include <limits.h>, for CHAR_BIT.
77567         (SIZE_BITS): New macro.
77568
77569 2003-10-23  Paul Eggert  <eggert@twinsun.com>
77570
77571         * m4/getline.m4 (AM_FUNC_GETLINE):
77572         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
77573         hosts.  Problem reported by Derek Robert Price in
77574         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
77575         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
77576         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
77577
77578 2003-10-21  Paul Eggert  <eggert@twinsun.com>
77579
77580         * lib/getndelim2.c (getndelim2): When size calculation overflows,
77581         ceiling the allocation at NMAX bytes rather than silently
77582         discarding input bytes before NMAX is reached.  This makes
77583         a difference only if NMAX exceeds SIZE_MAX / 2.
77584
77585         * lib/obstack.c: Merge from glibc.
77586         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
77587         Add libc_hidden_def (_obstack_newchunk).
77588         (_obstack_free) [! defined _LIBC]: Remove.
77589         [defined _LIBC]: Make a strong alias from obstack_free, rather than
77590         a clone of the function body.
77591         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
77592         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
77593
77594         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
77595         glibc.
77596         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
77597         arg to memcpy.
77598
77599         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
77600         (obstack_ptr_grow_fast, obstack_int_grow_fast):
77601         Don't use lvalue casts, as GCC plans to remove support for them
77602         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
77603         was also present in the non-GCC version, indicating that this
77604         code had always been buggy and had never been widely used.
77605         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
77606         Use the fast variant of each macro, rather than copying the
77607         definiens of the fast variant; that way, we'll be more likely to
77608         catch future bugs in the fast variants.
77609
77610 2003-10-20  Bruno Haible  <bruno@clisp.org>
77611
77612         * modules/wait-process: New file.
77613         * MODULES.html.sh (func_all_modules): Add wait-process.
77614
77615 2003-10-20  Bruno Haible  <bruno@clisp.org>
77616
77617         * m4/wait-process.m4: New file.
77618
77619 2003-10-20  Bruno Haible  <bruno@clisp.org>
77620
77621         * lib/wait-process.h: New file, from GNU gettext.
77622         * lib/wait-process.c: New file, from GNU gettext.
77623
77624 2003-10-19  Jim Meyering  <jim@meyering.net>
77625
77626         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
77627         HPUX 10.20.
77628
77629 2003-10-18  Karl Berry  <karl@gnu.org>
77630
77631         * config/config.guess: update from config.
77632
77633 2003-10-16  Paul Eggert  <eggert@twinsun.com>
77634
77635         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
77636         (getgroups): First arg is int, not size_t.
77637         Don't let 'free' mangle errno.
77638
77639 2003-10-16  Paul Eggert  <eggert@twinsun.com>
77640
77641         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
77642
77643 2003-10-16  Karl Berry  <karl@gnu.org>
77644
77645         * config/config.{guess,sub}: update from config.
77646
77647 2003-10-16  Jim Meyering  <jim@meyering.net>
77648
77649         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
77650         memcpy.
77651
77652 2003-10-15  Paul Eggert  <eggert@twinsun.com>
77653
77654         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
77655         (SIZE_MAX): Remove.
77656         (new_exclude, add_exclude_file): Initial size no longer needs to
77657         be a power of 2.
77658         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
77659         our own address arithmetic overflow checking.
77660
77661         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
77662         (fnmatch): Do not alloca more than 2000 wide characters;
77663         instead, use malloc for large buffers.
77664         Check for address arithmetic overflow, and return -1
77665         with errno set to ENOMEM in that case.
77666         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
77667         (NEW_PATTERN): Do not alloca more than 8000 bytes;
77668         instead, return -1.  Check for address arithmetic overflow.
77669
77670 2003-10-14  Paul Eggert  <eggert@twinsun.com>
77671
77672         Handle invalid suffixes and overflow independently, so that
77673         callers can treat them independently as needed.  Fix some bugs in
77674         suffix handling, e.g., "100k@" was not diagnosed as an invalid
77675         suffix for a human-readable blocksize.  The major caller-visible
77676         change is the addition of a new
77677         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
77678         that both overflow and suffix chars were found.
77679
77680         * lib/human.c (humblock): Don't check separately for invalid suffix
77681         char; that is xstrtoumax's job (now that its bug is fixed).
77682         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
77683         INTMAX_MAX]: New macros.
77684         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
77685         TYPE_MAXIMUM): New macros.
77686         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
77687         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
77688         if overflow occurs, as it's what __strtol does and it's more useful
77689         in practice.
77690         (__xstrtol): If __strtol reports some error other than ERANGE,
77691         reflect it to the caller as LONGINT_INVALID.  If it reports
77692         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
77693         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
77694         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
77695         value.
77696         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
77697         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
77698         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
77699         [defined UINTMAX_MAX]: New macros.
77700
77701 2003-10-14  Bruno Haible  <bruno@clisp.org>
77702
77703         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
77704
77705 2003-10-14  Bruno Haible  <bruno@clisp.org>
77706
77707         * m4/sig_atomic_t: New file, from GNU gettext.
77708         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
77709
77710 2003-10-14  Bruno Haible  <bruno@clisp.org>
77711
77712         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
77713         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
77714         Also use volatile where needed.
77715
77716 2003-10-12  Paul Eggert  <eggert@twinsun.com>
77717
77718         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
77719         Change maintainer from Bruno Haible to 'all'.
77720
77721 2003-10-12  Paul Eggert  <eggert@twinsun.com>
77722
77723         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
77724
77725 2003-10-12  Paul Eggert  <eggert@twinsun.com>
77726
77727         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
77728         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
77729         and define in terms of the other primitives.
77730         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
77731         (SIZE_MAX): Define if not already defined.
77732         (array_size_overflow): New function.
77733         (xalloc_die): Abort instead of exiting if 'error' returns.
77734         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
77735         (xmalloc, xrealloc): Use them.
77736         (xcalloc): Check for address arithmetic overflow.
77737         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
77738         a bit faster than strcpy.
77739
77740 2003-10-10  Simon Josefsson  <jas@extundo.com>
77741
77742         * modules/argp (Depends-on): Add restrict and strcase.
77743
77744 2003-10-10  Simon Josefsson  <jas@extundo.com>
77745
77746         * m4/argp.m4: Add AC_C_INLINE.
77747
77748 2003-10-08  Paul Eggert  <eggert@twinsun.com>
77749
77750         Merge getpass from libc, plus a few fixes.
77751
77752         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
77753         Include <stdbool.h>.
77754         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
77755         __fsetlocking to empty.
77756         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
77757         do include <bits/libc-lock.h>.
77758         Do not include <fcntl.h>; not needed.
77759         [_LIBC]: Include <wchar.h>.
77760         (NOTCANCEL_MODE): New macro.
77761         (flockfile, funlockfile) [_LIBC]: New macros.
77762         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
77763         [!_LIBC]: New macros.
77764         (call_fclose): New function.
77765         (getpass): Use it.  Save tty stream separately; this simplifies the
77766         code and makes it more reliable if stdin happens to equal stdout.
77767         Invoke __fsetlocking on tty.
77768         Handle thread cancellation if needed.
77769         Namespace cleanup (use __tcgetattr, __getline).
77770         Use bool for Booleans.
77771         [USE_IN_LIBIO]: Handle wide streams.
77772         [!_LIBC]: Unconditionally do the fseek, since we don't know what
77773         stream might go where.
77774
77775         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
77776         doesn't have to include <stdio.h> before us.
77777         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
77778         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
77779         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
77780         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
77781         if not declared, so that we can use getpass.c code from libc without
77782         rewriting it.
77783         (flockfile, ftrylockfile, funlockfile): New macros.
77784
77785 2003-10-08  Paul Eggert  <eggert@twinsun.com>
77786
77787         * modules/getpass: Depend on stdbool.
77788
77789 2003-10-08  Paul Eggert  <eggert@twinsun.com>
77790
77791         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
77792
77793 2003-10-07  Karl Berry  <karl@gnu.org>
77794
77795         * config/config.{guess,sub}: update from config.
77796
77797 2003-10-06  Jim Meyering  <jim@meyering.net>
77798             Bruno Haible  <bruno@clisp.org>
77799
77800         This lets translators provide better translations for the
77801         "Written by ..." part of --version output.
77802         * lib/version-etc.h: Include stdarg.h.
77803         (version_etc_copyright): Declare as readonly.
77804         (version_etc): Make this function variadic with a NULL-terminated list
77805         of author name strings.
77806         (version_etc_va): New declaration.
77807         * lib/version-etc.c: Include stdarg.h, stdlib.h.
77808         (version_etc_copyright): Declare as readonly.
77809         (version_etc_va): New function. Provide a different translatable string
77810         for each possible number of authors < 10. Abbreviate when there are 10
77811         authors or more.
77812         (version_etc): Make this function variadic. Call version_etc_va.
77813         Suggestion from Gary V. Vaughan.
77814
77815         * lib/long-options.h (parse_long_options): Change prototype: the
77816         authors string is moved to the end and becomes variadic.
77817         * lib/long-options.c: Include stdarg.h.
77818         (parse_long_options): Make this function variadic, too.
77819         Call version_etc_va, not version_etc.
77820
77821 2003-10-06  Bruno Haible  <bruno@clisp.org>
77822
77823         * modules/version-etc-2: Remove file.
77824         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
77825
77826 2003-10-06  Bruno Haible  <bruno@clisp.org>
77827
77828         * modules/fatal-signal: New file.
77829         * MODULES.html.sh (func_all_modules): Add fatal-signal.
77830
77831 2003-10-06  Bruno Haible  <bruno@clisp.org>
77832
77833         * m4/fatal-signal.m4: New file.
77834         * m4/signalblocking.m4: New file, from GNU gettext.
77835
77836 2003-10-06  Bruno Haible  <bruno@clisp.org>
77837
77838         * lib/version-etc-2.h: Remove file.
77839         * lib/version-etc-2.c: Remove file.
77840
77841 2003-10-06  Bruno Haible  <bruno@clisp.org>
77842
77843         * lib/fatal-signal.h: New file, from GNU gettext.
77844         * lib/fatal-signal.c: New file, from GNU gettext.
77845
77846 2003-10-05  Paul Eggert  <eggert@twinsun.com>
77847
77848         * README: Rework advice for preventing empty .o files.
77849         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
77850         not <sys/types.h>.
77851
77852 2003-10-04  Karl Berry  <karl@gnu.org>
77853
77854         * lib/argp*: update from libc.
77855
77856 2003-10-04  Karl Berry  <karl@gnu.org>
77857
77858         * config/config.{guess,sub}: update from config.
77859
77860 2003-10-02  Bruno Haible  <bruno@clisp.org>
77861
77862         * modules/lchown (Include): Add lchown.h.
77863         * modules/time_r (Include): Use "..." syntax.
77864         * modules/xgetdomainname (Include): Add xgetdomainname.h.
77865
77866 2003-10-01  Simon Josefsson  <jas@extundo.com>
77867
77868         * MODULES.html.sh (func_all_modules): Move gethostname from section
77869         'based on' to section 'lacking' POSIX:2001.
77870
77871 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
77872
77873         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
77874         to output mode on the same stream.
77875
77876 2003-09-29  Paul Eggert  <eggert@twinsun.com>
77877
77878         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
77879         Fix arg typo in previous patch.
77880
77881 2003-09-28  Jim Meyering  <jim@meyering.net>
77882
77883         * lib/error.c: Correct cpp indentation.
77884
77885 2003-09-27  Paul Eggert  <eggert@twinsun.com>
77886
77887         * modules/free: New file.
77888
77889 2003-09-27  Paul Eggert  <eggert@twinsun.com>
77890
77891         * m4/free.m4: New file.
77892
77893 2003-09-27  Paul Eggert  <eggert@twinsun.com>
77894
77895         * lib/minmax.h (MIN, MAX)
77896         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
77897         Omit the special code that used __typeof__, since we worry that
77898         it could be more trouble than it's worth.  See:
77899         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
77900         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
77901
77902         * lib/free.c: New file.
77903
77904 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
77905
77906         Trivial fixes to Makefile.am parts of module listings.
77907         * modules/strstr: Append strstr.h to lib_SOURCES.
77908         * modules/strcase: Likewise, for strcase.h.
77909
77910 2003-09-27  Karl Berry  <karl@gnu.org>
77911
77912         * config/mkinstalldirs: update from automake.
77913
77914 2003-09-26  Paul Eggert  <eggert@twinsun.com>
77915
77916         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
77917         (error_tail): Do not loop, reallocating temporary buffer, since
77918         the output cannot contain more wide characters than the input
77919         contains bytes, the size must be big enough already.  This avoids
77920         one potential size overflow calculation.  Check for size overflow
77921         when calculating temporary buffer size.  Free temporary buffer
77922         when done, if it was allocated with malloc; this plugs a memory
77923         leak.  Remove casts from void * to pointers, that are no longer
77924         needed now that we're assuming C89 or better.
77925
77926         Merge error changes from glibc.
77927
77928         * lib/error.c, error.h: Update copyright notice header to match glibc.
77929         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
77930         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
77931         Disable cancellation while printing error.
77932         * lib/error.h: Prepend __ to parameter names.
77933
77934 2003-09-26  Jim Meyering  <jim@meyering.net>
77935
77936         * lib/error.c (error_tail): Move some declarations
77937         into inner scope where the local variables are used.
77938
77939 2003-09-26  Bruno Haible  <bruno@clisp.org>
77940
77941         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
77942         stpncpy().
77943         Don't define stpncpy through config.h; it's now done through stpncpy.h.
77944
77945 2003-09-26  Bruno Haible  <bruno@clisp.org>
77946
77947         * lib/stpncpy.h (gnu_stpncpy): New declaration.
77948         (stpncpy): Define as alias for gnu_stpncpy.
77949         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
77950
77951 2003-09-25  Simon Josefsson  <jas@extundo.com>
77952
77953         * lib/xgetdomainname.h: New file.
77954         * lib/xgetdomainname.c: New file.
77955
77956 2003-09-25  Simon Josefsson  <jas@extundo.com>
77957             Bruno Haible  <bruno@clisp.org>
77958
77959         * modules/getdomainname: New file.
77960         * modules/xgetdomainname: New file.
77961         * MODULES.html.sh (func_all_modules): Add getdomainname,
77962         xgetdomainname.
77963
77964 2003-09-25  Simon Josefsson  <jas@extundo.com>
77965             Bruno Haible  <bruno@clisp.org>
77966
77967         * m4/getdomainname.m4: New file.
77968
77969 2003-09-25  Simon Josefsson  <jas@extundo.com>
77970             Bruno Haible  <bruno@clisp.org>
77971
77972         * lib/getdomainname.h: New file.
77973         * lib/getdomainname.c: New file.
77974
77975 2003-09-25  Karl Berry  <karl@gnu.org>
77976
77977         * lib/argp-fmtstream.c, argp-help.c: update from libc.
77978
77979 2003-09-25  Karl Berry  <karl@gnu.org>
77980
77981         * config/install-sh: update from automake.
77982
77983 2003-09-25  Bruno Haible  <bruno@clisp.org>
77984
77985         * modules/version-etc-2: New file, from modules/version-etc with
77986         modifications.
77987         * MODULES.html.sh (func_all_modules): Add version-etc-2.
77988
77989 2003-09-25  Bruno Haible  <bruno@clisp.org>
77990
77991         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
77992         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
77993
77994 2003-09-24  Simon Josefsson  <jas@extundo.com>
77995
77996         * modules/xgethostname: Add xgethostname.h.
77997
77998 2003-09-24  Paul Eggert  <eggert@twinsun.com>
77999
78000         * lib/linebuffer.c (freebuffer): Don't free the argument, just
78001         the buffer associated with the argument.  Bug reported by
78002         Simon Josefsson.
78003
78004 2003-09-24  Paul Eggert  <eggert@twinsun.com>
78005
78006         * README: Document assumptions that 'int' is at least 32 bits
78007         wide, that integer arithmetic is 2's complement without overflow,
78008         that there are no holes in integer values, that adding sizes of
78009         two nonoverlapping objects can't overflow, and that all-bits-zero
78010         yields scalar zero.  Fix spelling and capitalization typos.
78011
78012 2003-09-19  Karl Berry  <karl@gnu.org>
78013
78014         * lib/argp.h: update from libc.
78015
78016 2003-09-17  Paul Eggert  <eggert@twinsun.com>
78017
78018         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
78019         to avoid spurious warnings like "AC_RUN_IFELSE was called before
78020         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
78021
78022 2003-09-17  Paul Eggert  <eggert@twinsun.com>
78023
78024         * gnulib-tool: Use "test -h", not "test -L", for portability
78025         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
78026         (tags_regexp): Remove, since \| doesn't conform to POSIX.
78027         (sed_extract_prog): Issue s commands one-by-one, rather than
78028         using \| in one s command.
78029
78030 2003-09-16  Paul Eggert  <eggert@twinsun.com>
78031
78032         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
78033         input error, instead of returning NULL the next time we are called
78034         (and therefore losing track of errno).
78035
78036 2003-09-16  Bruno Haible  <bruno@clisp.org>
78037
78038         * gnulib-tool (func_create_testdir): Warn about duplicated
78039         dependencies.
78040
78041 2003-09-15  Paul Eggert  <eggert@twinsun.com>
78042
78043         * modules/argmatch, modules/fatal, modules/obstack,
78044         modules/xalloc, modules/xgethostname: Sort dependencies by
78045         importance, not alphabetically.
78046
78047 2003-09-15  Paul Eggert  <eggert@twinsun.com>
78048
78049         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
78050         fails, so that the caller gets the proper errno.
78051
78052         * lib/readutmp.c (read_utmp): Likewise.
78053         Check for fstat error.  Close stream and free storage
78054         when failing.
78055
78056 2003-09-14  Karl Berry  <karl@gnu.org>
78057
78058         * config/srclist.txt (strdup.c): disable for c89 changes.
78059
78060 2003-09-14  Jim Meyering  <jim@meyering.net>
78061
78062         * lib/getloadavg.c: Correct cpp indentation.
78063         * lib/strdup.c: Likewise.
78064         * lib/vasnprintf.c: Likewise.
78065
78066 2003-09-14  Bruno Haible  <bruno@clisp.org>
78067
78068         * modules/fwriteerror: New file.
78069         * MODULES.html.sh (func_all_modules): Add fwriteerror.
78070
78071 2003-09-14  Bruno Haible  <bruno@clisp.org>
78072
78073         * lib/fwriteerror.h: New file.
78074         * lib/fwriteerror.c: New file.
78075
78076 2003-09-12  Paul Eggert  <eggert@twinsun.com>
78077
78078         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
78079         modules/xgethostname, modules/xalloc: Depend on exit.
78080
78081 2003-09-12  Paul Eggert  <eggert@twinsun.com>
78082
78083         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
78084
78085         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
78086         and AC_MINIX, too, so that their extensions are available.
78087
78088         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
78089         This macro has been superseded by gl_BACKUPFILE.
78090
78091         More patches to assume C89 or better.
78092
78093         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
78094
78095         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
78096         unconditionally.
78097         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
78098         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
78099         Include <string.h>, <stdlib.h> unconditionally.
78100         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
78101         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
78102         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
78103         headers or for string.h.
78104         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
78105         or strtoul.
78106
78107         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
78108         headers.
78109         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
78110         * m4/userspec.m4 (gl_USERSPEC): Likewise.
78111         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
78112         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
78113         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
78114         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
78115         memcpy, memset.
78116         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
78117         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
78118         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
78119         strtol.
78120         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
78121         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
78122         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
78123         strtoul.
78124
78125 2003-09-12  Paul Eggert  <eggert@twinsun.com>
78126
78127         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
78128         * lib/obstack.c [!defined _LIBC]: Likewise.
78129         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
78130         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
78131         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
78132
78133         More changes to assume C89 or better.
78134
78135         * lib/error.c (error_tail): Assume vprintf.
78136
78137         * lib/argmatch.c (getenv): Remove decl.
78138         * lib/progreloc.c (get_full_program_name): Define via prototype.
78139         * lib/setenv.c (clearenv): Likewise.
78140         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
78141         needed.
78142         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
78143         (malloc, memcpy): Remove decls.
78144         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
78145         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
78146         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
78147         (memcpy): Remove macro.
78148         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
78149         (__P): Remove.  All uses removed.
78150         (PTR): Remove.  All uses changed to void *.
78151         (CHAR_BIT, NULL): Remove.
78152         (spaces, zeros, memset_space, memset_zero)
78153         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
78154         Remove.
78155         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
78156         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
78157         Define with prototype.
78158         Remove now-unnecessary prototype decl.
78159         (extra_args_spec): Assume ANSI C.  All uses changed.
78160         (extra_args_spec_iso): Remove.
78161         (my_strftime, emacs_strftimeu): Define via prototype.
78162         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
78163         unconditionally.
78164         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
78165         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
78166         (strtoul, strtol): Remove decls.
78167         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
78168         LONG_MAX): Remove.
78169         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
78170         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
78171         (LOCALE_PARAM_PROTO): New macro.
78172         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
78173         (INTERNAL (strtol), strtol): Define with a prototype.
78174         (PARAMS): Remove.  All uses removed.
78175         * lib/tempname.c: Include <string.h> unconditionally.
78176         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
78177         * lib/xgethostname.c (main): Define with a prototype.
78178         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
78179         Include <stdlib.h> unconditionally.
78180         (calloc, malloc, realloc, free): Remove decls.
78181         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
78182         Include <stdlib.h> unconditionally.  Sort include file names.
78183         (strtod): Remove.
78184         (xstrtod): Define with a prototype.
78185         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
78186         (strtol, strtoul): Remove decls.
78187
78188 2003-09-11  Paul Eggert  <eggert@twinsun.com>
78189
78190         More patches to assume C89 or better.
78191         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
78192         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
78193         string.h, memchr, STDC_HEADERS.
78194
78195 2003-09-11  Paul Eggert  <eggert@twinsun.com>
78196
78197         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
78198         Include <stdlib.h>, <string.h> unconditionally.
78199         Remove now-unnecessary cast to char *.
78200         * lib/strnlen.c: Include <string.h> unconditionally.
78201         * lib/yesno.c (yesno): Define with a prototype.
78202
78203 2003-09-11  Bruno Haible  <bruno@clisp.org>
78204
78205         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
78206
78207 2003-09-10  Jim Meyering  <jim@meyering.net>
78208
78209         * lib/error.c: Correct indentation of cpp directives.
78210
78211 2003-09-10  Bruno Haible  <bruno@clisp.org>
78212
78213         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
78214         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
78215         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
78216         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
78217         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
78218         <stdlib.h> and <string.h> checks.
78219         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
78220         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
78221
78222 2003-09-10  Bruno Haible  <bruno@clisp.org>
78223
78224         * lib/strcspn.c: Include <string.h> unconditionally.
78225         * lib/strpbrk.c: Include <string.h> unconditionally.
78226         * lib/strstr.c: Include <string.h> unconditionally.
78227         * lib/unicodeio.c: Include <string.h> unconditionally.
78228         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
78229         * lib/unsetenv.c: Likewise.
78230         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
78231         * lib/yesno.c: Include <stdlib.h> unconditionally.
78232         (rpmatch): Add prototype.
78233
78234 2003-09-09  Paul Eggert  <eggert@twinsun.com>
78235
78236         More patches to assume C89 or better.
78237         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
78238         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
78239         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
78240         or for string.h.
78241         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
78242         stdlib.h.
78243         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
78244         C headers.
78245         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
78246         string.h.
78247         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
78248         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
78249         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
78250         or for string.h.
78251         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
78252         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
78253         C headers.
78254         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
78255         memcpy.
78256         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
78257         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
78258         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
78259         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
78260         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
78261         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
78262         string.h, free.
78263         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
78264         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
78265         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
78266         C headers, or for string.h.
78267         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
78268         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
78269         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
78270         headers, memory.h, stdlib.h, string.h, strings.h.
78271         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
78272         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
78273         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
78274         strchr.
78275         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
78276         headers, memory.h, string.h.
78277         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
78278         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
78279         free.
78280         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
78281         headers.
78282         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
78283         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
78284         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
78285         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
78286         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
78287
78288 2003-09-09  Paul Eggert  <eggert@twinsun.com>
78289
78290         More K&R removal.
78291
78292         * lib/acosl.c (main): Use a prototype.
78293         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
78294         tanl.c: Likewise.
78295
78296         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
78297
78298         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
78299         (getopt, etopt_long, getopt_long_only, _getopt_internal)
78300         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
78301         with a prototype.
78302         * lib/getopt.c (const): Remove macro.
78303         Include <string.h> unconditionally.
78304         (my_index): Remove; all uses changed to strchr.
78305         (strlen): Remove decl.
78306         (exchange): Remove forward decl; no longer needed.
78307         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
78308         Define with prototype.
78309         * lib/getopt1.c (const): Remove macro.
78310         (getopt_long, getopt_long_only, main): Define with prototype.
78311
78312         * lib/getugroups.c: Include <string.h> unconditionally.
78313
78314         * lib/getusershell.c: Include <stdlib.h> unconditionally.
78315         (getusershell, setusershell, endusershell, readname, main):
78316         Define with prototypes.
78317
78318         * lib/group-member.c: Include group-member.h first.
78319         Include <stdlib.h> unconditionally.
78320
78321         * lib/hard-locale.c: Include hard-locale.h first.
78322         Include <stdlib.h>, <string.h> unconditionally.
78323
78324         * lib/hash.c (free, malloc): Remove decls.
78325         Include <stdlib.h> unconditionally.
78326
78327         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
78328         (getenv): Do not declare.
78329
78330         * lib/idcache.c: Include <string.h> unconditionally.
78331
78332         * lib/long-options.c: Include long-options.h first, to test interface.
78333         Include <stdlib.h> unconditionally.
78334
78335         * lib/makepath.c: Include makepath.h first, to test interface.
78336         Include <stdlib.h> and <string.h> unconditionally.
78337
78338         * lib/linebuffer.c: Include <stdlib.h>.
78339         (free): Remove decl.
78340
78341         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
78342         stddef.h. rpl_malloc returns void *, not char *.
78343         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
78344         prototype.
78345
78346         * lib/md5.h: Include <limits.h> unconditionally.
78347         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
78348         (__P): Remove; all uses removed.
78349         * lib/md5.c: Include "md5.h" first.
78350         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
78351         md5_buffer, md5_process_bytes, md5_process_block):
78352         Define with prototypes.
78353         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
78354         * lib/sha.c: Include "sha.h" first.
78355         Include <stdlib.h>, <string.h> unconditionally.
78356
78357         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
78358         * lib/memcmp.c (__ptr_t): Likewise.
78359         * lib/memrchr.c (__ptr_t): Likewise.
78360         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
78361         Include <string.h> unconditionally.
78362         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
78363         * lib/memchr.c: Include <stdlib.h> unconditionally.
78364         * lib/memchr.c (LONG_MAX): Remove.
78365         * lib/memrchr.c (LONG_MAX): Likewise.
78366         * lib/memchr.c (__memchr): Define via a prototype.
78367         * lib/memrchr.c (__memrchr): Likewise.
78368         * lib/memcmp.c (__P): Remove, and remove all uses.
78369         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
78370         Remove forward decls; no longer needed.
78371         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
78372         Use types required by C89 in prototype.
78373
78374         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
78375         * lib/savedir.c: Likewise.
78376         * lib/mkdir.c (free): Remove decl.
78377         * lib/rmdir.c (rmdir): Define with a prototype.
78378         * lib/savedir.c: Include savedir.h first, to test interface.
78379
78380         * lib/mktime.c (STDC_HEADERS): Remove.
78381         Include <stdlib.h>, <string.h> unconditionally.
78382
78383         * lib/modechange.c: Include <stdlib.h> unconditionally.
78384         (malloc): Remove decl.
78385
78386         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
78387         (free): Remove decl.
78388
78389         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
78390         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
78391         (This type really should be intptr_t, but that's a C99ism.)
78392         (_obstack_memcpy): Remove: all uses changed to memcpy.
78393         Include <string.h> unconditionally.
78394         (struct obstack): Assume __STDC__ for types of members
78395         chunkfun, freefun, extra_arg.
78396         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
78397         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
78398         obstack_begin, obstack_specify_allocation,
78399         obstack_specify_allocation_with_arg, obstack_chunkfun,
78400         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
78401         Remove unprototyped decls and the macros that use them.
78402         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
78403         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
78404         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
78405         (defined __STDC__ && __STDC__)]:
78406         Remove nonprototyped code.
78407         Include <stdlib.h> unconditionally.
78408         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
78409         _obstack_allocated_p, _obstack_free, obstack_free,
78410         _obstack_memory_used, print_and_abort):
78411         Define using prototypes.
78412         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
78413         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
78414         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
78415         obstack_next_free, obstack_object_size, obstack_room) [0]:
78416         Remove unused, unprototyped code.
78417
78418         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
78419
78420         * lib/physmem.c (physmem_total, physmem_available, main): Define
78421         with prototypes.
78422
78423         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
78424         (main): Define with a prototype.
78425
78426         * lib/posixver.c (getenv): Remove decl.
78427
78428         * lib/putenv.c (malloc): Returns void *, not char *.
78429         Include <string.h> unconditionally.
78430         (strchr, memcpy, NULL): Do not define.
78431
78432         * lib/readtokens.c: Include readtokens.h first, to test interface.
78433         Include <stdlib.h>, <string.h> unconditionally.
78434         (init_tokenbuffer): Define with a prototype.
78435
78436         * lib/regex.c (PARAMS): Remove.  All uses removed.
78437         All uses of _RE_ARGS removed, too.
78438         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
78439         unconditionally.
78440         (bzero): Assume memset exists.
78441         (memcmp, memcpy, NULL): Remove.
78442         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
78443         char, or assignments to local vars of type signed char.
78444         (init_syntax_once, PREFIX(extract_number_and_incr),
78445         PREFIX(print_partial_compiled_pattern),
78446         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
78447         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
78448         PREFIX(regex_grow_registers), PREFIX(regex_compile),
78449         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
78450         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
78451         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
78452         wcs_compile_range, byte_compile_range, truncate_wchar,
78453         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
78454         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
78455         count_mbs_length, wcs_re_match_2_internal,
78456         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
78457         PREFIX(alt_match_null_string_p),
78458         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
78459         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
78460         regfree, PREFIX(extract_number)): Define with prototype.  Remove
78461         now-unnecessary declaration, if any.
78462         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
78463         regcomp, regexec):
78464         Remove now-unnecessary casts among pointer types.
78465         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
78466
78467         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
78468         (free): Remove decl.
78469
78470         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
78471
78472         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
78473         (free): Remove decl.
78474
78475         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
78476         * lib/xgetcwd.c: Likewise.
78477
78478         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
78479         (free): Remove decl.
78480
78481         * lib/strchrnul.c (strchrnul): Define with a prototype.
78482         Fix bug: c_in was not converted to char before searching.
78483
78484         The following changes are not K&R related:
78485
78486         * lib/group-member.h: Include <sys/types.h>, so that this file is
78487         self-contained.
78488         * lib/makepath.h: Likewise.
78489
78490         * lib/getusershell.c (readname, default_index, line_size, readname):
78491         Use size_t, not int, for sizes.
78492         (readname): If the size overflows, report an error instead of
78493         looping forever.
78494
78495 2003-09-09  Paul Eggert  <eggert@twinsun.com>
78496
78497         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
78498         libc.
78499
78500 2003-09-09  Paul Eggert  <eggert@twinsun.com>
78501
78502         * README: New section: portability guidelines.
78503
78504 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
78505
78506         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
78507         C89 spec.
78508
78509 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
78510
78511         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
78512
78513 2003-09-08  Paul Eggert  <eggert@twinsun.com>
78514
78515         Assume C89 or better; remove K&R cruft.
78516         A few of these changes were first proposed by Derek Robert Price
78517         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
78518
78519         * lib/addext.c: Include <string.h> unconditionally.
78520         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
78521         Don't declare getenv or malloc.
78522
78523         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
78524         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
78525         (NULL): Remove.
78526         (find_stack_direction, alloca): Use prototypes.
78527
78528         * lib/atexit.c (atexit): Define using a prototype.
78529
78530         * lib/basename.c, dirname.c, stripslash.c:
78531         Include <string.h> unconditionally.
78532
78533         * lib/bcopy.c: Include <stddef.h>.
78534         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
78535
78536         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
78537
78538         * lib/error.h (error, error_at_line, error_print_progname)
78539         [! (defined (__STDC__) && __STDC__)]: Remove decls.
78540         * lib/error.c: Include error.h first, to check interface.
78541         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
78542         (VA_START): Remove; all uses changeed to va_start.
78543         (exit, strerror): Remove decls.
78544         (error_print_progname): Prototype uncondionally.
78545         Don't include <errno.h>; no longer needed.
78546         (private_strerror): Remove.
78547         (error_tail): Always define.
78548         (error, error_at_line): Assume C89 or better; always use prototypes.
78549         * lib/fatal.c: Include "fatal.h" first, to test interface.
78550         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
78551         (VA_START): Remove; all uses changed to va_start.
78552         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
78553         this case.
78554         (exit): Remove decl.
78555         (fatal): Prototype unconditionally.  Assume va_start works.
78556         Abort at end, to pacify gcc.
78557
78558         * lib/euidaccess.c (main): Define with a prototype.
78559
78560         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
78561
78562         * lib/exitfail.c: Include <stdlib.h> unconditionally.
78563
78564         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
78565         prototypes.
78566         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
78567         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
78568         (getenv): Remove decl.
78569         (fnmatch): Define using a prototype.
78570         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
78571         (FCT): Define using a prototype.
78572
78573         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
78574
78575         * lib/gethostname.c: Include <stddef.h>.
78576         (gethostname): Define with prototype.  Length is size_t, not int.
78577
78578 2003-09-08  Paul Eggert  <eggert@twinsun.com>
78579
78580         Assume C89 or better; remove K&R cruft.
78581         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
78582         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
78583         string.h, getenv, malloc.
78584         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
78585         headers.
78586         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
78587         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
78588         do not check for strerror.
78589         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
78590         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
78591         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
78592         do not check for doprnt or vprintf.
78593         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
78594         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
78595
78596 2003-09-08  Paul Eggert  <eggert@twinsun.com>
78597
78598         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
78599         getversion.c should have been removed then, but was accidentally
78600         preserved.
78601
78602         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
78603         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
78604
78605 2003-09-08  Karl Berry  <karl@gnu.org>
78606
78607         * config/config.sub, config.guess, srclistvars.sh: update from savannah
78608                 config, forget about prep.
78609
78610         * config/depcomp, missing: update from automake.
78611
78612 2003-09-07  Paul Eggert  <eggert@twinsun.com>
78613
78614         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
78615         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
78616
78617 2003-09-07  Paul Eggert  <eggert@twinsun.com>
78618
78619         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
78620         copy_tm_result.  Bug reported by Simon Josefsson in
78621         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
78622
78623 2003-09-06  Paul Eggert  <eggert@twinsun.com>
78624
78625         * m4/time_r.m4: New file.
78626         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
78627         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
78628         is. Check for timegm declaration.
78629         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
78630         Do not check for gmtime_r.
78631         Replace mktime if __mktime_internal does not exist and if mktime
78632         hasn't been replaced already.
78633
78634 2003-09-06  Paul Eggert  <eggert@twinsun.com>
78635
78636         * lib/time_r.c, lib/time_r.h: New files.
78637
78638         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
78639         __localtime_r.
78640         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
78641         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
78642
78643         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
78644         __gmtime_r.
78645         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
78646         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
78647         Include <time_r.h>.
78648
78649         * lib/timegm.c: Switch to glibc implementation, with the following
78650         changes:
78651         [defined HAVE_CONFIG_H]: Include <config.h>.
78652         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
78653         (__mktime_internal) [!defined _LIBC]: New decl.
78654         (__gmtime_r) [!defined _LIBC]: New macro and function.
78655         (timegm): Use a prototype, since gnulib assumes C89.
78656         Do not bother declaring tmp to be const, as it's not really usefu.
78657         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
78658         (timegm): Declare only if HAVE_DECL_TIMEGM.
78659
78660 2003-09-06  Paul Eggert  <eggert@twinsun.com>
78661
78662         * MODULES.html.sh (func_all_modules): Add time_r.
78663         * modules/time_r: New file.
78664         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
78665         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
78666
78667 2003-09-03  Paul Eggert  <eggert@twinsun.com>
78668
78669         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
78670         Bug reported by Lute Kamstra in
78671         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
78672
78673         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
78674         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
78675         course with correspondingly smaller numbers for tomorrow and
78676         yesterday.  From Tadayoshi Funaba.  Originally installed into
78677         sh-utils on 1999-08-07, but the patch got lost (I guess during the
78678         coreutils merge?).
78679
78680 2003-08-31  Simon Josefsson  <jas@extundo.com>
78681
78682         * modules/timegm: New file.
78683         * MODULES.html.sh (func_all_modules): Add timegm.
78684
78685 2003-08-31  Simon Josefsson  <jas@extundo.com>
78686
78687         * m4/timegm.m4: New file.
78688
78689 2003-08-31  Simon Josefsson  <jas@extundo.com>
78690
78691         * lib/timegm.h: New file.
78692         * lib/timegm.c: New file.  Based on
78693         wget-1.8.2/src/http.c:mktime_from_utc.
78694
78695 2003-08-31  Karl Berry  <karl@gnu.org>
78696
78697         * lib/argp.h: update from libc.
78698
78699 2003-08-28  Bruno Haible  <bruno@clisp.org>
78700
78701         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
78702         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
78703         followed by '#define fnmatch fnmatch_posix' gives an error.
78704
78705 2003-08-28  Bruno Haible  <bruno@clisp.org>
78706
78707         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
78708         warning on QNX, which defines O_BINARY to 000000.
78709
78710 2003-08-27  Jim Meyering  <jim@meyering.net>
78711
78712         * m4/mkstemp.m4: Require that the system mkstemp be able to create
78713         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
78714         would fail after 32.  Reported by Danny Levinson.  Details here:
78715         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
78716
78717 2003-08-24  Bruno Haible  <bruno@clisp.org>
78718
78719         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
78720         MSVC7 <stdio.h> is included later.
78721
78722 2003-08-22  Simon Josefsson  <jas@extundo.com>
78723
78724         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
78725
78726 2003-08-20  Karl Berry  <karl@gnu.org>
78727
78728         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
78729
78730 2003-08-20  Bruno Haible  <bruno@clisp.org>
78731
78732         * modules/progname: New file.
78733         * MODULES.html.sh (func_all_modules): Add progname.
78734
78735 2003-08-20  Bruno Haible  <bruno@clisp.org>
78736
78737         * lib/progname.h: New file, from GNU gettext.
78738         * lib/progname.c: New file, from GNU gettext.
78739         * lib/progreloc.c: New file, from GNU gettext.
78740
78741 2003-08-19  Jim Meyering  <jim@meyering.net>
78742
78743         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
78744         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
78745
78746 2003-08-19  Bruno Haible  <bruno@clisp.org>
78747
78748         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
78749         more.
78750
78751 2003-08-19  Bruno Haible  <bruno@clisp.org>
78752
78753         * lib/xstrdup.c: Assume <string.h> exists.
78754
78755 2003-08-18  Paul Eggert  <eggert@twinsun.com>
78756
78757         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
78758         in makefile rules.
78759
78760 2003-08-18  Jim Meyering  <jim@meyering.net>
78761
78762         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
78763         * m4/lib-ld.m4: Likewise.
78764
78765 2003-08-18  Jim Meyering  <jim@meyering.net>
78766
78767         * lib/setenv.h: Indent nested cpp directive.
78768         * lib/vasnprintf.c: Remove trailing blanks.
78769
78770 2003-08-17  Simon Josefsson  <jas@extundo.com>
78771
78772         * modules/xstrndup: New file.
78773         * MODULES.html.sh (func_all_modules): Add xstrndup.
78774
78775 2003-08-17  Simon Josefsson  <jas@extundo.com>
78776
78777         * modules/argp: Fix autoconf macro name. Add more dependencies.
78778
78779 2003-08-17  Simon Josefsson  <jas@extundo.com>
78780
78781         * m4/xstrndup.m4: New file.
78782
78783 2003-08-17  Simon Josefsson  <jas@extundo.com>
78784
78785         * m4/argp.m4: New file.
78786
78787 2003-08-17  Simon Josefsson  <jas@extundo.com>
78788             Bruno Haible  <bruno@clisp.org>
78789
78790         * lib/xstrndup.h: New file.
78791         * lib/xstrndup.c: New file.
78792
78793 2003-08-17  Bruno Haible  <bruno@clisp.org>
78794
78795         * modules/strndup (Files, Include): Add lib/strndup.h.
78796
78797 2003-08-17  Bruno Haible  <bruno@clisp.org>
78798
78799         * modules/euidaccess (Files): Add lib/euidaccess.h.
78800
78801 2003-08-17  Bruno Haible  <bruno@clisp.org>
78802
78803         * lib/strndup.h: New file.
78804
78805 2003-08-17  Bruno Haible  <bruno@clisp.org>
78806
78807         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
78808         like AC_GNU_SOURCE.
78809         * modules/extensions (configure.ac): Comment out the invocation of
78810         gl_USE_SYSTEM_EXTENSIONS.
78811
78812 2003-08-16  Paul Eggert  <eggert@twinsun.com>
78813
78814         Merges from coreutils, etc.
78815         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
78816         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
78817         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
78818         fixing a typo.
78819         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
78820         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
78821
78822 2003-08-16  Paul Eggert  <eggert@twinsun.com>
78823
78824         Document merge from coreutils.
78825         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
78826         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
78827         * modules/utime: Add m4/utimes-null.m4.
78828
78829 2003-08-16  Paul Eggert  <eggert@twinsun.com>
78830
78831         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
78832         space, undoing this 2003-08-12 change:
78833         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
78834
78835 2003-08-16  Paul Eggert  <eggert@twinsun.com>
78836
78837         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
78838         strtoul.c from libc, undoing this 2003-08-12 change:
78839         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
78840
78841 2003-08-16  Jim Meyering  <jim@meyering.net>
78842
78843         Merges from coreutils.
78844         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
78845         prefix.  Adjust cache variables similarly.  Create 500 rather than
78846         just 300 files, to exercise bug on Darwin6.5, too.
78847         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
78848         $missing_dir.
78849         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
78850         AM_SYS_POSIX_TERMIOS.
78851         Reported by mkc@mathdogs.com.
78852         Also change use of $am_cv_sys_posix_termios
78853         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
78854         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
78855         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
78856         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
78857         in /proc/mounts until it finds one with matching device number.  This
78858         is unnecessary when the FILE argument *is* a mount point.  No stat call
78859         is necessary in that case.  So, disable the statvfs-testing code on
78860         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
78861         as RedHat bug# 84846.
78862         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
78863         to 1MB, so as not to render systems with no stack size limit (e.g.,
78864         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
78865         Include <unistd.h>.  On some systems,
78866         it is required for the definition of _SC_PAGESIZE.
78867
78868 2003-08-16  Jim Meyering  <jim@meyering.net>
78869
78870         Merge from coreutils.
78871         * lib/xstrtoimax.c: #else #if -> #elif.
78872         * lib/xstrtoumax.c: Likewise.
78873
78874 2003-08-16  Jim Meyering  <jim@meyering.net>
78875
78876         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
78877         * m4/utimes.m4: Removed.
78878         * m4/utimes-null.m4: Renamed from utimes.m4.
78879
78880         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
78881         to 1MB, so as not to render systems with no stack size limit (e.g.,
78882         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
78883         Include <unistd.h>.  On some systems,
78884         it is required for the definition of _SC_PAGESIZE.
78885
78886 2003-08-16  Jim Meyering  <jim@meyering.net>
78887         and Paul Eggert  <eggert@cs.ucla.edu>
78888
78889         Merges from coreutils, etc.
78890
78891         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
78892         using the latest version from cvs.  This avoids problems with #line
78893         directives using a vendor (Sun) compiler.
78894         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
78895         Don't set GETGROUPS_LIB here; now it's
78896         done via getgroups.m4's wrapper function.
78897         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
78898         rather than just in sh-util/configure.in, so that the
78899         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
78900         same.
78901         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
78902         AC_FUNC_GETLOADAVG where to find getloadavg.c.
78903         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
78904         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
78905         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
78906         Remove code that is now done by the newly-required macros.
78907         Append $(EXEEXT) to DF_PROG.
78908         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
78909         Do not invoke or require the following here,
78910         since prereq.m4 or some gnulib .m4 now does this for us:
78911         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
78912         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
78913         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
78914         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
78915         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
78916         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
78917         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
78918         AC_FUNC_OBSTACK.
78919         Do not replace the following functions, as this is now the job
78920         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
78921         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
78922         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
78923         atexit getpass, strdup, getpagesize.
78924         Replace 'raise'.
78925         Do not check for the following functions, as this is now the job
78926         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
78927         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
78928         setregid.
78929         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
78930         Check for sys/sysctl.h.
78931         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
78932         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
78933         of checking for ssize_t ourselves.
78934
78935         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
78936         Require every macro that gnulib/modules/* suggests for us.
78937         (jm_PREREQ_ADDEXT): New macro.
78938         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
78939         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
78940
78941         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
78942         (gl_PHYSMEM): Use it.
78943         Also check for `table' function.
78944         Check for new headers and functions.
78945         Add check for sys/sysmp.h.
78946         With suggestions from Kaveh Ghazi.
78947         Ignore headers that are present but cannot be compiled.  This
78948         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
78949         C 5.4.
78950
78951 2003-08-15  Paul Eggert  <eggert@twinsun.com>
78952
78953         Document merge from coreutils.
78954         * modules/userspec: Depend on posixver.
78955         * modules/strftime: Depend on tzset.
78956
78957 2003-08-15  Paul Eggert  <eggert@twinsun.com>
78958
78959         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
78960         rather than tab, after '#' in shell-script copyright notices.
78961         Suggested by Bruno Haible.
78962
78963 2003-08-15  Paul Eggert  <eggert@twinsun.com>
78964
78965         * config/srclist-update: Use three spaces, rather than tab, after '#'
78966         in shell-script copyright notices.  Suggested by Bruno Haible.
78967         Remove unnecessary parenthesization in regular expression.
78968
78969 2003-08-15  Jim Meyering  <jim@meyering.net>
78970
78971         Merge from coreutils.
78972         * lib/xgethostname.c: Include <stdlib.h>.
78973         (xghostname): Don't exit for anything other than memory-related
78974         failure; just return NULL.
78975         * lib/userspec.c: Include "posixver.h".
78976         (parse_user_spec): Accept `.' as a separator only
78977         in pre-POSIX-200112 mode.
78978         * lib/strtoimax.c: Use #elif rather than #else #if.
78979         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
78980         Remove function, now that we can rely on a working tzset function.
78981         [!_LIBC]: Ensure that the required autoconf test has been run.
78982         [!defined _NL_CURRENT && HAVE_STRFTIME]:
78983         Use underlying_strftime for %r.
78984         * lib/sha.c: Merge in some clean-up and optimization changes from
78985         glibc.
78986         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
78987         Ensure that it is a multiple of 64.
78988         Rearrange loop exit tests so as to avoid performing an
78989         additional fread after encountering an error or EOF.
78990         * lib/realloc.c: Update copyright date.
78991
78992 2003-08-15  Jim Meyering  <jim@meyering.net>
78993         and Paul Eggert  <eggert@twinsun.com>
78994
78995         Merge from coreutils.
78996         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
78997         member but strut utmpx does not.  Needed for AIX 4.3.3.
78998         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
78999
79000 2003-08-15  Jim Meyering  <jim@meyering.net>
79001         and Paul Eggert  <eggert@cs.ucla.edu>
79002
79003         Merges from coreutils, etc.
79004         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
79005         Require gl_FUNC_TZSET_CLOBBER.
79006         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
79007         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
79008         members.
79009
79010 2003-08-14  Paul Eggert  <eggert@twinsun.com>
79011
79012         Help the merge from coreutils.
79013         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
79014         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
79015         * m4/tzset.m4: Use it too.
79016
79017 2003-08-14  Paul Eggert  <eggert@twinsun.com>
79018
79019         * modules/tzset: New file.
79020
79021 2003-08-14  Jim Meyering  <jim@meyering.net>
79022
79023         Merges from coreutils.
79024         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
79025         variable names, rather than @FNMATCH_H@.
79026         * modules/alloca: Likewise for $(ALLOCA_H).
79027
79028         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
79029         the three copies of the literal target, `fnmatch.h'.
79030         * modules/alloca (alloca.h): Likewise.
79031
79032 2003-08-14  Jim Meyering  <jim@meyering.net>
79033
79034         Merge from coreutils.
79035         * m4/tzset.m4: New file.
79036         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
79037         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
79038         otherwise, AIX 5.1 systems would end up using the latter.
79039         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
79040         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
79041         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
79042         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
79043
79044 2003-08-14  Jim Meyering  <jim@meyering.net>
79045
79046         Merge from coreutils.
79047         * lib/obstack.h: Whitespace changes.
79048         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
79049         and xcalloc return values.
79050         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
79051         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
79052         hang on OSF/1 5.1 for DIR on both local and remote file systems.
79053         Reported by (and fix confirmed by) Nelson H. F. Beebe.
79054         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
79055         error from mntctl.
79056         Use mntctl's return value to drive the entry-processing loop, since
79057         we can't rely on the value of the vmt_length member in the last
79058         entry.  On some systems doing so could result in exhausting
79059         virtual memory.  Based in part on a patch from Mike Jetzer.
79060
79061 2003-08-14  Jim Meyering  <jim@meyering.net>
79062         and Paul Eggert  <eggert@twinsun.com>
79063
79064         Merges from coreutils, plus other fixes.
79065         * lib/physmem.c: Merge in portability changes from gcc/libiberty
79066         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
79067         for credits and details.  Thanks to Kaveh Ghazi for helping
79068         to keep these files in sync.
79069         (ARRAY_SIZE): Define it.
79070         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
79071         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
79072         (memcasecmp): Don't assume size_t fits in unsigned int.
79073         Remove casts and duplicate code.
79074         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
79075         (memcpy): Remove definition.
79076         Merge in some clean-up and optimization changes from glibc.
79077         [BLOCKSIZE]: Move definition to top of file.
79078         Ensure that it is a multiple of 64.
79079         Rearrange loop exit tests so as to avoid performing an
79080         additional fread after encountering an error or EOF.
79081         * lib/md5.h (md5_uintptr): Define.
79082         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
79083         return to the initial working directory.  Preserve errno
79084         for caller.
79085         * lib/idcache.c: Include "xalloc.h".
79086         (xmalloc, xrealloc): Remove decls.
79087         (getuser): Remove casts no longer required in C89.
79088         * lib/human.c: Include stdio.h, for sprintf.
79089         * lib/group-member.c: Include "xalloc.h".
79090         (xmalloc, xrealloc): Remove decls.
79091         (get_group_info): Remove casts no longer required in C89.
79092         * lib/getusershell.c (readname): Remove casts no longer required in
79093         C89.
79094         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
79095         * lib/getline.c: Whitespace fix, from coreutils.
79096
79097 2003-08-13  Paul Eggert  <eggert@twinsun.com>
79098
79099         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
79100         Check for isascii.
79101
79102         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
79103         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
79104         Undo previous (whitespace-only) change.
79105
79106 2003-08-13  Paul Eggert  <eggert@twinsun.com>
79107
79108         * lib/exclude.c: Include <ctype.h>
79109         (IN_CTYPE_DOMAIN): New macro.
79110         (is_space): New fn.
79111         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
79112         and empty lines.
79113
79114         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
79115         Undo previous (whitespace-only) change.
79116
79117 2003-08-13  Paul Eggert  <eggert@twinsun.com>
79118
79119         * config/srclist-update: Change update back to the old behavior,
79120         leaving whitespace alone.  Use one 'sed' command rather than a
79121         pipeline.
79122         (fixlicense): Now a variable, not a function.
79123         (remove_trailing_blanks): Remove.
79124         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
79125         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
79126         Undo previous (whitespace-only) change.
79127
79128 2003-08-12  Paul Eggert  <eggert@twinsun.com>
79129
79130         Merge from coreutils.
79131         * modules/euidaccess: Add lib_SOURCES, include for new
79132         file euidaccess.h
79133
79134 2003-08-12  Paul Eggert  <eggert@twinsun.com>
79135
79136         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
79137         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
79138         Normalize leading white space and remove trailing white space.
79139
79140         Merge from coreutils
79141         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
79142
79143         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
79144         0.12.1.  These files are now being upgraded automatically by
79145         ../config/srclist-update.
79146
79147 2003-08-12  Paul Eggert  <eggert@twinsun.com>
79148
79149         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
79150         Normalize leading white space and remove trailing white space.
79151         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
79152         notice, as per ../config/srclist-update.
79153
79154         Merge from coreutils.
79155         * lib/euidaccess.h: New file.
79156         * lib/euidaccess.c: Include it.
79157         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
79158         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
79159         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
79160
79161 2003-08-12  Paul Eggert  <eggert@twinsun.com>
79162
79163         * config/srclist-update: Add copyright notice.
79164         (remove_id_lines, remove_trailing_blanks): New constants.
79165         (fixfile): Use them to normalize spacing a bit in copied files.
79166         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
79167         Normalize leading white space and remove trailing white space.
79168
79169         * config/texinfo.tex: Sync with texinfo.
79170
79171         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
79172         strtoul.c from libc, to merge coreutils whitespace changes.
79173
79174         * config/srclist.txt: Get the following m4 files from gettext:
79175         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
79176         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
79177         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
79178         wint_t.m4.
79179
79180 2003-08-12  Karl Berry  <karl@gnu.org>
79181
79182         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
79183         been made.
79184
79185 2003-08-11  Paul Eggert  <eggert@twinsun.com>
79186
79187         * modules/gnu-source, m4/gnu-source.m4:
79188         Remove; we're assuming Autoconf 2.54 or later now.
79189         Suggested by Bruno Haible.
79190         * MODULES.html.sh (func_all_modules): Remove gnu-source.
79191
79192 2003-08-11  Bruno Haible  <bruno@clisp.org>
79193
79194         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
79195
79196 2003-08-11  Bruno Haible  <bruno@clisp.org>
79197
79198         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
79199         (vasnprintf): Use it instead of wcslen.
79200
79201 2003-08-11  Bruno Haible  <bruno@clisp.org>
79202
79203         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
79204         value to ensure that _Bool promotes to int. Use #define for _Bool when
79205         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
79206
79207 2003-08-10  Karl Berry  <karl@gnu.org>
79208
79209         * lib/regex.h: update from libc (whitespace fix).
79210
79211 2003-08-09  Paul Eggert  <eggert@twinsun.com>
79212
79213         Merge some files from coreutils.  These changes were
79214         originally made by Jim Meyering.
79215         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
79216         many older Unixes require this.
79217         * lib/alloca.c (alloca): Remove cast to argument of free;
79218         no longer needed in C89.
79219         * lib/alloca_.h, regex.h: Fix white space to match
79220         what GNU indent does.
79221
79222 2003-08-09  Paul Eggert  <eggert@twinsun.com>
79223
79224         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
79225         apparently Emacs's Unicode mode got confused before my 2003-08-05
79226         checkin.
79227
79228 2003-08-08  Paul Eggert  <eggert@twinsun.com>
79229
79230         * m4/extensions.m4: New file.
79231         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
79232         Require gl_USE_SYSTEM_EXTENSIONS.
79233         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
79234         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
79235
79236 2003-08-08  Paul Eggert  <eggert@twinsun.com>
79237
79238         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
79239         * modules/extensions, modules/gnu-source: New files.
79240         * modules/timespec, modules/unlocked-io: Depend on extensions.
79241
79242 2003-08-07  Paul Eggert  <eggert@twinsun.com>
79243
79244         * modules/restrict: New file.
79245         * MODULES.html.sh (func_all_modules): Add restrict.
79246         * modules/regex: Depend on restrict.
79247
79248 2003-08-07  Paul Eggert  <eggert@twinsun.com>
79249
79250         * m4/restrict.m4: New file.
79251         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
79252
79253 2003-08-07  Bruno Haible  <bruno@clisp.org>
79254
79255         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
79256         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
79257
79258 2003-08-07  Bruno Haible  <bruno@clisp.org>
79259
79260         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
79261         makes the module 'getndelim2' compatible with the module 'getline'.
79262
79263 2003-08-05  Paul Eggert  <eggert@twinsun.com>
79264
79265         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
79266         byte with "\201" to avoid glitches when editing that source file
79267         with multi-gnome-terminal.
79268
79269 2003-08-05  Paul Eggert  <eggert@twinsun.com>
79270
79271         * lib/bumpalloc.h: Remove.
79272
79273 2003-08-05  Paul Eggert  <eggert@twinsun.com>
79274
79275         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
79276         * modules/bumpalloc: Remove.
79277
79278 2003-08-04  Paul Eggert  <eggert@twinsun.com>
79279
79280         * lib/getloadavg.c: Change copyright notice and spacing to conform to
79281         GNU coding style.
79282
79283         Merge from coreutils.
79284         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
79285         1. From glibc.
79286         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
79287         from Karl Berry, implemented by Jim Meyering.
79288         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
79289         from Dmitry V. Levin.
79290         Remove anachronistic cast of xrealloc.
79291         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
79292         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
79293         type. Otherwise, it wouldn't compile with at least /bin/cc on
79294         ymp-cray-unicos9.0.2.X.
79295         Combine two mostly-identical uses of alloca into one.
79296         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
79297
79298 2003-08-04  Dave Love  <d.love@dl.ac.uk>
79299
79300         [From Emacs.]
79301
79302         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
79303         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
79304         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
79305         obsolete NLIST_NAME_UNION.
79306         [__GNU__]: Undef BSD and FSCALE.
79307         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
79308
79309 2003-08-03  Paul Eggert  <eggert@twinsun.com>
79310
79311         * lib/stdbool_.h (_Bool): Make it signed char, instead of
79312         an enum type, so that it's guaranteed to promote to int.  See:
79313         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
79314
79315 2003-08-03  Karl Berry  <karl@gnu.org>
79316
79317         * config/depcomp: update from automake.
79318
79319 2003-07-31  Paul Eggert  <eggert@twinsun.com>
79320
79321         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
79322         (strerror): Don't assume that a printable int fits in 14 bytes.
79323
79324 2003-07-31  Bruno Haible  <bruno@clisp.org>
79325
79326         * modules/getpass-gnu: New file.
79327         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
79328
79329 2003-07-31  Bruno Haible  <bruno@clisp.org>
79330
79331         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
79332
79333 2003-07-24  Karl Berry  <karl@gnu.org>
79334
79335         * config/missing: update from automake.
79336
79337 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
79338             Bruno Haible  <bruno@clisp.org>
79339
79340         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
79341         * lib/getline.c (getline, getdelim): Likewise.
79342         Remove _GNU_SOURCE define; now it's defined in config.h through
79343         m4/getline.m4.
79344
79345 2003-07-23  Karl Berry  <karl@gnu.org>
79346
79347         * config/config.sub: update from prep.
79348
79349 2003-07-22  Paul Eggert  <eggert@twinsun.com>
79350
79351         * modules/xalloc (Depends-on): Add exitfail.
79352         * modules/xmemcoll: Likewise.
79353
79354 2003-07-22  Paul Eggert  <eggert@twinsun.com>
79355
79356         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
79357         over-parenthesization in macros.
79358
79359         Sync with coreutils.
79360
79361         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
79362         required by C99.
79363
79364         Use `exit_failure' for xalloc and xmemcoll instead of their own
79365         private exit-failure variables.
79366         * lib/xalloc.h (xalloc_exit_failure): Remove.
79367         * lib/xmalloc.c: Likewise.  Include exitfail.h.
79368         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
79369         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
79370         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
79371         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
79372
79373 2003-07-20  Jim Meyering  <jim@meyering.net>
79374
79375         * modules/closeout (Depends-on): Add exitfail.
79376         Suggestion from Bruno Haible.
79377
79378 2003-07-19  Karl Berry  <karl@gnu.org>
79379
79380         * config/config.sub: update from prep.
79381
79382 2003-07-18  Paul Eggert  <eggert@twinsun.com>
79383
79384         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
79385         Remove.
79386         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
79387         to test that it can stand by itself.  Include "exitfail.h".
79388         Clients should set exit_failure instead.
79389         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
79390
79391 2003-07-18  Bruno Haible  <bruno@clisp.org>
79392
79393         * modules/getndelim2: New file.
79394         * modules/getline: Share files with module getndelim2.
79395         * modules/getnline: Depend on getndelim2 instead of sharing files with
79396         it. Add getnline.c to lib_SOURCES.
79397         * MODULES.html.sh (func_all_modules): Add getndelim2.
79398
79399 2003-07-18  Bruno Haible  <bruno@clisp.org>
79400
79401         * m4/getndelim2.m4: New file.
79402         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
79403         invoke gl_PREREQ_GETNDELIM2.
79404         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
79405         gl_PREREQ_GETNDELIM2.
79406         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
79407         gl_GETNDELIM2.
79408
79409 2003-07-18  Bruno Haible  <bruno@clisp.org>
79410
79411         * lib/getndelim2.h: New file.
79412         * lib/getndelim2.c: Make into a module of its own. Include config.h,
79413         getndelim2.h.
79414         (getndelim2): Make non-static. Change return type to ssize_t.
79415         * lib/getline.h: Change argument names.
79416         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
79417         * lib/getnline.c: Include getndelim2.h.
79418
79419 2003-07-18  Andreas Schwab  <schwab@suse.de>
79420
79421         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
79422
79423 2003-07-17  Karl Berry  <karl@gnu.org>
79424
79425         * config/config.sub: update from prep.
79426
79427 2003-07-17  Bruno Haible  <bruno@clisp.org>
79428
79429         * modules/getnline: New file.
79430         * modules/getline: Add lib/getndelim2.c to source file list.
79431         * MODULES.html.sh (func_all_modules): Add getnline.
79432
79433 2003-07-17  Bruno Haible  <bruno@clisp.org>
79434
79435         * m4/getnline.m4: New file.
79436
79437 2003-07-17  Bruno Haible  <bruno@clisp.org>
79438
79439         * m4/Makefile.am.in: Remove file.
79440         * m4/Makefile.am: Remove file.
79441         * m4/Makefile.in: Remove file.
79442
79443 2003-07-17  Bruno Haible  <bruno@clisp.org>
79444
79445         * lib/getnline.h: New file.
79446         * lib/getnline.c: New file.
79447         * lib/getndelim2.c: New file, extracted from getline.c.
79448         (getndelim2): Renamed from getdelim2, with added nmax argument.
79449         * lib/getline.c: Include getndelim2.c.
79450         (getdelim2): Moved out to getndelim2.c.
79451         (getline, getdelim): Update.
79452
79453 2003-07-17  Bruno Haible  <bruno@clisp.org>
79454
79455         * lib/Makefile.am: Remove file.
79456         * lib/Makefile.in: Remove file.
79457
79458 2003-07-17  Bruno Haible  <bruno@clisp.org>
79459
79460         * configure.in: Remove file.
79461         * Makefile.in: Remove file.
79462
79463 2003-07-17  Bruno Haible  <bruno@clisp.org>
79464
79465         * MODULES.html.sh: Put the </BODY> right before </HTML>.
79466
79467 2003-07-16  Karl Berry  <karl@gnu.org>
79468
79469         * config/srclist-update: was running fixlicense twice, which caused
79470                 texinfo.tex to be nullified for some reason.  Simplify,
79471                 $gplsrc is no longer needed as far as I can see?
79472
79473 2003-07-16  Jim Meyering  <jim@meyering.net>
79474
79475         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
79476
79477 2003-07-15  Paul Eggert  <eggert@twinsun.com>
79478
79479         * config/srclist.txt: Get the following files from gettext-runtime/intl
79480         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
79481         ref-del.sin.  From Bruno Haible.
79482         * config/srclist-update (fixfile): Change grep pattern again, since the
79483         previous fix didn't work (there was another trailing $).  Use
79484         '[$]' to escape the $s.
79485
79486 2003-07-15  Karl Berry  <karl@gnu.org>
79487
79488         * lib/vasnprintf.c: update from gettext.
79489
79490 2003-07-15  Karl Berry  <karl@gnu.org>
79491
79492         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
79493         gets expanded when surrounded by '$'.
79494
79495 2003-07-15  Jim Meyering  <jim@meyering.net>
79496
79497         * modules/save-cwd: Don't depend on error.  From Derek Price.
79498
79499 2003-07-15  Jim Meyering  <jim@meyering.net>
79500
79501         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
79502
79503 2003-07-14  Simon Josefsson  <jas@extundo.com>
79504
79505         * modules/mempcpy: New file.
79506         * MODULES.html.sh (func_all_modules): Add mempcpy.
79507
79508 2003-07-14  Simon Josefsson  <jas@extundo.com>
79509
79510         * m4/mempcpy.m4: New file.
79511
79512 2003-07-14  Simon Josefsson  <jas@extundo.com>
79513
79514         * lib/mempcpy.h: New file.
79515         * lib/mempcpy.c: New file.
79516
79517 2003-07-14  Paul Eggert  <eggert@twinsun.com>
79518
79519         * modules/getdate, modules/posixtm: Depend on mktime.
79520
79521 2003-07-14  Paul Eggert  <eggert@twinsun.com>
79522
79523         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
79524         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
79525         unicodeio.c, unicodeio.h, unlocked-io.h:
79526         Switch from LGPL to GPL.
79527
79528 2003-07-14  Paul Eggert  <eggert@twinsun.com>
79529
79530         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
79531         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
79532         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
79533         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
79534         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
79535         updated automatically by ../config/srclist-update.  This changes
79536         their license from LPGL to GPL.
79537
79538 2003-07-14  Paul Eggert  <eggert@twinsun.com>
79539
79540         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
79541         assumed to refer to the root of the most recent stable gettext version.
79542         * config/srclistvars.sh: Add defaults for eggert.
79543         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
79544         Match "This program" as well as "The program".  This is needed
79545         for gettext.
79546
79547 2003-07-14  Jim Meyering  <jim@meyering.net>
79548
79549         Don't emit diagnostics.  Let callers do that.
79550         * lib/save-cwd.c: Don't include "error.h".
79551         (save_cwd): Don't call error.  Ensure that errno is valid
79552         when returning nonzero.
79553
79554         * lib/save-cwd.h (restore_cwd): Update prototype.
79555         * lib/save-cwd.c (restore_cwd): Remove two parameters.
79556         Simplify.  Don't call error upon failure.  Let callers do that.
79557         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
79558         when auditing is enabled.  But don't bother updating the #if.
79559
79560 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
79561
79562         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
79563         it breaks C++ compilation.
79564         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
79565
79566 2003-07-10  Simon Josefsson  <jas@extundo.com>
79567
79568         * modules/strchrnul (Makefile.am): Add strchrnul.h.
79569
79570 2003-07-10  Jim Meyering  <jim@meyering.net>
79571
79572         * m4/clock_time.m4: Remove trailing blank.
79573         * m4/intmax_t.m4: Likewise.
79574
79575 2003-07-10  Jim Meyering  <jim@meyering.net>
79576
79577         * lib/vasnprintf.c: Remove trailing blanks.
79578         Make cpp indentation consistent.
79579
79580 2003-07-09  Paul Eggert  <eggert@twinsun.com>
79581
79582         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
79583         posixver.c, strftime.c, strnlen.c, strverscmp.c:
79584         Switch from LGPL to GPL.
79585
79586 2003-07-09  Paul Eggert  <eggert@twinsun.com>
79587
79588         * config/srclist.txt: Sort sublists.  Add
79589         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
79590         that differ from gnulib for one reason or another; we'd like this list
79591         to be smaller but for now let's document what we have.
79592
79593 2003-07-08  Paul Eggert  <eggert@twinsun.com>
79594
79595         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
79596         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
79597         and sweeter "eval x=$x".
79598         * config/srclist.txt: Get lib/argp* from glibc.
79599
79600 2003-07-07  Paul Eggert  <eggert@twinsun.com>
79601
79602         * lib/mktime.c: Fix some boundary cases and remove need for floating
79603         point.
79604
79605         Issue a compile-time diagnostic if time_t is floating point, or if
79606         two's complement arithmetic is not in effect, or if arithmetic
79607         right shift does not propagate the sign.  These assumptions were
79608         all in the original code but they weren't checked.
79609
79610         (TIME_T_MIDPOINT, verify): New macros.
79611         (__isleap): Remove; it has integer overflow problems.
79612         (leapyear): New function, without those problems.
79613         (ydhms_tm_diff): Remove; splitting into two parts.
79614         (ydhms_diff): New function, containing the arithmetic part of
79615         the old ydhms_tm_diff function.  Issue a compile-time
79616         diagnostic if we are not using C99 integer division.
79617         Avoid casts when possible.
79618         (guess_time_tm): New function, containing the checking part of
79619         the old ydhms_tm_diff function.  Return the new value, rather than
79620         the difference between it and the old.  Accept a new argument T
79621         so that *T specifies the old value.  Check for overflow in the result.
79622
79623         (__mktime_internal): Use a time_t offset, not a long int offset.
79624         This undoes the 2003-06-04 change, which is no longer needed now
79625         that we have better overflow checking.
79626         (localtime_offset): Likewise.
79627
79628         (__mktime_internal): Avoid harmful overflow on hosts where time_t
79629         and long are 64-bit but int is only 32-bit.
79630         (ydhms_diff): Use long int to store year1 and yday1.
79631         Issue a compile-time diagnostic if long int is not wide enough.
79632
79633         (__mktime_internal): Use long int to store adjusted year and yday.
79634         Use plain C rather than preprocessor commands, if that doesn't
79635         affect efficiency.
79636         Check for overflow (and try to repair) after each probe
79637         rather than checking only at the very end.  This avoids some bugs
79638         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
79639         does not equal GMT offset at maximum time).
79640         Use integer to check for overflow rather than floating point; this
79641         is more portable to non-IEEE hosts, and is a tad faster.
79642         When we detect that we are oscillating between two values,
79643         don't check whether tm_isdst has the requested value, since
79644         we already know the answer.  When tm_isdst has the wrong value,
79645         use a different heuristic to find the right one, based on the
79646         extreme values actually observed in practice in tz2003a,
79647         rather than the (overly optimistic) "previous 3 calendar quarters".
79648
79649         (not_equal_tm, print_tm, check_result): Use "const T" rather than
79650         "T const" to accommodate glibc style.
79651         (check_result): Use less-confusing report format.  "long" -> "long int.
79652         (main): Likewise.
79653         Don't loop if the iteration overflows time_t.
79654         Allow a negative step in the iteration.
79655
79656 2003-07-06  Karl Berry  <karl@gnu.org>
79657
79658         * config/depcomp: update from automake.
79659         * config/config.sub: update from prep.
79660
79661 2003-07-03  Karl Berry  <karl@gnu.org>
79662
79663         * config/config.guess: update from prep.
79664
79665 2003-07-01  Paul Eggert  <eggert@twinsun.com>
79666
79667         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
79668         xreadlink.c now includes it unconditionally.
79669
79670 2003-07-01  Paul Eggert  <eggert@twinsun.com>
79671
79672         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
79673         having it depend on HAVE_SYS_TYPES_H.
79674
79675 2003-07-01  Bruno Haible  <bruno@clisp.org>
79676
79677         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
79678         <sys/types.h> should be sufficient.
79679         Reported by Paul Eggert.
79680
79681 2003-06-26  Karl Berry  <karl@gnu.org>
79682
79683         * config/depcomp: update from automake.
79684
79685 2003-06-26  Bruno Haible  <bruno@clisp.org>
79686
79687         * modules/human: Depend on module stdbool.
79688
79689 2003-06-25  Bruno Haible  <bruno@clisp.org>
79690
79691         * modules/readlink: New file.
79692         * modules/xreadlink: Depend on it.
79693         * MODULES.html.sh (func_all_modules): Add readlink.
79694
79695 2003-06-25  Bruno Haible  <bruno@clisp.org>
79696
79697         * m4/readlink.m4: New file.
79698
79699 2003-06-25  Bruno Haible  <bruno@clisp.org>
79700
79701         * lib/readlink.c: New file.
79702
79703 2003-06-22  Karl Berry  <karl@gnu.org>
79704
79705         * config/srclist.txt: update mkinstalldirs from automake.
79706         * config/mkinstalldirs: update.
79707
79708 2003-06-22  Bruno Haible  <bruno@clisp.org>
79709
79710         Portability to mingw32.
79711         * m4/ssize_t.m4: New file, from GNU gettext.
79712         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
79713         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
79714
79715 2003-06-22  Bruno Haible  <bruno@clisp.org>
79716
79717         * modules/safe-read: Add m4/ssize_t.m4.
79718         * modules/xreadlink: Add m4/ssize_t.m4.
79719
79720 2003-06-20  Bruno Haible  <bruno@clisp.org>
79721
79722         Assume C89, so PARAMS isn't needed.
79723         * lib/unicodeio.h (PARAMS): Remove.
79724         * lib/unicodeio.c: Don't use PARAMS.
79725
79726 2003-06-18  Karl Berry  <karl@gnu.org>
79727
79728         * config/config.{guess,sub}: update from prep.
79729
79730 2003-06-18  Jim Meyering  <jim@meyering.net>
79731
79732         Merge changes from coreutils.
79733         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
79734         Remove explicit declarations of xmalloc and realloc.
79735         Include xalloc.h.
79736         (read_utmp): Remove anachronistic cast of xmalloc.
79737
79738 2003-06-17  Paul Eggert  <eggert@twinsun.com>
79739
79740         Assume C89, so PARAMS isn't needed.
79741         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
79742         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
79743         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
79744         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
79745         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
79746         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
79747         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
79748         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
79749         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
79750         lib/xstrtod.h, lib/xstrtol.h: Likewise.
79751         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
79752         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
79753         no longer needed. Anyway, config.h should always be included before any
79754         other file.
79755
79756 2003-06-11  Simon Josefsson  <jas@extundo.com>
79757
79758         * modules/sysexits: New file.
79759         * MODULES.html.sh (func_all_modules): Add sysexits.
79760
79761 2003-06-11  Simon Josefsson  <jas@extundo.com>
79762
79763         * lib/sysexit_.h: New file.
79764
79765 2003-06-11  Derek Price  <derek@ximbiot.com>
79766
79767         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
79768         necessary.
79769
79770 2003-06-11  Bruno Haible  <bruno@clisp.org>
79771
79772         * m4/sysexits.m4: New file.
79773
79774 2003-06-10  Simon Josefsson  <jas@extundo.com>
79775
79776         * lib/argp.h: New file, from glibc.
79777         * lib/argp-ba.c: New file, from glibc.
79778         * lib/argp-eexst.c: New file, from glibc.
79779         * lib/argp-fmtstream.c: New file, from glibc.
79780         * lib/argp-fmtstream.h: New file, from glibc.
79781         * lib/argp-fs-xinl.c: New file, from glibc.
79782         * lib/argp-help.c: New file, from glibc.
79783         * lib/argp-namefrob.h: New file, from glibc.
79784         * lib/argp-parse.c: New file, from glibc.
79785         * lib/argp-pv.c: New file, from glibc.
79786         * lib/argp-pvh.c: New file, from glibc.
79787         * lib/argp-xinl.c: New file, from glibc.
79788
79789 2003-06-10  Simon Josefsson  <jas@extundo.com>
79790
79791         * modules/strchrnul: New file.
79792
79793 2003-06-10  Simon Josefsson  <jas@extundo.com>
79794
79795         * modules/argp: New file.
79796
79797 2003-06-10  Simon Josefsson  <jas@extundo.com>
79798
79799         * m4/strchrnul.m4: New file.
79800
79801 2003-06-10  Simon Josefsson  <jas@extundo.com>
79802
79803         * lib/strchrnul.h: New file.
79804         * lib/strchrnul.c: New file.
79805
79806 2003-06-10  Bruno Haible  <bruno@clisp.org>
79807
79808         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
79809
79810 2003-06-07  Karl Berry  <karl@gnu.org>
79811
79812         * config/config.{guess,sub}: update from prep.
79813
79814 2003-06-07  Jim Meyering  <jim@meyering.net>
79815
79816         * modules/strtod: Use $(...) notation, not @...@ for
79817         AC_REPLACE'd variables.
79818         * modules/localcharset: Likewise.
79819
79820 2003-06-07  Jim Meyering  <jim@meyering.net>
79821
79822         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
79823         in place of my name in the copyright comment.
79824         Remove definition and uses of __P.
79825
79826         From coreutils.
79827         * lib/stat.c: Don't declare xmalloc explicitly.
79828         Instead, include "xalloc.h".
79829         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
79830         xrealloc, and xcalloc return values.
79831         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
79832         Improve comment.
79833         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
79834
79835 2003-06-07  Bruno Haible  <bruno@clisp.org>
79836
79837         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
79838         avoid AC_CONFIG_LINKS.
79839         * modules/fnmatch (Makefile.am): Use explicit creation rule for
79840         fnmatch.h, to avoid AC_CONFIG_LINKS.
79841         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
79842
79843 2003-06-07  Bruno Haible  <bruno@clisp.org>
79844
79845         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
79846         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
79847         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
79848         directory.
79849         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
79850         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
79851         directory.
79852
79853 2003-06-06  Jim Meyering  <jim@meyering.net>
79854
79855         Merge from coreutils.
79856         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
79857         Consolidate declarations and initializations of *_base* locals.
79858
79859         Merge from coreutils.
79860         This avoids a core dump on systems without GNU putenv,
79861         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
79862         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
79863         (unsetenv): New static function, from GNU libc.
79864         (rpl_putenv): Use it.
79865
79866         * lib/modechange.c: Remove trailing blanks.
79867
79868         Merge from coreutils.
79869         * lib/fsusage.c: Remove declaration of statfs.
79870         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
79871
79872         * lib/posixtm.c: Include <stdbool.h> unconditionally.
79873
79874 2003-06-06  Jim Meyering  <jim@meyering.net>
79875
79876         * lib/stdbool_.h: Renamed from stdbool.h.in.
79877
79878 2003-06-06  Jim Meyering  <jim@meyering.net>
79879             Bruno Haible  <bruno@clisp.org>
79880
79881         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
79882         Adjust Makefile.am snippet not to redirect directly to target.
79883         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
79884
79885 2003-06-05  Paul Eggert  <eggert@twinsun.com>
79886
79887         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
79888         mismatch, look in future quarters as well as past.  This fixes a
79889         bug when processing fall-backwards gaps immediately after a long
79890         period of daylight-saving time.
79891
79892         * lib/mktime.c: Assume freestanding C89 or better.
79893         (HAVE_LIMITS_H): Remove.  Assume it's 1.
79894         (__P): Remove; not used.
79895         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
79896         (mktime, not_equal_tm, print_tm, check_result,
79897         main): Use prototypes.  Use const * where appropriate.
79898         (main): Fix typo in testing code that uncovered by above changes.
79899         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
79900
79901 2003-06-04  Paul Eggert  <eggert@twinsun.com>
79902
79903         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
79904         locale.h, localeconv.  This merges changes from coreutils.
79905
79906         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
79907         It can be removed after the next Autoconf is released.
79908         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
79909         needed.
79910
79911 2003-06-04  Paul Eggert  <eggert@twinsun.com>
79912
79913         * lib/mktime.c: Fix Debian bug 177940
79914         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
79915         (localtime_offset): Now long int, not time_t, because we want it
79916         to be guaranteed to be signed.  All uses changed.
79917         (__mktime_internal): If overflow would occur when adding offset,
79918         don't add it.
79919
79920         Merge 'human' changes from coreutils.  Rewrite to support
79921         locale-specific notations like thousands separators.
79922         * lib/human.c: Simplify authorship notice.
79923         Include human.h immediately after config.h.
79924         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
79925         <limits.h>: Do not include, since human.h does.
79926         (SIZE_MAX, UINTMAX_MAX): New macros.
79927         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
79928         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
79929         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
79930         (power_letter): Renamed from suffixes.
79931         (generate_suffix_backwards): Remove.
79932         (adjust_value): Now takes int style (because of human.h changes)
79933         and long double value (for greater precision on some platforms).
79934         (group_number): New function.
79935         (human_readable): Use it.  Use integer options, not enum.
79936         Put the options before the sizes in the arg list.
79937         Support all the new options.
79938         The old human_readable function has been removed;
79939         use inttostr.h instead.
79940         (human_readable, default_block_size, humblock):
79941         Use uintmax_t, not int, for block sizes.
79942         (human_readable_inexact, block_size_types): Remove.
79943         (block_size_opts): New constant.
79944         (human_options): Renamed from human_block_size, with new signature
79945         that allows block sizes up to UINTMAX_MAX.  All callers changed.
79946         * lib/human.h: Add copyright and authorship notice.
79947         Include <limits.h> and <stdbool.h> unconditionally.
79948         (PARAMS): Remove.  All uses removed.
79949         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
79950         (enum human_inexact_style): Remove tag; now a nameless enum.
79951         (human_floor, human_ceiling, human_round_to_even): Now have
79952         values 2, 0, 1 rather than -1, 1, 0.
79953         (human_group_digits, human_suppress_point_zero, human_autoscale,
79954         human_base_1024, human_SI, human_B): New constants.
79955         (human_readable_inexact, human_block_size): Remove.
79956         (human_readable): Size args are now uintmax_t, not int.
79957         (human_options): New decl.
79958
79959         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
79960         unnecessary now that we assume C89 or better.  This change
79961         imported from coreutils.
79962
79963         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
79964         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
79965         in the 2003-05-30 sync from glibc.
79966
79967         .h files should stand alone, but we shouldn't include <sys/types.h>
79968         if we can get away with just <stddef.h>.
79969
79970         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
79971         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
79972         rather than <sys/types.h>, as we merely need size_t.
79973         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
79974         to get size_t.
79975         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
79976         Include <stdio.h>, to get FILE.
79977         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
79978         memcasecmp.h has included <stddef.h> and all we need is size_t.
79979         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
79980         our interface, instead of including <sys/types.h>
79981
79982 2003-06-04  Paul Eggert  <eggert@twinsun.com>
79983
79984         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
79985         now, as glibc mktime is buggy on non-glibc systems.
79986
79987 2003-06-03  Karl Berry  <karl@gnu.org>
79988
79989         * config/config.sub: update from prep.
79990
79991 2003-06-02  Paul Eggert  <eggert@twinsun.com>
79992
79993         [from coreutils]
79994         Fix some minor time-related bugs with POSIX time arguments.
79995         Some valid time stamps were being rejected (notably -1, and
79996         time stamps before 1900 on 64-bit hosts).  And some invalid
79997         time stamps were being accepted, e.g. September 31.
79998
79999         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
80000         that we can return (time_t) -1 successfully.
80001         * lib/posixtm.c: Likewise.
80002         [HAVE_STDBOOL_H]: Include <stdbool.h>.
80003         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
80004         (t): Remove static var.
80005         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
80006         of static var.  All uses changed.
80007         (year): Do not reject years before 1900; they can occur with
80008         64-bit time_t.
80009         (posix_time_parse): Do not check for out-of-range components;
80010         that is now the caller's responsibility, since our checks were
80011         only approximations.
80012         (posixtime): Use mktime to check for out-of-range components,
80013         since it knows them exactly.
80014         If mktime returns (time_t) -1, check whether an error actually occurred
80015         by invoking localtime on -1.
80016         (main) [TEST_POSIXTIME]: Check for input data errors, and report
80017         posixtime failures better.
80018         Improve the test data (in comments only).
80019
80020 2003-06-02  Karl Berry  <karl@gnu.org>
80021
80022         * config/mkinstalldirs (version): new variable.
80023         (--version): new option.
80024         (usage): improve message.
80025
80026 2003-05-30  Karl Berry  <karl@gnu.org>
80027
80028         * lib/mktime.c: update from libc.
80029
80030 2003-05-30  Bruno Haible  <bruno@clisp.org>
80031
80032         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
80033         * config/config.rpath: Upgrade to gettext-0.12.1.
80034
80035 2003-05-30  Bruno Haible  <bruno@clisp.org>
80036
80037         * m4/gettext.m4: Upgrade to gettext-0.12.1.
80038         * m4/nls.m4: New file, from gettext-0.12.1.
80039         * m4/po.m4: New file, from gettext-0.12.1.
80040         * m4/progtest.m4: Upgrade to gettext-0.12.1.
80041
80042 2003-05-30  Bruno Haible  <bruno@clisp.org>
80043
80044         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
80045         * lib/localcharset.h: Likewise.
80046         * lib/localcharset.c: Likewise.
80047
80048 2003-05-29  Karl Berry  <karl@gnu.org>
80049
80050         * config/config.rpath: update from gettext.
80051
80052 2003-05-28  Paul Eggert  <eggert@twinsun.com>
80053
80054         Assume the headers required for C89 freestanding compilers.
80055         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
80056         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
80057         * m4/human.m4 (gl_HUMAN): Likewise.
80058         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
80059         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
80060         * m4/userspec.m4 (gl_USERSPEC): Likewise.
80061         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
80062         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
80063         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
80064
80065 2003-05-28  Paul Eggert  <eggert@twinsun.com>
80066
80067         Assume the headers required for C89 freestanding compilers.
80068         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
80069         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
80070         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
80071         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
80072         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
80073         define, since <limits.h> is guaranteed to do that.
80074         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
80075         * lib/exclude.c: Include <stdbool.h> unconditionally.
80076         * lib/tempname.c: Include <stddef.h> unconditionally.
80077         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
80078         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
80079         <stddef.h> does that.
80080         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
80081         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
80082         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
80083         needed.
80084         * lib/xstrtol.c: Likewise.
80085         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
80086         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
80087
80088         * lib/addext.c (addext): Use assignment rather than cast, to avoid
80089         warnings on some platforms.
80090
80091         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
80092         arbitrarily.
80093
80094 2003-05-26  Jim Meyering  <jim@meyering.net>
80095
80096         Merge in a change from coreutils:
80097         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
80098         that is guaranteed to be `no'.  Use `no_such_member' to indicate
80099         that condition, rather than `-1' which is slightly misleading.
80100         Change the name of the cache variable to have the gl_ prefix.
80101         Prompted by a patch from Richard Dawe for DJGPP.
80102
80103 2003-05-24  Karl Berry  <karl@gnu.org>
80104
80105         * config/config.guess: update from prep.
80106
80107 2003-05-22  Karl Berry  <karl@gnu.org>
80108
80109         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
80110
80111 2003-05-20  Karl Berry  <karl@gnu.org>
80112
80113         * config/config.guess: update from prep.
80114
80115 2003-05-18  Karl Berry  <karl@gnu.org>
80116
80117         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
80118         might actually be set by the user.
80119
80120         * config/depcomp, install-sh, mdate-sh: update from automake.
80121
80122 2003-05-17  Bruno Haible  <bruno@clisp.org>
80123
80124         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
80125         invalid expansion for AC_EGREP_CPP.
80126         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
80127         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
80128         Suggested by Akim Demaille <akim@epita.fr> in
80129         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
80130
80131 2003-05-12  Jim Meyering  <jim@meyering.net>
80132
80133         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
80134         the space-padded-by-default conversion specifiers, %e, %k, %l.
80135
80136 2003-05-12  Bruno Haible  <bruno@clisp.org>
80137
80138         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
80139         the string is longer than 4 KB.
80140
80141 2003-05-11  Karl Berry  <karl@gnu.org>
80142
80143         * config/config.{guess,sub}: update from prep.
80144
80145 2003-05-09  Bruno Haible  <bruno@clisp.org>
80146
80147         * modules/error: Add m4/strerror_r.m4 to file list.
80148
80149 2003-05-03  Bruno Haible  <bruno@clisp.org>
80150
80151         Upgrade to Unicode-4.0.
80152         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
80153         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
80154         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
80155         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
80156         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
80157         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
80158         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
80159         Change width of U+E0100..U+E01EF from 1 to 0.
80160
80161 2003-04-25  Jim Meyering  <jim@meyering.net>
80162
80163         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
80164         of type size_t, not int.
80165
80166 2003-04-25  Bruno Haible  <bruno@clisp.org>
80167
80168         * lib/copy-file.c: Include <stddef.h>, for size_t.
80169
80170 2003-04-21  Paul Eggert  <eggert@twinsun.com>
80171
80172         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
80173         code which expansion is under static control.  Patch imported from
80174         Akim Demaille's patch to Bison; see
80175         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
80176
80177 2003-04-14  Bruno Haible  <bruno@clisp.org>
80178
80179         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
80180
80181 2003-04-11  Jim Meyering  <jim@meyering.net>
80182
80183         Merge changes from Coreutils.
80184
80185         2003-03-22  Jim Meyering  <jim@meyering.net>
80186
80187         * lib/strftime.c (widen): Cast alloca return value to proper type.
80188
80189         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
80190
80191         From GNU libc.
80192         * lib/strftime.c (my_strftime): Handle very large width
80193         specifications for numeric values correctly.  Improve checks for
80194         overflow.
80195
80196         2003-01-19  Jim Meyering  <jim@meyering.net>
80197
80198         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
80199         definitions.
80200         (nl_get_alt_digit) [! defined my_strftime]: Define.
80201         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
80202         _nl_get_alt_digit and _nl_get_walt_digit.
80203
80204         * lib/strftime.c (my_strftime): Merge in locale-related changes from
80205         libc. These changes have no effect outside of _LIBC.
80206
80207 2003-04-10  Bruno Haible  <bruno@clisp.org>
80208
80209         * modules/findprog: New file.
80210         * MODULES.html.sh (func_all_modules): Add it.
80211
80212 2003-04-10  Bruno Haible  <bruno@clisp.org>
80213
80214         * m4/findprog.m4: New file.
80215         * m4/eaccess.m4: New file.
80216
80217 2003-04-10  Bruno Haible  <bruno@clisp.org>
80218
80219         * lib/findprog.h: New file, from GNU gettext.
80220         * lib/findprog.c: New file, from GNU gettext.
80221
80222 2003-04-05  Jim Meyering  <jim@meyering.net>
80223
80224         Merge changes from Coreutils.
80225
80226         * lib/exclude.h (PARAMS): Remove definition and uses.
80227         * lib/exclude.c: Remove uses of `PARAMS'.
80228
80229         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
80230         Add test-cases for DOS filenames. Declare program_name.
80231         (main): Set up program_name.  Patch by Rich Dawe.
80232
80233         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
80234         error from mntctl.
80235         Use mntctl's return value to drive the entry-processing loop, since
80236         we can't rely on the value of the vmt_length member in the last
80237         entry.  On some systems doing so could result in exhausting
80238         virtual memory.  Based in part on a patch from Mike Jetzer.
80239
80240 2003-04-04  Bruno Haible  <bruno@clisp.org>
80241
80242         * modules/linebreak: New file.
80243         * MODULES.html.sh (func_all_modules): Add it.
80244
80245 2003-04-04  Bruno Haible  <bruno@clisp.org>
80246
80247         * m4/linebreak.m4: New file.
80248
80249 2003-04-04  Bruno Haible  <bruno@clisp.org>
80250
80251         * lib/linebreak.h: New file, from GNU gettext.
80252         * lib/linebreak.c: New file, from GNU gettext with slight
80253         modifications.
80254         * lib/lbrkprop.h: New file, from GNU gettext.
80255
80256 2003-04-03  Bruno Haible  <bruno@clisp.org>
80257
80258         * modules/utf8-ucs4: New file.
80259         * modules/utf16-ucs4: New file.
80260         * modules/ucs4-utf8: New file.
80261         * modules/ucs4-utf16: New file.
80262         * MODULES.html.sh (func_all_modules): Add them.
80263
80264 2003-04-03  Bruno Haible  <bruno@clisp.org>
80265
80266         * m4/utf-ucs4.m4: New file.
80267         * m4/ucs4-utf.m4: New file.
80268
80269 2003-04-03  Bruno Haible  <bruno@clisp.org>
80270
80271         * lib/utf8-ucs4.h: New file, from GNU gettext.
80272         * lib/utf16-ucs4.h: New file, from GNU gettext.
80273         * lib/ucs4-utf8.h: New file, from GNU gettext.
80274         * lib/ucs4-utf16.h: New file, from GNU gettext.
80275
80276 2003-04-02  Bruno Haible  <bruno@clisp.org>
80277
80278         * modules/binary-io: New file.
80279         * MODULES.html.sh (func_all_modules): Add it.
80280
80281 2003-04-02  Bruno Haible  <bruno@clisp.org>
80282
80283         * lib/binary-io.h: New file, from GNU gettext.
80284
80285 2003-04-01  Bruno Haible  <bruno@clisp.org>
80286
80287         * modules/pathname: New file.
80288         * MODULES.html.sh (func_all_modules): Add it.
80289
80290 2003-04-01  Bruno Haible  <bruno@clisp.org>
80291
80292         * lib/pathname.h: New file, from GNU gettext.
80293         * lib/concatpath.c: New file, from GNU gettext.
80294
80295 2003-03-30  Bruno Haible  <bruno@clisp.org>
80296
80297         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
80298
80299 2003-03-30  Bruno Haible  <bruno@clisp.org>
80300
80301         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
80302         function chown() doesn't exist.
80303
80304 2003-03-28  Bruno Haible  <bruno@clisp.org>
80305
80306         * modules/copy-file: New file.
80307         * MODULES.html.sh (func_all_modules): Add it.
80308
80309 2003-03-28  Bruno Haible  <bruno@clisp.org>
80310
80311         * m4/copy-file.m4: New file.
80312
80313 2003-03-28  Bruno Haible  <bruno@clisp.org>
80314
80315         * lib/copy-file.h: New file, from GNU gettext.
80316         * lib/copy-file.c: New file, from GNU gettext.
80317
80318 2003-03-18  Jim Meyering  <jim@meyering.net>
80319
80320         * lib/quote.c (quote_n): Fix typo in comment.
80321
80322 2003-03-18  Bruno Haible  <bruno@clisp.org>
80323
80324         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
80325         checking.
80326         * m4/onceonly_2_57.m4: Likewise.
80327
80328 2003-03-17  Bruno Haible  <bruno@clisp.org>
80329
80330         * m4/onceonly.m4: Require autoconf 2.54 or newer.
80331         (m4_quote): Remove macro.
80332         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
80333
80334 2003-03-14  Jim Meyering  <jim@meyering.net>
80335
80336         Merge changes from Coreutils.
80337         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
80338         to be const, in order to avoid warnings.
80339         (obstack_room): Likewise.
80340         (obstack_empty_p): Likewise.
80341
80342 2003-03-14  Bruno Haible  <bruno@clisp.org>
80343
80344         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
80345         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
80346
80347 2003-03-13  Paul Eggert  <eggert@twinsun.com>
80348
80349         Merge changes from Bison.
80350         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
80351         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
80352         when compiling Bison 1.875's `bitset bset = obstack_alloc
80353         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
80354         * lib/hash.c: Include <stdbool.h> unconditionally.
80355
80356 2003-03-13  Paul Eggert  <eggert@twinsun.com>
80357
80358         * m4/onceonly.m4 (m4_quote): New macro.
80359         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
80360         Quote AC_FOREACH variable-expansions properly.
80361
80362 2003-03-13  Paul Eggert  <eggert@twinsun.com>
80363
80364         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
80365
80366 2003-03-09  Paul Eggert  <eggert@twinsun.com>
80367
80368         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
80369         Reported by Bruce Becker; see:
80370         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
80371
80372 2003-03-03  Paul Eggert  <eggert@twinsun.com>
80373             Bruno Haible  <bruno@clisp.org>
80374
80375         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
80376         Reported by John Hughes, see
80377         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
80378
80379 2003-02-20  Bruno Haible  <bruno@clisp.org>
80380
80381         * MODULES.html.sh (func_all_modules): Add poll.
80382
80383 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
80384
80385         * modules/poll: New file.
80386
80387 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
80388
80389         * lib/poll_.h: New file.
80390         * lib/poll.c: New file.
80391
80392 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
80393
80394         * m4/poll.m4: New file.
80395
80396 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
80397
80398         * modules/mathl: New file.
80399
80400 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
80401
80402         * lib/mathl.h: New file.
80403         * lib/acosl.c: New file.
80404         * lib/asinl.c: New file.
80405         * lib/atanl.c: New file.
80406         * lib/ceill.c: New file.
80407         * lib/cosl.c: New file.
80408         * lib/expl.c: New file.
80409         * lib/floorl.c: New file.
80410         * lib/frexpl.c: New file.
80411         * lib/ldexpl.c: New file.
80412         * lib/logl.c: New file.
80413         * lib/sincosl.c: New file.
80414         * lib/sinl.c: New file.
80415         * lib/sqrtl.c: New file.
80416         * lib/tanl.c: New file.
80417         * lib/trigl.c: New file.
80418         * lib/trigl.h: New file.
80419
80420 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
80421
80422         * m4/mathl.m4: New file.
80423
80424 2003-02-18  Bruno Haible  <bruno@clisp.org>
80425
80426         * MODULES.html.sh (func_all_modules): Add mathl.
80427
80428 2003-02-17  Bruno Haible  <bruno@clisp.org>
80429
80430         * modules/mkdtemp: New module.
80431         * MODULES.html.sh (func_all_modules): Add it.
80432
80433 2003-02-17  Bruno Haible  <bruno@clisp.org>
80434
80435         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
80436
80437 2003-02-17  Bruno Haible  <bruno@clisp.org>
80438
80439         * lib/mkdtemp.h: New file, from GNU gettext.
80440         * lib/mkdtemp.c: New file, from GNU gettext.
80441
80442 2003-02-02  Jim Meyering  <jim@meyering.net>
80443
80444         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
80445         e.g. glibc-2.2.93.
80446
80447 2003-01-31  Bruno Haible  <bruno@clisp.org>
80448
80449         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
80450         'rpl_rename'.
80451         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
80452         'rpl_strnlen'.
80453         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
80454         'rpl_strtod'.
80455         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
80456         'rpl_utime'.
80457
80458 2003-01-31  Bruno Haible  <bruno@clisp.org>
80459
80460         * lib/rename.c: #undef rename before defining rpl_rename.
80461         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
80462
80463 2003-01-30  Bruno Haible  <bruno@clisp.org>
80464
80465         * modules/vasnprintf, modules/vasprintf: New modules.
80466         * MODULES.html.sh (func_all_modules): Add them.
80467
80468 2003-01-30  Bruno Haible  <bruno@clisp.org>
80469
80470         * m4/signed.m4: New file, from GNU gettext.
80471         * m4/longdouble.m4: New file, from GNU gettext.
80472         * m4/wchar_t.m4: New file, from GNU gettext.
80473         * m4/wint_t.m4: New file, from GNU gettext.
80474         * m4/vasnprintf.m4: New file.
80475         * m4/vasprintf.m4: New file.
80476
80477 2003-01-30  Bruno Haible  <bruno@clisp.org>
80478
80479         * lib/printf-args.h: New file, from GNU gettext.
80480         * lib/printf-args.c: New file, from GNU gettext.
80481         * lib/printf-parse.h: New file, from GNU gettext.
80482         * lib/printf-parse.c: New file, from GNU gettext.
80483         * lib/vasnprintf.h: New file, from GNU gettext.
80484         * lib/vasnprintf.c: New file, from GNU gettext.
80485         * lib/asnprintf.c: New file, from GNU gettext.
80486         * lib/vasprintf.h: New file, from GNU gettext with modifications.
80487         * lib/vasprintf.c: New file, from GNU gettext.
80488         * lib/asprintf.c: New file, from GNU gettext.
80489
80490 2003-01-29  Bruno Haible  <bruno@clisp.org>
80491
80492         * modules/stpncpy: New module.
80493         * MODULES.html.sh (func_all_modules): Add it.
80494
80495 2003-01-29  Bruno Haible  <bruno@clisp.org>
80496
80497         * m4/stpncpy.m4: New file.
80498
80499 2003-01-29  Bruno Haible  <bruno@clisp.org>
80500
80501         * lib/stpncpy.h: New file, from GNU gettext with modifications.
80502         * lib/stpncpy.c: New file, from GNU gettext with modifications.
80503
80504 2003-01-28  Bruno Haible  <bruno@clisp.org>
80505
80506         * modules/c-ctype: New module.
80507         * MODULES.html.sh (func_all_modules): Add it.
80508
80509 2003-01-28  Bruno Haible  <bruno@clisp.org>
80510
80511         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
80512         Paul Eggert.
80513         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
80514         Paul Eggert.
80515
80516 2003-01-27  Bruno Haible  <bruno@clisp.org>
80517
80518         * modules/xsetenv: New module.
80519         * MODULES.html.sh (func_all_modules): Add it.
80520
80521 2003-01-27  Bruno Haible  <bruno@clisp.org>
80522
80523         * lib/xsetenv.h: New file, from GNU gettext.
80524         * lib/xsetenv.c: New file, from GNU gettext.
80525
80526 2003-01-23  Jim Meyering  <jim@meyering.net>
80527
80528         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
80529         from working on systems without dirfd (at least Irix and OSF1/Tru64).
80530
80531 2003-01-23  Bruno Haible  <bruno@clisp.org>
80532
80533         * modules/minmax: New module.
80534         * MODULES.html.sh (func_all_modules): Add it.
80535
80536 2003-01-23  Bruno Haible  <bruno@clisp.org>
80537
80538         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
80539         Eggert.
80540
80541 2003-01-22  Bruno Haible  <bruno@clisp.org>
80542
80543         * modules/exit: New module.
80544         * MODULES.html.sh (func_all_modules): Add it.
80545
80546 2003-01-22  Bruno Haible  <bruno@clisp.org>
80547
80548         * lib/exit.h: New file, from GNU gettext.
80549
80550 2003-01-19  Bruno Haible  <bruno@clisp.org>
80551
80552         * gnulib-tool: Recognize option --extract-maintainer.
80553         (func_get_maintainer): New function.
80554         * modules/*: Add Maintainer entry.
80555
80556 2003-01-16  Jim Meyering  <jim@meyering.net>
80557
80558         * m4/regex.m4: The `regex' struct is both input and output.
80559         Initialize it before each use.  Patch by Tim Waugh.
80560
80561 2003-01-16  Bruno Haible  <bruno@clisp.org>
80562
80563         * MODULES.html.sh: Add a table of contents. Add the module name as
80564         leftmost column. Add hyperlinks.
80565
80566 2003-01-15  Bruno Haible  <bruno@clisp.org>
80567
80568         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
80569
80570 2003-01-15  Bruno Haible  <bruno@clisp.org>
80571
80572         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
80573         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
80574         suffix.
80575
80576 2003-01-15  Bruno Haible  <bruno@clisp.org>
80577
80578         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
80579
80580 2003-01-15  Bruno Haible  <bruno@clisp.org>
80581
80582         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
80583         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
80584
80585 2003-01-14  Jim Meyering  <jim@meyering.net>
80586
80587         * lib/same.c (same_name): Tweak a comment.
80588
80589 2003-01-14  Bruno Haible  <bruno@clisp.org>
80590
80591         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
80592         when a string comparison is sufficient.
80593
80594 2003-01-14  Bruno Haible  <bruno@clisp.org>
80595
80596         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
80597         'unsigned int'.
80598
80599 2003-01-14  Bruno Haible  <bruno@clisp.org>
80600
80601         * lib/hash-pjw.c: Add comment about low quality of this function.
80602
80603 2003-01-13  Bruno Haible  <bruno@clisp.org>
80604
80605         * modules/stpcpy: Distribute lib/stpcpy.h.
80606         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
80607
80608 2003-01-13  Bruno Haible  <bruno@clisp.org>
80609
80610         * modules/*: Add a description.
80611         * modules/strpbrk: Fix Makefile.am snippet.
80612         * modules/strtoimax: Fix dependencies.
80613         * modules/strtoumax: Likewise.
80614
80615 2003-01-13  Bruno Haible  <bruno@clisp.org>
80616
80617         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
80618         * modules/alloca (Makefile.am): All object files depend on alloca.h.
80619         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
80620
80621 2003-01-13  Bruno Haible  <bruno@clisp.org>
80622
80623         * gnulib-tool (func_create_testdir): Store config/* files in the main
80624         directory.
80625         * config.rpath: Move to ...
80626         * config/config.rpath: ... here.
80627         * modules/gettext: Contains config/config.rpath, not config.rpath.
80628         * modules/iconv: Likewise.
80629
80630 2003-01-12  Paul Eggert  <eggert@twinsun.com>
80631
80632         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
80633         to avoid collisions with libcurses and libreadline.
80634
80635         * m4/getstr.m4: Remove.
80636         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
80637
80638 2003-01-12  Paul Eggert  <eggert@twinsun.com>
80639
80640         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
80641         to avoid collisions with libcurses and libreadline.
80642
80643         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
80644         * lib/getstr.h, getstr.c: Remove.
80645         * lib/getline.c: Include "getline.h", to check interface.
80646         Move body of old getstr.c here: this defines MIN_CHUNK and
80647         declares getdelim2, which is renamed from getstr.
80648         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
80649
80650         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
80651         All uses changed.
80652         * lib/linebuffer.h: Likewise.
80653         (readline): Remove backward-compatibility macro.
80654
80655 2003-01-12  Paul Eggert  <eggert@twinsun.com>
80656
80657         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
80658         to avoid collisions with libcurses and libreadline.
80659         * getstr: Remove.
80660         * MODULES.html.sh: Remove getstr.
80661         * modules/getline: Depend on unlocked-io, not getstr.
80662
80663 2003-01-12  Jim Meyering  <jim@meyering.net>
80664
80665         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
80666
80667 2003-01-10  Bruno Haible  <bruno@clisp.org>
80668
80669         * modules/alloca: Change Makefile.am requirements. Simplify Include
80670         requirements. Add lib/alloca_.h to file list.
80671
80672 2003-01-10  Bruno Haible  <bruno@clisp.org>
80673
80674         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
80675
80676 2003-01-10  Bruno Haible  <bruno@clisp.org>
80677
80678         * lib/alloca_.h: New file.
80679         * lib/getdate.y: Unconditionally include alloca.h.
80680         * lib/makepath.c: Likewise.
80681         * lib/setenv.c: Likewise.
80682         * lib/userspec.c: Likewise.
80683
80684 2003-01-09  Karl Berry  <karl@gnu.org>
80685
80686         * MODULES.html.sh: include `dirname $0` in PATH, to find
80687         gnulib-tool.
80688
80689 2003-01-09  Bruno Haible  <bruno@clisp.org>
80690
80691         * modules/stdbool: Change configure.ac, Makefile.am requirements.
80692         Simplify Include requirements. Add lib/stdbool.h.in to file list.
80693
80694 2003-01-09  Bruno Haible  <bruno@clisp.org>
80695
80696         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
80697
80698 2003-01-09  Bruno Haible  <bruno@clisp.org>
80699
80700         * lib/stdbool.h.in: New file.
80701
80702 2003-01-09  Bruno Haible  <bruno@clisp.org>
80703
80704         * gnulib-tool (func_all_modules): Ignore files ending in ~.
80705         * MODULES.html.sh: Likewise.
80706
80707 2003-01-08  Jim Meyering  <jim@meyering.net>
80708
80709         * lib/full-write.c: Undefine and define-away `const' after inclusion
80710         of errno.h, not before.  Suggestion from Bruno Haible.
80711
80712 2003-01-08  Bruno Haible  <bruno@clisp.org>
80713
80714         * modules/full-read: Depend on full-write.
80715
80716 2003-01-08  Bruno Haible  <bruno@clisp.org>
80717
80718         * lib/safe-read.c: Include specification header first, to ensure its
80719         selfcontainedness.
80720         * lib/full-write.c: Likewise.
80721
80722 2003-01-07  Jim Meyering  <jim@meyering.net>
80723
80724         * lib/full-write.c: Rework so that it may serve to define full_read,
80725         too.
80726         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
80727
80728 2003-01-07  Bruno Haible  <bruno@clisp.org>
80729
80730         * lib/strtoimax.c: Include <stdint.h> as an alternative to
80731         <inttypes.h>.
80732         * lib/xstrtol.h: Likewise.
80733         * lib/xstrtoimax.c: Likewise.
80734         * lib/xstrtoumax.c: Likewise.
80735         * lib/human.h: Likewise.
80736
80737         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
80738         on systems that have <inttypes.h> but not <stdint.h>.
80739
80740 2003-01-07  Bruno Haible  <bruno@clisp.org>
80741
80742         * MODULES.html.sh: Add copyright notice.
80743         (missed_files): Omit CVS directory entries.
80744         (func_module): Make it work with sed-3.02.
80745         * MODULES.txt: Remove file.
80746
80747 2003-01-06  Jim Meyering  <jim@meyering.net>
80748
80749         * lib/version-etc.c: Update year in translatable copyright string.
80750
80751 2003-01-03  Karl Berry  <karl@gnu.org>
80752
80753         * config/config.{guess,sub}: update from prep.
80754
80755 2003-01-02  Karl Berry  <karl@gnu.org>
80756
80757         * doc/COPYING.DOC: belatedly updated to 1.2.
80758
80759 2003-01-01  Karl Berry  <karl@gnu.org>
80760
80761         * gnulib-tool (func_verify_module): report module name $module in
80762         error message, not $1.
80763         * gnulib-tool (create-testdir): don't complain if destdir couldn't
80764         be created, only if it doesn't exist.
80765         * gnulib-tool (last_checkin_date): don't expand the $Date here.
80766
80767 2002-12-31  Paul Eggert  <eggert@twinsun.com>
80768
80769         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
80770
80771 2002-12-31  Paul Eggert  <eggert@twinsun.com>
80772
80773         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
80774         memcmp if strcoll doesn't work.
80775
80776 2002-12-31  Bruno Haible  <bruno@clisp.org>
80777
80778         * lib/utime.c (utime_null): No need to call ftruncate if the file was
80779         nonempty.
80780
80781 2002-12-31  Bruno Haible  <bruno@clisp.org>
80782
80783         * lib/memcoll.c (STRCOLL): New macro.
80784         (memcoll): Use it.
80785
80786 2002-12-31  Bruno Haible  <bruno@clisp.org>
80787
80788         * lib/localcharset.h: New file.
80789         * lib/localcharset.c: Include it.
80790         * lib/unicodeio.c: Likewise.
80791
80792 2002-12-31  Bruno Haible  <bruno@clisp.org>
80793
80794         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
80795         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
80796
80797 2002-12-31  Bruno Haible  <bruno@clisp.org>
80798
80799         * lib/getline.h: Include <stddef.h>, for size_t.
80800
80801         * lib/unicodeio.h: Include <stddef.h>, for size_t.
80802         * lib/unicodeio.c: Don't include <stddef.h>.
80803
80804 2002-12-31  Bruno Haible  <bruno@clisp.org>
80805
80806         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
80807         HAVE_TM_ZONE.
80808
80809 2002-12-24  Karl Berry  <karl@gnu.org>
80810
80811         * config/config.guess: update from prep.
80812
80813 2002-12-24  Bruno Haible  <bruno@clisp.org>
80814
80815         General infrasructure.
80816         * m4/README: Rewritten.
80817         * m4/onceonly.m4: New file.
80818         * m4/onceonly_2_57.m4: New file.
80819
80820         Module atexit.
80821         * m4/atexit.m4: New file.
80822
80823         Module strtod.
80824         * m4/strtod.m4: New file.
80825
80826         Module strtol.
80827         * m4/strtol.m4: New file.
80828
80829         Module strtoul.
80830         * m4/strtoul.m4: New file.
80831
80832         Module memchr.
80833         * m4/memchr.m4: New file.
80834
80835         Module memcmp.
80836         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
80837         (jm_FUNC_MEMCMP): Invoke it.
80838
80839         Module memcpy.
80840         * m4/memcpy.m4: New file.
80841
80842         Module memmove.
80843         * m4/memmove.m4: New file.
80844
80845         Module memset.
80846         * m4/memset.m4: New file.
80847
80848         Module strcspn.
80849         * m4/strcspn.m4: New file.
80850
80851         Module strpbrk.
80852         * m4/strpbrk.m4: New file.
80853
80854         Module strstr.
80855         * m4/strstr.m4: New file.
80856
80857         Module strerror.
80858         * m4/strerror.m4: New file.
80859
80860         Module mktime.
80861         * m4/mktime.m4: Renamed from jm-mktime.m4.
80862         (gl_PREREQ_MKTIME): New macro.
80863         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
80864
80865         Module malloc.
80866         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
80867         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
80868         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
80869
80870         Module realloc.
80871         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
80872         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
80873         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
80874
80875         Module strftime.
80876         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
80877         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
80878         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
80879         gl_TM_GMTOFF.
80880         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
80881
80882         Module xalloc.
80883         * m4/xalloc.m4: New file.
80884
80885         Module alloca.
80886         * m4/alloca.m4: New file.
80887
80888         Module putenv.
80889         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
80890         (jm_FUNC_PUTENV): Invoke it.
80891
80892         Module setenv.
80893         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
80894         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
80895         when invoked twice.
80896         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
80897         gt_FUNC_SETENV.
80898
80899         Module memrchr.
80900         * m4/memrchr.m4: New file.
80901
80902         Module stpcpy.
80903         * m4/stpcpy.m4: New file.
80904
80905         Module strcase.
80906         * m4/strcase.m4: New file.
80907
80908         Module strdup.
80909         * m4/strdup.m4: New file.
80910
80911         Module strnlen.
80912         * m4/strnlen.m4: New file.
80913
80914         Module strndup.
80915         * m4/strndup.m4: New file.
80916
80917         Module xstrtod.
80918         * m4/xstrtod.m4: New file.
80919
80920         Module xstrtol.
80921         * m4/xstrtol.m4: New file.
80922
80923         Module getdate.
80924         * m4/getdate.m4: New file.
80925
80926         Module unlocked-io.
80927         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
80928         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
80929         * m4/jm-glibc-io.m4n: Remove file.
80930
80931         Module long-options.
80932         * m4/long-options.m4: New file.
80933
80934         Module md5.
80935         * m4/md5.m4: New file.
80936
80937         Module sha.
80938         * m4/sha.m4: New file.
80939
80940         Module getstr.
80941         * m4/getstr.m4: New file.
80942
80943         Module getline.
80944         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
80945         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
80946         <sys/types.h>, for size_t. Use the function name gnu_getline, not
80947         simply getline. Infoke gl_PREREQ_GETLINE.
80948
80949         Module obstack.
80950         * m4/obstack.m4: New file.
80951
80952         Module hash.
80953         * m4/hash.m4: New file.
80954
80955         Module readtokens.
80956         * m4/readtokens.m4: New file.
80957
80958         Module strverscmp.
80959         * m4/strverscmp.m4: New file.
80960
80961         Module stdbool.
80962         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
80963         OSF/1.
80964
80965         Module strtoll.
80966         * m4/strtoll.m4: New file.
80967
80968         Module strtoull.
80969         * m4/strtoull.m4: New file.
80970
80971         Module strtoimax.
80972         * m4/strtoimax.m4: New file.
80973
80974         Module strtoumax.
80975         * m4/strtoumax.m4: New file.
80976
80977         Module xstrtoimax.
80978         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
80979         jm_AC_PREREQ_XSTRTOIMAX.
80980         Moved the strtol prerequisites to strtol.m4.
80981         Moved the strtoll prerequisites to strtoll.m4.
80982         Moved the strtoimax prerequisites to strtoimax.m4.
80983
80984         Module xstrtoumax.
80985         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
80986         jm_AC_PREREQ_XSTRTOUMAX.
80987         Moved the strtoul prerequisites to strtoul.m4.
80988         Moved the strtoull prerequisites to strtoull.m4.
80989         Moved the strtoumax prerequisites to strtoumax.m4.
80990
80991         Module chown.
80992         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
80993         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
80994
80995         Module dup2.
80996         * m4/dup2.m4: New file.
80997
80998         Module ftruncate.
80999         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
81000         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
81001
81002         Module getgroups.
81003         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
81004         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
81005
81006         Module gettimeofday.
81007         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
81008         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
81009         gl_PREREQ_GETTIMEOFDAY.
81010
81011         Module mkdir.
81012         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
81013         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
81014
81015         Module mkstemp.
81016         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
81017         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
81018         jm_AC_TYPE_UINTMAX_T.
81019         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
81020
81021         Module stat.
81022         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
81023         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
81024
81025         Module lstat.
81026         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
81027         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
81028
81029         Module timespec.
81030         * m4/timespec.m4 (gl_TIMESPEC): New macro.
81031         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
81032         * m4/st_mtim.m4: Indentation.
81033
81034         Module nanosleep.
81035         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
81036         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
81037         gl_PREREQ_NANOSLEEP.
81038
81039         Module regex.
81040         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
81041         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
81042         (gl_REGEX): New macro.
81043
81044         Module rename.
81045         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
81046         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
81047
81048         Module rmdir.
81049         * m4/rmdir.m4: New file.
81050
81051         Module utime.
81052         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
81053         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
81054         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
81055
81056         Module dirname.
81057         * m4/dirname.m4: New file.
81058
81059         Module getopt.
81060         * m4/getopt.m4: New file.
81061
81062         Module unistd-safer.
81063         * m4/unistd-safer.m4: New file.
81064
81065         Module fnmatch.
81066         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
81067         declaration.
81068         (gl_PREREQ_FNMATCH_EXTRA): New macro.
81069         (gl_FUNC_FNMATCH_POSIX): New macro.
81070         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
81071         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
81072         simply fnmatch.
81073
81074         Module exclude.
81075         * m4/exclude.m4: New file.
81076
81077         Module human.
81078         * m4/human.m4: New file.
81079
81080         Module acl.
81081         * m4/acl.m4: Nop.
81082
81083         Module backupfile.
81084         * m4/backupfile.m4: New file.
81085         * m4/d-ino.m4: Indentation.
81086
81087         Module fsusage.
81088         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
81089         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
81090         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
81091
81092         Module dirfd.
81093         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
81094         requirements.
81095
81096         Module euidaccess.
81097         * m4/euidaccess.m4: New file.
81098
81099         Module file-type.
81100         * m4/file-type.m4: New file.
81101
81102         Module fileblocks.
81103         * m4/fileblocks.m4: New file.
81104
81105         Module filemode.
81106         * m4/filemode.m4: New file.
81107
81108         Module isdir.
81109         * m4/isdir.m4: New file.
81110
81111         Module lchown.
81112         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
81113         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
81114
81115         Module makepath.
81116         * m4/makepath.m4: New file.
81117
81118         Module modechange.
81119         * m4/modechange.m4: New file.
81120
81121         Module mountlist.
81122         * m4/mountlist.m4: New file.
81123         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
81124         Indentation.
81125
81126         Module path-concat.
81127         * m4/path-concat.m4: New file.
81128
81129         Module pathmax.
81130         * m4/pathmax.m4: New file.
81131
81132         Module same.
81133         * m4/same.m4: New file.
81134
81135         Module save-cwd.
81136         * m4/save-cwd.m4: New file.
81137
81138         Module savedir.
81139         * m4/savedir.m4: New file.
81140
81141         Module xgetcwd.
81142         * m4/xgetcwd.m4: New file.
81143         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
81144
81145         Module xreadlink.
81146         * m4/xreadlink.m4: New file.
81147
81148         Module safe-read.
81149         * m4/safe-read.m4: New file.
81150
81151         Module safe-write.
81152         * m4/safe-write.m4: New file.
81153
81154         Module closeout.
81155         * m4/closeout.m4: New file.
81156
81157         Module stdio-safer.
81158         * m4/stdio-safer.m4: New file.
81159
81160         Module getpass.
81161         * m4/getpass.m4: New file.
81162
81163         Module getugroups.
81164         * m4/getugroups.m4: New file.
81165
81166         Module group-member.
81167         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
81168         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
81169
81170         Module idcache.
81171         * m4/idcache.m4: New file.
81172
81173         Module userspec.
81174         * m4/userspec.m4: New file.
81175
81176         Module gettime.
81177         * m4/clock_time.m4: New file.
81178         * m4/gettime.m4: New file.
81179
81180         Module settime.
81181         * m4/settime.m4: New file.
81182
81183         Module posixtm.
81184         * m4/posixtm.m4: New file.
81185
81186         Module gethostname.
81187         * m4/gethostname.m4: New file.
81188
81189         Module canon-host.
81190         * m4/canon-host.m4: New file.
81191
81192         Module gettext.
81193         * m4/codeset.m4: New file, from gettext-0.11.5.
81194         * m4/gettext.m4: New file, from gettext-0.11.5.
81195         * m4/glibc21.m4: New file, from gettext-0.11.5.
81196         * m4/iconv.m4: New file, from gettext-0.11.5.
81197         * m4/intdiv0.m4: New file, from gettext-0.11.5.
81198         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
81199         * m4/inttypes.m4: New file, from gettext-0.11.5.
81200         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
81201         * m4/isc-posix.m4: New file, from gettext-0.11.5.
81202         * m4/lcmessage.m4: New file, from gettext-0.11.5.
81203         * m4/lib-ld.m4: New file, from gettext-0.11.5.
81204         * m4/lib-link.m4: New file, from gettext-0.11.5.
81205         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
81206         * m4/progtest.m4: New file, from gettext-0.11.5.
81207         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
81208         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
81209         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
81210
81211         Module localcharset.
81212         * m4/localcharset.m4: New file.
81213
81214         Module hard-locale.
81215         * m4/hard-locale.m4: New file.
81216
81217         Module mbswidth.
81218         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
81219         onceonly macros.
81220         * m4/mbrtowc.m4: Add comment.
81221
81222         Module memcasecmp.
81223         * m4/memcasecmp.m4: New file.
81224
81225         Module memcoll.
81226         * m4/memcoll.m4: New file.
81227
81228         Module unicodeio.
81229         * m4/unicodeio.m4: New file.
81230
81231         Module rpmatch.
81232         * m4/rpmatch.m4: New file.
81233
81234         Module yesno.
81235         * m4/yesno.m4: New file.
81236
81237         Module exitfail.
81238         * m4/exitfail.m4: New file.
81239
81240         Module c-stack.
81241         * m4/c-stack.m4 (gl_C_STACK): New macro.
81242         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
81243
81244         Module error.
81245         * m4/error.m4 (gl_ERROR): New macro.
81246         (jm_PREREQ_ERROR): Use onceonly macros.
81247
81248         Module fatal.
81249         * m4/fatal.m4: New file.
81250
81251         Module getloadavg.
81252         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
81253         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
81254
81255         Module getpagesize.
81256         * m4/getpagesize.m4: New file.
81257
81258         Module getusershell.
81259         * m4/getusershell.m4: New file.
81260
81261         Module physmem.
81262         * m4/physmem.m4: New file.
81263
81264         Module posixver.
81265         * m4/posixver.m4: New file.
81266
81267         Module quotearg.
81268         * m4/quotearg.m4: New file.
81269
81270         Module quote.
81271         * m4/quote.m4: New file.
81272
81273         Module readutmp.
81274         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
81275
81276         Module sig2str.
81277         * m4/sig2str.m4: New file.
81278
81279         Other.
81280         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
81281         ulonglong.m4.
81282         * m4/intmax_t.m4: New file.
81283         * m4/d-type.m4: Indentation.
81284         * m4/jm-macros.m4: Update.
81285         * m4/prereq.m4 (jm_PREREQ): Update.
81286         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
81287         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
81288         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
81289         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
81290         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
81291         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
81292         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
81293         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
81294         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
81295         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
81296         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
81297         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
81298         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
81299         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
81300         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
81301         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
81302         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
81303         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
81304         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
81305
81306 2002-12-24  Bruno Haible  <bruno@clisp.org>
81307
81308         * MODULES.txt: Update according to m4/ changes.
81309
81310         Module gettext.
81311         * config.rpath: New file, from gettext-0.11.5.
81312
81313         * modules/*: New module descriptions.
81314         * gnulib-tool: New file.
81315         * MODULES.html.sh: New file.
81316
81317 2002-12-21  Karl Berry  <karl@gnu.org>
81318
81319         * doc/fdl.texi: update to version 1.2.
81320
81321 2002-12-19  Karl Berry  <karl@gnu.org>
81322
81323         * config/config.guess: update from prep.
81324
81325 2002-12-18  Bruno Haible  <bruno@clisp.org>
81326
81327         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
81328         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
81329
81330 2002-12-17  Bruno Haible  <bruno@clisp.org>
81331
81332         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
81333         stdlib.h, string.h.
81334
81335 2002-12-17  Bruno Haible  <bruno@clisp.org>
81336
81337         * lib/canon-host.c (strdup): Remove unused declaration.
81338
81339         * lib/fsusage.c: Include full_read.h.
81340         (get_fs_usage): Use full_read instead of safe_read.
81341
81342         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
81343
81344 2002-12-12  Karl Berry  <karl@gnu.org>
81345
81346         * config/config.guess: update from prep.
81347
81348 2002-12-11  Bruno Haible  <bruno@clisp.org>
81349
81350         * m4/setenv.m4: New file, from gettext-0.11.5.
81351
81352 2002-12-11  Bruno Haible  <bruno@clisp.org>
81353
81354         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
81355         not unsetenv().
81356         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
81357         modifications:
81358
81359         2002-12-11  Bruno Haible  <bruno@clisp.org>
81360
81361                 * setenv.c (alloca): Fall back to malloc.
81362                 (freea): New macro.
81363                 (setenv): Use freea() to free memory allocated with alloca().
81364
81365         2002-11-13  Bruno Haible  <bruno@clisp.org>
81366
81367                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
81368                 function declarations.
81369                 * unsetenv.c (unsetenv): Likewise.
81370
81371         2002-03-04  Bruno Haible  <bruno@clisp.org>
81372
81373                 Portability to AIX 4.3.3.
81374                 * unsetenv.c: New file, extracted from setenv.c.
81375                 * setenv.c: Move the unsetenv() function to unsetenv.c.
81376
81377         2001-12-20  Bruno Haible  <bruno@clisp.org>
81378
81379                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
81380                 use malloc instead. For SunOS 4.
81381
81382         2001-12-11  Bruno Haible  <bruno@clisp.org>
81383
81384                 * setenv.c: Declare alloca.
81385                 (compar_fn_t): New typedef.
81386                 (KNOWN_VALUE, STORE_VALUE): Use it.
81387
81388         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
81389         setenv.h.
81390
81391 2002-12-10  Paul Eggert  <eggert@twinsun.com>
81392
81393         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
81394         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
81395         Choose values that are less likely to collide with system fnmatch
81396         options.
81397         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
81398         defined (e.g., a pure POSIX system).
81399         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
81400         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
81401
81402 2002-12-06  Paul Eggert  <eggert@twinsun.com>
81403
81404         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
81405         a pain in practice to deal with generated m4 files.  This change
81406         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
81407
81408         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
81409         and jm-glibc-io.m4, as they are no longer a special case.
81410         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
81411         kludge and the auto-generation stuff.  Check only whether the
81412         functions are declared, not whether they exist, since older hosts
81413         that don't declare the functions can't use the optimization anyway.
81414
81415 2002-12-06  Jim Meyering  <jim@meyering.net>
81416
81417         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
81418
81419         Merge in changes from libc's misc/error.c, in preparation
81420         for the merge of gnulib's changes back into libc.
81421
81422         * lib/error.c (_): Define only if not already defined.
81423         Move definition to follow all #include directives.
81424         Include unlocked-io.h only if !_LIBC.
81425         [_LIBC]: Include <libio/libioP.h>.
81426         [USE_IN_LIBIO]: Include <libio/iolibio.h>
81427         (fflush): Tweak definition to use INTUSE.
81428         (putc): Define.
81429
81430 2002-12-05  Paul Eggert  <eggert@twinsun.com>
81431
81432         * lib/alloca.c [defined emacs]: Include "lisp.h".
81433         (xalloc_die) [defined emacs]: New macro.
81434         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
81435         [! defined emacs]: Include <xalloc.h>.
81436         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
81437         (pointer): Typedef to POINTER_TYPE *.
81438         (malloc): Remove decl; we now always use xmalloc.
81439         (alloca): Use old-style definition, since Emacs needs this.
81440         Check for arithmetic overflow when computing combined size.
81441
81442 2002-12-04  Paul Eggert  <eggert@twinsun.com>
81443
81444         Do not generate unlocked-io.h automatically, since it's easier to
81445         maintain it by hand.
81446
81447         * lib/unlocked-io.h: New file, from GNU diffutils,
81448         but with proper copyright notice and attribution.
81449         * lib/gen-uio: Remove.
81450         * lib/Makefile.am: Add copyright notice.
81451         (libfetish_a_SOURCES): Add unlocked-io.h.
81452         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
81453         (DISTCLEANFILES, io_functions): Remove macros.
81454         (EXTRA_DIST): Remove gen_uio.
81455         (unlocked-io.h): Remove rule.
81456
81457 2002-12-04  Jim Meyering  <jim@meyering.net>
81458
81459         Reflect the fact that stat.c and lstat.c are no longer generated.
81460         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
81461         (DISTCLEANFILES): Likewise.
81462         (EXTRA_DIST): Likewise.
81463         (all_local): Don't depend on stat.c or lstat.c.
81464         (stat.c, lstat.c): Remove rules.
81465         (EXTRA_DIST): Remove xstat.in.
81466
81467         * lib/xstat.in: Remove file.  Contents moved into stat.c.
81468         * lib/stat.c: New file.  Contents mostly from xstat.in.
81469         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
81470         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
81471
81472         * lib/safe-read.c: Rework so that it may serve to define safe_write,
81473         too.
81474         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
81475
81476 2002-12-03  Jim Meyering  <jim@meyering.net>
81477
81478         * lib/safe-read.c, safe-write.c: Change variable names and comments,
81479         but not semantics, to minimize the differences between these two files.
81480         (safe_read): Change comment to mention SAFE_READ_ERROR.
81481
81482         * lib/safe-read.c (IS_EINTR): Define.
81483         (safe_read): Use IS_EINTR in place of in-function cpp directives.
81484
81485 2002-12-02  Jim Meyering  <jim@meyering.net>
81486
81487         * lib/safe-read.c (EINTR): Define.
81488         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
81489         (INT_MAX): Provide fallback.
81490         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
81491
81492         * lib/safe-read.h (SAFE_READ_ERROR): Define.
81493
81494 2002-12-02  Bruno Haible  <bruno@clisp.org>
81495
81496         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
81497         Define, taken from safe-read.c.
81498         (INT_MAX): Provide fallback.
81499         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
81500         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
81501
81502         * lib/safe-read.c (EINTR): Remove definition.
81503         (safe_read): Don't use EINTR if it is absent.
81504
81505 2002-12-01  Jim Meyering  <jim@meyering.net>
81506
81507         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
81508         zero.
81509         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
81510
81511 2002-11-27  Paul Eggert  <eggert@twinsun.com>
81512
81513         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
81514         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
81515         with `if (! (value < limit)) abort ();', for readability.
81516
81517 2002-11-26  Karl Berry  <karl@gnu.org>
81518
81519         * lib/strdup.c: copy from libc again, with jim's ok.
81520         * lib/.cppi-disable: re-add strdup.c
81521
81522 2002-11-25  Karl Berry  <karl@gnu.org>
81523
81524         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
81525         instead of "strtol.c".
81526
81527 2002-11-25  Karl Berry  <karl@gnu.org>
81528
81529         * config/install-sh: update from automake for variable quoting, $0 in
81530         error msgs, etc.
81531
81532         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
81533         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
81534         entry.
81535
81536 2002-11-25  Jim Meyering  <jim@meyering.net>
81537
81538         * lib/mktime.c: Sync from libc, now that it has the latest fix.
81539
81540 2002-11-24  Karl Berry  <karl@gnu.org>
81541
81542         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
81543         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
81544
81545 2002-11-24  Jim Meyering  <jim@meyering.net>
81546
81547         Update from coreutils:
81548
81549         * lib/mktime.c: Merge in changes from libc.
81550
81551         Avoid a link-time failure on some Linux systems.
81552         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
81553         (otherwise).
81554         (__mon_yday): Declare with the STATIC attribute.
81555         (__mktime_internal): Likewise.
81556         Based on a report from Greg Schafer.
81557
81558 2002-11-23  Jim Meyering  <jim@meyering.net>
81559
81560         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
81561         Use `unsigned', not `int', as type of index.
81562
81563         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
81564
81565         * lib/fsusage.c: Remove unneeded parentheses around operands of
81566         `defined'.
81567
81568 2002-11-22  Paul Eggert  <eggert@twinsun.com>
81569
81570         * lib/quotearg.h: Allow multiple inclusion by surrounding with
81571         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
81572         so that we can be included first.
81573         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
81574         * lib/quotearg.c: Include quotearg.h immediately after config.h.
81575         No need to include stddef.h or sys/types.h any more.
81576         Surround local include files with "", not "<>".
81577         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
81578         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
81579         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
81580         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
81581         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
81582         (ISPRINT): Remove; no longer needed now that we assume C89.
81583
81584         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
81585         Preserve errno.
81586
81587         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
81588         quotearg_char): Use SIZE_MAX rather than
81589         (size_t) -1 when we are talking about "infinity".
81590
81591         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
81592
81593 2002-11-22  Paul Eggert  <eggert@twinsun.com>
81594
81595         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
81596         hint that one should use `if (! x) abort ();' rather than `assert
81597         (x);', and anyway it's one less thing to worry about configuring.
81598         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
81599         hash_rehash, hash_insert): Use abort rather than assert.
81600
81601 2002-11-22  Bruno Haible  <bruno@clisp.org>
81602
81603         * lib/safe-read.h: Assume C89. Add comments.
81604         (safe_read): Change return type to size_t.
81605         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
81606         byte counts > SSIZE_MAX correctly.
81607         * lib/safe-write.h: New file.
81608         * lib/safe-write.c: New file.
81609         * lib/full-read.h: New file.
81610         * lib/full-read.c: New file.
81611         * lib/full-write.h: Assume C89. Add comments.
81612         * lib/full-write.c: Include safe-write.h.
81613         (full_write): Rewritten to use safe_write.
81614         Suggested by Jim Meyering and Paul Eggert.
81615
81616 2002-11-21  Jim Meyering  <jim@meyering.net>
81617
81618         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
81619
81620         Merge in changes from the coreutils.
81621
81622         2002-09-25  Paul Eggert  <eggert@twinsun.com>
81623         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
81624         <stdint.h>.
81625         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
81626         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
81627         int.  Work more efficiently if X is the same width as uintmax_t.
81628         Do not compare X to -1, to avoid bogus compiler warning.
81629         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
81630         Don't assume that f_frsize and f_bsize are the same type.
81631
81632         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
81633         warning on FreeBSD.
81634
81635         * lib/makepath.c (make_path): Restore umask *before* creating the final
81636         component.
81637         (make_path): Minor reformatting.
81638
81639         * lib/xmalloc.c: Adjust to work with new autoconf macros,
81640         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
81641         HAVE_MALLOC/HAVE_REALLOC.
81642
81643         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
81644         dummy ones.  At least on GNU/Linux systems, `auto' means something
81645         else.
81646         From Michael Stone.
81647
81648 2002-11-21  Bruno Haible  <bruno@clisp.org>
81649
81650         Remove case insensitive option matching.
81651         * lib/argmatch.h (argcasematch): Remove declaration.
81652         (ARGCASEMATCH): Remove macro.
81653         (__xargmatch_internal): Remove case_sensitive argument.
81654         (XARGMATCH): Update.
81655         (XARGCASEMATCH): Remove macro.
81656         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
81657         case_sensitive argument.
81658         (argcasematch): Remove function.
81659         (__xargmatch_internal): Remove case_sensitive argument.
81660         (main): Use XARGMATCH instead of XARGCASEMATCH.
81661
81662         * lib/xmalloc.c: Change compile-time error message. Add comment about
81663         required autoconf version.
81664
81665 2002-11-20  Paul Eggert  <eggert@twinsun.com>
81666
81667         Merge argmatch cleanups from Bison.  Assume C89.
81668
81669         * lib/argmatch.c: Include config.h here, not in argmatch.h.
81670         Include stdlib.h, for EXIT_FAILURE.
81671         Always include <string.h>, since we assume C89.
81672         (EXIT_FAILURE): Remove pre-C89 bug workaround.
81673         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
81674         Include <stddef.h> instead, since it's all we need for size_t.
81675         (PARAMS): Remove.  All uses removed.
81676         (ARRAY_CARDINALITY): Do not bother to #undef.
81677         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
81678         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
81679         Remove unnecessary parentheses.
81680         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
81681         Insert necessary parentheses.
81682         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
81683         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
81684
81685 2002-11-19  Bruno Haible  <bruno@clisp.org>
81686
81687         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
81688         * lib/mbswidth.h: Include <stddef.h>, for size_t.
81689
81690         * lib/mbswidth.h (PARAMS): Remove macro.
81691         (mbswidth, mbsnwidth): Use ANSI C function declarations.
81692         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
81693
81694         * lib/gcd.h (PARAMS): Remove macro.
81695         (gcd): Use ANSI C function declarations.
81696         * lib/gcd.c (gcd): Likewise.
81697
81698 2002-11-15  Bruno Haible  <bruno@clisp.org>
81699
81700         * lib/strcspn.c: Include <stddef.h>.
81701         (strcspn): Use ANSI C function declaration. Change return type to
81702         size_t. Use NULL.
81703         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
81704         (strpbrk): Use NULL.
81705         * lib/strpbrk.h (PARAMS): Remove macro.
81706         (strpbrk): Use ANSI C function declaration.
81707         * lib/strstr.c: Don't include <sys/types.h>.
81708         * lib/strstr.h (PARAMS): Remove macro.
81709         (strstr): Use ANSI C function declarations.
81710
81711 2002-11-14  Karl Berry  <karl@gnu.org>
81712
81713         * config/mkinstalldirs: `do' on separate line, instead of
81714         `for var; do'.
81715
81716 2002-11-06  Bruno Haible  <bruno@clisp.org>
81717
81718         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
81719         * lib/gcd.c (gcd): Likewise.
81720
81721 2002-11-05  Bruno Haible  <bruno@clisp.org>
81722
81723         * lib/gcd.h: New file, from gettext-0.11.5.
81724         * lib/gcd.c: New file, from gettext-0.11.5.
81725
81726 2002-11-05  Bruno Haible  <bruno@clisp.org>
81727
81728         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
81729         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
81730         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
81731         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
81732
81733         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
81734         <libintl.h>.
81735         * lib/makepath.c: Include gettext.h instead of <locale.h> and
81736         <libintl.h>.
81737
81738         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
81739         * lib/human.c: Include gettext.h instead of <libintl.h>.
81740         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
81741         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
81742         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
81743         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
81744         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
81745         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
81746         (textdomain): Remove definition.
81747         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
81748
81749         * lib/long-options.c: Remove include of <libintl.h> and definition of
81750         _.
81751         * lib/same.c: Remove include of <libintl.h> and definition of _.
81752
81753 2002-11-04  Owen Taylor  <otaylor@redhat.com>
81754
81755         * lib/config.charset: A few additions for Solaris.
81756
81757 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
81758
81759         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
81760         * lib/localcharset.c (locale_charset): Declare as extern "C".
81761
81762 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
81763
81764         * lib/config.charset: msdos in uk_UA uses CP1125.
81765
81766 2002-11-04  Bruno Haible  <bruno@clisp.org>
81767
81768         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
81769         * lib/strcase.h: New file, from GNU gettext-0.11.5.
81770         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
81771         * lib/strstr.h: New file, from GNU gettext-0.11.5.
81772         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
81773
81774 2002-11-04  Bruno Haible  <bruno@clisp.org>
81775
81776         * lib/localcharset.c (locale_charset): Don't return an empty string.
81777
81778 2002-11-04  Bruno Haible  <bruno@clisp.org>
81779
81780         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
81781         aliases.
81782
81783 2002-11-04  Bruno Haible  <bruno@clisp.org>
81784
81785         * lib/config.charset: Update for newest glibc. Add canonical names
81786         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
81787
81788 2002-11-04  Bruno Haible  <bruno@clisp.org>
81789
81790         * lib/config.charset: Add support for NetBSD.
81791
81792 2002-11-04  Bruno Haible  <bruno@clisp.org>
81793
81794         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
81795
81796 2002-11-01  Bruno Haible  <bruno@clisp.org>
81797
81798         * configure.in: Add AC_CONFIG_AUX_DIR call.
81799         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
81800         test/Makefile.
81801         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
81802
81803 2002-09-28  Karl Berry  <karl@gnu.org>
81804
81805         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
81806         installed automake until the next release, since changes have been
81807         made.
81808
81809 2002-09-25  Karl Berry  <karl@gnu.org>
81810
81811         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
81812         * lib/getopt*: copy from libc/posix.
81813         * lib/gettext.h: copy from gettext.
81814         * lib/.cppi-disable: add strdup.c, gettext.h.
81815
81816 2002-09-25  Karl Berry  <karl@gnu.org>
81817
81818         * config/srclist.txt: enable gettext.h check.
81819         * config/config.{guess,sub}: update from prep.
81820         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
81821                 from automake 1.6.3.
81822         See srclist*.
81823
81824 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
81825
81826         * regex.c (PATFETCH): Remove the translating fetch.
81827         (PATFETCH_RAW): Rename to PATFETCH.
81828         (set_image_of_range): New fun.
81829         (SET_RANGE_TABLE_WORK_AREA): Use it.
81830         (regex_compile): Don't translate the pattern chars so eagerly.
81831         Only do it when inserting an `exactn' bytecode or when handling
81832         a char-range.
81833         (mutually_exclusive_p): Avoid empty statement.
81834
81835 2002-07-06  Jim Meyering  <meyering@lucent.com>
81836
81837         * m4/README: Don't mention Makefile.am.in.
81838         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
81839
81840 2002-07-01  Jim Meyering  <meyering@lucent.com>
81841
81842         * lib/c-stack.c: Include sys/time.h.
81843         From Volker Borchert.
81844
81845 2002-06-26  Paul Eggert  <eggert@twinsun.com>
81846
81847         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
81848
81849 2002-06-26  Paul Eggert  <eggert@twinsun.com>
81850
81851         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
81852         New macro.  Use it uniformly instead of
81853         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
81854         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
81855         reported by Vin Shelton.
81856
81857 2002-06-22  Paul Eggert  <eggert@twinsun.com>
81858
81859         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
81860         Do not assume SA_SIGINFO behavior.
81861         Bug reported by Jim Meyering on NetBSD 1.5.2.
81862
81863 2002-06-22  Jim Meyering  <meyering@lucent.com>
81864
81865         * m4/c-stack.m4: New file, from diffutils-2.8.2.
81866         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
81867
81868         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
81869         now that configure.ac uses AC_GNU_SOURCE.
81870         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
81871         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
81872
81873         Update to latest tools.  Suggestions from Paul Eggert.
81874         * m4/stdbool.m4: New file, from diffutils-2.8.2.
81875         * m4/gnu-source.m4: Update from diffutils-2.8.2.
81876         * m4/fnmatch.m4: Likewise.
81877         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
81878         to AC_HEADER_STDBOOL
81879
81880 2002-06-22  Jim Meyering  <meyering@lucent.com>
81881
81882         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
81883         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
81884
81885 2002-06-22  Jim Meyering  <meyering@lucent.com>
81886
81887         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
81888
81889         * lib/exitfail.c, exitfail.h: Likewise.
81890         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
81891
81892         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
81893         of fnmatch.h.
81894         (EXTRA_DIST): Add fnmatch_loop.c.
81895         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
81896
81897         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
81898         * lib/fnmatch.c: Update from diffutils-2.8.2.
81899         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
81900         * lib/fnmatch.h: Remove file.
81901
81902 2002-06-21  Jim Meyering  <meyering@lucent.com>
81903
81904         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
81905         * m4/mbrtowc.m4: Likewise.
81906
81907         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
81908         * m4/mbswidth.m4: Reflect name change:
81909         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
81910         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
81911
81912         * m4/lib-link.m4: Update from gettext-0.11.2.
81913         * m4/gettext.m4: Likewise.
81914
81915         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
81916         From Alfred M. Szmidt.
81917
81918 2002-06-18  Paul Eggert  <eggert@twinsun.com>
81919
81920         * lib/file-type.h: Report an error if neither S_ISREG nor
81921         S_IFREG is defined, instead of using a test specific to glibc
81922         2.2.  This should be safe, since POSIX requires S_ISREG and
81923         Unix Version 7 had S_IFREG.  We don't need to check for
81924         <sys/types.h> since we don't use any symbols that it defines.
81925
81926 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
81927
81928         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
81929         $@-t, so that each temporary file name is unique and valid in the first
81930         8 characters, for operation under DOS.
81931
81932 2002-06-15  Paul Eggert  <eggert@twinsun.com>
81933
81934         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
81935
81936 2002-06-15  Jim Meyering  <meyering@lucent.com>
81937
81938         Work even with DJGPP 2.03, which lacks support for symlinks.
81939         From Richard Dawe.
81940         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
81941         is defined.
81942         * lib/lchown.c (S_ISLNK): Likewise.
81943
81944 2002-06-15  Jim Meyering  <meyering@lucent.com>
81945
81946         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
81947         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
81948         have been included before this file.
81949
81950 2002-06-14  Jim Meyering  <meyering@lucent.com>
81951
81952         * lib/file-type.h: Use the version from diffutils-2.8.2.
81953         * lib/file-type.c: Likewise.
81954
81955 2002-06-07  Jim Meyering  <meyering@lucent.com>
81956
81957         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
81958         They're needed at least for NetBSD 1.5.2.
81959         ($statxfs_includes): Include those same headers.
81960         ($statxfs_includes): Include sys/vfs.h if available.
81961         ($statxfs_includes): Likewise for sys/statvfs.h.
81962         Check for the following members in both structs statfs and statvfs:
81963         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
81964
81965 2002-06-01  Jim Meyering  <meyering@lucent.com>
81966
81967         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
81968         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
81969
81970 2002-05-28  Jim Meyering  <meyering@lucent.com>
81971
81972         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
81973         Reported by Volker Borchert.
81974
81975 2002-05-27  Jim Meyering  <meyering@lucent.com>
81976
81977         Fix a problem seen only on nonconforming systems whereby ls.c's
81978         use of localtime, and then of gettimeofday would cause trouble:
81979         the localtime call used to initialize rpl_gettimeofday's save
81980         mechanism would clobber ls's current local time information so
81981         that in any long listing the first file would always be listed
81982         with date 1970-01-01.  Analysis by Volker Borchert.
81983
81984         * lib/gettimeofday.c (localtime): Undefine.
81985         (rpl_localtime): New function.
81986
81987 2002-05-27  Jim Meyering  <meyering@lucent.com>
81988
81989         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
81990         localtime.
81991
81992         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
81993         use the replacement function; it wouldn't resolve at link time.
81994         Reported by Volker Borchert.
81995
81996 2002-05-22  Jim Meyering  <meyering@lucent.com>
81997
81998         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
81999         file-type.h.
82000         * lib/file-type.h: New file.
82001         * lib/file-type.c (file_type): New file/function.  Extracted from
82002         diffutils.
82003
82004 2002-04-30  Jim Meyering  <meyering@lucent.com>
82005
82006         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
82007
82008 2002-04-29  Paul Eggert  <eggert@twinsun.com>
82009
82010         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
82011
82012 2002-04-29  Paul Eggert  <eggert@twinsun.com>
82013
82014         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
82015         Do not check for alloca.h (no longer used) or stdbool.h (was never
82016         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
82017
82018 2002-04-29  Paul Eggert  <eggert@twinsun.com>
82019
82020         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
82021
82022 2002-04-29  Jim Meyering  <meyering@lucent.com>
82023
82024         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
82025         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
82026         Use AC_FUNC_STRNLEN here instead.
82027
82028         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
82029         With autoconf-2.53a, it's part of AC_PROG_CC.
82030
82031 2002-04-28  Paul Eggert  <eggert@twinsun.com>
82032
82033         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
82034         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
82035
82036 2002-04-28  Paul Eggert  <eggert@twinsun.com>
82037
82038         * lib/sig2str.h, lib/sig2str.c: New files.
82039         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
82040
82041 2002-04-28  Paul Eggert  <eggert@twinsun.com>
82042
82043         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
82044         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
82045         of 127, since 64 is the largest conceivable number for ancient
82046         nonstandard hosts.
82047         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
82048
82049 2002-04-28  Jim Meyering  <meyering@lucent.com>
82050
82051         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
82052
82053 2002-04-24  Jim Meyering  <meyering@lucent.com>
82054
82055         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
82056         (jm_PREREQ): Use it.
82057
82058         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
82059         mach/mach.h fcntl.h.
82060         Check for this function: setlocale.
82061
82062 2002-04-24  Jim Meyering  <meyering@lucent.com>
82063
82064         * lib/gettext.h: New file, from Gettext.
82065         * lib/Makefile.am (INCLUDES): Remove -I../intl.
82066         (libfetish_a_SOURCES): Add gettext.h.
82067
82068 2002-04-16  Jim Meyering  <meyering@lucent.com>
82069
82070         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
82071         ut_pid, ut_id, ut_exit.
82072
82073 2002-04-16  Jim Meyering  <meyering@lucent.com>
82074
82075         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
82076         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
82077         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
82078
82079 2002-04-12  Jim Meyering  <meyering@lucent.com>
82080
82081         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
82082         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
82083         existence of the getmntinfo function.  Needed for Darwin 5.3.
82084
82085         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
82086         This is necessary at least on Darwin 5.3.
82087
82088         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
82089         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
82090         strnlen.o in the library, and that makes some versions of ranlib
82091         object.
82092
82093 2002-04-12  Jim Meyering  <meyering@lucent.com>
82094
82095         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
82096
82097 2002-04-09  Jim Meyering  <meyering@lucent.com>
82098
82099         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
82100         to be more precise.  Rather than saying we're checking whether the
82101         function `works', say what we're testing.
82102         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
82103         Reported by Bruno Haible.
82104
82105 2002-03-10  Jim Meyering  <meyering@lucent.com>
82106
82107         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
82108         Suggestion from Santiago Vila.
82109
82110 2002-03-08  Jim Meyering  <meyering@lucent.com>
82111
82112         * lib/rename.c: Mention that this wrapper is needed also on
82113         mips-dec-ultrix4.4 systems.
82114
82115 2002-03-02  Jim Meyering  <meyering@lucent.com>
82116
82117         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
82118         not HAVE_CLOCK_SETTIME.
82119
82120 2002-02-27  Paul Eggert  <eggert@twinsun.com>
82121
82122         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
82123         Check for clock_settime.
82124
82125 2002-02-27  Paul Eggert  <eggert@twinsun.com>
82126
82127         * lib/nanosleep.h: Rename to....
82128         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
82129
82130         * lib/gettime.c: New file.
82131         * lib/settime.c: New file.
82132         * lib/stime.c: Remove.
82133
82134         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
82135         timespec.h.  Remove nanosleep.h.
82136
82137 2002-02-25  Paul Eggert  <eggert@twinsun.com>
82138
82139         * m4/acl.m4: New file.
82140         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
82141         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
82142
82143 2002-02-25  Paul Eggert  <eggert@twinsun.com>
82144
82145         * lib/acl.c, lib/acl.h: New files.
82146         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
82147
82148 2002-02-24  Jim Meyering  <meyering@lucent.com>
82149
82150         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
82151         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
82152         cause trouble.  Reported by Nelson Beebe.
82153
82154 2002-02-23  Paul Eggert  <eggert@twinsun.com>
82155
82156         * lib/path-concat.c (xpath_concat): Reorder code to pacify
82157         compilers that don't know that xalloc_die never returns.
82158
82159 2002-02-20  Jim Meyering  <meyering@lucent.com>
82160
82161         * lib/getdate.c: Regenerate using bison-1.33.
82162
82163 2002-02-17  Jim Meyering  <meyering@lucent.com>
82164
82165         * config/config.guess (main): Don't use `head -1'; it's no longer
82166         portable. Use `sed 1q' instead.
82167
82168 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
82169
82170         * m4/codeset.m4: Upgrade to gettext-0.11.
82171         * m4/gettext.m4: Upgrade to gettext-0.11.
82172         * m4/glibc21.m4: Upgrade to gettext-0.11.
82173         * m4/iconv.m4: Upgrade to gettext-0.11.
82174         * m4/isc-posix.m4: Upgrade to gettext-0.11.
82175         * m4/lcmessage.m4: Upgrade to gettext-0.11.
82176         * m4/lib-ld.m4: New file, from gettext-0.11.
82177         * m4/lib-link.m4: New file, from gettext-0.11.
82178         * m4/lib-prefix.m4: New file, from gettext-0.11.
82179         * m4/progtest.m4: Upgrade to gettext-0.11.
82180
82181 2002-02-15  Paul Eggert  <eggert@twinsun.com>
82182
82183         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
82184         (jm_PREREQ): Use it.
82185
82186 2002-02-15  Paul Eggert  <eggert@twinsun.com>
82187
82188         * lib/posixver.c, lib/posixver.h: New files.
82189         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
82190
82191 2002-02-02  Paul Eggert  <eggert@twinsun.com>
82192             Bruno Haible  <bruno@clisp.org>
82193
82194         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
82195         (fwrite_success_callback): New declaration.
82196         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
82197         print_unicode_char. Call failure callback instead of error.
82198         (fwrite_success_callback): New function.
82199         (exit_failure_callback): New function.
82200         (fallback_failure_callback): New function.
82201         (print_unicode_char): Call unicode_to_mb.
82202
82203 2002-01-26  Jim Meyering  <meyering@lucent.com>
82204
82205         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
82206         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
82207
82208 2002-01-26  Jim Meyering  <meyering@lucent.com>
82209
82210         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
82211
82212 2002-01-22  Paul Eggert  <eggert@twinsun.com>
82213
82214         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
82215
82216 2002-01-22  Jim Meyering  <meyering@lucent.com>
82217
82218         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
82219         Otherwise, some versions of automake would omit the rule that makes
82220         Makefile from Makefile.in.
82221
82222 2002-01-21  Paul Eggert  <eggert@twinsun.com>
82223
82224         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
82225         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
82226         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
82227         (memcoll): Set errno to zero if there is no error.
82228
82229         * lib/quotearg.c (quotearg_buffer_restyled):
82230         Fix bug with quoting buffers containing NUL when backslashing escapes.
82231         This bug was exposed by the other changes in this patch.
82232         (quotearg_n_options): New arg ARGSIZE.
82233         All callers changed.
82234         (quoting_options_from_style): New function.
82235         (quotearg_n_style): Use it.
82236         (quotearg_n_style_mem): New function.
82237
82238         * lib/quotearg.h (quotearg_n_style_mem): New function.
82239
82240 2002-01-19  Jim Meyering  <meyering@lucent.com>
82241
82242         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
82243         Remove useless quotes: DF_PROG="df".
82244         * m4/strnlen.m4: New file.
82245
82246 2002-01-16  Paul Eggert  <eggert@twinsun.com>
82247
82248         * lib/backupfile.c (ISDIGIT): Comment fix.
82249         * lib/getdate.y (ISDIGIT): Likewise.
82250         * lib/posixtm.c (ISDIGIT, year): Likewise.
82251         * lib/strverscmp.c (ISDIGIT): Likewise.
82252         * lib/userspec.c (ISDIGIT): Likewise.
82253
82254 2002-01-16  Jim Meyering  <meyering@lucent.com>
82255
82256         * lib/getdate.y: Add three semicolons, each just before a closing
82257         brace. Bison (as of version 1.31) no longer papers over that mistake.
82258
82259 2002-01-05  Jim Meyering  <meyering@lucent.com>
82260
82261         * lib/version-etc.c (version_etc_copyright): Update copyright year.
82262
82263 2001-12-19  Paul Eggert  <eggert@twinsun.com>
82264
82265         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
82266         not silently exit merely because the output buffer happens to
82267         have nothing pending.
82268
82269 2001-12-18  Paul Eggert  <eggert@twinsun.com>
82270
82271         See the big note in ../ChangeLog.
82272         * lib/human.c (suffixes): Prefer K to k for 1024.
82273         (generate_suffix_backwards): New function.
82274         (human_readable_inexact): Use it.
82275         * lib/xstrtol.c (__xstrtol): If there is no number but there
82276         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
82277         Accept 'K' as well as 'k'.
82278
82279 2001-12-15  Jim Meyering  <meyering@lucent.com>
82280
82281         * lib/regex.h (__restrict_arr): Update from libc.
82282
82283         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
82284         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
82285         (STREQ): Define.
82286
82287 2001-12-14  Jim Meyering  <meyering@lucent.com>
82288
82289         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
82290         Suggestion from Bruno Haible.
82291
82292 2001-12-10  Jim Meyering  <meyering@lucent.com>
82293
82294         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
82295         xrealloc, Instead, include "xalloc.h".
82296         (initbuffer): Don't cast xmalloc return value to char*.
82297         (readline): Reword comment.
82298         Don't cast xrealloc return value to char*
82299         Return NULL, not 0.
82300
82301 2001-12-09  Jim Meyering  <meyering@lucent.com>
82302
82303         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
82304         about `signed and unsigned type in conditional expression'.
82305         * lib/posixtm.c (posix_time_parse): Likewise.
82306
82307         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
82308
82309         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
82310         to avoid a pedantic warning.
82311
82312         * lib/getstr.c: Don't include assert.h.
82313         (getstr): Remove warning-evoking assertions.
82314         Return -1 if offset parameter is out of bounds.
82315         Change the type of a local from int to size_t.
82316
82317         * lib/strftime.c (my_strftime_localtime_r): Include this function
82318         definition in the `#if ! HAVE_TM_GMTOFF' block.
82319
82320         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
82321         Include xalloc.h instead.
82322
82323 2001-12-02  Jim Meyering  <meyering@lucent.com>
82324
82325         * lib/tempname.c: Don't declare getenv, thus reverting the change of
82326         2001-11-18.  It's no longer necessary, now that stdlib.h is always
82327         included.
82328
82329         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
82330         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
82331
82332 2001-11-30  Akim Demaille  <akim@epita.fr>
82333
82334         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
82335         before being defined.
82336
82337 2001-11-27  Paul Eggert  <eggert@twinsun.com>
82338
82339         * lib/quotearg.h (quotearg_n, quotearg_n_style):
82340         First arg is int, not unsigned.
82341         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
82342         (SIZE_MAX, UINT_MAX): New macros.
82343         (quotearg_n_options): Abort if N is negative.
82344         Avoid overflow check on hosts where size_t is 64 bits and int
82345         is 32 bits, as overflow is impossible there.
82346         Fix off-by-one typo that caused unnecessary reallocation.
82347
82348 2001-11-27  Jim Meyering  <meyering@lucent.com>
82349
82350         * lib/tempname.c: Merge with version from libc.
82351         * lib/regex.c: Likewise.
82352
82353         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
82354         systems for which STDC_HEADERS is 0, it was not included, resulting in
82355         a warning about an integer-to-pointer conversion problem with getenv.
82356         Reported by Volker Borchert.
82357
82358 2001-11-26  Jim Meyering  <meyering@lucent.com>
82359
82360         * lib/gtod.h: Remove file.
82361         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
82362         * lib/gettimeofday.c: Don't include gtod.h.
82363         (GTOD_init): Remove function.
82364         (rpl_gettimeofday): Do its job here instead, rather than aborting.
82365         Suggestion from Volker Borchert.
82366
82367 2001-11-23  Jim Meyering  <meyering@lucent.com>
82368
82369         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
82370         it.
82371         * lib/hash.c (struct hash_table): Define it here instead.
82372
82373 2001-11-22  Jim Meyering  <meyering@lucent.com>
82374
82375         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
82376
82377 2001-11-20  Jim Meyering  <meyering@lucent.com>
82378
82379         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
82380         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
82381
82382 2001-11-19  Jim Meyering  <meyering@lucent.com>
82383
82384         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
82385         directory.  Use "conftestXXXXXX" as the template.
82386         Suggestion from Paul Eggert.
82387
82388         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
82389         immediately, so the test doesn't mistakenly hit the max-open-files
82390         limit.
82391
82392 2001-11-18  Paul Eggert  <eggert@twinsun.com>
82393
82394         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
82395         (TEMPORARIES): New macro.
82396         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
82397         removes an artificial limitation (e.g. HP-UX 10.20, where
82398         TMP_MAX is 17576).
82399
82400 2001-11-18  Jim Meyering  <meyering@lucent.com>
82401
82402         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
82403
82404 2001-11-18  Jim Meyering  <meyering@lucent.com>
82405
82406         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
82407         on SunOS 4.
82408
82409         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
82410         files will be created before anything else.
82411
82412 2001-11-17  Paul Eggert  <eggert@twinsun.com>
82413
82414         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
82415         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
82416
82417 2001-11-17  Jim Meyering  <meyering@lucent.com>
82418
82419         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
82420         Prompted by a report from Bob Proulx.
82421
82422         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
82423         Instead, require UTILS_FUNC_MKSTEMP.
82424
82425 2001-11-17  Jim Meyering  <meyering@lucent.com>
82426
82427         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
82428         Now, that's done as part of AC_FUNC_STRTOD.
82429
82430 2001-11-17  Jim Meyering  <meyering@lucent.com>
82431
82432         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
82433         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
82434         rather than group writable.  Patch by Juan F. Codagnone.
82435
82436         * lib/readtokens.c: Remove explicit declarations of xmalloc and
82437         xrealloc, Instead, include "xalloc.h".
82438
82439         * lib/mountlist.c: Include unlocked-io.h after all system headers.
82440         Remove explicit declarations of xmalloc, xrealloc,
82441         and xstrdup.  Instead, include "xalloc.h".
82442
82443         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
82444         unlocked-io.h.
82445         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
82446         Likewise.
82447         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
82448
82449         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
82450         Reported by Padraig Brady.
82451
82452         * lib/mkstemp.c: #undef mkstemp.
82453         Include config.h.
82454         (rpl_mkstemp): Rename from mkstemp.
82455         Protoize.
82456
82457 2001-11-16  Jim Meyering  <meyering@lucent.com>
82458
82459         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
82460         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
82461         determine the amount of total physical memory, use pstat_getstatic.
82462         HPUX-11 doesn't define _SC_PHYS_PAGES.
82463         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
82464         If sysconf couldn't be used to determine the amount of available
82465         physical memory, use both pstat_getstatic and pstat_getdynamic.
82466         Based on a patch from Bob Proulx.
82467
82468 2001-11-10  Jim Meyering  <meyering@lucent.com>
82469
82470         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
82471         (jm_PREREQ): Use it.
82472
82473 2001-11-09  Jim Meyering  <meyering@lucent.com>
82474
82475         * m4/jm-macros.m4: Require autoconf-2.52f.
82476         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
82477         Use these AC_-prefixed names, not the AM_-prefixed ones.
82478
82479         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
82480
82481 2001-11-05  Jim Meyering  <meyering@lucent.com>
82482
82483         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
82484
82485 2001-11-04  Jim Meyering  <meyering@lucent.com>
82486
82487         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
82488         $DEFS.
82489
82490 2001-11-03  Jim Meyering  <meyering@lucent.com>
82491
82492         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
82493         of AC_DEFUN.
82494
82495         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
82496         know the name of the variable in the macro definition.
82497
82498 2001-11-03  Jim Meyering  <meyering@lucent.com>
82499
82500         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
82501         in argmatch_to_argument call.
82502
82503         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
82504         argument.
82505
82506         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
82507         e.g., a fault due to an attempt to free a NULL pointer.
82508
82509 2001-11-01  Jim Meyering  <meyering@lucent.com>
82510
82511         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
82512         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
82513
82514 2001-11-01  Jim Meyering  <meyering@lucent.com>
82515
82516         * lib/dirfd.c, lib/dirfd.h: New files.
82517         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
82518
82519         * lib/hash.c (hash_print) [TESTING]: Clean up.
82520
82521 2001-10-22  Paul Eggert  <eggert@twinsun.com>
82522
82523         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
82524         to avoid a warning if -Wall.
82525
82526 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
82527
82528         * README: New file
82529         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
82530         (per RMS's instructions, this is now the canonical source)
82531         * lgpl/, gpl/: New directories.
82532
82533 2001-10-21  Paul Eggert  <eggert@twinsun.com>
82534
82535         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
82536
82537 2001-10-21  Jim Meyering  <meyering@lucent.com>
82538
82539         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
82540         this code would end up calling gettext even in packages built
82541         with --disable-nls.
82542         * lib/getopt.c (_): Likewise.
82543         * lib/regex.c (_): Likewise.
82544
82545 2001-10-20  Paul Eggert  <eggert@twinsun.com>
82546
82547         * m4/error.m4 (jm_PREREQ_ERROR):
82548         Do not invoke AC_CHECK_FUNCS with strerror_r, as
82549         AC_FUNC_STRERROR_R does that.
82550         Check for strerror declaration.
82551
82552         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
82553         are supposed to have them these days.
82554         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
82555         Merge changes from latest Autoconf CVS.
82556         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
82557         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
82558         POSIX decided to standardize on the int flavor of strerror_r.
82559
82560 2001-10-20  Paul Eggert  <eggert@twinsun.com>
82561
82562         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
82563         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
82564         Use strerror_r that is only a macro, even if it is not a function.
82565         (strerror): Check for HAVE_DECL_STRERROR before declaring.
82566         (private_strerror): Use prototypes, not old-style function definition.
82567         (print_errno_message): New function.
82568         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
82569         char*-flavored one.
82570         (error_tail, error, error_at_line): Use it.
82571
82572 2001-10-11  Jim Meyering  <meyering@lucent.com>
82573
82574         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
82575         and quote_n (1, ... to avoid clobbering a buffer.
82576
82577 2001-10-05  Jim Meyering  <meyering@lucent.com>
82578
82579         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
82580         hash-pjw.h.
82581         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
82582         * lib/hash-pjw.h: New file.
82583
82584 2001-09-30  Jim Meyering  <meyering@lucent.com>
82585
82586         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
82587         `struct fsstat' has the `f_fstypename' member.
82588         Use that to define FS_TYPE, which is now used to make
82589         the getfsstat link test tighter.
82590
82591 2001-09-30  Jim Meyering  <meyering@lucent.com>
82592
82593         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
82594         Include <sys/ucred.h>, for Apple Darwin.
82595         Include sys/mount.h and sys/fs_types.h only if available.
82596         (FS_TYPE): Define.
82597         (read_filesystem_list): Use FS_TYPE.
82598
82599 2001-09-29  Paul Eggert  <eggert@twinsun.com>
82600
82601         * lib/exclude.c (excluded_filename): 0 -> false, since it's
82602         a boolean context.
82603
82604 2001-09-29  Jim Meyering  <meyering@lucent.com>
82605
82606         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
82607         [one-argument getmntent function]): Include stdio.h before mntent.h.
82608         SunOS 4.1.x needs it for the declaration of `FILE'.
82609         Patch by Volker Borchert.
82610
82611         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
82612         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
82613         sys/fs_types.h, and make the link-test for getfsstat guard #include
82614         directives with appropriate #if HAVE_*_H tests so that we can
82615         detect getfsstat on Apple Darwin1.3.7 systems.
82616         Reported by Nelson Beebe.
82617         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
82618
82619 2001-09-28  Paul Eggert  <eggert@twinsun.com>
82620
82621         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
82622         #defines strtoimax.  Also treat the other strto* functions
82623         like strtoimax.
82624
82625         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
82626         Check for strtoul and strtoumax,
82627         as those declarations are made even in the signed case.
82628         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
82629         Likewise, for strtol and strtoimax.
82630
82631 2001-09-28  Paul Eggert  <eggert@twinsun.com>
82632
82633         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
82634         #defines strtoimax.  Also treat the other strto* functions
82635         like strtoimax.
82636
82637         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
82638         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
82639         (strtoimax, strtoumax): Do not declare if already defined as a macro.
82640
82641 2001-09-26  Jim Meyering  <meyering@lucent.com>
82642
82643         Most macros in unlocked-io.h had the wrong number of arguments.
82644         * lib/gen-uio: New script.
82645         (USE_UNLOCKED_IO): Define to 1 if not already defined.
82646         * lib/unlocked-io.hin: Remove file.
82647         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
82648         rather than trying to embed it here.
82649         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
82650         Reported by Padraig Brady.
82651
82652 2001-09-25  Volker Borchert  <bt@teknon.de>
82653
82654         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
82655         `result'.
82656
82657 2001-09-24  Jim Meyering  <meyering@lucent.com>
82658
82659         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
82660
82661 2001-09-23  Jim Meyering  <meyering@lucent.com>
82662
82663         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
82664         instead of the mere test for existence of mntent.h.  The latter
82665         would get a false-positive on AIX 3.4 systems.
82666         In the outer getmntent if-block, don't die if neither of the getmntent
82667         tests succeeds.  Instead, just fall through and continue with the
82668         remaining tests.
82669
82670 2001-09-23  Jim Meyering  <meyering@lucent.com>
82671
82672         * lib/mountlist.c: Remove useless parentheses in #if directives.
82673         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
82674         the deprecated MOUNTED symbol is no longer defined in mntent.h.
82675
82676 2001-09-22  Jim Meyering  <meyering@lucent.com>
82677
82678         * m4/gettext.m4: New file.  From gettext.
82679         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
82680         * m4/progtest.m4: Likewise
82681         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
82682         * m4/glibc21.m4: Likewise.
82683
82684         * m4/libintl.m4: Remove.  No longer used.
82685
82686 2001-09-22  Jim Meyering  <meyering@lucent.com>
82687
82688         * lib/localcharset.c: Update from latest gettext.
82689         * lib/config.charset: Likewise.
82690
82691 2001-09-20  Jim Meyering  <meyering@lucent.com>
82692
82693         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
82694         strtoimax.
82695         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
82696         strtoumax.
82697
82698 2001-09-20  Jim Meyering  <meyering@lucent.com>
82699
82700         * lib/xstrtol.c (strtoimax): Guard declaration with
82701         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
82702         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
82703         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
82704         (strtoumax): Likewise, for completeness (it wasn't necessary).
82705
82706 2001-09-17  Paul Eggert  <eggert@twinsun.com>
82707
82708         * lib/strtoimax.c (HAVE_LONG_LONG):
82709         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
82710         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
82711         to work around bug in IBM C compiler.
82712
82713 2001-09-17  Jim Meyering  <meyering@lucent.com>
82714
82715         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
82716         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
82717         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
82718         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
82719         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
82720         whenever the right hand side need not be expanded by the shell.
82721
82722 2001-09-16  Paul Eggert  <eggert@twinsun.com>
82723
82724         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
82725         library.  It's not correct, as some older glibcs are buggy.
82726         fnmatch wasn't fixed until glibc 2.2.
82727
82728         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
82729         special shell magic here.
82730
82731 2001-09-16  Jim Meyering  <meyering@lucent.com>
82732
82733         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
82734         * m4/jm-macros.m4: Require it.
82735
82736 2001-09-16  Jim Meyering  <meyering@lucent.com>
82737
82738         * lib/mkdir.c: New file.
82739
82740 2001-09-15  Jim Meyering  <meyering@lucent.com>
82741
82742         * m4/jm-macros.m4: Check for help2man.
82743
82744 2001-09-11  Jim Meyering  <meyering@lucent.com>
82745
82746         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
82747         The body, by Paul Eggert, was moved here from configure.in.
82748         * m4/jm-macros.m4: Require UTILS_HOST_OS.
82749
82750 2001-09-04  Paul Eggert  <eggert@twinsun.com>
82751
82752         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
82753         (jm_PREREQ): Use it.
82754
82755 2001-09-04  Paul Eggert  <eggert@twinsun.com>
82756
82757         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
82758         Use ssize_t, not int, to store result of readlink.
82759         Check for ssize_t overflow as well as size_t overflow,
82760         as POSIX says the result of readlink is implementation-defined
82761         when ssize_t overflows.
82762         Remove unnecessary cast to char*.
82763         Use free+malloc instead of realloc, as the storage doesn't need
82764         to be preserved and it's clearer and can be more efficient that way.
82765         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
82766         * lib/xreadlink.h (xreadlink): Update prototype.
82767
82768 2001-09-04  Paul Eggert  <eggert@twinsun.com>
82769
82770         * lib/xgetcwd.c: Revert some of the previous change; intead,
82771         fix the HAVE_GETCWD_NULL code to behave more like the
82772         !HAVE_GETCWD_NULL code used to.
82773
82774         Include "xalloc.h".
82775         (xgetcwd): Do not return NULL when memory is exhausted; instead,
82776         invoke xalloc_die.
82777
82778 2001-09-03  Paul Eggert  <eggert@twinsun.com>
82779
82780         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
82781         sys/param.h, as pathmax.h includes them.
82782
82783 2001-09-03  Paul Eggert  <eggert@twinsun.com>
82784
82785         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
82786         (jm_PREREQ_XGETCWD): New macro.
82787
82788         * m4/getcwd.m4: New file.
82789
82790 2001-09-03  Paul Eggert  <eggert@twinsun.com>
82791
82792         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
82793         like the HAVE_GETCWD_NULL code.
82794         Include pathmax.h if not HAVE_GETCWD.
82795         Do not include xalloc.h.
82796         (INITIAL_BUFFER_SIZE): New symbol.
82797         Do not use xmalloc / xrealloc, since the caller is responsible for
82798         handling errors.  Preserve errno around `free' during failure.
82799         Do not overrun buffer when using getwd.
82800
82801 2001-09-03  Paul Eggert  <eggert@twinsun.com>
82802
82803         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
82804         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
82805         getcwd (NULL, 0).
82806
82807 2001-09-03  Paul Eggert  <eggert@twinsun.com>
82808
82809         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
82810         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
82811         spotted by Jim Meyering.
82812
82813 2001-09-03  Jim Meyering  <meyering@lucent.com>
82814
82815         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
82816         failure.
82817
82818 2001-09-02  Jim Meyering  <meyering@lucent.com>
82819
82820         * lib/error.c: Update from GNU libc.
82821
82822 2001-09-01  Jim Meyering  <meyering@lucent.com>
82823
82824         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
82825         Used by df.
82826
82827 2001-09-01  Jim Meyering  <meyering@lucent.com>
82828
82829         * lib/xreadlink.c: New file.
82830         * lib/xreadlink.h: New file.
82831         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
82832         xreadlink.h.
82833
82834         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
82835         doesn't conflict with sparc Solaris 7's definition in
82836         /usr/include/sys/int_types.h.
82837
82838         * lib/exclude.c: Use `""', not `<>' to #include non-system header
82839         files.
82840         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
82841         and strncasecmp as r-values.  Unixware didn't have declarations.
82842
82843 2001-08-31  Paul Eggert  <eggert@twinsun.com>
82844
82845         * lib/xstrtol.h: Add copyright notice.
82846         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
82847         LONGINT_INVALID_SUFFIX_CHAR.
82848
82849 2001-08-31  Paul Eggert  <eggert@twinsun.com>
82850
82851         * lib/xstrtol.c (strtoimax): New decl.
82852
82853 2001-08-31  Paul Eggert  <eggert@twinsun.com>
82854
82855         * lib/xgetcwd.c: Don't include pathmax.h.
82856         Include stdlib.h and unistd.h if available.
82857         Include xalloc.h.
82858         (xmalloc, xstrdup, free): Remove decls.
82859         (xgetcwd): Don't assume sizes fit in unsigned.
82860         Check for overflow when computing sizes.
82861         Simplify reallocation code.
82862
82863 2001-08-31  Paul Eggert  <eggert@twinsun.com>
82864
82865         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
82866         a directory's st_size can have an arbitrary value, so the old
82867         usage could waste an arbitrary amount of memory.  All uses
82868         changed.
82869         * lib/savedir.h: Update prototype.
82870
82871 2001-08-31  Paul Eggert  <eggert@twinsun.com>
82872
82873         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
82874
82875         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
82876         old strtoimax.c.
82877
82878         Also, make the following further changes to make this file's
82879         configuration more similar to that of strtol.c:
82880         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
82881         (strtoumax, uintmax_t, strtoull, strtol): Remove.
82882         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
82883         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
82884         changed to signed values.
82885
82886         And make the following changes as well:
82887         Fix copyright notice, as 1999 was missing.
82888         (verify): New macro.
82889         (strtoimax): Check sizes at compile-time, not run-time.
82890         Prefer strtol to strtoll if both work.
82891         (main): Remove; it was not that useful and was a pain to maintain.
82892
82893         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
82894
82895 2001-08-31  Jim Meyering  <meyering@lucent.com>
82896
82897         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
82898         Use an initial, malloc'd, buffer of length 128 rather than
82899         a statically allocated one of length 1024.
82900
82901 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82902
82903         Simplify code, partly by assuming autoconf 2.52 semantics.
82904
82905         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
82906
82907         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
82908         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
82909         All uses removed.
82910         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
82911         Move AC_REQUIRE to next-to-top level, to avoid confusion.
82912         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
82913         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
82914         jm_AC_HEADER_INTTYPES_H.
82915         * m4/jm-macros.m4 (jm_MACROS): Likewise.
82916
82917         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
82918
82919         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
82920         Quote first arg of AC_DEFUN.
82921         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
82922         since they are needed to parse the include file even if we need
82923         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
82924         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
82925         but with opposite signedness.
82926
82927 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82928
82929         Merge 'exclude' changes from tar 1.13.22.
82930         This fixes one or two unlikely storage allocation overflow bugs,
82931         but doesn't change user-visible behavior otherwise.
82932
82933 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82934
82935         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
82936         (jm_PREREQ_EXCLUDE): New macro.
82937
82938 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82939
82940         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
82941         tm to be declared.
82942
82943 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82944
82945         * lib/hash.c: Remove '2001' from copyright notice.
82946
82947 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82948
82949         * lib/full-write.h: New file.
82950         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
82951         * lib/full-write.c: Correct credits, as cccp.c no longer
82952         exists and anyway it was so heavily changed from the old cccp
82953         code as to be unrecognizable.  Include full-write.h.
82954         (full_write): Return size_t, with short writes meaning failure.
82955         All callers changed.  This fixes a bug with large buffers
82956         on 64-bit hosts.
82957         * lib/utime.c: Include full-write.h.
82958
82959 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82960
82961         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
82962         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
82963         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
82964         Include if available.
82965         (<xalloc.h>): Include
82966         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
82967         (verify): New macro.  Use it to verify that EXCLUDE macros do not
82968         collide with FNM macros.
82969         (struct patopts): New struct.
82970         (struct exclude): Use it, as exclude patterns now come with options.
82971         (new_exclude): Support above changes.
82972         (new_exclude, add_exclude_file):
82973         Initial size must now be a power of two to simplify overflow checking.
82974         (free_exclude, fnmatch_no_wildcards): New function.
82975         (excluded_filename): No longer requires options arg, as the options
82976         are determined by add_exclude.  Now returns bool, not int.
82977         (excluded_filename, add_exclude):
82978         Add support for the fancy new exclusion options.
82979         (add_exclude, add_exclude_file): Now takes int options arg.
82980         Check for arithmetic overflow when computing sizes.
82981         (add_exclude_file): xrealloc might modify errno, so don't
82982         realloc until after errno might be used.
82983
82984         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
82985         New macros.
82986         (free_exclude): New decl.
82987         (add_exclude, add_exclude_file): Now takes int options arg.
82988         (excluded_filename): No longer requires options arg, as the options
82989         are determined by add_exclude.  Now returns bool, not int.
82990
82991 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82992
82993         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
82994
82995 2001-08-27  Jim Meyering  <meyering@lucent.com>
82996
82997         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
82998
82999         * lib/version-etc.c (N_): Remove definition.
83000         Revert most of last change.
83001         Instead, simply don't mark the `Copyright...' string for translation.
83002         Based on advice from Paul Eggert.
83003
83004         * lib/strtoxmax.c: Tweak comment.
83005
83006 2001-08-26  Jim Meyering  <meyering@lucent.com>
83007
83008         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
83009
83010         * m4/xstrtoimax.m4: New file.
83011         * m4/xstrtoumax.m4: Add comments explaining why we
83012         AC_REPLACE_FUNCS(strtol).
83013
83014 2001-08-26  Jim Meyering  <meyering@lucent.com>
83015
83016         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
83017         of copyright with `%s' so translators don't get an untranslated
83018         message in 2002.
83019         (COPYRIGHT_YEAR): Define.
83020         (version_etc): Use fprintf rather than fputs.
83021         Suggestion from Ulrich Drepper.
83022
83023         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
83024
83025         * lib/strtoll.c: New file, from GNU libc.
83026         * lib/xstrtoimax.c: New file.
83027
83028         * lib/xstrtol.h: Add xstrtoimax.
83029         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
83030         * lib/strtoimax.c: New file.  Likewise, but first define
83031         STRTOUXMAX_SIGNED.
83032
83033         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
83034         ...
83035         * lib/strtoxmax.c: ... then renamed to this.
83036
83037 2001-08-18  Paul Eggert  <eggert@twinsun.com>
83038
83039         * m4/inttypes.m4: Add AC_PREREQ(2.13).
83040         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
83041         (jm_AC_TYPE_INTMAX_T): New macro.
83042         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
83043
83044         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
83045
83046         * m4/longlong.m4: Renamed from ulonglong.m4.
83047         * m4/inttypes.m4: Renamed from inttypes_h.m4.
83048         * m4/uintmax_t.m4: Removed.
83049
83050 2001-08-13  Paul Eggert  <eggert@twinsun.com>
83051
83052         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
83053         Port to Solaris 8, where 'sed' requires a space after the 'r'
83054         command, and where sh dislikes "$/".  Clean up the spacing a bit.
83055         Redirect output to $tmp just once.
83056
83057 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
83058
83059         * lib/addext.c (<errno.h>): Include.
83060         (errno): Declare if not defined.
83061         (addext): Work correctly when pathconf returns -1 and leaves
83062         errno alone because there is no limit.  Also, work even if
83063         pathconf returns a value greater than SIZE_MAX.
83064
83065 2001-08-12  Jim Meyering  <meyering@lucent.com>
83066
83067         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
83068         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
83069         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
83070         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
83071         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
83072         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
83073         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
83074         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
83075         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
83076         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
83077         utime.m4, utimes.m4, xstrtoumax.m4:
83078         Quote the first argument in each use of AC_DEFUN.
83079
83080 2001-08-12  Jim Meyering  <meyering@lucent.com>
83081
83082         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
83083         Simply `return getcwd (NULL, 0);'.
83084         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
83085         Use 1300 as initial value for length, not PATH_MAX.
83086
83087         * lib/pathmax.h: Clean up cpp syntax.
83088
83089 2001-08-12  Jim Meyering  <meyering@lucent.com>
83090
83091         * lib/gettimeofday.c: New file.
83092         * lib/gtod.h: New file.
83093         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
83094
83095 2001-08-05  Jim Meyering  <meyering@lucent.com>
83096
83097         * m4/jm-macros.m4: Require autoconf-2.52.
83098
83099 2001-08-04  Jim Meyering  <meyering@lucent.com>
83100
83101         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
83102         stmt, to get in sync with glibc.
83103
83104 2001-08-03  Paul Eggert  <eggert@twinsun.com>
83105
83106         The following changes are from gettext 0.10.39 as maintained by
83107         Bruno Haible.
83108
83109         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
83110         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
83111         with inverted sense.  All uses changed.
83112
83113         * lib/mbswidth.c: Don't include <limits.h>.
83114         Include <stdlib.h> and <string.h> unconditionally.
83115         (iswcntrl, mbsinit, ISCNTRL): New macros.
83116         (mbsnwidth): Use K&R style function declarations.
83117         Don't bother checking for MB_LEN_MAX == 1, since the compiler
83118         can optimize it when MB_CUR_MAX == 1.
83119         The width of control characters is zero, not 1.
83120
83121 2001-08-03  Paul Eggert  <eggert@twinsun.com>
83122
83123         The following changes are from gettext 0.10.39 as maintained by
83124         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
83125
83126         * m4/codeset.m4: Upgrade to serial AM1.
83127         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
83128         all uses changed.  Quote first arg of AC_DEFUN.
83129         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
83130
83131         * m4/iconv.m4: Upgrade to serial AM2.
83132         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
83133         Add --with-libconv-prefix.
83134         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
83135         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
83136         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
83137         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
83138         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
83139
83140         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
83141         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
83142         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
83143         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
83144         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
83145         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
83146         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
83147         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
83148         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
83149
83150         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
83151         string.h any more.
83152
83153         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
83154         not the default value.
83155
83156         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
83157         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
83158         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
83159         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
83160         Also check for iswcntrl, used for wcwidth fallback.
83161         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
83162         to Autoconf 2.13.
83163
83164 2001-08-03  Jim Meyering  <meyering@lucent.com>
83165
83166         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
83167         as it was in the original.  Reported by Paul Eggert.
83168
83169 2001-07-16  Jim Meyering  <meyering@lucent.com>
83170
83171         * m4/gettimeofday.m4: New file.
83172         Prompted by a report from Bernhard Baehr.
83173
83174 2001-07-15  Jim Meyering  <meyering@lucent.com>
83175
83176         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
83177         stuff. Now it's in ../Makefile.cfg.
83178
83179 2001-07-15  Jim Meyering  <meyering@lucent.com>
83180
83181         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
83182         (BUILT_SOURCES): Add unlocked-io.h.
83183         (io_functions): Define.
83184         (unlocked-io.h): New rule.
83185         (DISTCLEANFILES): Add unlocked-io.h.
83186         (all-local): Depend on unlocked-io.h, to ensure it is created.
83187
83188         * lib/unlocked-io.hin: New file
83189
83190         * lib/regex.c: Update from glibc.
83191
83192 2001-07-05  Jim Meyering  <meyering@lucent.com>
83193
83194         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
83195         recommendation.
83196         (libfetish_a_SOURCES): Put all .h files here instead.
83197         Remove a thus-exposed (better checks in automake) duplicate and
83198         two unnecessary .h files.
83199
83200 2001-07-04  Jim Meyering  <meyering@lucent.com>
83201
83202         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
83203         that generates jm-glibc-io.m4 so that it doesn't trigger any make
83204         distcheck failure.
83205
83206 2001-07-02  Jim Meyering  <meyering@lucent.com>
83207
83208         The following changes were prompted by suggestions from Bruno Haible.
83209
83210         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
83211         is now generated.
83212         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
83213         definition of EXTRA_DIST.
83214         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
83215         ensure that the generated file is created/updated whenever the list
83216         of $(unlocked_functions) is changed.
83217         (jm-glibc-io.m4): New rule.
83218         (unlocked-io.h): New rule -- currently unused.
83219
83220 2001-06-24  Jim Meyering  <meyering@lucent.com>
83221
83222         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
83223         unmatched right bracket, rather than kludging it with an extra,
83224         falsely-matching quote in a comment.  Patch by Akim Demaille.
83225
83226 2001-06-11  Jim Meyering  <meyering@lucent.com>
83227
83228         * lib/regex.c: Update from GNU libc.
83229
83230 2001-05-27  Jim Meyering  <meyering@lucent.com>
83231
83232         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
83233         Check for ut_type in struct utmp.
83234
83235 2001-05-27  Jim Meyering  <meyering@lucent.com>
83236
83237         * lib/readutmp.h (UT_TYPE): Define.
83238
83239 2001-05-24  Jim Meyering  <meyering@lucent.com>
83240
83241         * lib/argmatch.c: Include "quote.h".
83242         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
83243         quote function.  Reported by Göran Uddeborg.
83244
83245 2001-05-22  Jim Meyering  <meyering@lucent.com>
83246
83247         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
83248         now that we use the package-supplied version unconditionally.
83249         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
83250
83251 2001-05-21  Jim Meyering  <meyering@lucent.com>
83252
83253         * m4/regex.m4: Change a couple backticks to single quotes to avoid
83254         shell syntax errors.
83255
83256 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
83257
83258         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
83259
83260 2001-05-20  Paul Eggert  <eggert@twinsun.com>
83261
83262         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
83263         Don't bother to check library strftime, since
83264         we'll be using our own my_strftime function anyway.
83265         Define my_strftime instead of strftime.
83266
83267 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
83268
83269         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
83270         which is not yet declared.
83271
83272 2001-05-15  Jim Meyering  <meyering@lucent.com>
83273
83274         * m4/regex.m4: Use proper quoting so brackets appear in the test
83275         program.
83276         Reported by, and with help from, Bruno Haible.
83277
83278 2001-05-13  Jim Meyering  <meyering@lucent.com>
83279
83280         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
83281         undefined.
83282
83283 2001-05-11  Paul Eggert  <eggert@twinsun.com>
83284
83285         dirname code cleanup.  base_name now behaves more compatibly
83286         with POSIX basename when given file names that have trailing
83287         slashes, and similarly for dir_name.  Add new primitives
83288         base_len and dir_len.  Put the directory-name-related decls
83289         into dirname.h.
83290
83291         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
83292         * lib/backupfile.c (base_name): Likewise.
83293         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
83294         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
83295         * lib/makepath.c (strip_trailing_slashes): Likewise.
83296         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
83297         ISSLASH): Likewise.
83298         * lib/rename.c (strip_trailing_slashes): Likewise.
83299         * lib/same.c (base_name): Likewise.
83300         * lib/stripslash.c (ISSLASH): Likewise.
83301
83302         * lib/addext.c: Include <dirname.h> after size_t is defined.
83303         * lib/backupfile.c: Likewise.
83304
83305         * lib/addext.c (addext): Use base_len to trim redundant
83306         trailing slashes instead of doing it ourselves.
83307         But do not trim the last slash if it is not redundant.
83308
83309         * lib/backupfile.c (find_backup_file_name,
83310         max_backup_version): Use base_len instead of rolling it ourselves.
83311         Handle the case of "" and (on DOS) "C:" correctly.
83312
83313         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
83314         needed. Include <string.h>, <dirname.h>.
83315         (base_name): Allow file names ending in slashes, other than names
83316         that are all slashes.  In this case, return the basename followed
83317         by the slashes.  This is more general, and can be used in places
83318         where the original base_name purposely had an assertion failure.
83319         (base_len): New function.
83320
83321         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
83322         Do not include <assert.h>; no longer needed.
83323         Include xalloc.h.
83324         (memrchr): Remove decl.
83325         (dir_name_r): Remove.
83326         (dir_len): Renamed from dirlen.  All callers changed.
83327         Rewrite in terms of base_name, for simplicity and consistency.
83328         (dir_name): Never return NULL.  All callers changed.
83329         Do not include <stdlib.h> in test program; no longer needed.
83330         return 0; is fine for test program.
83331
83332         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
83333         New macros.
83334         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
83335
83336         * lib/path-concat.c (path_concat): Use base_len to compute
83337         base length, not strlen; this means we cannot rely on memcpy
83338         to null-terminate.
83339
83340         * lib/same.c (STREQ): Remove.
83341         (same_name): Handle the case where the basename ends in trailing '/'.
83342
83343         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
83344         a slash was stripped.  Do not strip the last slash after a
83345         file system prefix.
83346
83347 2001-05-11  Paul Eggert  <eggert@twinsun.com>
83348
83349         * lib/Makefile.am (libfetish_a_SOURCES):
83350         Add strftime.c, since we now compile it on all hosts.
83351
83352         * lib/strftime.c (my_strftime):
83353         Define to nstrftime if emacs, but only if my_strftime is not defined.
83354         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
83355         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
83356         Add one more extra argument: a nanoseconds value.
83357         All uses changed.
83358         (ns): New macro.
83359         (my_strftime function): Add %N format.
83360         (emacs_strftimeu): Renamed from emacs_strftime,
83361         with extra ut argument.
83362
83363 2001-05-09  Paul Eggert  <eggert@twinsun.com>
83364
83365         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
83366
83367 2001-04-21  Jim Meyering  <meyering@lucent.com>
83368
83369         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
83370         doesn't interfere.
83371
83372 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
83373
83374         * m4/ftruncate.m4: Check for chsize.
83375         Link with ftruncate.o unconditionally if ftruncate is missing.
83376         This was required when cross-compiling to i586-mingw32msvc.
83377
83378 2001-04-08  Jim Meyering  <meyering@lucent.com>
83379
83380         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
83381         recomputed; that's necessary when the offset spans a DST transition.
83382         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
83383
83384 2001-04-02  Jim Meyering  <meyering@lucent.com>
83385
83386         * lib/regex.h, regex.c: Update from GNU libc.
83387
83388 2001-03-24  Jim Meyering  <meyering@lucent.com>
83389
83390         * m4/jm-macros.m4: Require autoconf-2.49d.
83391
83392 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
83393
83394         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
83395
83396 2001-03-19  Paul Eggert  <eggert@twinsun.com>
83397
83398         * lib/version-etc.c (version_etc_copyright): Update to 2001.
83399
83400 2001-03-17  Jim Meyering  <meyering@lucent.com>
83401
83402         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
83403         now that the version in autoconf is equivalent.
83404         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
83405
83406         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
83407         Suggestion from Akim Demaille.
83408
83409         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
83410         (jm_PREREQ_TEMPNAME): New function.
83411
83412 2001-03-16  Paul Eggert  <eggert@twinsun.com>
83413
83414         * lib/tempname.c (uint64_t): Define to uintmax_t if
83415         not defined, and if UINT64_MAX is not defined.
83416         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
83417         Reported by John David Anglin.
83418
83419 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
83420
83421         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
83422         resolve alias if codeset is empty.
83423         * lib/config.charset (BeOS): Use wildcard syntax.
83424
83425 2001-03-13  Jim Meyering  <meyering@lucent.com>
83426
83427         * lib/path-concat.c (path_concat)
83428         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
83429         concatenating e.g., `C:' and `foo'.
83430         From Bruno Haible.
83431
83432 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
83433
83434         * lib/localcharset.c (locale_charset): Don't use
83435         setlocale(LC_CTYPE,NULL). Don't return NULL.
83436         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
83437
83438 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
83439
83440         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
83441         support for DOS/DJGPP.
83442
83443 2001-03-01  Paul Eggert  <eggert@twinsun.com>
83444
83445         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
83446         lacks mkstemp.  Compile our own tempname.c if we compile our own
83447         mkstemp.c, as mkstemp relies on tempname.
83448
83449 2001-03-01  Jim Meyering  <meyering@lucent.com>
83450
83451         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
83452         AH_VERBATIM really does output its argument verbatim.
83453
83454 2001-02-28  Paul Eggert  <eggert@twinsun.com>
83455
83456         * lib/Makefile.am (libfetish_a_SOURCES):
83457         Add dup-safer.c, fopen-safer.c.
83458         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
83459
83460         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
83461         * lib/unistd-safer.h: New files.
83462
83463 2001-02-25  Paul Eggert  <eggert@twinsun.com>
83464
83465         The mkstemp replacement is taken from glibc 2.2.2, with some
83466         portability fixes for use outside glibc, as follows:
83467
83468         * lib/tempname.c (struct_stat64): New macro.
83469         (direxists, __gen_tempname): Use it.
83470         This avoids a portability problem with Solaris 8.
83471
83472         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
83473         (<stddef.h>, <stdint.h>, <string.h>):
83474         Include only if STDC_HEADERS || _LIBC.
83475         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
83476         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
83477         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
83478         (__set_errno): Define this macro if <errno.h> doesn't.
83479         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
83480         Define these macros if <stdio.h> doesn't.
83481         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
83482         Define these macros if <sys/stat.h>
83483         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
83484         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
83485         __xstat64): Define if not _LIBC.
83486         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
83487         (__gen_tempname): Invoke gettimeofday only if
83488         HAVE_GETTIMEOFDAY || _LIBC;
83489         otherwise, fall back on plain "time".
83490         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
83491
83492         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
83493
83494         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
83495
83496 2001-02-18  Paul Eggert  <eggert@twinsun.com>
83497
83498         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
83499
83500 2001-02-17  Paul Eggert  <eggert@twinsun.com>
83501
83502         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
83503         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
83504         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
83505         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
83506
83507 2001-02-17  Paul Eggert  <eggert@twinsun.com>
83508
83509         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
83510         Remove workaround macros for hosts that have mbrtowc but not
83511         mbstate_t, as we now insist on proper declarations for both
83512         before using mbrtowc.
83513
83514 2001-02-17  Jim Meyering  <meyering@lucent.com>
83515
83516         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
83517         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
83518         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
83519         UnixWare 7.1.1.
83520
83521         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
83522         rather than AC_CACHE_VAL.
83523
83524 2001-02-17  Jim Meyering  <meyering@lucent.com>
83525
83526         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
83527         around included file name.
83528
83529         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
83530
83531         * lib/strftime.c: Update from GNU libc (the only changes were to
83532         comments).
83533
83534 2001-02-17  Jim Meyering  <meyering@lucent.com>
83535
83536         * lib/regex.c: Update from libc.
83537
83538 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
83539
83540         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
83541         clash.
83542
83543 2001-02-16  Paul Eggert  <eggert@twinsun.com>
83544
83545         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
83546         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
83547         Reported by Mark Hounschell via Paul Eggert.
83548
83549 2001-02-07  Jim Meyering  <meyering@lucent.com>
83550
83551         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
83552
83553 2001-02-05  Jim Meyering  <meyering@lucent.com>
83554
83555         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
83556         it includes the patch required for `large file' support with at least
83557         HP-UX's 10.20 /bin/cc.
83558
83559 2001-02-03  Jim Meyering  <meyering@lucent.com>
83560
83561         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
83562         AS_IF, now that it works once again (mysteriously).
83563         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
83564
83565 2001-01-30  Jim Meyering  <meyering@lucent.com>
83566
83567         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
83568         * m4/chown.m4: Rename conftestchown to conftest.chown.
83569         * m4/rename.m4: s/conftestdir/conftest.d1/ and
83570         s/conftestdir2/conftest.d2/.
83571         * m4/utimes.m4: s/conftestdata/conftest.data/
83572         Inspired by Pavel Roskin's change in autoconf.
83573
83574 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
83575
83576         * lib/config.charset: Update for FreeBSD 4.2.
83577
83578 2001-01-27  Jim Meyering  <meyering@lucent.com>
83579
83580         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
83581         a use of AS_IF.
83582         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
83583
83584 2001-01-26  Jim Meyering  <meyering@lucent.com>
83585
83586         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
83587         quotearg.c includes it.
83588
83589 2001-01-26  Jim Meyering  <meyering@lucent.com>
83590
83591         * lib/quotearg.c: Include stddef.h.
83592         * lib/quote.c: Include stddef.h.
83593         Reported by Axel Kittenberger.
83594
83595         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
83596         line in double quotes so that it evokes a better diagnostic.
83597         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
83598         Reported by Axel Kittenberger.
83599
83600 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
83601
83602         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
83603         as if it was a `charset'.
83604
83605 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
83606
83607         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
83608         has const.
83609
83610 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
83611
83612         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
83613         to avoid a warning.  Add back 'const' to inptr.
83614
83615 2001-01-20  Jim Meyering  <meyering@lucent.com>
83616
83617         Be sure that headers are checked before used in code compiled
83618         for the type checks.
83619         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
83620         In place of that, invoke jm_CHECK_ALL_TYPES.
83621         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
83622         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
83623         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
83624         The check for ssize_t was mistakenly run before the test for unistd.h.
83625
83626         The configure-time check for stdbool.h was missing.
83627         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
83628         (jm_PREREQ_HASH): New function.
83629
83630 2001-01-17  Jim Meyering  <meyering@lucent.com>
83631
83632         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
83633         for autoconf-2.49c.
83634         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
83635
83636 2001-01-16  Jim Meyering  <meyering@lucent.com>
83637
83638         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
83639         From Bruno Haible.
83640
83641 2001-01-14  Jim Meyering  <meyering@lucent.com>
83642
83643         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
83644         foo and bar.  Create conftestdir/ in the script, not in the C code.
83645         Remove directories in the script, not in the C code.
83646         Remove conftestdir{,2} before trying to create the directory.
83647         Make the entire configure script fail if the mkdir fails.
83648
83649 2001-01-14  Jim Meyering  <meyering@lucent.com>
83650
83651         * lib/rename.c: New file.  From Volker Borchert.
83652         Include stdlib.h, string.h or strings.h, and xalloc.h.
83653         Use strip_trailing_slashes rather than open-coding it.
83654
83655 2001-01-03  Paul Eggert  <eggert@twinsun.com>
83656
83657         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
83658
83659 2001-01-03  Jim Meyering  <meyering@lucent.com>
83660
83661         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
83662         of local `inptr' to avoid warning with some system declarations of
83663         iconv.
83664
83665 2001-01-02  Volker Borchert  <bt@teknon.de>
83666
83667         * m4/rename.m4: New file.
83668         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
83669
83670 2001-01-01  Jim Meyering  <meyering@lucent.com>
83671
83672         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
83673         even on systems with utmpx.h.  It's necessary for the declaration of
83674         utmp's ut_user member.  Reported by Andreas Jaeger.
83675
83676         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
83677         available. They are required for the declarations of getgrgid and
83678         getpwuid resp.
83679         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
83680         Reported by Andreas Jaeger.
83681
83682 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
83683
83684         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
83685         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
83686         so `make install' also works in VPATH builds.
83687
83688 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
83689
83690         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
83691         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
83692         can be used in subdirectories.
83693
83694 2000-12-29  Paul Eggert  <eggert@twinsun.com>
83695
83696         * lib/modechange.c: Do not assume that mode_t uses the
83697         traditional octal encoding.  E.g. "chmod 1 FOO" should set
83698         the other-execute bit of FOO even if S_IXOTH != 1.
83699
83700         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
83701         WOTH, XOTH, ALLM): New macros.
83702         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
83703          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
83704         Use them.
83705         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
83706         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
83707         (mode_compile):
83708         No need to use uintmax_t; unsigned long is long enough.
83709         Don't bother to get suffix since we don't use it.
83710
83711 2000-12-26  Jim Meyering  <meyering@lucent.com>
83712
83713         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
83714         better with autoheader.
83715
83716 2000-12-24  Jim Meyering  <meyering@lucent.com>
83717
83718         * lib/hash.c (is_prime): Return explicit boolean values.
83719         (hash_get_first): Return NULL to appease Irix5.6's 89.
83720         Reported by Nelson Beebe.
83721
83722 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
83723
83724         * lib/localcharset.c (locale_charset): Add support for Win32.
83725
83726 2000-12-18  Paul Eggert  <eggert@twinsun.com>
83727
83728         * lib/physmem.h, lib/physmem.c: New files.
83729
83730         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
83731         (noinst_HEADERS): Add physmem.h.
83732
83733         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
83734         't' for compatibility with Solaris 8 sort.
83735
83736 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
83737
83738         * lib/config.charset: Add support for BeOS.
83739
83740 2000-12-17  Jim Meyering  <meyering@lucent.com>
83741
83742         * m4/dos.m4 (jm_AC_DOS): New file and macro.
83743         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
83744
83745 2000-12-16  Jim Meyering  <meyering@lucent.com>
83746
83747         This bug had a serious impact on chown: `chown N:M FILE' (for integer
83748         N and M) would have treated it like `chown N:N FILE'.
83749
83750         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
83751
83752 2000-12-16  Jim Meyering  <meyering@lucent.com>
83753
83754         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
83755         SHELLS_FILE to a file name that's useful on djgpp systems.
83756         Include stdlib.h.
83757         (ADDITIONAL_DEFAULT_SHELLS): Define.
83758         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
83759         Based mostly on a patch from Prashant TR.
83760
83761 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
83762
83763         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
83764         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
83765         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
83766
83767 2000-12-08  Andreas Schwab  <schwab@suse.de>
83768
83769         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
83770         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
83771
83772 2000-12-07  Jim Meyering  <meyering@lucent.com>
83773
83774         * lib/stripslash.c (ISSLASH): Define.
83775         (strip_trailing_slashes): Use ISSLASH rather than comparing against
83776         `/'.
83777         From Prashant TR.
83778
83779         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
83780         (dir_name_r): Declare this function as static.
83781         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
83782         manifest itself on a name containing a mix of slashes and
83783         backslashes.
83784         Make this function work with names starting with a DOS-style
83785         drive letter and colon prefix.
83786         (dir_name): Append `.' if necessary.
83787         Based mostly on patches from Prashant TR and Eli Zaretskii.
83788
83789         * lib/dirname.h (dir_name_r): Remove prototype.
83790
83791 2000-12-06  Paul Eggert  <eggert@twinsun.com>
83792
83793         * m4/off_t-format.m4: Remove this file.
83794         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
83795
83796 2000-12-06  Jim Meyering  <meyering@lucent.com>
83797
83798         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
83799         replacement strtoull, we may well need the replacement strtoul, too.
83800         Check for declarations of strtoul and strtoull.
83801         Check for strtol.  Mainly as a cue to cause automake to include
83802         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
83803         Check for limits.h -- strtol.c needs it.
83804
83805 2000-12-05  Jim Meyering  <meyering@lucent.com>
83806
83807         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
83808
83809 2000-12-04  Jim Meyering  <meyering@lucent.com>
83810
83811         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
83812         Also include memory.h, stdlib.h, unistd.h if appropriate.
83813         Reported by Andreas Jaeger (conflicting declaration of malloc).
83814
83815 2000-12-02  Jim Meyering  <meyering@lucent.com>
83816
83817         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
83818         * m4/jm-macros.m4 (jm_MACROS): require it.
83819
83820 2000-12-02  Jim Meyering  <meyering@lucent.com>
83821
83822         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
83823
83824 2000-12-01  Paul Eggert  <eggert@twinsun.com>
83825
83826         * lib/memrchr.c: Include <config.h> before any system include file.
83827
83828 2000-11-30  Jim Meyering  <meyering@lucent.com>
83829
83830         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
83831
83832 2000-11-30  Jim Meyering  <meyering@lucent.com>
83833
83834         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
83835
83836 2000-11-29  Paul Eggert  <eggert@twinsun.com>
83837
83838         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
83839
83840 2000-11-26  Jim Meyering  <meyering@lucent.com>
83841
83842         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
83843
83844 2000-11-22  Paul Eggert  <eggert@twinsun.com>
83845
83846         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
83847         size of (size_t) -1; it's not portable.
83848
83849 2000-11-17  Jim Meyering  <meyering@lucent.com>
83850
83851         * lib/strstr.c: Update from GNU libc.
83852
83853 2000-11-17  Akim Demaille  <akim@epita.fr>
83854
83855         * lib/obstack.h: Formatting changes.
83856         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
83857         prevent type checking.
83858         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
83859         cast the value to (void *): assigning a `foo *' to a `void *'
83860         variable is valid.
83861         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
83862
83863 2000-11-16  Jim Meyering  <meyering@lucent.com>
83864
83865         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
83866
83867 2000-11-11  Jim Meyering  <meyering@lucent.com>
83868
83869         * lib/error.c: Add a couple #includes, merging from GNU libc version.
83870
83871 2000-11-10  Jim Meyering  <meyering@lucent.com>
83872
83873         * lib/obstack.h: Update from GNU libc.
83874         * lib/obstack.c: Likewise.
83875
83876 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
83877
83878         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
83879
83880 2000-11-06  Paul Eggert  <eggert@twinsun.com>
83881
83882         * lib/getusershell.c (setusershell): Use rewind rather than
83883         fseek/fseeko, to avoid configuration hassles with fseeko.
83884         Don't bother opening SHELLS_FILE if shellstream is NULL;
83885         it's not necessary.
83886
83887 2000-11-05  Jim Meyering  <meyering@lucent.com>
83888
83889         * lib/makepath.h (make_dir): Declare.
83890         * lib/makepath.c (make_dir): Remove `static' attribute.
83891         Tweak a comment.
83892
83893 2000-11-04  Jim Meyering  <meyering@lucent.com>
83894
83895         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
83896
83897 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
83898
83899         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
83900         last one in a bucket, advance to the next bucket.
83901
83902 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
83903
83904         * lib/fnmatch.c: Do not comment out all the code if we are using
83905         the GNU C library, because in some cases we are replacing buggy
83906         code in the GNU C library itself.
83907
83908 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
83909
83910         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
83911         (regex_compile): Catch bogus \(\1\).
83912
83913 2000-10-30  Paul Eggert  <eggert@twinsun.com>
83914
83915         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
83916         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
83917         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
83918
83919 2000-10-30  Paul Eggert  <eggert@twinsun.com>
83920
83921         * lib/error.h, getline.h, modechange.h:
83922         Remove "2000" from Copyright line, as the file hasn't been
83923         changed this year other than in the copyright notice.
83924
83925         * lib/xalloc.h: Add "2000" to Copyright line, as this file
83926         was changed this year.
83927
83928 2000-10-29  Jim Meyering  <meyering@lucent.com>
83929
83930         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
83931         renaming.
83932         * m4/ls-mntd-fs.m4: Likewise
83933
83934 2000-10-29  Jim Meyering  <meyering@lucent.com>
83935
83936         * lib/xstat.in: Fix grammar in comment.
83937
83938 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
83939
83940         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
83941         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
83942         doesn't define __restrict_arr.
83943
83944 2000-10-28  Jim Meyering  <meyering@lucent.com>
83945
83946         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
83947         (jm_PREREQ_MEMCHR): New function.
83948
83949 2000-10-28  Jim Meyering  <meyering@lucent.com>
83950
83951         * lib/memchr.c: Update from libc.
83952         Adjust for portability:
83953         [HAVE_STDLIB_H]: Include stdlib.h.
83954         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
83955         Undef __memchr, too.
83956         [!weak_alias]: Define __memchr to memchr.
83957
83958         * lib/regex.c: Update from libc.
83959         * lib/regex.h: Likewise.
83960         * lib/getopt1.c: Likewise.
83961         * lib/memcmp.c: Likewise.
83962
83963         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
83964         Avoid using fseek, when possible -- it's broken by design.
83965         Patch by Ulrich Drepper.
83966
83967 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
83968
83969         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
83970         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
83971         Giving in to popular pressure to shut up the compiler with casts.
83972
83973 2000-10-26  Jim Meyering  <meyering@lucent.com>
83974
83975         * lib/strftime.c: Update from libc.
83976
83977 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
83978
83979         * regex.c: More `unsigned char' -> `re_char' changes.
83980         Also change several `int' into `re_wchar_t'.
83981         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
83982         (PUSH_FAILURE_POINTER): Don't cast any more.
83983         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
83984         We want GCC to complain, since this piece of code makes
83985         re_match non-reentrant, which *should* be fixed.
83986         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
83987         (EXTEND_BUFFER): Use RETALLOC.
83988         (SET_LIST_BIT): Don't cast.
83989         (re_wchar_t): New type.
83990         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
83991         that those two functions will always properly return.
83992         (IMMEDIATE_QUIT_CHECK): Cast to void.
83993         (analyse_first): Use recursion rather than an explicit stack.
83994         (re_compile_fastmap): Can't fail anymore.
83995         (re_search_2): Don't check re_compile_fastmap for failure.
83996         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
83997         Now also sets the new value (passed in a new argument).
83998         (re_match_2_internal): Use it.
83999         Also, use a new var `reg' of type size_t when looping through regs
84000         rather than reuse the inappropriate `mcnt'.
84001
84002 2000-10-25  Jim Meyering  <meyering@lucent.com>
84003
84004         * lib/obstack.c: Update from libc.
84005
84006 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
84007
84008         * regex.c (regex_compile): Change the way of handling a range from
84009         a char less than 256 to a char not less than 256.
84010
84011 2000-10-24  Andrew Innes  <andrewi@gnu.org>
84012
84013         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
84014         NT-Emacs only.
84015         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
84016         so that re_search functions only quit when callers expect them to.
84017
84018 2000-10-23  Jim Meyering  <meyering@lucent.com>
84019
84020         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
84021         wrong.  That set_locale call must not have any side effects.
84022         From Paul Eggert.
84023
84024 2000-10-22  Jim Meyering  <meyering@lucent.com>
84025
84026         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
84027         [CYCLIC]: Remove now-unused definition.
84028
84029         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
84030         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
84031         Suggestion from Ulrich Drepper.
84032
84033 2000-10-21  Jim Meyering  <meyering@lucent.com>
84034
84035         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
84036         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
84037         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
84038
84039 2000-10-21  Jim Meyering  <meyering@lucent.com>
84040
84041         * lib/dirname.c (memrchr): Declare if necessary.
84042         (dir_name): Remove the restriction that there be no
84043         trailing slashes.  Now, this code skips past them, effectively
84044         ignoring them.
84045         [TEST_DIRNAME] (main): New unit tests.
84046
84047         * lib/memrchr.c: New file from GNU libc.
84048         Undef __memrchr, too.
84049         [!weak_alias]: Define __memrchr to memrchr.
84050         Guard weak_alias use with `#ifdef weak_alias'.
84051
84052 2000-10-21  Jim Meyering  <meyering@lucent.com>
84053
84054         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
84055         (dir_name): Use dir_name_r.
84056         * lib/dirname.h (dir_name_r): Declare it.
84057
84058 2000-10-17  Jim Meyering  <meyering@lucent.com>
84059
84060         * lib/quote.h (PARAMS): Define and use.
84061         Reported by Akim Demaille.
84062
84063         * lib/getopt.c: Update from libc.
84064
84065 2000-10-16  Jim Meyering  <meyering@lucent.com>
84066
84067         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
84068         setlocale.
84069         From Jan Fedak.
84070
84071 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
84072
84073         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
84074
84075 2000-09-25  Jim Meyering  <meyering@lucent.com>
84076
84077         * lib/md5.h (rol): Define (from GnuPG).
84078
84079         * lib/sha.c: Give credit (GnuPG) where due.
84080         (M): Use rol rather than open-coding it.
84081         Add a FIXME comment.
84082
84083 2000-09-21  Jim Meyering  <meyering@lucent.com>
84084
84085         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
84086         Reported by Michael Stone.
84087
84088 2000-09-20  Jim Meyering  <meyering@lucent.com>
84089
84090         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
84091         (noinst_HEADERS): Add sha.h.
84092         Based on code from Scott G. Miller and from GnuPG.
84093
84094 2000-09-18  Jim Meyering  <meyering@lucent.com>
84095
84096         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
84097         LIBS. Otherwise, everyone ends up linking with -lelf for some
84098         configurations.
84099         Reported by Mike Stone.
84100
84101 2000-09-15  Jim Meyering  <meyering@lucent.com>
84102
84103         * lib/regex.c: Update from libc.
84104
84105 2000-09-10  Jim Meyering  <meyering@lucent.com>
84106
84107         * lib/getopt.c (_getopt_internal): Update from glibc.
84108
84109 2000-09-09  Jim Meyering  <meyering@lucent.com>
84110
84111         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
84112         think it should be used as a general replacement for isascii.
84113         * lib/fnmatch.c: Likewise.
84114         * lib/mbswidth.c: Likewise
84115         * lib/regex.c: Likewise.
84116
84117         Don't use atoi.
84118         * lib/userspec.c: Include sys/param.h and limits.h.
84119         Include xstrtol.h.
84120         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
84121         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
84122         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
84123         UID, GID.  Check range.
84124
84125 2000-09-06  Jim Meyering  <meyering@lucent.com>
84126
84127         * lib/getopt.c (_getopt_internal): Update from glibc.
84128
84129 2000-08-30  Jim Meyering  <meyering@lucent.com>
84130
84131         * lib/strftime.c: Merge in changes from GNU libc.
84132
84133 2000-08-26  Jim Meyering  <meyering@lucent.com>
84134
84135         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
84136         * m4/fpending.m4: New file.
84137
84138 2000-08-26  Jim Meyering  <meyering@lucent.com>
84139
84140         * lib/closeout.c: Include "__fpending.h".
84141         (close_stdout_status): Return right away if there's nothing to flush.
84142
84143         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
84144         * lib/__fpending.c: New file.
84145         * lib/__fpending.h: New file.
84146
84147 2000-08-20  Jim Meyering  <meyering@lucent.com>
84148
84149         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
84150         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
84151         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
84152
84153 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
84154
84155         Improve fileutils installation on systems where running
84156         programs (like install) can't be unlinked.
84157         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
84158         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
84159
84160 2000-08-07  Paul Eggert  <eggert@twinsun.com>
84161
84162         Standardize on "memory exhausted" instead of "Memory exhausted"
84163         or "virtual memory exhausted".
84164         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
84165         "virtual memory exhausted".
84166         * lib/same.c (same_name): Invoke xalloc_die instead of printing
84167         our own message.
84168         * lib/userspec.c (parse_user_spec): Likewise.
84169         * lib/bumpalloc.h: comment fix
84170         * lib/same.c, userspec.c: Include xalloc.h.
84171
84172         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
84173         not char *const and pointing to a constant array.
84174         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
84175         (xrealloc): Comment fix.
84176
84177         * lib/userspec.c (parse_user_spec):
84178         Don't translate a message until just before returning,
84179         to avoid unnecessary translation.
84180
84181 2000-08-07  Jim Meyering  <meyering@lucent.com>
84182
84183         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
84184         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
84185         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
84186         getgroups.c, gethostname.c, getopt.h, group-member.c,
84187         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
84188         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
84189         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
84190         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
84191         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
84192         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
84193         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
84194         yesno.c: Back out Copyright date changes for each file with no change
84195         this year.  This eases coordination with other programs using the same
84196         source code modules.  From Paul Eggert.
84197
84198 2000-08-06  Paul Eggert  <eggert@twinsun.com>
84199
84200         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
84201         not char, for compatibility with glibc 2.1.3 strftime.c.
84202
84203 2000-08-03  Greg McGary  <greg@mcgary.org>
84204
84205         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
84206         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
84207         (EXTEND_BUFFER): Use them.
84208
84209 2000-08-01  Jim Meyering  <meyering@lucent.com>
84210
84211         * lib/dirname.c (ISSLASH): Define.
84212         (BACKSLASH_IS_PATH_SEPARATOR): Define.
84213         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
84214         both `\' and `/' may be use as path separators.
84215         Based on a patch from Prashant TR.
84216
84217 2000-07-31  Paul Eggert  <eggert@twinsun.com>
84218
84219         * lib/quotearg.c (quotearg_n_options): Don't make the initial
84220         slot vector a constant, since it might get modified.
84221
84222 2000-07-31  Jim Meyering  <meyering@lucent.com>
84223
84224         * lib/xmalloc.c: Use `virtual memory exhausted', not
84225         `Memory exhausted'.
84226         * lib/obstack.c (print_and_abort): Likewise.
84227
84228 2000-07-30  Paul Eggert  <eggert@twinsun.com>
84229
84230         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
84231         buffer, so that the caller can always quote one small
84232         component of a "memory exhausted" message in slot 0.
84233         From a suggestion by Jim Meyering.
84234
84235 2000-07-30  Jim Meyering  <meyering@lucent.com>
84236
84237         * lib/makepath.c (make_path): Quote the other instance, too.
84238
84239         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
84240         (STATIC_BUF_SIZE): Define.
84241         (quotearg_n_options): Use only statically allocated storage when
84242         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
84243         than STATIC_BUF_SIZE.
84244
84245 2000-07-29  Jim Meyering  <meyering@lucent.com>
84246
84247         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
84248         * lib/dirname.c (dir_name): Likewise.
84249
84250         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
84251         `/'.
84252
84253         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
84254         (dir_name): Assert that there are no trailing slashes.
84255
84256 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
84257
84258         * lib/mbswidth.h (mbswidth): Add a flags argument.
84259         (mbswidth): New declaration.
84260         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
84261         * lib/mbswidth.c (mbswidth): Add a flags argument.
84262         (mbsnwidth): New function.
84263
84264 2000-07-24  Jim Meyering  <meyering@lucent.com>
84265
84266         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
84267
84268 2000-07-23  Paul Eggert  <eggert@twinsun.com>
84269
84270         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
84271
84272 2000-07-23  Paul Eggert  <eggert@twinsun.com>
84273
84274         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
84275         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
84276         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
84277         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
84278         invoke multibyte primitives.
84279
84280 2000-07-23  Paul Eggert  <eggert@twinsun.com>
84281
84282         * lib/quotearg.c:
84283         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
84284         so that mbstate_t is always defined.
84285
84286         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
84287         be 1 in at least one GCC installation, and this configuration
84288         error is likely to be common.  Ignoring MB_LEN_MAX hurts
84289         performance on hosts that have mbrtowc but have only unibyte
84290         locales, but I assume these hosts are rare.
84291
84292 2000-07-23  Paul Eggert  <eggert@twinsun.com>
84293
84294         * lib/mbswidth.c (_XOPEN_SOURCE):
84295         Don't define; this causes problems on Solaris 7.
84296         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
84297
84298 2000-07-23  Jim Meyering  <meyering@lucent.com>
84299
84300         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
84301         too: getgrgid, getpwuid, getuid.
84302
84303 2000-07-23  Jim Meyering  <meyering@lucent.com>
84304
84305         * lib/basename.c (base_name): Add an assertion.
84306
84307 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
84308
84309         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
84310         shadow its mbsinit function.
84311
84312 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
84313
84314         * lib/mbswidth.h: New file.
84315         * lib/mbswidth.c: New file.
84316         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
84317         (noinst_HEADERS): Add mbswidth.h.
84318
84319 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
84320
84321         * lib/config.charset: Add support for FreeBSD. Improve support for
84322         HP-UX and IRIX 6.
84323
84324 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
84325
84326         * m4/mbswidth.m4: New file.
84327         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
84328
84329 2000-07-15  Jim Meyering  <meyering@lucent.com>
84330
84331         * lib/makepath.c: Include quote.h.
84332         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
84333         corresponding argument in a `quote (...)' call.
84334         Give better diagnostics.
84335
84336         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
84337         (noinst_HEADERS): Add quote.h.
84338
84339         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
84340         from tar's src/misc.c.
84341         * lib/quote.h: New file.  Prototypes for same.
84342
84343 2000-07-14  Paul Eggert  <eggert@twinsun.com>
84344
84345         From a suggestion by Bruno Haible.
84346         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
84347         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
84348         to decide whether to define the BeOS workaround macro;
84349         this adjusts to the change to AC_MBSTATE_T.
84350
84351 2000-07-14  Jim Meyering  <meyering@lucent.com>
84352
84353         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
84354         jm_AC_TYPE_UINTMAX_T.
84355
84356 2000-07-13  Paul Eggert  <eggert@twinsun.com>
84357
84358         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
84359
84360         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
84361         quotearg_buffer_restyled): Add support for
84362         clocale_quoting_style.  Undo previous change to
84363         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
84364         and "{RIGHT QUOTATION MARK}" msgids.
84365
84366 2000-07-10  Paul Eggert  <eggert@twinsun.com>
84367
84368         From a suggestion by Bruno Haible.
84369         * m4/mbstate_t.m4 (AC_MBSTATE_T):
84370         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
84371         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
84372         and mbstate_t, to a single-part test that simply defines mbstate_t.
84373         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
84374         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
84375
84376 2000-07-10  Jim Meyering  <meyering@lucent.com>
84377
84378         * m4/strerror_r.m4: Mirror the correction made in autoconf.
84379
84380         * m4/gnu-source.m4: Output to confdefs.h directly.
84381         Suggestion from Akim Demaille.
84382
84383 2000-07-09  Paul Eggert  <eggert@twinsun.com>
84384
84385         The old behavior of quoting `like this' doesn't look good with
84386         newer, ISO-style fonts.  See:
84387         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
84388
84389         Instead, quote "like this" by default.  Let the translator
84390         tailor the locale-specific quoting behavior by providing
84391         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
84392
84393         * lib/quotearg.c (N_): New macro.
84394         (gettext_default): New function.
84395         (quotearg_buffer_restyled): Use
84396         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
84397         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
84398
84399 2000-07-09  Jim Meyering  <meyering@lucent.com>
84400
84401         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
84402         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
84403
84404         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
84405         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
84406
84407 2000-07-09  Jim Meyering  <meyering@lucent.com>
84408
84409         * lib/Most files: Update copyright dates to include 2000.
84410
84411 2000-07-08  Jim Meyering  <meyering@lucent.com>
84412
84413         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
84414         if not defined.
84415         (xgethostname): Remove now-unnecessary #ifdef.
84416         Move declaration of `err' into loop where it's used.
84417
84418 2000-07-05  Paul Eggert  <eggert@twinsun.com>
84419         and Bruno Haible  <haible@clisp.cons.org>
84420
84421         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
84422         only if the test for an object-type mbstate_t fails.  This
84423         prevents us from mistakenly reporting that mbstate_t is a
84424         system object type after we "#define mbstate_t int" to work
84425         around its lack.
84426
84427 2000-07-05  Paul Eggert  <eggert@twinsun.com>
84428         and Bruno Haible  <haible@clisp.cons.org>
84429
84430         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
84431
84432 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
84433
84434         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
84435         to strerror_r.
84436         Include <ctype.h> for use of isalpha.
84437
84438 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
84439
84440         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
84441         by allocating a larger buffer. Test the gethostname return value for
84442         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
84443         returns an error and ENAMETOOLONG isn't defined.
84444
84445 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
84446
84447         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
84448         dimension.
84449
84450 2000-07-04  Jim Meyering  <meyering@lucent.com>
84451
84452         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
84453         of the deprecated AC_CHECKING.
84454
84455 2000-07-04  Jim Meyering  <meyering@lucent.com>
84456
84457         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
84458         Reported by Bruno Haible.
84459
84460 2000-07-04  Jim Meyering  <meyering@lucent.com>
84461
84462         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
84463         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
84464         lacks mbrtowc.
84465
84466 2000-07-03  Paul Eggert  <eggert@twinsun.com>
84467
84468         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
84469         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
84470
84471 2000-07-03  Paul Eggert  <eggert@twinsun.com>
84472         and Bruno Haible  <haible@clisp.cons.org>
84473
84474         * lib/quotearg.c (mbrtowc):
84475         Assign to *pwc, and return 1 only if result is nonzero.
84476         (iswprint): Use ISPRINT when substituting our own mbrtowc.
84477
84478 2000-07-03  Jim Meyering  <meyering@lucent.com>
84479
84480         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
84481
84482 2000-07-03  Jim Meyering  <meyering@lucent.com>
84483
84484         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
84485         This is necessary to get a definition of e.g., UTMP_FILE on
84486         HP-UX 10.20.
84487         From Bob Proulx.
84488
84489 2000-07-02  Jim Meyering  <meyering@lucent.com>
84490
84491         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
84492
84493         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
84494         AC_LIBOBJ(function_name).
84495         * m4/chown.m4: Likewise.
84496         * m4/fnmatch.m4: Likewise.
84497         * m4/ftruncate.m4: Likewise.
84498         * m4/getgroups.m4: Likewise.
84499         * m4/getline.m4: Likewise.
84500         * m4/group-member.m4: Likewise.
84501         * m4/jm-macros.m4: Likewise.
84502         * m4/lstat.m4: Likewise.
84503         * m4/malloc.m4: Likewise.
84504         * m4/memcmp.m4: Likewise.
84505         * m4/nanosleep.m4: Likewise.
84506         * m4/putenv.m4: Likewise.
84507         * m4/realloc.m4: Likewise.
84508         * m4/regex.m4: Likewise.
84509         * m4/stat.m4: Likewise.
84510         * m4/strftime.m4: Likewise.
84511
84512 2000-07-02  Jim Meyering  <meyering@lucent.com>
84513
84514         * lib/quotearg.c (mbstate_t): Don't define here.
84515
84516 2000-07-02  Jim Meyering  <meyering@lucent.com>
84517
84518         * lib/nanosleep.c (SIGCONT): Define if not already defined.
84519
84520 2000-07-01  Jim Meyering  <meyering@lucent.com>
84521
84522         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
84523
84524 2000-07-01  Jim Meyering  <meyering@lucent.com>
84525
84526         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
84527         problem.
84528
84529 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
84530
84531         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
84532         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
84533
84534 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
84535
84536         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
84537         per change in ../m4/ls-mntd-fs.m4.
84538         (read_filesystem_list): Ignore symbolic links.
84539
84540 2000-06-29  Jim Meyering  <meyering@lucent.com>
84541
84542         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
84543         for declaration of strcmp.
84544
84545         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
84546
84547         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
84548         Avoid warning by casting result to `char *' to remove `const'.
84549
84550 2000-06-28  Jim Meyering  <meyering@lucent.com>
84551
84552         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
84553         included by quotearg.c, for which we perform this test.  From
84554         Bruno Haible.
84555
84556 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
84557
84558         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
84559         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
84560         <utmpx.h> exists, put readutmp.o into LIBOBJS.
84561
84562 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
84563
84564         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
84565
84566 2000-06-26  Paul Eggert  <eggert@twinsun.com>
84567
84568         savedir now sets errno on failure and invokes xmalloc to get memory.
84569         Fix a couple of other minor bugs while we're at it.
84570
84571         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
84572         (NAMLEN): Remove macro.
84573         (malloc, realloc): Remove decls.
84574         (stpcpy): Likewise.
84575         ("xalloc.h"): Include.
84576         (NAME_SIZE_DEFAULT): New macro.
84577         (savedir): Use xmalloc / xrealloc to allocate memory.
84578         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
84579         Skip "" directory entries.
84580         Use strlen to calculate directory entry length, since the old method
84581         is rarely used these days and isn't worth supporting.
84582         Don't use a pointer after freeing it.
84583         Check for integer overflow when calculating allocation size.
84584         Use memcpy to copy entries, instead of stpcpy.
84585         Set errno properly when returning NULL.
84586         Check for readdir error.
84587
84588 2000-06-26  Jim Meyering  <meyering@lucent.com>
84589
84590         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
84591
84592 2000-06-25  Jim Meyering  <meyering@lucent.com>
84593
84594         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
84595         Linux header bug when _XOPEN_SOURCE is defined to 500.
84596
84597 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
84598
84599         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
84600         deficiency.
84601
84602 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
84603
84604         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
84605         Include xalloc.h.
84606         Don't include <stdlib.h>.  Don't declare malloc, realloc.
84607
84608 2000-06-24  Jim Meyering  <meyering@lucent.com>
84609
84610         * m4/strerror_r.m4: Revive this file -- to try out an experimental
84611         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
84612         for which strerror does return char*, but which lacks a conveniently
84613         accessible declaration of the function.  If the compile-test says
84614         strerror_r doesn't work, then resort to a `run'-test that works on
84615         BeOS and segfaults on DEC Unix.
84616
84617 2000-06-24  Jim Meyering  <meyering@lucent.com>
84618
84619         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
84620
84621 2000-06-23  Paul Eggert  <eggert@twinsun.com>
84622
84623         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
84624         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
84625
84626 2000-06-23  Paul Eggert  <eggert@twinsun.com>
84627
84628         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
84629         (mbrtowc, mbstate_t): Define substitutes if
84630         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
84631         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
84632         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
84633
84634 2000-06-23  Jim Meyering  <meyering@lucent.com>
84635
84636         * m4/afs.m4: Add missing AC_MSG_RESULT.
84637         Reported by Bruno Haible.
84638
84639         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
84640         Suggestion from Bruno Haible.
84641
84642 2000-06-23  Jim Meyering  <meyering@lucent.com>
84643
84644         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
84645
84646 2000-06-21  Jim Meyering  <meyering@lucent.com>
84647
84648         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
84649
84650 2000-06-21  Jim Meyering  <meyering@lucent.com>
84651
84652         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
84653         (noinst_HEADERS): Add getstr.h.
84654
84655         * lib/getline.c (getstr): Move into a separate file.
84656         * lib/getstr.c (getstr): New file, extracted from getline.c, with
84657         the following changes: new parameter, delim2; both delim[12]
84658         parameters have type `int', not `char'.  The latter would lose
84659         with 8-bit delimiters.
84660         * lib/getstr.h: New file.
84661
84662 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
84663
84664         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
84665         than 1024, return a memory chunk of least possible size, instead
84666         of size PATH_MAX + 2. In the loop, increment the size proportionally.
84667         Use free/xmalloc instead of xrealloc to avoid copying for very long
84668         paths.
84669
84670 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
84671
84672         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
84673         the empty string.
84674
84675 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
84676
84677         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
84678         address, not strdup.  Include <stdlib.h> and don't declare free().
84679
84680 2000-06-19  Jim Meyering  <meyering@lucent.com>
84681
84682         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
84683
84684 2000-06-18  Jim Meyering  <meyering@lucent.com>
84685
84686         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
84687
84688         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
84689         `checking whether...' message to be consistent with that of the
84690         lstat test.
84691
84692 2000-06-18  Jim Meyering  <meyering@lucent.com>
84693
84694         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
84695         Besides, these days every porting target provides a mkdir function.
84696
84697         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
84698         needed. (this snippet comes from src/system.h).
84699
84700 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
84701
84702         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
84703
84704 2000-06-15  Paul Eggert  <eggert@twinsun.com>
84705
84706         * lib/human.c (adjust_value): New function.
84707         (human_readable_inexact): Apply rounding style even when
84708         printing approximate values.
84709
84710 2000-06-14  Paul Eggert  <eggert@twinsun.com>
84711
84712         * lib/human.c (human_readable_inexact): Allow an input block
84713         size that is not a multiple of the output block size, and vice versa.
84714         Reported by Piergiorgio Sartor.
84715
84716 2000-06-14  Paul Eggert  <eggert@twinsun.com>
84717
84718         * lib/getdate.y (get_date): Apply relative times after time
84719         zone indicator, not before.  Reported by Todd A. Jacobs.
84720
84721 2000-06-13  Jim Meyering  <meyering@lucent.com>
84722
84723         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
84724
84725         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
84726
84727 2000-06-12  Paul Eggert  <eggert@twinsun.com>
84728
84729         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
84730
84731 2000-06-12  Jim Meyering  <meyering@lucent.com>
84732
84733         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
84734         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
84735         optional argument.
84736         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
84737         the optional argument, `lib'.
84738
84739 2000-06-08  Jim Meyering  <meyering@lucent.com>
84740
84741         * m4/largefile.m4: Remove file (now that it's part of autoconf).
84742
84743 2000-06-04  Paul Eggert  <eggert@twinsun.com>
84744
84745         Rewrite largefile configuration so that we don't need to run
84746         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
84747         AC_CANONICAL_HOST in configure.in -- jmm]
84748
84749         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
84750         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
84751         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
84752         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
84753         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
84754         All uses changed.
84755         Instead of inspecting the output of getconf, try to compile the
84756         test program without and with the macro definition.
84757         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
84758         for getconf.  Instead, check for the needed flags by compiling
84759         test programs.
84760
84761 2000-06-04  Paul Eggert  <eggert@twinsun.com>
84762
84763         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
84764
84765 2000-06-04  Jim Meyering  <meyering@lucent.com>
84766
84767         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
84768         SunOS 4.1.4 for which gid_t is an unsigned type.
84769
84770 2000-06-03  Jim Meyering  <meyering@lucent.com>
84771
84772         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
84773         now that autoconf requires that.
84774
84775         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
84776         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
84777         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
84778
84779 2000-06-03  Jim Meyering  <meyering@lucent.com>
84780
84781         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
84782
84783 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
84784
84785         * m4/glibc21.m4: New file.
84786         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
84787
84788 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
84789
84790         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
84791         newer, don't install charset.alias.
84792         * lib/config.charset: Change the Linux/glibc rules so they become empty
84793         on glibc-2.1 or newer.
84794
84795 2000-06-02  Jim Meyering  <meyering@lucent.com>
84796
84797         * lib/mountlist.c: Back out last change.  Instead, do this...
84798         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
84799         me_dummy member using the same `ignore'-testing code.
84800         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
84801         fs_type strings.
84802         From Mark D. Roth.
84803
84804 2000-05-29  Jim Meyering  <meyering@lucent.com>
84805
84806         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
84807         mounts with the `ignore' attribute.  Based on a patch from
84808         Mark D. Roth.
84809
84810 2000-05-28  Jim Meyering  <meyering@lucent.com>
84811
84812         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
84813         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
84814         * m4/stat.m4: Likewise.
84815         * m4/lstat.m4: Likewise.
84816         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
84817
84818         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
84819         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
84820
84821 2000-05-26  Jim Meyering  <meyering@lucent.com>
84822
84823         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
84824
84825 2000-05-24  Jim Meyering  <meyering@lucent.com>
84826
84827         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
84828         autoconf requires that.
84829         * m4/lib-check.m4: Likewise.
84830         * m4/jm-macros.m4: Likewise.
84831         * m4/strftime.m4: Likewise.
84832
84833         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
84834         AC_CHECK_DECLS, now that autoconf requires that.
84835
84836 2000-05-22  Jim Meyering  <meyering@lucent.com>
84837
84838         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
84839         * m4/lstat.m4: Likewise.
84840
84841 2000-05-22  Jim Meyering  <meyering@lucent.com>
84842
84843         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
84844
84845 2000-05-20  Jim Meyering  <meyering@lucent.com>
84846
84847         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
84848         (jm_PREREQ): Use it.
84849
84850 2000-05-18  Jim Meyering  <meyering@lucent.com>
84851
84852         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
84853         back, too, since it may have been modified by allocate_entry.
84854         (hash_delete): Rewrite to use neither the assignment operator
84855         nor the comma operator in an if-expression.
84856
84857 2000-05-15  Paul Eggert  <eggert@twinsun.com>
84858
84859         * lib/closeout.c:
84860         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
84861         Remove; no longer needed.
84862         "quotearg.h": Add include.
84863         (file_name): Do not bother to explicitly initialize to NULL; it's less
84864         efficient on some hosts.
84865         (close_stdout_status): Remove test as to whether stdout was already
84866         closed; it breaks for the case "echo x | sort >&-".
84867         Quote file name colons.
84868         Do not assume that _("write error") lacks format strings.
84869
84870 2000-05-15  Jim Meyering  <meyering@lucent.com>
84871
84872         * lib/version-etc.c (version_etc_copyright): Update the copyright
84873         string used in all --version output.
84874
84875 2000-05-14  Jim Meyering  <meyering@lucent.com>
84876
84877         * lib/closeout.c (close_stdout_set_file_name): New function.
84878         (close_stdout_status): Use new file-scoped global.
84879         Return right away if fstat says the stdout file descriptor is invalid.
84880         * lib/closeout.h (close_stdout_set_file_name): Declare.
84881
84882 2000-05-10  Jim Meyering  <meyering@lucent.com>
84883
84884         * lib/closeout.c [default_exit_status]: New file-scoped variable.
84885         (close_stdout_set_status): New function.
84886         * lib/closeout.h (close_stdout_set_status): Declare.
84887
84888 2000-05-09  Jim Meyering  <meyering@lucent.com>
84889
84890         * m4/gettext.m4: Rename this...
84891         * m4/libintl.m4: ...to this.
84892
84893 2000-05-08  Jim Meyering  <meyering@lucent.com>
84894
84895         * lib/long-options.c: Don't include closeout.h.
84896         (parse_long_options): Don't call close_stdout for --version.
84897
84898 2000-05-06  Paul Eggert  <eggert@twinsun.com>
84899
84900         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
84901         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
84902         2.1.3 bug.  This avoids a clash when files like regex.c define
84903         _GNU_SOURCE.
84904
84905 2000-05-06  Jim Meyering  <meyering@lucent.com>
84906
84907         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
84908         (AC_REPLACE_FUNCS): Add strnlen.
84909
84910         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
84911         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
84912
84913         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
84914         AC_SEARCH_LIBS call for nanosleep.
84915         (LIB_NANOSLEEP): Set and AC_SUBST.
84916
84917 2000-05-06  Jim Meyering  <meyering@lucent.com>
84918
84919         * lib/strnlen.c: Undefine __strnlen and strnlen.
84920         [!weak_alias]: Define __strnlen to strnlen.
84921
84922         * lib/atexit.c: New file, from libiberty.
84923
84924 2000-05-06  Jim Meyering  <meyering@lucent.com>
84925
84926         * lib/closeout.c (close_stdout_status): Also check for errors on the
84927         stderr stream.
84928
84929 2000-05-05  Jim Meyering  <meyering@lucent.com>
84930
84931         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
84932         AC_SEARCH_LIBS call for clock_gettime.
84933         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
84934
84935         * m4/search-libs.m4: Update from autoconf.
84936
84937         su doesn't work on Solaris 2.6.
84938         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
84939         <shadow.h>.  Reported by Dragos Harabor.
84940
84941 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
84942
84943         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
84944         memcpy instead of xmalloc, xrealloc, path_concat.
84945         (locale_charset): Treat empty environment variables as absent.
84946         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
84947
84948 2000-05-04  Jim Meyering  <meyering@lucent.com>
84949
84950         * lib/getopt.c: Update from glibc.
84951         * lib/obstack.c: Likewise.
84952         * lib/obstack.h: Likewise.
84953         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
84954         file
84955
84956         * lib/regex.h: Likewise.
84957         * lib/strndup.c: Likewise.
84958         * lib/strnlen.c: New file, from glibc.
84959
84960 2000-05-03  Jim Meyering  <meyering@lucent.com>
84961
84962         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
84963
84964 2000-05-02  Paul Eggert  <eggert@twinsun.com>
84965
84966         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
84967         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
84968         compile-time test, rather than inspecting host and OS, to
84969         decide whether to define _LARGEFILE_SOURCE.
84970
84971 2000-05-01  Jim Meyering  <meyering@lucent.com>
84972
84973         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
84974
84975         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
84976         Based on a patch from Bruno Haible.
84977
84978 2000-05-01  Jim Meyering  <meyering@lucent.com>
84979
84980         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
84981
84982 2000-04-29  Jim Meyering  <meyering@lucent.com>
84983
84984         * lib/path-concat.c: Declare strdup only if it's not defined.
84985         * lib/canon-host.c: Likewise.
84986
84987 2000-04-28  Jim Meyering  <meyering@lucent.com>
84988
84989         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
84990         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
84991         is included first, then limits.h is included by locale.h by libintl.h.
84992         From John David Anglin.
84993
84994 2000-04-25  Jim Meyering  <meyering@lucent.com>
84995
84996         * lib/makepath.c (S_IRWXUGO): Define.
84997         (make_path): Always perform explicit chmod if MODE specifies any
84998         of the `special' permission bits.  Prompted by a bug report against
84999         install from Mate Wierdl and Joost van Baal.
85000
85001 2000-04-18  Jim Meyering  <meyering@lucent.com>
85002
85003         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
85004         (jm_PREREQ): Use it.
85005
85006 2000-04-18  Jim Meyering  <meyering@lucent.com>
85007
85008         * lib/README: New file.
85009
85010         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
85011         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
85012
85013 2000-04-17  Jim Meyering  <meyering@lucent.com>
85014
85015         Get it right :-)
85016         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
85017         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
85018         Suggestion from Akim Demaille.
85019
85020 2000-04-17  Jim Meyering  <meyering@lucent.com>
85021
85022         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
85023         the definition of it to rpl_strftime also defined-away the system's
85024         declaration.
85025
85026 2000-04-15  Jim Meyering  <meyering@lucent.com>
85027
85028         Use `C' to denote so-called `contiguous' files, the same way
85029         that tar does.
85030         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
85031         (ftypelet): Use S_ISCTG.
85032         From Michael Deutschmann.
85033
85034 2000-04-14  Jim Meyering  <meyering@lucent.com>
85035
85036         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
85037         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
85038         clobbered.
85039
85040 2000-04-14  Jim Meyering  <meyering@lucent.com>
85041
85042         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
85043
85044 2000-04-13  Jim Meyering  <meyering@lucent.com>
85045
85046         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
85047         AH_VERBATIM to insert required #ifndef into config.h.in.
85048         Suggestion from Akim Demaille.
85049
85050 2000-04-12  Jim Meyering  <meyering@lucent.com>
85051
85052         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
85053         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
85054         Christian Krackowizer.
85055
85056         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
85057         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
85058         (AC_SYS_LARGEFILE): Require.
85059         (AM_C_PROTOTYPES): Require.
85060
85061 2000-04-08  Jim Meyering  <meyering@lucent.com>
85062
85063         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
85064         names don't conflict.  Reported by Eli Zaretskii.
85065
85066 2000-04-07  Jim Meyering  <meyering@lucent.com>
85067
85068         * lib/putenv.c: Move inclusion of errno.h so it follows that of
85069         sys/types.h, to work around system header problems on AIX 3.2.5.
85070         From Bruno Haible.
85071
85072 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
85073
85074         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
85075         bug.  Deal with the different error behavior of Irix iconv.
85076
85077 2000-04-05  Paul Eggert  <eggert@twinsun.com>
85078
85079         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
85080         IRIX if the installer said otherwise.
85081
85082 2000-04-05  Jim Meyering  <meyering@lucent.com>
85083
85084         Portability tweaks required for ultrix4.3.
85085         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
85086         (jm_CHECK_DECLS): Add getutent to the list of functions.
85087         (_jm_DECL_HEADERS): Add utmpx.h.
85088         From John David Anglin.
85089
85090         * m4/strftime.m4: Back out the 2000-04-02 change.
85091         Instead of that change, simply undefine putenv in the test program.
85092
85093 2000-04-05  Jim Meyering  <meyering@lucent.com>
85094
85095         Portability tweaks required for ultrix4.3.
85096         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
85097         getutent.
85098         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
85099         * lib/canon-host.c: Declare strdup.
85100         * lib/path-concat.c: Likewise.
85101         From John David Anglin.
85102
85103 2000-04-04  Jim Meyering  <meyering@lucent.com>
85104
85105         Be more DOS 8.3-friendly.
85106         * lib/ref-add.sin: Renamed from ref-add.sed.in.
85107         * lib/ref-del.sin: Renamed from ref-del.sed.in.
85108         * lib/Makefile.am: Reflect renaming.
85109         Reported by Eli Zaretskii.
85110
85111         Use a temporary file name that won't clash with `charset.alias'
85112         in the DOS 8.3 name space.
85113         * lib/Makefile.am (charset_tmp): Define.
85114         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
85115         (uninstall-local): Likewise.
85116         Reported by Eli Zaretskii.
85117
85118 2000-04-03  Jim Meyering  <meyering@lucent.com>
85119
85120         * m4/gettext.m4: Fix typo in comment.
85121
85122         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
85123         textutils/configure.in).  Suggestion from Paul Eggert.
85124         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
85125
85126 2000-04-02  Paul Eggert  <eggert@twinsun.com>
85127
85128         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
85129         variable in the shell rather than using putenv, which isn't
85130         portable.  This avoids the configure-time inter-test dependency
85131         on the potentially-renamed putenv function.
85132
85133 2000-03-30  Paul Eggert  <eggert@twinsun.com>
85134
85135         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
85136         before checking struct stat.st_blksize, so that
85137         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
85138
85139 2000-03-29  Paul Eggert  <eggert@twinsun.com>
85140
85141         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
85142         since strftime.c uses HAVE_STRFTIME to decide whether to use
85143         the underlying strftime.
85144
85145 2000-03-29  Paul Eggert  <eggert@twinsun.com>
85146
85147         * lib/time/strftime.c (my_strftime): Make sure we call the system
85148         strftime, not ourselves, when invoking the underlying strftime.
85149
85150 2000-03-24  Jim Meyering  <meyering@lucent.com>
85151
85152         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
85153         (charset_alias): Define.
85154         (install-exec-local): Factor out common code.
85155         (uninstall-local): Split lines longer than 80.
85156         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
85157         (SUFFIXES): Define.
85158         (.sed.in.sed): New rule.  Don't redirect directly to $@.
85159         (CLEANFILES): Add ref-add.sed and ref-del.sed.
85160
85161 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
85162
85163         * lib/config.charset: Output a line containing "Packages using this
85164         file".
85165         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
85166         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
85167         ref-del.sed): New rules.
85168
85169 2000-03-17  Jim Meyering  <meyering@lucent.com>
85170
85171         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
85172         Otherwise, include <strings.h>
85173
85174 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
85175
85176         * lib/unicodeio.c (utf8_wctomb): New function.
85177         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
85178         format instead of in UCS-4 with platform dependent endianness.
85179
85180 2000-03-10  Jim Meyering  <meyering@lucent.com>
85181
85182         * m4/lib-check.m4: Look for getspnam in -lgen, too.
85183         From Marco Franzen.
85184
85185 2000-03-07  Paul Eggert  <eggert@twinsun.com>
85186
85187         * lib/savedir.c (savedir): Work even if directory size is
85188         negative; this can happen with some screwy NFS configurations.
85189
85190 2000-03-06  Jim Meyering  <meyering@lucent.com>
85191
85192         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
85193         if it's NULL (because we ran out of memory).  From Bruno Haible.
85194
85195 2000-03-05  Jim Meyering  <meyering@lucent.com>
85196
85197         * lib/localcharset.c ("path-concat.h"): Include.
85198         (get_charset_aliases): Use path_concat instead of ANSI string
85199         concatenation.
85200
85201         * lib/unicodeio.h (PARAMS): Define.
85202         Use it to guard prototype.
85203
85204 2000-03-04  Jim Meyering  <meyering@lucent.com>
85205
85206         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
85207         for lib/localcharset.c.
85208
85209 2000-03-04  Jim Meyering  <meyering@lucent.com>
85210
85211         * lib/Makefile.am (install-exec-local): Create $(libdir) before
85212         installing into it.
85213         (uninstall-local): Uncomment this rule so `make distcheck' works
85214         once again.
85215
85216         * lib/unicodeio.c (<errno.h>): Include it.
85217         (errno): Declare if not defined.
85218
85219         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
85220
85221         * lib/config.charset: New version, incorporating remarks from a linux
85222         i18n mailing list.  From Bruno Haible.
85223
85224 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
85225
85226         * m4/codeset.m4: New file.
85227         * m4/iconv.m4: New file.
85228         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
85229
85230 2000-03-03  Jim Meyering  <meyering@lucent.com>
85231
85232         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
85233
85234 2000-03-02  Jim Meyering  <meyering@lucent.com>
85235
85236         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
85237         the messages come out on separate lines.
85238
85239         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
85240         rather than jm_CHECK_DECLARATIONS.
85241         * m4/decl.m4: Remove now-unused file.
85242
85243         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
85244         geteuid.
85245
85246 2000-03-02  Jim Meyering  <meyering@lucent.com>
85247
85248         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
85249
85250 2000-03-01  Jim Meyering  <meyering@lucent.com>
85251
85252         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
85253         * lib/unicodeio.c: Likewise.
85254
85255 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
85256
85257         * lib/config.charset: New file.
85258         * lib/localcharset.c: New file.
85259         * lib/unicodeio.h, lib/unicodeio.c: New files.
85260         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
85261         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
85262         (noinst_HEADERS): Add unicodeio.h.
85263         (all-local, install-exec-local, charset.alias): New targets.
85264
85265 2000-02-28  Paul Eggert  <eggert@twinsun.com>
85266
85267         * lib/quotearg.c (ALERT_CHAR): New macro.
85268         (quotearg_buffer_restyled): Use it.
85269
85270 2000-02-27  Jim Meyering  <meyering@lucent.com>
85271
85272         * m4/check-decl.m4: Add getenv to the list.
85273
85274 2000-02-27  Jim Meyering  <meyering@lucent.com>
85275
85276         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
85277         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
85278
85279         * lib/backupfile.c: Guard inclusion of stdlib.h with
85280         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
85281         Declare malloc if needed.
85282
85283         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
85284         `#ifndef HAVE_DECL..'
85285         now that autoconf always defines the HAVE_DECL_ symbols.
85286         * lib/human.c: Likewise.
85287         * lib/same.c: Likewise.
85288         * lib/strtoumax.c: Likewise.
85289
85290         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
85291         declaration check was not run.
85292         * lib/hash.c: Likewise.
85293         * lib/human.c: Likewise.
85294         * lib/same.c: Likewise.
85295         * lib/strtoumax.c: Likewise.
85296
85297         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
85298         `.', then first look up the entire `.'-containing string as a login
85299         name.
85300
85301 2000-02-23  Jim Meyering  <meyering@lucent.com>
85302
85303         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
85304         in place of my hack.
85305
85306 2000-02-18  Paul Eggert  <eggert@twinsun.com>
85307
85308         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
85309         (textint): New typedef.
85310         (parser_control): Member year changed from int to textint.
85311         All uses changed.
85312         (YYSTYPE): Removed; replaced by %union with int and textint members.
85313         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
85314         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
85315         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
85316         (tSNUMBER, tUNUMBER): Now of type <textintval>.
85317         (date, number, to_year): Use width of number in digits, not its value,
85318         to determine whether it's a 2-digit year, or a 2-digit time.
85319         (yylex): Store number of digits of numeric tokens.
85320         Reported by John Kendall.
85321
85322         (parser_control): Changed from struct parser_control to typedef (for
85323         consistency).  All uses changed.
85324
85325         (tID): Removed; not used.
85326         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
85327
85328 2000-02-14  Paul Eggert  <eggert@twinsun.com>
85329
85330         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
85331         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
85332
85333 2000-02-12  Jim Meyering  <meyering@lucent.com>
85334
85335         * lib/userspec.c (ISDIGIT): Define it.
85336         (isdigit): Remove definition.
85337         (is_number): Use ISDIGIT, not isdigit.
85338         <libintl.h>: Include.
85339         (_ and N_): Define.
85340         (parse_user_spec): Mark translatable strings.
85341
85342 2000-02-10  Jim Meyering  <meyering@lucent.com>
85343
85344         With these changes, nanosleep.[ch] are finally enough like the other
85345         lib/* replacement files to compile on a few more losing systems.
85346
85347         * lib/nanosleep.h: Don't include config.h.
85348         Remove prototype from declaration of nanosleep.
85349         (PARAMS): Remove now-unneeded definition.
85350         * lib/nanosleep.c: #undef nanosleep.
85351         (rpl_nanosleep): Rename from nanosleep.
85352
85353 2000-02-10  Jim Meyering  <meyering@lucent.com>
85354
85355         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
85356         gnu_nanosleep to rpl_nanosleep.
85357
85358 2000-02-09  Jim Meyering  <meyering@lucent.com>
85359
85360         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
85361         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
85362
85363 2000-02-08  Akim Demaille  <akim@epita.fr>
85364
85365         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
85366         `[' and `]' and remove uses of `changequote'.
85367         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
85368         (AC_SYS_LARGEFILE): Likewise.
85369         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
85370         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
85371         of changequote.
85372         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
85373         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
85374         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
85375         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
85376
85377 2000-02-05  Jim Meyering  <meyering@lucent.com>
85378
85379         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
85380         Remove explicit use of AC_HEADER_TIME.  It is required by
85381         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
85382         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
85383         in autoconf whereby the expansion of the latter ended up preceding
85384         the expansion of its prerequisite, AC_HEADER_TIME.
85385         Reported by Volker Borchert.
85386
85387 2000-02-03  Jim Meyering  <meyering@lucent.com>
85388
85389         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
85390
85391 2000-02-03  Jim Meyering  <meyering@lucent.com>
85392
85393         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
85394         rather than with `#if HAVE_UTMPNAME'.
85395
85396 2000-02-02  Jim Meyering  <meyering@lucent.com>
85397
85398         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
85399         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
85400         Reported by Eli Zaretskii.
85401
85402 2000-02-01  Jim Meyering  <meyering@lucent.com>
85403
85404         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
85405
85406 2000-01-31  Jim Meyering  <meyering@lucent.com>
85407
85408         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
85409         functions.  Add the time.h and sys/time.h headers along with the
85410         AC_REQUIRE'ment of AC_HEADER_TIME.
85411
85412 2000-01-31  Jim Meyering  <meyering@lucent.com>
85413
85414         * lib/nanosleep.h (nanosleep): Guard declaration with
85415         `#if ! HAVE_DECL_NANOSLEEP'.
85416         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
85417         the declaration in that vendor's sys/timers.h.
85418         Reported by Christian Krackowizer.
85419
85420         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
85421         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
85422         (ISPRINT): Likewise.
85423         Reported by Tom Tromey.
85424
85425 2000-01-30  Jim Meyering  <meyering@lucent.com>
85426
85427         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
85428
85429         * m4/prereq.m4 (utmp_includes): Define.
85430         Check for ut_user and ut_name members in both struct utmpx
85431         and struct utmp.
85432
85433 2000-01-30  Jim Meyering  <meyering@lucent.com>
85434
85435         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
85436         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
85437         header files where only utmpx.ut_user is declared.
85438
85439         * lib/readutmp.h (UT_USER): Define.
85440
85441 2000-01-29  Jim Meyering  <meyering@lucent.com>
85442
85443         * m4/lib-check.m4: New file containing library-related checks from
85444         fileutils and sh-utils (textutils had none).
85445
85446 2000-01-28  Jim Meyering  <meyering@lucent.com>
85447
85448         * m4/perl.m4: Change format of warning message to look more like that
85449         from the missing script.  Suggestion from François Pinard.
85450
85451 2000-01-25  Jim Meyering  <meyering@lucent.com>
85452
85453         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
85454         well as time.h in the compile check.
85455         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
85456         Fix typo in cross-compiling case: s/yes/no/.
85457
85458 2000-01-23  Jim Meyering  <meyering@lucent.com>
85459
85460         * m4/jm-macros.m4: Move df-related tests here from
85461         fileutils/configure.in
85462
85463         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
85464         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
85465
85466         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
85467         s/space/ac_fsusage_space/.
85468         (jm_FILE_SYSTEM_USAGE): Take two parameters.
85469
85470         * m4/ftruncate.m4: New file (derived from part of
85471         fileutils/configure.in).
85472         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
85473         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
85474
85475         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
85476         AC_SUBST these here, rather than just in sh-util/configure.in, so
85477         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
85478         all the same.
85479         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
85480         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
85481         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
85482         (AC_SUBST(POW_LIBM)): Likewise.
85483         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
85484
85485 2000-01-23  Jim Meyering  <meyering@lucent.com>
85486
85487         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
85488         obstack.c.
85489
85490 2000-01-22  Jim Meyering  <meyering@lucent.com>
85491
85492         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
85493
85494         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
85495
85496         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
85497         configure.in
85498         (AC_CHECK_HEADERS): Likewise for sh-utils.
85499         (AC_CHECK_HEADERS): Likewise for textutils.
85500         Merge the three lists of headers.
85501
85502         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
85503         from fileutils' configure.in.
85504
85505         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
85506         code. Moved tests into their own function (_jm_DECL_HEADERS) in
85507         check-decl.m4.
85508
85509         * m4/check-decl.m4: Use #if rather than #ifdef.
85510         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
85511         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
85512         (_jm_DECL_HEADERS): Define new function.
85513         (jm_CHECK_DECLARATIONS): Require it.
85514
85515 2000-01-22  Jim Meyering  <meyering@lucent.com>
85516
85517         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
85518         [! HAVE_DECL_STRTOULL]: Declare strtoull.
85519         Required for some AIX systems.  Reported by Christian Krackowizer.
85520         [TESTING] (main): New function.
85521
85522         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
85523         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
85524         letters.
85525
85526         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
85527         iswprint.
85528
85529         * lib/strverscmp.c (ISDIGIT): Define.
85530         (strverscmp): Use ISDIGIT, not isdigit.
85531
85532 2000-01-19  Jim Meyering  <meyering@lucent.com>
85533
85534         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
85535         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
85536         defines `struct timespec' in <sys/time.h>
85537
85538         * m4/c-bs-a.m4: Remove uses of changequote altogether.
85539         Thanks to Akim for explaining.
85540
85541 2000-01-17  Paul Eggert  <eggert@twinsun.com>
85542
85543         * lib/nanosleep.c (nanosleep):
85544         Don't use SA_INTERRUPT to decide whether to call sigaction, as
85545         POSIX.1 doesn't require SA_INTERRUPT and some systems
85546         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
85547         it's been part of POSIX.1 since day 1 (in 1988).
85548
85549 2000-01-17  Jim Meyering  <meyering@lucent.com>
85550
85551         * lib/interlock: Remove unused file.  Reported by François Pinard.
85552
85553 2000-01-16  Paul Eggert  <eggert@twinsun.com>
85554
85555         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
85556         alert, backslash, formfeed, and vertical tab unnecessarily in
85557         shell quoting style.
85558
85559 2000-01-16  Jim Meyering  <meyering@lucent.com>
85560
85561         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
85562         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
85563         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
85564         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
85565
85566 2000-01-16  Jim Meyering  <meyering@lucent.com>
85567
85568         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
85569         because the latter didn't work.
85570
85571 2000-01-15  Jim Meyering  <meyering@lucent.com>
85572
85573         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
85574         (AC_REPLACE_FUNCS): Add memcpy and memset.
85575         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
85576         Add strpbrk.
85577         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
85578
85579 2000-01-12  Jim Meyering  <meyering@lucent.com>
85580
85581         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
85582         (jm_PREREQ): Use it.
85583         (jm_PREREQ_READUTMP): New macro.
85584         (jm_PREREQ): Use it.
85585
85586 2000-01-11  Paul Eggert  <eggert@twinsun.com>
85587
85588         Quote multibyte characters correctly.
85589         * m4/c-bs-a.m4: New file.
85590         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
85591         (jm_PREREQ): Use it.
85592
85593 2000-01-11  Paul Eggert  <eggert@twinsun.com>
85594
85595         * m4/uintmax_t.m4: Port to autoconf 2.13.
85596
85597 2000-01-08  Jim Meyering  <meyering@ascend.com>
85598
85599         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
85600         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
85601
85602 2000-01-04  Jim Meyering  <meyering@ascend.com>
85603
85604         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
85605         jm_STRUCT_DIRENT_D_TYPE.
85606         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
85607         jm_STRUCT_DIRENT_D_INO.
85608         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
85609         jm_STRUCT_UTIMBUF.
85610         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
85611         renamings.
85612         * m4/utime.m4: Likewise.
85613
85614         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
85615         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
85616
85617 2000-01-03  Paul Eggert  <eggert@twinsun.com>
85618
85619         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
85620         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
85621
85622 2000-01-02  Jim Meyering  <meyering@ascend.com>
85623
85624         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
85625         remember if this is necessary.
85626
85627 1999-12-26  Jim Meyering  <meyering@ascend.com>
85628
85629         * m4/jm-macros.m4: Use it here.
85630         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
85631
85632 1999-12-23  Jim Meyering  <meyering@ascend.com>
85633
85634         * m4/jm-macros.m4: Check for clock_gettime (moved from
85635         fileutils/configure.in)
85636         Check for gettimeofday.
85637
85638 1999-12-20  Jim Meyering  <meyering@ascend.com>
85639
85640         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
85641         autoconf-2.14a-1999-12-20.
85642
85643 1999-12-19  Jim Meyering  <meyering@ascend.com>
85644
85645         * m4/lstat-slash.m4: New file.
85646         * m4/jm-macros.m4: Use the new macro:
85647         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
85648
85649 1999-12-07  Jim Meyering  <meyering@ascend.com>
85650
85651         * m4/perl.m4: Require that File::Compare be available, too.
85652         Too many systems seem to lack it.
85653
85654         * m4/strftime.m4: Add checks for most of the cpp macros tested in
85655         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
85656
85657 1999-11-18  Paul Eggert  <eggert@twinsun.com>
85658
85659         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
85660         problem with the QNX 4.25 shell, which doesn't propagate exit
85661         status of failed commands inside shell assignments.
85662
85663 1999-11-17  Jim Meyering  <meyering@ascend.com>
85664
85665         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
85666
85667 1999-11-07  Jim Meyering  <meyering@ascend.com>
85668
85669         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
85670
85671 1999-11-06  Jim Meyering  <meyering@ascend.com>
85672
85673         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
85674         * m4/jm-macros.m4 (jm_MACROS): Use it here.
85675
85676 1999-11-05  Jim Meyering  <meyering@ascend.com>
85677
85678         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
85679         configure.in of textutils, fileutils, and sh-utils into this one
85680         (shared between those packages) file.
85681         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
85682         AC_STRUCT_ST_BLKSIZE.
85683
85684 1999-11-03  Jim Meyering  <meyering@ascend.com>
85685
85686         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
85687         of AC_CHECK_TYPE checks includes unistd.h.
85688         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
85689         Suggestion from Akim Demaille.
85690
85691 1999-10-30  Jim Meyering  <meyering@ascend.com>
85692
85693         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
85694         m4-quoted string.
85695         * m4/ls-mntd-fs.m4: Likewise.
85696         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
85697         * m4/jm-winsz1.m4: Likewise.
85698
85699         * m4/const.m4: Remove file, since the fix made it into the experimental
85700         version of autoconf.
85701         * m4/mktime.m4: Likewise.
85702
85703         * m4/check-type.m4: Remove file, now that the latest version of
85704         AC_CHECK_TYPE takes a third arg to specify additional #includes.
85705
85706         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
85707         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
85708         AC_CHECK_TYPE.
85709
85710 1999-10-04  Jim Meyering  <meyering@ascend.com>
85711
85712         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
85713
85714 1999-09-22  Paul Eggert  <eggert@twinsun.com>
85715
85716         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
85717         2.95.1 bug with HP-UX 10.20.
85718
85719 1999-09-17  Jim Meyering  <meyering@ascend.com>
85720
85721         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
85722         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
85723         due to missing strdup (against sh-utils-2.0).
85724
85725 1999-08-29  Jim Meyering  <meyering@ascend.com>
85726
85727         * m4/jm-macros.m4: Require jm_BISON.
85728         * m4/bison.m4: New file.
85729
85730 1999-08-17  Paul Eggert  <eggert@twinsun.com>
85731
85732         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
85733         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
85734
85735 1999-08-05  Jim Meyering  <meyering@ascend.com>
85736
85737         * m4/getline.m4: Rename test file from conftestdata to conftest.data
85738         to avoid conflicts with `conftest' on 8+3 filesystems.
85739         Suggestion from Eli Zaretskii.
85740
85741 1999-08-04  Jim Meyering  <meyering@ascend.com>
85742
85743         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
85744         fileutils and sh-utils (textutils's getline test was inadequate).
85745         (AM_FUNC_GETLINE): Run this test.
85746         (AC_CHECK_FUNCS): Check for getdelim.
85747         Reported by Bob Proulx.
85748
85749 1999-08-02  Jim Meyering  <meyering@ascend.com>
85750
85751         * m4/jm-macros.m4: Add a comment.
85752
85753 1999-08-01  Paul Eggert  <eggert@twinsun.com>
85754
85755         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
85756         <inttypes.h> defines strtoumax as a macro (and not as a
85757         function).
85758
85759 1999-08-01  Paul Eggert  <eggert@twinsun.com>
85760
85761         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
85762         that we can shift, multiply and divide unsigned long long
85763         values; Ultrix cc can't do it.
85764
85765 1999-08-01  Paul Eggert  <eggert@twinsun.com>
85766
85767         * m4/mktime.m4: New file, which is a preview of what should appear
85768         in the next public autoconf release.
85769
85770 1999-08-01  Paul Eggert  <eggert@twinsun.com>
85771
85772         * m4/lfs.m4: Remove this file.
85773         * m4/largefile.m4: New file.  It contains the old contents of
85774         lfs.m4, except that all names with prefix AC_LFS have been
85775         changed to use the prefix AC_SYS_LARGEFILE instead, to be
85776         compatible with future autoconf versions.  Also, some minor m4
85777         quoting problems have been fixed.
85778
85779 1999-08-01  Paul Eggert  <eggert@twinsun.com>
85780
85781         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
85782         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
85783         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
85784         and simplify the shell code.
85785
85786 1999-08-01  Jim Meyering  <meyering@ascend.com>
85787
85788         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
85789         m4.
85790
85791 1999-07-20  Jim Meyering  <meyering@ascend.com>
85792
85793         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
85794
85795 1999-07-15  Jim Meyering  <meyering@ascend.com>
85796
85797         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
85798
85799 1999-05-22  Jim Meyering  <meyering@ascend.com>
85800
85801         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
85802
85803 1999-05-20  Jim Meyering  <meyering@ascend.com>
85804
85805         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
85806         Add a colon after each `then' in case $4 is empty.
85807
85808 1999-05-16  Jim Meyering  <meyering@ascend.com>
85809
85810         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
85811
85812 1999-05-10  Jim Meyering  <meyering@ascend.com>
85813
85814         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
85815
85816         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
85817         AC_FUNC_MKTIME.
85818
85819 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
85820
85821         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
85822
85823 1999-05-04  Paul Eggert  <eggert@twinsun.com>
85824
85825         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
85826         not CPPFLAGS, so that linking works correctly in IRIX.
85827
85828 1999-04-30  Paul Eggert  <eggert@twinsun.com>
85829
85830         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
85831
85832 1999-04-20  Paul Eggert  <eggert@twinsun.com>
85833
85834         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
85835         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
85836         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
85837         jm_AC_TYPE_UNSIGNED_LONG_LONG.
85838         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
85839
85840         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
85841
85842 1999-04-20  Jim Meyering  <meyering@ascend.com>
85843
85844         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
85845         AC_REPLACE xstroull if necessary.  From Paul Eggert.
85846         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
85847
85848 1999-04-18  Jim Meyering  <meyering@ascend.com>
85849
85850         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
85851         * m4/jm-macros.m4: Use it.
85852
85853 1999-04-06  Jim Meyering  <meyering@ascend.com>
85854
85855         * m4/strftime.m4: Remove test for %f.
85856
85857 1999-03-29  Jim Meyering  <meyering@ascend.com>
85858
85859         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
85860         superset of the AC_TYPE_* checks in the textutils, fileutils,
85861         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
85862         AC_TYPE_PID_T.
85863
85864 1999-03-28  Jim Meyering  <meyering@ascend.com>
85865
85866         * m4/jm-macros.m4: Define GNU_PACKAGE here.
85867         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
85868         replaced e.g., in the *.sh files of the sh-utils.
85869
85870 1999-03-20  Jim Meyering  <meyering@ascend.com>
85871
85872         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
85873         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
85874         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
85875
85876 1999-03-19  Jim Meyering  <meyering@ascend.com>
85877
85878         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
85879
85880 1999-03-12  Jim Meyering  <meyering@ascend.com>
85881
85882         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
85883
85884 1999-03-07  Jim Meyering  <meyering@ascend.com>
85885
85886         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
85887         declared.
85888
85889 1999-02-17  Jim Meyering  <meyering@ascend.com>
85890
85891         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
85892         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
85893
85894 1999-02-07  Jim Meyering  <meyering@ascend.com>
85895
85896         * m4/group-member.m4: New file -- extracted from sh-utils'
85897         configure.in.
85898
85899         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
85900         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
85901
85902 1999-02-06  Jim Meyering  <meyering@ascend.com>
85903
85904         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
85905         * m4/fnmatch.m4: Likewise.
85906         * m4/getgroups.m4: Likewise.
85907         * m4/lstat.m4: Likewise.
85908         * m4/malloc.m4: Likewise.
85909         * m4/putenv.m4: Likewise.
85910         * m4/realloc.m4: Likewise.
85911         * m4/regex.m4: Likewise.
85912         * m4/stat.m4: Likewise.
85913         * m4/strftime.m4: Likewise.
85914         Suggestion from Alain Magloire.
85915
85916         * m4/chown.m4: Use `.$ac_objext', not `.o'.
85917         * m4/fnmatch.m4: Likewise.
85918         * m4/getgroups.m4: Likewise.
85919         * m4/getline.m4: Likewise.
85920         * m4/lstat.m4: Likewise.
85921         * m4/malloc.m4: Likewise.
85922         * m4/memcmp.m4: Likewise.
85923         * m4/putenv.m4: Likewise.
85924         * m4/realloc.m4: Likewise.
85925         * m4/regex.m4: Likewise.
85926         * m4/stat.m4: Likewise.
85927         * m4/strftime.m4: Likewise.
85928         Suggestion from Alain Magloire.
85929
85930         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
85931         an argument.
85932
85933         * m4/regex.m4: Add a run-time Test for proper operation of
85934         re_compile_pattern.
85935
85936 1999-01-31  Jim Meyering  <meyering@ascend.com>
85937
85938         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
85939
85940 1999-01-30  Jim Meyering  <meyering@ascend.com>
85941
85942         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
85943
85944         * m4/jm-mktime.m4: Make this a wrapper around the official
85945         AM_FUNC_MKTIME rather than my private copy, now that the official one
85946         is up to date.
85947         * m4/mktime.m4: Remove file.
85948
85949         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
85950         * m4/uptime.m4: Likewise.
85951         * m4/uintmax_t.m4: Likewise.
85952
85953 1999-01-28  Jim Meyering  <meyering@ascend.com>
85954
85955         * m4/jm-macros.m4: Use jm_AFS.
85956         * m4/afs.m4: New file (from fileutils' configure.in).
85957
85958         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
85959         * m4/chown.m4: Likewise.
85960         * m4/d-ino.m4: Likewise.
85961         * m4/d-type.m4: Likewise.
85962         * m4/fnmatch.m4: Likewise.
85963         * m4/getgroups.m4: Likewise.
85964         * m4/gettext.m4: Likewise.
85965         * m4/jm-mktime.m4: Likewise.
85966         * m4/jm-winsz2.m4: Likewise.
85967         * m4/lcmessage.m4: Likewise.
85968         * m4/ls-mntd-fs.m4: Likewise.
85969         * m4/malloc.m4: Likewise.
85970         * m4/memcmp.m4: Likewise.
85971         * m4/putenv.m4: Likewise.
85972         * m4/realloc.m4: Likewise.
85973         * m4/st_mtim.m4: Likewise.
85974         * m4/strftime.m4: Likewise.
85975
85976 1999-01-16  Jim Meyering  <meyering@ascend.com>
85977
85978         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
85979         (ARGMATCH_DIE_DECL): Define.
85980
85981 1999-01-12  Jim Meyering  <meyering@ascend.com>
85982
85983         * m4/Makefile.am.in: Rewrite to avoid using fmt.
85984         Reported by Lars Hecking.
85985
85986 1999-01-10  Jim Meyering  <meyering@ascend.com>
85987
85988         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
85989         gross kludge.
85990         * m4/inttypes_h.m4: Likewise.
85991         * m4/lstat.m4: Likewise.
85992         * m4/malloc.m4: Likewise.
85993         * m4/readdir.m4: Likewise.
85994         * m4/realloc.m4: Likewise.
85995         * m4/st_dm_mode.m4: Likewise.
85996         * m4/stat.m4: Likewise.
85997         * m4/utimbuf.m4: Likewise.
85998         * m4/utimes.m4: Likewise.
85999
86000         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
86001         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
86002         comments in config.h.in are meaningful.
86003
86004         * m4/jm-macros.m4: Require autoconf-2.13 here.
86005
86006         * m4/regex.m4: By default, don't use the included regex.c on systems
86007         with glibc 2.  Suggestion from Uli Drepper.
86008
86009 1999-01-02  Jim Meyering  <meyering@ascend.com>
86010
86011         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
86012
86013 1998-12-18  Jim Meyering  <meyering@ascend.com>
86014
86015         * m4/Makefile.am.in (Makefile.am): Simplify rule.
86016         Based on a suggestion from Lars Hecking.
86017
86018 1998-11-16  Paul Eggert  <eggert@twinsun.com>
86019
86020         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
86021
86022 1998-11-16  Jim Meyering  <meyering@ascend.com>
86023
86024         * m4/lfs.m4: Double-quote the `uname...` expression.
86025
86026 1998-11-14  Jim Meyering  <meyering@ascend.com>
86027
86028         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
86029         * m4/stat.m4: Likewise.
86030
86031 1998-11-03  Jim Meyering  <meyering@ascend.com>
86032
86033         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
86034         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
86035
86036 1998-10-18  Jim Meyering  <meyering@ascend.com>
86037
86038         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
86039
86040 1998-10-17  Jim Meyering  <meyering@ascend.com>
86041
86042         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
86043         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
86044         calls for those previously hard-coded headers.  Instead, take a new
86045         parameter.
86046         (jm_CHECK_DECLARATIONS): Reflect interface change.
86047         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
86048         (jm_CHECK_DECL_LOCALTIME_R): New macro.
86049
86050         * m4/mktime.m4: Test for spring-forward gap before long-running test.
86051
86052 1998-10-14  Jim Meyering  <meyering@ascend.com>
86053
86054         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
86055         instead of "TZ=America/Vancouver".  From Paul Eggert.
86056
86057 1998-10-11  Jim Meyering  <meyering@ascend.com>
86058
86059         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
86060         This adds a test for a recently added compatibility fix for mktime.c.
86061         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
86062
86063 1998-09-27  Jim Meyering  <meyering@ascend.com>
86064
86065         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
86066
86067         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
86068         ../configure.in, including a change from Gordon Matzigkeit to allow
86069         cross-compiling for the Hurd.
86070
86071         * m4/glibc.m4: New file/macro to test for the GNU C Library
86072         versions 1 and 2.  From Gordon Matzigkeit.
86073         Indent.
86074
86075 1998-09-21  Jim Meyering  <meyering@ascend.com>
86076
86077         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
86078
86079 1998-08-18  Paul Eggert  <eggert@twinsun.com>
86080
86081         Port nanosecond-resolution times to UnixWare 2.1.2 and
86082         pedantic Solaris 2.6.
86083
86084         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
86085         AC_STRUCT_ST_MTIM.
86086         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
86087         Generate name of ns member, instead of just 1 or undef.
86088         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
86089
86090 1998-08-15  Jim Meyering  <meyering@ascend.com>
86091
86092         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
86093         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
86094         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
86095         instead of jm_TYPE_SSIZE_T.
86096
86097 1998-08-12  Jim Meyering  <meyering@ascend.com>
86098
86099         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
86100
86101 1998-08-02  Jim Meyering  <meyering@ascend.com>
86102
86103         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
86104         in acconfig.h manually.
86105
86106 1998-07-31  Paul Eggert  <eggert@twinsun.com>
86107
86108         * m4/st_mtim.m4: New file.
86109
86110 1998-07-28  Jim Meyering  <meyering@ascend.com>
86111
86112         * m4/utimes.m4: Undef stat.
86113
86114 1998-07-25  Jim Meyering  <meyering@ascend.com>
86115
86116         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
86117         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
86118
86119 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
86120
86121         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
86122         uid and gid actually remain unchanged.
86123
86124 1998-07-07  Jim Meyering  <meyering@ascend.com>
86125
86126         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
86127
86128 1998-07-04  Jim Meyering  <meyering@ascend.com>
86129
86130         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
86131         to prove that this macro can be used in packages without regex.c.
86132
86133 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
86134
86135         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
86136         is to be used.
86137
86138 1998-07-03  Jim Meyering  <meyering@ascend.com>
86139
86140         * m4/gettext.m4: Add -lintl if it's found to be necessary.
86141
86142         * m4/gettext.m4: New file -- from gettext-0.10.35.
86143         * m4/lcmessage.m4: Likewise.
86144         * m4/progtest.m4: Likewise.
86145
86146         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
86147         * m4/jm-macros.m4: Require the new macro.
86148
86149 1998-06-29  Jim Meyering  <meyering@ascend.com>
86150
86151         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
86152         for the definition of NGROUPS (used in a system header included
86153         by sys/mount.h).
86154
86155 1998-06-28  Jim Meyering  <meyering@ascend.com>
86156
86157         * m4/ls-mntd-fs.m4: New file.
86158         * m4/fstypename.m4: New file.
86159
86160         * m4/jm-macros.m4: Require the new macro.
86161         * m4/jm-glibc-io.m4: New file.
86162
86163 1998-05-19  Jim Meyering  <meyering@ascend.com>
86164
86165         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
86166         * m4/lchown.m4: New file.
86167
86168         * m4/Makefile.am.in: New file.
86169         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
86170
86171 1998-05-14  Jim Meyering  <meyering@ascend.com>
86172
86173         * m4/Makefile.am (EXTRA_DIST): Add them.
86174         * m4/jm-macros.m4: New file.
86175         * m4/utimbuf.m4: New file.
86176
86177 1998-05-12  Jim Meyering  <meyering@ascend.com>
86178
86179         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
86180
86181 1998-05-11  Jim Meyering  <meyering@ascend.com>
86182
86183         * m4/isc-posix.m4: New file.
86184
86185 1998-05-10  Jim Meyering  <meyering@ascend.com>
86186
86187         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
86188
86189 1998-05-09  Jim Meyering  <meyering@ascend.com>
86190
86191         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
86192         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
86193         with automake.
86194
86195         * m4/ssize_t.m4: New file.
86196         * m4/mktime.m4: Remove file -- the new automake has this now.
86197
86198 1998-04-26  Jim Meyering  <meyering@ascend.com>
86199
86200         * m4/assert.m4: New file.
86201         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
86202
86203 1998-04-05  Jim Meyering  <meyering@ascend.com>
86204
86205         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
86206         (jm_PREREQ): Use it here.
86207
86208 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
86209
86210         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
86211         in acconfig.h.
86212
86213 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
86214
86215         * m4/prereq.m4: New file.
86216         * m4/error.m4: New file.
86217         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
86218
86219 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
86220
86221         * m4/getline.m4: Don't set am_cv_func_working_getline before the
86222         cache-check for the same variable -- that defeated the purpose of
86223         the test; the test program was never run.  This was a problem only
86224         on systems with losing getline functions -- HP-UX 10.20 is one.
86225         Reported by Bjorn Helgaas.
86226
86227 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
86228
86229         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
86230
86231 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
86232
86233         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
86234
86235         * m4/const.m4: New file.  Use an initializer in this declaration
86236         typedef int charset[2]; const charset x;
86237         Reported by Bob Glickstein.
86238
86239 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
86240
86241         * m4/chown.m4: Fix reversed types on -1 args to chown.
86242         From Kaveh Ghazi.
86243
86244 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
86245
86246         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
86247         Add lseek and memchr.
86248
86249         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
86250         T.E.Dickey <dickey@clark.net> said that some older preprocessors
86251         have a 20-character limit on names.
86252
86253 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
86254
86255         * m4/inttypes_h.m4: New file.
86256         * m4/uintmax_t.m4: New file.
86257         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
86258
86259
86260         -----
86261
86262         Local Variables:
86263         coding: utf-8
86264         End:
86265
86266         Copyright (C) 1997-2011 Free Software Foundation, Inc.
86267
86268         Copying and distribution of this file, with or without
86269         modification, are permitted provided the copyright notice
86270         and this notice are preserved.